aboutsummaryrefslogtreecommitdiff
path: root/swaybar/bar.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-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