53 lines
1,015 B
Cheetah
53 lines
1,015 B
Cheetah
srcs=(
|
|
"${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
|
"/opt/miniconda3/etc/profile.d/conda.sh"
|
|
"$HOME/.cargo/env"
|
|
)
|
|
|
|
for fp in $srcs; do
|
|
if [[ -s "$fp" ]]; then
|
|
source "$fp"
|
|
fi
|
|
done
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/"
|
|
[ -n "$PS1" ] && \
|
|
[ -s "$BASE16_SHELL/profile_helper.sh" ] && \
|
|
source "$BASE16_SHELL/profile_helper.sh"
|
|
|
|
alias i="ipython3"
|
|
|
|
{{- 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}}
|