From e35c3a373dd12bcbdd0e9fd565d234bc21f27db9 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 9 Apr 2024 13:13:01 +0700 Subject: [PATCH] use ydotool systemd user service (#382) --- .config/ags/modules/onscreenkeyboard/onscreenkeyboard.js | 1 - install.sh | 3 ++- scriptdata/dependencies.conf | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.config/ags/modules/onscreenkeyboard/onscreenkeyboard.js b/.config/ags/modules/onscreenkeyboard/onscreenkeyboard.js index 772238d8e..023830a6e 100644 --- a/.config/ags/modules/onscreenkeyboard/onscreenkeyboard.js +++ b/.config/ags/modules/onscreenkeyboard/onscreenkeyboard.js @@ -11,7 +11,6 @@ import { setupCursorHoverGrab } from '../.widgetutils/cursorhover.js'; const keyboardLayout = oskLayouts[userOptions.onScreenKeyboard.layout] ? userOptions.onScreenKeyboard.layout : DEFAULT_OSK_LAYOUT; const keyboardJson = oskLayouts[keyboardLayout]; -execAsync(`ydotoold`).catch(print); // Start ydotool daemon function releaseAllKeys() { const keycodes = Array.from(Array(249).keys()); diff --git a/install.sh b/install.sh index d7557f484..f644fecbd 100755 --- a/install.sh +++ b/install.sh @@ -38,7 +38,7 @@ esac set -e ##################################################################################### -printf "\e[36m[$0]: 1. Get packages and add user to video/input groups\n\e[0m" +printf "\e[36m[$0]: 1. Get packages and setup user groups/services\n\e[0m" # Issue #363 case $SKIP_SYSUPDATE in @@ -123,6 +123,7 @@ case $SKIP_PLASMAINTG in esac v sudo usermod -aG video,input "$(whoami)" +v systemctl --user enable ydotool --now ##################################################################################### printf "\e[36m[$0]: 2. Installing parts from source repo\e[0m\n" diff --git a/scriptdata/dependencies.conf b/scriptdata/dependencies.conf index 28d8149f7..79abf4f39 100644 --- a/scriptdata/dependencies.conf +++ b/scriptdata/dependencies.conf @@ -1,5 +1,4 @@ -### This file support bash-style comments, and blank lines. -# +### This file supports bash-style comments, and blank lines. ### PKGs on same line will be send to `yay` together, unless `-f` is specified. ### Basic