Talk:Sway: Difference between revisions

From Alpine Linux
(What happend?!)
 
(One intermediate revision by one other user not shown)
Line 52: Line 52:


[[User:Sertonix|Sertonix]] ([[User talk:Sertonix|talk]]) 11:50, 29 February 2024 (UTC)
[[User:Sertonix|Sertonix]] ([[User talk:Sertonix|talk]]) 11:50, 29 February 2024 (UTC)
== Environmental Variables ==
Amended {{ic|dbus-update-activation-environment}} variables as per [https://github.com/swaywm/sway/wiki#systemd-and-dbus-activation-environments upstream wiki].  This line might be universally applicable if using '''dbus''' (possibly not for {{Pkg|dbus-broker}}), so required variables could be mentioned, say, in a more general ''Environment Variables'' section, before the [[Sway#PipeWire_and_Screensharing|Pipewire and Screensharing]] section.[[User:John3-16|John3-16]] ([[User talk:John3-16|talk]]) 18:21, 7 October 2025 (UTC)
== Sway#Quickstart_-_config_File ==
Dear [[User:John3-16|John3-16]], Thanks for the [[Sway#Quickstart_-_config_File|detailed guide]] to configure sway for users coming from traditional DE's like [[Xfce]]. You may want to consider moving this content to a new page with a suitable title and link it back here. This is also a very good candidate to be added as a standalone entry in [[Tutorials_and_Howtos]] with so much useful information. Also consider adding links to sample dotfiles.(if available).
Separately, I have also been thinking of ways to capture sample dotfiles here in wiki using templates, but not been successful yet. -[[User:Prabuanand|Prabuanand]] ([[User talk:Prabuanand|talk]]) 03:18, 10 October 2025 (UTC)

Latest revision as of 03:18, 10 October 2025

Flatpak section has no relevance to sway

should be moved to another article --Psykose (talk) 11:08, 20 January 2023 (UTC)

Video and input groups

Please don't revert edits and add these groups again. Being a member of these groups is not required and is actively discouraged by upstream. WhyNotHugo (talk) 14:27, 1 November 2023 (UTC)

So seatd also allows not using these groups? Sorry, I didn't know that. Sertonix (talk) 15:24, 4 November 2023 (UTC)
I can confirm that sway starts fine using the directions on the current revision of the wiki using seatd. No users were added to video or input group.
I didn't have luck with elogind, but didn't mess with it much. –zcrayfish (talkcontribssend email) 11:51, 6 November 2023 (UTC)
I found the issue that backlight control doesn't work for me without the video group. It may be resolvable with a udev rule. Setuid is also possible but suid always exposes security problems. It seems like that could/should be handled by seatd but I haven't found anything like that. Sertonix (talk) 20:25, 6 November 2023 (UTC)

Proposal to remove the "Start as a service" section.

I for one think this section should be replaced by a section instructing users to start sway with their .profile.
Looks to me that the openrc service as written on the page now starts it as root. Would be a lot better from a security standpoint if it was started as a regular user. Thoughts?
zcrayfish (talkcontribssend email) 11:57, 6 November 2023 (UTC)

I fixed the issue with sway running as root. At least I think, I haven't tested if that can work. I don't have a opinion if the section should be removed. A link to the OpenRC user services wik might be appropriate. Sertonix (talk) 15:03, 6 November 2023 (UTC)

Custom keyboard layout section should be replaced.

This section should use user environmental variables, like below:

 XKB_DEFAULT_MODEL=latitude
 XKB_DEFAULT_LAYOUT=us
 XKB_DEFAULT_VARIANT=intl
 #XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle

OR the appropriate sway config files.

Editing evdev config is far beyond the article scope... –zcrayfish (talkcontribssend email) 20:13, 20 February 2024 (UTC)

Agreed. I fixed that section to use Sway config instead. Quq (talk) 23:59, 23 February 2024 (UTC)

What happend?!

What happend here: https://wiki.alpinelinux.org/w/index.php?title=Sway&diff=prev&oldid=26436

The summary and what changes I see differ drastically:

Summary: 'add details about seatd, elogind and optional greeter'.

Changes: removal of the initial description, removal of the 'see also' section, removal of the template usage, removal of information that gives users the possibility to decide what they want

After a bit of searching it seems that the Sway article content has been replaced with the content of 'Sway_on_Laptop' without merging the improvements done to the Sway article. https://wiki.alpinelinux.org/w/index.php?title=Sway_on_Laptop&diff=next&oldid=26445

Can we please recover the lost changes?

Sertonix (talk) 11:50, 29 February 2024 (UTC)

Environmental Variables

Amended dbus-update-activation-environment variables as per upstream wiki. This line might be universally applicable if using dbus (possibly not for dbus-broker), so required variables could be mentioned, say, in a more general Environment Variables section, before the Pipewire and Screensharing section.John3-16 (talk) 18:21, 7 October 2025 (UTC)

Sway#Quickstart_-_config_File

Dear John3-16, Thanks for the detailed guide to configure sway for users coming from traditional DE's like Xfce. You may want to consider moving this content to a new page with a suitable title and link it back here. This is also a very good candidate to be added as a standalone entry in Tutorials_and_Howtos with so much useful information. Also consider adding links to sample dotfiles.(if available). Separately, I have also been thinking of ways to capture sample dotfiles here in wiki using templates, but not been successful yet. -Prabuanand (talk) 03:18, 10 October 2025 (UTC)