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