Removed Redshift Polybar module

It didn't really do much anyway.
This commit is contained in:
Salt 2017-08-01 02:47:15 -05:00
parent 8a3ae760de
commit 100bf3a5b5
2 changed files with 6 additions and 27 deletions

View File

@ -1,4 +1,8 @@
;==================================================
;
; INFO: https://github.com/jaagr/polybar
;
;===================================================
;========================================
; RESOURCES
@ -59,7 +63,7 @@ tray-padding = 2
modules-left = i3 | xwindow
modules-center = date
modules-right = temperature | wlan | redshift
modules-right = temperature | wlan
; LOWER
;====================
@ -84,13 +88,6 @@ content-foreground = ${res/colors.foreground}
; CUSTOM
;====================
[module/redshift]
type = custom/script
format = <label>
label = %output%
label-foreground = ${res/colors.accent-red}
interval = 5
exec = ~/.config/polybar/redshift.sh
; TEMPLATE
;====================

View File

@ -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