Commit graph

15 commits

Author SHA1 Message Date
Johan Malm
c63d35c942 Add labnag
Based on swaynag (https://github.com/swaywm/sway/tree/master/swaynag)

Copied at commit:
03483ff370

Contains the following modifiations:

- Some functional changes including:
  - Disable exclusive-zone by default (Written-by: @Consolatis) and add
    command line option -x|--exclusive-zone
  - Add close timeout (Written-by: @Consolatis) and -t|--timeout option
  - Use index of button (from right-to-left) for exit code
  - Disable reading from config file and remove associated --type option
- Refactoring including:
  - Use wlr_log() instead of the log.{c,h} functions
  - Use wl_list instead of sway's list.c implementation
  - In the pango wrapper functions, use glib's g_strdup_vprintf() rather
    than the original stringop.c functions
- Align with labwc coding style to pass checkpatch.pl
- Re-licenced from MIT to GPL-2.0, and add Copyright notices for original
  authors

v2

- Remove option -s|--dismiss-button and the default "X" button. To get
  such a button, "-Z X :"
- Remove options -b and -z because there is no requirement to run
  in a terminal.
- Remove *-no-terminal from options --button and --button-dismiss because
  commands are now always run directly without a terminal.

v3

- Allow -B/-Z options without action-argument
- Invert button order of -B/-Z so that `labnag -m foo -Z x -Z y -Z z`
  results in three buttons with "x" furthest to the left, and "z" on the
  right (rather than the other way around).
- Use signalfd() to prevent race conditions on SIGTERM

v4

- Limit number of stdin lines to 200 to avoid hogging CPU

Co-Authored-by: tokyo4j
2025-08-09 10:44:03 +01:00
Johan Malm
6fd14987dd build: refactor in preparation for man page not beginning with 'labwc-'
No functional change intended.
2025-08-09 10:44:03 +01:00
Narrat
bbe60088e5 docs: add example shutdown file
Closes #1809
2024-06-01 23:53:34 +02:00
Johan Malm
af56b68041 theme: support theme setting override
...by reading <config-dir>/themerc-override where <config-dir> is normally
$HOME/.config/labwc can be other locations as described in labwc-config(5)
and can also be specified by the command line option -C.

The reason for supporting theme override is to give users more fine-
grained control of settings without making local copies and modifying
themes.
2023-01-03 21:21:21 +00:00
Consolatis
e95779540c docs: add basic README 2022-11-28 12:09:24 +01:00
Consolatis
b839bbe0a9 docs: install example configs 2022-11-28 12:09:24 +01:00
Johan Malm
3ca862b9ff docs/meson.build: remove environment following 5de92c8 2022-06-01 18:14:26 +01:00
Johan Malm
d6af585837 build: remove scdoc stdin/stdout hack
From version 0.59.0, meson supports feeding the input file as stdin.
See sway@9727db67
2021-09-22 20:21:00 +01:00
Johan Malm
fbfa0c4a9e Add labwc-environment(5) 2021-04-10 09:17:41 +01:00
Johan Malm
2061c6af14 Add labwc-menu(5) 2021-03-19 21:20:54 +00:00
Johan Malm
5a36fef547 Convert man pages from md to scd 2021-03-05 22:14:02 +00:00
Jan Beich
945ae1cf55 docs: move manpages to proper section directories
Arbitrary sections may not be supported by all man(1) implementations.
labwc manpages have numeric sections but installed in the wrong place:

$ meson setup --prefix=/usr _build && meson install -C _build
[...]
Installing docs/labwc.1 to /usr/share/man/man.1
Installing docs/labwc-config.5 to /usr/share/man/man-config.5
Installing docs/labwc-theme.5 to /usr/share/man/man-theme.5
Installing docs/labwc-actions.5 to /usr/share/man/man-actions.5
[...]
2021-03-04 08:40:36 +00:00
Jan Beich
2dd5fce844 Add man-pages option like swaywm/sway@ba16f16e4d 2021-03-04 06:35:15 +00:00
Johan Malm
98c556be2a Split labwc(5) into {-config, -theme, -actions} 2020-09-02 21:09:38 +01:00
Johan Malm
93d5809414 Add labwc(5) 2020-07-22 21:58:27 +01:00