mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2025-12-05 02:53:38 -08:00
update waybar to be 3 segments, transparent otherwise
This commit is contained in:
@@ -17,10 +17,12 @@
|
|||||||
"custom/firefox-scroll",
|
"custom/firefox-scroll",
|
||||||
"cava",
|
"cava",
|
||||||
],
|
],
|
||||||
"modules-center": ["hyprland/window"],
|
// "modules-center": ["hyprland/window"],
|
||||||
|
"modules-center": ["custom/notification"],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"hyprland/scratchpad",
|
"hyprland/scratchpad",
|
||||||
"idle_inhibitor",
|
// "idle_inhibitor",
|
||||||
|
// "custom/notification",
|
||||||
"custom/updates",
|
"custom/updates",
|
||||||
"custom/kernel",
|
"custom/kernel",
|
||||||
// "disk#ssd",
|
// "disk#ssd",
|
||||||
@@ -306,4 +308,24 @@
|
|||||||
"on-click": "playerctl -p firefox play-pause",
|
"on-click": "playerctl -p firefox play-pause",
|
||||||
"hide-empty-text": true,
|
"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,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background-color: @mantle;
|
background-color: transparent;
|
||||||
color: @text;
|
color: @text;
|
||||||
/* border-radius: 0.69em; */
|
/* border-radius: 0.69em; */
|
||||||
}
|
}
|
||||||
@@ -114,6 +114,12 @@ button:hover {
|
|||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modules-left,
|
||||||
|
.modules-right,
|
||||||
|
.modules-center {
|
||||||
|
background-color: @mantle;
|
||||||
|
}
|
||||||
|
|
||||||
.modules-left > widget:first-child > #workspaces {
|
.modules-left > widget:first-child > #workspaces {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
@@ -254,7 +260,7 @@ label:focus {
|
|||||||
background-color: @yellow;
|
background-color: @yellow;
|
||||||
color: @mantle;
|
color: @mantle;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
margin: 5px 1px;
|
margin: 5px 1px 5px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-launcher {
|
#custom-launcher {
|
||||||
@@ -274,7 +280,7 @@ label:focus {
|
|||||||
background-color: @blue;
|
background-color: @blue;
|
||||||
color: @crust;
|
color: @crust;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
margin: 5px 1px;
|
margin: 5px 5px 5px 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.critical:not(.charging) {
|
#battery.critical:not(.charging) {
|
||||||
@@ -306,3 +312,10 @@ label:focus {
|
|||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
margin: 5px 1px;
|
margin: 5px 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-notification {
|
||||||
|
font-family: "JetBrainsMono Nerd Font";
|
||||||
|
padding: 5px;
|
||||||
|
background-color: transparent;
|
||||||
|
color: @maroon;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user