Skip to content

Instantly share code, notes, and snippets.

View gorsheninmv's full-sized avatar

Misha Gorshenin gorsheninmv

View GitHub Profile
@gorsheninmv
gorsheninmv / win_swap.py
Last active August 30, 2020 06:45
This script is used in swaywm and swaps two containers.
#!/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.