Finish hypr config

This commit is contained in:
2026-06-07 19:32:56 +01:00
parent 316a8e0b08
commit deb94ccecf
15 changed files with 52 additions and 829 deletions
+22 -18
View File
@@ -80,22 +80,22 @@ hl.bind(
-- Requires playerctl
hl.bind(
"F86AudioNext",
"XF86AudioNext",
hl.dsp.exec_cmd(osdclient .. " --playerctl next"),
{ locked = true, description = "Next track" }
)
hl.bind(
"F86AudioPause",
"XF86AudioPause",
hl.dsp.exec_cmd(osdclient .. " --playerctl play-pause"),
{ locked = true, description = "Pause" }
)
hl.bind(
"F86AudioPlay",
"XF86AudioPlay",
hl.dsp.exec_cmd(osdclient .. " --playerctl play-pause"),
{ locked = true, description = "Play" }
)
hl.bind(
"F86AudioPrev",
"XF86AudioPrev",
hl.dsp.exec_cmd(osdclient .. " --playerctl previous"),
{ locked = true, description = "Previous track" }
)
@@ -110,10 +110,10 @@ hl.bind(
-- ==========================
-- Copy & Paste
-- ==========================
hl.bind("SUPER + C", hl.dsp.send_shortcut("CTRL + Insert"), { description = "Universal copy" })
hl.bind("SUPER + V", hl.dsp.send_shortcut("SHIFT + Insert"), { description = "Universal paste" })
hl.bind("SUPER + X", hl.dsp.send_shortcut("CTRL + X"), { description = "Universal cut" })
hl.bind("SUPER + A", hl.dsp.send_shortcut("CTRL + A"), { description = "Universal cut" })
hl.bind("SUPER + C", hl.dsp.send_shortcut({ mods = "CTRL", key = "Insert" }), { description = "Universal copy" })
hl.bind("SUPER + V", hl.dsp.send_shortcut({ mods = "SHIFT", key = "Insert" }), { description = "Universal paste" })
hl.bind("SUPER + X", hl.dsp.send_shortcut({ mods = "CRTL", key = "X" }), { description = "Universal cut" })
hl.bind("SUPER + A", hl.dsp.send_shortcut({ mods = "CTRL", key = "A" }), { description = "Universal cut" })
hl.bind(
"SUPER + CTRL + V",
hl.dsp.exec_cmd("station-launch-walker -m clipboard"),
@@ -121,7 +121,7 @@ hl.bind(
)
-- Close windows
hl.bind("SUPER + Q", hl.dsp.window.kill(), { description = "Close window" })
hl.bind("SUPER + Q", hl.dsp.window.close(), { description = "Close window" })
-- ==========================
-- Tiling
@@ -138,7 +138,7 @@ hl.bind(
-- Move focus with SUPER + arrow keys
hl.bind("SUPER + H", hl.dsp.focus({ direction = "left" }), { description = "Move window focus left" })
hl.bind("SUPER + L", hl.dsp.focus({ description = "right" }), { description = "Move window focus right" })
hl.bind("SUPER + L", hl.dsp.focus({ direction = "right" }), { description = "Move window focus right" })
hl.bind("SUPER + K", hl.dsp.focus({ direction = "up" }), { description = "Move window focus up" })
hl.bind("SUPER + J", hl.dsp.focus({ direction = "down" }), { description = "Move window focus down" })
hl.bind("SUPER + SHIFT + H", hl.dsp.window.move({ direction = "left" }), { description = "Move window left" })
@@ -150,7 +150,7 @@ hl.bind("SUPER + SHIFT + J", hl.dsp.window.move({ direction = "down" }), { descr
hl.bind("SUPER + S", hl.dsp.workspace.toggle_special("scratchpad"), { description = "Toggle scratchpad" })
hl.bind(
"SUPER + ALT + S",
hl.dsp.window.move({ worspace = "special:scratchpad" }),
hl.dsp.window.move({ workspace = "special:scratchpad" }),
{ description = "Move window to scratchpad" }
)
@@ -199,7 +199,7 @@ hl.bind("SUPER + CTRL + C", hl.dsp.exec_cmd("station-menu capture"), { descripti
hl.bind("SUPER + CTRL + O", hl.dsp.exec_cmd("station-menu toggle"), { description = "Toggle menu" })
hl.bind("SUPER + ALT + SPACE", hl.dsp.exec_cmd("station-menu"), { description = "Station menu" })
hl.bind("SUPER + ESCAPE", hl.dsp.exec_cmd("station-menu system"), { description = "System menu" })
hl.bind("F86PowerOff", hl.dsp.exec_cmd("station-menu system"), { locked = true, description = "Power menu" })
hl.bind("XF86PowerOff", hl.dsp.exec_cmd("station-menu system"), { locked = true, description = "Power menu" })
hl.bind("SUPER + K", hl.dsp.exec_cmd("station-menu-keybindings"), { description = "Show key bindings" })
hl.bind("XF86Calculator", hl.dsp.exec_cmd("gnome-calculator"), { description = "Calculator" })
@@ -256,17 +256,17 @@ hl.bind("SUPER + PRINT", hl.dsp.exec_cmd("pkill hyprpicker || hyprpicker -a"), {
-- Waybar-less information
hl.bind(
"SUPER + CTRL ALT + T",
"SUPER + CTRL + ALT + T",
hl.dsp.exec_cmd('notify-send " $(date +"%A %H:%M — %d %B W%V %Y")"'),
{ description = "Show time" }
)
hl.bind(
"SUPER + CTRL ALT + B",
"SUPER + CTRL + ALT + B",
hl.dsp.exec_cmd('notify-send "󰁹 Battery is at $(station-battery-remaining)%"'),
{ description = "Show battery remaining" }
)
hl.bind(
"SUPER + CTRL ALT + W",
"SUPER + CTRL + ALT + W",
hl.dsp.exec_cmd('notify-send "$(hyprctl activewindow -j | jq -r \'"Window: (.title)\nClass: (.class)"\')"'),
{ description = "Show active window name and class" }
)
@@ -286,7 +286,11 @@ hl.bind(
hl.dsp.exec_cmd("hyprctl keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor -j | jq '.float + 1')"),
{ description = "Zoom in" }
)
hl.bind("SUPER + CTRL ALT + Z", hl.dsp.exec_cmd("hyprctl keyword cursor:zoom_factor 1"), { description = "Reset zoom" })
hl.bind(
"SUPER + CTRL + ALT + Z",
hl.dsp.exec_cmd("hyprctl keyword cursor:zoom_factor 1"),
{ description = "Reset zoom" }
)
-- Lock system
-- hl.bind("SUPER CTRL + L", hl.dsp.exec_cmd("station-lock-screen"), { description = "Lock system" })
@@ -302,7 +306,7 @@ hl.bind(
)
hl.bind("SUPER + SHIFT + F", hl.dsp.exec_cmd("uwsm-app -- nautilus --new-window"), { description = "File manager" })
hl.bind(
"SUPER + ALT SHIFT + F",
"SUPER + ALT + SHIFT + F",
hl.dsp.exec_cmd('uwsm-app -- nautilus --new-window "$(station-cmd-terminal-cwd)"'),
{ description = "File manager (cwd)" }
)
@@ -312,7 +316,7 @@ hl.bind(
{ description = "Browser" }
)
hl.bind(
"SUPER + SHIFT ALT + B",
"SUPER + SHIFT + ALT + B",
hl.dsp.exec_cmd("station-launch-browser --private"),
{ description = "Browser (private)" }
)