From 73dc35d886da131b357d2adfe9a1fc1479008f8a Mon Sep 17 00:00:00 2001 From: steven-na Date: Fri, 2 Oct 2026 01:22:35 -0700 Subject: Small scripts --- arch/scripts/.local/bin/morse-train | 13 +++++++++++++ arch/scripts/.local/bin/specific-wallpaper | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100755 arch/scripts/.local/bin/morse-train create mode 100755 arch/scripts/.local/bin/specific-wallpaper (limited to 'arch') diff --git a/arch/scripts/.local/bin/morse-train b/arch/scripts/.local/bin/morse-train new file mode 100755 index 0000000..23f60e5 --- /dev/null +++ b/arch/scripts/.local/bin/morse-train @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +alphanum="abcdefghijklmnopqrstuvwxyz1234567890" +choice="${alphanum:$(( RANDOM % ${#alphanum} )):1}" +string="$choice $choice$choice$choice" + +# echo $choice +morse -n -w 20 -v 0.03 -f 660 "$string" +sleep 1.5 + +# notify-send "$choice" +echo "$choice" | festival --tts +echo "$choice" diff --git a/arch/scripts/.local/bin/specific-wallpaper b/arch/scripts/.local/bin/specific-wallpaper new file mode 100755 index 0000000..3a8299d --- /dev/null +++ b/arch/scripts/.local/bin/specific-wallpaper @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +file=$(fd . ~/wallpapers/ -e jpg -e png -e jpeg -e bmp | fzf) +monitor=$(awww query | awk 'match($0, /: ([^:]+)/, arr) {print arr[1]}' | fzf) + +awww img --outputs $monitor $file -- cgit v1.2.3