Removed Redshift Polybar module
It didn't really do much anyway.
This commit is contained in:
parent
8a3ae760de
commit
100bf3a5b5
@ -1,4 +1,8 @@
|
|||||||
|
;==================================================
|
||||||
|
;
|
||||||
; INFO: https://github.com/jaagr/polybar
|
; INFO: https://github.com/jaagr/polybar
|
||||||
|
;
|
||||||
|
;===================================================
|
||||||
|
|
||||||
;========================================
|
;========================================
|
||||||
; RESOURCES
|
; RESOURCES
|
||||||
@ -59,7 +63,7 @@ tray-padding = 2
|
|||||||
|
|
||||||
modules-left = i3 | xwindow
|
modules-left = i3 | xwindow
|
||||||
modules-center = date
|
modules-center = date
|
||||||
modules-right = temperature | wlan | redshift
|
modules-right = temperature | wlan
|
||||||
|
|
||||||
; LOWER
|
; LOWER
|
||||||
;====================
|
;====================
|
||||||
@ -84,13 +88,6 @@ content-foreground = ${res/colors.foreground}
|
|||||||
|
|
||||||
; CUSTOM
|
; CUSTOM
|
||||||
;====================
|
;====================
|
||||||
[module/redshift]
|
|
||||||
type = custom/script
|
|
||||||
format = <label>
|
|
||||||
label = %output%
|
|
||||||
label-foreground = ${res/colors.accent-red}
|
|
||||||
interval = 5
|
|
||||||
exec = ~/.config/polybar/redshift.sh
|
|
||||||
|
|
||||||
; TEMPLATE
|
; TEMPLATE
|
||||||
;====================
|
;====================
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
pgrep -x redshift &> /dev/null
|
|
||||||
if [[ $? -eq 0 ]]; then
|
|
||||||
temp=$(redshift -p 2>/dev/null | grep temp | cut -d' ' -f3)
|
|
||||||
temp=${temp//K/}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# OPTIONAL: Append ' ${temp}K' after $icon
|
|
||||||
if [[ -z $temp ]]; then
|
|
||||||
echo "" # Not running
|
|
||||||
elif [[ $temp -ge 5000 ]]; then
|
|
||||||
echo "*" # Blue
|
|
||||||
elif [[ $temp -ge 4000 ]]; then
|
|
||||||
echo "**" # Yellow
|
|
||||||
else
|
|
||||||
echo "***" # Orange
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user