Switch to uwsm
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -20,13 +20,17 @@
|
||||
})
|
||||
];
|
||||
|
||||
programs.hyprland.enable = true;
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
};
|
||||
|
||||
home-manager.users.${user} = {
|
||||
imports = [ ./options.nix ];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
systemd.enable = false;
|
||||
|
||||
settings = {
|
||||
"$mod" = "Super";
|
||||
@@ -47,7 +51,7 @@
|
||||
);
|
||||
in
|
||||
[
|
||||
"$mod, Return, exec, $term"
|
||||
"$mod, Return, exec, uwsm app -- $term"
|
||||
|
||||
"$mod, 1, exec, ${bindHelper} 1"
|
||||
"$mod, 2, exec, ${bindHelper} 2"
|
||||
@@ -96,7 +100,7 @@
|
||||
"$mod, Space, centerwindow"
|
||||
"$mod, q, killactive"
|
||||
|
||||
"Ctrl_Alt, Delete, exit"
|
||||
"Ctrl_Alt, Delete, exec, uwsm stop"
|
||||
];
|
||||
|
||||
binde = [
|
||||
@@ -157,8 +161,8 @@
|
||||
};
|
||||
|
||||
programs.zsh.loginExtra = lib.mkAfter ''
|
||||
if [ -z "$WAYLAND_DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
|
||||
Hyprland 2> >(systemd-cat -p err -t hyprland) 1> >(systemd-cat -p info -t hyprland)
|
||||
if uwsm check may-start; then
|
||||
exec uwsm start hyprland-uwsm.desktop
|
||||
fi
|
||||
'';
|
||||
|
||||
|
Reference in New Issue
Block a user