Skip to content

Hyprland Virtual Desktops 2.0b

Compare
Choose a tag to compare
@levnikmyskin levnikmyskin released this 09 Oct 21:40
· 166 commits to main since this release
7d62853

Hyprland Virtual Desktops v2.0b

Heyhey everybody,
I finally managed to take some time and release a new version of this Hyprland plugin. NOTICE that this is still a beta
release: there might be bugs (and at least one of which I'm aware, see below)...if you find any, please open an issue here.

First things first:

If you don't like this, fret not, there's a config option to basically go back to v1.0 behaviour. See README#Layouts.
That said, if you really don't like it, you can keep using version 1.0, you can find it in the releases here on Github (or by switching to tag v1.0).
It is very likely that it'll just keep working...in case it breaks and you really don't want to switch to v2.0, open an issue here and if it's something quick I'll do my best to fix it.

On to the release notes :D

What's changed?

Mh, quite a bit I would say, but mostly:

  • The concept of layout is introduced in the plugin, with the meaning of "a specific combination of workspaces on a (more or less) specific combination of monitors".
    • In other words, the plugin now remembers if you focused another workspace on your vdesk, even if you switch to another vdesk and then come back to this one.
    • More info in the README :D
  • New dispatchers!
    • vdeskreset vdesk: if you want to reset a vdesk to its default workspaces. Leave empty to reset all vdesks;
    • nextdesk: go to the next vdesk, creates it if it doesn't exist. Can be combined with the previously existing prevdesk to go back and forth. Also, closes Issue #1.
    • cyclevdesks: I mean...once nextdesk was done I figured we might as well add this one. Cycle through existing vdesks. Goes back to vdesk 1 if next vdesk does not exist;
    • printlayout: print to Hyprland logs the current layout.
  • New configs!
    • rememberlayout: chooses whether the layout should be remembered by monitor unique descriptions or by number of monitors attached;
    • notifyinit: chooses whether to display the startup notification;
    • verbose_logging: chooses whether to log more stuff.

One last remark: virtual-desktops will remember your layout for the current session only; if you close Hyprland, shutdown or reboot your pc etc., you'll go back to default workspaces next time you log into an Hyprland session.

Bugs

This is a beta release, and by beta I mean that I personally tested the code (and I'm personally using the plugin), but that given the amount of changes (and sometimes, the fights against Hyprland) there might be bugs.
As far as I know one tricky one is:

  • Sometimes when you connect or disconnect a monitor, the proper layout is not displayed (despite being loaded correctly). Usually switching to another vdesk and then back solves the problem.