Files
dtos-dotfiles/.config/i3/i3-display-swap.sh
Derek Taylor a91301075a Revert "Update"
This reverts commit 777960ac7b.
2025-12-03 11:20:33 -06:00

11 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