Skip to content

Commit

Permalink
fixed joshuto preview
Browse files Browse the repository at this point in the history
  • Loading branch information
echoriiku committed Oct 17, 2022
1 parent d4b5a16 commit 7e2cae7
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dot_files/mpv/watch_later/**
dot_config/xplr/plugins/icons/dot_git
dot_config/lazygit/state.yml
dot_config/lazygit/state.yml
dot_config/mpv/watch_later
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<img title="neet" src="https://i.postimg.cc/pX5J4x0v/avnruq.png">

## Riiku's dotfiles
# Riiku's dotfiles

## Main tools

- Terminal: [Alacritty](https://github.com/alacritty/alacritty)
- Shell: [Fish](https://github.com/fish-shell/fish-shell)
Expand Down
2 changes: 1 addition & 1 deletion dot_config/alacritty/alacritty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ window:

# Font settings #
font:
size: 13
size: 12
offset:
y: 1
x: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ IFS=$'\n'
## 7 | image | Display the file directly as an image

FILE_PATH=""
PREVIEW_WIDTH=10
PREVIEW_WIDTH=2
PREVIEW_HEIGHT=10
PREVIEW_X_COORD=0
PREVIEW_Y_COORD=0
Expand Down Expand Up @@ -107,6 +107,16 @@ handle_extension() {
## exiftool "${FILE_PATH}" && exit 5
## exit 1;;

rs|toml|sh)
echo "hello: ${PREVIEW_WIDTH}"
bat "${FILE_PATH}" && exit 5
;;

## Markdown
md|markdown)
glow "${FILE_PATH}" && exit 5
;;

## BitTorrent
torrent)
transmission-show -- "${FILE_PATH}" && exit 5
Expand Down
2 changes: 1 addition & 1 deletion dot_config/joshuto/joshuto.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ automatically_count_files = false
collapse_preview = true

# ratios for parent view (optional), current view and preview
column_ratio = [1, 9, 10]
column_ratio = [3, 9, 9]
scroll_offset = 6
show_borders = true
show_hidden = false
Expand Down
9 changes: 3 additions & 6 deletions dot_config/joshuto/mimetype.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ audio_default = [
]

image_default = [
{ command = "mpv", args = [ "--" ] , fork = true, silent = true },
{ command = "qimgv", args = [ "--" ], fork = true, silent = true },
{ command = "krita", args = [ "--" ], fork = true, silent = true },
{ command = "exiftool", confirm_exit = true },
Expand All @@ -21,9 +22,7 @@ video_default = [
]

text_default = [
{ command = "micro" },
{ command = "hx" },
{ command = "gedit", fork = true, silent = true },
{ command = "bat", args = [ "--paging=always" ] },
]

Expand Down Expand Up @@ -167,9 +166,8 @@ aup.app_list = [
{ command = "audacity", fork = true, silent = true } ]

m3u.app_list = [
{ command = "micro" },
{ command = "hx" },
{ command = "mpv" },
{ command = "gedit", fork = true, silent = true },
{ command = "bat", confirm_exit = true } ]

odt.inherit = "libreoffice_default"
Expand All @@ -194,8 +192,7 @@ kdenlive.app_list = [
]

tex.app_list = [
{ command = "micro" },
{ command = "gedit", fork = true, silent = true },
{ command = "hx" },
{ command = "bat", confirm_exit = true },
{ command = "pdflatex" } ]

Expand Down
4 changes: 2 additions & 2 deletions dot_config/mpv/mpv.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ osd-shadow-color = "#33262626"
osd-shadow-offset = 1.25

# Subtitles
slang = 'en,eng,pt-br,pt' # automatically select these subtitles (decreasing priority)
slang = 'pt-br,en,eng,pt' # automatically select these subtitles (decreasing priority)
sub-font = 'Gotham Book'
sub-auto = fuzzy
sub-fix-timing = yes
Expand Down Expand Up @@ -75,7 +75,7 @@ deband = yes
gpu-context = x11
hwdec = nvdec
hwdec-codecs = all
geometry = 60%
geometry = 85%

#MISC
save-position-on-quit
Expand Down

0 comments on commit 7e2cae7

Please sign in to comment.