ft: mute_active overhaul

no longer toggles grey shader, just makes the border grey
+ fixed mute_active dunst notif
+ keybinds
This commit is contained in:
2026-10-17 16:14:41 +02:00
parent c17d46dea1
commit bf31806ab7
5 changed files with 19 additions and 19 deletions

View File

@@ -30,8 +30,7 @@ in
(bind "${mainMod} + N" (exec "dunstctl close-all") "Clear dunst notifications")
(bind "${mainMod} + SHIFT + N" (exec "~/.config/WMScripts/dunst.sh") "Toggle dunst notifications")
(bind "CTRL + SHIFT + ESCAPE" (exec "~/.config/WMScripts/murder.sh") "Terminate a program")
(bind "${mainMod} + CTRL + M" (exec "~/.config/WMScripts/mute_active.sh") "Toggle mute active window")
(bind "${mainMod} + CTRL + SHIFT + M" (exec "~/.config/WMScripts/mute_active.sh muted") "Toggle mute active window and apply the 'muted' shader")
(bind "${mainMod} + CTRL + M" (exec "~/.config/WMScripts/mute_active.sh muted") "Toggle mute active window")
(bind "${mainMod} + M" (exec "~/.config/WMScripts/toggle_audiocables.sh combine") "Toggle hyperx audio output")
(bind "${mainMod} + SHIFT + M" (exec "~/.config/WMScripts/toggle_audiocables.sh clementine") "Toggle clementine audio output")
(bind "${mainMod} + Q" (exec "killall deadcells") "Murder Dead cells specifically")

View File

@@ -32,8 +32,6 @@ in
];
window_rule = [
{ match.tag = "shader/muted"; "darkwindow:shade" = "grey";}
{ match.tag = "muted"; "darkwindow:shade" = "grey";}
] ++ map (name: { match.tag = "shader/${name}"; "darkwindow:shade" = "${name}";}) shaders;
};

View File

@@ -68,7 +68,7 @@
{ match.class = ".*"; suppress_event = "maximize";}
# muted tag
{ match.tag = "muted"; border_color = { colors = [
{ match.tag = "shader/muted"; border_color = { colors = [
(lib.generators.mkLuaInline "colors.subtext0") # stupid hack to use catppuccin-nix colors
(lib.generators.mkLuaInline "colors.subtext1")
]; angle = 45;};}