i3: Better workspace handling when docking
This commit is contained in:
parent
3ddd2d5302
commit
14ebfe933e
@ -19,7 +19,8 @@ right() {
|
||||
i3-msg "move workspace to output DP-2-2"
|
||||
}
|
||||
|
||||
FOCUS="$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).name' | cut -d"\"" -f2)"
|
||||
VISIBLE="$(i3-msg -t get_workspaces | jq '.[] | select(.visible==true).name' | cut -d"\"" -f2 | tr -d \")"
|
||||
FOCUS="$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).name' | cut -d"\"" -f2 | tr -d \")"
|
||||
|
||||
center 1
|
||||
center 2
|
||||
@ -39,8 +40,11 @@ center F7
|
||||
center F8
|
||||
center F9
|
||||
center F10
|
||||
|
||||
left F1
|
||||
right F2
|
||||
|
||||
for i in $VISIBLE; do
|
||||
i3-msg "workspace $i"
|
||||
done
|
||||
|
||||
i3-msg "workspace $FOCUS"
|
||||
|
Loading…
Reference in New Issue
Block a user