compton to picom cd

master
Daniel Napora 2020-01-10 22:42:27 +01:00
parent d85a655941
commit 4e18ba795e
1 changed files with 5 additions and 5 deletions

View File

@ -40,13 +40,13 @@ EXECXCOMP='picom'
# Edit xcompmgr settings
if [[ $1 = '--edit' ]]; then
[[ ! -f $HOME/.config/compton.conf ]] &&
cp '/etc/xdg/compton.conf' "$HOME/.config/compton.conf"
[[ ! -f $HOME/.config/picom.conf ]] &&
cp '/etc/xdg/picom.conf' "$HOME/.config/picom.conf"
if [[ -x /usr/bin/geany ]]; then
geany "$HOME/.config/compton.conf" &
geany "$HOME/.config/picom.conf" &
else
terminator --command='nano "$HOME/.config/compton.conf"'
terminator --command='nano "$HOME/.config/picom.conf"'
fi
elif [[ $1 = '--toggle' || $1 = '--start' ]]; then # Toggle compositing with picom.
# TODO why --toggle and --start act exactly the same?
@ -70,7 +70,7 @@ elif [[ $1 = '--restart' ]]; then
mabox-compositor --start
fi
elif [[ $1 = '--watch' ]]; then
while inotifywait -e modify "$HOME/.config/compton.conf"; do
while inotifywait -e modify "$HOME/.config/picom.conf"; do
mabox-compositor --restart # TODO move this to function?
done
else