Change notify-send to dunstify

This commit is contained in:
Thomas Dehaeze 2019-12-16 11:39:10 +01:00
parent e5e94e1ab5
commit ed9f0707aa

View File

@ -94,12 +94,13 @@ Finally, lock the screen using =i3lock=.
if pgrep -x "xautolock" >/dev/null if pgrep -x "xautolock" >/dev/null
then then
pkill xautolock; pkill xautolock;
notify-send "Lock Screen Desactivated" dunstify --replace=13602 'Lock Screen' 'Desactivated'
else else
xautolock -locker "~/scripts/lockscreen.sh" -detectsleep -time 30 -notify 60 -notifier "dunstify --replace=31846 -u critical -t 10000 -- 'Locking Screen' '60 seconds'" & xautolock -locker "~/scripts/lockscreen.sh" -detectsleep -time 30 -notify 60 -notifier "dunstify --replace=31846 -u critical -t 10000 -- 'Locking Screen' '60 seconds'" &
notify-send "Lock Screen Activated" dunstify --replace=13602 'Lock Screen' 'Activated'
fi fi
#+end_src #+end_src
* Delete first page of PDF * Delete first page of PDF
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/scripts/pdf-delete-first-page.sh :header-args: :tangle ~/scripts/pdf-delete-first-page.sh
@ -195,11 +196,11 @@ Things to do:
* NAS * NAS
** Mount ** Mount
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/scripts/nas.sh :header-args: :tangle ~/scripts/nas.sh
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash" :header-args+: :shebang "#!/usr/bin/env bash"
:END: :END:
#+begin_src bash #+begin_src bash
if [ $1 == "mount" ]; then if [ $1 == "mount" ]; then
if sudo -A mount 192.168.1.2:/volume1/Downloads/ /mnt/NAS/; then if sudo -A mount 192.168.1.2:/volume1/Downloads/ /mnt/NAS/; then