mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-24 12:00:24 +10:00
Restructing the entire dotfile repo!
This commit is contained in:
10
.i3/i3-display-swap.sh
Executable file
10
.i3/i3-display-swap.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# requires jq
|
||||
|
||||
IFS=:
|
||||
i3-msg -t get_outputs | jq -r '.[]|"\(.name):\(.current_workspace)"' | grep -v '^null:null$' | \
|
||||
while read -r name current_workspace; do
|
||||
echo "moving ${current_workspace} right..."
|
||||
i3-msg workspace "${current_workspace}"
|
||||
i3-msg move workspace to output right
|
||||
done
|
||||
Reference in New Issue
Block a user