scripts/doc/action_scripts.org
2020-05-26 08:32:38 +02:00

471 B

Documentation for scripts

Action scripts

toggle_mic.sh

Scriptblock

#!/bin/bash
pulsemixer --id source-1 --toggle-mute
mic_state=$(pulsemixer --id source-1 --get-mute)
if [ "$mic_state" == "0" ]
then
  notify-send "Mic is now unmuted"
else
  notify-send "Mic is now muted"
fi

toggle_mute.sh

Scriptblock

::w q