I got a little crazy here. a lot of laptop poop

This commit is contained in:
Chris Cochrun 2021-09-22 09:58:13 -05:00
parent 263d10c080
commit fab3b36dec
47 changed files with 3726 additions and 189 deletions

20
scripts/wofi-window Normal file → Executable file
View file

@ -1,9 +1,11 @@
!#/bin/bash
swaymsg -t get_tree |
jq -r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else []
end + .floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) +
"" + .name)' |
wofi --show dmenu | {
read -r id name
swaymsg "[con_id=$id]" focus
}
#!/bin/bash
list_windows() (
wlrctl window list
)
window=$(list_windows | wofi -H 20% -id -p "select window..." | awk '{print $1}' | sed 's/://')
echo $window
wlrctl window focus $window