aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnotepicker2
-rwxr-xr-xrat8
-rwxr-xr-xration18
3 files changed, 20 insertions, 8 deletions
diff --git a/notepicker b/notepicker
index 95126da..7fcdafe 100755
--- a/notepicker
+++ b/notepicker
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
+# I love picking my notes
+
# pass in notes directory as parameter
NOTEDIR=$1
SUFFIX=''
diff --git a/rat b/rat
index 1a6bc24..9d7f40f 100755
--- a/rat
+++ b/rat
@@ -1,5 +1,11 @@
#!/usr/bin/env bash
+#
+# the world wide web is a mischievous rat which aims to control you
+# I aim to control the rat with ufw
+# user interface handled by my ration script
+#
+
SHARE=$HOME/.local/share/rat
update_waybar () {
@@ -44,7 +50,7 @@ for_task () {
update_waybar
while true; do
sleep 5m
- notif="$(notify-send -A open "ask yourself: do I still need the rat to $1?")"
+ notif="$(notify-send -A open "Ask yourself: do I still need the rat to $1?")"
if [[ -n "$notif" ]]; then
kitty --app-id ration bash -i ration
break
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