1
0
Fork 0
mirror of https://gitlab.com/dwt1/dotfiles.git synced 2023-02-13 20:55:19 -05:00
dwt1--dotfiles/.i3/i3-display-swap.sh
2019-01-15 15:27:01 -06:00

10 lines
321 B
Bash
Executable file

#!/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