feat: add startup reminder notification and dark theme preference;

feat: implement privacy window tagging and screensharing protection rules;
feat: add cursor zoom keybinds and swapnext window keybinds;
feat: add keybinds for locking with sleep and shutdown;
refactor: change monitor swap keybind to focus monitor and adjust toggle mirror script;
chore: comment out hyprfocus and easymotion plugins;
feat: add random wallpaper mode for both monitors;
refactor: rewrite toggle mirror display script for mirror and normal modes
This commit is contained in:
2025-11-06 00:27:36 +03:00
parent ab1d58aed3
commit 070e44a5e0
4 changed files with 152 additions and 85 deletions

View File

@@ -3,20 +3,33 @@
# Define the file to modify
FILE="$HOME/.config/hypr/monitors.conf"
# Get the last line of the file
LAST_LINE=$(tail -n 1 "$FILE")
DELAY="0.5"
# Check if the first argument is "g"
# Get specific lines from the file
LINE_DISABLE=$(sed -n '3p' "$FILE") # 3rd line: disable HDMI
LINE_MIRROR=$(sed -n '4p' "$FILE") # 4th line: mirror configuration
# Check if the first argument is "g" (get status)
if [ "$1" = "g" ]; then
[[ $LAST_LINE == \#* ]] && echo false || echo true
[[ $LINE_MIRROR == \#* ]] && echo false || echo true
exit 0
fi
# Check if the last line is commented
if [[ $LAST_LINE == \#* ]]; then
# Uncomment the last line
sed -i '$s/^# //' "$FILE"
# Check if mirror mode is currently active (last line is NOT commented)
if [[ $LINE_MIRROR != \#* ]]; then
# Switching FROM mirror mode TO normal mode
# Comment the mirror line (disable mirror)
sed -i '4s/^/# /' "$FILE"
# Uncomment the disable line (temporarily disable HDMI)
sed -i '3s/^# //' "$FILE"
sleep $DELAY
sed -i '3s/^/# /' "$FILE"
else
# Comment the last line
sed -i '$s/^/# /' "$FILE"
sed -i '3s/^# //' "$FILE"
# Switching TO mirror mode FROM normal mode
# Uncomment the mirror line (enable mirror)
sed -i '4s/^# //' "$FILE"
sleep $DELAY
# Comment the disable line (don't need explicit disable when using mirror)
sed -i '3s/^/# /' "$FILE"
fi