Skip to content

Instantly share code, notes, and snippets.

View ChrisRenfrow's full-sized avatar

Chris Renfrow ChrisRenfrow

View GitHub Profile
;; The following elisp automates switching my emacs theme between my preferred light and dark themes
;; based on my system color-scheme preference.
;; Specify light and dark (day and night) themes
(setq cr/day-theme 'modus-operandi
cr/night-theme 'modus-vivendi)
(defun cr/set-theme-by-gsettings-color-scheme ()
"Sets the Doom Emacs theme based on the gsettings color-scheme preference"
(let ((prefer-dark (string= "'prefer-dark'"
@ChrisRenfrow
ChrisRenfrow / mullmix.fish
Last active December 13, 2023 22:21
A simple-ish fish script for randomly selecting a new Mullvad relay from those available.
function mullmix
# Locally scoped function
function usage
echo "$_ - Randomly set a new mullvad relay from the list of available relays"
echo "Usage: $_ [-h|--help] [COUNTRY]"
echo " -h, --help: Display this message"
echo " COUNTRY: a two-letter country code, e.g. \"us\". If provided, $_ will only select relays from this country."
# Delete self to avoid potential conflicts
functions -e usage
end

Keybase proof

I hereby claim:

  • I am chrisrenfrow on github.
  • I am crenfrow (https://keybase.io/crenfrow) on keybase.
  • I have a public key ASBS9GfRJc8NIFFWKw9-Tmzq6RVUbnHTmPYQkrY3i43YCAo

To claim this, I am signing this object: