Skip to content

Conversation

jheuing
Copy link

@jheuing jheuing commented Sep 1, 2025

This pull request adds two things to the default bindings/tiling.conf:

  • Move workspaces to left and right monitors by binding SUPER ALT char:20/21. This is aligned with window resizing left and right and seemed most straight forward. Also it does not collide with any other key binding to my knowledge. Using movecurrentworkspacetomonitor l/r also seems most generic and working for all multi monitor setups, anything else would be more specific.

  • Adding switch:on/off:Lid Switch disables the monitor, so it is not available in the monitor layout anymore when the lid is closed. This is only as a comment / example, as the monitor name might be different.

I am open for any feedback here to take it further if it is of general interest.

@jheuing jheuing force-pushed the add-workspace-shortcuts branch from b8f7b73 to 198b713 Compare September 1, 2025 07:08
Comment on lines 75 to 77
# Disable laptop screen as a monitor if the lid is closed. Compare `hyprctl monitors` to find your monitor
# bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, preferred, auto, auto"
# bindl = , switch:on:Lid Switch, exec, hyprctl keyword monitor "eDP-1, disable"
Copy link

@fazzledev fazzledev Sep 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be defined in monitors.conf?

Thank you for this.
I've already added it to my monitors.conf.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fine with either. I have put it into the bindings folder as it is a binding to some process, and monitors is just the configuration. I could also see a monitors.conf in the binding folder. I am happy to change this, some feedback would be great what seems to be best along the lines for omarchy.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The laptop lid options only work until hyprland refresh, so applying a different or new theme, changing any single config line, etc, will reactivate the laptop screen, even if closed. I was one of the first to find that particular code and share it on discord, but it needs more to be merged, just not sure what yet.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. So I'll remove it from this merge request that moving the workspaces is still a valid implementation which can be merged.

Sorry I didn't see your comment on Discord, I found it elsewhere. I didn't mean to steel anything ;-)

@jheuing jheuing changed the title Add shortcuts for moving workspaces and disabling monitors Add shortcuts for moving workspaces between monitors Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants