···11 MOUSE_EX1 = "mouse:275";
12 MOUSE_EX2 = "mouse:276";
1314- exec = {
15- screenshotWindow = pkgs.patchShellScript ./scripts/screenshot.sh {
16- runtimeInputs = with pkgs; [
17- jq
18- grim
19- wl-clipboard
20- libnotify
21- config.wayland.windowManager.hyprland.package
22- ];
23- };
24- playerctl = lib.getExe pkgs.playerctl;
25- slight = lib.getExe pkgs.slight;
26- osdFunc = lib.getExe config.utilities.osd-functions.package;
27- airplaneMode = "sudo /run/current-system/sw/bin/airplane-mode";
28- toggleGroupOrLock =
29- pkgs.patchShellScript ./scripts/toggle-group-or-lock.sh {
30- runtimeInputs = with pkgs; [
31- jq
32- config.wayland.windowManager.hyprland.package
33- ];
34- };
35- };
36-37 # Collections of keybinds common across multiple submaps are collected into
38 # groups, which can be merged together granularly.
39 groups = {
···47 launchPrograms = {
48 # Launch the program with a shortcut.
49 bind."SUPER, E" = "exec, dolphin";
50- bind."SUPER, Enter" = "exec, alacritty";
51 };
5253 # Kill the active window.
···217 # Forcefully kill a program after selecting its window with the mouse.
218 bind."SUPER_SHIFT, Q" = "exec, hyprctl kill";
219220- # Screenshot the currently focused window and copy to clipboard.
221- bind."SUPER, print" = "exec, ${exec.screenshotWindow}";
222-223 # Select a region and take a screenshot, saving to the clipboard.
224 bind."SUPER_SHIFT, print" = "exec, prtsc -c -m r -D -b 00000066";
225···235 bind."SUPER, Space" = "exec, rofi -show drun -show-icons";
236 # Open Rofi to run a command.
237 bind."SUPER, R" = "exec, rofi -show run";
238- }
239- ### FUNCTION KEYS ###
240- {
241- # The names of these keys can be found at:
242- # <https://github.com/xkbcommon/libxkbcommon/blob/master/include/xkbcommon/xkbcommon-keysyms.h>
243-244- bindl."SHIFT, XF86WLAN" = "exec, ${exec.airplaneMode}";
245-246- # Mute/unmute the active audio output.
247- bindl.", XF86AudioMute" = "exec, ${exec.osdFunc} output mute";
248-249- # Raise and lower the volume of the active audio output.
250- bindel.", XF86AudioRaiseVolume" = "exec, ${exec.osdFunc} output +0.05";
251- bindel.", XF86AudioLowerVolume" = "exec, ${exec.osdFunc} output -0.05";
252-253- # Mute the active microphone or audio source.
254- bindl.", XF86AudioMicMute" = "exec, ${exec.osdFunc} input mute";
255-256- # Raise and lower display brightness.
257- bindel.", XF86MonBrightnessUp" = "exec, ${exec.slight} inc 10 -t 300ms";
258- bindel.", XF86MonBrightnessDown" = "exec, ${exec.slight} dec 10 -t 300ms";
259-260- # Regular media control keys, if your laptop or bluetooth device has them.
261- bindl.", XF86AudioPlay" = "exec, ${exec.playerctl} play-pause";
262- bindl.", XF86AudioPrev" = "exec, ${exec.playerctl} previous";
263- bindl.", XF86AudioNext" = "exec, ${exec.playerctl} next";
264-265- # Poor-man's media player control keys.
266- bindl."SUPER, slash" = "exec, ${exec.playerctl} play-pause";
267- bindl."SUPER, comma" = "exec, ${exec.playerctl} previous";
268- bindl."SUPER, period" = "exec, ${exec.playerctl} next";
269 }
270 ### WINDOW FOCUS & MOVEMENT ###
271 groups.moveFocusOrWindow
···11 MOUSE_EX1 = "mouse:275";
12 MOUSE_EX2 = "mouse:276";
130000000000000000000000014 # Collections of keybinds common across multiple submaps are collected into
15 # groups, which can be merged together granularly.
16 groups = {
···24 launchPrograms = {
25 # Launch the program with a shortcut.
26 bind."SUPER, E" = "exec, dolphin";
27+ bind."SUPER, Enter" = "exec, foot";
28 };
2930 # Kill the active window.
···194 # Forcefully kill a program after selecting its window with the mouse.
195 bind."SUPER_SHIFT, Q" = "exec, hyprctl kill";
196000197 # Select a region and take a screenshot, saving to the clipboard.
198 bind."SUPER_SHIFT, print" = "exec, prtsc -c -m r -D -b 00000066";
199···209 bind."SUPER, Space" = "exec, rofi -show drun -show-icons";
210 # Open Rofi to run a command.
211 bind."SUPER, R" = "exec, rofi -show run";
0000000000000000000000000000000212 }
213 ### WINDOW FOCUS & MOVEMENT ###
214 groups.moveFocusOrWindow