summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bash_logout2
-rw-r--r--.git.info.exclude1
-rw-r--r--.profile2
-rw-r--r--Makefile5
4 files changed, 9 insertions, 1 deletions
diff --git a/.bash_logout b/.bash_logout
index de4f5f7..5ca7df0 100644
--- a/.bash_logout
+++ b/.bash_logout
@@ -5,3 +5,5 @@
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi
+
+alsactl --file $HOME/.alsa.save store
diff --git a/.git.info.exclude b/.git.info.exclude
index b101ad2..69a53f3 100644
--- a/.git.info.exclude
+++ b/.git.info.exclude
@@ -64,6 +64,7 @@ history.*
.pulse
.pulse-cookie
.pki
+.alsa.save
# Ignore files that are autogenerated
.folders
diff --git a/.profile b/.profile
index a086b00..ec14112 100644
--- a/.profile
+++ b/.profile
@@ -29,3 +29,5 @@ if [ -f "$HOME/.selected_editor" ]; then
export EDITOR="${EDITOR:-$SELECTED_EDITOR}"
export VISUAL="${VISUAL:-$SELECTED_EDITOR}"
fi
+
+alsactl --file $HOME/.alsa.save restore
diff --git a/Makefile b/Makefile
index abf0ee2..3e2677b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,14 @@
CHECK = $(HOME)/.prefix:$(HOME):/usr/local:/usr:/
NANO_SHARE = $(firstword $(wildcard $(addsuffix /share/nano,$(subst :, ,$(CHECK)))))
-targets=.nanorc .folders .crontab.cookie
+targets=.nanorc .folders .crontab.cookie .alsa.save
all: $(targets)
clean:
rm -f $(targets)
+.alsa.save: PHONY
+ alsactl --file $HOME/.alsa.save store
+
.nanorc: .nanorc.in $(NANO_SHARE)
cat '$<' > '$@'
for file in $(NANO_SHARE)/*.nanorc; do echo "include \"$$file\""; done >> '$@'