Crates.io | sway-workspace |
lib.rs | sway-workspace |
version | 0.2.1 |
source | src |
created_at | 2023-01-19 16:57:40.463022 |
updated_at | 2023-01-21 13:03:29.443646 |
description | Output aware Sway/i3wm workspace switcher with window move feature |
homepage | https://github.com/matejc/sway-workspace |
repository | https://github.com/matejc/sway-workspace |
max_upload_size | |
id | 762703 |
size | 25,302 |
Output aware Sway workspace switcher with window move feature
cargo install sway-workspace
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
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