update waybar to be 3 segments, transparent otherwise

This commit is contained in:
sudacode 2025-05-04 16:14:32 -07:00
parent 24be7ed582
commit 5818cb01b8
Signed by: sudacode
SSH Key Fingerprint: SHA256:lT5C2bB398DcX6daCF/gYFNSTK3y+Du3oTGUnYzfTEw
2 changed files with 40 additions and 5 deletions

View File

@ -17,10 +17,12 @@
"custom/firefox-scroll",
"cava",
],
"modules-center": ["hyprland/window"],
// "modules-center": ["hyprland/window"],
"modules-center": ["custom/notification"],
"modules-right": [
"hyprland/scratchpad",
"idle_inhibitor",
// "idle_inhibitor",
// "custom/notification",
"custom/updates",
"custom/kernel",
// "disk#ssd",
@ -306,4 +308,24 @@
"on-click": "playerctl -p firefox play-pause",
"hide-empty-text": true,
},
"custom/notification": {
"tooltip": true,
"format": "{icon}",
"format-icons": {
"notification": "<span foreground='red'><sup></sup></span>",
"none": "",
"dnd-notification": "<span foreground='red'><sup></sup></span>",
"dnd-none": "",
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
"inhibited-none": "",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": "",
},
"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,
},
}

View File

@ -9,7 +9,7 @@
}
window#waybar {
background-color: @mantle;
background-color: transparent;
color: @text;
/* border-radius: 0.69em; */
}
@ -114,6 +114,12 @@ button:hover {
color: @text;
}
.modules-left,
.modules-right,
.modules-center {
background-color: @mantle;
}
.modules-left > widget:first-child > #workspaces {
margin-left: 0;
}
@ -254,7 +260,7 @@ label:focus {
background-color: @yellow;
color: @mantle;
padding: 0 10px;
margin: 5px 1px;
margin: 5px 1px 5px 5px;
}
#custom-launcher {
@ -274,7 +280,7 @@ label:focus {
background-color: @blue;
color: @crust;
padding: 0 10px;
margin: 5px 1px;
margin: 5px 5px 5px 1px;
}
#battery.critical:not(.charging) {
@ -306,3 +312,10 @@ label:focus {
padding: 0 10px;
margin: 5px 1px;
}
#custom-notification {
font-family: "JetBrainsMono Nerd Font";
padding: 5px;
background-color: transparent;
color: @maroon;
}