dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 39a2b97142235e7be70bd3ef30b819dd18514f0f
parent b6872e4979b746f640fdf17ee0cb49e34587a51c
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue,  4 Sep 2018 14:48:40 -0400

`note` documentation

Diffstat:
M.scripts/SCRIPTS.md | 5+++++
M.scripts/note | 7++++++-
2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/.scripts/SCRIPTS.md b/.scripts/SCRIPTS.md @@ -146,6 +146,11 @@ out. User must insert password to unlock. Some old notes and commands on deleted music shortcuts. +## `note` + +Give this script some text/a message as an argument. It will print it to the +terminal, and if `dunst` is running, display a notification. + ## `opout` "Open output", opens the corresponding `.pdf` file if run on a `.md`, `.tex` or diff --git a/.scripts/note b/.scripts/note @@ -1,2 +1,7 @@ -#!/bin/bash +#!/bin/sh + +# A super basic command. Give it some arguments to use as anotification. It +# will echo them on the terminal, and if you have `dunst` running, will send a +# `notify-send` message to it. + echo "$@" && pgrep -x dunst >/dev/null && notify-send "$@"