From 5973de3425a13534e86c22b40935855c41d30057 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 26 Jan 2021 12:33:59 +0100 Subject: [PATCH] Fix for updated arch dmesg access policy Archlinux changed the access to 'dmesg' to only be available to super users with the following commit: https://github.com/archlinux/svntogit-packages/commit/b78bc292e2218661a3b70163ec30711c87100941#diff-3e341d2d9c67be01819b25b25d5e53ea3cdf3a38d28846cda85a195eb9b7203a This changes the command to enabled touch pad tapping on X startup to a systemd-compatible version, following the recommendation found here: https://www.reddit.com/r/archlinux/comments/kqvotl/dmesg_cannot_be_run_as_normal_user_anymore/ --- X/.config/xresources/xinitrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X/.config/xresources/xinitrc b/X/.config/xresources/xinitrc index 6bc3fcd..ec23344 100644 --- a/X/.config/xresources/xinitrc +++ b/X/.config/xresources/xinitrc @@ -68,7 +68,7 @@ type nextcloud >/dev/null 2>&1 && nextcloud --background & type nm-applet >/dev/null 2>&1 && nm-applet & # additional config options for Touchpad devices ONLY -if [ "$(dmesg | grep -c "Touchpad")" -gt 0 ]; then +if [ "$(journalctl --dmesg -o short-monotonic --no-hostname --no-pager | grep -c "Touchpad")" -gt 0 ]; then # enable touch tapping for XPS13 touchpad - for different devices get the touchpad name with xinput list-prop xinput set-prop "DLL075B:01 06CB:76AF Touchpad" "libinput Tapping Enabled" 1 fi