add caffeine

This commit is contained in:
lelgenio 2020-11-16 18:15:05 -03:00
parent 52127e6e5b
commit c61a5e857b
2 changed files with 10 additions and 2 deletions

View File

@ -19,6 +19,7 @@
"custom/torrentD",
"custom/torrentS",
"custom/updates",
"custom/caffeine",
"pulseaudio",
"network",
"battery"
@ -149,7 +150,14 @@
"exec":"transmission-remote -l | grep Seeding| wc -l | sed 's/^0$//'",
"exec-if":"pidof transmission-daemon",
"interval":180
}
},
"custom/caffeine":{
"format":"{} ",
"exec":"pidof caffeinated &>/dev/null &&echo 零||echo 鈴",
"on-click":"pidof caffeinated &&pkill caffeinated||caffeinated -d ",
"interval": 1
},
}

View File

@ -19,7 +19,7 @@ depends=(
bemenu-wlroots j4-dmenu-desktop
# Utility
ruby-fusuma light mako kanshi udiskie redshift-wayland-git
ydotool wtype
ydotool wtype caffeinated
# Configuration manager
dotdrop