aboutsummaryrefslogtreecommitdiff
path: root/ration
diff options
context:
space:
mode:
authorjoott <josh@ottmail.me>2025-07-31 10:28:07 -0400
committerjoott <josh@ottmail.me>2025-07-31 10:28:07 -0400
commit0973e61e76ee0baa5b7916f7fdcc682e97b9b6b6 (patch)
tree64eb7d1a7858e21b880915ff662ca858384c52a4 /ration
parent5c64452e4939c618e152489ed40070837c78de2d (diff)
downloadbin-0973e61e76ee0baa5b7916f7fdcc682e97b9b6b6.tar.gz
bin-0973e61e76ee0baa5b7916f7fdcc682e97b9b6b6.zip
comments
Diffstat (limited to 'ration')
-rwxr-xr-xration18
1 files changed, 11 insertions, 7 deletions
diff --git a/ration b/ration
index ecbfb98..f4837cb 100755
--- a/ration
+++ b/ration
@@ -1,5 +1,11 @@
#!/usr/bin/env bash
+#
+# the world wide web is a mischievous rat which aims to control you
+# this script serves to ration the rat
+# it interfaces with my sway and waybar configurations
+#
+
echo -e "\n\
██████╗ █████╗ ████████╗██╗ ██████╗ ███╗ ██╗\n\
██╔══██╗██╔══██╗╚══██╔══╝██║██╔═══██╗████╗ ██║\n\
@@ -67,13 +73,11 @@ for_work () {
echo "you're not just saying that?"
read -p "(I am not): " response
- if [[ "$response" = "I am not" ]]; then
- nohup rat work > /dev/null &
- elif [[ "$response" = "I am" ]]; then
- exit 0
- else
- for_work
- fi
+ case $response in
+ "I am not") nohup rat work > /dev/null & ;;
+ "I am") exit 0 ;;
+ *) for_work ;;
+ esac
}
if [[ "$(cat $SHARE/status)" != 0 ]]; then