I got a little crazy here. a lot of laptop poop
This commit is contained in:
parent
263d10c080
commit
fab3b36dec
47 changed files with 3726 additions and 189 deletions
20
scripts/wofi-window
Normal file → Executable file
20
scripts/wofi-window
Normal file → Executable 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue