#!/usr/bin/env bash
# Persistent configurations that only need to be run once.
set -eux

# Set Capslock to the control key on GNOME
if hash dconf 2>/dev/null && [ -n "${DISPLAY:-}" ]; then
	dconf write /org/gnome/desktop/input-sources/xkb-options "['ctrl:nocaps']"
fi

# Generate the font configuration - Fonts must have been installed first.
if hash fc-cache 2>/dev/null; then
	fc-cache -vf ~/.fonts
fi

#!/usr/bin/env bash
# Persistent configurations that only need to be run once.
set -eux

# GNOME configuration
if hash gsettings 2>/dev/null && [ -n "${DISPLAY:-}" ]; then
	# Set Capslock to the control key on GNOME
	gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']"
fi

# Generate the font configuration - Fonts must have been installed first.
if hash fc-cache 2>/dev/null; then
	fc-cache -vf ~/.fonts
fi

Use gsettings instead of dconf for GNOME
persistent-configs: Use gsettings instead of dconf for GNOME
