diff options
author | Marvin Borner | 2024-01-15 02:48:40 +0100 |
---|---|---|
committer | Marvin Borner | 2024-01-25 15:34:20 +0100 |
commit | ec70ec36a898e6dc5752fc777db8786d946b032e (patch) | |
tree | 9f56b780b6792da7d2a7d8b4822d043eb0b1166a /.scripts/suggestadblock | |
parent | 8f6e86ee72a20fc9bbac62d71e0921b152eaa0bb (diff) |
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 |