Skip to content

Commit

Permalink
adds kde notification tricks
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Jul 29, 2020
1 parent 220e096 commit 2294683
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions navi/cheats/kde.cheat
@@ -0,0 +1,10 @@
% kde,plasma

# Send notification from command line
notify-send "<MSG>"

# Send notification upon command success
while true; do sleep <SECS>; sh -c "<CMD>" 2>&1 >/dev/null && { notify-send "<NAME> complete" && break }; done &

# Send notification upon command failure
while true; do sleep <SECS>; sh -c "<CMD>" 2>&1 >/dev/null || { notify-send "<NAME> complete" && break }; done &

0 comments on commit 2294683

Please sign in to comment.