commit 72ce537bc675a82aaf99978741d333034c1a8e64 from: noodle date: Thu Jul 10 23:23:50 2025 UTC change project to be only about mpc-notify and get rid of the mailmap commit - b8d2415999e48ac7f913b9437b833f8a10aaa02f commit + 72ce537bc675a82aaf99978741d333034c1a8e64 blob - 63027fe9a40e0c659a606f40c4b88ac9bac4f8be (mode 644) blob + /dev/null --- .mailmap +++ /dev/null @@ -1,2 +0,0 @@ -# move to my new email -boredpasta noodle \ No newline at end of file blob - /dev/null blob + 0d992f0cecae54a68594431974a65493a8f00663 (mode 644) --- /dev/null +++ LICENSE @@ -0,0 +1 @@ +Public domain. blob - b4574f403928b5a0067608fe130aff98fbbadaa4 (mode 644) blob + /dev/null --- README.md +++ /dev/null @@ -1,3 +0,0 @@ -Some useful scripts I wrote. I sometimes use some code from the internet -as a base or inspiration; I add links to my sources when approprite. -Enjoy! blob - /dev/null blob + 13565913a9bc479449a250c017b930459effd841 (mode 644) --- /dev/null +++ README @@ -0,0 +1,22 @@ +Based on https://wiki.archlinux.org/title/Ncmpcpp#With_album_art + +mpc-notify: sends notification of currently playing MPD music accompanied +by album cover art. + +# Dependencies: +ffmpeg +flock +mpc +notify-send +notify-replace (in this repo) +recommended: + - a home directory setup with xdg-user-dirs (for finding your music + directory) + - for dunst users: a configuration file as images don't work without it + (haven't investigated the reason yet) + +# For getting notifications on media keys: +Bind media key to calls to mpc-notify instead of mpc or other media controllers. + +# For getting notifications on song change: +Add execute_on_song_change = "mpc-notify" to your ncmpcpp's configuration file. blob - 68a49daad8ff7e35068f2b7a97d643aab440eaec (mode 644) blob + /dev/null --- UNLICENSE +++ /dev/null @@ -1,24 +0,0 @@ -This is free and unencumbered software released into the public domain. - -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. - -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - -For more information, please refer to blob - 48cb5c7ad9759d32245465043cd0693d5a78ac23 blob + 3b18b47c5eda380c34a47aef4b8f4a004848fb5f --- mpc-notify +++ mpc-notify @@ -1,24 +1,6 @@ #!/bin/sh -e -# Based on: -# https://wiki.archlinux.org/title/Ncmpcpp#With_album_art -# # mpc-notify: sends notification of currently playing MPD music accompanied # by album cover art. -# -# Dependencies: -# mpc -# ffmpeg -# notify-send -# and my other script, notify-replace. -# recommended: a home directory setup with xdg-user-dirs (for finding your -# music directory) -# -# For getting notifications on media keys: -# Bind media key to calls to mpc-notify instead of mpc or other media -# controllers. -# For getting notifications on song change, add: -# execute_on_song_change = "mpc-notify" -# to your ncmpcpp's configuration file. # exit early if we're in tty if [ -z "$WAYLAND_DISPLAY" ] && [ -z "$DISPLAY" ]; then blob - b083565b34b11e1397e042fb1acb901d28e5bbe3 blob + fc145de07c6f2f818a8db1741da6ce21281180bb --- notify-replace +++ notify-replace @@ -1,6 +1,6 @@ #!/bin/sh -u -# Sends, remembers, and replaces notifications based on program name that's -# passed as first argument to script. Uses notify-send. +# notify-replace: sends, remembers, and replaces notifications based on program +# name that's passed as first argument to script. Uses notify-send. # Non-POSIX features used: flock(1) # TODO: consider replacing flock(1) with a POSIX-complaint alternative