feat: add privacy configuration file for window rules and screensharing protection;

feat: implement distraction toggle script for hosts file management;
feat: add privacy toggle script with status checking capability;
refactor: improve grayscale toggle script with status parameter support;
refactor: reorganize hyprland gestures and input configuration;
chore: remove unused bspwm script and btop configuration files;
chore: delete obsolete rofi-wayland launcher themes and configurations;
feat: extend nvim filetype recognition for pascal scripts;
feat: enhance swaync configuration with new toggle buttons and layout adjustments;
chore: update waybar goal file content;
chore: modify gitignore patterns for cava assets and thunar configurations;
fix: adjust thunar custom actions to use swww instead of hyprpaper
This commit is contained in:
2025-11-12 14:03:39 +03:00
parent f4e7adb2e6
commit 1a07095d35
103 changed files with 197 additions and 19199 deletions

View File

@@ -1,22 +1,31 @@
#!/bin/bash
FILENAME="$HOME/.config/hypr/grayscale.conf"
# Define the configuration file path
FILE="$HOME/.config/hypr/grayscale.conf"
# Check if the file exists
if [ ! -f "$FILENAME" ]; then
echo "File not found: $FILENAME"
if [ ! -f "$FILE" ]; then
echo "File not found: $FILE"
exit 1
fi
# Check if the file is already commented
if grep -q '^[[:space:]]*#' "$FILENAME"; then
echo "Uncommenting the file: $FILENAME"
# Uncomment the lines
sed -i 's/^[[:space:]]*#\s*//g' "$FILENAME"
# Toggle comments
# If the first line is not commented out, comment out the entire file
if ! grep -q '^#' "$FILE"; then
if [ $1 = 'g' ]; then
echo "true"
exit 0
fi
sed -i 's/^/#/' "$FILE"
echo "Commented out all lines in $FILE."
else
echo "Commenting the file: $FILENAME"
# Comment the lines
sed -i 's/^/# /' "$FILENAME"
if [ $1 = 'g' ]; then
echo "false"
exit 0
fi
sed -i 's/^#//g' "$FILE"
echo "Uncommented all lines in $FILE."
fi
hyprctl reload