repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
nugu/justfile
Rawset shell := [ "nu", "--commands" ]
helix_config_dir := if os_family() == "windows" { "~/AppData/Roaming/helix" } else { "~/.config/helix" }
default:
@just --list
lint:
taplo lint
open nugu.nu | nu-check --as-module --debug nugu.nu
open site.nu | nu-check --as-module --debug site.nu
open helix.nu | nu-check --as-module --debug helix.nu
open wezterm.nu | nu-check --as-module --debug wezterm.nu
open ghostty.nu | nu-check --as-module --debug ghostty.nu
fmt: lint
taplo fmt
check: fmt
use nugu.nu; nugu check
output := 'output'
show THEME:
use nugu.nu; nugu print-colors (nugu {{THEME}})
build: fmt
rm --force --recursive {{output}}
mkdir {{output}}
use nugu.nu; nugu dark | to toml | save --raw {{output}}/dark.toml
use nugu.nu; nugu light | to toml | save --raw {{output}}/light.toml
html: build
use site.nu; site html light | save --raw {{output}}/site-light.html
use site.nu; site html dark | save --raw {{output}}/site-dark.html
open: html
start {{output}}/site-dark.html
start {{output}}/site-light.html
helix: build
rm --force --recursive {{output}}/helix
mkdir {{output}}/helix
use helix.nu; helix theme dark | save --raw {{output}}/helix/nugu-dark.toml
use helix.nu; helix theme light | save --raw {{output}}/helix/nugu-light.toml
cp {{output}}/helix/nugu-dark.toml {{helix_config_dir}}/themes/nugu-dark.toml
cp {{output}}/helix/nugu-light.toml {{helix_config_dir}}/helix/themes/nugu-light.toml
try { pkill -USR1 hx }
wezterm: build
rm --force --recursive {{output}}/wezterm
mkdir {{output}}/wezterm
use wezterm.nu; wezterm theme dark | save --raw {{output}}/wezterm/palette_dark.lua
use wezterm.nu; wezterm theme light | save --raw {{output}}/wezterm/palette_light.lua
cp {{output}}/wezterm/palette_dark.lua ~/.config/wezterm/bugabinga/nugu/palette_dark.lua
cp {{output}}/wezterm/palette_light.lua ~/.config/wezterm/bugabinga/nugu/palette_light.lua
ghostty: build
rm --force --recursive {{output}}/ghostty
mkdir {{output}}/ghostty
use ghostty.nu; ghostty theme dark | save --raw {{output}}/ghostty/nugu-dark
use ghostty.nu; ghostty theme light | save --raw {{output}}/ghostty/nugu-light
mkdir ../ghostty/themes
cp {{output}}/ghostty/nugu-dark ../ghostty/themes/nugu-dark
cp {{output}}/ghostty/nugu-light ../ghostty/themes/nugu-light
install: helix wezterm ghostty