Refine desktop audio and power defaults

This commit is contained in:
Fabio Scotto di Santolo
2026-03-26 14:43:52 +01:00
parent e17883f969
commit 9da4f5a8bc
5 changed files with 22 additions and 4 deletions

View File

@@ -16,7 +16,6 @@ profile_packages:
- thunar-volman
- udiskie
- xfce-polkit
- xfce4-power-manager
- xfce4-clipman-plugin
- xfce4-screenshooter
- volumeicon
@@ -74,6 +73,7 @@ profile_packages:
- blueman
- bluez
- libspa-bluetooth
- wireplumber
- yaru
- yaru-plus
@@ -110,6 +110,10 @@ desktop_dotfiles:
src: .config/fontconfig/
dest: .config/fontconfig/
mode: preserve
- name: WirePlumber config
src: .config/wireplumber/
dest: .config/wireplumber/
mode: preserve
- name: yt-dlp config
src: .config/yt-dlp/
dest: .config/yt-dlp/

View File

@@ -1,4 +1,12 @@
---
- name: Configure elogind to suspend on lid close
tags: [packages]
ansible.builtin.lineinfile:
path: /etc/elogind/logind.conf
regexp: '^#?HandleLidSwitch='
line: 'HandleLidSwitch=suspend'
state: present
- name: Ensure config directories exist
tags: [dotfiles, dotfiles:desktop]
ansible.builtin.file:

View File

@@ -28,11 +28,10 @@ exec --no-startup-id nm-applet
exec --no-startup-id blueman-applet
exec --no-startup-id udiskie --tray --automount
exec --no-startup-id volumeicon
exec --no-startup-id xfce4-power-manager
exec --no-startup-id xfce4-clipman
# Lock before suspend
exec --no-startup-id xss-lock --transfer-sleep-lock -- ~/.config/i3/scripts/lockscreen
# Lock screen on suspend (handled by elogind)
exec --no-startup-id xss-lock -- ~/.config/i3/scripts/lockscreen
# General behavior
focus_follows_mouse no

View File

@@ -21,6 +21,10 @@ command=~/.config/i3blocks/scripts/wifi
interval=10
color=#4a90d9
[battery]
command=~/.config/i3blocks/scripts/battery
interval=30
[time]
command=date '+%Y-%m-%d %H:%M'
interval=60

View File

@@ -0,0 +1,3 @@
wireplumber.settings = {
bluetooth.autoswitch-to-headset-profile = false
}