This commit is contained in:
2026-05-27 22:47:03 -07:00
parent a33ee950b2
commit 1daa984a30
3 changed files with 234 additions and 227 deletions
+5 -7
View File
@@ -168,13 +168,11 @@ hl.bind(
-- ) -- )
-- Disable keybinds with one master keybind -- Disable keybinds with one master keybind
-- https://wiki.hypr.land/0.49.0/Configuring/Uncommon-tips--tricks/#disabling-keybinds-with-one-master-keybind hl.bind(mainMod .. " + Page_Down", hl.dsp.submap("clean"))
-- PAGE DOWN hl.define_submap("clean", function()
hl.bind(mainMod .. " + code:117", hl.dsp.submap("clean")) -- Page Up: exit clean submap
-- TODO: manual review — wrap the following binds in hl.define_submap("clean", function() ... end). The next 'submap = reset' closes the block. hl.bind(mainMod .. " + Page_Up", hl.dsp.submap("reset"))
-- PAGE UP end)
hl.bind(mainMod .. " + code:112", hl.dsp.submap("reset"))
-- (end of submap block)
hl.bind("SUPER + l", hl.dsp.exec_cmd("hyprlock")) hl.bind("SUPER + l", hl.dsp.exec_cmd("hyprlock"))
+228 -219
View File
@@ -4,81 +4,81 @@
-- Generated by hyprlang2lua. Review TODOs before reloading Hyprland. -- Generated by hyprlang2lua. Review TODOs before reloading Hyprland.
hl.window_rule({ hl.window_rule({
match = { match = {
class = "discord", class = "discord",
}, },
float = true, float = true,
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "mpv", class = "mpv",
}, },
float = true, float = true,
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "anki", class = "anki",
}, },
float = true, float = true,
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "steam", class = "steam",
}, },
float = true, float = true,
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "python", class = "python",
title = "Import", title = "Import",
}, },
float = true, float = true,
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "zenity", class = "zenity",
title = "Japanese Analysis", title = "Japanese Analysis",
}, },
float = true, float = true,
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "zenity", class = "zenity",
title = "Japanese Assistant", title = "Japanese Assistant",
}, },
float = true, float = true,
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "anki", class = "anki",
}, },
-- TODO: manual review — unmapped window rule action: "min_size 1600 600" -- TODO: manual review — unmapped window rule action: "min_size 1600 600"
-- TODO: manual review — unmapped window rule action: "max_size 2222 1234" -- TODO: manual review — unmapped window rule action: "max_size 2222 1234"
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "ueberzugpp.*", class = "ueberzugpp.*",
}, },
-- TODO: manual review — unmapped window rule action: "no_focus on" -- TODO: manual review — unmapped window rule action: "no_focus on"
-- TODO: manual review — unmapped window rule action: "no_follow_mouse 1" -- TODO: manual review — unmapped window rule action: "no_follow_mouse 1"
float = true, float = true,
-- TODO: manual review — unmapped window rule action: "no_shadow on" -- TODO: manual review — unmapped window rule action: "no_shadow on"
-- TODO: manual review — unmapped window rule action: "no_anim on" -- TODO: manual review — unmapped window rule action: "no_anim on"
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "anki", class = "anki",
}, },
size = "1920 1080", size = "1920 1080",
}) })
-- windowrule = min_size 1600 600, match:class anki -- windowrule = min_size 1600 600, match:class anki
@@ -87,71 +87,71 @@ hl.window_rule({
-- {{{ Workspace assignments -- {{{ Workspace assignments
hl.window_rule({ hl.window_rule({
match = { match = {
class = "Cursor", class = "Cursor",
}, },
workspace = "3 silent", workspace = "3 silent",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "GameSentenceMiner", class = "GameSentenceMiner",
}, },
workspace = "5 silent", workspace = "5 silent",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "com.obsproject.Studio", class = "com.obsproject.Studio",
}, },
workspace = "5 silent", workspace = "5 silent",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "gamescope", class = "gamescope",
}, },
workspace = "6 silent", workspace = "6 silent",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "anki", class = "anki",
}, },
workspace = "8 silent", workspace = "8 silent",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "steam", class = "steam",
}, },
workspace = "9 silent", workspace = "9 silent",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "discord", class = "discord",
}, },
workspace = "10 silent", workspace = "10 silent",
}) })
-- }}} -- }}}
-- {{{ Center floating windows -- {{{ Center floating windows
hl.window_rule({ hl.window_rule({
match = { match = {
float = 1, float = 1,
class = "discord", class = "discord",
}, },
center = true, center = true,
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
float = 1, float = 1,
class = "anki", class = "anki",
}, },
center = true, center = true,
}) })
-- }}} -- }}}
@@ -159,231 +159,240 @@ hl.window_rule({
-- {{{ Opacity rules -- {{{ Opacity rules
-- windowrule = opacity 0.88, match:class .* fullscreen:0 -- windowrule = opacity 0.88, match:class .* fullscreen:0
hl.window_rule({ hl.window_rule({
match = { match = {
class = "mpv", class = "mpv",
}, },
opacity = "1.0 override", opacity = "1.0 override",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "^(remote-viewer)$", class = "^(remote-viewer)$",
}, },
opacity = "1.0 override", opacity = "1.0 override",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "com.obsproject.Studio", class = "com.obsproject.Studio",
}, },
opacity = "1.0 override", opacity = "1.0 override",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
title = "(.*)(- YouTube(.*))", title = "(.*)(- YouTube(.*))",
}, },
opacity = "1.0 override", opacity = "1.0 override",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "zen", class = "zen",
title = "(.*)YouTube TV(.*)", title = "(.*)YouTube TV(.*)",
}, },
opacity = "1.0 override", opacity = "1.0 override",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "anki", class = "anki",
}, },
opacity = "1.0 override", opacity = "1.0 override",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
title = "(.*)asbplayer", title = "(.*)asbplayer",
}, },
opacity = "1.0 override", opacity = "1.0 override",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "dolphin-emu", class = "dolphin-emu",
}, },
opacity = "1.0 override", opacity = "1.0 override",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "steam_app_default", class = "steam_app_default",
}, },
opacity = "1.0 override", opacity = "1.0 override",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "steam_app.*", class = "steam_app.*",
}, },
opacity = "1.0 override", opacity = "1.0 override",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "Rustdesk", class = "Rustdesk",
}, },
opacity = "1.0 override", opacity = "1.0 override",
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "google-chrome", class = "google-chrome",
}, },
opacity = "1.0 override", opacity = "1.0 override",
}) })
-- }}} -- }}}
-- {{{ Misc -- {{{ Misc
hl.window_rule({ hl.window_rule({
match = { match = {
title = "(.*)asbplayer", title = "(.*)asbplayer",
}, },
-- TODO: manual review — unmapped window rule action: "tile on" -- TODO: manual review — unmapped window rule action: "tile on"
}) })
-- windowrule = size 2118 1182, match:class anki -- windowrule = size 2118 1182, match:class anki
-- Ignore maximize requests from apps. You'll probably like this. -- Ignore maximize requests from apps. You'll probably like this.
hl.window_rule({ hl.window_rule({
match = { match = {
class = ".*", class = ".*",
}, },
suppress_event = "maximize", suppress_event = "maximize",
}) })
-- Fix some dragging issues with XWayland -- Fix some dragging issues with XWayland
hl.window_rule({ hl.window_rule({
match = { match = {
class = "^$", class = "^$",
title = "^$", title = "^$",
xwayland = 1, xwayland = 1,
float = 1, float = 1,
fullscreen = 0, fullscreen = 0,
pin = 0, pin = 0,
}, },
-- TODO: manual review — unmapped window rule action: "no_focus on" -- TODO: manual review — unmapped window rule action: "no_focus on"
}) })
-- }}} -- }}}
-- {{{ Screen sharing workaround: https://wiki.hyprland.org/Useful-Utilities/Screen-Sharing/#xwayland -- {{{ Screen sharing workaround: https://wiki.hyprland.org/Useful-Utilities/Screen-Sharing/#xwayland
hl.window_rule({ hl.window_rule({
match = { match = {
class = "^(xwaylandvideobridge)$", class = "^(xwaylandvideobridge)$",
}, },
opacity = "0.0 override", opacity = "0.0 override",
-- TODO: manual review — unmapped window rule action: "no_anim on" -- TODO: manual review — unmapped window rule action: "no_anim on"
-- TODO: manual review — unmapped window rule action: "no_initial_focus on" -- TODO: manual review — unmapped window rule action: "no_initial_focus on"
-- TODO: manual review — unmapped window rule action: "max_size 1 1" -- TODO: manual review — unmapped window rule action: "max_size 1 1"
-- TODO: manual review — unmapped window rule action: "no_blur on" -- TODO: manual review — unmapped window rule action: "no_blur on"
-- TODO: manual review — unmapped window rule action: "no_focus on" -- TODO: manual review — unmapped window rule action: "no_focus on"
}) })
-- }}} -- }}}
-- {{{ GSM Overlay and LunaTranslator tweaks -- {{{ GSM Overlay and LunaTranslator tweaks
hl.window_rule({ hl.window_rule({
match = { match = {
class = "gsm_overlay", class = "gsm_overlay",
}, },
float = true, float = true,
-- TODO: manual review — unmapped window rule action: "border_size 0" -- TODO: manual review — unmapped window rule action: "border_size 0"
-- TODO: manual review — unmapped window rule action: "xray off" -- TODO: manual review — unmapped window rule action: "xray off"
-- TODO: manual review — unmapped window rule action: "no_shadow on" -- TODO: manual review — unmapped window rule action: "no_shadow on"
-- TODO: manual review — unmapped window rule action: "no_blur on" -- TODO: manual review — unmapped window rule action: "no_blur on"
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
title = "LunaTranslator", title = "LunaTranslator",
}, },
opacity = "1.0 override", opacity = "1.0 override",
-- TODO: manual review — unmapped window rule action: "border_size 0" -- TODO: manual review — unmapped window rule action: "border_size 0"
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "gsm_overlay", class = "gsm_overlay",
}, },
-- TODO: manual review — unmapped window rule action: "stay_focused on" -- TODO: manual review — unmapped window rule action: "stay_focused on"
}) })
-- windowrule = fullscreen_state 2, match:class gsm_overlay -- windowrule = fullscreen_state 2, match:class gsm_overlay
hl.window_rule({ hl.window_rule({
match = { match = {
class = "SubMiner", class = "steam_app_1277940",
}, },
float = true, -- TODO: manual review — unmapped window rule action: "border_size 0"
-- TODO: manual review — unmapped window rule action: "border_size 0"
-- TODO: manual review — unmapped window rule action: "xray off override"
-- TODO: manual review — unmapped window rule action: "no_shadow on"
-- TODO: manual review — unmapped window rule action: "no_blur on"
-- TODO: manual review — unmapped window rule action: "no_dim on"
-- TODO: manual review — unmapped window rule action: "opaque on"
-- TODO: manual review — unmapped window rule action: "dim_around off"
-- TODO: manual review — unmapped window rule action: "allows_input offf"
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "steam_app_1277940", class = "SubMiner",
}, },
-- TODO: manual review — unmapped window rule action: "border_size 0" float = true,
}) })
hl.window_rule({ hl.window_rule({
match = { match = {
class = "SubMiner", class = "SubMiner",
}, },
opacity = "1.0 override", opacity = "1.0 override",
pin = false, pin = false,
})
hl.window_rule({
match = {
class = "SubMiner",
},
float = true,
border_size = 0,
xray = false,
no_shadow = true,
no_blur = true,
no_dim = true,
opaque = true,
dim_around = false,
allows_input = false,
opacity = "1.0 override",
pin = false,
}) })
-- }}} -- }}}
-- {{{ FEH -- {{{ FEH
hl.window_rule({ hl.window_rule({
match = { match = {
class = "feh", class = "feh",
}, },
float = true, float = true,
center = true, center = true,
-- TODO: manual review — unmapped window rule action: "border_size 0" -- TODO: manual review — unmapped window rule action: "border_size 0"
-- TODO: manual review — unmapped window rule action: "no_shadow on" -- TODO: manual review — unmapped window rule action: "no_shadow on"
-- TODO: manual review — unmapped window rule action: "no_blur on" -- TODO: manual review — unmapped window rule action: "no_blur on"
-- TODO: manual review — unmapped window rule action: "no_anim on" -- TODO: manual review — unmapped window rule action: "no_anim on"
}) })
-- }}} -- }}}
hl.window_rule({ hl.window_rule({
match = { match = {
title = "Picture in picture", title = "Picture in picture",
}, },
float = true, float = true,
pin = true, pin = true,
}) })
-- TODO: manual review — top-level key 'windowurle = no_vrr on, match:class mpv' has no enclosing section -- TODO: manual review — top-level key 'windowurle = no_vrr on, match:class mpv' has no enclosing section
-- aibar popup (AI usage widget) -- aibar popup (AI usage widget)
hl.window_rule({ hl.window_rule({
match = { match = {
title = "aibar", title = "aibar",
}, },
float = true, float = true,
move = "100%-374 50", move = "100%-374 50",
}) })
+1 -1
View File
@@ -1 +1 @@
../../mpv-modules/mpv-youtube-queue ../../mpv-modules/mpv-youtube-queue/mpv-youtube-queue