feat(pipewire): Add alsa integration
Any programs running through alsa only (such as spotify_player on voidlinux) should now also work correctly through the pipewire stack.
This commit is contained in:
parent
317b931de0
commit
dc78da4d03
5 changed files with 56 additions and 1 deletions
8
roles/display_manager/defaults/main.yaml
Normal file
8
roles/display_manager/defaults/main.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
# should the system automatically login as the primary user
|
||||
dm_auto_login: true
|
||||
|
||||
# default command to run on login
|
||||
# can be pause if we use services to start graphical env
|
||||
# otherwise a shell, e.g. zsh makes sense
|
||||
dm_command: pause
|
||||
|
|
@ -22,6 +22,15 @@
|
|||
mode: 0644
|
||||
force: true
|
||||
|
||||
- name: Enable power management for _greeter user
|
||||
ansible.builtin.copy:
|
||||
content: "_greeter ALL=(ALL) NOPASSWD: /usr/sbin/shutdown, /usr/bin/reboot, /usr/bin/poweroff, /usr/bin/shutdown"
|
||||
dest: "/etc/sudoers.d/30-greeter"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
force: true
|
||||
|
||||
- name: Activate greetd service
|
||||
ansible.builtin.file:
|
||||
src: "/etc/sv/greetd"
|
||||
|
|
|
|||
|
|
@ -5,9 +5,14 @@ vt = 7
|
|||
|
||||
# The default session, also known as the greeter.
|
||||
[default_session]
|
||||
command = "tuigreet --cmd zsh"
|
||||
command = "tuigreet --cmd {{ dm_command }}"
|
||||
command = "tuigreet --power-reboot 'sudo reboot' --power-shutdown 'sudo poweroff' --cmd {{ dm_command }}"
|
||||
user = "{{ greeter_user }}"
|
||||
|
||||
[initial_session]
|
||||
command = "{{ dm_command }}"
|
||||
user = "{{ user_name | default('root') }}"
|
||||
|
||||
# `agreety` is the bundled agetty/login-lookalike. You can replace `/bin/sh`
|
||||
# with whatever you want started, such as `sway`.
|
||||
# command = "agreety --cmd /bin/sh"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue