qusal/salt/electrum/files/client/xprofile.d/electrum.sh
2024-02-18 17:08:09 +01:00

13 lines
324 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
echo "Xft.dpi: ${wanted_dpi}" | xrdb -override -
fi