This commit is contained in:
2026-07-07 22:43:49 -07:00
parent 066429b3af
commit ba1c35a462
9 changed files with 123 additions and 30 deletions
+6 -2
View File
@@ -146,9 +146,11 @@ bind = CTRL $mainMod SHIFT, R, exec, hyprctl dispatch dpms off && sleep 1 && hyp
# Disable keybinds with one master keybind
# https://wiki.hypr.land/0.49.0/Configuring/Uncommon-tips--tricks/#disabling-keybinds-with-one-master-keybind
# PAGE DOWN
bind = $mainMod, code:117, exec, hyprctl eval 'hl.unbind("ALT + mouse:272"); hl.unbind("ALT + mouse:273")'
bind = $mainMod, code:117, submap, clean
submap = clean
# PAGE UP
bind = $mainMod, code:112, exec, hyprctl eval 'hl.bind("ALT + mouse:272", hl.dsp.window.drag(), { mouse = true }); hl.bind("ALT + mouse:273", hl.dsp.window.resize(), { mouse = true })'
bind = $mainMod, code:112, submap, reset
submap = reset
@@ -159,8 +161,10 @@ bind = $mainMod, a, exec, ~/.config/rofi/scripts/rofi-anki-script.sh
# bind = $mainMod SHIFT, a, exec, ~/projects/scripts/screenshot-anki.sh -cdMinecraft
# GSM
bindl = , mouse:275, exec, xdotool key alt+w # top mouse to texthooker
bindl = , mouse:276, exec, xdotool key alt+grave # bottom mouse to overlay
# Side buttons intentionally unbound:
# mouse:275 / BTN_SIDE and mouse:276 / BTN_EXTRA pass through as native back/forward.
# bindl = , mouse:275, exec, xdotool key alt+w # top mouse to texthooker
# bindl = , mouse:276, exec, xdotool key alt+grave # bottom mouse to overlay
bind = ALT, g, exec, /opt/mpv-yomitan/mpv-yomitan.AppImage --toggle
# F5
+26 -6
View File
@@ -73,8 +73,8 @@ hl.bind(mainMod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }))
hl.bind(mainMod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" }))
-- Move/resize windows with mainMod + LMB/RMB and dragging
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag())
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize())
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
-- Laptop multimedia keys for volume and LCD brightness
hl.bind(
@@ -168,10 +168,26 @@ hl.bind(
-- )
-- Disable keybinds with one master keybind
hl.bind(mainMod .. " + Page_Down", hl.dsp.submap("clean"))
local function disableMouseWindowBinds()
hl.unbind(mainMod .. " + mouse:272")
hl.unbind(mainMod .. " + mouse:273")
end
local function restoreMouseWindowBinds()
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
end
hl.bind(mainMod .. " + Page_Down", function()
disableMouseWindowBinds()
hl.dispatch(hl.dsp.submap("clean"))
end)
hl.define_submap("clean", function()
-- Page Up: exit clean submap
hl.bind(mainMod .. " + Page_Up", hl.dsp.submap("reset"))
hl.bind(mainMod .. " + Page_Up", function()
restoreMouseWindowBinds()
hl.dispatch(hl.dsp.submap("reset"))
end)
end)
hl.bind("SUPER + l", hl.dsp.exec_cmd("hyprlock"))
@@ -181,8 +197,9 @@ hl.bind(mainMod .. " + a", hl.dsp.exec_cmd("~/.config/rofi/scripts/rofi-anki-scr
-- bind = $mainMod SHIFT, a, exec, ~/projects/scripts/screenshot-anki.sh -cdMinecraft
-- GSM
hl.bind("mouse:275", hl.dsp.exec_cmd("xdotool key alt+w"), { locked = true })
hl.bind("mouse:276", hl.dsp.exec_cmd("xdotool key alt+grave"), { locked = true })
-- mouse:275 / BTN_SIDE and mouse:276 / BTN_EXTRA pass through as native back/forward.
-- hl.bind("mouse:275", hl.dsp.exec_cmd("xdotool key alt+w"), { locked = true })
-- hl.bind("mouse:276", hl.dsp.exec_cmd("xdotool key alt+grave"), { locked = true })
hl.bind("ALT + g", hl.dsp.exec_cmd("/opt/mpv-yomitan/mpv-yomitan.AppImage --toggle"))
hl.bind("ALT + SHIFT + f", hl.dsp.exec_cmd("uwsm app -sb -- flameshot gui"))
@@ -201,6 +218,9 @@ hl.bind("ALT + SHIFT + O", hl.dsp.pass({ window = "class:^(SubMiner)$" }))
hl.bind("ALT + SHIFT + I", hl.dsp.pass({ window = "class:^(SubMiner)$" }))
hl.bind("ALT + SHIFT + C", hl.dsp.pass({ window = "class:^(SubMiner)$" }))
-- gsm
hl.bind("ALT + w", hl.dsp.pass({ window = "class:gamesentenceminer" }))
-- {{{ scrolling
hl.bind(mainMod .. " + comma", hl.dsp.layout("swapcol l"))
hl.bind(mainMod .. " + period", hl.dsp.layout("fit all"))
+21 -7
View File
@@ -65,13 +65,17 @@ hl.window_rule({
hl.window_rule({
match = {
class = "ueberzugpp.*",
class = "^ueberzugpp_.*$",
},
-- TODO: manual review — unmapped window rule action: "no_focus on"
-- TODO: manual review — unmapped window rule action: "no_follow_mouse 1"
float = true,
-- TODO: manual review — unmapped window rule action: "no_shadow on"
-- TODO: manual review — unmapped window rule action: "no_anim on"
center = false,
no_initial_focus = true,
no_focus = true,
no_follow_mouse = true,
border_size = 0,
rounding = 0,
no_shadow = true,
no_anim = true,
})
hl.window_rule({
@@ -330,14 +334,24 @@ hl.window_rule({
hl.window_rule({
match = {
class = "SubMiner",
class = "^SubMiner$",
},
float = true,
border_size = 0,
xray = false,
no_shadow = true,
no_blur = true,
no_dim = true,
opaque = true,
dim_around = false,
opacity = "1.0 override 1.0 override",
pin = false,
})
hl.window_rule({
match = {
class = "^SubMiner$",
class = "^gamesentenceminer$",
title = "GSM Overlay",
},
float = true,
border_size = 0,