I’m coming from Linux Mint, and I’d like to set up the workspaces similar to how they worked there. Instead of separate workspaces per monitor, I’d like each workspace to be tied to both monitors. Here’s what I have in hyprland.conf so far:
I have two monitors, and I’d like six workspaces. So, I bound 12 workspaces to the monitors I want:
workspace = 1, monitor:eDP-1 # Laptop monitor
workspace = 2, monitor:eDP-1
workspace = 3, monitor:eDP-1
workspace = 4, monitor:eDP-1
workspace = 5, monitor:eDP-1
workspace = 6, monitor:eDP-1
workspace = 7, monitor:HDMI-A-1 # External monitor
workspace = 8, monitor:HDMI-A-1
workspace = 9, monitor:HDMI-A-1
workspace = 10, monitor:HDMI-A-1
workspace = 11, monitor:HDMI-A-1
workspace = 12, monitor:HDMI-A-1
Keybinds to go directly to each “combined workspace”:
bind = $mainMod, 1, exec, \
hyprctl dispatch workspace 1; \
hyprctl dispatch workspace 7
bind = $mainMod, 2, exec, \
hyprctl dispatch workspace 2; \
hyprctl dispatch workspace 8
bind = $mainMod, 3, exec, \
hyprctl dispatch workspace 3; \
hyprctl dispatch workspace 9
bind = $mainMod, 4, exec, \
hyprctl dispatch workspace 4; \
hyprctl dispatch workspace 10
bind = $mainMod, 5, exec, \
hyprctl dispatch workspace 5; \
hyprctl dispatch workspace 11
bind = $mainMod, 6, exec, \
hyprctl dispatch workspace 6; \
hyprctl dispatch workspace 12
So I’m treating workspaces 1 and 7 as a “combined workspace,” and pressing Super+1 moves both monitors to that combined workspace.
I’m happy with this so far, but I’d like to add additional shortcuts that go with this scheme. For example, I see there’s a default keybind that moves a window to a workspace, but I would need an additional line to also switch the other monitor. I’m just not sure how to execute this. I’m picturing something like:
bind = $mainMod, 1, exec, \
# Move window to workspace 1
# Switch other monitor to workspace 7
I assume it would be something like hyprctl dispatch …, I just can’t seem to find documentation for hyprctl that gives the details about dispatch.
Altogether, I’d like a keybind scheme like this:
- Change workspace directly
- Super+# (already done, demonstrated above)
- Super+Shift+# - Also move window (partially done, but it should switch the other monitor as well)
- Change workspace left and right (3-9 to 2-8 or 4-10, for example)
- Super+Ctrl+left/right
- Super+Ctrl+Shift+left/right - Also move window
- Move window between monitors
- Super+Shift+left/right (I assume this would be as simple as moving to a particular workspace, but it would need to be relative to the current workspace)
- Workspace overview
- I’m not actually sure what keyboard shortcut I want for this one. Is this even possible in default Hyprland, or would there be something else I would need?
Hopefully all that makes sense! If you don’t want to write all the hyprland.conf lines, I’d at least appreciate some direction for how to build this setup.
Thanks for the help!