diff options
author | David Runge <dave@sleepmap.de> | 2017-06-26 15:15:18 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2017-06-26 15:15:18 +0200 |
commit | bd16148e70be4b2a98928016a6d380ad48111c12 (patch) | |
tree | 9972fa84d39d1eb8d4ce7412e650290d857d1652 | |
parent | dc15bc9bc5fbea35937b9dc6103c96d736ba554c (diff) | |
parent | ffcf2ac4656ab3100c4b662a561b7f44a21c4a77 (diff) | |
download | dotfiles-bd16148e70be4b2a98928016a6d380ad48111c12.tar.gz dotfiles-bd16148e70be4b2a98928016a6d380ad48111c12.tar.bz2 dotfiles-bd16148e70be4b2a98928016a6d380ad48111c12.tar.xz dotfiles-bd16148e70be4b2a98928016a6d380ad48111c12.zip |
Merge branch 'master' of sleepmap.de:config/dotfiles
* 'master' of sleepmap.de:config/dotfiles:
.xprofile: Removing setting of de layout as default.
.ssh/config: Adding studio related configs. Renaming github.com shortcut to github.
bin/pulse2jack: Adding script to create and default JACK sink for pulse. Can also unload the modules again.
-rw-r--r-- | .ssh/config | 54 | ||||
-rw-r--r-- | .xprofile | 3 | ||||
-rwxr-xr-x | bin/pulse2jack | 32 |
3 files changed, 85 insertions, 4 deletions
diff --git a/.ssh/config b/.ssh/config index 76216ee..3eb25cc 100644 --- a/.ssh/config +++ b/.ssh/config @@ -161,6 +161,45 @@ Host trevor ControlMaster auto ControlPath ~/.ssh/socket-%r@%h:%p +Host atrevor + Hostname trevor.ak.tu-berlin.de + Port 22 + user admin + ForwardAgent yes + IdentityFile ~/.ssh/id_rsa + IdentitiesOnly yes + ServerAliveInterval 120 + Compression yes + ForwardX11Trusted yes + ControlMaster auto + ControlPath ~/.ssh/socket-%r@%h:%p + +Host matrix324 + Hostname matrix324.ak.tu-berlin.de + Port 22 + user matrix + ForwardAgent yes + IdentityFile ~/.ssh/id_rsa + IdentitiesOnly yes + ServerAliveInterval 120 + Compression yes + ForwardX11Trusted yes + ControlMaster auto + ControlPath ~/.ssh/socket-%r@%h:%p + +Host amatrix324 + Hostname matrix324.ak.tu-berlin.de + Port 22 + user admin + ForwardAgent yes + IdentityFile ~/.ssh/id_rsa + IdentitiesOnly yes + ServerAliveInterval 120 + Compression yes + ForwardX11Trusted yes + ControlMaster auto + ControlPath ~/.ssh/socket-%r@%h:%p + # EN325 Host taunus Hostname taunus.ak.tu-berlin.de @@ -175,6 +214,19 @@ Host taunus ControlMaster auto ControlPath ~/.ssh/socket-%r@%h:%p +Host ataunus + Hostname taunus.ak.tu-berlin.de + Port 22 + user admin + ForwardAgent yes + IdentityFile ~/.ssh/id_rsa + IdentitiesOnly yes + ServerAliveInterval 120 + Compression yes + ForwardX11Trusted yes + ControlMaster auto + ControlPath ~/.ssh/socket-%r@%h:%p + # EN326 Host wfs Hostname 130.149.23.38 @@ -326,7 +378,7 @@ Host gitlab.tubit.tu-berlin.de ControlPath ~/.ssh/socket-%r@%h:%p # github -Host github.com +Host github Hostname github.com Port 22 User git @@ -1,8 +1,5 @@ #!/usr/bin/env bash -#X11 keyboard maps -setxkbmap -layout de & - # use .Xmodmap if [[ -f ~/.Xmodmap ]]; then /usr/bin/xmodmap ~/.Xmodmap & diff --git a/bin/pulse2jack b/bin/pulse2jack new file mode 100755 index 0000000..73ede01 --- /dev/null +++ b/bin/pulse2jack @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +set -euo pipefail +IFS=$'\n\t' + + +function jack_module_on() +{ + echo "Enabling JACK sink and source." + /usr/bin/pacmd load-module module-jack-sink channels=2 + /usr/bin/pacmd load-module module-jack-source channels=2 + /usr/bin/pacmd set-default-sink jack_out + /usr/bin/pacmd set-default-source jack_in +} + +function jack_module_off() +{ + echo "Disabling JACK sink and source." + /usr/bin/pacmd unload-module module-jack-sink + /usr/bin/pacmd unload-module module-jack-source +} + +case "$1" in + "on") + jack_module_on + ;; + "off") + jack_module_off + ;; +esac + +exit 0 |