diff options
Diffstat (limited to '.scripts/suggestadblock')
-rwxr-xr-x | .scripts/suggestadblock | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.scripts/suggestadblock b/.scripts/suggestadblock new file mode 100755 index 0000000..a2331e4 --- /dev/null +++ b/.scripts/suggestadblock @@ -0,0 +1,14 @@ +#!/bin/env bash + +export XAUTHORITY=/home/melvin/.Xauthority +export DISPLAY=:0 +export XDG_RUNTIME_DIR=/run/user/1000 +export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus + +LIM=30 + +expiring="$(find $HOME/.cache/adblock_disabled -mmin +$LIM)" +if [ "$expiring" ]; then + notify-send "Focus" "Adblock länger als $LIM Minuten deaktiviert" + exit 0 +fi |