set initial mic state on startup
This commit is contained in:
10
bin/initial-mic-state.sh
Executable file
10
bin/initial-mic-state.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
pactl list sources | grep -qi "Mute: yes"
|
||||||
|
state="$?"
|
||||||
|
|
||||||
|
if [[ "$state" == "0" ]]; then
|
||||||
|
echo "0" >/sys/devices/platform/huawei-wmi/leds/platform::micmute/brightness
|
||||||
|
else
|
||||||
|
echo "1" >/sys/devices/platform/huawei-wmi/leds/platform::micmute/brightness
|
||||||
|
fi
|
||||||
@@ -131,6 +131,7 @@ exec_always --no-startup-id dunst
|
|||||||
exec_always --no-startup-id $HOME/dotfiles/bin/set-wallpaper --restore
|
exec_always --no-startup-id $HOME/dotfiles/bin/set-wallpaper --restore
|
||||||
exec_always --no-startup-id $HOME/dotfiles/bin/swayidle.sh
|
exec_always --no-startup-id $HOME/dotfiles/bin/swayidle.sh
|
||||||
exec_always --no-startup-id libinput-gestures-setup restart
|
exec_always --no-startup-id libinput-gestures-setup restart
|
||||||
|
exec_always --no-startup-id $HOME/dotfiles/bin/initial-mic-state.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user