Add ding, notify & pomo bin-scripts
This commit is contained in:
parent
9e4dc09971
commit
e05677be48
6
bin/ding
Executable file
6
bin/ding
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
DEFAULT="$HOME/.dotfiles/sounds/${1:-Titan.ogg}"
|
||||||
|
case $OSTYPE in
|
||||||
|
darwin*) afplay "$DEFAULT" ;;
|
||||||
|
linux*) paplay "$DEFAULT" ;;
|
||||||
|
esac
|
9
bin/notify
Executable file
9
bin/notify
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
case $OSTYPE in
|
||||||
|
darwin*)
|
||||||
|
terminal-notifier -title "$1" -message "$2"
|
||||||
|
;;
|
||||||
|
linux*)
|
||||||
|
DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "$1" "$2" -t 0
|
||||||
|
;;
|
||||||
|
esac
|
Loading…
Reference in a new issue