From be2f1567f0a2848ce2f18b4f34ed5e4cf83141fd Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 10 Mar 2025 20:40:06 +1100 Subject: foot: update install and sysmon toggle Use the foot-exec cmd so it has the colours --- install/foot.fish | 2 ++ toggles/sysmon.fish | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-freya