mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-28 00:04:57 +08:00
10 lines
223 B
Bash
Executable file
10 lines
223 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 -f -c &
|
|
else
|
|
killall compton
|
|
fi
|