From 996bd54bf197fc3cc38016f68f74d56ab9000c5f Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Tue, 8 Oct 2024 22:47:49 +0300 Subject: [PATCH] hyprpaper + changewallpaper script --- .../SF Pro Display/SF Pro Display Bold.otf | Bin .../SF Pro Display/SF Pro Display Regular.otf | Bin .../steelfish.outline-regular.otf | Bin .../hyprlock}/Style-2/foreground.png | Bin {hyprlock => hypr/hyprlock}/Style-2/hypr.png | Bin .../hyprlock}/Style-2/hyprlock.conf | 0 hypr/hyprpaper.conf | 2 ++ scripts/changewallpaper.sh | 18 ++++++++++++++++++ 8 files changed, 20 insertions(+) rename {hyprlock => hypr/hyprlock}/Style-2/Fonts/SF Pro Display/SF Pro Display Bold.otf (100%) rename {hyprlock => hypr/hyprlock}/Style-2/Fonts/SF Pro Display/SF Pro Display Regular.otf (100%) rename {hyprlock => hypr/hyprlock}/Style-2/Fonts/steelfish outline regular/steelfish.outline-regular.otf (100%) rename {hyprlock => hypr/hyprlock}/Style-2/foreground.png (100%) rename {hyprlock => hypr/hyprlock}/Style-2/hypr.png (100%) rename {hyprlock => hypr/hyprlock}/Style-2/hyprlock.conf (100%) create mode 100644 hypr/hyprpaper.conf create mode 100755 scripts/changewallpaper.sh diff --git a/hyprlock/Style-2/Fonts/SF Pro Display/SF Pro Display Bold.otf b/hypr/hyprlock/Style-2/Fonts/SF Pro Display/SF Pro Display Bold.otf similarity index 100% rename from hyprlock/Style-2/Fonts/SF Pro Display/SF Pro Display Bold.otf rename to hypr/hyprlock/Style-2/Fonts/SF Pro Display/SF Pro Display Bold.otf diff --git a/hyprlock/Style-2/Fonts/SF Pro Display/SF Pro Display Regular.otf b/hypr/hyprlock/Style-2/Fonts/SF Pro Display/SF Pro Display Regular.otf similarity index 100% rename from hyprlock/Style-2/Fonts/SF Pro Display/SF Pro Display Regular.otf rename to hypr/hyprlock/Style-2/Fonts/SF Pro Display/SF Pro Display Regular.otf diff --git a/hyprlock/Style-2/Fonts/steelfish outline regular/steelfish.outline-regular.otf b/hypr/hyprlock/Style-2/Fonts/steelfish outline regular/steelfish.outline-regular.otf similarity index 100% rename from hyprlock/Style-2/Fonts/steelfish outline regular/steelfish.outline-regular.otf rename to hypr/hyprlock/Style-2/Fonts/steelfish outline regular/steelfish.outline-regular.otf diff --git a/hyprlock/Style-2/foreground.png b/hypr/hyprlock/Style-2/foreground.png similarity index 100% rename from hyprlock/Style-2/foreground.png rename to hypr/hyprlock/Style-2/foreground.png diff --git a/hyprlock/Style-2/hypr.png b/hypr/hyprlock/Style-2/hypr.png similarity index 100% rename from hyprlock/Style-2/hypr.png rename to hypr/hyprlock/Style-2/hypr.png diff --git a/hyprlock/Style-2/hyprlock.conf b/hypr/hyprlock/Style-2/hyprlock.conf similarity index 100% rename from hyprlock/Style-2/hyprlock.conf rename to hypr/hyprlock/Style-2/hyprlock.conf diff --git a/hypr/hyprpaper.conf b/hypr/hyprpaper.conf new file mode 100644 index 0000000..ebff358 --- /dev/null +++ b/hypr/hyprpaper.conf @@ -0,0 +1,2 @@ +preload = +wallpaper = diff --git a/scripts/changewallpaper.sh b/scripts/changewallpaper.sh new file mode 100755 index 0000000..7b97991 --- /dev/null +++ b/scripts/changewallpaper.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +DIR=$HOME/Desktop/wallpapers +PICS=($(ls ${DIR})) + +# Select a random wallpaper +RANDOMPICS=${PICS[$RANDOM % ${#PICS[@]}]} + +# Notify the user about the wallpaper change +dunstify "⬅️Changed" -a "Wallpaper" -u "low" -i ${DIR}/${RANDOMPICS} -r "1234" + +# Preload the selected wallpaper and set it as the wallpaper +hyprctl hyprpaper preload "${DIR}/${RANDOMPICS}" +hyprctl hyprpaper wallpaper ",${DIR}/${RANDOMPICS}" + +# Play a notification sound +canberra-gtk-play -i window-attention +