diff options
| author | Simon <vesspa0330@gmail.com> | 2024-12-01 12:30:15 -0500 |
|---|---|---|
| committer | Simon <vesspa0330@gmail.com> | 2024-12-01 12:30:15 -0500 |
| commit | a22fb4cd71a926e930646be021190e4c7cd11d52 (patch) | |
| tree | 57526fff2b3d9b5c9fccb5c885e0fc56cd5395e2 /Scripts | |
| parent | 8449f016125fc28013dae88b1392bac16fb43a43 (diff) | |
general update
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 |
