aboutsummaryrefslogtreecommitdiff
path: root/swaynag/types.c
AgeCommit message (Collapse)AuthorLines
2024-02-23Define _POSIX_C_SOURCE globallySimon Ser-1/+0
See discussion in https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4555
2022-12-22swaynag: drop swaynag_type.fontSimon Ser-7/+1
It's too easy to have this go out of sync with font_description.
2022-12-22swaynag: fix NULL font descriptionSimon Ser-0/+7
The font description was only set if provided on the CLI. It was left NULL for the defaults and when reading from the config file. Closes: https://github.com/swaywm/sway/issues/7186
2021-06-17swaynag: adds option to set wayland shell layerJames Edwards-Jones-0/+6
Uses --layer/-y set to overlay|top|bottom|background
2020-09-14swaynag: add details background optionMustafa Abdul-Kader-0/+7
Adds a new config option for details background for swaynag issue/#5673
2020-09-04swaynag: adds option to separately specify the text color for buttonsoliver-giersch-0/+8
2019-04-20swaynag: revamp type configsBrian Ashworth-27/+37
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-12-09Cleanup list codeIan Fan-4/+2
2018-11-25Replace _XOPEN_SOURCE with _POSIX_C_SOURCEemersion-1/+1
And make sure we don't define both in the same source file.
2018-08-01swaynag: swaybar like default colorsBrian Ashworth-4/+9
2018-08-01swaynag: address some more of sircmpwn's commentsBrian Ashworth-5/+5
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-08-01swaynag: allow more config optionsBrian Ashworth-58/+92
2018-08-01swaynag: refactor {sway_,}nagbar to swaynagBrian Ashworth-15/+15
2018-08-01swaynag: split config into own file and fix optindBrian Ashworth-0/+1
2018-08-01swaynag: implement config file supportBrian Ashworth-0/+116