# See https://wiki.hyprland.org/Configuring/Keywords/ for more source = ~/.config/hypr/apps.conf $mainMod = SUPER # Switch Keyboard Layout # bind = $mainMod ALT_L, K, exec, hyprctl switchxkblayout holtek-usb-hid-keyboard next && hyprctl switchxkblayout at-translated-set-2-keyboard next bind = $mainMod ALT_L, K, exec, hyprctl switchxkblayout holtek-usb-hid-keyboard next; hyprctl switchxkblayout holtek-usb-hid-keyboard-1 next; hyprctl switchxkblayout at-translated-set-2-keyboard next # change volume with Volume Keys # units: None(1% increases), dB, %(works as you'd expect on laptop, but on PC↓) # percent increases (1%+-) lead to jumps to 10% or 90% on PC with Sharkoon # keyboard, depending on whether you pressed VolUp or VolDown # % is needed for the DragonFly, because it is too finegrained with 65k steps binde = ,XF86AudioLowerVolume, exec, amixer -M -- set Master Playback Switch 1%- binde = ,XF86AudioRaiseVolume, exec, amixer -M -- set Master Playback Switch 1%+ bind = ,XF86AudioMute, exec, amixer -M -- set Master Playback Switch toggle bind = ,XF86AudioMicMute, exec, amixer -M -- set Capture toggle bindle = ,XF86MonBrightnessUp, exec, brightnessctl set +5% bindle = ,XF86MonBrightnessDown, exec, brightnessctl set 5%- bind = ,Print, exec, hyprshot --mode region -o ~/Pictures/Screenshots/ # Reduce effects for performance bind = WIN, F1, exec, ~/.config/hypr/gamemode.sh # Clipboard bind = $mainMod, V, exec, $clipboard-manager bind = $mainMod SHIFT, V, exec, cliphist wipe # colorpicker bind = $mainMod SHIFT, P, exec, $colorpicker # Passthrough bind = ALT_L ALT_R, M, pass, class:^(discord) # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, Q, exec, $terminal bind = $mainMod, M, exit, bind = $mainMod, E, exec, $fileManager bind = $mainMod, F, togglefloating, bind = $mainMod, R, exec, $menu bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, C, killactive, bind = $mainMod, D, togglesplit, # dwindle bind = ALT_L, F4, killactive bind = ALT_L, SPACE, exec, $appLauncher bind = $mainMod, F11, fullscreenstate, 2 # maximize # fullscreen window w/o fullscreen mode bind = $mainMod, up, fullscreenstate, 3 # maximize # fullscreen window w/o fullscreen mode bind = ALT_L, TAB, cyclenext # Move focus with mainMod + arrow keys bind = $mainMod, h, movefocus, l bind = $mainMod, j, movefocus, d bind = $mainMod, k, movefocus, u bind = $mainMod, l, movefocus, r # Maximise / Minimise workaround #bind = $mainMod, up, movetoworkspace, empty bind = $mainMod, O, fullscreenstate, 1 # lock bind = $mainMod, F12, exec, $lockscreen # powermenu bind = $mainMod SHIFT_L, F12, exec, $powermenu bind = $mainMod ALT_L, B, exec, $brightnessmenu # swap workspaces between monitors # bind = $mainMod ALT_L, s, swapactiveworkspaces, DP-1 DP-2 bind = $mainMod ALT_L, s, swapactiveworkspaces, 0 1 # generic is good enough # Move window in direction bind = $mainMod SHIFT, h, swapwindow, l bind = $mainMod SHIFT, j, swapwindow, d bind = $mainMod SHIFT, k, swapwindow, u bind = $mainMod SHIFT, l, swapwindow, r # Move window to other screen bind = $mainMod SHIFT, left, movewindow, mon:-1 bind = $mainMod SHIFT, right, movewindow, mon:+1 bind = $mainMod ALT_L CTRL, h, movewindow, mon:-1 bind = $mainMod ALT_L CTRL, l, movewindow, mon:+1 # Resize Window in direction binde = $mainMod CTRL, h, resizeactive, -25 0 binde = $mainMod CTRL, j, resizeactive, 0 25 binde = $mainMod CTRL, k, resizeactive, 0 -25 binde = $mainMod CTRL, l, resizeactive, 25 0 # Switch workspaces with mainMod + [0-9] 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 active window to a workspace with mainMod + SHIFT + [0-9] 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 Window to new virtual workspace/ desktop bind = $mainMod ALT_L, h, movetoworkspace, r-1 bind = $mainMod ALT_L, l, movetoworkspace, r+1 # Switch to next/previous virtual workspace/ desktop, ignore empty bind = ALT_L, h, workspace, m-1 bind = ALT_L, l, workspace, m+1 # ---- # Example special workspace (scratchpad) bind = $mainMod, S, togglespecialworkspace, S bind = $mainMod SHIFT, S, movetoworkspace, special:S bind = $mainMod, A, togglespecialworkspace, A bind = $mainMod SHIFT, A, movetoworkspace, special:A bind = $mainMod, X, togglespecialworkspace, X bind = $mainMod SHIFT, X, movetoworkspace, special:X # ---- # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, m-1 bind = $mainMod, mouse_up, workspace, m+1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow bind = SHIFT_L ALT_L, h, changegroupactive, b bind = SHIFT_L ALT_L, l, changegroupactive, f ## GROUPS #-------------------- # will switch to a submap called groups bind = $mainMod, G, submap, groups # will start a submap called "groups" submap = groups # move window into a group according to vim-motion key bind = , h, moveintogroup, l bind = , j, moveintogroup, d bind = , k, moveintogroup, u bind = , l, moveintogroup, r # get window out of group bind = , G, moveoutofgroup, # Toggle a group on the current window bind = $mainMod, t, togglegroup # # lock window group bind = , l, lockactivegroup, toggle # use reset to go backc to the global submap bind = , escape, submap, reset # Move focus with mainMod + arrow keys bind = $mainMod, h, movefocus, l bind = $mainMod, j, movefocus, d bind = $mainMod, k, movefocus, u bind = $mainMod, l, movefocus, r # will reset the submap, which will return to the global submap submap = reset #--------------------