You are not logged in.

#1 2018-12-27 03:46:25

Moondhum
Member
From: 127.0.0.1
Registered: 2016-11-29
Posts: 2

Running xrdb .Xresources inside weston after weston-launch.

Hello,

I am using wayland with weston on archlinux. I want to run xrdb .Xresources automatically after weston-launch.

Tried this in my .zshrc

if [ "$(tty)" = "/dev/tty1" -o "$(tty)" = "/dev/vc/1" ] ; then
  weston-launch &; {sleep 5 && xrdb ~/.Xresources}
fi

but this executes xrdb .Xresources in tty1. How can I make xrdb .Xresources run inside the new weston session?

Offline

#2 2018-12-27 08:09:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,813

Re: Running xrdb .Xresources inside weston after weston-launch.

xrdb takes the common -display switch, but you'll need a running xwayland server (and pre-know it's display, try ":0")
Sidenote: stray semicolon.

Offline

Board footer

Powered by FluxBB