Install using package manager

This commit is contained in:
Micke Nordin 2020-12-27 15:40:15 +01:00
parent 7529e7f00f
commit 6f5d7a7c25

View file

@ -7,22 +7,25 @@ For Debian/Ubuntu: ```python3-wxgtk4.0```
For Fedora/RHEL: ```python3-wxpython4``` For Fedora/RHEL: ```python3-wxpython4```
## Installation ## Installation
### Debian
``` ```
wget -O ~/.local/bin/swayswitch https://github.com/mickenordin/swayswitch/blob/main/swayswitch curl https://repo.mic.ke/PUBLIC.KEY | sudo apt-key add -
chmod +x ~/.local/bin/swayswitch curl https://repo.mic.ke/debian/debian-micke-unstable.list | sudo tee /etc/apt/sources.list.d/debian-micke-unstable.list
sudo apt update && sudo apt install swayswitch
``` ```
### RPM
```
wget https://repo.mic.ke/PUBLIC.KEY
sudo rpm --import PUBLIC.KEY
sudo dnf config-manager --add-repo https://repo.mic.ke/rpm/rpm-micke.repo
sudo dnf install swayswitch
```
## Usage ## Usage
Add sway config to ~/.config/sway/config: Reload config and open up window switcher with $mod+tab. Move around the switcher using arrow-keys or Tab.
Esc aborts and enter switches window. It is also possible to select window with the mouse. Configuration is installed to /etc/sway/config.d/swayswitch.conf
```
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
Thanks to tobiaspc for the startingpoint for this code: <https://github.com/tobiaspc/wofi-scripts> Thanks to tobiaspc for the startingpoint for this code: <https://github.com/tobiaspc/wofi-scripts>