mirror of
https://github.com/ben-grande/qusal.git
synced 2024-12-28 17:09:23 -05:00
bdd4c789c1
Echo can interpret operand as an option and checking every variable to be echoed is troublesome while with printf, if the format specifier is present before the operand, printing as string can be enforced.
13 lines
333 B
Bash
Executable File
13 lines
333 B
Bash
Executable File
#!/bin/sh
|
|
## SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
##
|
|
## SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
current_dpi="$(xrdb -get Xft.dpi)"
|
|
wanted_dpi="144"
|
|
|
|
if test -z "${current_dpi}" || test "${current_dpi}" -lt "${wanted_dpi}"
|
|
then
|
|
printf '%s\n' "Xft.dpi: ${wanted_dpi}" | xrdb -override -
|
|
fi
|