Browse Source

Fix setup script, add PulseAudio config

master
Noah Petherbridge 7 years ago
parent
commit
6e44281278
  1. 10
      home/.config/fish/config.fish
  2. 12
      home/.config/pulse/daemon.conf
  3. 29
      setup

10
home/.config/fish/config.fish

@ -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
# Source local system-specific config.
if test -e ~/.local.fish
. ~/.local.fish
end
# 256 colors
if test $TERM = "xterm"
set -x TERM "xterm-256color"
@ -61,3 +56,8 @@ function fish_title
end
end
# Source local system-specific config.
if test -e ~/.local.fish
. ~/.local.fish
end

12
home/.config/pulse/daemon.conf

@ -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

29
setup

@ -53,9 +53,13 @@ def crawl(folder):
continue
# Otherwise it's a file. In install mode, delete the existing file.
if install and (os.path.exists(home) or os.path.islink(home)):
print("Delete:", home)
os.unlink(home)
if os.path.exists(home) or os.path.islink(home):
if install:
print("Delete:", 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?
if os.path.islink(home):
@ -73,23 +77,4 @@ def crawl(folder):
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

Loading…
Cancel
Save