Skip to content

Commit

Permalink
update through script - 2024-04-14 12:42:02
Browse files Browse the repository at this point in the history
  • Loading branch information
oasido committed Apr 14, 2024
1 parent 39a3077 commit a3a1d35
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ alias sb="cd $SECOND_BRAIN"
alias scripts="cd $SCRIPTS"
alias startup="cd $STARTUP"
alias dot="cd $DOTFILES"
alias dotc="cd $DOTFILES/.config && v"

# ricing
alias es="v $SCRIPTS"
Expand Down
13 changes: 13 additions & 0 deletions .local/bin/scripts/toggle_mic
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

source_id=$(pulsemixer --list-sources | grep -i "RODE NT-USB Analog Stereo" | sed -n 's/.*ID: source-\([0-9]*\).*/\1/p')

pulsemixer --id source-$source_id --toggle-mute
mute_status=$(pulsemixer --get-mute --id source-$source_id)

if [ "$mute_status" -eq 0 ]; then
notify-send --icon=gtk-info Test "Microphone unmuted"
else
notify-send --icon=gtk-info Test "Microphone muted"
fi

0 comments on commit a3a1d35

Please sign in to comment.