mostly profanity and fixes
[distro-setup] / brc
diff --git a/brc b/brc
index 4e02122cccc6f72ae3d3acf9b882783b692ec455..b2df5c28bcd8aa102fc4eef73ca43b69b379610e 100644 (file)
--- a/brc
+++ b/brc
@@ -1751,16 +1751,20 @@ mkdir() { command mkdir -p "$@"; }
 
 nags() {
   # https://github.com/HenriWahl/Nagstamon/issues/357
-  if ! pgrep -f /usr/lib/notification-daemon/notification-daemon >/dev/null; then
-    /usr/lib/notification-daemon/notification-daemon &
+  if ! pgrep -f /usr/bin/dunst >/dev/null; then
+    /usr/bin/dunst &
   fi
   /usr/bin/nagstamon &
 }
+
+# profanity screen
+profsrc() {
+  screen -RD -S profanity
+}
+
+# i dont want to wait for konsole to exit...
 prof() {
-  if ! pgrep -f /usr/lib/notification-daemon/notification-daemon >/dev/null; then
-    /usr/lib/notification-daemon/notification-daemon &
-  fi
-  profanity "$@"
+  command prof &>/dev/null &
 }
 
 
@@ -2152,7 +2156,7 @@ skgit() {
   local f
   for f in $(i s | awk '$1 == "modified:" {print $2}'); do
     if [[ $(head -n1 "$f") == '#!/bin/bash'* ]]; then
-      sk $f
+      sk $f ||:
     fi
   done
 }