mirror of https://github.com/ericonr/dotfiles.git
General update.
- update sourcecode/.gitignore - remove ~/.cargo/bin from PATH: we no longer have anything installed there - update stow-linux.sh: remove alacritty and add tex - clean up outdated battmux script
This commit is contained in:
parent
9e000b9ec1
commit
90136a2471
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
|
||||
# taken from https://fishshell.com/docs/current/commands.html#contains
|
||||
for i in ~/.local/bin ~/.cargo/bin ~/.emacs.d/bin
|
||||
for i in ~/.local/bin ~/.emacs.d/bin
|
||||
if not contains $i $PATH
|
||||
set PATH $PATH $i
|
||||
end
|
||||
|
|
|
@ -2,3 +2,4 @@ sshfs-map/sshfs-map
|
|||
sshfs-map/sshfs-unmap
|
||||
enter-chroot/enter-chroot
|
||||
cbc-file/cbc-file
|
||||
battmux/battmux
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
stow \
|
||||
alacritty/ boxes/ doom-emacs/ embedded/ fish/ linux-utils/ media/ nvim/ \
|
||||
term-utils/ utils/ wayland/ xbps/
|
||||
boxes/ doom-emacs/ embedded/ fish/ linux-utils/ media/ nvim/ \
|
||||
term-utils/ tex/ utils/ wayland/ xbps/
|
||||
|
|
|
@ -1,46 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# from https://github.com/NerdyPepper/dotfiles
|
||||
|
||||
red="\e[31m"
|
||||
grn="\e[32m"
|
||||
ylw="\e[33m"
|
||||
cyn="\e[36m"
|
||||
blu="\e[34m"
|
||||
prp="\e[35m"
|
||||
bprp="\e[35;1m"
|
||||
rst="\e[0m"
|
||||
|
||||
icon="$( ~/scripts/get_xres color2 )"
|
||||
fg="$( ~/scripts/get_xres color7 )"
|
||||
|
||||
bat_status=""
|
||||
bat_status=$( cat /sys/class/power_supply/BAT0/capacity )
|
||||
charging_status=$( cat /sys/class/power_supply/BAT0/status )
|
||||
|
||||
health() {
|
||||
for i in {0..4}
|
||||
do
|
||||
if [[ $i -le $(( $bat_status/20 )) ]]; then
|
||||
echo -ne "#[fg=colour1]♥ "
|
||||
else
|
||||
echo -ne "#[fg=colour8]♥ "
|
||||
fi
|
||||
done
|
||||
echo
|
||||
}
|
||||
|
||||
while getopts qi options
|
||||
do
|
||||
case $options in
|
||||
i)
|
||||
echo "$bat_status $charging_status"
|
||||
;;
|
||||
q)
|
||||
if [[ "$charging_status" = *Charging* ]]; then
|
||||
echo -ne "+ $(health)"
|
||||
else
|
||||
health
|
||||
fi
|
||||
esac
|
||||
done
|
Loading…
Reference in New Issue