feat: switch to niri

This commit is contained in:
Bastien Riviere 2024-11-17 19:59:08 +01:00
parent 3a8ae4aa33
commit 880c7b90a1
Signed by: babariviere
GPG key ID: 4E5F0839249F162E
3 changed files with 26 additions and 7 deletions

View file

@ -6,6 +6,9 @@ RELEASE="$(rpm -E %fedora)"
### Add repos
# Add niri repo
curl -Lo /etc/yum.repos.d/yalter-niri-fedora-"${RELEASE}".repo https://copr.fedorainfracloud.org/coprs/yalter/niri/repo/fedora-"${RELEASE}"/yalter-niri-fedora-"${RELEASE}".repo
# Add Staging repo
curl -Lo /etc/yum.repos.d/ublue-os-staging-fedora-"${RELEASE}".repo https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-"${RELEASE}"/ublue-os-staging-fedora-"${RELEASE}".repo
@ -60,12 +63,23 @@ WantedBy=default.target
EOF
done
#### Setup niri deps
mkdir /usr/lib/systemd/user/niri.service.wants
ln -s /usr/lib/systemd/user/mako.service /usr/lib/systemd/user/niri.service.wants/
ln -s /usr/lib/systemd/user/waybar.service /usr/lib/systemd/user/niri.service.wants/
ln -s /usr/lib/systemd/user/swayidle.service /usr/lib/systemd/user/niri.service.wants/
ln -s /usr/lib/systemd/user/kanshi.service /usr/lib/systemd/user/niri.service.wants/
#### Services
# systemctl enable docker.socket
systemctl enable podman.socket
systemctl enable podman-auto-update.timer
# systemctl enable tailscaled.service
systemctl enable -f --global niri.service
systemctl enable -f --global flatpak-setup.service
systemctl enable -f --global azure-topgrade.service
systemctl enable -f --global azure-cli.target

View file

@ -0,0 +1,8 @@
[Unit]
PartOf=graphical-session.target
After=graphical-session.target
Requisite=graphical-session.target
[Service]
ExecStart=/usr/bin/swayidle -w
Restart=on-failure

View file

@ -1,6 +1,6 @@
# Compositor
xorg-x11-server-Xwayland
river
niri
# apps
foot
@ -8,17 +8,14 @@ mako
waybar
kanshi
fuzzel
# Fingerprint
swaybg
swayidle
swaylock
# fonts
nerd-fonts
fontawesome-fonts-all
# lock
swayidle
swaylock
# utility
slurp
grimshot