Score:1

Why the change of layout is not connected at the start of Openbox

ye flag

I installed Openbox instead of Gnome on my computer with Ubuntu 22.04.1 that I downloaded yesterday from the official repository. I've installed openbox via apt and I use LightDM to select openbox instead of Gnome.

I've tried to add another layout using this command:

setxkbmap -layout us,ru -variant -option grp:alt_shift_toggle

And if I execute it directly in terminal, it works great. But I want it to start with system and not to write it each time I start my computer. So I put it in ~/.config/openbox/autostart Also I put here some other helpful commands. So it is like:

xinput set-prop "Elan Touchpad" "libinput Tapping Enabled" 1 &
setxkbmap -layout us,ru -variant -option grp:alt_shift_toggle &
lxpanel &
xfce4-power-manager &

First line activates tapping on my touchpad.

Third line starts lxpanel

Fourth line starts xfce power manager

All of those commands are executed normally. But the second line isn't. Every time I start computer I can't switch language. But if I execute ~/.config/openbox/autostart manually, it works normally. What the problem here?

Score:0
cn flag

Perhaps your account is not yet ready to process the command while you execute it. Instead put your command (as it currently is) in the X startup configuration file ~/.xsessionrc.

Никита Каргин avatar
ye flag
Yeaaaaah, it works! Thanks!
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.