-
Notifications
You must be signed in to change notification settings - Fork 0
/
set-theme
executable file
·36 lines (28 loc) · 1.22 KB
/
set-theme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p mustache-go
#: Change colour scheme for supported apps.
TEMPLATE_NAME=${1:-default}
DOTDIR=~/github/dotWombat
CONFIGDIR=${DOTDIR}/.config
THEMEDIR=~/github/schemes/base16
THEMEFILE=${THEMEDIR}/${TEMPLATE_NAME}.yaml
# foot
FOOT_THEME_DIR=${CONFIGDIR}/foot
mustache ${THEMEFILE} ${FOOT_THEME_DIR}/tinted.mustache > ${FOOT_THEME_DIR}/colours.ini
# textadept
echo MY TEXTADEPT THEMEING IS CURRENTLY IGNORED
TEXTADEPT_THEME_DIR=${CONFIGDIR}/textadept/themes
mustache ${THEMEFILE} ${TEXTADEPT_THEME_DIR}/tinted.lua.mustache > ${TEXTADEPT_THEME_DIR}/tinted.lua
# waybar
WAYBAR_THEME_DIR=${CONFIGDIR}/waybar
mustache ${THEMEFILE} ${WAYBAR_THEME_DIR}/style.css.mustache > ${WAYBAR_THEME_DIR}/style.css
# sway
SWAY_THEME_DIR=${CONFIGDIR}/sway
mustache ${THEMEFILE} ${SWAY_THEME_DIR}/tinted.mustache > ${SWAY_THEME_DIR}/colours
# starship
STARSHIP_THEME_DIR=${CONFIGDIR}/starship
mustache ${THEMEFILE} ${STARSHIP_THEME_DIR}/starship.toml.mustache > ${STARSHIP_THEME_DIR}/starship.toml
# amys_launcher
AMYS_LAUNCHER_THEME_DIR=~/github/bin
mustache ${THEMEFILE} ${AMYS_LAUNCHER_THEME_DIR}/amys-launcher.mustache > ${AMYS_LAUNCHER_THEME_DIR}/amys-launcher
chmod +x ${AMYS_LAUNCHER_THEME_DIR}/amys-launcher