Update volshow script to use sockets

This commit is contained in:
hulthe committed 2023-10-28 20:18:33 +02:00
1 parent 6295099bd9
commit 409ce9a05c
2 files changed
+9 -3

No files matched your search

-1
View File
@@ -131,7 +131,6 @@ device:epic-mouse-v1 {
windowrule=float,title:Volume
windowrule=size 300 100,title:Volume
windowrule=move 100%-375 75,title:Volume
windowrule=noanim,title:Volume
windowrule=rounding 35,title:Volume
windowrule=nofocus,title:Volume
+9 -2
View File
@@ -1,9 +1,16 @@
#!/bin/sh
# Pops up a window showing the current volume
alacritty -t "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.yml" \
--command volume_indicator \
--cols 30 \
--rows 3 \
--timeout 1000
--socket "$SOCKET" \
--timeout 2000