feat: reserved screen space keybind and pinning windows for watching shows in the background;

refactor: waybar adjustments;
refactor: swaync idle inhibitor now handles idle state correctly;
feat: rmpc config
This commit is contained in:
2025-09-22 17:48:56 +03:00
parent 14730f1269
commit e251ac2fff
18 changed files with 386 additions and 1137 deletions

View File

@@ -2,7 +2,7 @@
WALLPAPER_DIR="$HOME/Pictures/Wallpapers/current/"
INTRO_DIR="$HOME/Pictures/Wallpapers/intro/"
DELAY=3m
DELAY=5m
intro() {
if [ -z "$(ls -A "$WALLPAPER_DIR")" ]; then
@@ -39,7 +39,6 @@ random_wallpaper() {
WALLPAPER=$(find "$WALLPAPER_DIR" -type l ! -name "$(basename "$CURRENT_WALL")" | shuf -n 1)
# Apply the selected wallpaper
hyprctl hyprpaper unload all
hyprctl hyprpaper reload $1,"$WALLPAPER"
if [ $? -ne 0 ]; then
@@ -51,10 +50,20 @@ random_wallpaper() {
fi
echo "Set random wallpaper to $WALLPAPER"
sleep 5
}
loop() {
while true; do
hyprctl hyprpaper listactive
if [ $? == 0 ]; then
break
fi
sleep 1
done
while true; do
hyprctl hyprpaper unload all
# TODO: get monitors dynamically
random_wallpaper "eDP-1"
random_wallpaper "HDMI-A-1"
sleep "$DELAY"

14
hypr/scripts/reserved_space.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env sh
FILE="/tmp/reserved_space_enabled"
if [ ! -e "$FILE" ]; then
touch "$FILE"
hyprctl --batch "\
keyword monitor eDP-1,addreserved,0,0,0,625;"
exit
fi
rm "$FILE"
hyprctl --batch "\
keyword monitor eDP-1,addreserved,0,0,0,0;"