aboutsummaryrefslogtreecommitdiff
path: root/sway/config.c
AgeCommit message (Collapse)Author
2017-06-07Implement Tray IconsCalvin Lee
This commit implements the StatusNotifierItem protocol, and enables swaybar to show tray icons. It also uses `xembedsniproxy` in order to communicate with xembed applications. The tray is completely optional, and can be disabled on compile time with the `enable-tray` option. Or on runtime with the bar config option `tray_output none`. Overview of changes: In swaybar very little is changed outside the tray subfolder except that all events are now polled in `event_loop.c`, this creates no functional difference. Six bar configuration options were added, these are detailed in sway-bar(5) The tray subfolder is where all protocol implementation takes place and is organised as follows: tray/sni_watcher.c: This file contains the StatusNotifierWatcher. It keeps track of items and hosts and reports when they come or go. tray/tray.c This file contains the StatusNotifierHost. It keeps track of sway's version of the items and represents the tray itself. tray/sni.c This file contains the StatusNotifierItem struct and all communication with individual items. tray/icon.c This file implements the icon theme protocol. It allows for finding icons by name, rather than by pixmap. tray/dbus.c This file allows for asynchronous DBus communication. See #986 #343
2017-06-06FreeBSD fixesjohalun
Increase _POSIX_SOURCE value where needed. Increase _XOPEN_SOURCE value where needed. Conditionally link to libcap (only on Linux). Possibly some trailing whitespace fixes (automatic).
2017-04-26Implement no_focusDrew DeVault
Ref #2
2017-04-19explicitly ignore unused return valueTomáš Čech
fixes issue#1182
2017-04-18Prevent sway from duplicating on a failed forkCalvin Lee
Also remove a useless `sway_log` and replace it with a pipe
2017-04-03Impliment i3-style marksCalvin Lee
This commit adds three commands to sway: `show_marks`, `mark` and `unmark`. Marks are displayed right-aligned in the window border as i3 does. Marks may be found using criteria. Fixes #1007
2017-03-16Allow also 444 for security file modeJaanus Torp
2017-03-10UnGNUify the codebaseDrew DeVault
2017-03-10Further indentation correctionsDrew DeVault
2017-02-20Read configs from /etc/sway/security.d/*Drew DeVault
2017-02-20Add initial support code for new IPC securityDrew DeVault
2017-01-08Fix format errorDrew DeVault
2016-12-23Update default swaybar commandDrew DeVault
Fixes #988
2016-12-17Change how security config is loadedDrew DeVault
2016-12-15Handle calloc failuresDrew DeVault
2016-12-15Handle config-related allocation failuresDrew DeVault
2016-12-15Handle malloc failures from read_lineDrew DeVault
2016-12-02Add IPC security policy command handlersDrew DeVault
2016-12-02Add IPC policy to configDrew DeVault
Also reduces enum abuse, cc @minus7
2016-12-02Add support for command policies in config fileDrew DeVault
2016-12-01Add config related code and initial headersDrew DeVault
2016-11-03swap unnecessary function for strndupD.B
2016-11-02change bar colors from char[10] to *charD.B
This commit removes has_* booleans from bar color struct. It also generalizes of functions in commands/bar/colors.c.
2016-11-02use urgent_ws color in swaybar if binding_mode is undefinedD.B
2016-10-25Add left_handed support for input devicesMichał Winiarski
Some users may want to switch buttons on their input devices, turns out libinput already supports it. Let's add a support for it in our config. Signed-off-by: Michał Winiarski <knr@hardline.pl>
2016-10-20config: set pango_markup default to falseMykyta Holubakha
2016-09-17Fix swaybar when running on named outputs.Ryan Dwyer
When using a bar on a named output, load_swaybars() requires the output to be active (ie. in the root container), but this is not the case if the bar is added to the last output. To fix this, load_swaybars() is now called after the output has been added to the root container. After fixing that, swaybar would segfault due to using the wrong index variable when loading outputs and config.
2016-09-01Reorganize includesDrew DeVault
2016-08-20Avoid dereferencing null configurationJames Murphy
Fixes: https://github.com/SirCmpwn/sway/issues/865
2016-08-10Handle output disabling during runtimeD.B
Output now gets disabled if disable command is invoked via bindsym or IPC.
2016-08-02fixed uninitialized bar.wrap_scrollminus
2016-07-28Update hidpi support to latest wlc APIDrew DeVault
2016-07-28Initial pass on HiDPI supportDrew DeVault
2016-07-18clean up apply_input_configminus
2016-07-17Turn swaybg into a shell surfaceDrew DeVault
2016-06-11couple small fixesZandr Martin
2016-06-11cleanup + add timeouts for pid_workspace listZandr Martin
2016-06-11Merge branch 'master' into assign-commandZandr Martin
2016-06-06Fix segfault when using include with *thuck
This should fix the issue #681
2016-06-06messy, unfinished versionZandr Martin
2016-06-02Initial implementation for floating_maximum_sizeDenis Doria
2016-06-01Clean up not used variablesDenis Doria
2016-06-01Included option floating_minimum_sizeDenis Doria
Values cannot be negative or 0; if so uses the default 75x50. Uses the same syntax as i3: floating_minimum_size <width> x <height>, although the x can be anything.
2016-05-31Initial work for floating view with sane valuesDenis Doria
2016-05-14Support floating_scroll sidewaysMykyta Holubakha
2016-05-08Remove FSB_GAPS_INNER and FSB_GAPS_OUTERMykyta Holubakha
2016-05-07Implemented configurable floating scroll behaviorMykyta Holubakha
2016-05-05sway/config.c: fix double free issue as we need to store path in listDaniel Lockyer
2016-05-01Add input cmd for setting pointer accel profile.Jasen Borisov
2016-04-30sway/config.c: Initialise struct valueDaniel Lockyer