Install using package manager
This commit is contained in:
parent
7529e7f00f
commit
6f5d7a7c25
1 changed files with 16 additions and 13 deletions
29
README.md
29
README.md
|
@ -7,22 +7,25 @@ For Debian/Ubuntu: ```python3-wxgtk4.0```
|
|||
For Fedora/RHEL: ```python3-wxpython4```
|
||||
|
||||
## Installation
|
||||
|
||||
### Debian
|
||||
```
|
||||
wget -O ~/.local/bin/swayswitch https://github.com/mickenordin/swayswitch/blob/main/swayswitch
|
||||
chmod +x ~/.local/bin/swayswitch
|
||||
curl https://repo.mic.ke/PUBLIC.KEY | sudo apt-key add -
|
||||
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
|
||||
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.
|
||||
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
|
||||
|
||||
## Thanks
|
||||
Thanks to tobiaspc for the startingpoint for this code: <https://github.com/tobiaspc/wofi-scripts>
|
||||
|
|
Loading…
Add table
Reference in a new issue