notify-send ne fait rien, enfin bizarrement, je vous montre ma commande :
Code : Tout sélectionner
xautolock -time 1 -locker /home/victor/.lock_screen/lock -notify 30 -notifier "notify-send --urgency=critical 'Lock' 'Locking in 30s' -i /home/victor/.lock_screen/lock.png" &
voilà le problème : lancé sur console, ça marche sans soucis, mais lancé avec .xinitrc, il lock effectivement après 1 min, mais n'affiche pas de notification (j'utilise Awesome).
(au cas où, voici comment je le lance avec .xinitrc)
Code : Tout sélectionner
#!/bin/zsh
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
xset +fp /usr/share/fonts/local
xset fp rehash
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
syndaemon -i 0.2 -d
urxvtd -q -o -f
numlockx &
xautolock -time 5 -locker /home/victor/.lock_screen/lock -notify 30 -notifier "notify-send --urgency=critical 'Screen locking' 'Screen will be locked in 30s' -i /home/victor/.lock_screen/lock.png" &
exec dbus-launch awesome
J'ai donc essayé de le lancer avec Awesome, mais c'est plus compliqué qu'il n'y parait :
au début de mon rc.lua j'ai donc rajouté ça :
Code : Tout sélectionner
os.execute("xautolock -time 1 -locker /home/victor/.lock_screen/lock -notify 30 -notifier 'notify-send --urgency=critical 'Lock' 'Locking in 30s' -i /home/victor/.lock_screen/lock.png' &")
Code : Tout sélectionner
local titlelock = "Lock"
local sublock = "Locking in 30s"
Code : Tout sélectionner
os.execute("xautolock -time 1 -locker /home/victor/.lock_screen/lock -notify 30 -notifier 'notify-send --urgency=critical $titlelock $sublock -i /home/victor/.lock_screen/lock.png' &")
J'ai donc essayé en interchangeant les signes de ponctuation :
Code : Tout sélectionner
os.execute('xautolock -time 1 -locker /home/victor/.lock_screen/lock -notify 30 -notifier "notify-send --urgency=critical $titlelock $sublock -i /home/victor/.lock_screen/lock.png" &')
Et résultat.. ça ne marche toujours pas..
Bref en résumé, sur la console ça marche très bien, no souçaï, mais avec .xinitrc, et rc.lua, aucun des deux ne marche..
J'ai besoin de vous camarades archers!
Merci à tous et bonne soirée
