3 ms·
That's fair (RE: setting/sessions). The method I proposed relies on consistency everywhere else (defining that to something), and assumes Sway if not :P It lo
by bravetraveler 4y ago
That's fair (RE: setting/sessions). The method I proposed relies on consistency everywhere else (defining that to something), and assumes Sway if not :P
It looks like this (on Fedora) is generally dealt with by the 'sway-systemd' package.
That provides a drop-in config (/etc/sway/config.d/10-systemd-session.conf) that runs a script and prepares the environment for you (including this variable)
$ dnf whatprovides /etc/sway/config.d/10-systemd-session.conf
[...]
sway-systemd-0.2.2-1.fc36.noarch : Systemd integration for Sway session
Repo : @System
Matched from:
Filename : /etc/sway/config.d/10-systemd-session.conf
It's rather similar to the openSUSE approach you shared, but seemingly a little more robust:
https://github.com/alebastr/sway-systemd/blob/main/src/session.sh https://github.com/alebastr/sway-systemd/blob/main/src/sessi...
As long as you do this in your Sway config, it should be fine:
include /etc/sway/config.d/*
I forgot about that adventure until now -- with something like this, you don't need either 'manual declaration' approach really
I initially missed it moving to Sway because I literally copied my i3 config and only changed it slightly