From 865728068c965e066d0f8971c5b5ba26e12e7dce Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Thu, 24 Dec 2020 00:06:27 +0530 Subject: Adds scripts and links scripts and wallpapers --- scripts/commands/:break | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/commands/:break (limited to 'scripts/commands/:break') diff --git a/scripts/commands/:break b/scripts/commands/:break new file mode 100755 index 0000000..e6bde66 --- /dev/null +++ b/scripts/commands/:break @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +reason=`echo -n "" | dmenu -p "Reason for break ::"`; + +operation=`[[ "$reason" =~ ^- ]] && echo "stop" || echo "start"`; + +reason=`echo $reason | sed 's/^-//g'`; +([[ -z "$reason" ]]) && exit 1; + +if (ponos "$operation" "$reason"); then + notify-send "Break ${operation}ed"; +else + notify-send -u critical "Something went wrong"; +fi; -- cgit v1.3.1