1
0
forked from brl/citadel
citadel/meta-citadel/recipes-citadel/citadel-config/files/systemd/session-switcher.service

14 lines
398 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Session Switcher
After=accounts-daemon.service
Wants=accounts-daemon.service
[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/bin/sh -c 'for arg in `cat /proc/cmdline`; do case $arg in sway) /usr/bin/busctl call org.freedesktop.Accounts /org/freedesktop/Accounts/User1000 org.freedesktop.Accounts.User SetXSession s "sway"; esac; done'
[Install]
WantedBy=graphical.target