add *.sh
This commit is contained in:
		
							
								
								
									
										4
									
								
								dec_brightness.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								dec_brightness.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| #!/bin/bash | ||||
| brightnessctl -q set 5%- | ||||
| msg="Helligkeit: $(echo $(($(brightnessctl get)/12)))%" | ||||
| notify-send --expire-time=500 "$msg" | ||||
							
								
								
									
										5
									
								
								dec_vol.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										5
									
								
								dec_vol.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| #!/bin/bash | ||||
| pulsemixer --change-volume -5 | ||||
| vol="$(amixer -D pulse get Master | awk -F'[][]' 'END{ print $2 }')" | ||||
| notify-send --expire-time=500 "Volume $vol" | ||||
|  | ||||
							
								
								
									
										4
									
								
								inc_brightness.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								inc_brightness.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| #!/bin/bash | ||||
| brightnessctl -q set +5% | ||||
| msg="Helligkeit: $(echo $(($(brightnessctl get)/12)))%" | ||||
| notify-send --expire-time=500 "$msg" | ||||
							
								
								
									
										5
									
								
								inc_vol.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										5
									
								
								inc_vol.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| #!/bin/bash | ||||
| pulsemixer --change-volume +5 | ||||
| vol="$(amixer -D pulse get Master | awk -F'[][]' 'END{ print $2 }')" | ||||
| notify-send --expire-time=500 "Volume $vol" | ||||
|  | ||||
							
								
								
									
										25
									
								
								passmenu.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										25
									
								
								passmenu.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| #!/usr/bin/env bash | ||||
|  | ||||
| shopt -s nullglob globstar | ||||
|  | ||||
| typeit=0 | ||||
| if [[ $1 == "--type" ]]; then | ||||
| 	typeit=1 | ||||
| 	shift | ||||
| fi | ||||
|  | ||||
| prefix=${PASSWORD_STORE_DIR-~/.password-store} | ||||
| password_files=( "$prefix"/**/*.gpg ) | ||||
| password_files=( "${password_files[@]#"$prefix"/}" ) | ||||
| password_files=( "${password_files[@]%.gpg}" ) | ||||
|  | ||||
| password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@") | ||||
|  | ||||
| [[ -n $password ]] || exit | ||||
|  | ||||
| if [[ $typeit -eq 0 ]]; then | ||||
| 	pass show -c "$password" 2>/dev/null | ||||
| else | ||||
| 	pass show "$password" | { IFS= read -r pass; printf %s "$pass"; } | | ||||
| 		xdotool type --clearmodifiers --file - | ||||
| fi | ||||
							
								
								
									
										0
									
								
								settings_manager.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										0
									
								
								settings_manager.sh
									
									
									
									
									
										Executable file
									
								
							
							
								
								
									
										8
									
								
								toggle_bluetooth.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										8
									
								
								toggle_bluetooth.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| #!/bin/bash | ||||
| if rfkill list bluetooth | grep -q 'yes$' ; then | ||||
|   rfkill unblock bluetooth | ||||
|   notify-send "Bloetooth is now enabled" | ||||
| else | ||||
|   rfkill block bluetooth | ||||
|   notify-send "Bloetooth is now disabled" | ||||
| fi | ||||
							
								
								
									
										9
									
								
								toggle_mic.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								toggle_mic.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| #!/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 | ||||
							
								
								
									
										9
									
								
								toggle_mute.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								toggle_mute.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| #!/bin/bash | ||||
| pulsemixer --toggle-mute | ||||
| muted=$(amixer -D pulse get Master | awk -F'[][]' 'END{ print $4}') | ||||
| if [ "on" == "$muted" ] | ||||
| then | ||||
|   notify-send "Sound is now toggled on" | ||||
| else | ||||
|   notify-send "Sound is now toggled off" | ||||
| fi | ||||
							
								
								
									
										11
									
								
								toggle_wifi.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								toggle_wifi.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| #!/bin/bash | ||||
| wifi_block=$(rfkill list wifi | grep Soft | awk '{print $3}') | ||||
| if [ "$wifi_block" == "yes" ] | ||||
| then  | ||||
|   rfkill unblock wifi  | ||||
|   notify-send "Wifi is now enabled" | ||||
| else  | ||||
|   rfkill block wifi | ||||
|   notify-send "Wifi is now disabled" | ||||
| fi | ||||
| sleep 0.2 | ||||
		Reference in New Issue
	
	Block a user