aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2023-12-08 17:22:49 +0900
committerJaKooLit <jimmielovejay@gmail.com>2023-12-08 17:22:49 +0900
commit10f08cdc0d9aec8988cd6bbc10f773a3287be3e7 (patch)
treec2fadf4f738ab3a4bab4c97d3d72868fa86523c1 /config/hypr
parentfdfb2ce28d080ded8578728eefe2b4b6992d2f80 (diff)
adjustment for 2160p resolution wlogout
Diffstat (limited to 'config/hypr')
-rwxr-xr-xconfig/hypr/scripts/Wlogout.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/hypr/scripts/Wlogout.sh b/config/hypr/scripts/Wlogout.sh
index a7b2c639..998d3fed 100755
--- a/config/hypr/scripts/Wlogout.sh
+++ b/config/hypr/scripts/Wlogout.sh
@@ -1,8 +1,8 @@
#!/bin/bash
# Set variables for parameters
-A_2160=1000
-B_2160=1000
+A_2160=2500
+B_2160=2700
A_1440=500
B_1440=550
A_1080=300
@@ -24,7 +24,7 @@ echo "Detected Resolution: $resolution"
# Set parameters based on screen resolution and scaling factor
if ((resolution >= 2160)); then
- wlogout --protocol layer-shell -b 3 -T $(awk "BEGIN {printf \"%.0f\", $A_2160 * 2160 * $hypr_scale / $resolution}") -B $(awk "BEGIN {printf \"%.0f\", $B_2160 * 2160 * $hypr_scale / $resolution}") &
+ wlogout --protocol layer-shell -b 6 -T $(awk "BEGIN {printf \"%.0f\", $A_2160 * 2160 * $hypr_scale / $resolution}") -B $(awk "BEGIN {printf \"%.0f\", $B_2160 * 2160 * $hypr_scale / $resolution}") &
echo "Setting parameters for resolution >= 2160p"
elif ((resolution >= 1440)); then
wlogout --protocol layer-shell -b 6 -T $(awk "BEGIN {printf \"%.0f\", $A_1440 * 1440 * $hypr_scale / $resolution}") -B $(awk "BEGIN {printf \"%.0f\", $B_1440 * 1440 * $hypr_scale / $resolution}") &
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage