Skip to content

Commit

Permalink
Make sway init part of autostart
Browse files Browse the repository at this point in the history
remove cursor and set background black
  • Loading branch information
sydarn committed Mar 27, 2024
1 parent 438c196 commit 900a0c6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ output="output ${con}"
else
angle="0"
fi
echo "${output} bg #000000 solid_color" >> $SWAY_HOME/config
echo "${output} transform ${angle}" >> $SWAY_HOME/config
echo "${output} max_render_time off" >> $SWAY_HOME/config
fi
1 change: 0 additions & 1 deletion packages/wayland/compositor/sway/config/config.kiosk
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
seat * hide_cursor 1000
default_border none
3 changes: 2 additions & 1 deletion packages/wayland/compositor/sway/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ post_makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/sway
cp ${PKG_DIR}/scripts/sway.sh ${INSTALL}/usr/bin
cp ${PKG_DIR}/scripts/sway-config ${INSTALL}/usr/lib/sway
cp ${PKG_DIR}/scripts/sway_init.sh ${INSTALL}/usr/bin
mkdir -p ${INSTALL}/usr/lib/autostart/common
cp ${PKG_DIR}/autostart/111-sway-init ${INSTALL}/usr/lib/autostart/common

# install config & wallpaper
mkdir -p ${INSTALL}/usr/share/sway
Expand Down
5 changes: 0 additions & 5 deletions packages/wayland/compositor/sway/scripts/sway-config
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)

# Initialize config file, and add output line.
# at least on the RG552 (rk3399 270 degree rotated display)
# sway segafaults without it.
/usr/bin/bash /usr/bin/sway_init.sh

export XDG_RUNTIME_DIR=/var/run/0-runtime-dir
export WAYLAND_DISPLAY=wayland-1
SWAY_DAEMON_ARGS=""
Expand Down

0 comments on commit 900a0c6

Please sign in to comment.