summaryrefslogtreecommitdiff
path: root/completions
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-08 13:43:34 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-08 13:43:34 +1000
commitfbbe9b6a33ebbafb38f99be0c1e4db43eda8c2aa (patch)
tree22905666288b1c4cd9d5d2072f7313b84cc75dca /completions
parentinstall: shell install add lm_sensors (diff)
downloadcaelestia-cli-fbbe9b6a33ebbafb38f99be0c1e4db43eda8c2aa.tar.gz
caelestia-cli-fbbe9b6a33ebbafb38f99be0c1e4db43eda8c2aa.tar.bz2
caelestia-cli-fbbe9b6a33ebbafb38f99be0c1e4db43eda8c2aa.zip
main: fix shell command
Diffstat (limited to 'completions')
-rw-r--r--completions/caelestia.fish12
1 files changed, 5 insertions, 7 deletions
diff --git a/completions/caelestia.fish b/completions/caelestia.fish
index 1a6a065..5e8de47 100644
--- a/completions/caelestia.fish
+++ b/completions/caelestia.fish
@@ -27,14 +27,12 @@ set -l commands all btop discord firefox fish foot fuzzel hypr safeeyes scripts
complete -c caelestia -n "$seen install && not $seen $commands" -a "$commands"
# Shell
-set -l commands quit reload-css reload-config show brightness media
+set -l commands mpris
set -l not_seen "$seen shell && not $seen $commands"
-complete -c caelestia -n $not_seen -a 'reload-css' -d 'Reload shell styles'
-complete -c caelestia -n $not_seen -a 'reload-config' -d 'Reload shell config'
-complete -c caelestia -n $not_seen -a 'show' -d 'Show a window'
-complete -c caelestia -n $not_seen -a 'toggle' -d 'Toggle a window on the focused monitor'
-complete -c caelestia -n $not_seen -a 'media' -d 'Media commands'
-complete -c caelestia -n $not_seen -a 'brightness' -d 'Change brightness'
+complete -c caelestia -n $not_seen -a 'mpris' -d 'Mpris control'
+
+set -l commands getActive
+complete -c caelestia -n "$seen shell && $seen mpris && not $seen $commands" -a 'getActive' -d 'Get a property from the active mpris player'
set -l commands play-pause next previous stop
set -l not_seen "$seen shell && $seen media && not $seen $commands"