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,
+2 -1
View File
@@ -39,7 +39,7 @@ image/avif=okularApplication_kimgio.desktop;
image/bmp=okularApplication_kimgio.desktop;
image/gif=org.gnome.gThumb.desktop;helium.desktop;zen.desktop;gimp.desktop;org.kde.gwenview.desktop;okularApplication_kimgio.desktop;
image/heif=okularApplication_kimgio.desktop;
image/jpeg=okularApplication_kimgio.desktop;
image/jpeg=feh.desktop;okularApplication_kimgio.desktop;
image/png=okularApplication_kimgio.desktop;org.gnome.gThumb.desktop;feh.desktop;gimp.desktop;org.kde.gwenview.desktop;
image/webp=okularApplication_kimgio.desktop;
inode/directory=thunar.desktop;
@@ -159,3 +159,4 @@ x-scheme-handler/subminer=subminer.desktop
x-scheme-handler/claude-cli=claude-code-url-handler.desktop
x-scheme-handler/mux=mux.desktop
x-scheme-handler/claude=com.anthropic.claude-desktop.desktop
x-scheme-handler/t3code=t3code.desktop
+4 -3
View File
@@ -176,9 +176,11 @@ slang=ja,jp,jpn,japanese,en,eng,english,English,enUS,en-US
vlang=ja,jpn
subs-with-matching-audio=yes
sub-font="M PLUS 1 Medium"
glsl-shaders="~~/shaders/ArtCNN_C4F32.glsl"
video-sync=audio
interpolation=no
glsl-shaders="~~/shaders/ArtCNN_C4F16.glsl"
scale=ewa_lanczossharp
dither=error-diffusion
dither=fruit
deband=yes # Crucial for anime gradients
input-ipc-server=/tmp/subminer-socket
@@ -209,4 +211,3 @@ profile-restore=copy
cookies=yes
cookies-file=/truenas/sudacode/japanese/youtube-cookies.txt
ytdl-raw-options-append=cookies=/truenas/sudacode/japanese/youtube-cookies.txt
+1 -1
View File
@@ -40,7 +40,7 @@ fadein=no
minmousemove=0
# controls how much of the window ignores mouse movement for showing the osc
# 0.0 always shows on movement, 1.0 only shows when directly hovered
deadzonesize=0.75
deadzonesize=1.0
# hide behavior when cursor enters deadzone or leaves window: instant or timeout
deadzone_hide=instant
# show OSC when seeking