xfce4, xorg work in progress (2)

This commit is contained in:
Daniel Langbein 2021-05-05 16:54:51 +02:00
parent 0a25b823cc
commit 7ac201e726
5 changed files with 52 additions and 8 deletions

View File

@ -0,0 +1,14 @@
## arg 1: the new package version
post_install() {
# Show desktop icons on primary desktop,
# otherwise some of them might be invisible (as they are too far down the screen)
xfconf-query --create -c xfce4-desktop -p /desktop-icons/primary -t 'bool' -s 'true'
# Double the scaling factor
xfconf-query -c xsettings -p /Gdk/WindowScalingFactor -s 2
}
## arg 1: the old package version
post_remove() {
# TODO: restore previous xfconf values
true
}

View File

@ -0,0 +1,2 @@
QT_AUTO_SCREEN_SCALE_FACTOR=1
QT_FONT_DPI=144

View File

@ -0,0 +1,21 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=xfce4-hidpi
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="HiDPI for XFCE4"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
install='.install'
depends=(de-p1st-xfce4)
package() {
cd "${_reponame}/pkg/${pkgname}"
# .install modifies xfconf values
install -Dm0644 99_hidpi.sh "$pkgdir"/etc/profile.d/99_hidpi.sh
}

View File

@ -12,14 +12,12 @@ license=('MIT')
depends=()
# ============== DRIVERS ==============
# ============== DRIVERS and xorg ==============
depends+=(de-p1st-gpu)
depends+=(xorg-meta)
# ============== xorg and XFCE4 ==============
# ============== XFCE4 ==============
#
# xfce4 group
# pacman -Sg xfce4 | sed 's|^xfce4 |depends+=(|; s|$|)|'
depends+=(xfce4-meta)
@ -35,8 +33,6 @@ depends+=(mousepad thunar-archive-plugin thunar-media-tags-plugin xfce4-genmon-p
# - gvfs: for trash support, mounting with udisk and remote
# filesystems (e.g. webdav)
depends+=(gvfs)
# NetworkManager applet
depends+=(network-manager-applet)
# keyring/secrets
# -> https://wiki.archlinux.org/index.php/GNOME/Keyring
depends+=(gnome-keyring libsecret)
@ -44,6 +40,17 @@ depends+=(gnome-keyring libsecret)
# ============== display manager ==============
depends+=(sddm)
# ============== network, theme, keyboard ==============
#
# NetworkManager applet
depends+=(network-manager-applet) # depends on networkmanager
#
# gtk and qt theme
depends+=(de-p1st-theme)
#
# x11 keyboard layouts (TODO: move this to xorg package)
depends+=(de-p1st-keyboard-x11)
makedepends=('git')

View File

@ -11,7 +11,7 @@ license=('MIT')
depends=()
# xorg group
# pacman -Sg xorg | sed 's|^xorg |depends+=(|; s|$|)|'
depends+=(xf86-video-vesa) # if no specific driver is found by xorg, then this generic one is used
depends+=(xf86-video-vesa) # if no device specific driver (see de-p1st-gpu) is found by xorg, then this generic one is used
depends+=(xorg-bdftopcf)
depends+=(xorg-docs)
depends+=(xorg-font-util)