#!/bin/sh # Pops up a window showing the current volume SOCKET="/tmp/volume_indicator" # If theres an existing volume_indicator running, prod the socket # Otherwise, start a new volume_indicator instance. nc -U "$SOCKET" 2>/dev/null || \ ba alacritty -T "Volume" \ --class "volume_indicator" \ --config-file "$HOME/.config/alacritty/silent.toml" \ --command volume_indicator \ --cols 30 \ --rows 3 \ --socket "$SOCKET" \ --timeout 2000