#/bin/sh # test we are root if [ "$(id -u)" != "0" ]; then exit 1 fi USER=`cat /etc/sysconfig/tcuser` LIST="submitqc squashfs-tools " for Z in $LIST do su -c "tce-load -i $Z" $USER done P=weston.ini cd /tmp S=$P/usr/local/share/$P mkdir -p $S ####################################################################### echo '## see https://www.mankier.com/7/weston-drm ## see https://www.mankier.com/7/weston-drm [core] ## idle-time=integer of seconds to fade to black----0 disables timeout ## may also shutdown to console so be careful idle-time=0 ## renderer values are auto gl pixman....do not use noop ## often requires a suitable backend as below # renderer=gl ## backend values are drm headless rdp pipewire vnc wayland x11 ## some of those need to be setup first #backend=drm [shell] # for your wallpaper, delete # below, change pathway to your wallpaper etc #background-image=/home/tc/2wallpaper/cat-lick.jpeg ## background type values are centered, scale, scale-crop or tile background-type=scale-crop ## panel values are top, bottom, left, right, none. panel-position=top [libinput] [keyboard] keymap_layout=us numlock-on=true [output] mode=off [launcher] icon=/usr/local/share/pixmaps/sakura.png path=/usr/local/bin/sakura [launcher] # enable xwayland stuff below icon=/usr/local/share/pixmaps/exittc.png path=/usr/local/bin/exittc [terminal] # for weston-terminal only example below, echo $TERM was xterm ## load TCE=dejavu-fonts-ttf if you like font or load other fonts font-size=16 #font=DejaVu Sans Mono term=xterm-256color [xwayland] # to enable xwayland, its needs to be loaded, delete # from path line & false -> true # path=/usr/local/bin/Xwayland xwayland=false [autolaunch] ## delete # from path line below #path=/usr/local/bin/firefox ' > $S/$P ######################################################################### # tce.installed mkdir -p $P/usr/local/tce.installed cat > $P/usr/local/tce.installed/$P << 'EOF' #/bin/sh USER=`cat /etc/sysconfig/tcuser` C=/home/$USER/.config W=weston.ini L=/tmp/tcloop/weston.ini/usr/local/share/$W/$W # test if ini exists if not create it [ -f $C/$W ] || cp $L $C/ chown $USER $C/$W chmod 644 $C/$W EOF chown -R root:staff $P/usr/local/tce.installed chmod -R 775 $P/usr/local/tce.installed mkdir -p $P/usr/local/share/doc/$P echo 'open source' > $P/usr/local/share/doc/$P/COPYING # TCZ them ####### LIST="$P " for Z in $LIST do mksquashfs $Z $Z.tcz md5sum $Z.tcz > $Z.tcz.md5.txt cd $Z find usr -not -type d > /tmp/$Z.tcz.list sed 's|usr|/usr|g' -i /tmp/$Z.tcz.list cd /tmp done ls -hal echo 'Title: weston.ini.tcz Description: Create read-write weston.ini file Version: 2 Author: aus9 Original-site: Cheating off https://www.mankier.com/5/weston.ini and modes mainly https://www.mankier.com/7/weston-drm Copying-policy: Open source Size: 4.0K Extension_by: aus9 @linuxquestions.org Tags: weston Comments: Read Write file= ~/.config/weston.ini Install script does not overwrite any existing ini file At time of posting, there is a broken pipe issue if you run $ tce-load in weston-terminal so I have changed the ini to show sakura but its not a dep! sakura is gtk3 so can run on pure wayland. After downloading this TCE, load it and edit it to your preferences using links above. weston does not have xwayland as a dep. Its needed if you intend to run any of the fltk GUIs eg exittc, mntttol, apps. I have disabled xwayland in 2 settings in case you prefer not to use xwayland. Without xwayland run $ exitcheck.sh reboot (to reboot) or drop reboot to poweroff Change-log: 2018/11/27 v 1 2024/04/05 v 2 Current: 2024/04/22 fix xwayland & mention sakura terminal for broken pipe issue ' > $P.tcz.info # no dep submitqc --libs rm -rf *.zsync