Inital Comit Upload Config Files
This commit is contained in:
22
scripts/wallpapermenu.sh
Executable file
22
scripts/wallpapermenu.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
WALLDIR="$HOME/Pictures/Wallpapers"
|
||||
|
||||
choice=$(find "$WALLDIR" -maxdepth 1 -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.webp" \) -printf "%f\n" | sort | wofi --dmenu --prompt "Wallpaper")
|
||||
|
||||
[ -z "$choice" ] && exit 0
|
||||
|
||||
wall="$WALLDIR/$choice"
|
||||
|
||||
cat > "$HOME/.config/hypr/hyprpaper.conf" <<EOF
|
||||
wallpaper {
|
||||
monitor =
|
||||
path = $wall
|
||||
fit_mode = cover
|
||||
}
|
||||
EOF
|
||||
|
||||
pkill hyprpaper
|
||||
hyprpaper -c "$HOME/.config/hypr/hyprpaper.conf" >/dev/null 2>&1 &
|
||||
|
||||
notify-send "Wallpaper geändert" "$choice"
|
||||
Reference in New Issue
Block a user