aboutsummaryrefslogtreecommitdiff
path: root/include/swaynag/swaynag.h
AgeCommit message (Collapse)AuthorLines
2023-07-29swaynag: Implement wp_cursor_shape_v1Furkan Sahin-0/+3
2023-01-08swaynag: call swaynag_destroy on clean exitFurkan Sahin-1/+2
And fix the fallout of the swaynag_destroy having evolved without being tested: * wl_display_disconnect was called too early * `button_close` and `swaynag.details.button_details` needed to be heap allocated, since they are added to swaynag.buttons, and all entries of swaynag.buttons are freed in swaynag_destroy * To keep things simpler, disconnect the lifetime of the 'Toggle details' button text config setting from the button itself.
2022-02-28swaynag: allocate button_details with detailsFurkan Sahin-1/+1
They are used together, so it doesn't make sense to allocate them separately.
2021-12-13swaynag: remove xdg-output logicFurkan Sahin-3/+0
We can just get the output name from wl_output directly, now that wl_output version 4 exists.
2020-06-07swaynag: allow specifying more buttons which execute and dismissFurkan Sahin-0/+1
I don't love -z / -Z, but I figure this patch is far from being accepted for other reasons too.
2020-01-03swaynag: Add multi-seat supportFurkan Sahin-1/+9
This also adds cleanup for all seat resources
2018-11-27Implement swaynag -B/--button-no-terminalFurkan Sahin-0/+1
In `i3 4.16`, `i3-nagbar` introduces the flags `-B/--button-no-terminal` to run the action directly instead of inside a terminal. This implements the flags for swaynag for compatibility. Since swaynag does not use an equivalent to `i3-sensible-terminal`, the flags `-b/--button` only uses a terminal when the environment variable `TERMINAL` is set, otherwise it acts the same as these new flags.
2018-08-20Fix bad-free in swaynagFurkan Sahin-1/+1
2018-07-30swaynag: address some more of sircmpwn's commentsFurkan Sahin-1/+2
Fixes segfauls for any case where swaynag->outputs was not inititalized including -h/--help, -v/--version, and invalid arguments. Sets sane defaults for colors not given. Any color not given will fallback to the default color values for type error. Adds support for a hidpi cursor
2018-07-30swaynag: fix hidpiFurkan Sahin-1/+7
2018-07-29swaynag: allow more config optionsFurkan Sahin-11/+0
2018-07-28swaynag: refactor {sway_,}nagbar to swaynagFurkan Sahin-0/+104