From 22280c24af6c3c5c76b79c256cec28bfd5ba739a Mon Sep 17 00:00:00 2001 From: Fierelier Date: Fri, 20 May 2022 06:12:27 +0200 Subject: [PATCH] Save audio settings on logout --- input/stage50/setup | 2 +- .../Audio settings - save (logout).desktop | 13 +++++++++++++ .../Audio settings - save (restart).desktop | 13 +++++++++++++ .../Audio settings - save (shutdown).desktop | 13 +++++++++++++ 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 input/stage98/etc/skel/.config/autostart/Audio settings - save (logout).desktop create mode 100644 input/stage98/etc/skel/.config/autostart/Audio settings - save (restart).desktop create mode 100644 input/stage98/etc/skel/.config/autostart/Audio settings - save (shutdown).desktop diff --git a/input/stage50/setup b/input/stage50/setup index cea3179..595ce3e 100755 --- a/input/stage50/setup +++ b/input/stage50/setup @@ -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 diff --git a/input/stage98/etc/skel/.config/autostart/Audio settings - save (logout).desktop b/input/stage98/etc/skel/.config/autostart/Audio settings - save (logout).desktop new file mode 100644 index 0000000..0580e03 --- /dev/null +++ b/input/stage98/etc/skel/.config/autostart/Audio settings - save (logout).desktop @@ -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 + diff --git a/input/stage98/etc/skel/.config/autostart/Audio settings - save (restart).desktop b/input/stage98/etc/skel/.config/autostart/Audio settings - save (restart).desktop new file mode 100644 index 0000000..38a1ee7 --- /dev/null +++ b/input/stage98/etc/skel/.config/autostart/Audio settings - save (restart).desktop @@ -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 + diff --git a/input/stage98/etc/skel/.config/autostart/Audio settings - save (shutdown).desktop b/input/stage98/etc/skel/.config/autostart/Audio settings - save (shutdown).desktop new file mode 100644 index 0000000..54a68ee --- /dev/null +++ b/input/stage98/etc/skel/.config/autostart/Audio settings - save (shutdown).desktop @@ -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 +