add round-vol script

This commit is contained in:
lelgenio 2020-05-02 21:28:03 -03:00
parent b1047070d3
commit 7a38b78a9d
1 changed files with 6 additions and 0 deletions

6
scripts/.local/bin/round-vol Executable file
View File

@ -0,0 +1,6 @@
#!/bin/fish
set cvol (pamixer --get-volume)
set nvol (math round\($cvol/5\)*5)
pamixer --set-volume $nvol