pacman: parallel downloads; xfce4: thunar, background, suspend-on-power-button, cursor size

This commit is contained in:
Daniel Langbein 2021-06-18 19:32:30 +02:00
parent f395b73cc3
commit 14b9dd7701
12 changed files with 97 additions and 32 deletions

View File

@ -25,7 +25,8 @@ CPU_VENDOR=autodetect
BIOS_TYPE=uefi
# If set to "1", then the data, boot and luks partitions
# will be left mounted/opened after installation
# will be left mounted/opened for manual inspection
# after the installation
LEAVE_MOUNTED=1
PACSTRAP_INTERACTIVE=1
@ -41,12 +42,13 @@ ADDITIONAL_PKGS=()
ADDITIONAL_PKGS+=('mkinitcpio' 'de-p1st-kernel-lts' 'de-p1st-ucode-placeholder' 'virtualbox-guest-utils')
#
# XFCE4 desktop with HiDPI
ADDITIONAL_PKGS+=('de-p1st-gpu-generic' 'de-p1st-xfce4-hidpi' 'de-p1st-sddm-autologin-yoda' 'de-p1st-sddm-tablet')
ADDITIONAL_PKGS+=('de-p1st-gpu-generic' 'de-p1st-xfce4-hidpi' 'de-p1st-sddm-tablet')
#
# smartcard
ADDITIONAL_PKGS+=('de-p1st-smartcard')
# other programs
ADDITIONAL_PKGS+=('signal-desktop' 'nextcloud-client' 'keepassxc' 'xournalpp' 'intellij-idea-ultimate-edition' 'intellij-idea-ultimate-edition-jre')
ADDITIONAL_PKGS+=('signal-desktop' 'nextcloud-client' 'keepassxc' 'xournalpp')
ADDITIONAL_PKGS+=('intellij-idea-ultimate-edition' 'intellij-idea-ultimate-edition-jre')
# gallery / image viewer
ADDITIONAL_PKGS+=('nomacs' 'qt5-imageformats')
#

View File

@ -2,7 +2,7 @@
_pkgname=pacman
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.1.0
pkgver=0.1.1
pkgrel=1
pkgdesc="pacman with configuration"
arch=('any')

View File

@ -1,5 +1,9 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
cat
# Enable parallel downloads
sed 's|^#ParallelDownloads\s*=.*$|ParallelDownloads = 4|'
# Include de-p1st mirror
echo 'Include = /etc/pacman.d/de-p1st'

View File

@ -2,7 +2,7 @@
_pkgname=xfce4-hidpi
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.5
pkgver=0.0.6
pkgrel=1
pkgdesc="HiDPI for XFCE4"
arch=('any')
@ -19,6 +19,7 @@ package() {
cd "${_reponame}/pkg/${pkgname}"
install -Dm0544 xsettings.xml.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml.holoscript
install -Dm0544 thunar.xml.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/thunar.xml.holoscript
install -Dm0644 99_hidpi.sh "$pkgdir"/etc/profile.d/99_hidpi.sh

View File

@ -1,3 +1,6 @@
WindowScalingFactor
99_hidpi.sh -> QT_AUTO_SCREEN_SCALE_FACTOR and QT_FONT_DPI
sddm HiDpi
TODO: cursor size 32
TODO: thunar settings

View File

@ -0,0 +1,9 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
# Decrease size
sed '
s|<!-- Anchor1 for de-p1st-xfce4-hidpi -->|<property name="last-icon-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_75_PERCENT"/>|;
s|<!-- Anchor2 for de-p1st-xfce4-hidpi -->|<property name="last-details-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_50_PERCENT"/>|;
' <<< "$stdin"

View File

@ -2,5 +2,18 @@
# stdin: default config
# stdout: modified config
# Double Windows Scaling Factor
sed 's|<property name="WindowScalingFactor" type="int" value="1"/>|<property name="WindowScalingFactor" type="int" value="2"/>|'
# save stdin in variable
stdin=$(cat)
# assert WindowScalingFactor is as expected
echo "$stdin" | grep --quiet '<property name="WindowScalingFactor" type="int" value="1"/>'
# assert CursorThemeSize is as expected
echo "$stdin" | grep --quiet '<property name="CursorThemeSize" type="int" value="0"/>'
# 1. Double WindowScalingFactor
# 2.Increase cursor size to 32
sed '
s|<property name="WindowScalingFactor" type="int" value="1"/>|<property name="WindowScalingFactor" type="int" value="2"/>|;
s|<property name="CursorThemeSize" type="int" value="0"/>|<property name="CursorThemeSize" type="int" value="32"/>|;
' <<< "$stdin"

View File

@ -2,7 +2,7 @@
_pkgname=xfce4
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.17
pkgver=0.0.18
pkgrel=1
pkgdesc="XFCE4 with configuration"
arch=('any')
@ -76,18 +76,7 @@ package() {
# (It will not be copied to ~/.config/xfce4/xfconf/xfce-perchannel-xml/*.xml)
# Thus we place it in the skeleton for new users!
# === higher screen resolution in a VM ===
# config/xfce4/xfconf/xfce4-perchannel-xml/displays.xml
# === desktop ===
# config/xfce4/xfconf/xfce4-perchannel-xml/xfce4-desktop.xml
# === workspaces ===
# config/xfce4/xfconf/xfce4-perchannel-xml/xfwm4.xml
# === panel ===
# config/xfce4/xfconf/xfce4-perchannel-xml/xfce4-panel.xml
# config/xfce4/panel/launcher-8/16218680691.desktop
# === Whisker Menu ===
# config/xfce4/panel/whiskermenu-7.rc
#
# See comments in individual files in directory "config"
mkdir -p "$pkgdir"/etc/skel/
cp -ra config "$pkgdir"/etc/skel/.config

View File

@ -1,8 +1,16 @@
.face shown in Whisker Menu
desktop-icons on primary display is set to "true"
2 workspaces (instead of 4)
"screenshot" launcher works
lower (2nd) panel removed
Whisker Menu:
-> .face shown as user icon
-> Firefox as favourite top right
TODO: Whisker Menu: Favourite: Firefox
TODO: depend on "de-p1st-wallpaper" and use this for xfce
desktop-icons on primary display is set to "true"
Panel1:
-> 2 workspaces (instead of 4)
-> "screenshot" launcher works
Panel2:
-> lower (2nd) panel removed
TODO: power manager settings
TODO: wallpaper
TODO: thunar settings

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="thunar" version="1.0">
<!-- Change view -->
<property name="last-view" type="string" value="ThunarDetailsView"/>
<!-- Anchor1 for de-p1st-xfce4-hidpi -->
<!-- Anchor2 for de-p1st-xfce4-hidpi -->
<!-- Show hidden files -->
<property name="last-show-hidden" type="bool" value="true"/>
<!-- Do not show folders first ==> sort folders together with files by name -->
<property name="misc-folders-first" type="bool" value="false"/>
</channel>

View File

@ -9,4 +9,15 @@
<property name="primary" type="bool" value="true"/>
</property>
<property name="backdrop" type="empty">
<property name="screen0" type="empty">
<property name="monitor0" type="empty">
<!-- Change background -->
<property name="image-path" type="string" value="/usr/share/backgrounds/de-p1st.jpg"/>
<property name="image-show" type="bool" value="true"/>
<property name="image-style" type="int" value="0"/>
</property>
</property>
</property>
</channel>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-power-manager" version="1.0">
<property name="xfce4-power-manager" type="empty">
<!-- Suspend on power button press -->
<property name="power-button-action" type="uint" value="1"/>
</property>
</channel>