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/python | |
''' | |
DESCRIPTION: | |
This script is used in swaywm and swaps two containers. | |
USAGE EXAMPLE: | |
Put 'bindsym $mod+g exec /path/to/script/win_swap.py' in the config file. | |
Get some container focused and press $mod+g. Get another container focused | |
and press $mod+g again. The two windows are going to be swapped. |