soundboard
This commit is contained in:
parent
3a4beb6566
commit
f498b6b7c1
|
@ -46,3 +46,4 @@
|
||||||
~/.config/spicetify/Extensions: spicetify/extensions
|
~/.config/spicetify/Extensions: spicetify/extensions
|
||||||
~/.config/bat/config: bat/config
|
~/.config/bat/config: bat/config
|
||||||
~/.config/themectl: themectl
|
~/.config/themectl: themectl
|
||||||
|
~/.config/sounds: sounds
|
||||||
|
|
12
scripts/sboard
Executable file
12
scripts/sboard
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
default=$(pactl info | grep "Default Source:" | sed 's/Default Source: //g')
|
||||||
|
sink=$(pactl info | grep "Default Sink:" | sed 's/Default Source: //g')
|
||||||
|
pipe=$(pactl load-module module-pipe-source source_name=sboard file="${XDG_DATA_HOME}/sboard/vmic" format=s16le rate=16000 channels=1)
|
||||||
|
redir=$(pactl load-module module-loopback source=sboard sink="$sink")
|
||||||
|
pactl set-default-source sboard
|
||||||
|
pactl set-source-volume sboard 100%
|
||||||
|
ffmpeg -y -re -i "$@" -f s16le -ar 16000 -ac 1 "${XDG_DATA_HOME}/sboard/vmic"
|
||||||
|
pactl set-default-source "$default"
|
||||||
|
pactl unload-module "$pipe"
|
||||||
|
pactl unload-module "$redir"
|
BIN
sounds/cap.mp3
Normal file
BIN
sounds/cap.mp3
Normal file
Binary file not shown.
BIN
wallpapers/Skyline.jpg
Normal file
BIN
wallpapers/Skyline.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 170 KiB |
Loading…
Reference in New Issue
Block a user