Fix setup script, add PulseAudio config
This commit is contained in:
parent
9209b7ce4a
commit
6e44281278
|
@ -14,11 +14,6 @@ set -gx PATH /usr/sbin /sbin /usr/bin /bin /usr/local/sbin /usr/local/bin $HOME/
|
||||||
|
|
||||||
set -gx EDITOR /usr/bin/vim
|
set -gx EDITOR /usr/bin/vim
|
||||||
|
|
||||||
# Source local system-specific config.
|
|
||||||
if test -e ~/.local.fish
|
|
||||||
. ~/.local.fish
|
|
||||||
end
|
|
||||||
|
|
||||||
# 256 colors
|
# 256 colors
|
||||||
if test $TERM = "xterm"
|
if test $TERM = "xterm"
|
||||||
set -x TERM "xterm-256color"
|
set -x TERM "xterm-256color"
|
||||||
|
@ -61,3 +56,8 @@ function fish_title
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Source local system-specific config.
|
||||||
|
if test -e ~/.local.fish
|
||||||
|
. ~/.local.fish
|
||||||
|
end
|
||||||
|
|
||||||
|
|
12
home/.config/pulse/daemon.conf
Normal file
12
home/.config/pulse/daemon.conf
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# My PulseAudio setting overrides.
|
||||||
|
# https://wiki.archlinux.org/index.php/PulseAudio
|
||||||
|
#
|
||||||
|
# Run these commands when changing this config:
|
||||||
|
# $ pulseaudio -k
|
||||||
|
# $ pulseaudio --start
|
||||||
|
|
||||||
|
# Stop per-application volume from adjusting when the Master volume is
|
||||||
|
# adjusted.
|
||||||
|
flat-volumes = no
|
||||||
|
|
||||||
|
# vim:ft=conf
|
25
setup
25
setup
|
@ -53,9 +53,13 @@ def crawl(folder):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Otherwise it's a file. In install mode, delete the existing file.
|
# Otherwise it's a file. In install mode, delete the existing file.
|
||||||
if install and (os.path.exists(home) or os.path.islink(home)):
|
if os.path.exists(home) or os.path.islink(home):
|
||||||
|
if install:
|
||||||
print("Delete:", home)
|
print("Delete:", home)
|
||||||
os.unlink(home)
|
os.unlink(home)
|
||||||
|
elif not os.path.islink(home):
|
||||||
|
print("Found existing (non-link file), but not in --install mode:", home)
|
||||||
|
continue
|
||||||
|
|
||||||
# Already linked?
|
# Already linked?
|
||||||
if os.path.islink(home):
|
if os.path.islink(home):
|
||||||
|
@ -73,23 +77,4 @@ def crawl(folder):
|
||||||
|
|
||||||
crawl(source)
|
crawl(source)
|
||||||
|
|
||||||
"""for item in os.listdir(source):
|
|
||||||
home = os.path.join(os.environ.get("HOME", "."), item)
|
|
||||||
target = os.path.join(source, item)
|
|
||||||
|
|
||||||
if install and (os.path.exists(home) or os.path.islink(home)):
|
|
||||||
print("Delete:", home)
|
|
||||||
if os.path.islink(home) or not os.path.isdir(home):
|
|
||||||
os.unlink(home)
|
|
||||||
else:
|
|
||||||
shutil.rmtree(home)
|
|
||||||
|
|
||||||
if os.path.islink(home):
|
|
||||||
print("Already linked:", home)
|
|
||||||
continue
|
|
||||||
|
|
||||||
print("{} -> {}".format(home, target))
|
|
||||||
os.symlink(target, home)
|
|
||||||
"""
|
|
||||||
|
|
||||||
# vim:expandtab
|
# vim:expandtab
|
||||||
|
|
Loading…
Reference in New Issue
Block a user