Fix issues in scripts, update configs
This commit is contained in:
parent
090dc5aa50
commit
02cd993afd
@ -1,5 +1,5 @@
|
|||||||
[dmenu]
|
[dmenu]
|
||||||
dmenu_command = rofi -location 3 -yoffset 35 -xoffset -5 -width 35 -font "Ubuntu 10" -password
|
dmenu_command = rofi -location 3 -yoffset 35 -xoffset -5 -width 35 -font "Ubuntu 10" -padding 20 -line-padding 4 -hide-scrollbar -password
|
||||||
|
|
||||||
[editor]
|
[editor]
|
||||||
terminal = termite
|
terminal = termite
|
||||||
|
@ -214,7 +214,7 @@ ac_disconnected_cmd =
|
|||||||
button = new
|
button = new
|
||||||
button_icon = /usr/share/icons/ArchLabs-Dark/32x32/places/distributor-logo-archlabs.png
|
button_icon = /usr/share/icons/ArchLabs-Dark/32x32/places/distributor-logo-archlabs.png
|
||||||
button_text =
|
button_text =
|
||||||
button_lclick_command= jgmenu_run
|
button_lclick_command= jgmenu_run >/dev/null 2>&1 &
|
||||||
button_rclick_command= exo-open ~/.config/jgmenu/jgmenurc
|
button_rclick_command= exo-open ~/.config/jgmenu/jgmenurc
|
||||||
button_mclick_command=
|
button_mclick_command=
|
||||||
button_uwheel_command=
|
button_uwheel_command=
|
||||||
|
@ -214,7 +214,7 @@ ac_disconnected_cmd =
|
|||||||
button = new
|
button = new
|
||||||
button_icon = /usr/share/icons/ArchLabs-Dark/32x32/places/distributor-logo-archlabs.png
|
button_icon = /usr/share/icons/ArchLabs-Dark/32x32/places/distributor-logo-archlabs.png
|
||||||
button_text =
|
button_text =
|
||||||
button_lclick_command= jgmenu_run
|
button_lclick_command= jgmenu_run >/dev/null 2>&1 &
|
||||||
button_rclick_command= exo-open ~/.config/jgmenu/jgmenurc
|
button_rclick_command= exo-open ~/.config/jgmenu/jgmenurc
|
||||||
button_mclick_command=
|
button_mclick_command=
|
||||||
button_uwheel_command=
|
button_uwheel_command=
|
||||||
|
@ -4,7 +4,7 @@ connected=""
|
|||||||
disconnected=""
|
disconnected=""
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
if [[ $(ping -c1 8.8.8.8) ]]; then
|
if ping -c1 8.8.8.8 &>/dev/null; then
|
||||||
echo "$connected"; sleep 10
|
echo "$connected"; sleep 10
|
||||||
else
|
else
|
||||||
echo "$disconnected"; sleep 1
|
echo "$disconnected"; sleep 1
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ "$(pidof compton)" ]]; then
|
if [[ $(pidof compton) ]]; then
|
||||||
al-compositor --restart
|
al-compositor --restart
|
||||||
else
|
else
|
||||||
al-compositor --start
|
al-compositor --start
|
||||||
|
@ -4,7 +4,7 @@ BAR_ICON=""
|
|||||||
ICON=/usr/share/icons/gnome/32x32/apps/system-software-update.png
|
ICON=/usr/share/icons/gnome/32x32/apps/system-software-update.png
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
updates=$(wc -l <<< "$(checkupdates)")
|
updates=$(checkupdates | wc -l)
|
||||||
if hash notify-send &>/dev/null; then
|
if hash notify-send &>/dev/null; then
|
||||||
if [[ $updates -gt 50 ]]; then
|
if [[ $updates -gt 50 ]]; then
|
||||||
notify-send -u critical -i $ICON \
|
notify-send -u critical -i $ICON \
|
||||||
@ -13,24 +13,23 @@ while true; do
|
|||||||
notify-send -u normal -i $ICON \
|
notify-send -u normal -i $ICON \
|
||||||
"You should update soon" "$updates New package updates"
|
"You should update soon" "$updates New package updates"
|
||||||
elif [[ $updates -gt 2 ]]; then
|
elif [[ $updates -gt 2 ]]; then
|
||||||
notify-send -u low -i $ICON \
|
notify-send -u low -i $ICON "$updates New package updates"
|
||||||
"$updates New package updates"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while [[ $updates -gt 0 ]]; do
|
while [[ $updates -gt 0 ]]; do
|
||||||
if [[ $updates -eq 1 ]]; then
|
if [[ $updates -eq 1 ]]; then
|
||||||
echo "$count Update"
|
echo "$updates Update"
|
||||||
elif [[ $updates -gt 1 ]]; then
|
elif [[ $updates -gt 1 ]]; then
|
||||||
echo "$updates Updates"
|
echo "$updates Updates"
|
||||||
fi
|
fi
|
||||||
sleep 8
|
sleep 8
|
||||||
count=$(wc -l <<< "$(checkupdates)")
|
updates=$(checkupdates | wc -l)
|
||||||
done
|
done
|
||||||
|
|
||||||
while [[ $count -eq 0 ]]; do
|
while [[ $updates -eq 0 ]]; do
|
||||||
echo $BAR_ICON
|
echo $BAR_ICON
|
||||||
sleep 1200
|
sleep 1200
|
||||||
count=$(wc -l <<< "$(checkupdates)")
|
updates=$(checkupdates | wc -l)
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user