{ config, ... }: { # include hyprland configs home.file.".config/hypr/bindings.conf".text = '' binds { workspace_back_and_forth = true } # bindings $mainMod = SUPER # primary key bindings bind = $mainMod, Return, exec, alacritty bind = $mainMod, B, exec, blueman-manager bind = $mainMod, C, exec, alacritty --class clipse --command clipse $PPID bind = $mainMod, D, exec, ~/.dotfiles/apps/wofi/wofi.sh bind = $mainMod, E, exec, nautilus --new-window bind = $mainMod, J, togglesplit bind = $mainMod, K, exec, alacritty --class scratchbox bind = $mainMod, L, exec, hyprlock bind = $mainMod, M, exit, bind = $mainMod, N, exec, alacritty --class nmtui --command ~/.dotfiles/apps/hyprland/nmtui.sh bind = $mainMod, P, exec, ~/.dotfiles/apps/hyprland/hypridle.sh toggle bind = $mainMod, Q, killactive bind = $mainMod, S, exec, ~/.dotfiles/apps/screenshot/screenshot.sh area bind = ALT SHIFT, S, exec, ~/.dotfiles/apps/screenshot/screenshot.sh screen bind = $mainMod, T, exec, alacritty --class nostt --command nostt bind = $mainMod, V, togglefloating # alternative key bindings bind = ALT, F, fullscreen bind = ALT, P, pseudo bind = ALT, V, togglefloating # manage lockscreen bindl = ,switch:on:Lid Switch, exec, ~/.dotfiles/apps/swaylock/lock.sh # focus bindings bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r # switch workspace bindings bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 bind = $mainMod, 3, workspace, 3 bind = $mainMod, 4, workspace, 4 bind = $mainMod, 5, workspace, 5 bind = $mainMod, 6, workspace, 6 bind = $mainMod, 7, workspace, 7 bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 # move window to workspaces bindings bind = $mainMod SHIFT, 1, movetoworkspace, 1 bind = $mainMod SHIFT, 2, movetoworkspace, 2 bind = $mainMod SHIFT, 3, movetoworkspace, 3 bind = $mainMod SHIFT, 4, movetoworkspace, 4 bind = $mainMod SHIFT, 5, movetoworkspace, 5 bind = $mainMod SHIFT, 6, movetoworkspace, 6 bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 0, movetoworkspace, 10 # move workspaces using the mouse bind = $mainMod, mouse_up, workspace, e+1 bind = $mainMod, mouse_down, workspace, e-1 # move window using keys bind = ALT SHIFT, up, movewindow, u bind = ALT SHIFT, down, movewindow, d bind = ALT SHIFT, left, movewindow, l bind = ALT SHIFT, right, movewindow, r # move windows using the mouse bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow # resize window bindings bind = $mainMod SHIFT, up, resizeactive, 0 -50 bind = $mainMod SHIFT, down, resizeactive, 0 50 bind = $mainMod SHIFT, left, resizeactive, -50 0 bind = $mainMod SHIFT, right, resizeactive, 50 0 # multimedia key bindings bind = ,XF86AudioMute, exec, pw-volume mute toggle bind = ,XF86AudioRaiseVolume, exec, pw-volume change +5% bind = ,XF86AudioLowerVolume, exec, pw-volume change -5% bind = ,XF86MonBrightnessDown, exec, brightnessctl set 10%- bind = ,XF86MonBrightnessUp, exec, brightnessctl set 10%+ ''; }