main: fix shell command

This commit is contained in:
2 * r + 2 * t
2025-06-08 13:43:34 +10:00
parent 0d7dd0707a
commit fbbe9b6a33
2 changed files with 7 additions and 9 deletions
+5 -7
View File
@@ -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" complete -c caelestia -n "$seen install && not $seen $commands" -a "$commands"
# Shell # 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" 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 'mpris' -d 'Mpris control'
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' set -l commands getActive
complete -c caelestia -n $not_seen -a 'toggle' -d 'Toggle a window on the focused monitor' complete -c caelestia -n "$seen shell && $seen mpris && not $seen $commands" -a 'getActive' -d 'Get a property from the active mpris player'
complete -c caelestia -n $not_seen -a 'media' -d 'Media commands'
complete -c caelestia -n $not_seen -a 'brightness' -d 'Change brightness'
set -l commands play-pause next previous stop set -l commands play-pause next previous stop
set -l not_seen "$seen shell && $seen media && not $seen $commands" set -l not_seen "$seen shell && $seen media && not $seen $commands"
+2 -2
View File
@@ -9,8 +9,8 @@ if test "$argv[1]" = shell
if test -z "$argv[2..]" if test -z "$argv[2..]"
$C_DATA/shell/run.fish $C_DATA/shell/run.fish
else else
if contains -- 'caelestia' (astal -l) if qs list --all | grep "Config path: $C_DATA/shell/shell.qml" &> /dev/null
astal -i caelestia $argv[2..] qs -p $C_DATA/shell ipc call $argv[2..]
else else
warn 'Shell unavailable' warn 'Shell unavailable'
end end