From ea29c64d32a681d4100830c5e5bdd36785b1b236 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 26 May 2024 11:00:06 -0400 Subject: [PATCH] aly: add custom hyprland workspaces --- aly.nix | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/aly.nix b/aly.nix index 17206e4e..2dd7cdbc 100644 --- a/aly.nix +++ b/aly.nix @@ -141,24 +141,37 @@ in { exec-once = ${lib.getExe' pkgs.keepassxc "keepassxc"} # Workspace - Browser - workspace = 1,defaultName:web - workspace = 2,defaultName:code - - # windowrulev2 = workspace name:browser,class:(firefox) + workspace = 1, defaultName:web, on-created-empty:${config.alyraffauf.desktop.defaultApps.webBrowser.exe} windowrulev2 = workspace 1,class:(firefox) windowrulev2 = workspace 1,class:(brave-browser) # Workspace - Coding + workspace = 2, defaultName:code, on-created-empty:${config.alyraffauf.desktop.defaultApps.editor.exe} windowrulev2 = workspace 2,class:(codium-url-handler) # Workspace - Zoom windowrulev2 = workspace name:zoom,class:(zoom) # Workspace - Chrome - windowrulev2 = workspace 4,class:(google-chrome) + windowrulev2 = workspace 3,class:(google-chrome) - # Scratchpad Magic - windowrulev2 = workspace special:magic,class:(org.gnome.Fractal) - windowrulev2 = workspace special:magic,class:(WebCord) + # Scratchpad Chat + bind = SUPER, W, togglespecialworkspace, chat + bind = SUPER SHIFT, W, movetoworkspace, special:chat + workspace = special:chat, on-created-empty:${lib.getExe pkgs.fractal} + windowrulev2 = workspace special:chat,class:(org.gnome.Fractal) + windowrulev2 = workspace special:chat,class:(WebCord) + + # Scratchpad Notes + bind = SUPER, N, togglespecialworkspace, notes + bind = SUPER SHIFT, N, movetoworkspace, special:notes + workspace = special:notes, on-created-empty:${lib.getExe' unstable.obsidian "obsidian"} + windowrulev2 = workspace special:notes,class:(obsidian) + + # Scratchpad Music + bind = SUPER, P, togglespecialworkspace, music + bind = SUPER SHIFT, P, movetoworkspace, special:music + workspace = special:music, on-created-empty:${lib.getExe' pkgs.plexamp "plexamp"} + windowrulev2 = workspace special:music,class:(Plexamp) ''; }