diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-17 18:13:38 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-17 18:13:38 +1100 |
| commit | 65a3711e247b4c376634faad4e1b14295b9ac57e (patch) | |
| tree | 6a121a30936d6d5eafe59a706a5fb2cb161e21e6 /main.fish | |
| parent | util: return 1 on error (diff) | |
| download | caelestia-cli-65a3711e247b4c376634faad4e1b14295b9ac57e.tar.gz caelestia-cli-65a3711e247b4c376634faad4e1b14295b9ac57e.tar.bz2 caelestia-cli-65a3711e247b4c376634faad4e1b14295b9ac57e.zip | |
clipboard and emoji scripts
Diffstat (limited to 'main.fish')
| -rwxr-xr-x | main.fish | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -24,23 +24,17 @@ if test "$argv[1]" = toggle exit end -if test "$argv[1]" = screenshot - ./screenshot.fish $argv[2..] - 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 -end +set valid_subcommands screenshot workspace-action \ + clipboard clipboard-delete emoji-picker \ + change-wallpaper pip -if test "$argv[1]" = pip - ./pip.fish $argv[2..] +if contains "$argv[1]" $valid_subcommands + ./$argv[1].fish $argv[2..] exit end |