This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Goal: move workspace $1 to the currently focused output, move the workspace on the current output | |
# to the output where $1 was. | |
# The workspace we want to end up on | |
dest_ws=$1 | |
# The output where the destination ws resides | |
output_of_dest_ws=$(i3-msg -t get_workspaces | jq .[] | jq -r 'select(.name == "'$dest_ws'").output') | |
# The currently focused output |