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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user