Skip to main content

Thread: Problems working with notifications (notify-send)


i've written following bash script turn on , off touchpad.

code:
#!/bin/bash    tst=`gsettings org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled`    if [ $tst = true ]   	gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled false  	notify-send -u normal -t -1 touchpad "turned off"  else  	gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled true  	notify-send -u normal -t -1 touchpad "turned on"  fi
i'm having couple of problems notifications:

1)if there's notification showing has wait prior 1 timeout before displaying; prefer notifications stack.

2)i can't figure out how replace old touchpad notification new 1 before old 1 times out.

3)the notification takes 15 seconds timeout regardless of set timeout time to.



Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Problems working with notifications (notify-send)


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account