mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-26 23:34:57 +08:00
Former-commit-id: 46c2bf7d26
Former-commit-id: ec0b4e689f3f8e97d837848929a1a6a9e45f779b
Former-commit-id: 19f055447f5fd666a270a51cf98b05d70716e826
16 lines
677 B
Bash
Executable file
16 lines
677 B
Bash
Executable file
#!/bin/bash
|
|
# Run compton only if it is not already running.
|
|
COMPTON="$(ps cax | grep compton)"
|
|
if [ ${#COMPTON} -eq "0" ]; then
|
|
#echo "compton is not running."
|
|
# run compton
|
|
# compton -c &
|
|
# compton &
|
|
compton -c --shadow-exclude "class_g = 'Tint2'" -r 10
|
|
# compton -c --shadow-exclude "class_g = 'Tint2'" --shadow-exclude "class_g = 'Dunst'" -r 1 --shadow-red 0.35 --shadow-green 0 -o 1 --shadow-blue 0.4 &
|
|
# compton -c --shadow-exclude "class_g = 'Tint2'" -o 0.9 -r 10 -i 0.7 -f --active-opacity 0.9 --blur-background &
|
|
# compton -i 0.7 -f --active-opacity 0.9 --blur-background &
|
|
# compton --config ~/.config/compton/compton.conf
|
|
else
|
|
killall compton
|
|
fi
|