add doc/
This commit is contained in:
		
							
								
								
									
										25
									
								
								doc/action_scripts.org
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								doc/action_scripts.org
									
									
									
									
									
										Normal file
									
								
							| @@ -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 | ||||
		Reference in New Issue
	
	Block a user