main/postmarketos-ui-mate|xfce4: disable cursor by unclutter-xfixes (MR 2994)

unclutter-xfixes version 1.6 introduced new options --hide-on-touch
and --start-hidden. That seems appropriate enough to cover the use
cases touchscreen usage (hide cursor) and mouse/touchpad usage (show
cursor).
This commit is contained in:
Jakob Hauser 2022-03-11 00:41:28 +01:00 committed by Alexey Min
parent ff27c27bea
commit 560b5d05ef
No known key found for this signature in database
GPG key ID: 0B19D2A65870B448
4 changed files with 25 additions and 3 deletions

View file

@ -1,8 +1,8 @@
# Reference: https://postmarketos.org/uipkg # Reference: https://postmarketos.org/uipkg
# Maintainer: Jakko <jahau@rocketmail.com> # Maintainer: Jakko <jahau@rocketmail.com>
pkgname=postmarketos-ui-mate pkgname=postmarketos-ui-mate
pkgver=3 pkgver=4
pkgrel=2 pkgrel=0
pkgdesc="(X11) MATE Desktop Environment, fork of GNOME2 (stylus recommended)" pkgdesc="(X11) MATE Desktop Environment, fork of GNOME2 (stylus recommended)"
url="http://mate-desktop.org/" url="http://mate-desktop.org/"
arch="noarch" arch="noarch"
@ -27,6 +27,7 @@ _pmb_recommends="
onboard onboard
pavucontrol pavucontrol
pulseaudio-utils pulseaudio-utils
unclutter-xfixes
" "
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall $pkgname.post-upgrade" install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall $pkgname.post-upgrade"
source=" source="
@ -36,6 +37,7 @@ source="
10_onboard.gschema.override 10_onboard.gschema.override
61-lightdm-autologin.conf 61-lightdm-autologin.conf
onboard-autostart.desktop onboard-autostart.desktop
unclutter-xfixes.desktop
" "
options="!check" options="!check"
@ -57,6 +59,9 @@ package() {
install -Dm644 "$srcdir"/onboard-autostart.desktop \ install -Dm644 "$srcdir"/onboard-autostart.desktop \
"$pkgdir"/etc/skel/.config/autostart/onboard-autostart.desktop "$pkgdir"/etc/skel/.config/autostart/onboard-autostart.desktop
install -Dm644 "$srcdir"/unclutter-xfixes.desktop \
"$pkgdir"/etc/skel/.config/autostart/unclutter-xfixes.desktop
} }
sha512sums=" sha512sums="
@ -66,4 +71,5 @@ edef87a2b88a09d023dd51e8b32e2fc1cc9f5bec4a00b88b4f2adfb844ae2dc72747ef8891fc8a08
ffcc518ff58d37de302bd101e57bf983800e45899645d476045d0a74096704333a0b513f45e6a5485fdbd80ac1caebce14a760cab6fcc6d5dde0d766ade8b58b 10_onboard.gschema.override ffcc518ff58d37de302bd101e57bf983800e45899645d476045d0a74096704333a0b513f45e6a5485fdbd80ac1caebce14a760cab6fcc6d5dde0d766ade8b58b 10_onboard.gschema.override
225c4d1bccad4bdacad34958322015147077158b395b8db095b7afd47e18638044780b381124c3b82bf639af66ea565e1763c54ab9599ec13177c289e0d2a000 61-lightdm-autologin.conf 225c4d1bccad4bdacad34958322015147077158b395b8db095b7afd47e18638044780b381124c3b82bf639af66ea565e1763c54ab9599ec13177c289e0d2a000 61-lightdm-autologin.conf
d598b806bf749e0fedfdaeb51aa035b3877fedf4adc123ce2e50aef20f3cc6727b520a379aa26e88f9a2fe0f1fb96c4682895bb49c6a9cf4b5a5fd963ea93747 onboard-autostart.desktop d598b806bf749e0fedfdaeb51aa035b3877fedf4adc123ce2e50aef20f3cc6727b520a379aa26e88f9a2fe0f1fb96c4682895bb49c6a9cf4b5a5fd963ea93747 onboard-autostart.desktop
b626c8b27d9418df15124d6e97f5174c173863536e9c3eebfb11473d764c81e1db40cf4b7cdabe44b67a0e295d920c7a849a3e2e40dd86402de8200242c7b05a unclutter-xfixes.desktop
" "

View file

@ -0,0 +1,5 @@
[Desktop Entry]
Type=Application
Name=unclutter-xfixes
Comment=Hide cursor on touchscreen
Exec=unclutter-xfixes --start-hidden --hide-on-touch

View file

@ -2,7 +2,7 @@
# Maintainer: Jakko <jahau@rocketmail.com> # Maintainer: Jakko <jahau@rocketmail.com>
pkgname=postmarketos-ui-xfce4 pkgname=postmarketos-ui-xfce4
pkgver=0.5.1 pkgver=0.5.1
pkgrel=0 pkgrel=1
pkgdesc="(X11) Lightweight desktop (stylus recommended)" pkgdesc="(X11) Lightweight desktop (stylus recommended)"
url="https://gitlab.com/postmarketOS/xfce4-phone" url="https://gitlab.com/postmarketOS/xfce4-phone"
arch="noarch" arch="noarch"
@ -30,6 +30,7 @@ _pmb_recommends="
postmarketos-artwork-icons postmarketos-artwork-icons
postmarketos-artwork-wallpapers postmarketos-artwork-wallpapers
pulseaudio-utils pulseaudio-utils
unclutter-xfixes
xfce4-battery-plugin xfce4-battery-plugin
xfce4-pulseaudio-plugin xfce4-pulseaudio-plugin
xfce4-screensaver xfce4-screensaver
@ -43,6 +44,7 @@ source="
64-lightdm-autologin.conf 64-lightdm-autologin.conf
enable-scrollbars.sh enable-scrollbars.sh
onboard-autostart.desktop onboard-autostart.desktop
unclutter-xfixes.desktop
xfce4-phone.sh xfce4-phone.sh
" "
options="!check" options="!check"
@ -67,6 +69,9 @@ package() {
install -Dm644 "$srcdir"/onboard-autostart.desktop \ install -Dm644 "$srcdir"/onboard-autostart.desktop \
"$pkgdir"/etc/xdg/xfce4-phone/autostart/onboard-autostart.desktop "$pkgdir"/etc/xdg/xfce4-phone/autostart/onboard-autostart.desktop
install -Dm644 "$srcdir"/unclutter-xfixes.desktop \
"$pkgdir"/etc/xdg/xfce4-phone/autostart/unclutter-xfixes.desktop
install -Dm644 "$srcdir"/xfce4-phone.sh \ install -Dm644 "$srcdir"/xfce4-phone.sh \
"$pkgdir"/etc/profile.d/xfce4-phone.sh "$pkgdir"/etc/profile.d/xfce4-phone.sh
@ -81,5 +86,6 @@ ffcc518ff58d37de302bd101e57bf983800e45899645d476045d0a74096704333a0b513f45e6a548
3841294daffdd3e0da5a7ba155ba8c21e9e5a2f2ba5b3b5ffa3ea6a16486625d3655d03f8c18740fcddfbca673c42a5289ec3b22720cfbbdd56fde8fdc3bf9b0 64-lightdm-autologin.conf 3841294daffdd3e0da5a7ba155ba8c21e9e5a2f2ba5b3b5ffa3ea6a16486625d3655d03f8c18740fcddfbca673c42a5289ec3b22720cfbbdd56fde8fdc3bf9b0 64-lightdm-autologin.conf
262cdcf334cfa56872797c960cb8683b79c7b13b0a8179cd002e598576f0e9fe07057fd0fe724e87a6664db4b91b31a8c0cbf026ab137533b07675f838ae57bb enable-scrollbars.sh 262cdcf334cfa56872797c960cb8683b79c7b13b0a8179cd002e598576f0e9fe07057fd0fe724e87a6664db4b91b31a8c0cbf026ab137533b07675f838ae57bb enable-scrollbars.sh
ce7921f500b603796572bc02fa123e58d58ed1e9efd4d909de8f73c11a3e0bc0893639ce159f0701578b19db764893d021502d1c98cc24eb692e9d48320ff68c onboard-autostart.desktop ce7921f500b603796572bc02fa123e58d58ed1e9efd4d909de8f73c11a3e0bc0893639ce159f0701578b19db764893d021502d1c98cc24eb692e9d48320ff68c onboard-autostart.desktop
b626c8b27d9418df15124d6e97f5174c173863536e9c3eebfb11473d764c81e1db40cf4b7cdabe44b67a0e295d920c7a849a3e2e40dd86402de8200242c7b05a unclutter-xfixes.desktop
9ef0891cb1476c693175cf1ef8c64112354c1b2bf80c3cdfff4aabb2b9b9c434ccfa7dbdde3385fb215e94fc6216f3dc898be31b4ce9ad5bdb1c23bbb338d633 xfce4-phone.sh 9ef0891cb1476c693175cf1ef8c64112354c1b2bf80c3cdfff4aabb2b9b9c434ccfa7dbdde3385fb215e94fc6216f3dc898be31b4ce9ad5bdb1c23bbb338d633 xfce4-phone.sh
" "

View file

@ -0,0 +1,5 @@
[Desktop Entry]
Type=Application
Name=unclutter-xfixes
Comment=Hide cursor on touchscreen
Exec=unclutter-xfixes --start-hidden --hide-on-touch