From ac9b042fa941ef0a20aaed3d2db2703ee8292251 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Sun, 4 Sep 2022 21:08:35 -0700 Subject: [PATCH] :lipstick: Added nerdicons to scripts --- aliases | 2 ++ scripts/batnotify | 2 +- scripts/bgit | 6 +++--- scripts/dependencycheck | 6 +++++- zshrc.txt | 4 ++-- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/aliases b/aliases index 34addf24..8e730978 100644 --- a/aliases +++ b/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" diff --git a/scripts/batnotify b/scripts/batnotify index ab19e9b7..bdc97c97 100755 --- a/scripts/batnotify +++ b/scripts/batnotify @@ -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; diff --git a/scripts/bgit b/scripts/bgit index 57ea3d1e..5cb10222 100755 --- a/scripts/bgit +++ b/scripts/bgit @@ -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 diff --git a/scripts/dependencycheck b/scripts/dependencycheck index 14ed7eaf..74732853 100755 --- a/scripts/dependencycheck +++ b/scripts/dependencycheck @@ -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 } diff --git a/zshrc.txt b/zshrc.txt index 2ef6ef1b..0276120a 100644 --- a/zshrc.txt +++ b/zshrc.txt @@ -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'