blob: e6bde66f92d33da0ec694a07d01e219d04b4d4bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
|