#!/usr/bin/env bash # Runs whenever the colour scheme or accent changes. # # $1 scheme: "dark" or "light" # $2 accent: blue, orchid, teal, green, amber, orange, rose or slate # # Copy to ~/.config/panama/hooks/theme-set and make it executable. Anything in # theme-set.d/ runs too, in sorted order, so several things can react without # fighting over one file. # # A failure here is reported and stepped over: it will never cost you a theme # change. scheme="$1" accent="$2" # For example: repaint something Panama does not know about. # printf 'set-theme %s\n' "$scheme" | nc -U "$HOME/.local/share/some-app/socket"