Compare commits

...

4 Commits

8 changed files with 54 additions and 4 deletions

View File

@ -21,3 +21,6 @@ exec-once = nm-applet &
# Syncthing
exec-once = syncthing --no-browser &
# Wallpaper
exec-once = hyprpaper
exec-once = systemctl --user start random_hyprpaper.timer

View File

@ -32,10 +32,12 @@ decoration {
#dim_inactive = true
#dim_strength = 0.1
drop_shadow = true
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
shadow {
# enabled = true
# shadow_range = 4
# shadow_render_power = 3
# col.shadow = rgba(1a1a1aee)
}
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {

View File

@ -1,2 +1,8 @@
# Check window data with:
# hyprctl clients
# Steam's Friend List
windowrulev2 = float, center, initialTitle:(Friends List)(.*)
# Calculator
windowrulev2 = float, center, initialTitle:(KCalc)

View File

View File

@ -0,0 +1,4 @@
# Example for Wallpaper Directories
# All sub directories are included
#WALLPAPER_DIR="/mnt/data/Zebra/Photos/Edited"

View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Source the config file from the same directory as the script
SCRIPT_DIR=$(dirname "$0")
source "$SCRIPT_DIR/config"
CURRENT_WALL=$(hyprctl hyprpaper listloaded)
# Get a random wallpaper that is not the current one
WALLPAPER=$(find "$WALLPAPER_DIR" -type f ! -name "$(basename "$CURRENT_WALL")" | shuf -n 1)
# Apply the selected wallpaper
hyprctl hyprpaper reload ,"$WALLPAPER"

View File

@ -0,0 +1,6 @@
[Unit]
Description=Set a random wallpaper with waypaper
[Service]
Type=oneshot
ExecStart=%h/.config/hypr/scripts/random_hyprpaper.sh

View File

@ -0,0 +1,16 @@
[Unit]
Description=Set a random wallpaper every minute
[Timer]
Persistent=true
# Every Minute
#OnCalendar=*:0/1
# Every 30 Minutes
OnCalendar=*:0/30
# Every Hour
#OnCalendar=*:00
[Install]
WantedBy=timers.target