Files
Rice/polybar/scripts/toggle-redshift.sh
2023-03-18 22:21:53 +01:00

10 lines
173 B
Bash

#! /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