Dotfiles-dwm/dwmbar/modules/redshift

14 lines
214 B
Plaintext
Raw Normal View History

2024-06-02 11:02:06 +00:00
#!/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