suckless-utils/scripts/eww/quoter
Alexis Jhon Gaspar 80bb3844e6 Eww work + continued debugging for layoutmenu
- Added eww config
- Added a new statusbutton (non-working for now)
2023-09-26 22:47:00 +08:00

15 lines
353 B
Bash
Executable file

#!/bin/bash
# Quoter, the randomly generated quotes maker
# It reads messages off a file called "messages.txt"
# If it doesn't exists on the same dir as the script, it'll fail.
# Setting vars
file=$HOME/messages.txt
count=$(wc -l $file | awk '{print $1}')
number=$((1 + $RANDOM % $count))
quote=$(sed -n $number\p $file)
echo "Random quote: $quote"