rename kitty to foot

This commit is contained in:
cy 2024-12-03 19:08:27 -05:00
parent e62bd84328
commit 29ca55a447

View file

@ -2,13 +2,13 @@
focused_workspace=$(hyprctl activeworkspace -j | jq '.id') focused_workspace=$(hyprctl activeworkspace -j | jq '.id')
kitty_window_count=$(hyprctl clients -j | jq --argjson workspace "$focused_workspace" '[.[] |select(.workspace.id == $workspace and .class == "foot")] |length') foot_window_count=$(hyprctl clients -j | jq --argjson workspace "$focused_workspace" '[.[] |select(.workspace.id == $workspace and .class == "foot")] |length')
next_session=$((focused_workspace * 10)) next_session=$((focused_workspace * 10))
if [ "$kitty_window_count" -gt 0 ] if [ "$foot_window_count" -gt 0 ]
then then
next_session=$((next_session + kitty_window_count)) next_session=$((next_session + foot_window_count))
fi fi
foot tmux new-session -A -s ${next_session} foot tmux new-session -A -s ${next_session}