File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1616[global]
1717 icon_path = /usr/share/icons/Papirus/24x24/status/:/usr/share/icons/Papirus/24x24/devices/:/usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
1818 # can be appended by script
19+ dmenu = /usr/local/bin/dmenu -l 10 -p dunst:
Original file line number Diff line number Diff line change @@ -404,6 +404,49 @@ function hot_reload {
404404 tmp_clean
405405}
406406
407+ function dmenu_order {
408+ echo " ###################################"
409+ echo " dmenu_order"
410+ echo " ###################################"
411+
412+ tmp_dunstrc dunstrc.default " sort=urgency"
413+ start_dunst dunstrc.tmp
414+
415+ for i in critical normal low
416+ do
417+ $DUNSTIFY -a " dunst tester" -u $i --action=" replyAction,Reply" --action=" forwardAction,Forward" " Message Received $i " " Sorted by urgency" &
418+ sleep .5
419+ done
420+
421+ $DUNSTCTL context
422+ keypress
423+
424+ tmp_dunstrc dunstrc.default " sort=update"
425+ start_dunst dunstrc.tmp
426+
427+ for i in critical normal low
428+ do
429+ $DUNSTIFY -a " dunst tester" -u $i --action=" replyAction,Reply" --action=" forwardAction,Forward" " Message Received $i " " Sorted by time" &
430+ sleep .5
431+ done
432+
433+ $DUNSTCTL context
434+ keypress
435+
436+ tmp_dunstrc dunstrc.default " sort=false"
437+ start_dunst dunstrc.tmp
438+
439+ for i in 69 98 34 1
440+ do
441+ $DUNSTIFY -a " dunst tester" -r $i --action=" replyAction,Reply" --action=" forwardAction,Forward" " Message Received $i " " Sorted by id" &
442+ sleep .5
443+ done
444+
445+ $DUNSTCTL context
446+ keypress
447+ tmp_clean
448+ }
449+
407450if [ -n " $1 " ]; then
408451 while [ -n " $1 " ]; do
409452 $1
427470 dynamic_height
428471 vertical_align
429472 hot_reload
473+ dmenu_order
430474fi
431475
432476killall dunst
You can’t perform that action at this time.
0 commit comments