mirror of
https://github.com/ben-grande/qusal.git
synced 2024-10-01 02:35:49 -04:00
fix: better electrum GUI resolution and tabs
This commit is contained in:
parent
3ef02df040
commit
2409d8a141
48
salt/electrum/configure-common.sls
Normal file
48
salt/electrum/configure-common.sls
Normal file
@ -0,0 +1,48 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
{% if grains['nodename'] != 'dom0' -%}
|
||||
|
||||
include:
|
||||
- dev.home-cleanup
|
||||
- dotfiles.copy-x11
|
||||
- dotfiles.copy-sh
|
||||
|
||||
"{{ slsdotpath }}-do-not-check-for-updates":
|
||||
cmd.run:
|
||||
- name: electrum --offline setconfig check_updates false
|
||||
- runas: user
|
||||
|
||||
"{{ slsdotpath }}-show-contacts-tab":
|
||||
cmd.run:
|
||||
- name: electrum --offline setconfig show_contacts_tab true
|
||||
- runas: user
|
||||
|
||||
"{{ slsdotpath }}-show-addresses-tab":
|
||||
cmd.run:
|
||||
- name: electrum --offline setconfig show_addresses_tab true
|
||||
- runas: user
|
||||
|
||||
"{{ slsdotpath }}-show-utxo-tab":
|
||||
cmd.run:
|
||||
- name: electrum --offline setconfig show_utxo_tab true
|
||||
- runas: user
|
||||
|
||||
"{{ slsdotpath }}-show-notes-tab":
|
||||
cmd.run:
|
||||
- name: electrum --offline setconfig show_notes_tab true
|
||||
- runas: user
|
||||
|
||||
"{{ slsdotpath }}-xprofile-to-increase-dpi":
|
||||
file.managed:
|
||||
- name: /home/user/.config/x11/xprofile.d/electrum.sh
|
||||
- source: salt://{{ slsdotpath }}/files/client/xprofile.d/electrum.sh
|
||||
- mode: '0755'
|
||||
- user: user
|
||||
- group: user
|
||||
- makedirs: True
|
||||
|
||||
{% endif -%}
|
10
salt/electrum/configure-common.top
Normal file
10
salt/electrum/configure-common.top
Normal file
@ -0,0 +1,10 @@
|
||||
{#
|
||||
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
base:
|
||||
'electrum,electrum-hot':
|
||||
- match: list
|
||||
- electrum.configure-common
|
@ -7,13 +7,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
{% if grains['nodename'] != 'dom0' -%}
|
||||
|
||||
include:
|
||||
- dev.home-cleanup
|
||||
- dotfiles.copy-x11
|
||||
- dotfiles.copy-sh
|
||||
|
||||
"{{ slsdotpath }}-setconfig-check_updates":
|
||||
cmd.run:
|
||||
- name: electrum --offline setconfig check_updates false
|
||||
- runas: user
|
||||
- .configure-common
|
||||
|
||||
{% endif -%}
|
||||
|
@ -7,14 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
{% if grains['nodename'] != 'dom0' -%}
|
||||
|
||||
include:
|
||||
- dev.home-cleanup
|
||||
- dotfiles.copy-x11
|
||||
- dotfiles.copy-sh
|
||||
- .configure-common
|
||||
- whonix-workstation.configure-offline
|
||||
|
||||
"{{ slsdotpath }}-setconfig-check_updates":
|
||||
cmd.run:
|
||||
- name: electrum --offline setconfig check_updates false
|
||||
- runas: user
|
||||
|
||||
{% endif -%}
|
||||
|
12
salt/electrum/files/client/xprofile.d/electrum.sh
Executable file
12
salt/electrum/files/client/xprofile.d/electrum.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user