aboutsummaryrefslogtreecommitdiff
path: root/swaybar/bar.c
AgeCommit message (Collapse)Author
2017-06-29Revert "swaybar: Group child processes for signalling"Drew DeVault
This reverts commit 8f4bc0a3741b63c64bb6059bb632e7584c595d14.
2017-06-14Merge branch 'master' into trayDrew DeVault
2017-06-13Remove Xembed SupportCalvin Lee
Xembed support is premature in sway and should be postponed. This commit only removes swaybar starting xembedsniproxy, if users would like, they can still start xembedsniproxy manually, however there will be no official support.
2017-06-12swaybar: Group child processes for signallingYury Krivopalov
Fixes child proccess killing, when status_command is a complex command like "i3status | wrapper.sh". Set the process group id of the child process by calling `setpgid` after forking and before calling `exec`. The process group ID will be set to the process ID of the forked process. Processes spawned by this child process will also have this group ID. Send signals to the process group with `killpg`. This will send the signal to all of the process group.
2017-06-07Reorganize Tray CodeCalvin Lee
Remove tray code from bar.c and render.c
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-03-10UnGNUify the codebaseDrew DeVault
2016-09-05Add client support for HiDPIDrew DeVault
This adds HiDPI support to swaybar, swaybg, and swaylock.
2016-09-05Initial testing on hidpi clientsDrew DeVault
2016-09-01Reorganize includesDrew DeVault
2016-07-18Fix a warningHummer12007
2016-07-17Implement configurable wrapping on bar ws scrollDrew DeVault
2016-07-16Fix #753Drew DeVault
2016-07-15Change workspace when mouse wheel is scrolled while hovering over the barDavid Eklov
2016-07-15Rename pointer_input::notify to indicate that is called on button clicksDavid Eklov
2016-07-14Compute what workspace button is clickedDavid Eklov
This commit does not do anything with this information other than logging it.
2016-07-14Setup to receive mouse click events and log themDavid Eklov
2016-07-04swaybar: Make swaybar a shell surfaceDavid Eklov
2016-04-29Fix another -Wunused-resultDrew DeVault
2016-03-31Stop swaybar crashing without argscrondog
2016-02-27Poll before wl_display_dispatchMikkel Oscar Lyderik
2016-02-27Make single bar handle multiple outputsMikkel Oscar Lyderik
2016-01-24swaybar: move headers to include/barMikkel Oscar Lyderik
2016-01-24swaybar: rename state to barMikkel Oscar Lyderik