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

10
sway/scripts/btn_extra.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
running_app=$(swaymsg -t get_tree | jq -r 'recurse(.nodes[]?) | select(.focused==true) | .app_id')
if [ "$running_app" = "anki" ]; then
echo "kitty open found 😇"
else
echo "no kitty 😿"
echo "but ${running_app}"
fi

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}

5
sway/scripts/youtube.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
url=$(wl-paste)
notify-send "fetching video: ${url}"
mpv --really-quiet $url > /dev/null 2>&1 &