sway-workspace

Crates.iosway-workspace
lib.rssway-workspace
version0.2.1
sourcesrc
created_at2023-01-19 16:57:40.463022
updated_at2023-01-21 13:03:29.443646
descriptionOutput aware Sway/i3wm workspace switcher with window move feature
homepagehttps://github.com/matejc/sway-workspace
repositoryhttps://github.com/matejc/sway-workspace
max_upload_size
id762703
size25,302
Matej Cotman (matejc)

documentation

README

sway-workspace

Output aware Sway workspace switcher with window move feature

Install

cargo install sway-workspace

Usage

Usage: sway-workspace [OPTIONS] <ACTION>

Arguments:
  <ACTION>  Action [possible values: next, prev, next-output, prev-output, next-on-output, prev-on-output]

Options:
  -s, --sock <SOCK>  Sway socket path [default: /run/user/1000/sway-ipc.1000.3062.sock]
  -m, --move         Move to new workspace
  -n, --no-focus     Do not focus to new workspace
  -o, --stdout       Print workspace number to stdout
  -h, --help         Print help
  -V, --version      Print version

Example config

Put this in you sway config (~/.config/sway/config)

bindsym Mod1+Control+Up exec sway-workspace prev-output
bindsym Mod1+Control+Down exec sway-workspace next-output
bindsym Mod1+Control+Left exec sway-workspace prev-on-output
bindsym Mod1+Control+Right exec sway-workspace next-on-output

bindsym Mod1+Control+Shift+Up exec sway-workspace --move prev-output
bindsym Mod1+Control+Shift+Down exec sway-workspace --move next-output
bindsym Mod1+Control+Shift+Left exec sway-workspace --move prev-on-output
bindsym Mod1+Control+Shift+Right exec sway-workspace --move next-on-output
Commit count: 10

cargo fmt