sddm: onscreen-keyboard

This commit is contained in:
Daniel Langbein 2021-06-15 15:17:52 +02:00
parent 7a739fae02
commit 3944ef8c5c
9 changed files with 79 additions and 41 deletions

View File

@ -6,39 +6,6 @@
* default to terminal-pinentry
* `de-p1st-gnupg-x11` then changes the /etc/skel files to use graphical-pinentry
**TODO**:
To use a smartcard on a new computer, one has to import and then trust the public key!
```shell
gpg --import 94F3D3DDAC22802258FC044B6C47C753F0823002.pub
```
And then trust the key:
```shell
gpg --edit-key 0x94F3D3DDAC22802258FC044B6C47C753F0823002
trust
5
y
quit
```
or
```shell
printf "5\ny\nquit\n" | gpg --command-fd 0 --expert --edit-key 0x94F3D3DDAC22802258FC044B6C47C753F0823002 trust
```
or
```shell
echo "94F3D3DDAC22802258FC044B6C47C753F0823002:6:" | gpg --import-ownertrust
```
See also:
* [export/import ownertrust](https://superuser.com/a/1125128)
---
GnuPG german mini HowTo:
@ -137,3 +104,41 @@ These not work:
> upon login: it sets up $PATH and other environment variables and application-specific
> (/etc/profile.d/*.sh) settings upon login.
* `/etc/X11/xinit/xinitrc.d/`
## Use smartcard on new computer
To be able to use a smartcard, one has to import and then trust the public key first!
```shell
gpg --import 94F3D3DDAC22802258FC044B6C47C753F0823002.pub
```
And then trust the key:
```shell
gpg --edit-key 0x94F3D3DDAC22802258FC044B6C47C753F0823002
trust
5
y
quit
```
or
```shell
printf "5\ny\nquit\n" | gpg --command-fd 0 --expert --edit-key 0x94F3D3DDAC22802258FC044B6C47C753F0823002 trust
```
or
```shell
echo "94F3D3DDAC22802258FC044B6C47C753F0823002:6:" | gpg --import-ownertrust
```
See also:
* [export/import ownertrust](https://superuser.com/a/1125128)
This could be done with a script [99_import_pubkey.sh](99_import_pubkey.sh)
placed inside `/etc/profile.d/`. When using `sddm` as login manager, then
the output of this script can be found in `~/.local/share/sddm/xorg-session.log`.

View File

@ -41,9 +41,9 @@ 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-theme-default')
ADDITIONAL_PKGS+=('de-p1st-gpu-generic' 'de-p1st-xfce4-hidpi' 'de-p1st-sddm-autologin-yoda' 'de-p1st-sddm-tablet')
#
# smartcard
ADDITIONAL_PKGS+=('de-p1st-smartcard')
# other programs
ADDITIONAL_PKGS+=('nextcloud-client' 'keepassxc' 'xournalpp')
ADDITIONAL_PKGS+=('nextcloud-client' 'keepassxc' 'xournalpp' 'intellij-idea-ultimate-edition' 'intellij-idea-ultimate-edition-jre')

View File

@ -0,0 +1,26 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=sddm-tablet
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="tablet friendly sddm configuration"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
depends=()
depends+=('qt5-virtualkeyboard')
depends+=('de-p1st-sddm-theme-onscreenkeyboard-support') # Not all themes support QT virtual keyboard. See: https://github.com/sddm/sddm/issues/952
makedepends=('git')
source=("git+${url}.git")
sha256sums=('SKIP')
depends=('de-p1st-xfce4')
package() {
cd "${_reponame}/pkg/${pkgname}"
install -Dm0644 p1st-onscreen-keyboard.conf "$pkgdir"/etc/sddm.conf.d/p1st-onscreen-keyboard.conf
}

View File

@ -0,0 +1,2 @@
[General]
InputMethod=qtvirtualkeyboard

View File

@ -0,0 +1 @@
qtvirtualkeyboard InputMethod does **not** work

View File

@ -2,7 +2,7 @@
_pkgname=sddm-theme-nordic
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.3
pkgver=0.0.4
pkgrel=1
pkgdesc="sddm with Nordic theme"
arch=('any')
@ -20,8 +20,8 @@ makedepends=('git')
install='.install'
source=("git+${url}.git")
sha256sums=('SKIP')
provides=('de-p1st-sddm-theme')
conflicts=('de-p1st-sddm-theme')
provides=('de-p1st-sddm-theme' 'de-p1st-sddm-theme-onscreenkeyboard-support')
conflicts=('de-p1st-sddm-theme' 'de-p1st-sddm-theme-onscreenkeyboard-support')
package() {
cd "${_reponame}/pkg/${pkgname}"

View File

@ -30,3 +30,8 @@ sddm-greeter --test-mode --theme /usr/share/sddm/themes/chili
sudo pacman -S sddm-theme-deepin-git
sddm-greeter --test-mode --theme /usr/share/sddm/themes/deepin/
```
```shell
sudo pacman -S --needed plasma-workspace
sddm-greeter --test-mode --theme /usr/share/sddm/themes/breeze/
```

View File

@ -1 +1,2 @@
sddm theme loads without errors (sddm does not fallback to default theme)
qtvirtualkeyboard InputMethod works

View File

@ -1,4 +1,2 @@
[Theme]
# -> ls /usr/share/sddm/themes
# For example "breeze" which is part of package "plasma-workspace"
Current=Nordic