diff options
| -rwxr-xr-x | install/foot.fish | 2 | ||||
| -rwxr-xr-x | toggles/sysmon.fish | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/install/foot.fish b/install/foot.fish index 941630f..660b09a 100755 --- a/install/foot.fish +++ b/install/foot.fish @@ -9,4 +9,6 @@ set -l dist $CONFIG/foot update-repo foot $dist sed -i 's|$SRC|'$dist'|g' $dist/foot.ini +install-link $dist/foot-exec.fish ~/.local/bin/foot-exec + log 'Done.' 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 |