Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: systemd integration #10

Merged
merged 1 commit into from
Aug 30, 2024
Merged

Feat: systemd integration #10

merged 1 commit into from
Aug 30, 2024

Conversation

DevelAngel
Copy link
Owner

Follow the sway guide for systemd integration:
https://github.com/swaywm/sway/wiki/Systemd-integration

  • Managing user applications with systemd
  • Sway logging and journalctl

Sway's output should be printable via:

journalctl --user --identifier sway

@DevelAngel DevelAngel changed the title Feat/systemd integration Feat: systemd integration Aug 30, 2024
Follow the sway guide for systemd integration:
https://github.com/swaywm/sway/wiki/Systemd-integration

 - Managing user applications with systemd
 - Sway logging and journalctl

Sway's output should be printable via:

  journalctl --user --identifier sway
@DevelAngel DevelAngel force-pushed the feat/systemd-integration branch from 872b070 to 6b12bf7 Compare August 30, 2024 21:41
@DevelAngel DevelAngel merged commit bd0931e into main Aug 30, 2024
3 checks passed
@DevelAngel DevelAngel deleted the feat/systemd-integration branch August 30, 2024 21:42
@DevelAngel
Copy link
Owner Author

DevelAngel commented Aug 30, 2024

Log print seems to work in host-shell:

[apx-vso-pico]$ host-shell
[host-shell]$ journalctl --user --identifier=sway
Aug 30 23:51:21 tux sway[2765]: 2024-08-30 23:51:21 - [main.c:282] Found config * for output eDP-1 (AU Optronics 0x623D)

@DevelAngel
Copy link
Owner Author

DevelAngel commented Aug 30, 2024

The sway-session.target is also started, automatically:

[host-shell]$ systemctl --user status sway-session.target
● sway-session.target - sway compositor session
     Loaded: loaded (/usr/lib/systemd/user/sway-session.target; static)
     Active: active since Fri 2024-08-30 23:51:21 CEST; 12min ago
 Invocation: dacc55774e214d7288791d11392ed92c
       Docs: man:systemd.special(7)

Aug 30 23:51:21 tux systemd[2377]: Reached target sway-session.target - sway compositor sompositor session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant