Skip to content

Commit

Permalink
add: wezterm, yazi
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerbernd committed Jan 4, 2024
1 parent 0405a87 commit 76cd2cf
Show file tree
Hide file tree
Showing 16 changed files with 1,236 additions and 430 deletions.
7 changes: 4 additions & 3 deletions joshuto/.config/joshuto/joshuto.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ directories_first = true
reverse = false

[preview]
max_preview_size = 2097152 # 2MB
# max_preview_size = 2097152 # 2MB
max_preview_size = 10485760 # 10MB
preview_script = "~/.config/joshuto/preview_file.sh" # make sure it's marked as executable
# max_preview_size = 50000097152
# preview_script = "~/.config/joshuto/preview_file.sh"
preview_shown_hook_script = "~/.config/joshuto/uberzug/on_preview_shown.sh"
preview_removed_hook_script = "~/.config/joshuto/uberzug/on_preview_removed.sh"
# preview_shown_hook_script = "~/.config/joshuto/uberzug/on_preview_shown.sh"
# preview_removed_hook_script = "~/.config/joshuto/uberzug/on_preview_removed.sh"

[tab]
# inherit, home, root
Expand Down
19 changes: 18 additions & 1 deletion joshuto/.config/joshuto/preview_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,26 @@ handle_mime() {
exit 1 ;;

## Image
image/png | image/jpeg)
chafa --size=${PREVIEW_WIDTH}x${PREVIEW_HEIGHT} "${FILE_PATH}" && exit 0
exit 1
;;

image/png | image/jpeg | image/gif)
# ## Preview as "unicode art"
# chafa --size=${PREVIEW_WIDTH}x${PREVIEW_HEIGHT} "${FILE_PATH}" && exit 0
# echo "test"
# img2sixel --size=${PREVIEW_WIDTH}x${PREVIEW_HEIGHT} "${FILE_PATH}" && exit 0
# echo "test2"

# Don't work yet:
# chafa -f iterm "${FILE_PATH}" && exit 0
# imgcat "${FILE_PATH}" && exit 0
exit 1 ;;

image/*)
## Preview as text conversion
# exiftool "${FILE_PATH}" && exit 0
exiftool "${FILE_PATH}" && exit 0
exit 0 ;;

## Video and audio
Expand Down
132 changes: 67 additions & 65 deletions setup_biltower.sh
Original file line number Diff line number Diff line change
@@ -1,69 +1,71 @@
#!/bin/sh

case "$1" in
"up")
gpg --output ./zsh/.zsh_aliases_work --decrypt ./zsh/.zsh_aliases_work.gpg
gpg --output ./gitconf-work/.gitconfig-job --decrypt ./gitconf-work/.gitconfig-job.gpg
stow -v -t $HOME i3-common \
i3-biltower \
dunst \
rofi \
picom \
gitconf \
gitconf-work \
clang-format \
prettier-format \
alacritty \
wezterm \
zsh \
nvim \
tmux \
ranger \
neofetch \
zathura \
latexmk \
starship \
fonts \
xinit \
locale \
mime-apps \
code-templates \
scripts \
joshuto \
xbindkeys \
wallpapers
;;
"down")
stow -t $HOME -v -D i3-common \
i3-biltower \
dunst \
rofi \
picom \
gitconf \
gitconf-work \
clang-format \
prettier-format \
alacritty \
wezterm \
zsh \
nvim \
tmux \
ranger \
neofetch \
zathura \
latexmk \
starship \
fonts \
xinit \
locale \
mime-apps \
code-templates \
scripts \
joshuto \
xbindkeys \
wallpapers
;;
*)
notify-send "dotfiles setup unknown argument"
;;
"up")
gpg --output ./zsh/.zsh_aliases_work --decrypt ./zsh/.zsh_aliases_work.gpg
gpg --output ./gitconf-work/.gitconfig-job --decrypt ./gitconf-work/.gitconfig-job.gpg
stow -v -t $HOME i3-common \
i3-biltower \
dunst \
rofi \
picom \
gitconf \
gitconf-work \
clang-format \
prettier-format \
alacritty \
wezterm \
zsh \
nvim \
tmux \
ranger \
neofetch \
zathura \
latexmk \
starship \
fonts \
xinit \
locale \
mime-apps \
code-templates \
scripts \
joshuto \
yazi \
xbindkeys \
wallpapers
;;
"down")
stow -t $HOME -v -D i3-common \
i3-biltower \
dunst \
rofi \
picom \
gitconf \
gitconf-work \
clang-format \
prettier-format \
alacritty \
wezterm \
zsh \
nvim \
tmux \
ranger \
neofetch \
zathura \
latexmk \
starship \
fonts \
xinit \
locale \
mime-apps \
code-templates \
scripts \
joshuto \
yazi \
xbindkeys \
wallpapers
;;
*)
notify-send "dotfiles setup unknown argument"
;;
esac
132 changes: 67 additions & 65 deletions setup_eistower.sh
Original file line number Diff line number Diff line change
@@ -1,69 +1,71 @@
#!/bin/sh

case "$1" in
"up")
gpg --output ./zsh/.zsh_aliases_work --decrypt ./zsh/.zsh_aliases_work.gpg
gpg --output ./gitconf-work/.gitconfig-job --decrypt ./gitconf-work/.gitconfig-job.gpg
stow -v -t $HOME i3-common \
i3-eistower \
dunst \
rofi \
picom \
gitconf \
gitconf-work \
clang-format \
prettier-format \
alacritty \
wezterm \
zsh \
nvim \
tmux \
ranger \
neofetch \
zathura \
latexmk \
starship \
fonts \
xinit \
locale \
mime-apps \
code-templates \
scripts \
joshuto \
xbindkeys \
wallpapers
;;
"down")
stow -t $HOME -v -D i3-common \
i3-eistower \
dunst \
rofi \
picom \
gitconf \
gitconf-work \
clang-format \
prettier-format \
alacritty \
wezterm \
zsh \
nvim \
tmux \
ranger \
neofetch \
zathura \
latexmk \
starship \
fonts \
xinit \
locale \
mime-apps \
code-templates \
scripts \
joshuto \
xbindkeys \
wallpapers
;;
*)
notify-send "dotfiles setup unknown argument"
;;
"up")
gpg --output ./zsh/.zsh_aliases_work --decrypt ./zsh/.zsh_aliases_work.gpg
gpg --output ./gitconf-work/.gitconfig-job --decrypt ./gitconf-work/.gitconfig-job.gpg
stow -v -t $HOME i3-common \
i3-eistower \
dunst \
rofi \
picom \
gitconf \
gitconf-work \
clang-format \
prettier-format \
alacritty \
wezterm \
zsh \
nvim \
tmux \
ranger \
neofetch \
zathura \
latexmk \
starship \
fonts \
xinit \
locale \
mime-apps \
code-templates \
scripts \
joshuto \
yazi \
xbindkeys \
wallpapers
;;
"down")
stow -t $HOME -v -D i3-common \
i3-eistower \
dunst \
rofi \
picom \
gitconf \
gitconf-work \
clang-format \
prettier-format \
alacritty \
wezterm \
zsh \
nvim \
tmux \
ranger \
neofetch \
zathura \
latexmk \
starship \
fonts \
xinit \
locale \
mime-apps \
code-templates \
scripts \
joshuto \
yazi \
xbindkeys \
wallpapers
;;
*)
notify-send "dotfiles setup unknown argument"
;;
esac
Loading

0 comments on commit 76cd2cf

Please sign in to comment.