summaryrefslogtreecommitdiff
path: root/main.fish
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-17 16:43:58 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-17 16:43:58 +1100
commit47733e964a6017e81f04fa1f0e620ed01b064822 (patch)
treeffa16c626e49063e741a978b66cee8c3366be6d2 /main.fish
parentmain: message shell (diff)
downloadcaelestia-cli-47733e964a6017e81f04fa1f0e620ed01b064822.tar.gz
caelestia-cli-47733e964a6017e81f04fa1f0e620ed01b064822.tar.bz2
caelestia-cli-47733e964a6017e81f04fa1f0e620ed01b064822.zip
main: workspace action
Diffstat (limited to 'main.fish')
-rwxr-xr-xmain.fish10
1 files changed, 8 insertions, 2 deletions
diff --git a/main.fish b/main.fish
index 9381ddb..41fd6a3 100755
--- a/main.fish
+++ b/main.fish
@@ -1,6 +1,6 @@
#!/bin/fish
-cd (dirname (status filename)) || exit
+cd (dirname (realpath (status filename))) || exit
. ./util.fish
@@ -18,6 +18,11 @@ if test "$argv[1]" = shell
exit
end
+if test "$argv[1]" = workspace-action
+ ./workspace-action.sh $argv[2..]
+ exit
+end
+
if test "$argv[1]" = change-wallpaper
./change-wallpaper.fish $argv[2..]
exit
@@ -27,8 +32,9 @@ test "$argv[1]" != help && error "Unknown command: $argv[1]"
echo 'Usage: caelestia COMMAND'
echo
-echo 'COMMAND := help | shell | change-wallpaper'
+echo 'COMMAND := help | shell | workspace-action | change-wallpaper'
echo
echo ' help: show this help message'
echo ' shell: send a message to the shell'
+echo ' workspace-action: execute a Hyprland workspace dispatcher in the current group'
echo ' change-wallpaper: change the wallpaper'