#!/usr/bin/env nu def notify [message: string] { notify-send "Noise" $"($message)" } # Displays the currently playing song def main [] { notify (mpc current) } # Skips to next song def "main next" [] { mpc next notify $"Switching to: (mpc current)" } # Moves back a song in the que def "main prev" [] { mpc prev notify $"Switching to: (mpc current)" } # Shuffles the current que def "main shuffle" [] { mpc shuffle notify $"Shuffling que..." } # Stops playing the current que def "main stop" [] { mpc stop notify $"Stopping playback..." } # Starts playing the current que def "main start" [] { mpc start notify $"Starting playback..." } # Toggles playback of the current que def "main toggle" [] { mpc toggle notify $"Toggling playback..." }