hyprland-relative-workspace

Crates.iohyprland-relative-workspace
lib.rshyprland-relative-workspace
version1.1.8
sourcesrc
created_at2023-04-15 18:55:22.457841
updated_at2023-04-19 16:05:02.490791
descriptionA tool to switch Hyprland workspaces relatively to monitor
homepagehttps://github.com/CheesyPhoenix/hyprland-relative-workspace
repositoryhttps://github.com/CheesyPhoenix/hyprland-relative-workspace
max_upload_size
id840112
size28,868
(CheesyPhoenix)

documentation

README

hyprland-relative-workspace

A tool to switch Hyprland workspaces relatively to each monitor and create new workspaces where necessary

Requires Hyprland

Installation

Do not use the github releases directly, these are out of date and only for backwards compatability

Cargo (crates.io):

cargo install hyprland-relative-workspace

Arch (AUR):

yay -S hyprland-relative-workspace-bin

Usage:

Reccomended

Add binds in your Hyprland config similar to these:

bind = $mainMod, left, exec, hyprland-relative-workspace b
bind = $mainMod, right, exec, hyprland-relative-workspace f
bind = $mainMod SHIFT, left, exec, hyprland-relative-workspace b --with-window
bind = $mainMod SHIFT, right, exec, hyprland-relative-workspace f --with-window

Basic command

Use either "f" or "forward" to advance one workspace relative to the current focused workspace (the one with your mouse on it).

Similarily, you can use "b" or "backward" to go back (down, left, eg. workspace 3 -> workspace 2) one workspace relative to the focused monitor. Also creating a new workspace if required and possible (eg. if workspaces 1, and 3 exist, going back one would create workspace 2. However you cannot go lower than 1).

All of these commands can also be used with --with-window to bring the currently focused window with you, or --no-create-new to prevent the creation of new workspaces see #1.

$ hyperland-relative-workspace ["f", "forward", "b", "backward"] (opt. "--with-window", "--no-create-new")
Commit count: 33

cargo fmt