Update to Latest
This commit is contained in:
parent
d1bbbcbb15
commit
71d6a8ab3b
157 changed files with 3467 additions and 5151 deletions
15
waybar/scripts/change-wallpaper.sh
Executable file
15
waybar/scripts/change-wallpaper.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
if [ $(pgrep -c hyprpaper) -ne 0 ]; then
|
||||
hyprctl hyprpaper unload all
|
||||
killall hyprpaper
|
||||
fi
|
||||
|
||||
TARGET="$HOME/Downloads/Wallpaper"
|
||||
WALLPAPER=$(find "$TARGET" -type f -regex '.*\.\(jpg\|jpeg\|png\|webp\)' | shuf -n 1)
|
||||
|
||||
CONFIG_PATH="$HOME/.config/hypr/hyprpaper.conf"
|
||||
echo "preload = $WALLPAPER" > "$CONFIG_PATH"
|
||||
echo "wallpaper = eDP-1, $WALLPAPER" >> "$CONFIG_PATH"
|
||||
echo "splash = off" >> "$CONFIG_PATH"
|
||||
echo "ipc = off" >> "$CONFIG_PATH"
|
Loading…
Add table
Add a link
Reference in a new issue