xinitrc/.config/srandrd.conf

18 lines
529 B
Bash
Executable File

#!/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"
}
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