#!/usr/bin/env bash # Warning: Many other files in these configs depend on this script. Do not # rename it or remove it from ~/.configs_pointer/bin/ unnecessarily __print_color_help() { cat < "$tmp" mv -f "$tmp" "$ALACRITTY_COLO" } __change_vimiv_colors() { if [[ -w "$VIMIV_CONF" ]]; then local tmp="$(mktemp)" awk -v c="$COLOR_SCHEME" '/^\s*style = /{ $3=c } 1' "$VIMIV_CONF" > "$tmp" mv -f "$tmp" "$VIMIV_CONF" fi } case "$1" in -t | --tone) __query_color_tone ;; -c | --colorscheme) echo "$COLOR_SCHEME" ;; -q | --query) __print_current_colors ;; -h | --help) __print_color_help ;; light | gruvboxlight) __change_colors_to "base16-gruvbox-light-hard" ;; dracula) __change_colors_to "base16-dracula" ;; github) __change_colors_to "base16-github" ;; dark | gruvboxdark) __change_colors_to "base16-gruvbox-dark-pale" ;; *) __print_color_help ;; esac