Talk:Sway: Difference between revisions

From Alpine Linux
(re)
(What happend?!)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== Setting up eudev ==
== Flatpak section has no relevance to sway ==
Hi, first-time user here. While following this page's instructions I found that setup-udev command doesn't exist, and couldn't find anything about which package provides it. My guess is it's old and the page is just out of date. However, my own quest to get sway working took me through so much confusion that I'm not sure which steps were actually necessary for me, so I don't know for certain what to replace it with. I suspect what setup-udev did was start all of the udev services (udev, udev-postmount, udev-settle, and udev-trigger).


Hello.  The package '''eudev''', which should be installed by the very first command in the page, provides /sbin/setup-udev. [[User:La9|La9]] ([[User talk:La9|talk]]) 06:09, 27 July 2022 (UTC)
should be moved to another article
--[[User:Psykose|Psykose]] ([[User talk:Psykose|talk]]) 11:08, 20 January 2023 (UTC)


: Alternatively you can try '''setup-devd udev''', this will auto install packages for you. [[User:La9|La9]] ([[User talk:La9|talk]]) 06:12, 27 July 2022 (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. [[User:WhyNotHugo|WhyNotHugo]] ([[User talk:WhyNotHugo|talk]]) 14:27, 1 November 2023 (UTC)
 
:So seatd also allows not using these groups? Sorry, I didn't know that. [[User:Sertonix|Sertonix]] ([[User talk: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.  &ndash;[[User:zcrayfish|zcrayfish]] <small>([[User talk:zcrayfish|talk]]•[[Special:Contributions/zcrayfish|contribs]]•[[Special:EmailUser/zcrayfish|send email]])</small> 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. [[User:Sertonix|Sertonix]] ([[User talk: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.<br>
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?<br>
&ndash;[[User:zcrayfish|zcrayfish]] <small>([[User talk:zcrayfish|talk]]•[[Special:Contributions/zcrayfish|contribs]]•[[Special:EmailUser/zcrayfish|send email]])</small> 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 [https://wiki.gentoo.org/wiki/OpenRC/User_services OpenRC user services wik] might be appropriate. [[User:Sertonix|Sertonix]] ([[User talk: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...
&ndash;[[User:zcrayfish|zcrayfish]] <small>([[User talk:zcrayfish|talk]]•[[Special:Contributions/zcrayfish|contribs]]•[[Special:EmailUser/zcrayfish|send email]])</small> 20:13, 20 February 2024 (UTC)
 
: Agreed.  I fixed that section  to use Sway config instead. [[User:Quq|Quq]] ([[User talk: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?
 
[[User:Sertonix|Sertonix]] ([[User talk:Sertonix|talk]]) 11:50, 29 February 2024 (UTC)

Latest revision as of 11:50, 29 February 2024

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)