Files
dotfiles/dwm/dwmbar/modules/redshift
T
2024-07-01 17:46:12 +07:00

14 lines
214 B
Bash
Executable File

#!/bin/bash
# Prints out the screen color temperature
# Requires the redshift package
PREFIX=''
get_redshift()
{
echo "$PREFIX$(redshift -p 2> /dev/null | grep "temp" | awk '{print $3}')"
}
get_redshift