diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/centercon | 2 | ||||
| -rwxr-xr-x | bin/swx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/centercon b/bin/centercon index dff3cda..90419fd 100755 --- a/bin/centercon +++ b/bin/centercon @@ -34,7 +34,7 @@ if [ -n "$1" ] || [ ! "$1" = "-" ]; then con_width=$(awk "BEGIN{print int($con_height * $ratio)}") fi -if (( perc >= 1 )); then +if awk "BEGIN{ if (${perc} >= 1.0) exit 0; else exit 1; }"; then printf "scaling factor %.1f larger than 100%%, aborting...\n" "${perc}" exit 1 fi diff --git a/bin/swx b/bin/swx index 3e894f7..dfe852f 100755 --- a/bin/swx +++ b/bin/swx @@ -144,7 +144,7 @@ sway_props_done= while [ -z "${sway_props_done}" ]; do if [ -n "${floating}" ]; then swaymsg -- [con_id="${con_id}"] floating enable - [ "${floating}" = "1" ] || centercon ${floating} + [ "${floating}" = "1" ] || centercon -w ${floating} fi if [ -n "${into_scratchpad}" ]; then swaymsg -- [con_id="${con_id}"] move to scratchpad |