1
0
Fork 0

[sway] Fine-tune window positions for center mode

main
Sebastian Schulze 2022-07-27 10:49:15 +02:00
parent b72fcf2156
commit 7c579b1cfa
No known key found for this signature in database
GPG Key ID: F6BA63C6A7D3044E
1 changed files with 7 additions and 6 deletions

View File

@ -11,14 +11,15 @@ if [[ -f $current_info_file ]]; then
fi;
if [[ -z "${width}" ]]; then
echo "None yet"
echo 25 > "${current_info_file}"
echo "None" > "${current_info_file}"
elif [[ "${width}" == "None" ]]; then
echo "25ppt 50ppt" > "${current_info_file}"
swaymsg resize set 25ppt 50ppt
elif [[ "${width}" == "25" ]]; then
echo 50 > "${current_info_file}"
elif [[ "${width}" == "25ppt 50ppt" ]]; then
echo "50ppt 50ppt" > "${current_info_file}"
swaymsg resize set 50ppt 50ppt
elif [[ "${width}" == "50" ]]; then
echo 75 > "${current_info_file}"
elif [[ "${width}" == "50ppt 50ppt" ]]; then
echo "75ppt 75ppt" > "${current_info_file}"
swaymsg resize set 75ppt 75ppt
elif [[ "${width}" == "75" ]]; then
rm -f "${current_info_file}"