1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
|
-- ==================================================
-- KoolDots (2026)
-- Project URL: https://github.com/LinuxBeginnings
-- License: GNU GPLv3
-- SPDX-License-Identifier: GPL-3.0-or-later
-- ==================================================
-- Auto-generated from Keybinds.conf/UserKeybinds.conf for Lua testing
-- Helper internals live in keybind_helpers.lua so this file stays focused on bindings you may edit.
-- To add a binding, copy an existing bind(...) line and change:
-- 1) modifiers (e.g. "SUPER SHIFT")
-- 2) key (e.g. "Return", "code:10", "mouse_down")
-- 3) action (exec_cmd(...) or dispatch(...))
-- 4) description text
local keybind_helpers = nil
do
local source = (debug.getinfo(1, "S") or {}).source or ""
local source_path = source:match("^@(.+)$")
local source_dir = source_path and source_path:match("^(.*)/[^/]+$") or nil
local home = os.getenv("HOME") or ""
local candidate_paths = {
source_dir and (source_dir .. "/keybind_helpers.lua") or nil,
home ~= "" and (home .. "/.config/hypr/lua/keybind_helpers.lua") or nil,
home ~= "" and (home .. "/.config/hypr/keybind_helpers.lua") or nil,
}
local tried_paths = {}
for _, helper_path in ipairs(candidate_paths) do
if helper_path then
table.insert(tried_paths, helper_path)
local f = io.open(helper_path, "r")
if f then
f:close()
local loaded_ok, loaded_helpers = pcall(dofile, helper_path)
if loaded_ok and type(loaded_helpers) == "table" and loaded_helpers.unbind_default_keys then
keybind_helpers = loaded_helpers
break
end
end
end
end
if not keybind_helpers then
error("Failed to load keybind_helpers.lua from: " .. table.concat(tried_paths, ", "))
end
end
local window_api = keybind_helpers.window_api
local exec_cmd = keybind_helpers.exec_cmd
local raw_dispatch_cmd = keybind_helpers.raw_dispatch_cmd
local dispatch = keybind_helpers.dispatch
local bind = keybind_helpers.bind
local bindm = keybind_helpers.bindm
-- Mass unbind defaults before rebuilding the Lua keymap.
keybind_helpers.unbind_default_keys()
-- ==================================================
-- User-editable bindings
-- ==================================================
-- Section: Application launchers and utility scripts
local app_binds = {
{
"SUPER",
"D",
"pkill rofi || true; $HOME/.config/hypr/scripts/RofiFocusedWallpaperLink.sh >/dev/null 2>&1 || true; rofi -show drun -modi drun,filebrowser,run,window",
"app launcher",
},
{ "SUPER", "B", 'xdg-open "https://"', "open default browser" },
{ "SUPER", "A", "$HOME/.config/hypr/scripts/OverviewToggle.sh", "desktop overview" },
{ "SUPER", "Return", "$HOME/.config/hypr/scripts/LaunchTerminal.sh '$term'", "Open terminal" },
{
"SUPER",
"E",
"$HOME/.config/hypr/scripts/LaunchFileManager.sh '$files' '$term'",
"file manager",
},
{ "SUPER", "C", "$HOME/.config/hypr/scripts/rofi-ssh-menu.sh", "SSH session manager" },
{ "SUPER", "T", "$HOME/.config/hypr/scripts/ThemeChanger.sh", "Global theme switcher using Wallust" },
{ "SUPER", "H", "$HOME/.config/hypr/scripts/KeyHints.sh", "help / cheat sheet" },
{ "SUPER ALT", "R", "$HOME/.config/hypr/scripts/Refresh.sh", "refresh bar and menus" },
{ "SUPER ALT", "E", "$HOME/.config/hypr/scripts/RofiEmoji.sh", "emoji menu" },
{ "SUPER", "S", "$HOME/.config/hypr/scripts/RofiSearch.sh", "web search" },
{
"SUPER CTRL",
"S",
"$HOME/.config/hypr/scripts/RofiFocusedWallpaperLink.sh >/dev/null 2>&1 || true; rofi -show window",
"window switcher",
},
{ "SUPER ALT", "O", "$HOME/.config/hypr/scripts/ChangeBlur.sh", "toggle blur" },
{ "SUPER SHIFT", "G", "$HOME/.config/hypr/scripts/GameMode.sh", "toggle game mode" },
{ "SUPER ALT", "L", "$HOME/.config/hypr/scripts/ChangeLayout.sh toggle", "toggle layouts" },
{ "SUPER ALT", "V", "$HOME/.config/hypr/scripts/ClipManager.sh", "clipboard manager" },
{ "SUPER CTRL", "R", "$HOME/.config/hypr/scripts/RofiThemeSelector.sh", "rofi theme selector" },
{
"SUPER CTRL SHIFT",
"R",
"pkill rofi || true && $HOME/.config/hypr/scripts/RofiThemeSelector-modified.sh",
"rofi theme selector (modified)",
},
{ "SUPER CTRL", "K", "$HOME/.config/hypr/scripts/Kitty_themes.sh", "Kitty theme selector" },
{ "SUPER CTRL", "G", "$HOME/.config/hypr/scripts/Ghostty_themes.sh", "Ghostty theme selector" },
{
"SUPER SHIFT",
"B",
"$HOME/.config/hypr/UserScripts/RainbowBorders-low-cpu.sh --run-once",
"Set static Rainbow Border",
},
{
"SUPER SHIFT",
"H",
"$HOME/.config/hypr/scripts/Toggle-Active-Window-Audio.sh",
"Toggle Mute/Unmute for Active-Window",
},
{
"ALT SHIFT",
"S",
"$HOME/.config/hypr/scripts/hyprshot.sh -m region -o $HOME/Pictures/Screenshots",
"Hyprshot Screen Capture",
},
{ "SUPER ALT", "SPACE", "$HOME/.config/hypr/scripts/Float-all-Windows.sh", "Float all windows" },
-- NOTE: Dropterminal is currently certified only with kitty. Not all terminals behave correctly as a dropdown.
{ "SUPER SHIFT", "Return", "$HOME/.config/hypr/scripts/Dropterminal.sh kitty", "DropDown terminal" },
{
"SUPER ALT",
"mouse_down",
"hyprctl keyword cursor:zoom_factor \"$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor * 2.0}')\"",
"zoom in",
},
{
"SUPER ALT",
"mouse_up",
"hyprctl keyword cursor:zoom_factor \"$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor / 2.0}')\"",
"zoom out",
},
{ "SUPER CTRL ALT", "B", "pkill -SIGUSR1 waybar", "toggle waybar on/off" },
{ "SUPER CTRL", "B", "$HOME/.config/hypr/scripts/WaybarStyles.sh", "waybar styles menu" },
{ "SUPER ALT", "B", "$HOME/.config/hypr/scripts/WaybarLayout.sh", "waybar layout menu" },
{ "SUPER", "N", "$HOME/.config/hypr/scripts/Hyprsunset.sh toggle", "Toggle Hyprsunset - night light" },
{ "SUPER SHIFT", "M", "$HOME/.config/hypr/UserScripts/RofiBeats.sh", "online music" },
{ "SUPER", "W", "$HOME/.config/hypr/scripts/WallpaperSelect.sh", "select wallpaper" },
{ "SUPER SHIFT", "W", "$HOME/.config/hypr/scripts/WallpaperEffects.sh", "wallpaper effects" },
{ "CTRL ALT", "W", "$HOME/.config/hypr/scripts/WallpaperRandom.sh", "random wallpaper" },
{ "SUPER SHIFT", "K", "$HOME/.config/hypr/scripts/KeyBinds.sh", "search keybinds" },
{ "SUPER SHIFT", "A", "$HOME/.config/hypr/scripts/Animations.sh", "animations menu" },
{ "SUPER SHIFT", "R", "$HOME/.config/hypr/scripts/ZshChangeTheme.sh", "change oh-my-zsh theme" },
{ "SUPER ALT", "C", "$HOME/.config/hypr/UserScripts/RofiCalc.sh", "calculator" },
}
for _, app in ipairs(app_binds) do
bind(app[1], app[2], exec_cmd(app[3]), { description = app[4] })
end
--
--
-- These are examples of how to bind to a TUI/CLI apps
-- The specific keybinds are just examples
-- Do not user as-is as it will break exisitng keybinds
--
--
-- TUI Apps Configuration (commented options from LUA-files/hyprland-key-bindings-example.lua).
-- local terminal = "uwsm-app -- " .. (os.getenv("TERMINAL") or "")
-- local browser = "omarchy-launch-browser"
-- local tui_apps = {
-- { "CTRL + ALT + O", "opencode", "a opencode", "OpenCode" },
-- { "CTRL + ALT + SHIFT + A", "cline", "-e cline", "OpenCode" },
-- { "CTRL + ALT + B", "btop", "-e btop", "Task Manager" },
-- { "CTRL + ALT + SHIFT + B", "bluetui", "-e bluetui", "BlueTUI" },
-- { "CTRL + ALT + E", "spf", "-e spf", "SuperFile Manager" },
-- { "CTRL + ALT + L", "lazygit", "-e lazygit", "LazyGit" },
-- { "CTRL + ALT + N", "nvtop", "-e nvtop", "Nvtop" },
-- { "CTRL + ALT + SHIFT + N", "ncdu", "-e ncdu", "Ncdu" },
-- { "CTRL + ALT + W", "impala", "-e impala", "Impala Wi-Fi" },
-- { "CTRL + ALT + P", "pacseek", "-e pacseek", "PacSeek" },
-- { "CTRL + ALT + SHIFT + P", "pacsea", "-e pacsea", "PacSea" },
-- { "CTRL + ALT + R", "fzf-uninstall", "-e ~/.config/hypr/fzfpurge", "Fzf Uninstaller" },
-- { "CTRL + ALT + V", "wiremix", "-e wiremix", "WireMix Volume" },
-- { "CTRL + ALT + SHIFT + H", "htop", "-e htop", "Htop" },
-- }
-- for _, app in ipairs(tui_apps) do
-- hl.bind(app[1], hl.dsp.exec_cmd(terminal .. " --title=" .. app[2] .. " " .. app[3]), { description = app[4] })
-- end
--
--
-- These are examples of how to bind webpages
-- The specific keybinds are just examples
-- Do not user as-is as it will break exisitng keybinds
--
--
-- Web Apps Configuration (commented options from LUA-files/hyprland-key-bindings-example.lua).
-- local web_apps = {
-- { "SUPER + A", "https://gemini.google.com", "Gemini AI" },
-- { "SUPER + Y", "https://youtube.com", "YouTube" },
-- { "SUPER + T", "https://tiktok.com", "TikTok" },
-- { "SUPER + X", "https://x.com", "X.com" },
-- { "SUPER + U", "http://10.24.1.1", "Unifi" },
-- { "SUPER + I", "https://instagram.com", "Instagram" },
-- { "SUPER + P", "https://mail.proton.me", "Proton Mail" },
-- }
-- for _, web in ipairs(web_apps) do
-- hl.bind(web[1], hl.dsp.exec_cmd([[omarchy-launch-webapp "]] .. web[2] .. [["]]), { description = web[3] })
-- end
-- Manual example actions not currently active in this config.
-- hl.bind("SUPER + F", hl.dsp.window.fullscreen({ mode = "fullscreen" }), { description = "Fullscreen Window" })
-- hl.bind("ALT + SPACE", hl.dsp.window.float({ action = "toggle" }), { description = "Toggle floating" })
-- hl.bind("CTRL + ALT + return", hl.dsp.exec_cmd("uwsm-app -- kitty"), { description = "Kitty terminal" })
-- hl.bind(
-- "CTRL + ALT + SHIFT + return",
-- hl.dsp.exec_cmd([[uwsm-app -- xdg-terminal-exec --dir="$(omarchy-cmd-terminal-cwd)" tmux new]]),
-- { description = "Tmux" }
-- )
-- Section: Window/session controls
bind("SUPER SHIFT", "F", dispatch("fullscreen", ""), { description = "fullscreen" })
bind("SUPER", "F", dispatch("fullscreen", "1"), { description = "maximize window" })
bind("SUPER", "SPACE", dispatch("togglefloating", ""), { description = "Float current window" })
bind("SUPER CTRL", "O", dispatch("setprop", "active opaque toggle"), { description = "toggle active window opacity" })
bind(
"ALT_L",
"SHIFT_L",
dispatch("switch keyboard layout globally", "exec, $HOME/.config/hypr/scripts/KeyboardLayout.sh switch"),
{ locked = true, description = "switch keyboard layout globally" }
)
bind(
"SHIFT_L",
"ALT_L",
dispatch("switch keyboard layout per-window", "exec, $HOME/.config/hypr/scripts/Tak0-Per-Window-Switch.sh"),
{ locked = true, description = "switch keyboard layout per-window" }
)
bind(
"SUPER CTRL",
"F9",
dispatch("movecurrentworkspacetomonitor", "l"),
{ description = "move workspace to left monitor" }
)
bind(
"SUPER CTRL",
"F10",
dispatch("movecurrentworkspacetomonitor", "r"),
{ description = "move workspace to right monitor" }
)
bind(
"SUPER CTRL",
"F11",
dispatch("movecurrentworkspacetomonitor", "u"),
{ description = "move workspace to up monitor" }
)
bind(
"SUPER CTRL",
"F12",
dispatch("movecurrentworkspacetomonitor", "d"),
{ description = "move workspace to down monitor" }
)
bind("CTRL ALT", "Delete", exec_cmd("$HOME/.config/hypr/scripts/Logout.sh"), { description = "exit Hyprland" })
bind("SUPER", "Q", dispatch("killactive", ""), { description = "close active window" })
bind(
"SUPER SHIFT",
"Q",
exec_cmd("$HOME/.config/hypr/scripts/KillActiveProcess.sh"),
{ description = "Terminate active process" }
)
bind("CTRL ALT", "L", exec_cmd("$HOME/.config/hypr/scripts/LockScreen.sh"), { description = "lock screen" })
bind("CTRL ALT", "P", exec_cmd("$HOME/.config/hypr/scripts/Wlogout.sh"), { description = "powermenu" })
bind("SUPER SHIFT", "N", exec_cmd("swaync-client -t -sw"), { description = "notification panel" })
bind(
"SUPER SHIFT",
"E",
exec_cmd("$HOME/.config/hypr/scripts/Kool_Quick_Settings.sh"),
{ description = "Quick settings menu" }
)
-- Section: Layout and tiling controls
bind("SUPER CTRL", "D", dispatch("layoutmsg", "removemaster"), { description = "remove master" })
bind("SUPER", "I", dispatch("layoutmsg", "addmaster"), { description = "add master" })
bind(
"SUPER",
"j",
exec_cmd("$HOME/.config/hypr/scripts/LayoutKeybindDispatch.sh cycle-next"),
{ description = "cycle next (layout-aware)" }
)
bind(
"SUPER",
"k",
exec_cmd("$HOME/.config/hypr/scripts/LayoutKeybindDispatch.sh cycle-prev"),
{ description = "cycle previous (layout-aware)" }
)
bind("SUPER CTRL", "Return", dispatch("layoutmsg", "swapwithmaster"), { description = "swap with master" })
bind("SUPER SHIFT", "I", dispatch("layoutmsg", "togglesplit"), { description = "toggle split (dwindle)" })
bind("SUPER", "P", dispatch("pseudo", ""), { description = "toggle pseudo (dwindle)" })
bind("SUPER", "M", raw_dispatch_cmd("splitratio 0.3"), { description = "set split ratio 0.3" })
bind(
"SUPER ALT",
"1",
exec_cmd("$HOME/.config/hypr/scripts/ChangeLayout.sh dwindle"),
{ description = "layout dwindle" }
)
bind("SUPER ALT", "2", exec_cmd("$HOME/.config/hypr/scripts/ChangeLayout.sh master"), { description = "layout master" })
bind(
"SUPER ALT",
"3",
exec_cmd("$HOME/.config/hypr/scripts/ChangeLayout.sh scrolling"),
{ description = "layout scrolling" }
)
bind(
"SUPER ALT",
"4",
exec_cmd("$HOME/.config/hypr/scripts/ChangeLayout.sh monocle"),
{ description = "layout monocle" }
)
bind("SUPER SHIFT", "period", dispatch("layoutmsg", "move +col"), { description = "move to right column" })
bind("SUPER SHIFT", "comma", dispatch("layoutmsg", "move -col"), { description = "move to left column" })
bind("SUPER ALT", "comma", dispatch("layoutmsg", "swapcol l"), { description = "swap columns left" })
bind("SUPER ALT", "period", dispatch("layoutmsg", "swapcol r"), { description = "swap columns right" })
bind(
"SUPER ALT",
"H",
exec_cmd("hyprctl keyword scrolling:direction right"),
{ description = "Horizonal scroll right" }
)
bind("SUPER ALT", "V", exec_cmd("hyprctl keyword scrolling:direction down"), { description = "Vertical Scroll down" })
bind(
"SUPER ALT",
"S",
exec_cmd(
'bash -c \'[[ $(hyprctl getoption scrolling:direction -j | jq -r ".str") == "right" ]] && hyprctl keyword scrolling:direction down || hyprctl keyword scrolling:direction right\''
),
{ description = "toggle scrolling V/H" }
)
local col_width_presets = { 0.25, 0.33, 0.5, 0.66, 0.75, 1.0 }
local function _as_number(v)
if type(v) == "number" then
return v
end
if type(v) == "string" then
return tonumber(v)
end
return nil
end
local function _window_width(win)
if type(win) ~= "table" then
return nil
end
local sz = win.size
if type(sz) == "number" then
return sz
end
if type(sz) == "table" then
return _as_number(sz[1] or sz.width or sz.w)
end
return nil
end
local function _monitor_width(win)
local mon = type(win) == "table" and win.monitor or nil
if type(mon) == "table" then
local w = _as_number(mon.width or mon.w or (type(mon.size) == "table" and (mon.size[1] or mon.size.width)))
if w ~= nil then
return w
end
end
if hl.get_active_monitor then
local active_mon = hl.get_active_monitor()
if type(active_mon) == "table" then
local w = _as_number(active_mon.width or active_mon.w or (type(active_mon.size) == "table" and (active_mon.size[1] or active_mon.size.width)))
if w ~= nil then
return w
end
end
end
return nil
end
bind("SUPER", "R", function()
local ws = hl.get_active_workspace and hl.get_active_workspace() or nil
local ws_layout = ws and (ws.tiled_layout or ws.tiledLayout) or nil
if ws_layout ~= "scrolling" then
return
end
local w = hl.get_active_window and hl.get_active_window() or nil
local col = w ~= nil and w.layout and w.layout.column or nil
local current_width = nil
if type(col) == "table" then
current_width = _as_number(col.width)
else
current_width = _as_number(col)
end
if type(current_width) ~= "number" then
local ww = _window_width(w)
local mw = _monitor_width(w)
if type(ww) == "number" and type(mw) == "number" and mw > 0 then
current_width = ww / mw
end
end
if type(current_width) ~= "number" or current_width <= 0 then
return
end
if current_width > 1 then
current_width = 1
end
local closest, best = 1, math.huge
for i, v in ipairs(col_width_presets) do
local diff = math.abs(v - current_width)
if diff < best then
best, closest = diff, i
end
end
local nextIdx = closest % #col_width_presets + 1
hl.dispatch(hl.dsp.layout("colresize " .. tostring(col_width_presets[nextIdx])))
end, { description = "cycle column width preset (scrolling)" })
bind("ALT", "Tab", exec_cmd("$HOME/.config/hypr/scripts/LuaCycleWindow.sh next"), { description = "cycle next window" })
-- Section: Audio, media, and hardware keys
bind(
"",
"xf86audioraisevolume",
dispatch("volume up", "exec, $HOME/.config/hypr/scripts/Volume.sh --inc"),
{ description = "volume up" }
)
bind(
"",
"xf86audiolowervolume",
dispatch("volume down", "exec, $HOME/.config/hypr/scripts/Volume.sh --dec"),
{ description = "volume down" }
)
bind(
"ALT",
"xf86audioraisevolume",
dispatch("volume up precise", "exec, $HOME/.config/hypr/scripts/Volume.sh --inc-precise"),
{ description = "volume up precise" }
)
bind(
"ALT",
"xf86audiolowervolume",
dispatch("volume down precise", "exec, $HOME/.config/hypr/scripts/Volume.sh --dec-precise"),
{ description = "volume down precise" }
)
bind(
"",
"xf86AudioMicMute",
dispatch("toggle mic mute", "exec, $HOME/.config/hypr/scripts/Volume.sh --toggle-mic"),
{ locked = true, description = "toggle mic mute" }
)
bind(
"",
"xf86audiomute",
dispatch("toggle mute", "exec, $HOME/.config/hypr/scripts/Volume.sh --toggle"),
{ locked = true, description = "toggle mute" }
)
bind("", "xf86Sleep", dispatch("sleep", "exec, systemctl suspend"), { locked = true, description = "sleep" })
bind(
"",
"xf86Rfkill",
dispatch("airplane mode", "exec, $HOME/.config/hypr/scripts/AirplaneMode.sh"),
{ locked = true, description = "airplane mode" }
)
bind(
"",
"xf86AudioPlayPause",
dispatch("play/pause", "exec, $HOME/.config/hypr/scripts/MediaCtrl.sh --pause"),
{ locked = true, description = "play/pause" }
)
bind(
"",
"xf86AudioPause",
dispatch("pause", "exec, $HOME/.config/hypr/scripts/MediaCtrl.sh --pause"),
{ locked = true, description = "pause" }
)
bind(
"",
"xf86AudioPlay",
dispatch("play", "exec, $HOME/.config/hypr/scripts/MediaCtrl.sh --pause"),
{ locked = true, description = "play" }
)
bind(
"",
"xf86AudioNext",
dispatch("next track", "exec, $HOME/.config/hypr/scripts/MediaCtrl.sh --nxt"),
{ locked = true, description = "next track" }
)
bind(
"",
"xf86AudioPrev",
dispatch("previous track", "exec, $HOME/.config/hypr/scripts/MediaCtrl.sh --prv"),
{ locked = true, description = "previous track" }
)
bind(
"",
"xf86audiostop",
dispatch("stop", "exec, $HOME/.config/hypr/scripts/MediaCtrl.sh --stop"),
{ locked = true, description = "stop" }
)
-- Section: Screenshot bindings
bind("SUPER", "Print", exec_cmd("$HOME/.config/hypr/scripts/ScreenShot.sh --now"), { description = "screenshot now" })
bind(
"SUPER SHIFT",
"Print",
exec_cmd("$HOME/.config/hypr/scripts/ScreenShot.sh --area"),
{ description = "screenshot (area)" }
)
bind(
"SUPER CTRL",
"Print",
exec_cmd("$HOME/.config/hypr/scripts/ScreenShot.sh --in5"),
{ description = "screenshot in 5s" }
)
bind(
"SUPER CTRL SHIFT",
"Print",
exec_cmd("$HOME/.config/hypr/scripts/ScreenShot.sh --in10"),
{ description = "screenshot in 10s" }
)
bind(
"ALT",
"Print",
exec_cmd("$HOME/.config/hypr/scripts/ScreenShot.sh --active"),
{ description = "screenshot active window" }
)
bind(
"SUPER SHIFT",
"S",
exec_cmd("$HOME/.config/hypr/scripts/ScreenShot.sh --swappy"),
{ description = "screenshot (swappy)" }
)
-- Keep legacy script-based resize bindings commented for quick rollback during Lua API migration.
-- These call ResizeActive.sh and are preserved in case native hl.dsp/hl.window resize behavior regresses.
-- bind(
-- "SUPER SHIFT",
-- "left",
-- exec_cmd("bash $HOME/.config/hypr/scripts/ResizeActive.sh -50 0"),
-- { description = "resize left (-50)" }
-- )
-- bind(
-- "SUPER SHIFT",
-- "right",
-- exec_cmd("bash $HOME/.config/hypr/scripts/ResizeActive.sh 50 0"),
-- { description = "resize right (+50)" }
-- )
-- bind(
-- "SUPER SHIFT",
-- "up",
-- exec_cmd("bash $HOME/.config/hypr/scripts/ResizeActive.sh 0 -50"),
-- { description = "resize up (-50)" }
-- )
-- bind(
-- "SUPER SHIFT",
-- "down",
-- exec_cmd("bash $HOME/.config/hypr/scripts/ResizeActive.sh 0 50"),
-- { description = "resize down (+50)" }
-- )
bind(
"SUPER SHIFT",
"left",
dispatch("resizeactive", "-50 0"),
{ description = "resize left (-50)" }
)
bind(
"SUPER SHIFT",
"right",
dispatch("resizeactive", "50 0"),
{ description = "resize right (+50)" }
)
bind("SUPER SHIFT", "up", dispatch("resizeactive", "0 -50"), { description = "resize up (-50)" })
bind(
"SUPER SHIFT",
"down",
dispatch("resizeactive", "0 50"),
{ description = "resize down (+50)" }
)
-- Keep legacy directional move script binds commented for rollback during Lua API migration.
-- Native movewindow dispatch below replaces LuaMoveWindowDirectional.sh usage.
-- bind(
-- "SUPER CTRL",
-- "left",
-- exec_cmd("$HOME/.config/hypr/scripts/LuaMoveWindowDirectional.sh left"),
-- { description = "move window left" }
-- )
-- bind(
-- "SUPER CTRL",
-- "right",
-- exec_cmd("$HOME/.config/hypr/scripts/LuaMoveWindowDirectional.sh right"),
-- { description = "move window right" }
-- )
-- Section: Window resize, move, swap, and grouping
bind("SUPER CTRL", "left", dispatch("movewindow", "l"), { description = "move window left" })
bind("SUPER CTRL", "right", dispatch("movewindow", "r"), { description = "move window right" })
bind("SUPER CTRL", "up", dispatch("movewindow", "u"), { description = "move window up" })
bind("SUPER CTRL", "down", dispatch("movewindow", "d"), { description = "move window down" })
bind(
"SUPER ALT",
"left",
exec_cmd("$HOME/.config/hypr/scripts/LuaSwapWindow.sh l"),
{ description = "swap window left" }
)
bind(
"SUPER ALT",
"right",
exec_cmd("$HOME/.config/hypr/scripts/LuaSwapWindow.sh r"),
{ description = "swap window right" }
)
bind("SUPER ALT", "up", exec_cmd("$HOME/.config/hypr/scripts/LuaSwapWindow.sh u"), { description = "swap window up" })
bind(
"SUPER ALT",
"down",
exec_cmd("$HOME/.config/hypr/scripts/LuaSwapWindow.sh d"),
{ description = "swap window down" }
)
bind("SUPER", "G", dispatch("togglegroup", ""), { description = "toggle group" })
bind("SUPER", "Tab", dispatch("changegroupactive", "f"), { description = "Change Group Forward" })
bind("SUPER CTRL", "tab", dispatch("changegroupactive", ""), { description = "change active in group" })
bind("SUPER SHIFT", "Tab", dispatch("changegroupactive", "b"), { description = "Change Group Back" })
bind("SUPER CTRL", "K", dispatch("moveintogroup", "l"), { description = "Move left into group" })
bind("SUPER CTRL", "L", dispatch("moveintogroup", "r"), { description = "Move Right into group" })
bind("SUPER CTRL", "H", dispatch("moveoutofgroup", ""), { description = "Move active out of group" })
bind(
"SUPER",
"left",
exec_cmd("$HOME/.config/hypr/scripts/LayoutKeybindDispatch.sh focus-left"),
{ description = "focus left (layout-aware)" }
)
bind(
"SUPER",
"right",
exec_cmd("$HOME/.config/hypr/scripts/LayoutKeybindDispatch.sh focus-right"),
{ description = "focus right (layout-aware)" }
)
bind(
"SUPER",
"up",
exec_cmd("$HOME/.config/hypr/scripts/LayoutKeybindDispatch.sh focus-up"),
{ description = "focus up (layout-aware)" }
)
bind(
"SUPER",
"down",
exec_cmd("$HOME/.config/hypr/scripts/LayoutKeybindDispatch.sh focus-down"),
{ description = "focus down (layout-aware)" }
)
-- Section: Workspace navigation and assignment
-- Keep legacy relative workspace focus script binds commented for rollback during Lua API migration.
-- Native workspace dispatch below replaces LuaFocusWorkspaceRelative.sh usage.
-- bind(
-- "SUPER",
-- "tab",
-- exec_cmd("$HOME/.config/hypr/scripts/LuaFocusWorkspaceRelative.sh next"),
-- { description = "next workspace" }
-- )
-- bind(
-- "SUPER SHIFT",
-- "tab",
-- exec_cmd("$HOME/.config/hypr/scripts/LuaFocusWorkspaceRelative.sh previous"),
-- { description = "previous workspace" }
-- )
bind("SUPER", "tab", dispatch("workspace", "e+1"), { description = "next workspace" })
bind("SUPER SHIFT", "tab", dispatch("workspace", "e-1"), { description = "previous workspace" })
bind("SUPER SHIFT", "U", dispatch("movetoworkspace", "special"), { description = "move to special workspace" })
bind("SUPER", "U", dispatch("togglespecialworkspace", ""), { description = "toggle special workspace" })
bind("SUPER", "code:10", dispatch("workspace", "1"), { description = "workspace 1" })
bind("SUPER", "code:11", dispatch("workspace", "2"), { description = "workspace 2" })
bind("SUPER", "code:12", dispatch("workspace", "3"), { description = "workspace 3" })
bind("SUPER", "code:13", dispatch("workspace", "4"), { description = "workspace 4" })
bind("SUPER", "code:14", dispatch("workspace", "5"), { description = "workspace 5" })
bind("SUPER", "code:15", dispatch("workspace", "6"), { description = "workspace 6" })
bind("SUPER", "code:16", dispatch("workspace", "7"), { description = "workspace 7" })
bind("SUPER", "code:17", dispatch("workspace", "8"), { description = "workspace 8" })
bind("SUPER", "code:18", dispatch("workspace", "9"), { description = "workspace 9" })
bind("SUPER", "code:19", dispatch("workspace", "10"), { description = "workspace 10" })
bind("SUPER SHIFT", "code:10", dispatch("movetoworkspace", "1"), { description = "move to workspace 1" })
bind("SUPER SHIFT", "code:11", dispatch("movetoworkspace", "2"), { description = "move to workspace 2" })
bind("SUPER SHIFT", "code:12", dispatch("movetoworkspace", "3"), { description = "move to workspace 3" })
bind("SUPER SHIFT", "code:13", dispatch("movetoworkspace", "4"), { description = "move to workspace 4" })
bind("SUPER SHIFT", "code:14", dispatch("movetoworkspace", "5"), { description = "move to workspace 5" })
bind("SUPER SHIFT", "code:15", dispatch("movetoworkspace", "6"), { description = "move to workspace 6" })
bind("SUPER SHIFT", "code:16", dispatch("movetoworkspace", "7"), { description = "move to workspace 7" })
bind("SUPER SHIFT", "code:17", dispatch("movetoworkspace", "8"), { description = "move to workspace 8" })
bind("SUPER SHIFT", "code:18", dispatch("movetoworkspace", "9"), { description = "move to workspace 9" })
bind("SUPER SHIFT", "code:19", dispatch("movetoworkspace", "10"), { description = "move to workspace 10" })
-- Keep legacy relative move-to-workspace script binds commented for rollback during Lua API migration.
-- Native movetoworkspace dispatch below replaces LuaMoveWindowWorkspaceRelative.sh usage.
-- bind(
-- "SUPER SHIFT",
-- "bracketleft",
-- exec_cmd("$HOME/.config/hypr/scripts/LuaMoveWindowWorkspaceRelative.sh previous"),
-- { description = "move to previous workspace" }
-- )
-- bind(
-- "SUPER SHIFT",
-- "bracketright",
-- exec_cmd("$HOME/.config/hypr/scripts/LuaMoveWindowWorkspaceRelative.sh next"),
-- { description = "move to next workspace" }
-- )
bind("SUPER SHIFT", "bracketleft", dispatch("movetoworkspace", "-1"), { description = "move to previous workspace" })
bind("SUPER SHIFT", "bracketright", dispatch("movetoworkspace", "+1"), { description = "move to next workspace" })
bind("SUPER CTRL", "code:10", dispatch("movetoworkspacesilent", "1"), { description = "move silently to workspace 1" })
bind("SUPER CTRL", "code:11", dispatch("movetoworkspacesilent", "2"), { description = "move silently to workspace 2" })
bind("SUPER CTRL", "code:12", dispatch("movetoworkspacesilent", "3"), { description = "move silently to workspace 3" })
bind("SUPER CTRL", "code:13", dispatch("movetoworkspacesilent", "4"), { description = "move silently to workspace 4" })
bind("SUPER CTRL", "code:14", dispatch("movetoworkspacesilent", "5"), { description = "move silently to workspace 5" })
bind("SUPER CTRL", "code:15", dispatch("movetoworkspacesilent", "6"), { description = "move silently to workspace 6" })
bind("SUPER CTRL", "code:16", dispatch("movetoworkspacesilent", "7"), { description = "move silently to workspace 7" })
bind("SUPER CTRL", "code:17", dispatch("movetoworkspacesilent", "8"), { description = "move silently to workspace 8" })
bind("SUPER CTRL", "code:18", dispatch("movetoworkspacesilent", "9"), { description = "move silently to workspace 9" })
bind(
"SUPER CTRL",
"code:19",
dispatch("movetoworkspacesilent", "10"),
{ description = "move silently to workspace 10" }
)
-- Keep legacy silent relative move-to-workspace script binds commented for rollback during Lua API migration.
-- Native movetoworkspacesilent dispatch below replaces LuaMoveWindowWorkspaceRelative.sh usage.
-- bind(
-- "SUPER CTRL",
-- "bracketleft",
-- exec_cmd("$HOME/.config/hypr/scripts/LuaMoveWindowWorkspaceRelative.sh previous"),
-- { description = "move silently to previous workspace" }
-- )
-- bind(
-- "SUPER CTRL",
-- "bracketright",
-- exec_cmd("$HOME/.config/hypr/scripts/LuaMoveWindowWorkspaceRelative.sh next"),
-- { description = "move silently to next workspace" }
-- )
bind(
"SUPER CTRL",
"bracketleft",
dispatch("movetoworkspacesilent", "-1"),
{ description = "move silently to previous workspace" }
)
bind(
"SUPER CTRL",
"bracketright",
dispatch("movetoworkspacesilent", "+1"),
{ description = "move silently to next workspace" }
)
-- Keep legacy scroll/period/comma workspace focus script binds commented for rollback during Lua API migration.
-- Native workspace dispatch below replaces LuaFocusWorkspaceRelative.sh usage.
-- bind(
-- "SUPER",
-- "mouse_down",
-- exec_cmd("$HOME/.config/hypr/scripts/LuaFocusWorkspaceRelative.sh next"),
-- { description = "next workspace" }
-- )
-- bind(
-- "SUPER",
-- "mouse_up",
-- exec_cmd("$HOME/.config/hypr/scripts/LuaFocusWorkspaceRelative.sh previous"),
-- { description = "previous workspace" }
-- )
-- bind(
-- "SUPER",
-- "period",
-- exec_cmd("$HOME/.config/hypr/scripts/LuaFocusWorkspaceRelative.sh next"),
-- { description = "next workspace" }
-- )
-- bind(
-- "SUPER",
-- "comma",
-- exec_cmd("$HOME/.config/hypr/scripts/LuaFocusWorkspaceRelative.sh previous"),
-- { description = "previous workspace" }
-- )
bind("SUPER", "mouse_down", dispatch("workspace", "e+1"), { description = "next workspace" })
bind("SUPER", "mouse_up", dispatch("workspace", "e-1"), { description = "previous workspace" })
bind("SUPER", "period", dispatch("workspace", "e+1"), { description = "next workspace" })
bind("SUPER", "comma", dispatch("workspace", "e-1"), { description = "previous workspace" })
-- Section: Mouse drag/resize bindings
bindm("SUPER", "mouse:272", "movewindow", "move window")
bindm("SUPER", "mouse:273", "resizewindow", "resize window")
|