From 93479aa78d27974c9bf9d777da3740f0237b7133 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 08:24:28 +0100 Subject: [PATCH] x: added compose key --- wiki/linux/x_window_system.md | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/wiki/linux/x_window_system.md b/wiki/linux/x_window_system.md index 76a0ef9..d912a4a 100644 --- a/wiki/linux/x_window_system.md +++ b/wiki/linux/x_window_system.md @@ -23,14 +23,14 @@ One of them is `slock` by [suckless](/wiki/linux/suckless.md). This will stand in as a screen locker for this section. The screen can be run by simply running the following command. -```sh +```sh slock ``` By default this will not be run automatically when the computer goes into sleep. This can be changed by installing and using `xss-lock` like the following example shows. -```sh +```sh xss-lock -- slock & ``` @@ -74,7 +74,7 @@ can be used that uses `synclient TouchpadOff=1` or `synclient TouchpadOff=0`. This requires `xf86-input-synaptics` which is a synaptics driver for notebook touchpads. -##### Enable Tap to Click +##### Enable Tap to Click On Touchpads the tap to click option can be enabled by adding the following lines to the config file `/etc/X11/xorg.conf.d/99-synaptics-overrides.conf`. @@ -108,6 +108,25 @@ setxkbmap -query | grep -q '' && setxkbmap || setxkbmap ` (for example the right control key with `rctrl`) to act as +the compose key when tapped. +`` specifies the layout of the keymap (for example german with `de`). +If it is omitted the english `en` layout will be set. + +```sh +setxkbmap -layout -option compose: +``` + #### Display This section describes the handling of displays by X. @@ -147,8 +166,8 @@ Another option to do this is by using the command `xset`. An example for this are the follwing commands which will enable the screensaver to act upon 10 minutes of inactivity. -```sh -xset s on +```sh +xset s on xset s 600 ``` @@ -236,7 +255,7 @@ an [Arch Linux](/wiki/linux/arch-linux.md) [forum post](https://bbs.archlinux.org/viewtopic.php?id=294808). To fix this you can run the following commands to temporarily make the file picker work. -```sh +```sh systemctl --user import-environment DISPLAY XAUTHORITY systemctl --user restart xdg-desktop-portal ```