update waybar: add notification + shutdown options
This commit is contained in:
parent
90ab1652b0
commit
ddfbc3cfcd
|
@ -23,6 +23,7 @@
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
"battery"
|
"battery"
|
||||||
"network"
|
"network"
|
||||||
|
"custom/notification"
|
||||||
];
|
];
|
||||||
clock= {
|
clock= {
|
||||||
calendar = {
|
calendar = {
|
||||||
|
@ -85,7 +86,7 @@
|
||||||
};
|
};
|
||||||
pulseaudio= {
|
pulseaudio= {
|
||||||
format= "{icon} {volume}%";
|
format= "{icon} {volume}%";
|
||||||
format-muted= " {volume}%";
|
format-muted= " {volume}%";
|
||||||
format-icons= {
|
format-icons= {
|
||||||
default= [" "];
|
default= [" "];
|
||||||
};
|
};
|
||||||
|
@ -112,5 +113,25 @@
|
||||||
on-click-right= "pkill fuzzel || wallpaper-picker";
|
on-click-right= "pkill fuzzel || wallpaper-picker";
|
||||||
tooltip= "false";
|
tooltip= "false";
|
||||||
};
|
};
|
||||||
|
"custom/notification" = {
|
||||||
|
tooltip = false;
|
||||||
|
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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ in
|
||||||
color: #b4befe;
|
color: #b4befe;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray, #pulseaudio, #network, #cpu, #memory, #disk, #clock, #battery {
|
#tray, #pulseaudio, #network, #cpu, #memory, #disk, #clock, #battery, #custom-notification {
|
||||||
font-size: ${custom.font_size};
|
font-size: ${custom.font_size};
|
||||||
color: ${custom.text_color};
|
color: ${custom.text_color};
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,12 @@ in
|
||||||
}
|
}
|
||||||
#network {
|
#network {
|
||||||
padding-left: 9px;
|
padding-left: 9px;
|
||||||
padding-right: 15px;
|
padding-right: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
custom-notification {
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
|
|
Loading…
Reference in a new issue