5b032891c5
refactor: reduce code duplication from 1.97% to 0.76%
...
- Add common.sh library functions: require_imagemagick, install_missing_pacman_packages, handle_arg_help_or_unknown
- Create android.sh shared library for Android utilities
- Create hosts-guard-common.sh for pacman hooks shared functions
- Update multiple scripts to source common.sh and use shared helpers
- Add print_shutdown_schedule helper in setup_midnight_shutdown.sh
- Remove duplicate log(), usage(), install_packages patterns across scripts
- Format all shell scripts with shfmt (2-space indent)
2025-12-11 18:32:15 +01:00
4cb3a62491
Add custom entries protection to hosts install.sh
...
- Track custom blocked entries in /etc/hosts.custom-entries.state
- Block installation if any previously blocked entries are removed
- No bypass option - manual chattr removal required for changes
- Protects against impulsive unblocking of sites
- State file is also protected with chattr +i
2025-12-07 14:01:41 +01:00
795f56023e
fix: shellcheck issues
2025-11-01 15:36:22 +01:00
356508722e
feat: skip systemctl restart network manager serivce
2025-09-06 18:05:50 +02:00
d82166cfa8
feat: steam compatibility script
2025-09-06 17:58:54 +02:00
0650347903
feat: speedup hosts installation
2025-09-06 14:28:17 +02:00
7a4ebe2fac
feat: add food delivery services
2025-08-07 18:51:13 +02:00
b1a4187cc7
fix: make messenger work
2025-07-01 19:55:18 +02:00
e8c1343ffb
feat: add facebook to whitelist
2025-07-01 17:50:20 +02:00
6528c45d43
feat: added brave to the list of blocked websites
2025-06-23 11:49:43 +02:00
0003c1ae93
feat: make the install hosts script immutable readonly aand append only
2025-06-15 18:32:32 +02:00
e9a374b103
feat: block store steampowered
2025-06-08 15:41:20 +02:00
749db115e4
feat: whitelist some sites
2025-06-06 17:00:02 +02:00
97aeef90b1
feat: discord and youtube blokced in hosts
2025-06-05 20:50:03 +02:00
325fd27580
fix: etc hosts permissions
2025-06-03 22:56:45 +02:00
b94a0dc310
feat: use more extensive blocked hosts source
2025-06-03 22:48:17 +02:00
05bbad7e5b
feat: make etc hosts more restrictive
2025-06-03 22:41:00 +02:00
2564dddbb5
feat: activate systemd resolve
2024-12-28 14:02:23 +01:00
0ce51c7a0b
chore: added block youtube
2024-12-27 21:51:35 +01:00
ba172c51b9
feat: block websites uising etc hosts
2024-12-27 21:49:30 +01:00