compton_toggle and mb-setvar changes
parent
e6a8c88b93
commit
ef25f4c4a1
|
@ -4,7 +4,13 @@ if [ `pidof picom` ]; then
|
||||||
echo "Stopping picom"
|
echo "Stopping picom"
|
||||||
killall picom
|
killall picom
|
||||||
else
|
else
|
||||||
echo "Starting picom"
|
CONFIGFILE="$HOME/.config/picom.conf"
|
||||||
picom &
|
if [ -f "$CONFIGFILE" ];then
|
||||||
|
echo "Starting picom with config: $CONFIGFILE"
|
||||||
|
picom --config "$CONFIGFILE" &
|
||||||
|
else
|
||||||
|
echo "Starting picom without config file"
|
||||||
|
picom --config /dev/null &
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -17,7 +17,7 @@ if [[ $1 != *"="* ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FILE=${2:-$HOME/.config/mabox/mabox.conf}
|
FILE=${2:-$HOME/.config/mabox/mabox.conf}
|
||||||
echo $1
|
#echo $1
|
||||||
search=$(echo $1|cut -d= -f1)
|
search=$(echo $1|cut -d= -f1)
|
||||||
if [[ $search =~ "bottom_img" ]]; then
|
if [[ $search =~ "bottom_img" ]]; then
|
||||||
sed -i /^"$search="/d $FILE
|
sed -i /^"$search="/d $FILE
|
||||||
|
@ -28,4 +28,3 @@ then #found
|
||||||
else #not found
|
else #not found
|
||||||
echo $1 >> $FILE
|
echo $1 >> $FILE
|
||||||
fi
|
fi
|
||||||
cat $FILE
|
|
||||||
|
|
Loading…
Reference in New Issue