WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Howto: start Weston on Wayland easier......and exit  (Read 7383 times)

aus9

  • Guest
Howto: start Weston on Wayland easier......and exit
« on: August 04, 2018, 09:14:53 PM »
Hi

For those who like to have a look at Weston here is a possible easier way to load and start it.

I have a file in .local/bin called wl which I made executable with contents

Quote
#!/bin/sh
tce-load -i weston
XDG_RUNTIME_DIR=/run/user/1001 weston-launch

optional .....add xwayland after weston if you intent to play with things that wayland does not support natively
such as gtk2

so I exit to prompt and run
Code: [Select]
wl
standing for weston load and run

saves using the up arrow key to scroll thru my history of commands

PS I boot up with local user tc.

2) To exit, to the prompt I use keys
Ctrl (and) Alt (and) <- keys 

<- means the backspace key

 some sites show above as 

C + A + backspace
« Last Edit: August 04, 2018, 09:28:50 PM by aus9 »

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 181
Re: Howto: start Weston on Wayland easier......and exit
« Reply #1 on: August 06, 2023, 08:58:01 PM »
Hello, could you rephrase the step-by-step on how to get to the desktop using wayland? I followed your tutorial but ended up getting generic errors.

I'm very curious to test wayland on tinycore but I don't know where to start.

aus9

  • Guest
Re: Howto: start Weston on Wayland easier......and exit
« Reply #2 on: August 06, 2023, 10:08:42 PM »
well there are 2 desktops to try weson = regarded as a demo and sway which is a tiling desktop for wayland.
I declare that I am still a xwayland fan on both weston and sway. I know others are looking for a non-libX11/Xorg experience
each person has to choose

thats 2018 post and may needed updating.

step 1 please download and install weston.ini

If you succeed with later steps -- you get a better tray and stuff.

step 2 edit your current ~.local/bin/wl so it reads
Quote
#!/bin/sh
tce-load -i weston xwayland

# set env
########################
read USER < /etc/sysconfig/tcuser

if [ ! -d /run/user/$(id -u "$USER") ]; then
  mkdir -p /run/user/$(id -u "$USER")
  chown "$USER":staff /run/user/$(id -u "$USER")
  chmod 700 /run/user/$(id -u "$USER")
fi

export XDG_RUNTIME_DIR=/run/user/$(id -u)

weston-launch

step 3 exit to prompt and run wl

optional....then edit the ini file to create more launchers or just run terminal commands

mine changed as I need a context menu as I have a kensington mouse that does not like copy and paste

so my changed to
Quote
[core]
xwayland=true

[xwayland]
path=/usr/local/bin/Xwayland

[keyboard]
keymap_layout=us

[shell]
num-workspaces=5
background-image=/home/tc/2wallpaper/3d.jpeg

[launcher]
icon=/usr/local/share/icons/Adwaita/48x48/apps/utilities-terminal.png
path=/usr/local/bin/lxterminal

[launcher]
icon=/usr/local/share/pixmaps/exittc.png
path=/usr/local/bin/exittc

[launcher]
icon=/usr/local/share/pixmaps/leafpad.png
path=/usr/local/bin/leafpad

[terminal]
font=DejaVuSansMono
font-size=20

after you played with weston....then try out the big boy = sway ;)

aus9

  • Guest
Re: Howto: start Weston on Wayland easier......and exit
« Reply #3 on: August 07, 2023, 02:07:13 AM »
Hi I forgot to mention that AFAIK you can not update weston with a newer ini file
so if you choose to edit this file to test it...exit to prompt and then relaunch weston

That is opposite to sway, where you must edit within sway your config file and reload it in sway to test there are no gremlins.

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 181
Re: Howto: start Weston on Wayland easier......and exit
« Reply #4 on: August 07, 2023, 04:44:55 PM »
Hi I forgot to mention that AFAIK you can not update weston with a newer ini file
so if you choose to edit this file to test it...exit to prompt and then relaunch weston

That is opposite to sway, where you must edit within sway your config file and reload it in sway to test there are no gremlins.
Thanks, but I'm still unable to reproduce. The screen goes dark with nothing.

The log doesn't help either.

aus9

  • Guest
Re: Howto: start Weston on Wayland easier......and exit
« Reply #5 on: August 08, 2023, 12:32:39 AM »
thanks for the log. How do a get log?
confession I spent little time in weston I used it to setup sway.

if sway borks it gives info at the console, and some more if sway starts when you exit sway

2) you appear to have a nvidia card and this line looks interesting
Quote
1440x900@59.9, preferred, current, 106.5 MHz

I suggest you add the following to your weston.ini

[output]
HMDI-A-1
mode=1280x1024


3) on the off chance my XDG stuff does not work for a non-tc non-root user....I booted into gor
loaded weston.ini and copied over my wl and I got in first time.

I am suggesting we try a more basic size

aus9

  • Guest
Re: Howto: start Weston on Wayland easier......and exit
« Reply #6 on: August 08, 2023, 12:35:56 AM »
in post 2, assuming you have adwaita-icon-theme loaded that pathway 2 file no longer exists

new file is utilities-terminal-symbolic.symbolic.png