Rework notifications to only use dunst
This commit is contained in:
parent
9a16998e64
commit
0cdf6e4723
6 changed files with 58 additions and 17 deletions
|
@ -35,7 +35,7 @@ programchoicesinit() {
|
|||
# Scripts menu
|
||||
echo $WMCLASS | grep -i "scripts" && CHOICES="$(echo "
|
||||
Web Search ^ 0 ^ sxmo_websearch.sh
|
||||
Timer ^ 0 ^ sxmo_timermenu.sh
|
||||
Timer ^ 0 ^ sxmo_timer.sh
|
||||
Youtube ^ 0 ^ sxmo_youtube.sh video
|
||||
Youtube (Audio) ^ 0 ^ sxmo_youtube.sh audio
|
||||
Weather ^ 0 ^ sxmo_weather.sh
|
||||
|
|
|
@ -15,7 +15,8 @@ setdelta() {
|
|||
xargs -INUM echo -e "$MIN\nNUM" | sort -n | tail -n1 |
|
||||
xargs -INUM echo -e "$MAX\nNUM" | sort -n | head -n1
|
||||
)
|
||||
sxmo_notify.sh 200 "Backlight $(cat $DEV/brightness)/${MAX}"
|
||||
|
||||
dunstify -i 0 -u normal -r 999 "☀ $(cat $DEV/brightness)/${MAX}"
|
||||
}
|
||||
|
||||
up() {
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
HEIGHT=30
|
||||
W=$1
|
||||
FULLW=$(
|
||||
xdpyinfo |
|
||||
grep 'dimensions' |
|
||||
egrep -o "[0-9]+x[0-9]+ pixels" |
|
||||
sed "s/x.*//"
|
||||
)
|
||||
OFFX=$(echo $FULLW - $W - 2 | bc)
|
||||
|
||||
sh -c "echo $2 | dzen2 -p 2 -h $HEIGHT -x $OFFX -y 30" &
|
|
@ -1,12 +1,13 @@
|
|||
#!/usr/bin/env sh
|
||||
notify() {
|
||||
sxmo_notify.sh 200 "Volume $(
|
||||
VOL="$(
|
||||
amixer get "$(sxmo_audiocurrentdevice.sh)" |
|
||||
grep -oE '([0-9]+)%' |
|
||||
tr -d ' %' |
|
||||
awk '{ s += $1; c++ } END { print s/c }' |
|
||||
xargs printf %.0f
|
||||
)"
|
||||
dunstify -i 0 -u normal -r 998 "♫ $VOL"
|
||||
echo 1 > /tmp/sxmo_bar
|
||||
}
|
||||
|
||||
|
|
|
@ -18,6 +18,5 @@ keynav &
|
|||
|
||||
conky -c /usr/share/sxmo/conky.conf -d
|
||||
autocutsel & autocutsel -selection PRIMARY &
|
||||
lisgd -t 500 &
|
||||
sxmo_statusbar.sh &
|
||||
exec dbus-run-session dwm 2> ~/.dwm.log
|
||||
exec dbus-run-session sh -c "dunst -conf /usr/share/sxmo/dunst.conf & lisgd -t 500 & dwm 2> ~/.dwm.log"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue