diff options
Diffstat (limited to 'Scripts')
| -rwxr-xr-x | Scripts/fortune_tree.sh | 5 | ||||
| -rwxr-xr-x | Scripts/i3blocks_volume | 7 | ||||
| -rwxr-xr-x | Scripts/lock | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/Scripts/fortune_tree.sh b/Scripts/fortune_tree.sh new file mode 100755 index 0000000..de6ac2c --- /dev/null +++ b/Scripts/fortune_tree.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +text=$(fortune) + +cbonsai -lp -L 50 -m "$text" diff --git a/Scripts/i3blocks_volume b/Scripts/i3blocks_volume new file mode 100755 index 0000000..84da634 --- /dev/null +++ b/Scripts/i3blocks_volume @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "$(pactl get-sink-mute @DEFAULT_SINK@)" = "Mute: yes" ]; then + echo "vol: mute" +else + echo "vol: $(pactl get-sink-volume @DEFAULT_SINK@ | awk '{printf "%s", substr($5, 1, length($5) - 1)}')" +fi diff --git a/Scripts/lock b/Scripts/lock new file mode 100755 index 0000000..89a0a0e --- /dev/null +++ b/Scripts/lock @@ -0,0 +1,6 @@ +#!/bin/bash +TMPBG=/tmp/screen.png +scrot /tmp/screen.png +magick $TMPBG -scale 10% -scale 1000% $TMPBG +i3lock -u -i $TMPBG +rm /tmp/screen.png |
