use treefmt for a lot more stuff

also make changes to comply with all the laws that come with those stuff
This commit is contained in:
cy 2025-01-01 03:43:02 -05:00
parent 0513f19e52
commit 2d8b64ef26
10 changed files with 10 additions and 5443 deletions

View file

@ -2,11 +2,11 @@
focused_workspace=$(swaymsg -t get_workspaces | jq '.[] | select(.focused == true) | .num')
foot_window_count=$(swaymsg -t get_tree | jq --argjson workspace $focused_workspace '[recurse(.nodes[]?) | select(.type == "workspace" and .num == $workspace) | recurse(.nodes[]?) | select(.app_id == "foot")] | length')
foot_window_count=$(swaymsg -t get_tree | jq --argjson workspace "$focused_workspace" '[recurse(.nodes[]?) | select(.type == "workspace" and .num == $workspace) | recurse(.nodes[]?) | select(.app_id == "foot")] | length')
next_session=$((focused_workspace * 10))
if [ $foot_window_count -gt 0 ]
if [ "$foot_window_count" -gt 0 ]
then
next_session=$((next_session + foot_window_count))
fi