mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-06-18 05:06:38 +02:00
[polybar] Added some PolyBar Config
This commit is contained in:
parent
375c954e2b
commit
b62b55e417
11 changed files with 908 additions and 1 deletions
15
polybar/scripts/info-redshift-temp.sh
Executable file
15
polybar/scripts/info-redshift-temp.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$(pgrep -x redshift)" ]; then
|
||||
temp=$(redshift -p 2> /dev/null | grep temp | cut -d ":" -f 2 | tr -dc "[:digit:]")
|
||||
|
||||
if [ -z "$temp" ]; then
|
||||
echo "%{F#666} ﯧ"
|
||||
elif [ "$temp" -ge 5000 ]; then
|
||||
echo "%{F#ffeeee} ﯦ"
|
||||
elif [ "$temp" -ge 4000 ]; then
|
||||
echo "%{F#ffaaaa} ﯦ"
|
||||
else
|
||||
echo "%{F#ff0000} ﯦ"
|
||||
fi
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue