A window switching tool for sway
 
 
Go to file
knotteye 703c9646d8 sway moved the class properties to the window_properties subfield, updated to handle this 2021-11-06 22:52:48 -05:00
src sway moved the class properties to the window_properties subfield, updated to handle this 2021-11-06 22:52:48 -05:00
.gitignore Initial Commit 2020-03-14 07:34:54 -05:00
LICENSE Initial Commit 2020-03-14 07:34:54 -05:00
Makefile Initial Commit 2020-03-14 07:34:54 -05:00
README.md Initial Commit 2020-03-14 07:34:54 -05:00

README.md

SWAYFOCUS - Window Switching Tool For Sway

A tool to focus a specific window in sway, useful for run or raise scripts that would have used xdotool or wmctrl under Xorg. Uses swaymsg to communicate. Windows hidden to the system tray don't show up in the get_tree command, so they can't be raised with this.

Usage

Usage: swayfocus [OPTIONS]
    -v, --version                    Show Version
    -h, --help                       Show Help
    -p, --print                      Print window names and exit
    -c, --cycle                      Cycle through all matching windows in order, instead of selecting the first in the list    
	-n WNAME, --name=WNAME           Match against window name
    -m WMARK, --mark=WMARK           Match against window mark
    -t WTYPE, --type=WTYPE           Match against window type (app_id for wayland, class for xwayland)

Select at least one matching option.

Examples

swayfocus -p | sort -u | bemenu | xargs swayfocus -c --name=
# simple window switcher

Installation

make && sudo make install