2016-03-23 23:24:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-02-16 08:29:56 +00:00
|
|
|
maptouchscreen() {
|
|
|
|
# maptouchscreen <name> <output>
|
2017-02-16 15:33:10 +00:00
|
|
|
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
|
2017-03-28 13:25:46 +00:00
|
|
|
xinput --map-to-output "$name" "$output"
|
2017-02-16 08:29:56 +00:00
|
|
|
}
|
2016-03-23 23:24:32 +00:00
|
|
|
|
2017-02-16 08:29:56 +00:00
|
|
|
setpasink() {
|
|
|
|
# setpasink <name>
|
|
|
|
# Find a unique string in the output of `pacmd list short` to use for <name>
|
2019-05-16 04:41:37 +00:00
|
|
|
pacmd set-default-sink "$(pactl list sinks short | grep "$1" | grep -o "^\S\+")"
|
2017-02-16 08:29:56 +00:00
|
|
|
}
|
|
|
|
|
2019-05-16 04:41:37 +00:00
|
|
|
# shellcheck source=/dev/null
|
|
|
|
source ~/.config/srandrd.d/"$(hostname)".conf
|