xinitrc/.config/srandrd.conf

18 lines
529 B
Plaintext
Raw Normal View History

2016-03-23 23:24:32 +00:00
#!/bin/bash
maptouchscreen() {
# maptouchscreen <name> <output>
local name="$1" # <name> should be a full name from the output of `xinput list`
local output="$2" # <output> should be an xrandr output name
xinput --map-to-output "$name" "$output"
}
2016-03-23 23:24:32 +00:00
setpasink() {
# setpasink <name>
# Find a unique string in the output of `pacmd list short` to use for <name>
pacmd set-default-sink "$(pactl list sinks short | grep "$1" | grep -o "^\S\+")"
}
# shellcheck source=/dev/null
source ~/.config/srandrd.d/"$(hostname)".conf