Add swaync control center, wifi/bluetooth/vpn rofi menus, waybar notification button

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 10:06:04 +05:00
co-authored by Claude Sonnet 5.5
parent 447528532e
commit bee45f21ad
12 changed files with 364 additions and 7 deletions
+21 -1
View File
@@ -8,7 +8,7 @@
"spacing": 6,
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
"modules-center": ["clock", "mpris"],
"modules-right": ["idle_inhibitor", "sway/language", "group/hw", "backlight", "pulseaudio", "network", "battery", "tray", "custom/power"],
"modules-right": ["idle_inhibitor", "sway/language", "group/hw", "backlight", "pulseaudio", "network", "battery", "tray", "custom/notification", "custom/power"],
"sway/workspaces": { "disable-scroll": true, "all-outputs": true, "format": "{icon}", "format-icons": {"1": "", "2": "", "3": "", "4": "", "5": "", "urgent": "", "default": ""} },
"sway/window": { "max-length": 45, "format": "{title}", "rewrite": { "(.*) — Mozilla Firefox": " $1", "(.*) - Chromium": " $1" } },
@@ -42,5 +42,25 @@
"format-icons": ["", "", "", "", ""]
},
"tray": { "spacing": 8 },
"custom/notification": {
"tooltip": false,
"format": "{icon}",
"format-icons": {
"notification": "\uf0f3<span foreground='#f7768e'><sup>\uf111</sup></span>",
"none": "\uf0f3",
"dnd-notification": "\uf1f6<span foreground='#f7768e'><sup>\uf111</sup></span>",
"dnd-none": "\uf1f6",
"inhibited-notification": "\uf0f3<span foreground='#f7768e'><sup>\uf111</sup></span>",
"inhibited-none": "\uf0f3",
"dnd-inhibited-notification": "\uf1f6<span foreground='#f7768e'><sup>\uf111</sup></span>",
"dnd-inhibited-none": "\uf1f6"
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
"custom/power": { "format": "", "tooltip": false, "on-click": "~/.config/rofi/powermenu.sh" }
}
+2 -1
View File
@@ -18,7 +18,7 @@ window#waybar { background: transparent; color: @text; }
/* glass pills: translucent so swayfx blur shows through */
#workspaces, #window, #clock, #language, #cpu, #memory, #pulseaudio, #network, #battery,
#tray, #mode, #custom-power, #backlight, #idle_inhibitor, #temperature, #mpris {
#tray, #mode, #custom-power, #custom-notification, #backlight, #idle_inhibitor, #temperature, #mpris {
background: alpha(@base, 0.55);
border: 1px solid alpha(@text, 0.08);
border-radius: 14px;
@@ -58,6 +58,7 @@ window#waybar.empty #window { background: transparent; border-color: transparent
#battery.warning:not(.charging) { color: @yellow; }
#battery.critical:not(.charging) { color: @red; animation: blink 1s steps(2) infinite; }
#temperature.critical { color: @red; }
#custom-notification { padding: 0 14px; }
#custom-power { padding: 0 14px; }
#custom-power:hover { background: @red; color: @base; border-color: @red; }