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/os-specific/arch-linux/scripts/get-colors.bash

10 lines
147 B
Bash

#!/usr/bin/env bash
get_color()
{
XR_COLOR_DEF=$(grep "#define base$1 #" ~/.Xresources.colors)
echo ${XR_COLOR_DEF:16}
}
export -f get_color