From a65c9aa953bf4520b9fa9b53607d1cb9dbced949 Mon Sep 17 00:00:00 2001 From: sevi-kun Date: Tue, 26 May 2020 08:32:38 +0200 Subject: [PATCH] add doc/ --- doc/action_scripts.org | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 doc/action_scripts.org diff --git a/doc/action_scripts.org b/doc/action_scripts.org new file mode 100644 index 0000000..ae1b44d --- /dev/null +++ b/doc/action_scripts.org @@ -0,0 +1,25 @@ +#+TITLE: Documentation for scripts +#+DESCRIPTION: Documentation for scripts in ~/Files/scripts +#+AUTHOR: Béla Richartz + + +* Action scripts + +** toggle_mic.sh +*** Scriptblock +#+BEGIN_SRC sh +#!/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 +#+END_SRC +** toggle_mute.sh +*** Scriptblock +#+BEGIN_SRC sh +::w q +#+END_SRC