summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmute-toggle3
-rwxr-xr-xpulse-loopback9
-rwxr-xr-xqrcode3
-rwxr-xr-xwg-genkey6
4 files changed, 21 insertions, 0 deletions
diff --git a/mute-toggle b/mute-toggle
new file mode 100755
index 0000000..e3359eb
--- /dev/null
+++ b/mute-toggle
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+bash -c "pacmd list-sources | grep -oP 'index: \\d+' | awk '{ print \$2 }' | xargs -I{} pactl set-source-mute {} ${1:-toggle}"
diff --git a/pulse-loopback b/pulse-loopback
new file mode 100755
index 0000000..a756746
--- /dev/null
+++ b/pulse-loopback
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+source=$1
+
+id=$(pactl load-module module-loopback channels=1 source=$source)
+echo "$id"
+trap "pactl unload-module $id" EXIT TERM INT
+echo "press enter to remove loopback"
+read
diff --git a/qrcode b/qrcode
new file mode 100755
index 0000000..3051792
--- /dev/null
+++ b/qrcode
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+qrencode -o - "$1" --size 5 | feh -
diff --git a/wg-genkey b/wg-genkey
new file mode 100755
index 0000000..d7410e4
--- /dev/null
+++ b/wg-genkey
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+key=$(wg genkey)
+echo "private: $key"
+printf "public: "
+wg pubkey <<<"$key"