compton_toggle and mb-setvar changes

master
Daniel Napora 2020-09-30 22:56:54 +02:00
parent e6a8c88b93
commit ef25f4c4a1
2 changed files with 11 additions and 6 deletions

View File

@ -4,7 +4,13 @@ if [ `pidof picom` ]; then
echo "Stopping picom"
killall picom
else
echo "Starting picom"
picom &
CONFIGFILE="$HOME/.config/picom.conf"
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
exit

View File

@ -17,7 +17,7 @@ if [[ $1 != *"="* ]]; then
fi
FILE=${2:-$HOME/.config/mabox/mabox.conf}
echo $1
#echo $1
search=$(echo $1|cut -d= -f1)
if [[ $search =~ "bottom_img" ]]; then
sed -i /^"$search="/d $FILE
@ -28,4 +28,3 @@ then #found
else #not found
echo $1 >> $FILE
fi
cat $FILE