💄 Added nerdicons to scripts
This commit is contained in:
parent
a852bd47df
commit
ac9b042fa9
5 changed files with 13 additions and 7 deletions
2
aliases
2
aliases
|
|
@ -265,6 +265,8 @@ alias docker-rm-i="doas docker image rm"
|
||||||
alias docker-exec="doas docker exec -it" # use with container ID and bash
|
alias docker-exec="doas docker exec -it" # use with container ID and bash
|
||||||
|
|
||||||
# bookmarks
|
# bookmarks
|
||||||
|
# nerdfonts cheat sheet for terminal icons
|
||||||
|
alias nfcheatsheet='librewolf https://www.nerdfonts.com/cheat-sheet &'
|
||||||
alias codeberg="librewolf https://codeberg.org/ &"
|
alias codeberg="librewolf https://codeberg.org/ &"
|
||||||
alias sqlsc="links https://sqlservercentral.com"
|
alias sqlsc="links https://sqlservercentral.com"
|
||||||
alias {gp,gopherpedia}="lynx gopher://gopherpedia.com:70"
|
alias {gp,gopherpedia}="lynx gopher://gopherpedia.com:70"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
while true ; do
|
while true ; do
|
||||||
PWRLVL=$(cat /sys/class/power_supply/BAT1/capacity)
|
PWRLVL=$(cat /sys/class/power_supply/BAT1/capacity)
|
||||||
if [ "$PWRLVL" -le 15 ] ; then
|
if [ "$PWRLVL" -le 15 ] ; then
|
||||||
notify-send "Battery is at 15%!!";
|
notify-send " Battery is at 15%!!";
|
||||||
sleep 300s;
|
sleep 300s;
|
||||||
else
|
else
|
||||||
sleep 60s;
|
sleep 60s;
|
||||||
|
|
|
||||||
|
|
@ -325,13 +325,13 @@ else
|
||||||
|
|
||||||
# Let the user know what is staged for commit
|
# Let the user know what is staged for commit
|
||||||
if [[ $newfiles ]]; then
|
if [[ $newfiles ]]; then
|
||||||
echo "${txtgreen}ADDED: ${txtgreen}$newfiles"
|
echo "${txtgreen} ADDED: ${txtgreen}$newfiles"
|
||||||
fi
|
fi
|
||||||
if [[ $modified ]]; then
|
if [[ $modified ]]; then
|
||||||
echo "${txtblue}MODIFIED: ${txtblue}$modified"
|
echo "${txtblue}פֿ MODIFIED: ${txtblue}$modified"
|
||||||
fi
|
fi
|
||||||
if [[ $deleted ]]; then
|
if [[ $deleted ]]; then
|
||||||
echo "${txtred}DELETED: ${txtred}$deleted"
|
echo "${txtred} DELETED: ${txtred}$deleted"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while true
|
while true
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ set -e
|
||||||
|
|
||||||
# For styling/colorizing output
|
# For styling/colorizing output
|
||||||
txtbld=$(tput bold)
|
txtbld=$(tput bold)
|
||||||
|
txtgreen=${txtbld}$(tput setaf 2)
|
||||||
txtred=${txtbld}$(tput setaf 1)
|
txtred=${txtbld}$(tput setaf 1)
|
||||||
txtwhite=${txtbld}$(tput setaf 7)
|
txtwhite=${txtbld}$(tput setaf 7)
|
||||||
|
|
||||||
|
|
@ -17,7 +18,7 @@ function dependencycheck()
|
||||||
|
|
||||||
for ((i = 0; i < numdependencies; i++)) ; do
|
for ((i = 0; i < numdependencies; i++)) ; do
|
||||||
if ! command -v "${dependencies[$i]}" &> /dev/null ; then
|
if ! command -v "${dependencies[$i]}" &> /dev/null ; then
|
||||||
echo "${txtred}dependency not met: ${dependencies[$i]}${txtwhite}"
|
echo "${txtred} dependency not met: ${dependencies[$i]}${txtwhite}"
|
||||||
missingdependencies=$((missingdependencies+1))
|
missingdependencies=$((missingdependencies+1))
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
@ -25,6 +26,9 @@ function dependencycheck()
|
||||||
if [ $missingdependencies -gt 0 ] ; then
|
if [ $missingdependencies -gt 0 ] ; then
|
||||||
echo "${txtred}Please install needed dependencies${txtwhite}"
|
echo "${txtred}Please install needed dependencies${txtwhite}"
|
||||||
exit 1
|
exit 1
|
||||||
|
# comment out if using in other scripts
|
||||||
|
else
|
||||||
|
echo "${txtgreen} All dependencies met!"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,8 @@ precmd() { vcs_info }
|
||||||
|
|
||||||
# git info/styling for prompt
|
# git info/styling for prompt
|
||||||
zstyle ':vcs_info:*' check-for-changes true
|
zstyle ':vcs_info:*' check-for-changes true
|
||||||
zstyle ':vcs_info:*' unstagedstr '%B%F{yellow} +'
|
zstyle ':vcs_info:*' unstagedstr '%B%F{yellow} '
|
||||||
zstyle ':vcs_info:*' stagedstr '%B%F{green} ✓'
|
zstyle ':vcs_info:*' stagedstr '%B%F{green} '
|
||||||
zstyle ':vcs_info:git:*' formats '%b%u%c'
|
zstyle ':vcs_info:git:*' formats '%b%u%c'
|
||||||
zstyle ':vcs_info:git:*' actionformats '%b|%a%u%c'
|
zstyle ':vcs_info:git:*' actionformats '%b|%a%u%c'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue