Files
.config
.emacs.d
.gkrellm2
.local
bin
Chatty
Checking-repo
Logc
Logs
Update
Update-kernel
Update-pkg
WinBox
backupSynology
backupSynologyMac
bgp-check
bin-cp
browser-x
chardetect
chatty-run
cidr2mask
cleaner
cleanertmp
cmus-control
cmus-shell
cpumhz
debugger
dmenumount
dmenuumount
dmenuunicode
docker-start
dwmstatusbar
eix-repos-sync
epylint
euscan
ext
f2py
f2py3
f2py3.6
f2py3.7
f2py3.8
flask
futurize
gentoo-test
geoip
get-meraki-network-list
getforecast
gfetch
gfg
git-delete-branch
git-init-folder
gswitch
haruhi-dl
iptables-restart
iptables-update
isort
jupyter-note
mailsync
mask2cidr
minecraft-launcher
mount-synology
mouse-set
night
notify-program
password-manager
pasteurize
pinger
pre-commit
pwiz.py
pylint
pyreverse
rasp
rcon
record
remove-kernel
runJava
saver-off
sb-battery
sb-clock
sb-cpu
sb-mail
sb-mem
sb-music
sb-network
sb-temp
sb-volume
sb-weather
screen-switcher
screenshot
screenshot-area
set-wallpaper
shut-sup-rest
sidebar-restore-macos
speedtest-cli
ssh-permissions
stream
suspend-at-time
symilar
tea
temp
term-wmi
tester-ebuild
tester-ubuntu
tmux-display-fix
trans
twitch
video-convert
volume
welcomer
welcomer-serwer
wheel
wsl-notify
wylaczoff
yatqa
yt-mp3
yt-video
yt-video-cut
Library
.alacritty.yml
.gitconfig
.gitconfig.local
.gitignore
.markdownlint.json
.signature
.skhdrc
.tmux.conf
.vimrc-def
.wall.jpg
.xinitrc
.yabairc
.zshrc
myhome/.local/bin/sb-volume
Marcin Woźniak c18381a3c6 Added programs
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-03-22 21:27:54 +01:00

8 lines
197 B
Bash
Executable File

#!/bin/bash
print_volume() {
[ "$(pulsemixer --get-mute)" = "1" ] && printf "🔇" && exit
vol=$(pulsemixer --get-volume | awk '{print $1}')
printf "%s%%\\n" "🔊 $vol"
}
print_volume