Created
May 22, 2022 09:50
-
-
Save rodion-solovev-7/ef7e33323f25103a1c66d9d3d25733d1 to your computer and use it in GitHub Desktop.
Sends the window to the right workspace + switches to this workspace. Useful as a shortcut script if your Linux does not support this shortcut
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
win_id="$(xdotool getactivewindow)"; | |
desk_id="$(xdotool get_desktop)"; | |
desk_id=$((desk_id + 1)); | |
xdotool set_desktop_for_window "$win_id" "$desk_id"; | |
xdotool set_desktop "$desk_id"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment