diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2024-01-02 01:21:53 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-02 01:21:53 +0900 |
| commit | 1acea95602ecd292f4c806ce946c0ab33176e4ce (patch) | |
| tree | a43d4ccfd313a4effa92919fef8d96934c23bac8 /config/hypr/scripts/Wlogout.sh | |
| parent | 3d0283f6c0f323bf504d99aadb0019e6357048a8 (diff) | |
| parent | e2bcb89ce79d0a0469e3eb362cc0cc802ddac208 (diff) | |
Merge pull request #116 from JaKooLit/development
Development
Diffstat (limited to 'config/hypr/scripts/Wlogout.sh')
| -rwxr-xr-x | config/hypr/scripts/Wlogout.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/config/hypr/scripts/Wlogout.sh b/config/hypr/scripts/Wlogout.sh index 998d3fed..4c53c381 100755 --- a/config/hypr/scripts/Wlogout.sh +++ b/config/hypr/scripts/Wlogout.sh @@ -1,8 +1,11 @@ #!/bin/bash +## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## + +# wlogout (Power, Screen Lock, Suspend, etc) # Set variables for parameters -A_2160=2500 -B_2160=2700 +A_2160=680 +B_2160=750 A_1440=500 B_1440=550 A_1080=300 @@ -24,7 +27,7 @@ echo "Detected Resolution: $resolution" # Set parameters based on screen resolution and scaling factor if ((resolution >= 2160)); then - 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}") & + 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}") & 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}") & @@ -38,4 +41,4 @@ elif ((resolution > 720)); then else wlogout & echo "Setting default parameters for resolution <= 720p" -fi +fi
\ No newline at end of file |
