qusal/salt/electrum/files/client/xprofile.d/electrum.sh

13 lines
333 B
Bash
Raw Normal View History

#!/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