aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--completions/fish/swaynag.fish29
-rw-r--r--meson.build1
2 files changed, 30 insertions, 0 deletions
diff --git a/completions/fish/swaynag.fish b/completions/fish/swaynag.fish
new file mode 100644
index 00000000..784d7fad
--- /dev/null
+++ b/completions/fish/swaynag.fish
@@ -0,0 +1,29 @@
1# swaynag
2complete -c swaynag -s C -l config --description 'The config file to use. Default: $HOME/.swaylock/config, $XDG_CONFIG_HOME/swaylock/config, and SYSCONFDIR/swaylock/config.'
3complete -c swaynag -s d -l debug --description 'Enable debugging.'
4complete -c swaynag -s e -l edge --description 'Set the edge to use: top or bottom'
5complete -c swaynag -s f -l font --description 'Set the font to use.'
6complete -c swaynag -s h -l help --description 'Show help message and quit.'
7complete -c swaynag -s b -l button --description 'Create a button with a text and an action which is executed when pressed. Multiple buttons can be defined by providing the flag multiple times.'
8complete -c swaynag -s l -l detailed-message --description 'Read a detailed message from stdin. A button to toggle details will be added. Details are shown in a scrollable multi-line text area.'
9complete -c swaynag -s L -l detailed-button --description 'Set the text for the button that toggles details. This has no effect if there is not a detailed message. The default is "Toggle details".'
10complete -c swaynag -s m -l message --description 'Set the message text.'
11complete -c swaynag -s o -l output --description 'Set the output to use.'
12complete -c swaynag -s s -l dismiss-button --description 'Sets the text for the dismiss nagbar button. The default is "X".'
13complete -c swaynag -s t -l type --description 'Set the message type. Two types are created by default "error" and "warning". Custom types can be defined in the config file.'
14complete -c swaynag -s v -l version --description 'Show the version number and quit.'
15
16# Appearance
17complete -c swaynag -l background --description 'Set the color of the background.'
18complete -c swaynag -l border --description 'Set the color of the border.'
19complete -c swaynag -l border-bottom --description 'Set the color of the bottom border.'
20complete -c swaynag -l button-background --description 'Set the color for the background for buttons.'
21complete -c swaynag -l text --description 'Set the text color.'
22complete -c swaynag -l border-bottom-size --description 'Set the thickness of the bottom border.'
23complete -c swaynag -l message-padding --description 'Set the padding for the message.'
24complete -c swaynag -l details-border-size --description 'Set the thickness for the details border.'
25complete -c swaynag -l button-border-size --description 'Set the thickness for the button border.'
26complete -c swaynag -l button-gap --description 'Set the size of the gap between buttons.'
27complete -c swaynag -l button-dismiss-gap --description 'Set the size of the gap between the dismiss button and another button.'
28complete -c swaynag -l button-margin-right --description 'Set the margin from the right of the dismiss button to edge.'
29complete -c swaynag -l button-padding --description 'Set the padding for the button text.'
diff --git a/meson.build b/meson.build
index 4687986b..6b23b4e3 100644
--- a/meson.build
+++ b/meson.build
@@ -247,6 +247,7 @@ if (get_option('fish-completions'))
247 'completions/fish/swayidle.fish', 247 'completions/fish/swayidle.fish',
248 'completions/fish/swaylock.fish', 248 'completions/fish/swaylock.fish',
249 'completions/fish/swaymsg.fish', 249 'completions/fish/swaymsg.fish',
250 'completions/fish/swaynag.fish',
250 ) 251 )
251 fish_install_dir = datadir + '/fish/completions' 252 fish_install_dir = datadir + '/fish/completions'
252 253