Compare commits
No commits in common. "0193693a5a5377cbbe4f52e0fbb86fa8752fb3f2" and "57d480a93687a71f89a70656c8b1455dd8d81176" have entirely different histories.
0193693a5a
...
57d480a936
@ -1,6 +1,4 @@
|
|||||||
Shortcuts
|
shortcuts
|
||||||
=========
|
=========
|
||||||
|
|
||||||
Small scripts and code snippets to be bound to keyboard shortcuts.
|
Small scripts and code snippets to be bound to keyboard shortcuts.
|
||||||
|
|
||||||
Note: If you want to bind this to a special key like scroll lock, go to `/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/customX/binding` and manually enter "Scroll_Lock" as the value.
|
|
4
mute_unmute_microphone.sh
Executable file → Normal file
4
mute_unmute_microphone.sh
Executable file → Normal file
@ -2,6 +2,10 @@
|
|||||||
# Function : Mute/Unmute Microphone
|
# Function : Mute/Unmute Microphone
|
||||||
# Depends : alsa-utils
|
# Depends : alsa-utils
|
||||||
|
|
||||||
|
# Copy this directly into the gnome shortcut manager:
|
||||||
|
# bash -c "notify-send \"Microphone\" \"The microphone is now `amixer set Capture toggle | grep \"Front\" | tail -n 1 | sed -e 's/.*\[\(.*\)\]/\1/'`.\" --hint int:transient:1 --icon=file:///usr/share/icons/Adwaita/scalable/devices/audio-input-microphone-symbolic.svg"
|
||||||
|
|
||||||
|
# Or link in this script to also toggle the SCROLL-Lock LED. (on when muted)
|
||||||
onoff=$(amixer set Capture toggle | grep 'Front' | tail -n 1 | sed -e 's/.*\[\(.*\)\]/\1/');
|
onoff=$(amixer set Capture toggle | grep 'Front' | tail -n 1 | sed -e 's/.*\[\(.*\)\]/\1/');
|
||||||
dash=$(if [ "$onoff" == 'on' ]; then echo -ne '-'; fi);
|
dash=$(if [ "$onoff" == 'on' ]; then echo -ne '-'; fi);
|
||||||
xset ${dash}led;
|
xset ${dash}led;
|
||||||
|
Loading…
Reference in New Issue
Block a user