fix conky session file update
This commit is contained in:
parent
bff8c4d39b
commit
0e5a3f9c6b
@ -52,7 +52,7 @@ if [ -f /tmp/"$CONKYPID" ]; then
|
|||||||
PKGS=$(pamac checkupdates -aq| wc -l)
|
PKGS=$(pamac checkupdates -aq| wc -l)
|
||||||
if [ "$PKGS" != "0" ]; then
|
if [ "$PKGS" != "0" ]; then
|
||||||
if [[ "$update_notifications" == "true" ]];then
|
if [[ "$update_notifications" == "true" ]];then
|
||||||
notify-send.sh -t 0 -i mbcc "$AVAIL_UPDATES" "$PKGS_TO_UPDATE $PKGS" -o "$YAY_UPD:terminator -T '$YAY_UPD' -e yay" \
|
notify-send.sh -u critical -i mbcc "$AVAIL_UPDATES" "$PKGS_TO_UPDATE $PKGS" -o "$YAY_UPD:terminator -T '$YAY_UPD' -e yay" \
|
||||||
-o "$PAMAC_UPD:pamac-manager --updates" -o "$DISABLE:mb-setvar update_notifications=false ${CNF_FILE}"
|
-o "$PAMAC_UPD:pamac-manager --updates" -o "$DISABLE:mb-setvar update_notifications=false ${CNF_FILE}"
|
||||||
fi
|
fi
|
||||||
printf "\${font}\${alignr} $AVAIL_UPDATES: \${color red}"
|
printf "\${font}\${alignr} $AVAIL_UPDATES: \${color red}"
|
||||||
|
@ -6,6 +6,7 @@ BASECONKY="$CONKYDIR/sysinfo_mbcolor.conkyrc"
|
|||||||
SESSIONFILE="$CONKYDIR/conky-sessionfile"
|
SESSIONFILE="$CONKYDIR/conky-sessionfile"
|
||||||
|
|
||||||
update_session () {
|
update_session () {
|
||||||
|
sleep 1
|
||||||
:> "${SESSIONFILE}"
|
:> "${SESSIONFILE}"
|
||||||
while read -r pid b c confpath
|
while read -r pid b c confpath
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user