Compare commits

..

No commits in common. "7883d89805dca3eeb635bfa6c0c55915da0a744e" and "3afc48617a353f2048ce372feb080f1e5a53f631" have entirely different histories.

7 changed files with 10 additions and 80 deletions

View File

@ -1 +0,0 @@
wallpaper_index

View File

@ -3,9 +3,11 @@
# │ by goodhumored 2024 │ # │ by goodhumored 2024 │
# ╰──────────────────────────────────────────────────────────╯ # ╰──────────────────────────────────────────────────────────╯
exec-once = copyq --start-server exec-once = copyq --start-server
exec-once = /usr/lib/pam_kwallet_init & hypridle & hyprpaper & nm-applet & blueman-applet exec-once = /usr/lib/pam_kwallet_init & blueman-applet & hypridle & hyprpaper & nm-applet & waybar
exec-once = dunst & poweralertd & exec-once = dunst
exec-once = blueman-applet
exec-once = ~/.config/hypr/scripts/start-wob.sh exec-once = ~/.config/hypr/scripts/start-wob.sh
exec-once = poweralertd
exec-once = [ -x "$(command -v wlsunset)" ] && /home/goodhumored/dotfiles/.config/scripts/sunset.sh "on" exec-once = [ -x "$(command -v wlsunset)" ] && /home/goodhumored/dotfiles/.config/scripts/sunset.sh "on"
exec-once = crow exec-once = crow

View File

@ -17,9 +17,6 @@ bind = $mainMod, E, exec, $fileManager # file manager
bind = $mainMod, A, exec, $toggle_menu_cmd # wofi bind = $mainMod, A, exec, $toggle_menu_cmd # wofi
bind = $mainMod CTRL ALT, V, exec, ~/.config/hypr/scripts/dnd-clipboard.sh bind = $mainMod CTRL ALT, V, exec, ~/.config/hypr/scripts/dnd-clipboard.sh
# ─────────────────────────── switch wallpaper ───────────────────────────
bind = $mainMod SHIFT CTRL ALT, R, exec, ~/.config/hypr/scripts/cycle-wp.sh
# ──────────────────────────────── copyq ────────────────────────────── # ──────────────────────────────── copyq ──────────────────────────────
bind = CTRL_ALT, V, exec, copyq toggle bind = CTRL_ALT, V, exec, copyq toggle

View File

@ -1,11 +1,2 @@
# Generated by update_hyprpaper_config.sh preload = ~/wallpapers/isaac_cathedral.jpg
preload = /home/goodhumored/wallpapers/1.png wallpaper = ,~/wallpapers/isaac_cathedral.jpg
preload = /home/goodhumored/wallpapers/2.png
preload = /home/goodhumored/wallpapers/3.png
preload = /home/goodhumored/wallpapers/4.png
preload = /home/goodhumored/wallpapers/5.png
preload = /home/goodhumored/wallpapers/6.png
preload = /home/goodhumored/wallpapers/7.png
preload = /home/goodhumored/wallpapers/8.png
preload = /home/goodhumored/wallpapers/9.png
preload = /home/goodhumored/wallpapers/10.jpg

View File

@ -2,23 +2,15 @@
monitor=eDP-1,1920x1080@60.01,0x0,1.0 monitor=eDP-1,1920x1080@60.01,0x0,1.0
# ╭──────────────────────────────────────────────────────────╮ # new config
# │ Офис │ monitor=DP-2,1920x1080@60.0,0x-1080,1.0
# ╰──────────────────────────────────────────────────────────╯ monitor=desc:Iiyama North America PL3270Q 1155103721286,2560x1440@59.95,-2560x-1080,1.0
# маленький сверху горизонтально, большой слева
# monitor=DP-2,1920x1080@60.0,0x-1080,1.0
# monitor=desc:Iiyama North America PL3270Q 1155103721286,2560x1440@59.95,-2560x-1080,1.0
# маленький справа вертикально, большой сверху # old configuration:
# monitor=DP-2,1920x1080@60.0,1920x-1440,1.0 # monitor=DP-2,1920x1080@60.0,1920x-1440,1.0
# monitor=DP-2,transform,3 # monitor=DP-2,transform,3
# monitor=desc:Iiyama North America PL3270Q 1155103721286,2560x1440@59.95,-640x-1440,1.0 # monitor=desc:Iiyama North America PL3270Q 1155103721286,2560x1440@59.95,-640x-1440,1.0
# маленький справа горизонтально большой сверху
monitor=DP-2,1920x1080@60.0,1920x-820,1.0
monitor=desc:Iiyama North America PL3270Q 1155103721286,2560x1440@59.95,-640x-1440,1.0
# Домашний монитор # Домашний монитор
monitor=desc:BNQ BenQ G925HDA 29A01966019,prefered,auto,1.0 monitor=desc:BNQ BenQ G925HDA 29A01966019,prefered,auto,1.0
monitor=desc:HJW MACROSILICON 0x0002E842,prefered,320x-720,1.0 monitor=desc:HJW MACROSILICON 0x0002E842,prefered,320x-720,1.0
monitor=desc:Huawei Technologies Co. Inc. ZQE-CBA 0xC080F622,3440x1440@99.98Hz,-760x-1440,1,bitdepth

View File

@ -1,36 +0,0 @@
#!/bin/bash
# Set environment for Hyprland
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
export WAYLAND_DISPLAY=$(ls "$XDG_RUNTIME_DIR"/wayland-* | head -1 | xargs basename)
CONFIG_FILE="$HOME/.config/hypr/hyprpaper.conf"
INDEX_FILE="$HOME/.config/hypr/wallpaper_index"
# Read wallpaper list from config
wallpapers=()
while IFS= read -r line; do
if [[ "$line" =~ ^preload\ =\ (.*) ]]; then
wallpapers+=("${BASH_REMATCH[1]}")
fi
done < "$CONFIG_FILE"
# Check for wallpapers
if [ ${#wallpapers[@]} -eq 0 ]; then
echo "No wallpapers found!" >&2
exit 1
fi
# Read current index
current_index=0
if [ -f "$INDEX_FILE" ]; then
current_index=$(<"$INDEX_FILE")
fi
# Set current wallpaper
current_index=$((current_index % ${#wallpapers[@]}))
hyprctl hyprpaper wallpaper ",${wallpapers[current_index]}"
# Update index for next run
next_index=$(( (current_index + 1) % ${#wallpapers[@]} ))
echo "$next_index" > "$INDEX_FILE"

View File

@ -1,15 +0,0 @@
#!/bin/bash
WALLPAPER_DIR="$HOME/wallpapers"
CONFIG_FILE="$HOME/.config/hypr/hyprpaper.conf"
# Find and sort image files naturally (handles numbers in filenames)
mapfile -t wallpapers < <(find "$WALLPAPER_DIR" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) -print0 | sort -zV | xargs -0n1)
# Write to config
echo "# Generated by update_hyprpaper_config.sh" > "$CONFIG_FILE"
for wp in "${wallpapers[@]}"; do
echo "preload = $wp" >> "$CONFIG_FILE"
done
echo "Updated hyprpaper.conf with ${#wallpapers[@]} wallpapers."