aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/WallpaperSelect.sh
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-02-20 17:02:22 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-02-20 17:02:22 +0900
commitfa35823a36a122aeab894c93800dec720bb4f7d6 (patch)
tree221700a3965a27beb9fa2bc12caf4d3859b87e70 /config/hypr/UserScripts/WallpaperSelect.sh
parentebd0987574d18da0ba767ae703427cb73e280117 (diff)
Ok I think this is ok. Just note to myself. DO NOT CODE WHEN YOU ARE HUNGRY
Diffstat (limited to 'config/hypr/UserScripts/WallpaperSelect.sh')
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperSelect.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh
index e1a84001..32f9a93b 100755
--- a/config/hypr/UserScripts/WallpaperSelect.sh
+++ b/config/hypr/UserScripts/WallpaperSelect.sh
@@ -22,10 +22,9 @@ focused_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | .name')
monitor_width=$(hyprctl monitors -j | jq -r --arg mon "$focused_monitor" '.[] | select(.name == $mon) | .width')
scale_factor=$(hyprctl monitors -j | jq -r --arg mon "$focused_monitor" '.[] | select(.name == $mon) | .scale')
-icon_size=$(echo "scale=1; ($monitor_width * 15) / ($scale_factor * 100)" | bc) # icon size
-margin=$(echo "scale=1; ($scale_factor * 100) / $scale_factor" | bc) # margin
+icon_size=$(echo "scale=1; ($monitor_width * 3) / ($scale_factor * 400)" | bc)
-rofi_override="element-icon{size:${icon_size}px;margin:-${margin}px;}"
+rofi_override="element-icon{size:${icon_size}%;}"
# swww transition config
FPS=60
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage