This commit is contained in:
sevi-kun
2020-05-26 08:31:18 +02:00
parent eb128e6767
commit 09a818598a
10 changed files with 80 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
brightnessctl -q set 5%-
msg="Helligkeit: $(echo $(($(brightnessctl get)/12)))%"
notify-send --expire-time=500 "$msg"
Executable
+5
View 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
View File
@@ -0,0 +1,4 @@
#!/bin/bash
brightnessctl -q set +5%
msg="Helligkeit: $(echo $(($(brightnessctl get)/12)))%"
notify-send --expire-time=500 "$msg"
Executable
+5
View 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"
Executable
+25
View 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
View File
+8
View 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
Executable
+9
View 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
Executable
+9
View 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
Executable
+11
View 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