generated from blue-build/legacy-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(greetd): use greetd instead of sddm (#26)
Co-authored-by: William <[email protected]>
- Loading branch information
1 parent
2bd0c7a
commit 27cbf9f
Showing
6 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[terminal] | ||
vt = 1 | ||
|
||
[default_session] | ||
command = "sway --config /etc/greetd/sway-config" | ||
user = "greetd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
sway | ||
bash | ||
fish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# `-l` activates layer-shell mode. Notice that `swaymsg exit` will run after gtkgreet. | ||
exec "gtkgreet -l; swaymsg exit" | ||
|
||
bindsym Mod4+shift+e exec swaynag \ | ||
-t warning \ | ||
-m 'What do you want to do?' \ | ||
-b 'Poweroff' 'systemctl poweroff' \ | ||
-b 'Reboot' 'systemctl reboot' | ||
|
||
include /etc/sway/config.d/* |
12 changes: 12 additions & 0 deletions
12
config/files/usr/lib/systemd/system/greetd-selinux-workaround.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Workaround greetd not having the correct SElinux label | ||
ConditionFileIsExecutable=/usr/bin/greetd | ||
After=local-fs.target | ||
Before=greetd.service | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/sbin/greetd-selinux-workaround | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This is a workaround to set the SELinux context of | ||
# the greetd binary correctly. | ||
# (See: https://github.com/sidusIO/sediment/pull/26) | ||
|
||
cp /usr/bin/greetd /usr/local/bin/greetd | ||
mount --bind /usr/local/bin/greetd /usr/bin/greetd | ||
semanage fcontext -a -t xdm_exec_t /usr/bin/greetd | ||
restorecon /usr/bin/greetd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters