# Hyprland-Fenstermanager
wayland.windowManager.hyprland = {
enable = true;
systemd.enable = true;
systemd.variables = ["--all"];
package = null;
portalPackage = null;
settings = {
debug = {
disable_logs = false;
};
monitor = [
"DP-4,1920x1080@144,0x0,1"
"HDMI-A-2,1920x1080@60,0x-1080,1"
];
env = [
"XDG_SCREENSHOTS_DIR,$HOME/Bilder/Bildschirmfotos"
];
####################
# KEYBINDINGSS #
####################
"$mod" = "SUPER";
bind = [
"$mod, Return, exec, kitty"
"$mod, D, exec, wofi --show drun"
"CTRL, Q, killactive" # Fenster schließen mit Super+Q
"$mod, P,exec, grim -g \"$(slurp)\" ~/Bilder/Bildschirmfotos/screenshot_$(date +%s).png"
"$mod, ESCAPE, exec, wlogout"
"$mod, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy"
"$mod, F, fullscreen, 0"
"$mod SHIFT, F, fullscreen, 1"
"$mod, B, exec, firefox"
"$mod, N, exec, nemo"
# screenshot
# area
", Print, exec, ${"grimblast"} --notify copysave area"
"$mod SHIFT, R, exec, ${"grimblast"} --notify copysave area"
# current screen
"CTRL, Print, exec, ${"grimblast"} --notify --cursor copysave output"
"$mod SHIFT CTRL, R, exec, ${"grimblast"} --notify --cursor copysave output"
# all screens
"ALT, Print, exec, ${"grimblast"} --notify --cursor copysave screen"
"$mod SHIFT ALT, R, exec, ${"grimblast"} --notify --cursor copysave screen"
# Switch workspaces with $mod + [numpad 1-9]
"$mod, KP_End, workspace, 1"
"$mod, KP_Down, workspace, 2"
"$mod, KP_Next, workspace, 3"
"$mod, KP_Left, workspace, 4"
"$mod, KP_Begin, workspace, 5"
"$mod, KP_Right, workspace, 6"
"$mod, KP_Home, workspace, 7"
"$mod, KP_Up, workspace, 8"
"$mod, KP_Prior, workspace, 9"
# Move active window to a workspace with $mod + SHIFT + [0-9]
"$mod ALT, KP_End, movetoworkspace, 1"
"$mod ALT, KP_Down, movetoworkspace, 2"
"$mod ALT, KP_Next, movetoworkspace, 3"
"$mod ALT, KP_Left, movetoworkspace, 4"
"$mod ALT, KP_Begin, movetoworkspace, 5"
"$mod ALT, KP_Right, movetoworkspace, 6"
"$mod ALT, KP_Home, movetoworkspace, 7"
"$mod ALT, KP_Up, movetoworkspace, 8"
"$mod ALT, KP_Prior, movetoworkspace, 9"
];
# Mouse binding
bindm = [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
#################
# AUTOSTART #
#################
exec-once = [
"dbus-update-activation-environment --all --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
"systemctl --user restart xdg-desktop-portal"
"systemctl --user start hyprpolkitagent"
"wl-clip-persist --clipboard both &"
"wl-paste --watch cliphist store &"
"waybar"
"firefox"
"nemo"
];
workspace = [
# Workspaces für den primären Monitor (DP-4)
"1, defaultName:1:Firefox, monitor:DP-4, default:true"
"2, defaultName:2:Dateien, monitor:DP-4, default:true"
"3, defaultName:3:Bilder, monitor:DP-4"
"4, defaultName:4:NIX,monitor:DP-4"
"5, monitor:DP-4"
# Workspaces für den sekundären Monitor (HDMI-A-2)
"6, defaultName:6:Chat, monitor:HDMI-A-2"
"7, defaultName:7:Bild-im-Bild, monitor:HDMI-A-2"
"8, monitor:HDMI-A-2"
"9, monitor:HDMI-A-2"
"10, monitor:HDMI-A-2"
];
windowrulev2 = [
"workspace 1, class:^(firefox)$"
"workspace 2, class:^(nemo)$"
"workspace 3, class:^(eog)$"
"workspace 4, class:^(VSCodium)$"
"workspace 7, title:^(Bild-im-Bild)$"
];
input = {
kb_layout = "de";
# Deaktiviert die Mausbeschleunigung
accel_profile = "flat";
# Die Mauszeigergeschwindigkeit: -1.0 bis 1.0
sensitivity = 0.5;
};
general = {
gapse = 2;
gaps_out = 0;
border_size = 0;
layout = "dwindle";
};
animations = {
enabled = 0;
};
};
};