add caffeinated

This commit is contained in:
lelgenio 2020-11-19 19:07:07 -03:00
parent 7d0a850d71
commit 2d3bdb626c
2 changed files with 10 additions and 5 deletions

View File

@ -153,12 +153,10 @@
},
"custom/caffeine":{
"format":"{} ",
"exec":"pidof caffeinated &>/dev/null &&echo ||echo 鈴",
"exec":"pidof caffeinated &>/dev/null &&echo ||echo 鈴",
"on-click":"pidof caffeinated &&pkill caffeinated||caffeinated -d ",
"interval": 1
},
}
// vim:ft=json

View File

@ -78,7 +78,8 @@ window#waybar.empty {
#custom-updates,
#custom-weather,
#custom-torrentD,
#custom-torrentS
#custom-torrentS,
#custom-caffeine
{
margin: 0 7px;
color: {{@@ color.txt @@}};
@ -95,7 +96,8 @@ window#waybar.empty {
font-size: {{@@ font.size.big @@}}px;
}
#network,
#pulseaudio
#pulseaudio,
#custom-caffeine
{
margin-top:-1px;
font-size:16px;
@ -118,3 +120,8 @@ window#waybar.empty {
font-size: 0;
border: none;
}
#tray {
padding: 0;
margin: 0;
}