hyprland monitor fix

This commit is contained in:
LarsZauberer 2024-04-13 10:34:59 +02:00
commit 5f2072519a

View file

@ -9,7 +9,7 @@ in {
monitor = mkOption { monitor = mkOption {
description = "hyprland monitor config"; description = "hyprland monitor config";
default = ",preferred,auto,1"; default = ",preferred,auto,1";
type = types.listof(types.str); type = types.listOf(types.str);
}; };
}; };
@ -41,6 +41,9 @@ in {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
settings = { settings = {
# Monitor config
monitor = cfg.monitor;
"$mod" = "SUPER"; "$mod" = "SUPER";
input = { input = {
@ -51,9 +54,10 @@ in {
"$mod, Q, killactive" "$mod, Q, killactive"
"$mod, return, exec, alacritty" "$mod, return, exec, alacritty"
"$mod SHIFT, return, exec, firefox" "$mod SHIFT, return, exec, firefox"
"$mod SHIFT, m, exit"
# Application # Application
"$mod SHIFT, c, exec, code" "$mod SHIFT, c, exec, code --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu"
# Monitor management # Monitor management
"$mod SHIFT, k, movecurrentworkspacetomonitor, DP-2" "$mod SHIFT, k, movecurrentworkspacetomonitor, DP-2"