Minor improvments to init & ~/bin scripts, remove numlock from autostarts

This commit is contained in:
natemaia
2017-12-26 15:03:54 -08:00
parent 88ecac0da3
commit 92ada44d97
8 changed files with 39 additions and 21 deletions

View File

@ -3,14 +3,17 @@
on=""
off=""
if [[ $1 == *toggle* ]] && [[ $(pidof compton) ]]; then
al-compositor --stop && exit 0
elif [[ $1 == *toggle* ]]; then
al-compositor --start && exit 0
if [[ "$1" ]]; then
if [[ "$1" == *toggle* ]] && [[ "$(pidof compton)" ]]; then
al-compositor --stop
elif [[ "$1" == *toggle* ]]; then
al-compositor --start
fi
exit 0
fi
while true; do
if [[ $(pidof compton) ]]; then
if [[ "$(pidof compton)" ]]; then
echo "$on"
else
echo "%{F#888888}$off"