Last active
August 2, 2019 18:00
-
-
Save AlexTMjugador/64800d849b501c258da1a1a02036211a to your computer and use it in GitHub Desktop.
Estos comandos, al ser ejecutados cuando se pulsa una tecla de control de volumen del teclado, restauran su funcionalidad en un entorno de escritorio de X compatible (p. ej. XFCE).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sh -c 'pactl set-sink-mute 0 toggle && ([ $(pactl list sinks | sed -n "/Mute: .*$/{s/^[[:space:]]*Mute: //;p};/^Sink #1$/q") = "no" ] && notify-send "Control de volumen" "Sonido no silenciado." --icon=audio-volume-medium || notify-send "Control de volumen" "Sonido silenciado." --icon=audio-volume-muted)' | |
sh -c 'pactl set-sink-volume 0 -2% && notify-send "Control de volumen" "Bajado volumen en un 2%." --icon=audio-volume-low' | |
sh -c 'pactl set-sink-volume 0 "+2%" && notify-send "Control de volumen" "Incrementado volumen en un 2%." --icon=audio-volume-high' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment