Files
nvrl b27936a237 feat(hypr): one meaning per modifier in the keybinds
SUPER opens what the key names, SHIFT takes the window along, CTRL
switches session state, ALT resizes. ALT alone is left to the apps,
except ALT+TAB.

- clipboard ALT+M -> SUPER+C, replay ALT+Z -> SUPER+Z, camera
  ALT+SHIFT+C -> SUPER+CTRL+C
- maximize SUPER+M, pdfs SUPER+R (read), group SUPER+G
- SUPER+N opens the notification log (new IPC call), SHIFT clears it
- float and pin on SUPER+SHIFT+V, replacing the separate pin on O
- dnd, stay awake, wallpaper, mirror, reload and layout on SUPER+CTRL
- record the monitor on SUPER+CTRL+PRINT, matching CTRL+PRINT
- every bind carries a description, so the cheatsheet is complete
2026-11-03 18:31:54 +01:00

43 lines
2.4 KiB
Lua

-- Shell (quickshell) IPC. Config lives in ~/.config/quickshell.
-- The layout of the keys is described in lua/binds/apps.lua.
local mod = "SUPER"
local function shell(call, opts)
hl.bind(opts.key, hl.dsp.exec_cmd("qs ipc call shell " .. call), { description = opts.description })
end
-- ------------------------------------------------------------------ panels
shell("dashboard", { key = mod .. " + D", description = "dashboard" })
shell("overview", { key = mod .. " + W", description = "overview of every window" })
shell("ask", { key = mod .. " + A", description = "ask claude" })
shell("notifications", { key = mod .. " + N", description = "notifications" })
shell("clearNotifications", { key = mod .. " + SHIFT + N", description = "clear notifications" })
shell("power", { key = mod .. " + P", description = "power menu" })
-- Launcher modes, opened straight in their prefix.
shell("prompt ';'", { key = mod .. " + period", description = "emoji picker" })
shell("prompt '?'", { key = mod .. " + slash", description = "keybind cheatsheet" })
-- Alt+Tab: hold Alt, tap Tab through focus history, let go to switch. The
-- overview sees the release itself; the release bind is a backstop for the
-- case where Alt comes up before the overview has the keyboard.
shell("overviewNext", { key = "ALT + Tab", description = "switch windows" })
shell("overviewPrev", { key = "ALT + SHIFT + Tab", description = "switch windows, backwards" })
hl.bind("ALT + ALT_L", hl.dsp.exec_cmd("qs ipc call shell overviewCommit"), { release = true })
-- ----------------------------------------------------------------- session
shell("lock", { key = mod .. " + CTRL + L", description = "lock screen" })
shell("toggleDnd", { key = mod .. " + CTRL + N", description = "do not disturb" })
shell("toggleStayAwake", { key = mod .. " + CTRL + I", description = "stay awake (no idle)" })
shell("prompt '@'", { key = mod .. " + CTRL + W", description = "wallpaper picker" })
shell("reloadConfig", { key = mod .. " + CTRL + R", description = "reload the shell" })
-- Not shell calls, but they live with the other session switches.
local mirror = require("lua/mirror")
hl.bind(mod .. " + CTRL + M", mirror.toggle, { description = "mirror the laptop to every screen" })
-- dvorak-intl <-> us-intl, see lua/input.lua
hl.bind(mod .. " + CTRL + SPACE", hl.dsp.exec_cmd("hyprctl switchxkblayout all next"),
{ description = "next keyboard layout" })