More commenting in autostart, more improvments to user scripts

This commit is contained in:
natemaia 2017-12-08 03:25:55 -08:00
parent 15c324b030
commit 48ce00ab51
3 changed files with 4 additions and 3 deletions

View File

@ -29,6 +29,7 @@ xfsettingsd &
# Launch conky if session exists
sleep 2; al-conky-session &
# set side user dirs shortcuts for file managers
xdg-user-dirs-gtk-update &
$HOME/.config/keypack &

View File

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

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
if pgrep -x polybar >/dev/null; then
if [ "$(pidof polybar)" ]; then
pkill polybar
else
start-polybar