aboutsummaryrefslogtreecommitdiff
path: root/include/swaybar
AgeCommit message (Collapse)AuthorLines
2018-11-17Implement strip_workspace_name.Connor E-0/+2
2018-10-18swaybar: separate input code to new fileIan Fan-40/+51
2018-10-15Event loop: Fix memmove and remove extraneous declarationRyan Dwyer-1/+0
2018-10-15Remove timerfd from loop implementationRyan Dwyer-1/+0
timerfd doesn't work on the BSDs, so this replaces it with a timespec for the expiry and uses a poll timeout to check the timers when needed.
2018-10-15Move swaybar's event loop to common directory and refactorRyan Dwyer-26/+7
* The loop functions are now prefixed with `loop_`. * It is now easy to add timers to the loop. * Timers are implemented using pollfd and timerfd, rather than manually checking them when any other event happens to arrive.
2018-10-14swaybar: send signal to status when hiding or showing barIan Fan-0/+3
2018-10-14swaybar: show hidden bar on urgencyIan Fan-1/+1
2018-10-14swaybar: show hidden bar on key eventIan Fan-0/+1
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.
2018-10-14swaybar: handle mode/hidden_state changesIan Fan-0/+19
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.
2018-10-14swaybar: move mode & mode_pango_markup to bar structIan Fan-1/+2
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.
2018-10-14swaybar: add free_hotspots helper functionIan Fan-0/+1
2018-10-14swaybar: annotate wl_list properties in definitionsIan Fan-8/+8
2018-10-14swaybar: save id upon startupIan Fan-2/+4
This adds an id property to the bar, which will be used to filter barconfig_update events
2018-10-09Implement bar bindsymBrian Ashworth-0/+9
2018-10-02swaybar: add leading comma to click event JSONIan Fan-0/+1
2018-09-30Turn funcs() into funcs(void)Arkadiusz Hiler-1/+1
If they really do not take undefined number of arguments.
2018-09-30Remove declarations that do no have definitionsArkadiusz Hiler-60/+0
There is a couple of leftover header files/declarations, which were fronting implementations that are long gone. Let's get rid of them.
2018-09-30swaybar: synchronize rendering to output framesIan Fan-3/+3
2018-09-28swaybar: move i3bar definitions into separate fileIan Fan-26/+34
2018-09-28swaybar: remove unused focused_output propertyIan Fan-1/+0
2018-09-28swaybar: fail if bar id is invalidIan Fan-4/+2
2018-09-22swaybar, swaylock, & tree/container: Set cairo font options to render text ↵Geoff Greer-0/+1
and lines with subpixel hinting (if available).
2018-09-18swaybar: rewrite i3bar protocol handlingIan Fan-18/+6
This now correctly handles an incoming json infinite array by shifting most of the heavy listing to the json-c parser, as well as sending multiple statuses at once. It also removes the struct i3bar_protocol_state and moves its members into the status_line struct, allowing the same buffer to be used for both protocols.
2018-09-18swaybar: rewrite text protocol handlingIan Fan-6/+2
This now uses getline to correctly handle multiple or long statuses. It also removes the struct text_protocol_state and moves its members into the status_line struct.
2018-09-18swaybar: fix empty function prototypesIan Fan-2/+2
2018-09-17swaybar: use output names instead of output indexesemersion-1/+4
2018-09-12i3bar: count references to blocksIan Fan-1/+2
This prevents blocks from being destroyed before their hotspots are destroyed, in case it is used for a pending click event that fires between the bar receiving a new status, which destroys the block, and the bar rendering the new status, which destroys the hotspot; this problem can be easily produced by scrolling on a block that immediately causes a new status to be sent, with multiple outputs
2018-07-19swaybar: Fix scroll handling on workspace buttonsminus-2/+7
As well as ignoring scroll events on status elements when click_events is enabled. Previously, using the scroll wheel on a workspace button would switch to that workspace instead of scrolling through them. Clicks and scrolling on status elements would always be processed by swaybar, too. So in case you were using scrolling as volume control on a status item, swaybar would additionally scroll through your workspaces.
2018-07-16make hotspot callback take an x11 button idPeter Rice-2/+17
2018-04-24Fix a bunch of swaybar memory leaksemersion-1/+4
2018-04-05Handle output removal on swaybarDrew DeVault-0/+1
2018-04-03Add hidpi support to swaybarDrew DeVault-0/+1
2018-04-02Send click events for i3bar blocksDrew DeVault-2/+4
2018-04-02Render i3bar blocksDrew DeVault-4/+4
2018-04-02Demarcate i3bar JSON into individual updatesDrew DeVault-2/+47
2018-03-30Implement workspace switch on clickDrew DeVault-2/+11
2018-03-30Implement scroll wheel workspace switchingDrew DeVault-0/+1
2018-03-30Initialize seat pointer in swaybarDrew DeVault-0/+10
2018-03-30Fix issues with swaybar on DRMDrew DeVault-0/+1
2018-03-29Implement status lineDrew DeVault-48/+18
Does not yet support i3bar json protocol
2018-03-29Pixel-perfect renderingDrew DeVault-0/+1
2018-03-29Re-render bar on IPC updatesDrew DeVault-1/+2
2018-03-29Round up workspaces on each outputDrew DeVault-3/+16
2018-03-29Only utilize the configured outputsDrew DeVault-1/+2
2018-03-29Wire up basic IPC supportDrew DeVault-12/+13
2018-03-29Start port of swaybar to layer shellDrew DeVault-132/+48
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.
2017-11-05Fix init_tray function declarationAdam Mizerski-1/+1
This fixes compilation failure: error: call to function 'init_tray' without a real prototype
2017-08-29click_events as documented at https://i3wm.org/docs/i3bar-protocol.htmlakokshar@redhat.com-0/+11
2017-07-13Don't trust SNI names, fixes #1274Calvin Lee-0/+1
If an item doesn't have a well-formed name, it will not be added to the tray.
2017-06-13Remove Xembed SupportCalvin Lee-3/+0
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.