add(hyprland): plugin is fixed!

This commit is contained in:
kenji
2025-12-31 13:57:52 -06:00
parent 588f1a17ca
commit 906ce21aaa
6 changed files with 47 additions and 15 deletions
+4 -1
View File
@@ -1,4 +1,4 @@
{
{pkgs, ...}: {
imports = [
./hypr/binds.nix
./hypr/general.nix
@@ -12,4 +12,7 @@
];
wayland.windowManager.hyprland.enable = true;
wayland.windowManager.hyprland.systemd.enable = false; # for UWSM support...
wayland.windowManager.hyprland.plugins = [
pkgs.hyprlandPlugins.hyprsplit
];
}
+6 -10
View File
@@ -71,22 +71,18 @@
"SUPER, Tab, Cycle workspaces, workspace, previous"
]
++ (
# Generate binds for Super + [1-10] to switch workspaces
# and Super + Shift + [1-10] to move window to workspace
# Generate binds for Super + [1-5] to switch workspaces on current monitor
# and Super + Shift + [1-5] to move window to workspace on current monitor
builtins.concatLists (builtins.genList (
i: let
ws = i + 1;
key = toString (
if ws == 10
then 0
else ws
);
key = toString ws;
in [
"SUPER, ${key}, Switch to workspace ${toString ws}, exec, hakase-workspace-switch-force ${toString ws}"
"SUPER SHIFT, ${key}, Move window to workspace ${toString ws}, movetoworkspace, ${toString ws}"
"SUPER, ${key}, Switch to workspace ${toString ws}, split:workspace, ${toString ws}"
"SUPER SHIFT, ${key}, Move window to workspace ${toString ws}, split:movetoworkspace, ${toString ws}"
]
)
10)
5)
);
};
}
+1
View File
@@ -8,6 +8,7 @@
"killall -SIGUSR2 .ghostty-wrappe"
];
exec-once = [
"hyprpm reload -n"
"[workspace special:preload silent] uwsm app -- firefox"
"[workspace special:preload silent] uwsm app -- firefox -P YouTube"
"[workspace special:preload silent] uwsm app -- xdg-terminal-exec"
+7
View File
@@ -18,5 +18,12 @@
direct_scanout = true;
cm_enabled = true;
};
plugin = {
hyprsplit = {
num_workspaces = 5;
persistent_workspaces = false;
};
};
};
}