Fixes sct script

This commit is contained in:
Emmet 2023-09-30 22:48:48 -05:00
parent a92b9207f9
commit 52994557bd

View file

@ -283,10 +283,14 @@
pamixer pamixer
(pkgs.writeScriptBin "sct" '' (pkgs.writeScriptBin "sct" ''
#!/bin/sh #!/bin/sh
killall wlsunset killall wlsunset &> /dev/null;
temphigh=$(( $1 + 1 )) if [ $# -eq 1 ]; then
templow=$1 temphigh=$(( $1 + 1 ))
wlsunset -t $templow -T $temphigh &> /dev/null & templow=$1
wlsunset -t $templow -T $temphigh &> /dev/null &
else
killall wlsunset &> /dev/null;
fi
'') '')
(pkgs.writeScriptBin "hyprworkspace" '' (pkgs.writeScriptBin "hyprworkspace" ''
#!/bin/sh #!/bin/sh