This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-old/scripts/.local/bin/round-vol

7 lines
108 B
Fish
Executable File

#!/bin/fish
set cvol (pamixer --get-volume)
set nvol (math round\($cvol/5\)*5)
pamixer --set-volume $nvol