repo/wayland/sway-tiny/post-install

41 lines
1.1 KiB
Plaintext
Raw Normal View History

#!/bin/sh -e
chown root:input "$KISS_ROOT/usr/bin/sway"
2021-07-09 22:22:03 +00:00
chmod g+s "$KISS_ROOT/usr/bin/sway"
cat <<EOF
2021-07-16 15:25:47 +00:00
NOTE: You must be in the 'video', 'audio', and 'tty'
groups. There is no 'input' group requirement
2021-07-13 16:38:36 +00:00
as this sway binary is setgid input.
NOTE: You must set XDG_RUNTIME_DIR in your shellrc
or .profile for things to work. This directory
must exist and must be writable by your user.
export XDG_RUNTIME_DIR=/run/user/\$(id -u)
NOTE: You must be the first to call DRMSetMaster.
If you cannot fulfil this requirement, you must
use the 'sway' package and run the 'seatd' daemon.
Another option is to setuid root the sway binary.
See: https://github.com/torvalds/linux/commit/45bc3d26c95a8fc63a7d8668ca9e57ef0883351c
2021-07-16 15:25:47 +00:00
NOTE: sway-tiny does not spawn a subshell for exec
commands, it executes them directly. Use the full
path to the program you would like to execute.
# Will not work.
2021-07-16 15:39:02 +00:00
bindsym \$mod+t exec foot
2021-07-16 15:25:47 +00:00
# Works.
2021-07-16 15:39:02 +00:00
bindsym \$mod+t exec /bin/foot
2021-07-16 15:25:47 +00:00
NOTE: This is a fork of sway for KISS Linux. Send all
bugs/issues to kisslinux/repo and NOT upstream.
EOF