aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar
Commit message (Collapse)AuthorAge
* 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
|
* swaybar: add leading comma to click event JSONLibravatar Ian Fan2018-10-02
|
* Add support for installing binaries with DT_RPATHLibravatar Arkadiusz Hiler2018-09-30
| | | | | | | | | | | | | | It's better to use DT_RPATH dynamic section of the elf binary to store the paths of libraries to load instead of overwriting LD_LIBRARY_PATH for the whole environment, causing surprises. This solution is much more transparent and perfectly suitable for running contained installations of wayland/wlroots/sway. The code unsetting the LD_LIBRARY_PATH/LD_PRELOAD was also deleted as it's a placebo security at best - we should trust the execution path that leads us to running sway, and it's way too late to care about those variables since we already started executing our compositor, thus we would be compromised anyway.
* Turn funcs() into funcs(void)Libravatar Arkadiusz Hiler2018-09-30
| | | | If they really do not take undefined number of arguments.
* swaybar: synchronize rendering to output framesLibravatar Ian Fan2018-09-30
|
* swaybar: trim function prototypesLibravatar Ian Fan2018-09-28
|
* swaybar: move i3bar definitions into separate fileLibravatar Ian Fan2018-09-28
|
* swaybar: remove unused focused_output propertyLibravatar Ian Fan2018-09-28
|
* swaybar: fail if bar id is invalidLibravatar Ian Fan2018-09-28
|
* Replace getdelim to make swaybar work on FreeBSDLibravatar sghctoma2018-09-26
| | | | | | | | | This commit fixes a segfault in swaybar on FreeBSD that was caused by using getdelim with EOF as delimiter on an infinite stream. The FreeBSD implementation handles the "no more data, delimiter not found, and EOF not reached" scenario as an error, so it can't be used to read the output of status command. This commit replaces the getline/getdelim calls with reading all available data from the stream in one go.
* swaybar, swaylock, & tree/container: Set cairo font options to render text ↵Libravatar Geoff Greer2018-09-22
| | | | and lines with subpixel hinting (if available).
* swaybar: explicitly check return value of getdelimLibravatar Ian Fan2018-09-22
| | | | | | This prevents an signed-to-unsigned conversion error on buffer_index if getdelim fails and returns -1, which caused swaybar to try to search the header for the array and immediately failing
* Merge branch 'master' into swaybar-hotplugLibravatar Brian Ashworth2018-09-21
|\
| * swaybar: log invalid i3bar jsonLibravatar Ian Fan2018-09-21
| |
| * swaybar: reset tokener if json is incompleteLibravatar Ian Fan2018-09-21
| | | | | | | | | | | | | | | | If the tokener parses incomplete json, it sets its error value to json_tokener_continue. This means that extra json should be provided, but the code was providing the entire object again. In the interest of simplicity, the tokener is reset so that buffer_pos always points to the start of the current object.
| * swaybar: update buffer_pos when moving object to start of bufferLibravatar Ian Fan2018-09-21
| |
* | swaybar: don't wl_display_roundtrip on each frameLibravatar emersion2018-09-20
| | | | | | | | | | | | | | This was the source of numerous bugs, from hotplug events not being received to segfaults because wl_display_roundtrip was making the bar process unplug events while blocking in an iteration over all outputs.
* | swaybar: handle hotpluggingLibravatar emersion2018-09-20
|/ | | | Don't kill and respawn swaybars on hotplug.
* 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
|