This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/bin/xrq

8 lines
178 B
Bash
Executable file

#!/usr/bin/env bash
if [[ -z $1 ]]; then
echo "No argument provided. Showing everything..." >&2
xrdb -query
fi
xrdb -query | sed -ne 's/.*'"$1"':\s*\(.*\)$/\1/p' | head -n 1