summaryrefslogtreecommitdiff
path: root/.config/i3/custom/volume_up.sh
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2021-09-07 11:57:38 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2021-09-07 11:57:38 +0200
commit002a90ffd3931835c2f91d35c79267fba467013e (patch)
tree34910eb09e8c1d200c5e95a955d0d5d9cc60f75e /.config/i3/custom/volume_up.sh
parent9eacd86fa20aeec3f044ca7581a7f1d61e17e629 (diff)
simplified volume binds + cleaned up polybar
Diffstat (limited to '.config/i3/custom/volume_up.sh')
-rwxr-xr-x.config/i3/custom/volume_up.sh10
1 files changed, 0 insertions, 10 deletions
diff --git a/.config/i3/custom/volume_up.sh b/.config/i3/custom/volume_up.sh
deleted file mode 100755
index c03d0ef..0000000
--- a/.config/i3/custom/volume_up.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-max_volume_pc=$1
-current_volume_pc=$(pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')
-if (($current_volume_pc < $max_volume_pc-5)) ; then
- pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
-else
- a=$(($max_volume_pc - $current_volume_pc))
- pactl set-sink-volume @DEFAULT_SINK@ +$a% && $refresh_i3status
-fi
-