rename kitty to foot
This commit is contained in:
parent
e62bd84328
commit
29ca55a447
1 changed files with 3 additions and 3 deletions
|
@ -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}
|
||||||
|
|
Loading…
Add table
Reference in a new issue