aboutsummaryrefslogtreecommitdiff
path: root/include/swaynag
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-11-06Add missing includes & remove duplicatesFurkan Sahin-0/+4
2022-12-21swaynag: drop swaynag_type.fontFurkan Sahin-1/+0
It's too easy to have this go out of sync with font_description.
2022-07-01Reuse parsed PangoFontDescriptionFurkan Sahin-1/+2
Avoids parsing the configured font each time text is rendered.
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.
2021-03-17swaynag: adds option to set wayland shell layerFurkan Sahin-0/+1
Uses --layer/-y set to overlay|top|bottom|background
2020-09-08swaynag: add details background optionFurkan Sahin-0/+1
Adds a new config option for details background for swaynag issue/#5673
2020-09-02swaynag: adds option to separately specify the text color for buttonsFurkan Sahin-0/+1
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
2019-04-19swaynag: revamp type configsFurkan Sahin-8/+12
This revamps the type configs for swaynag. All sizing attributes for swaynag are now `ssize_t` instead of `uint32_t` to allow for a default value of `-1`, which allows for `0` to be a valid value. Additionally, the initialization of the type configs has been changed from a simple calloc to use a new function `swaynag_type_new`. `swaynag_type_new` calloc's the memory, checks for an allocation failure, sets the name, and all sizes to -1. The layering order has also been changed to default, general config, type config, and as highest priority command line arguments. Finally, `swaynag_type_merge` has been modified to handle the layering and sizing changes.
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-14/+17
2018-07-28swaynag: refactor {sway_,}nagbar to swaynagFurkan Sahin-51/+52
2018-07-28swaynag: split config into own file and fix optindFurkan Sahin-0/+14
2018-07-28swaynag: implement config file supportFurkan Sahin-16/+29
2018-07-27Address first round review for swaynagFurkan Sahin-0/+121