From a22fb4cd71a926e930646be021190e4c7cd11d52 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 1 Dec 2024 12:30:15 -0500 Subject: general update --- Scripts/fortune_tree.sh | 5 +++++ Scripts/i3blocks_volume | 7 +++++++ Scripts/lock | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100755 Scripts/fortune_tree.sh create mode 100755 Scripts/i3blocks_volume create mode 100755 Scripts/lock (limited to 'Scripts') 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 -- cgit v1.3.1-4-g156e