From f58aca742de605e9794b2c30505f75222650707a Mon Sep 17 00:00:00 2001 From: Steve Beaulac Date: Fri, 31 Jul 2026 11:07:56 -0400 Subject: [PATCH] refactor(hypr): clean up keybindings, remove dead code, add rofi-pass description --- config/hypr/hyprland.lua | 37 +++++++++---------------------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/config/hypr/hyprland.lua b/config/hypr/hyprland.lua index 3219f27..c6fd7b3 100644 --- a/config/hypr/hyprland.lua +++ b/config/hypr/hyprland.lua @@ -282,42 +282,26 @@ function toggle_master() hl.dispatch(hl.dsp.layout("mfact exact " .. mfact)) end --- hl.bind(LEADER .. "return", function() --- focus_or_launch({ --- match = "terminal-tmux", --- field = "class", --- cmd = "gtk-launch tmux.desktop", --- }) --- end, { description = "Open tmux terminal" }) - --- hl.bind(LEADER .. "SHIFT + return", function() --- focus_or_launch({ --- match = "terminal-herdr", --- field = "class", --- cmd = "gtk-launch herdr.desktop", --- }) --- end, { description = "Open herdr terminal" }) - hl.bind(LEADER .. "SHIFT + return", hl.dsp.exec_cmd("gtk-launch herdr.desktop"), { description = "Open herdr terminal" }) hl.bind(LEADER .. "return", hl.dsp.exec_cmd("gtk-launch tmux.desktop"), { description = "Open tmux terminal" }) hl.bind(LEADER .. "B", hl.dsp.exec_raw(browser), { description = "Open browser" }) hl.bind(LEADER .. "T", hl.dsp.exec_raw(terminal .. " -e btop"), { description = "Open system monitor" }) hl.bind(LEADER .. "S", hl.dsp.exec_raw("ostt launch --paste"), { description = "Open ostt" }) --- hl.bind(LEADER .. "I", hl.dsp.exec_cmd(notify_cmd .. " $(~/.local/bin/sysinfo)"), { description = "Show system info" }) -hl.bind(LEADER .. "I", function() - sysinfo() -end, { description = "Show system info" }) +hl.bind(LEADER .. "I", function() sysinfo() end, { description = "Show system info" }) -- Open rofi on first press, closes it on second hl.bind(LEADER .. "Space", hl.dsp.exec_raw("rofi -show combi --modes combi"), { release = true, description = "Open Application Menu" }) hl.bind(LEADER .. "SHIFT + SPACE", hl.dsp.exec_cmd("~/.local/bin/hyprland-fetch-client"), { release = true, description = "Fetch client" }) -hl.bind(LEADER .. "CONTROL + SPACE", hl.dsp.exec_cmd("~/.local/bin/hyprland-focus-client"), - { release = true, description = "Focus client" }) -hl.bind(LEADER .. "CONTROL + return", hl.dsp.exec_cmd("~/.local/bin/hyprland-tmux-session"), - { release = true, description = "Tmux session switcher" }) - +hl.bind(LEADER .. "CONTROL + SPACE", + hl.dsp.exec_cmd("~/.local/bin/hyprland-focus-client"), + { release = true, description = "Focus client" } +) +hl.bind(LEADER .. "slash", + hl.dsp.exec_cmd("ROFI_PASS_BACKEND=wtype ROFI_PASS_CLIPBOARD_BACKEND=wl-clipboard ~/.local/bin/rofi-pass"), + { release = true, description = "Open rofi-pass" } +) hl.bind(HYPR .. "V", hl.dsp.exec_cmd("pavucontrol"), { description = "Volume control" }) hl.bind(HYPR .. "B", hl.dsp.exec_cmd("blueberry"), { description = "Bluetooth manager" }) @@ -380,9 +364,6 @@ hl.bind(HYPR .. "F", dispatch_focus_or_launch({ cmd = "pcmanfm", }), { description = "File Manager" }) -hl.bind(LEADER .. "slash", - hl.dsp.exec_cmd("ROFI_PASS_BACKEND=wtype ROFI_PASS_CLIPBOARD_BACKEND=wl-clipboard ~/.local/bin/rofi-pass")) - hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), { repeating = true, description = "Volume down" }) hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"), { repeating = true, description = "Volume up" }) hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { description = "Toggle mute" })