drop wsl and devterm (closes #1)
This commit is contained in:
parent
fc831dbc7f
commit
6040cac5f8
7 changed files with 9 additions and 164 deletions
|
@ -3,7 +3,7 @@
|
|||
{{- $hostname := output "scutil" "--get" "ComputerName" | trim -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $choices := list "wsl" "devterm" "personal" "work" -}}
|
||||
{{- $choices := list "personal" "work" -}}
|
||||
{{- $hosttype := promptChoiceOnce . "hosttype" "What type of host are you on" $choices -}}
|
||||
|
||||
{{ $name := promptString "name" -}}
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
{{- if eq .hosttype "devterm" }}
|
||||
["ttyscheme"]
|
||||
type = "git-repo"
|
||||
url = "https://github.com/kolunmi/ttyscheme.git"
|
||||
refreshPeriod = "168h"
|
||||
{{- end }}
|
||||
[".config/zellij/plugins/room.wasm"]
|
||||
type = "file"
|
||||
url = "https://github.com/rvcas/room/releases/latest/download/room.wasm"
|
||||
|
|
|
@ -9,6 +9,3 @@
|
|||
zcompile "$zcompdump"
|
||||
fi
|
||||
} &!
|
||||
|
||||
# this seems like the easiest way to get a wsl startup script to work
|
||||
2>/dev/null 1>/dev/null mpd
|
||||
|
|
|
@ -62,41 +62,6 @@ done
|
|||
|
||||
alias devlog="cd ~/projects/personal/devlog && hx logs/$(date '+%Y-%m-%d').gmi && cd -"
|
||||
|
||||
{{- if eq .chezmoi.hostname "devterm" }}
|
||||
function battery() {
|
||||
upower -i /org/freedesktop/UPower/devices/battery_axp20x_battery
|
||||
}
|
||||
|
||||
function battery_percentage() {
|
||||
battery | grep 'percentage' | awk '{print $2}'
|
||||
}
|
||||
|
||||
function battery_time_to_empty() {
|
||||
battery | grep 'time to empty' | awk '{print $4, $5}'
|
||||
}
|
||||
|
||||
export LPDEST=devterm_printer
|
||||
alias receipt="lp"
|
||||
|
||||
function receipt_feed () {
|
||||
echo -e "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" > /tmp/DEVTERM_PRINTER_IN
|
||||
}
|
||||
|
||||
function brightness_half {
|
||||
brightnessctl set 5
|
||||
}
|
||||
|
||||
function brightness_max {
|
||||
brightnessctl set 9
|
||||
}
|
||||
|
||||
function brightness_min {
|
||||
brightnessctl set 1
|
||||
}
|
||||
|
||||
# ttyscheme
|
||||
{{- end -}}
|
||||
|
||||
{{ if eq .hosttype "work" "personal" -}}
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
eval "$(direnv hook zsh)"
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
pid_file "~/.config/mpd/mpd.pid"
|
||||
playlist_directory "~/.config/mpd/playlists"
|
||||
|
||||
music_directory "http://anonymous@wren.local:5005/music"
|
||||
|
||||
database {
|
||||
plugin "proxy"
|
||||
host "wren.local"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "pulse"
|
||||
name "spleen"
|
||||
server "/mnt/wslg/PulseServer"
|
||||
}
|
|
@ -2,20 +2,7 @@
|
|||
|
||||
set -e
|
||||
|
||||
{{ if eq .hosttype "devterm" -}}
|
||||
sudo apt install \
|
||||
brightnessctl \
|
||||
git \
|
||||
libncurses-dev \
|
||||
libssl-dev \
|
||||
lynx \
|
||||
ripgrep \
|
||||
tree \
|
||||
wget \
|
||||
zsh \
|
||||
-y
|
||||
|
||||
{{ else if eq .hosttype "personal" -}}
|
||||
{{ if eq .hosttype "personal" -}}
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
brew install \
|
||||
|
@ -52,19 +39,6 @@ nvm use 22
|
|||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
uv tool install --force --python python3.12 aider-chat@latest
|
||||
|
||||
{{ else if eq .hosttype "wsl" -}}
|
||||
sudo apt update
|
||||
sudo apt install \
|
||||
build-essential \
|
||||
clang \
|
||||
libssl-dev \
|
||||
pkg-config \
|
||||
ripgrep \
|
||||
tree \
|
||||
wget \
|
||||
yazi \
|
||||
-y
|
||||
|
||||
{{ else if eq .hosttype "work" -}}
|
||||
{{ join .chezmoi.sourceDir "encrypted_work_packages.age" | include | decrypt -}}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue