Save audio settings on logout

This commit is contained in:
Fierelier 2022-05-20 06:12:27 +02:00
parent 8006e362e3
commit 22280c24af
4 changed files with 40 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -e
apt -y install xorg xfce4 xfce4-*-plugin xfce4-power-manager network-manager-gnome xfce4-terminal xfce4-screenshooter mousepad netsurf-gtk xautolock xsecurelock qt5-style-plugins
apt -y install xorg xfce4 xfce4-*-plugin xfce4-power-manager network-manager-gnome xfce4-terminal xfce4-screenshooter mousepad netsurf-gtk xautolock xsecurelock qt5-style-plugins alsa-utils
apt -y remove xscreensaver
apt -y autoremove
apt -y autoclean

View File

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=Audio settings - save (logout)
Comment=
Exec=sh -c "/usr/sbin/alsactl --file ~/.config/asound.state store"
OnlyShowIn=XFCE;
RunHook=1
StartupNotify=false
Terminal=false
Hidden=false

View File

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=Audio settings - save (restart)
Comment=
Exec=sh -c "/usr/sbin/alsactl --file ~/.config/asound.state store"
OnlyShowIn=XFCE;
RunHook=3
StartupNotify=false
Terminal=false
Hidden=false

View File

@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=Audio settings - save (shutdown)
Comment=
Exec=sh -c "/usr/sbin/alsactl --file ~/.config/asound.state store"
OnlyShowIn=XFCE;
RunHook=2
StartupNotify=false
Terminal=false
Hidden=false