diff options
author | Joe <rbo@gmx.us> | 2025-01-07 11:19:22 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2025-01-07 11:19:22 +0100 |
commit | f3fd4a28fc4c17c02f06e20594bf10b935d73d52 (patch) | |
tree | a38add5df1018e4989d7916df9b79649999b7ecf | |
parent | make (diff) | |
download | dotfiles-bsd-f3fd4a28fc4c17c02f06e20594bf10b935d73d52.tar.gz dotfiles-bsd-f3fd4a28fc4c17c02f06e20594bf10b935d73d52.tar.bz2 dotfiles-bsd-f3fd4a28fc4c17c02f06e20594bf10b935d73d52.tar.xz dotfiles-bsd-f3fd4a28fc4c17c02f06e20594bf10b935d73d52.tar.zst dotfiles-bsd-f3fd4a28fc4c17c02f06e20594bf10b935d73d52.zip |
up
-rw-r--r-- | .config/conky/conkyrc | 5 | ||||
-rwxr-xr-x | .local/bin/status/sb-battery | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/.config/conky/conkyrc b/.config/conky/conkyrc index 37af1a2..abe8b24 100644 --- a/.config/conky/conkyrc +++ b/.config/conky/conkyrc @@ -127,9 +127,4 @@ ${color LightBlue}${execbar sensors 2>/dev/null | grep fan2 | awk '{print $2/35} ${endif}${if_match "${nodename_short}" == "po-rbo"} ${voffset 5}${color1}${font2}CPU ${goto 70}${execbar sensors 2>/dev/null | grep Package | awk '{print $4}'} ${alignr}${color0}${font}${hwmon 5 temp 1}°C ${color1}${font2}NVMe ${goto 70}${color1}${execbar sensors 2>/dev/null | grep Composite | awk '{print $2}'} ${alignr}${color0}${font}${hwmon 3 temp 1}°C${endif} -${color6}${hr}${font} -${color6}${font ConkySymbols:size=18}h${font :size=15:bold:}${voffset -5} WEATHER${font} -${execi 3600 curl -so /tmp/weather_data "https://api.openweathermap.org/data/2.5/forecast?lat=45.77&lon=4.83&exclude=minutely,hourly&appid=ccf08b5571670cecdf898dbbf33b6d6c&units=metric"} -${execi 3600 sleep 2 && jq -r '.list[0].weather[0].icon' </tmp/weather_data | xargs printf "http://openweathermap.org/img/wn/%s@2x.png" | xargs curl -so /tmp/weather_now.png} -${voffset -30}${color6}${font2}${execi 1 jq -r '.city.name' </tmp/weather_data}${goto 60}${font}${color0}${execi 1 jq -r '.list[0].main.temp' </tmp/weather_data | awk '{print int($1+0.5)}'}° ${image /tmp/weather_now.png -s 70x70 -p 300,915} ]] diff --git a/.local/bin/status/sb-battery b/.local/bin/status/sb-battery index e4b29c6..2fe3ce5 100755 --- a/.local/bin/status/sb-battery +++ b/.local/bin/status/sb-battery @@ -3,7 +3,7 @@ case $(hostname -s) in mother) exit ;; po-rbo) - echo -n "^c#fabd2f^" + printf "^c#fabd2f^" charge=$(cat /sys/class/power_supply/BAT0/capacity) case "$(cat /sys/class/power_supply/BAT0/status)" in "Charging"|"Not charging") printf " " ;; @@ -23,7 +23,7 @@ case $(echo "$charge" / 20 | bc) in "2") printf " " ;; "3") printf " " ;; "4") - [ "$charge" -gt 94 ] && return + [ "$charge" -gt 98 ] && return printf " " ;; "5") |