summaryrefslogtreecommitdiff
path: root/i3blocks_volume
diff options
context:
space:
mode:
authorSimon <vesspa0330@gmail.com>2025-01-22 23:09:10 -0500
committerSimon <vesspa0330@gmail.com>2025-01-22 23:09:10 -0500
commit485f926fb3bfdcec03829e5743f9f3af6f6a9062 (patch)
tree107c14d2414dde1b42c9e8085e5ae7dd576f463d /i3blocks_volume
parenta22fb4cd71a926e930646be021190e4c7cd11d52 (diff)
played with picom, added blur, border-radius, and global inactive
opacity. added icons to i3bar and roughly centered date/time. looks much nicer
Diffstat (limited to 'i3blocks_volume')
-rwxr-xr-xi3blocks_volume7
1 files changed, 7 insertions, 0 deletions
diff --git a/i3blocks_volume b/i3blocks_volume
new file mode 100755
index 0000000..787e621
--- /dev/null
+++ b/i3blocks_volume
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if [ "$(pactl get-sink-mute @DEFAULT_SINK@)" = "Mute: yes" ]; then
+ echo " mute"
+else
+ echo " $(pactl get-sink-volume @DEFAULT_SINK@ | awk '{printf "%s", substr($5, 1, length($5) - 1)}')"
+fi