aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/WallpaperSelect.sh
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-02-20 12:22:52 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-02-20 12:22:52 +0900
commitb0b6f0a8b1734e45de46b36a4e806002867db161 (patch)
tree8438c676f87b158912ed7f9c355c5f07797b231e /config/hypr/UserScripts/WallpaperSelect.sh
parent510fc668b4831dc00b6edb03e8f378926c764bba (diff)
slight improvement wallpaper select script. update hyprland.conf in integration with nwg-displays
Diffstat (limited to 'config/hypr/UserScripts/WallpaperSelect.sh')
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperSelect.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh
index 6ea01673..e1a84001 100755
--- a/config/hypr/UserScripts/WallpaperSelect.sh
+++ b/config/hypr/UserScripts/WallpaperSelect.sh
@@ -22,8 +22,8 @@ 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 * 18) / ($scale_factor * 100)" | bc) # icon size
-margin=$(echo "scale=1; ($scale_factor * 120) / $scale_factor" | bc) # margin
+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
rofi_override="element-icon{size:${icon_size}px;margin:-${margin}px;}"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage