Add .config/waybar/config

Add .config/waybar/scripts/PBPbattery.sh
Add .config/waybar/scripts/keyhint.sh
Add .config/waybar/scripts/power-menu.sh
Add .config/waybar/scripts/weather.sh
Add .config/waybar/style.css
This commit is contained in:
2023-07-28 13:14:56 +02:00
parent 8f5f516acd
commit b3a17d2abd
6 changed files with 470 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#!/bin/bash
#simple Shellscript for waybar/i3blocks/polybar on Pinebook pro
#05012020 geri123@gmx.net Gerhard S.
PERCENT=$(cat /sys/class/power_supply/cw2015-battery/capacity)
STATUS=$(cat /sys/class/power_supply/cw2015-battery/status)
case $((
$PERCENT >= 0 && $PERCENT <= 20 ? 1 :
$PERCENT > 20 && $PERCENT <= 40 ? 2 :
$PERCENT > 40 && $PERCENT <= 60 ? 3 :
$PERCENT > 60 && $PERCENT <= 80 ? 4 : 5)) in
#
(1) echo $STATUS:"":$PERCENT%;;
(2) echo $STATUS:"":$PERCENT%;;
(3) echo $STATUS:"":$PERCENT%;;
(4) echo $STATUS:"":$PERCENT%;;
(5) echo $STATUS:"":$PERCENT%;;
esac