From dbfd694a9b006ca1b2da42ad94d6bf0ff5a6d394 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 8 Mar 2025 19:56:16 +0900 Subject: updated wallpaper select.sh --- config/hypr/UserScripts/WallpaperSelect.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index 11a19efd..cf677f9c 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -12,6 +12,12 @@ wallpaper_current="$HOME/.config/hypr/wallpaper_effects/.wallpaper_current" iDIR="$HOME/.config/swaync/images" iDIRi="$HOME/.config/swaync/icons" +# Check if package bc exists +if ! command -v bc &>/dev/null; then +notify-send -i "$iDIR/ja.png" "bc missing" "Install package bc first" +exit 1 +fi + # variables rofi_theme="$HOME/.config/rofi/config-wallpaper.rasi" focused_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | .name') @@ -28,7 +34,6 @@ adjusted_icon_size=$(echo "$icon_size" | awk '{if ($1 < 15) $1 = 20; if ($1 > 25 # Setting the rofi override with the adjusted icon size rofi_override="element-icon{size:${adjusted_icon_size}%;}" - # swww transition config FPS=60 TYPE="any" -- cgit v1.2.3