Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,11 @@ install(
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps
RENAME org.quickshell.svg
)

foreach (SYSTEMD_FILE "quickshell.service" "quickshell@.service" "quickshell-path@.service")
configure_file(assets/${SYSTEMD_FILE}.in ${SYSTEMD_FILE})
install(
FILES ${CMAKE_BINARY_DIR}/${SYSTEMD_FILE}
DESTINATION lib/systemd/user
)
endforeach()
13 changes: 13 additions & 0 deletions assets/quickshell-path@.service.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Quickshell Desktop Shell for config path %i
PartOf=graphical-session.target
Requisite=graphical-session.target
After=graphical-session.target

[Service]
ExecStart=@CMAKE_INSTALL_BINDIR@/quickshell -p %i
Slice=session.slice
Restart=on-failure

[Install]
WantedBy=graphical-session.target
13 changes: 13 additions & 0 deletions assets/quickshell.service.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Quickshell Desktop Shell
PartOf=graphical-session.target
Requisite=graphical-session.target
After=graphical-session.target

[Service]
ExecStart=@CMAKE_INSTALL_BINDIR@/quickshell
Slice=session.slice
Restart=on-failure

[Install]
WantedBy=graphical-session.target
13 changes: 13 additions & 0 deletions assets/quickshell@.service.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Quickshell Desktop Shell for config %i
PartOf=graphical-session.target
Requisite=graphical-session.target
After=graphical-session.target

[Service]
ExecStart=@CMAKE_INSTALL_BINDIR@/quickshell -c %i
Slice=session.slice
Restart=on-failure

[Install]
WantedBy=graphical-session.target
5 changes: 4 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,13 @@
dontUnpack = true;
dontConfigure = true;
dontBuild = true;
dontMoveSystemdUserUnits = true;

installPhase = ''
mkdir -p $out
cp -r ${unwrapped}/* $out
cp -r ${unwrapped} $out
substituteInPlace $out/lib/systemd/user/quickshell*.service \
--replace-fail ${unwrapped} $out
'';

passthru = {
Expand Down
Loading