aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2017-09-13 00:19:46 +0200
committerneodarz <neodarz@neodarz.net>2017-09-13 00:19:46 +0200
commite8b9f41910501009cecdd7fd13de77c73ddf9fc4 (patch)
treee10b310405a90831d98ae1b0d8a0ea7bb221bf7e /scripts
parent7af2ee9f9cfb1152404e45726ae06f85ccfed501 (diff)
downloaddotfiles_ascii-e8b9f41910501009cecdd7fd13de77c73ddf9fc4.tar.xz
dotfiles_ascii-e8b9f41910501009cecdd7fd13de77c73ddf9fc4.zip
Add some alias with scripts
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/.scripts/notify1
-rwxr-xr-xscripts/.scripts/weechat_notify.sh12
2 files changed, 13 insertions, 0 deletions
diff --git a/scripts/.scripts/notify b/scripts/.scripts/notify
new file mode 100755
index 0000000..6445914
--- /dev/null
+++ b/scripts/.scripts/notify
@@ -0,0 +1 @@
+$@ ; twmnc -t "$1" -c "Job end !"
diff --git a/scripts/.scripts/weechat_notify.sh b/scripts/.scripts/weechat_notify.sh
new file mode 100755
index 0000000..e2b28af
--- /dev/null
+++ b/scripts/.scripts/weechat_notify.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+if [[ $1 == "start" ]]; then
+ python2 /home/neodarz/Code/weechat_notify/pyrnotify.py 4323 &
+ ssh -fNT -R 4323:localhost:4323 neodarz@neodarz.net -p 19977
+elif [[ $1 == "stop" ]]; then
+ sudo kill -9 $(ps aux | grep pyrnotify.py | awk '{print $2}')
+ sudo kill -9 $(ps aux | grep " ssh -fNT -R 4323:localhost:4323 neodarz@neodarz.net -p 19977" | awk '{print $2}')
+fi
+
+
+