upd
This commit is contained in:
parent
21f9ad9740
commit
b890992b56
@ -17,7 +17,7 @@ yad --title="About Mabox" --window-icon=mbcc \
|
||||
--pversion="$(lsb_release -rs) <i>${OSCODE}</i>" \
|
||||
--image=mbcc \
|
||||
--comments="${COMMENT}" \
|
||||
--copyright="Copyright 2016-2022, Daniel Napora <danieln@maboxlinux.org>" \
|
||||
--copyright="Copyright 2016-2023, Daniel Napora <danieln@maboxlinux.org>" \
|
||||
--license=GPL3 \
|
||||
--website="https://maboxlinux.org" \
|
||||
--website-label=maboxlinux.org \
|
||||
|
@ -10,17 +10,17 @@ case "$LANG" in
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ $(pidof picom) ]; then
|
||||
killall picom
|
||||
notify-send -i compton -t 5000 "Compositor" "$DISABLED"
|
||||
if [ $(pgrep -u $USER -f picom) ]; then
|
||||
killall -u $USER picom
|
||||
notify-send.sh -i compton -t 5000 "Compositor" "$DISABLED"
|
||||
else
|
||||
CONFIGFILE="$HOME/.config/picom.conf"
|
||||
if [ -f "$CONFIGFILE" ];then
|
||||
picom --config "$CONFIGFILE" &
|
||||
notify-send -i compton -t 5000 "Compositor" "$ENABLED"
|
||||
notify-send.sh -i compton -t 5000 "Compositor" "$ENABLED"
|
||||
else
|
||||
picom --config /dev/null &
|
||||
notify-send -i compton -t 5000 "Compositor" "$ENABLED"
|
||||
notify-send.sh -i compton -t 5000 "Compositor" "$ENABLED"
|
||||
fi
|
||||
fi
|
||||
exit
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if pgrep -f "conky -c" ;then
|
||||
pkill conky
|
||||
if pgrep -u $USER -f "conky -c" ;then
|
||||
pkill -u $USER conky
|
||||
else
|
||||
SESSIONFILE=$HOME/.config/conky/conky-sessionfile
|
||||
while read -r line; do
|
||||
@ -9,11 +9,11 @@ while read -r line; do
|
||||
THIS_CONKY=$(echo "${line##+([[:space:]])}" | awk '{print $3}')
|
||||
CONKYRC=${THIS_CONKY//\'/}
|
||||
|
||||
if ! pgrep -f "${CONKYRC//\~/}"
|
||||
if ! pgrep -u $USER -f "${CONKYRC//\~/}"
|
||||
then
|
||||
conky -c "${CONKYRC//\~/$HOME}" &
|
||||
else
|
||||
pkill -f "${CONKYRC//\~/}"
|
||||
pkill -u $USER -f "${CONKYRC//\~/}"
|
||||
fi
|
||||
fi
|
||||
done < $SESSIONFILE
|
||||
|
Loading…
Reference in New Issue
Block a user