dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 473ae7450b0e0cbfc1cf4d88649a3c9dc602839c
parent 357ca45ed28fadb45acc5853fd2796d1cc1c7540
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 25 Sep 2020 14:45:19 +0200

mon: improve formatting for scaling calculation

Diffstat:
M.local/bin/mon | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.local/bin/mon b/.local/bin/mon @@ -24,8 +24,9 @@ find_res() { if [ -n "$res_ext" ]; then res_ext_x="${res_ext%x*}" res_ext_y="${res_ext#*x}" - res_factor="$(printf '%d/%d\n' "${res_int_x}" "${res_ext_x}" | bc -l)x$( - printf '%d/%d\n' "${res_int_y}" "${res_ext_y}" | bc -l)" + res_factor="$( + printf '%d/%d\n' "${res_int_x}" "${res_ext_x}" | bc -l)x$( + printf '%d/%d\n' "${res_int_y}" "${res_ext_y}" | bc -l)" fi }