diff --git a/bin/compton_toggle b/bin/compton_toggle index c3e27ba..4197e17 100755 --- a/bin/compton_toggle +++ b/bin/compton_toggle @@ -1,10 +1,16 @@ #!/bin/bash if [ `pidof picom` ]; then - echo "Stopping picom" - killall picom + 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 diff --git a/bin/mb-setvar b/bin/mb-setvar index cb6f466..01a54f3 100755 --- a/bin/mb-setvar +++ b/bin/mb-setvar @@ -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