aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-15 11:46:50 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-15 11:46:50 +0530
commit1b199983fbcc6ff7f17d300235158c9e9f44d25b (patch)
tree63271cd4d0ef2fb355dd9cd93a0a2f442e0fc20e
parent4eb5ec205670c05b4ece734ba5780d6e0f5107de (diff)
adding virtual mic script
-rw-r--r--.config/picom.conf4
-rw-r--r--.config/polybar/config.ini4
-rw-r--r--.scripts/virtual_mic.sh10
3 files changed, 14 insertions, 4 deletions
diff --git a/.config/picom.conf b/.config/picom.conf
index a0f166d..b1510ac 100644
--- a/.config/picom.conf
+++ b/.config/picom.conf
@@ -422,8 +422,8 @@ wintypes:
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
dock = { shadow = false; }
dnd = { shadow = false; }
- popup_menu = { opacity = 0.8; }
- dropdown_menu = { opacity = 0.8; }
+ popup_menu = { opacity = 1; shadow = false; }
+ dropdown_menu = { opacity = 1; shadow = false; }
};
opacity-rule = [
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini
index f4e6848..1f8e31a 100644
--- a/.config/polybar/config.ini
+++ b/.config/polybar/config.ini
@@ -93,8 +93,8 @@ mem-bg = ${colors.module-bg}
vol-fg = ${colors.module-color-1}
vol-bg = ${colors.module-bg}
-vol-fg-alt = #c32aeb
-;vol-fg-alt = ${colors.module-color-1}
+;vol-fg-alt = #c32aeb
+vol-fg-alt = ${colors.module-color-0}
batt-charging-bg = ${colors.module-bg}
batt-charging-fg = ${colors.module-color-0}
diff --git a/.scripts/virtual_mic.sh b/.scripts/virtual_mic.sh
new file mode 100644
index 0000000..20d791d
--- /dev/null
+++ b/.scripts/virtual_mic.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# create virtual sinks
+pactl load-module module-null-sink sink_name=VirtualSpeaker
+pactl load-module module-null-sink media.class=Audio/Duplex sink_name=VirtualMicrophone
+
+# create loopbacks
+pactl load-module module-loopback source="VirtualSpeaker.monitor" sink="$(pactl get-default-sink)"
+pactl load-module module-loopback source="$(pactl get-default-source)" sink="VirtualMicrophone"
+pactl load-module module-loopback source="VirtualSpeaker.monitor" sink="VirtualMicrophone"