dotfiles/.config/polybar/scripts/toggle-redshift.sh
2022-01-21 13:18:54 -06:00

10 lines
173 B
Bash
Executable file

#! /bin/bash
if pgrep -x redshift > /dev/null
then
pgrep redshift | xargs -n1 kill -9 | notify-send 'Redshift stopped'
else
notify-send 'Redshift started'
redshift &
fi