Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions Configs/.local/share/bin/logoutlaunch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,24 @@ fi
x_mon=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .width')
y_mon=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .height')
hypr_scale=$(hyprctl -j monitors | jq '.[] | select (.focused == true) | .scale' | sed 's/\.//')
orientation=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .transform')


#// scale config layout and style

case "${wlogoutStyle}" in
if [ "${orientation}" == 1 ] ; then
case "${wlogoutStyle}" in
1) wlColms=6
export mgn=$(( y_mon * 28 / hypr_scale ))
export hvr=$(( y_mon * 23 / hypr_scale )) ;;
2) wlColms=2
export y_mgn=$(( x_mon * 35 / hypr_scale ))
export x_mgn=$(( y_mon * 25 / hypr_scale ))
export y_hvr=$(( x_mon * 32 / hypr_scale ))
export x_hvr=$(( y_mon * 20 / hypr_scale )) ;;
esac
else
case "${wlogoutStyle}" in
1) wlColms=6
export mgn=$(( y_mon * 28 / hypr_scale ))
export hvr=$(( y_mon * 23 / hypr_scale )) ;;
Expand All @@ -44,7 +57,8 @@ case "${wlogoutStyle}" in
export y_mgn=$(( y_mon * 25 / hypr_scale ))
export x_hvr=$(( x_mon * 32 / hypr_scale ))
export y_hvr=$(( y_mon * 20 / hypr_scale )) ;;
esac
esac
fi


#// scale font size
Expand Down