Skip to content

Instantly share code, notes, and snippets.

View totoro-ghost's full-sized avatar
🎯
Focusing

Shivanshu totoro-ghost

🎯
Focusing
View GitHub Profile
#!/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