Thread: Problems working with notifications (notify-send)
i've written following bash script turn on , off touchpad.
i'm having couple of problems notifications: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
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
Post a Comment