aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar/ipc.c
Commit message (Collapse)AuthorAge
* swaybar: show hidden bar on urgencyLibravatar Ian Fan2018-10-14
|
* swaybar: show hidden bar on key eventLibravatar Ian Fan2018-10-14
| | | | | | Since wayland does not currently allow swaybar to create global keybinds, this is handled within sway and sent to the bar using a custom event, so as not to pollute existing events, called bar_state_update.
* swaybar: handle mode/hidden_state changesLibravatar Ian Fan2018-10-14
| | | | | | | | | As well as adding the hidden_state property to the bar config struct, this commit handles barconfig_update events when the mode or hidden_state changes, and uses a new function determine_bar_visibility to hide or show the bar as required, using, respectively, destroy_layer_surface, which is also newly added, and add_layer_surface, which has been changed to allow dynamically adding the surface.
* swaybar: streamline ipc handlingLibravatar Ian Fan2018-10-14
| | | | | | | The received json is handled outside of the case statement, which will allow better extensibility. This commit also introduces the variable bar_is_dirty, the return value signifying whether the bar requires rendering.
* swaybar: move mode & mode_pango_markup to bar structLibravatar Ian Fan2018-10-14
| | | | | | This distinguishes the binding mode from the distinct config mode, as well as removing mode_pango_markup from the config struct where it should not be present.
* swaybar: only subscribe to required eventsLibravatar Ian Fan2018-10-14
| | | | | This adds barconfig_update to the list of subscribed events, as well as checking when the other events need to be subscribed to.
* swaybar: save id upon startupLibravatar Ian Fan2018-10-14
| | | | | This adds an id property to the bar, which will be used to filter barconfig_update events
* bar-bindsym: address ianyfan's commentsLibravatar Brian Ashworth2018-10-09
|
* Implement bar bindsymLibravatar Brian Ashworth2018-10-09
|
* swaybar: remove unused focused_output propertyLibravatar Ian Fan2018-09-28
|
* swaybar: fail if bar id is invalidLibravatar Ian Fan2018-09-28
|
* Change _XOPEN_SOURCE defines to _POSIX_C_SOURCELibravatar sghctoma2018-09-03
|
* Fix feature macros for FreeBSDLibravatar sghctoma2018-08-30
| | | | | On FreeBSD, snprintf and vsnprintf are visible only if _XOPEN_SOURCE >= 600.
* swaybar: Read urgent colors from IPCLibravatar Ryan Dwyer2018-07-17
|
* Update for swaywm/wlroots#1126Libravatar emersion2018-07-09
|
* Fix a bunch of swaybar memory leaksLibravatar emersion2018-04-24
|
* fix swaybar ipc handlingLibravatar db2018-04-10
| | | | | | | Swap return with break in IPC_EVENT_WORKSPACE case to free resp. Change default return value to true. This causes IPC_EVENT_MODE changes to be rendered instantly.
* Fix workspaces not updated on swaybarLibravatar Drew DeVault2018-04-06
|
* Handle output removal on swaybarLibravatar Drew DeVault2018-04-05
|
* Render i3bar blocksLibravatar Drew DeVault2018-04-02
|
* Implement scroll wheel workspace switchingLibravatar Drew DeVault2018-03-30
|
* Fix issues with swaybar on DRMLibravatar Drew DeVault2018-03-30
|
* Fixed laggy focused output booleanLibravatar Drew DeVault2018-03-29
|
* Pixel-perfect renderingLibravatar Drew DeVault2018-03-29
|
* Add binding mode indicatorLibravatar Drew DeVault2018-03-29
|
* Re-render bar on IPC updatesLibravatar Drew DeVault2018-03-29
|
* Round up workspaces on each outputLibravatar Drew DeVault2018-03-29
|
* Only utilize the configured outputsLibravatar Drew DeVault2018-03-29
|
* Wire up basic IPC supportLibravatar Drew DeVault2018-03-29
|
* Start port of swaybar to layer shellLibravatar Drew DeVault2018-03-29
| | | | | | This starts up the event loop and wayland display and shims out the basic top level rendering concepts. Also includes some changes to incorporate pango into the 1.x codebase properly.
* Implement Tray IconsLibravatar Calvin Lee2017-06-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* UnGNUify the codebaseLibravatar Drew DeVault2017-03-10
|
* Handle malloc failure in ipc_recv_responseLibravatar Drew DeVault2016-12-15
|
* add bar colours for focused_(workspace|statusline|separator)Libravatar D.B2016-11-02
| | | | | If these aren't defined in config, color settings without 'focused_' prefix are used as a fallback.
* Fix swaybar when running on named outputs.Libravatar Ryan Dwyer2016-09-17
| | | | | | | | | | 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.
* swaybar sends workspace name in quotesLibravatar D.B2016-09-12
| | | | fixes #894
* Reorganize includesLibravatar Drew DeVault2016-09-01
|
* Implement configurable wrapping on bar ws scrollLibravatar Drew DeVault2016-07-17
|
* Send command to sway to change workspace when workspace button is clickedLibravatar David Eklov2016-07-14
|
* Compute what workspace button is clickedLibravatar David Eklov2016-07-14
| | | | This commit does not do anything with this information other than logging it.
* Renamed to pango_markupLibravatar Mykyta Holubakha2016-04-24
|
* Added plaintext_markup to swaybar IPCLibravatar Mykyta Holubakha2016-04-24
|
* Differentiate between all or no outputsLibravatar Mikkel Oscar Lyderik2016-02-27
|
* Make single bar handle multiple outputsLibravatar Mikkel Oscar Lyderik2016-02-27
|
* swaybar: move headers to include/barLibravatar Mikkel Oscar Lyderik2016-01-24
|
* swaybar: rename state to barLibravatar Mikkel Oscar Lyderik2016-01-24
|
* swaybar: Move swaybar_teardown to free_stateLibravatar Mikkel Oscar Lyderik2016-01-24
|
* swaybar: move ipc stuff to ipc.{h,c}Libravatar Mikkel Oscar Lyderik2016-01-24