17 lines
284 B
Bash
Executable File
17 lines
284 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
on=""
|
|
off=""
|
|
|
|
if [[ $1 == *toggle* ]] && pgrep compton >/dev/null; then
|
|
al-compositor --stop && exit 0
|
|
elif [[ $1 == *toggle* ]]; then
|
|
al-compositor --start && exit 0
|
|
fi
|
|
|
|
if pgrep compton >/dev/null; then
|
|
echo "$on"
|
|
else
|
|
echo "%{F#888888}$off"
|
|
fi
|