summaryrefslogtreecommitdiff
path: root/toggles
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-31 18:16:04 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-31 18:16:04 +1100
commit9f29e9e6763eb33ba63133955d67556542249be9 (patch)
treeabe10bfca1081b7f0225dd50a2d5655a9fbc7667 /toggles
parentscheme: smart sort + mixing (diff)
downloadcaelestia-cli-9f29e9e6763eb33ba63133955d67556542249be9.tar.gz
caelestia-cli-9f29e9e6763eb33ba63133955d67556542249be9.tar.bz2
caelestia-cli-9f29e9e6763eb33ba63133955d67556542249be9.zip
toggles: fix spawn-or-move + todo toggle
Diffstat (limited to 'toggles')
-rwxr-xr-xtoggles/todo.fish7
-rw-r--r--toggles/util.fish2
2 files changed, 8 insertions, 1 deletions
diff --git a/toggles/todo.fish b/toggles/todo.fish
new file mode 100755
index 0000000..db189bb
--- /dev/null
+++ b/toggles/todo.fish
@@ -0,0 +1,7 @@
+#!/bin/fish
+
+. (dirname (status filename))/util.fish
+
+spawn-or-move '.class == "Todoist"' todo todoist
+
+hyprctl dispatch togglespecialworkspace todo
diff --git a/toggles/util.fish b/toggles/util.fish
index 599627c..4d7df2c 100644
--- a/toggles/util.fish
+++ b/toggles/util.fish
@@ -13,7 +13,7 @@ function spawn-client -a selector
if test $stat != 0
uwsm app -- $argv[2..] & disown
end
- return $stat
+ test $stat != 0 # Exit 1 if already exists
end
function spawn-or-move -a selector -a workspace