Tanner Babcock

Dotfiles / i3/bin/alsaToggleSpeaker

		#!/usr/bin/newlisp

(letn ( (alsaOut (exec "amixer set Speaker toggle"))
        (status (first (regex "\[[onf]+\]" (last alsaOut)))) )
  (exec (join (list {notify-send -t 1000 "SpeakerToggle" "Speakers are now } (first (regex "on|off" status)) {"}))))

(exit)