Upload main script

This commit is contained in:
raul 2024-01-21 18:31:13 +01:00
parent 8a2d3df176
commit ab4b74e877
1 changed files with 12 additions and 0 deletions

12
toggleshift Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
if pgrep -x "redshift" > /dev/null
then
#echo 'Redshift exists, killing it'
notify-send 'Redshift is now OFF'
kill $(pidof redshift)
else
#echo "Redshift doesn't exist, spawning it"
notify-send 'Redshift is now ON'
redshift 1>/dev/null 2>&1 &
fi