forked from Shinonome/dots-hyprland
fix light/dark switching
This commit is contained in:
@@ -24,10 +24,6 @@ if [ ! -f $colormodefile ]; then
|
|||||||
echo "dark" > $colormodefile
|
echo "dark" > $colormodefile
|
||||||
echo "opaque" >> $colormodefile
|
echo "opaque" >> $colormodefile
|
||||||
echo "vibrant" >> $colormodefile
|
echo "vibrant" >> $colormodefile
|
||||||
elif [[ $(wc -l < $colormodefile) -ne 4 || $(wc -w < $colormodefile) -ne 4 ]]; then
|
|
||||||
echo "dark" > $colormodefile
|
|
||||||
echo "opaque" >> $colormodefile
|
|
||||||
echo "vibrant" >> $colormodefile
|
|
||||||
else
|
else
|
||||||
lightdark=$(sed -n '1p' $colormodefile)
|
lightdark=$(sed -n '1p' $colormodefile)
|
||||||
transparency=$(sed -n '2p' $colormodefile)
|
transparency=$(sed -n '2p' $colormodefile)
|
||||||
|
|||||||
Reference in New Issue
Block a user