Skip to content

Commit

Permalink
shell/zsh: use fastfetch
Browse files Browse the repository at this point in the history
  • Loading branch information
ztlevi committed Aug 26, 2024
1 parent d57f9bb commit 075537a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config
Submodule config updated 1 files
+1 −1 shell/zsh/rc.zsh
1 change: 1 addition & 0 deletions legacy_sync_script.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
# This script is used in `shell/zsh/utils.zsh` update_my_repos. Whenver you have something you want to sync
# across machines, put the scritps here.

brew uninstall -f neofetch && brew install -f fastfetch
8 changes: 4 additions & 4 deletions shell/alacritty/LICENSE_INVENTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# License inventory

| license | packages |
| ---------- | ------------ |
| MIT | yq, neofetch |
| Apache-2.0 | alacritty |
| license | packages |
| ---------- | ------------- |
| MIT | yq, fastfetch |
| Apache-2.0 | alacritty |
9 changes: 5 additions & 4 deletions shell/alacritty/_init
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
source ${0:A:h}/../../deploy

install() {
brew install yq neofetch vivid
brew install jq yq fastfetch vivid
case $(_os) in
linux-arch)
yay --needed --noconfirm -S alacritty
Expand Down Expand Up @@ -82,10 +82,11 @@ link() {
if [[ $(_os) == "macos" ]]; then
# Increase macos font size
# I have a 2K monitor which doesn't support scaling :(
local res=$(neofetch resolution | awk '/resolution/{print $2}') # get the main monitor resolution
# get the main monitor resolution
local width=$(fastfetch -s display --format json | jq -r '.[] | .result[] | select(.primary == true) | .scaled.width')
local add_num=0
if echo $res | rg -q '2560'; then
add_num=4
if [[ $width -ge '2560' ]]; then
add_num=2
fi
local increased_font_size=$(($(yq eval '.font.size' $config_file) + $add_num))
yq eval ".font.size = $increased_font_size" $config_file --inplace
Expand Down
2 changes: 1 addition & 1 deletion shell/zsh/LICENSE_INVENTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

| license | packages |
| --- | --- |
| MIT | zinit, direnv, eza, procs, neofetch, jq, vivid, oh-my-zsh, hlissner/zsh-autopair, sd, duf |
| MIT | zinit, direnv, eza, procs, fastfetch, jq, vivid, oh-my-zsh, hlissner/zsh-autopair, sd, duf |
| Apache-2.0 | fd, bat, dust |
| BSD | shfmt, zdharma/fast-syntax-highlighting |
| Curl | curl |
Expand Down
2 changes: 1 addition & 1 deletion shell/zsh/_init
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ install() {
fi

# Other utilities
brew install shfmt shellcheck neofetch
brew install shfmt shellcheck fastfetch

# True color and Italic support https://github.com/syl20bnr/spacemacs/wiki/Terminal
if _is_callable /usr/bin/tic; then
Expand Down

0 comments on commit 075537a

Please sign in to comment.