summaryrefslogtreecommitdiffstats
path: root/swaybar
Commit message (Collapse)AuthorAge
...
* swaybar: add StatusNotifierItem to trayLibravatar Ian Fan2018-12-31
|
* swaybar: add StatusNotifierHost to trayLibravatar Ian Fan2018-12-31
|
* swaybar: implement icon themes and lookup for trayLibravatar Ian Fan2018-12-31
|
* swaybar: add StatusNotifierWatcher to trayLibravatar Ian Fan2018-12-31
|
* swaybar: add skeleton dbus code to trayLibravatar Ian Fan2018-12-31
|
* swaybar: add tray interfaceLibravatar Ian Fan2018-12-31
|
* swaybar: fix double freeLibravatar Mack Straight2018-12-31
| | | | | | | | | | | status->text should not be freed here. There are two scenarios: * status->text has been set to an error by status_error. In this case the value shouldn't be freed because it's always a reference to a constant. * status->text has been set to status->buffer because the bar is in text protocol mode. In this case it's a double free because the buffer is already freed after.
* swaybar: fix cursor scaleLibravatar Brian Ashworth2018-12-15
| | | | | | | | | | | | This fixes a few issues with swaybar's cursor scaling: 1. The cursor scale is now changed when the output scale changes 2. The cursor scale is no longer bound by the max output scale when swaybar is launched 3. Related to the previous item, the cursor is no longer tiny on low scale outputs after the max output scale has changed This also bumps up `wl_compositor` to version 4 to allow usage of `wl_surface_damage_buffer`.
* swaybar: fix sep block width for mixed scalesLibravatar Brian Ashworth2018-12-12
| | | | | | | | | | | | | When there are outputs with mixed scales, it was possible for swaybar to alter `block->separator_block_width` for an output with a higher scale, and use the changed value for a lower scale output. This caused there to be larger than normal separation between blocks on the lower scale outputs. The issue is more obvious the larger the scale difference between the highest scale output and the lowest scale output. This fixes the issue by using a local variable that is originally set to `block->separator_block_width` for rendering, but if it needs to be increased, the local variable is the only thing touched.
* swaybar: handle block->urgentLibravatar Brian Ashworth2018-12-12
| | | | | | | When `block->urgent` is set, use the urgent colors. This matches i3bar's behavior. Previously, swaybar just ignored the property. This also adds in rendering for right borders, which was missing.
* Add relative coordinates in JSON for i3bar click eventsLibravatar Hristo Venev2018-12-04
| | | | Compatibility with i3 commit 161db6f17d734ac9deb0a20e81b78d4b2a92ce68.
* Implement bar gapsLibravatar Brian Ashworth2018-11-28
| | | | | | | | | Adds the bar subcommand `gaps <amount>|<horizontal> <vertical>|<top> <right> <bottom> <left>` to set gaps for swaybar. Due to restrictions on margins for a layer_surface, only the sides that are anchored to an edge of the screen can have gaps. Since there is support for per-side outer gaps for workspaces, those should be able to be used instead for the last side.
* Replace _XOPEN_SOURCE with _POSIX_C_SOURCELibravatar emersion2018-11-25
| | | | And make sure we don't define both in the same source file.
* Merge pull request #3083 from c-edw/feature/StripWorkspaceNameLibravatar emersion2018-11-19
|\ | | | | Implement strip_workspace_name.
| * Implement strip_workspace_name.Libravatar Connor E2018-11-17
| |
* | More frees.Libravatar Connor E2018-11-13
| |
* | Add some missing frees.Libravatar Connor E2018-11-13
|/
* swaybar: when scrolling, check that there are workspaces to scroll onLibravatar Ian Fan2018-10-25
|
* swaybar: fix scrolling behaviourLibravatar Ian Fan2018-10-25
| | | | | 1. wrap_scroll has been fixed 2. release bindings are checked when returning early
* swaybar: reverse order of workspaces listLibravatar Ian Fan2018-10-25
| | | | | This makes it congruent with its visual appearance, making it easier to reason about.
* Merge pull request #2925 from ianyfan/swaylockLibravatar Drew DeVault2018-10-24
|\ | | | | swaylock: exit early if unable to get input inhibitor
| * swaybar: exit on display errorLibravatar Ian Fan2018-10-23
| |
* | swaybar: absorb bar_init function into bar_setupLibravatar Ian Fan2018-10-23
|/
* Fix swaybar crash when there's no status_commandLibravatar Ryan Dwyer2018-10-23
|
* swaybar: fix hotplugLibravatar emersion2018-10-21
|
* swaybar: render with minimum height, nominally text heightLibravatar Ian Fan2018-10-20
|
* Put swaybar in overlay layer when using mode hideLibravatar Ryan Dwyer2018-10-20
| | | | This allows the bar to render over fullscreen views.
* swaybar: disallow left and right position and print error on defaultLibravatar Rouven Czerwinski2018-10-20
| | | | | | | | The positions "left" and "right" are not allowed by the man page, remove them from the allowed positions. Also print an error to stderr if we default to the bottom position. Fixes #2878
* missing headers for swaybar/input.cLibravatar ossi.ahosalmi2018-10-19
|
* swaybar: separate input code to new fileLibravatar Ian Fan2018-10-18
|
* Sway clients: Exit gracefully when compositor is unavailableLibravatar Ryan Dwyer2018-10-15
|
* Remove timerfd from loop implementationLibravatar Ryan Dwyer2018-10-15
| | | | | 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.
* Move swaybar's event loop to common directory and refactorLibravatar Ryan Dwyer2018-10-15
| | | | | | | * 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.
* swaybar: when hiding bar, save old height to be restored upon reshowLibravatar Ian Fan2018-10-14
| | | | | | | | Previously, when the bar was hidden, the height would be set to 0. This meant that if the bar was empty upon reshow, it would not render since the height was still 0, which made it seem there was a problem. Now, the height is not reset, but the width is, to indicate upon reshow that the layer surface needed reconfiguring.
* swaybar: send signal to status when hiding or showing barLibravatar Ian Fan2018-10-14
|
* 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 send initial workspace request if workspace buttons are enabledLibravatar Ian Fan2018-10-14
|
* swaybar: add free_hotspots helper functionLibravatar Ian Fan2018-10-14
|
* 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
* Merge branch 'master' into bar-bindsymLibravatar Ian Fan2018-10-10
|\
| * Fix program name in version stringsLibravatar Ryan Dwyer2018-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | | When running swaymsg -v, the version returned is actually the version of swaymsg itself, yet the message displayed was "sway version <version>". This can create confusion if users update sway and swaymsg but don't restart sway, then use swaymsg to check the version. This patch changes the wording to be "swaymsg version <version>" instead, and likewise for swaybar. To get the version of a running sway instance, users should run swaymsg -t get_version.
* | bar-bindsym: address ianyfan's commentsLibravatar Brian Ashworth2018-10-09
| |
* | Implement bar bindsymLibravatar Brian Ashworth2018-10-09
|/
* swaybar: allow null status_commandLibravatar Ryan Dwyer2018-10-08
| | | | | | | | | Sway sets a default status_command which runs date every second. This patch removes this behaviour so the user can have a NULL status bar if desired. I had to swap swaybar's event_loop_poll and wl_display_flush so that it would map the initial surface.
* swaybar: fix binding to wl_pointer multiple timesLibravatar emersion2018-10-06
|