summaryrefslogtreecommitdiffstats
path: root/swaybar
Commit message (Collapse)AuthorAge
* swaybar: only free tokener when using i3bar protocolLibravatar Ian Fan2018-09-18
|
* swaybar: add debugging statements for handling i3bar jsonLibravatar Ian Fan2018-09-18
|
* swaybar: rewrite i3bar protocol handlingLibravatar Ian Fan2018-09-18
| | | | | | | | 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.
* swaybar: rewrite protocol determinationLibravatar Ian Fan2018-09-18
| | | | | | | | This now uses the getline function to receive the header, replacing read_line_buffer, which has been deleted since it is otherwise unused. Furthermore, once the protocol has been determined, the current status is handled immediately to be shown (though this has not been added for the i3bar protocol since it has not yet been rewritten to handle this).
* swaybar: rewrite text protocol handlingLibravatar Ian Fan2018-09-18
| | | | | | 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.
* swaybar: only create i3bar block hotspot if click events are enabledLibravatar Ian Fan2018-09-18
|
* swaybar: send trailing comma with click event jsonLibravatar Ian Fan2018-09-18
|
* swaybar: fix empty function prototypesLibravatar Ian Fan2018-09-18
|
* swaybar: invalidate file descriptors upon closingLibravatar Ian Fan2018-09-18
|
* swaybar: remove block links upon exitLibravatar Ian Fan2018-09-18
|
* swaybar: use output names instead of output indexesLibravatar emersion2018-09-17
|
* bar: remove i3bar_block_free in favour of i3bar_block_unrefLibravatar Ian Fan2018-09-14
|
* i3bar: count references to blocksLibravatar Ian Fan2018-09-12
| | | | | | | | | 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
* Align titles to baselineLibravatar Ryan Dwyer2018-09-08
| | | | | | | | | | | | | This does the following: * Adds a baseline argument to get_text_size (the baseline is the distance from the top of the texture to the baseline). * Stores the baseline in the container when calculating the title height. * Takes the baseline into account when calculating the config's max font height. * When rendering, pads the textures according to the baseline so they line up.
* Fix swaybar block background fill logicLibravatar Jason2018-09-05
| | | Same as #2571 but for 1.0.
* 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: Fix scroll handling on workspace buttonsLibravatar minus2018-07-19
| | | | | | | | | | 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.
* Merge pull request #2281 from pvsr/X11_clickLibravatar emersion2018-07-18
|\ | | | | Send clicks to swaybar blocks as X11 button ids
| * remove unnecessary parensLibravatar Peter Rice2018-07-17
| |
| * send scroll events to swaybar blocksLibravatar Peter Rice2018-07-16
| |
| * make hotspot callback take an x11 button idLibravatar Peter Rice2018-07-16
| |
* | swaybar: Read urgent colors from IPCLibravatar Ryan Dwyer2018-07-17
|/
* swaybar/bg: Fix crash on DPMS offLibravatar minus2018-07-14
| | | | | When turning off displays via DPMS, swaybar and swaybg still tried to render, but did not get a valid buffer, causing them to crash.
* Update for swaywm/wlroots#1126Libravatar emersion2018-07-09
|
* Fix swaybar teardown when workspace buttons hiddenLibravatar Brian Ashworth2018-07-06
|
* Implement mode --pango_markupLibravatar Brian Ashworth2018-07-05
|
* Swaybar: Respect pango_markup configLibravatar Ryan Dwyer2018-05-09
| | | | | Makes swaybar respect the user's pango_markup configuration in the workspace buttons and binding mode indicator.
* Revert "Install swaybar and swaybg under /usr/lib/sway"Libravatar Rostislav Pehlivanov2018-05-06
| | | | This reverts commit f2c209c299889ad965ac995049704b1c46176c6d.
* Revert "Make the LIBDIR path configurable"Libravatar Rostislav Pehlivanov2018-05-06
| | | | This reverts commit 1670b46bf6e56d37e69ab0fa32c6799e83397020.
* Revert "Meson: Replace option `instlibdir` with `libexecdir`"Libravatar Rostislav Pehlivanov2018-05-06
| | | | This reverts commit 830c4ef74c00dbe448da46cdbc576178abc5728e.
* Meson: Replace option `instlibdir` with `libexecdir`Libravatar Nicolas Braud-Santoni2018-05-05
| | | | | Derive a value from it, called `rundir` rather than writing join_paths(libexecdir, 'sway') all over the place.
* Make the LIBDIR path configurableLibravatar Nicolas Braud-Santoni2018-05-05
|
* Install swaybar and swaybg under /usr/lib/swayLibravatar Nicolas Braud-Santoni2018-05-05
|
* Fix a bunch of swaybar memory leaksLibravatar emersion2018-04-24
|
* Work around maybe-uninitialized in bar.cLibravatar Alex Xu (Hello71)2018-04-24
| | | | Fixes #1855.
* Fix swaybar axis event logicLibravatar Scott Anderson2018-04-22
| | | | | | | | | | | Uses 'visible' instead of 'focused', since we may scroll on a bar which isn't the focused output. We can't use "next_on_output" or "prev_on_output" to implement this, because it only modify the focused output. So scrolling on an unfocused output will affect the incorrect one. We just use the "workspace name" command instead.
* Remove void * castsLibravatar Scott Anderson2018-04-21
| | | | They're pointless.
* Remove status command event on errorLibravatar Scott Anderson2018-04-21
| | | | | This prevents very high CPU load when the status command dies, and poll continuously awoken with POLLHUP.
* Change remove_event logicLibravatar Scott Anderson2018-04-21
| | | | | | We defer the removal of entries until after the poll loop has finished. Otherwise we may end up adjusting the poll array while we're still reading from it, causing us to skip events.
* Always send POLLHUP and POLLERR with event loopLibravatar Scott Anderson2018-04-21
|
* Fix memory leak on swaybarLibravatar Bruno Pinto2018-04-20
| | | | | | Code from @NilsBrause Ref #1820
* Set _POSIX_C_SOURCE properlyLibravatar Scott Anderson2018-04-15
|
* Fix separator height calculationLibravatar Drew DeVault2018-04-10
| | | | | | | Fixes #1796 Also rearranged this code to more closely mirror the similar code above so future discrepancies are easier to spot.
* Merge pull request #1792 from RyanDwyer/fix-swaybar-status-blocksLibravatar emersion2018-04-10
|\ | | | | Fix swaybar not showing all status blocks
| * Check height in surface local coordinates and rename some variables.Libravatar Ryan Dwyer2018-04-11
| |
| * Fix swaybar not showing all status blocks.Libravatar Ryan Dwyer2018-04-10
| |
* | 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 swaybar output config.Libravatar Ryan Dwyer2018-04-10
|/
* Fix some more bugsLibravatar Drew DeVault2018-04-09
|