+/config

my dotfiles and nix configuration

git clone https://git.julia.blue/+/config

Julia RyanUpdate9687527

main
330 B18 linesraw
1#!/usr/bin/env bash
2
3picker() {
4    case $(uname) in
5    Linux)
6        rofi -i -dmenu -p song
7        ;;
8    Darwin)
9        choose-gui -s 18 -n 30
10        ;;
11    *)
12        exit 1
13        ;;
14    esac
15}
16
17next_song=$(mpc listall | shuf | picker)
18[[ -n $next_song ]] && mpc insert "$next_song" && if [[ -n $1 ]]; then mpc next; fi