diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2025-06-13 08:37:31 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2025-06-13 08:37:31 +0530 |
commit | 28ea0e3cbe1c0f980a05d6fb13a428bcab2ea1c5 (patch) | |
tree | b44f5301c4f60b1dae51a91e72b614996ee074ce /.local/bin/desktop/dmenu-sound | |
parent | 311a468de08231c3dd2327473b79066a25e67462 (diff) |
Diffstat (limited to '.local/bin/desktop/dmenu-sound')
-rwxr-xr-x | .local/bin/desktop/dmenu-sound | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/desktop/dmenu-sound b/.local/bin/desktop/dmenu-sound new file mode 100755 index 0000000..967e9fa --- /dev/null +++ b/.local/bin/desktop/dmenu-sound @@ -0,0 +1,6 @@ +#!/bin/sh + +node="$(wpctl status | grep vol: | cut -c5- | dmenu -i -l 30 | + sed -E "s/^[ *]*([0-9]{2}).*$/\1/")" + +[ -n "$node" ] && wpctl set-default "$node" |