diff options
| author | Craig Jennings <c@cjennings.net> | 2025-05-07 23:38:51 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-05-07 23:38:51 -0500 |
| commit | e0338d824fdb93cbf20621a8bff0fd0690544ad9 (patch) | |
| tree | de7af8d9e98abea1924c74963a7ffd7b02ae0680 | |
| parent | bea82c4abca675f7a446a392b546ec47b0dca928 (diff) | |
getting wayland and sway to work
| -rwxr-xr-x | root_scripts/sleep_config.sh | 4 | ||||
| -rwxr-xr-x | root_scripts/wayland_config.sh | 7 | ||||
| -rw-r--r-- | user_scripts/sway_config.sh | 6 |
3 files changed, 14 insertions, 3 deletions
diff --git a/root_scripts/sleep_config.sh b/root_scripts/sleep_config.sh index a7b4a1d..7fc8611 100755 --- a/root_scripts/sleep_config.sh +++ b/root_scripts/sleep_config.sh @@ -11,11 +11,11 @@ pkg install -y drm-515-kmod # update sysctl.conf -sysrc -f /etc/sysctl.conf hw.acpi.lid_switch_state=S3 +echo "hw.acpi.lid_switch_state=S3" >> /etc/sysctl.conf # update rc.conf sysrc kld_list="i915kms" # ensure you and root are in the video group -pw groupmod video -M cjennings,root +pw groupmod video -m cjennings,root diff --git a/root_scripts/wayland_config.sh b/root_scripts/wayland_config.sh index 210fea3..f845bae 100755 --- a/root_scripts/wayland_config.sh +++ b/root_scripts/wayland_config.sh @@ -1,5 +1,10 @@ #!/bin/sh # Craig Jennings <c@cjennings.net> -pkg install -y sway swayidle swaylock-effects foot fuzzel +pkg install -y wayland seatd sway swayidle swaylock-effects foot fuzzel +# add XDG RUNTIME to .profile +echo "export XDG_RUNTIME_DIR=/var/run/user/`id -u`" >> /root/.profile + +sysrc seatd_enable="YES" +service seatd start diff --git a/user_scripts/sway_config.sh b/user_scripts/sway_config.sh new file mode 100644 index 0000000..7e0dc73 --- /dev/null +++ b/user_scripts/sway_config.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +mkdir -p ~/.config/sway +cp /usr/local/etc/sway/config ~/.config/sway + + |
