Обновление README.md, исходников, пакетки
This commit is contained in:
74
assets/var/gnu/sway.md
Normal file
74
assets/var/gnu/sway.md
Normal file
@ -0,0 +1,74 @@
|
||||
sway 1.11
|
||||
=
|
||||
https://github.com/swaywm/sway/releases/download/1.11/sway-1.11.tar.gz
|
||||
|
||||
``` sh *** build ***
|
||||
mkdir -p build
|
||||
cd build
|
||||
meson setup --prefix=/pkg/gnu/sway --buildtype=release ..
|
||||
ninja
|
||||
ninja install
|
||||
```
|
||||
|
||||
``` sh *** config ***
|
||||
rm -r /pkg/gnu/sway/etc/sway
|
||||
git clone https://root-kit.ru/AeroLinux/AeroSway.git /pkg/gnu/sway/etc/sway
|
||||
|
||||
cat > /pkg/gnu/sway/bin/sway-autologin-shell <<EOF
|
||||
#!/bin/sh
|
||||
# To set this script as your default login shell, run:
|
||||
# chsh -s /pkg/gnu/sway/bin/sway-autologin-shell
|
||||
#
|
||||
# Sway will automatically start after login on the specified TTY.
|
||||
# Default TTY is /dev/tty1, configurable via SWAY_TTY variable.
|
||||
|
||||
export SHELL=/bin/zsh
|
||||
export LANG=en_US.UTF-8
|
||||
|
||||
SWAY_BIN="${SWAY_BIN:-sway}"
|
||||
SWAY_TTY="${SWAY_TTY:-/dev/tty1}"
|
||||
|
||||
if [ "$(tty)" = "$SWAY_TTY" ]; then
|
||||
if ! pgrep -x seatd >/dev/null; then
|
||||
echo "Error: seatd is not running. Start it manually or via systemd."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -w "/run/seatd.sock" ]; then
|
||||
echo "Error: No access to /run/seatd.sock. Ensure you are in the 'seat' group."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/tmp/sway-runtime-$$}"
|
||||
mkdir -p "$XDG_RUNTIME_DIR"
|
||||
chmod 0700 "$XDG_RUNTIME_DIR"
|
||||
|
||||
exec "$SWAY_BIN" "$@"
|
||||
else
|
||||
exec zsh
|
||||
fi
|
||||
EOF
|
||||
chmod +x /pkg/gnu/sway/bin/sway-autologin-shell
|
||||
```
|
||||
|
||||
``` cfg *** build deps ***
|
||||
wlroots
|
||||
wayland
|
||||
wayland-protocols
|
||||
pcre2
|
||||
json-c
|
||||
pango
|
||||
cairo
|
||||
scdoc
|
||||
libevdev
|
||||
libinput
|
||||
```
|
||||
|
||||
``` cfg *** run deps ***
|
||||
jq
|
||||
brightnessctl
|
||||
libnotify
|
||||
notify-send
|
||||
mako
|
||||
st
|
||||
```
|
||||
Reference in New Issue
Block a user