mirror of
https://github.com/ManInDark/bootc-image.git
synced 2026-01-20 22:44:28 +01:00
feat: autostart hyprland with systemd
This commit is contained in:
@@ -8,3 +8,5 @@ dnf5 install -y \
|
|||||||
hypridle \
|
hypridle \
|
||||||
hyprlock \
|
hyprlock \
|
||||||
hyprpolkitagent
|
hyprpolkitagent
|
||||||
|
|
||||||
|
cp /ctx/hypr* /usr/lib/systemd/system
|
||||||
50
build_files/hyprland.service
Normal file
50
build_files/hyprland.service
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
# /usr/lib/systemd/system/gdm.service
|
||||||
|
[Unit]
|
||||||
|
Description=Hyprland
|
||||||
|
|
||||||
|
# replaces the getty
|
||||||
|
Conflicts=getty@tty1.service
|
||||||
|
After=getty@tty1.service
|
||||||
|
|
||||||
|
# replaces plymouth-quit since it quits plymouth on its own
|
||||||
|
Conflicts=plymouth-quit.service
|
||||||
|
After=plymouth-quit.service
|
||||||
|
|
||||||
|
# Needs all the dependencies of the services it's replacing
|
||||||
|
# pulled from getty@.service and plymouth-quit.service
|
||||||
|
# (except for plymouth-quit-wait.service since it waits until
|
||||||
|
# plymouth is quit, which we do)
|
||||||
|
After=rc-local.service plymouth-start.service systemd-user-sessions.service
|
||||||
|
|
||||||
|
# GDM takes responsibility for stopping plymouth, so if it fails
|
||||||
|
# for any reason, make sure plymouth still stops
|
||||||
|
OnFailure=plymouth-quit.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/hyprland
|
||||||
|
KillMode=mixed
|
||||||
|
Restart=always
|
||||||
|
IgnoreSIGPIPE=no
|
||||||
|
BusName=org.freedesktop.portal.Desktop
|
||||||
|
EnvironmentFile=-/etc/locale.conf
|
||||||
|
ExecReload=/bin/kill -SIGHUP $MAINPID
|
||||||
|
KeyringMode=shared
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
Alias=display-manager.service
|
||||||
|
|
||||||
|
# /usr/lib/systemd/system/service.d/10-timeout-abort.conf
|
||||||
|
# This file is part of the systemd package.
|
||||||
|
# See https://fedoraproject.org/wiki/Changes/Shorter_Shutdown_Timer.
|
||||||
|
#
|
||||||
|
# To facilitate debugging when a service fails to stop cleanly,
|
||||||
|
# TimeoutStopFailureMode=abort is set to "crash" services that fail to stop in
|
||||||
|
# the time allotted. This will cause the service to be terminated with SIGABRT
|
||||||
|
# and a coredump to be generated.
|
||||||
|
#
|
||||||
|
# To undo this configuration change, create a mask file:
|
||||||
|
# sudo mkdir -p /etc/systemd/system/service.d
|
||||||
|
# sudo ln -sv /dev/null /etc/systemd/system/service.d/10-timeout-abort.conf
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
TimeoutStopFailureMode=abort
|
||||||
Reference in New Issue
Block a user