Changed: Hyprland Config

This commit is contained in:
DerGrumpf 2025-03-25 13:46:53 +01:00
parent bdfe65f058
commit 3a9d591341

View File

@ -1,7 +1,7 @@
{ inputs, pkgs, ...}: { inputs, pkgs, ...}:
let let
package = pkgs.hyprland; package = pkgs.hyprland;
mainMod = "SUPER"; super = "SUPER";
in in
{ {
@ -38,56 +38,56 @@ in
bind = [ bind = [
"$mainMod, Q, exec, $terminal" "${super}, Q, exec, $terminal"
"$mainMod, C, killactive, " "${super}, C, killactive, "
"$mainMod, M, exit, " "${super}, M, exit, "
"$mainMod, E, exec, $fileManager" "${super}, E, exec, $fileManager"
"$mainMod, V, togglefloating, " "${super}, V, togglefloating, "
"$mainMod, R, exec, $menu" "${super}, R, exec, $menu"
"$mainMod, S, exec, $power" "${super}, S, exec, $power"
"$mainMod, P, pseudo, " # dwindle "${super}, P, pseudo, " # dwindle
"$mainMod, J, togglesplit, "# dwindle "${super}, J, togglesplit, "# dwindle
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
"$mainMod, left, movefocus, l" "${super}, left, movefocus, l"
"$mainMod, right, movefocus, r" "${super}, right, movefocus, r"
"$mainMod, up, movefocus, u" "${super}, up, movefocus, u"
"$mainMod, down, movefocus, d" "${super}, down, movefocus, d"
# Switch workspaces with mainMod + [0-9] # Switch workspaces with mainMod + [0-9]
"$mainMod, 1, workspace, 1" "${super}, 1, workspace, 1"
"$mainMod, 2, workspace, 2" "${super}, 2, workspace, 2"
"$mainMod, 3, workspace, 3" "${super}, 3, workspace, 3"
"$mainMod, 4, workspace, 4" "${super}, 4, workspace, 4"
"$mainMod, 5, workspace, 5" "${super}, 5, workspace, 5"
"$mainMod, 6, workspace, 6" "${super}, 6, workspace, 6"
"$mainMod, 7, workspace, 7" "${super}, 7, workspace, 7"
"$mainMod, 8, workspace, 8" "${super}, 8, workspace, 8"
"$mainMod, 9, workspace, 9" "${super}, 9, workspace, 9"
"$mainMod, 0, workspace, 10" "${super}, 0, workspace, 10"
# Move active window to a workspace with mainMod + SHIFT + [0-9] # Move active window to a workspace with mainMod + SHIFT + [0-9]
"$mainMod SHIFT, 1, movetoworkspace, 1" "${super} SHIFT, 1, movetoworkspace, 1"
"$mainMod SHIFT, 2, movetoworkspace, 2" "${super} SHIFT, 2, movetoworkspace, 2"
"$mainMod SHIFT, 3, movetoworkspace, 3" "${super} SHIFT, 3, movetoworkspace, 3"
"$mainMod SHIFT, 4, movetoworkspace, 4" "${super} SHIFT, 4, movetoworkspace, 4"
"$mainMod SHIFT, 5, movetoworkspace, 5" "${super} SHIFT, 5, movetoworkspace, 5"
"$mainMod SHIFT, 6, movetoworkspace, 6" "${super} SHIFT, 6, movetoworkspace, 6"
"$mainMod SHIFT, 7, movetoworkspace, 7" "${super} SHIFT, 7, movetoworkspace, 7"
"$mainMod SHIFT, 8, movetoworkspace, 8" "${super} SHIFT, 8, movetoworkspace, 8"
"$mainMod SHIFT, 9, movetoworkspace, 9" "${super} SHIFT, 9, movetoworkspace, 9"
"$mainMod SHIFT, 0, movetoworkspace, 10" "${super} SHIFT, 0, movetoworkspace, 10"
# Example special workspace (scratchpad) # Example special workspace (scratchpad)
#"$mainMod, S, togglespecialworkspace, magic" #"${super}, S, togglespecialworkspace, magic"
"$mainMod SHIFT, S, movetoworkspace, special:magic" "${super} SHIFT, S, movetoworkspace, special:magic"
# Scroll through existing workspaces with mainMod + scroll # Scroll through existing workspaces with mainMod + scroll
"$mainMod, mouse_down, workspace, e+1" "${super}, mouse_down, workspace, e+1"
"$mainMod, mouse_up, workspace, e-1" "${super}, mouse_up, workspace, e-1"
# Screenshot # Screenshot
"$mainMod, Z, exec, grim -g "$(slurp)" $HOME/Pictures/Screenshots/$(date +'%s_grim.png')" ''${super}, Z, exec, grim -g "$(slurp)" $HOME/Pictures/Screenshots/$(date +'%s_grim.png')''
]; ];
bindl = [ bindl = [
@ -109,8 +109,8 @@ in
]; ];
bindm = [ bindm = [
"$mainMod, mouse:272, movewindow" "${super}, mouse:272, movewindow"
"$mainMod, mouse:273, resizewindow" "${super}, mouse:273, resizewindow"
]; ];
}; };