migrate to dobot (#1)

* get rid of old stuff

* dotbot migration
This commit is contained in:
Cy 2024-10-28 17:15:34 -04:00 committed by GitHub
parent a5693c1964
commit 69286972bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 41 additions and 744 deletions

14
sway/scripts/terminal.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
focused_workspace=$(swaymsg -t get_workspaces | jq '.[] | select(.focused == true) | .num')
kitty_window_count=$(swaymsg -t get_tree | jq --argjson workspace $focused_workspace '[recurse(.nodes[]?) | select(.type == "workspace" and .num == $workspace) | recurse(.nodes[]?) | select(.app_id == "kitty")] | length')
next_session=$((focused_workspace * 10))
if [ $kitty_window_count -gt 0 ]
then
next_session=$((next_session + kitty_window_count))
fi
kitty tmux new-session -A -s ${next_session}