From 29c894db157e9b2bb2a392e0abb83ac700a839d5 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 1 Nov 2022 14:13:08 +0100 Subject: sync --- .scripts/adblock | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.scripts/adblock') diff --git a/.scripts/adblock b/.scripts/adblock index e02cf92..3fdbb97 100755 --- a/.scripts/adblock +++ b/.scripts/adblock @@ -1,10 +1,9 @@ #!/bin/bash -if grep -Fxq "##START" /etc/hosts -then +if grep -Fxq "##START" /etc/hosts; then sudo sed -i "/##START/,/##END/s/#\(.\)/\1/" /etc/hosts - echo Enabled adblock! + notify-send "Enabled adblock!" else sudo sed -i "/#START/,/#END/s/./#&/" /etc/hosts - echo Disabled adblock! + notify-send "Disabled adblock!" fi -- cgit v1.2.3