Add start, remembersong utilities; Move animelib3

master
Taeyeon Mori 8 years ago
parent ddbe02a9e2
commit 88cd0b90f0
  1. 0
      bin/animelib3
  2. 14
      bin/remembersong
  3. 7
      bin/start

@ -0,0 +1,14 @@
#!/bin/sh
# Requires playerctl: http://dubstepdish.com/blog/2014/04/19/introducing-playerctl/
# Useful when bound to a global Hotkey
SongsFile="${1-$HOME/Documents/Songs.text}"
Artist="$(playerctl metadata artist)"
Title="$(playerctl metadata title)"
echo "$Artist -- $Title" >>$SongsFile
test -t 1 && Notify=echo || Notify=notify-send
$Notify "Remembered ´$Title´ by ´$Artist´ in ${SongsFile##*/}"

@ -0,0 +1,7 @@
#!/bin/sh
# Very simple background process launcher
# Launches command in background and voids all output
"$@" >/dev/null 2>&1 &
disown
Loading…
Cancel
Save