starting to set up devterm config
This commit is contained in:
parent
543dee6e69
commit
b4c2428833
4 changed files with 86 additions and 79 deletions
53
home/dot_zshrc.tmpl
Normal file
53
home/dot_zshrc.tmpl
Normal file
|
@ -0,0 +1,53 @@
|
|||
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}}
|
Loading…
Add table
Add a link
Reference in a new issue