Convert old userprefs.conf windowrules to Lua + section headers

Opacity rules from the pre-Lua backup, rewritten with hl.window_rule and
'override' so they set absolute opacity (HyDE dims to 0.90/0.75 by
default). The old lines contained sed artifacts ($&) that hyprlang
rejected anyway; intent preserved: opaque browsers/zathura/mpv, 0.90
chat window. ASCII section banners for input/keybinds/rules.
This commit is contained in:
hermes committed 2026-11-01 22:47:40 +00:00
1 parent bda40516cd
commit 30d01e6676
1 file changed
+32
+32
View File
@@ -45,6 +45,9 @@ end
-- Custom config
-- // █ █▄░█ █▀█ █░█ ▀█▀
-- // █ █░▀█ █▀▀ █▄█ ░█░
-- DK layout
hl.config({
input = {
@@ -52,6 +55,9 @@ hl.config({
},
})
-- // █░█ █▀▀ █▄█ █▀▄ █ █▄░█ █▀▄ █▀
-- // ▀▄▀ █▄▄ ░█░ █▄▀ █ █░▀█ █▄▀ ▄█
-- Switch workspace left/right
hl.bind("CONTROL + ALT + Right", hl.dsp.focus({ workspace = "r+1" }), {
description = "[Workspaces] next workspace",
@@ -73,4 +79,30 @@ hl.bind("SUPER + Return", hl.dsp.exec_cmd("kitty"), {
description = "[Launcher|Apps] terminal emulator",
})
-- // █▀▀ █░░ █▀█ █░█ █▄░█ █▀▀ █▀ █░█ █▀▀ █▀█ █▀▄
-- // ██▄ █▄▄ █▀▄ █▄█ █░▀█ ██▄ ▄█ ▀▄▀ ██▄ █▀▄ █▄▀
-- Converted from the old userprefs.conf windowrules (hyprlang -> Lua).
-- HyDE dims windows to 0.90 active / 0.75 inactive; `override` sets absolute
-- values instead of multiplying, restoring full opacity for these apps.
-- Values are active / inactive / fullscreen.
-- Opaque: browsers, readers, video
hl.window_rule({ match = { class = "^(firefox)$" },
opacity = "1.0 override 1.0 override 1.0 override" })
hl.window_rule({ match = { class = "^(google-chrome)$" },
opacity = "1.0 override 1.0 override 1.0 override" })
hl.window_rule({ match = { class = "^(chrome-www.twitch.tv__smugslav-Default)$" },
opacity = "1.0 override 1.0 override 1.0 override" })
hl.window_rule({ match = { class = "^(chrome-www.twitch.tv__scrapie-Default)$" },
opacity = "1.0 override 1.0 override 1.0 override" })
hl.window_rule({ match = { class = "^(chrome-mail.balticfinance.com__-Default)$" },
opacity = "1.0 override 1.0 override 1.0 override" })
hl.window_rule({ match = { class = "^(org.pwmt.zathura)$" },
opacity = "1.0 override 1.0 override 1.0 override" })
hl.window_rule({ match = { class = "^(mpv)$" },
opacity = "1.0 override 1.0 override 1.0 override" })
-- Slightly translucent chat window
hl.window_rule({ match = { class = "^(chrome-chat.obahan.xyz__-Default)$" },
opacity = "0.9 override 0.9 override 1.0 override" })