diff options
Diffstat (limited to '.scripts/adblock')
-rwxr-xr-x | .scripts/adblock | 7 |
1 files changed, 3 insertions, 4 deletions
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 |