Waybar and Wodi
This commit is contained in:
6
.config/wofi/window.sh
Normal file
6
.config/wofi/window.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
swaymsg -t get_tree |
|
||||
jq -r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) + "" + .name)' |
|
||||
wofi -c ~/.config/wofi/menu -s ~/.config/wofi/sway.css --show dmenu | {
|
||||
read -r id name
|
||||
swaymsg "[con_id=$id]" focused
|
||||
}
|
||||
Reference in New Issue
Block a user