f_ changed the topic of #wayback to: Wayback - a wayland-based X11 environment | https://wayback.freedesktop.org/ | preview release 0.2 is out! https://wayback.freedesktop.org/news/2025/07/31/wayback-0.2-released/ | src: https://gitlab.freedesktop.org/wayback/wayback | logs: https://libera.catirclogs.org/wayback | matrix bridge: #wayback:catircservices.org
grufwub has quit [Remote host closed the connection]
grufwub has joined #wayback
norwoodites has joined #wayback
pinskia has quit [Ping timeout: 252 seconds]
<PaulFertser> mps: hey, you can configure all XKB parameters by setting the corresponding environment variables before launching wayback.
<PaulFertser> mps: xmodmap isn't the right tool even for regular Xorg, it's using old protocol essentially via an emulation layer to configure Xkb, better configure XKB directly.
<mps> PaulFertser: I looked earlier at this but it looks unnecessary overcomplicated to me
<PaulFertser> mps: Xkb? Well, it is complicated but it is what it is, the only system used by Xorg and libinput (used by Wayland compositors for input).
<PaulFertser> mps: what kind of customisations do you need from keyboard input system?
<PaulFertser> Probably theree's an existing Xkb option for that already.
<mps> PaulFertser: map caps lock to ctrl and left ctrl to super lest
<mps> s/lest/left/
<PaulFertser> Basically, the Xkb way is to https://github.com/xkbcommon/libxkbcommon/blob/master/doc/user-configuration.md#adding-an-option add an additional rules file with the option you need, specified by corresponding configuration in $XDG_CONFIG_HOME/xkb , then before starting waydroid you set XKB_DEFAULT_OPTIONS to use it.
<mps> xmodmap config is https://tpaste.us/5Q00
<PaulFertser> mps: I see, makes sense. It is more complicated than xmodmap but xmodmap was designed in simpler times and these days it's an emulation layer that (imperfectly) translates between xmodmap and xkb for Xorg.
<mps> I managed to make this with sway
<mps> for me easier will be to patch kernel
<PaulFertser> Haha, you mean patch evdev to report fake keys? Interesting idea.
<mps> yes :)
<PaulFertser> mps: oh, so with sway it works for you without xmodmap, then it should be possible with waydroid too, how did you do that with sway?
<PaulFertser> Or was it on sway level?
<mps> in sway config 'exec xmodmap ~/.Xmodmap.m1'
<PaulFertser> You can use options "ctrl:swap_lwin_lctl caps:ctrl_modifier" then your left Control key will be Super_L and your capslock with be Control modifier.
<PaulFertser> Hm, but wouldn't that xmodmap affect just the XWayland instance and so just the X11 clients running in that wayland session?
<mps> my try is 'setxkbmap -model hhk -option "ctrl:nocaps,compose:ralt,grp:shift_caps_toggle,lv3:switch" "us,rs"
<PaulFertser> If that works in Xorg then it should work the same with Waydroid if you set XKB_DEFAULT_MODEL/OPTIONS/LAYOUT env variables before starting it.
<mps> PaulFertser: by 'Waydroid' you mean wayback?
<PaulFertser> Yeah, sorry
<PaulFertser> Lost my ways
<mps> maybe it will but I have another issue which loads its problems, using kbdd to switch keymap by window in awesomewm
<PaulFertser> Oh yeah :/
<mps> PaulFertser: ok, thanks for help and ideas, I will see what I can do
Xe_ has joined #wayback
Xe has quit [Ping timeout: 252 seconds]
CHRiSNEW has joined #wayback
mojo_x has joined #wayback
vkareh has joined #wayback
weirdtreething has quit [Server closed connection]
weirdtreething has joined #wayback
runxiyu_ is now known as runxiyu
vimpostor has quit [Remote host closed the connection]
vimpostor has joined #wayback
vimpostor has quit [Remote host closed the connection]
vimpostor has joined #wayback
_whitelogger has joined #wayback
norwoodites is now known as pinskia
Xe_ is now known as Xe
ahmubashshir has joined #wayback
vkareh has quit [Quit: WeeChat 4.7.0]
pinskia has quit [Read error: Connection reset by peer]
pinskia has joined #wayback
mojo_x has quit [Ping timeout: 260 seconds]
britney has quit [Quit: WeeChat 4.7.0]
britney has joined #wayback