summaryrefslogtreecommitdiff
path: root/toggles/sysmon.fish
diff options
context:
space:
mode:
Diffstat (limited to 'toggles/sysmon.fish')
-rwxr-xr-xtoggles/sysmon.fish3
1 files changed, 2 insertions, 1 deletions
diff --git a/toggles/sysmon.fish b/toggles/sysmon.fish
index 2fd7b6c..84b8d4c 100755
--- a/toggles/sysmon.fish
+++ b/toggles/sysmon.fish
@@ -2,6 +2,7 @@
. (dirname (status filename))/util.fish
-spawn-client '.class == "btop" and .title == "btop" and .workspace.name == "special:sysmon"' foot -a 'btop' -T 'btop' btop
+command -v foot-exec &> /dev/null && set -l cmd foot-exec || set -l cmd foot
+spawn-client '.class == "btop" and .title == "btop" and .workspace.name == "special:sysmon"' $cmd -a 'btop' -T 'btop' -- btop
hyprctl dispatch togglespecialworkspace sysmon