sway: switch_window
This commit is contained in:
parent
73ca51b2c6
commit
69c4e19e98
2 changed files with 9 additions and 0 deletions
|
@ -138,6 +138,8 @@ input * {
|
|||
bindsym Mod4+Mod1+Prior exec sway-switch_workspace prev move
|
||||
bindsym Mod4+Mod1+Next exec sway-switch_workspace next move
|
||||
|
||||
bindsym $mod+space exec sway-switch_window
|
||||
|
||||
# Layout stuff:
|
||||
bindsym $mod+a focus parent
|
||||
bindsym $mod+Shift+a focus child
|
||||
|
|
7
.local/bin/sway-switch_window
Executable file
7
.local/bin/sway-switch_window
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
swaymsg -t get_tree |
|
||||
jq -r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) + " " + .name)' |
|
||||
fuzzel-run -d | {
|
||||
read -r id name
|
||||
swaymsg "[con_id=$id]" focus
|
||||
}
|
Loading…
Reference in a new issue