{ flake.modules.homeManager.gui = { pkgs, ... }: { home.packages = [ (pkgs.writeShellApplication { name = "status-audio"; runtimeInputs = with pkgs; [ pulseaudio ]; text = '' device="$(pactl list sinks | grep -A2 "$(pactl get-default-sink)" | grep "Description:" | awk '{print $2}')" test "$device" == "Dummy" && exit 0 echo "$device"; ''; }) ]; }; }