compton_toggle and mb-setvar changes
parent
e6a8c88b93
commit
ef25f4c4a1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue