No description
Find a file
Micke Nordin 80f9d78855 Better keybinding functionality
makes sure we don't start multiple instances by misstake
2020-12-27 13:40:27 +01:00
LICENSE A simple window switcher for sway. 2020-12-24 23:15:08 +01:00
README.md Better keybinding functionality 2020-12-27 13:40:27 +01:00
swayswitch Better keybinding functionality 2020-12-27 13:40:27 +01:00

swayswitch

A simple windowswitcher written in python using wxPython

Dependencies

For Debian/Ubuntu: python3-wxgtk4.0

For Fedora/RHEL: python3-wxpython4

Installation

wget -O ~/.local/bin/swayswitch https://github.com/mickenordin/swayswitch/blob/main/swayswitch
chmod +x ~/.local/bin/swayswitch

Usage

Add sway config to ~/.config/sway/config:

mode "switcher" {                   
    # Remove normal bidnings and set a dummy variable so we do something 
    set $hello "hello"
}

bindsym $mod+Tab exec ~/.local/bin/swayswitch, mode "switcher"

Reload config and open up window switcher with $mod+tab.

Thanks

Thanks to tobiaspc for the startingpoint for this code: https://github.com/tobiaspc/wofi-scripts