mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-02-04 06:32:03 +00:00
Use dotter
This commit is contained in:
6
config/joshuto/bookmarks.toml
Normal file
6
config/joshuto/bookmarks.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
bookmark = [
|
||||
{ key = "r", path = "/" },
|
||||
{ key = "e", path = "/etc" },
|
||||
|
||||
{ key = "h", path = "~/" },
|
||||
]
|
||||
51
config/joshuto/joshuto.toml
Normal file
51
config/joshuto/joshuto.toml
Normal file
@@ -0,0 +1,51 @@
|
||||
numbered_command = false
|
||||
|
||||
use_trash = true
|
||||
watch_files = true
|
||||
xdg_open = false
|
||||
xdg_open_fork = false
|
||||
|
||||
|
||||
[display]
|
||||
# default, hsplit
|
||||
mode = "default"
|
||||
|
||||
automatically_count_files = false
|
||||
collapse_preview = true
|
||||
# ratios for parent view (optional), current view and preview
|
||||
column_ratio = [1, 4, 4]
|
||||
scroll_offset = 6
|
||||
show_borders = true
|
||||
show_hidden = false
|
||||
show_icons = true
|
||||
tilde_in_titlebar = true
|
||||
# none, absolute, relative
|
||||
line_number_style = "none"
|
||||
|
||||
# size, mtime, user, gourp, perm. can be combined with |.
|
||||
# `none` to disable, `all` to enable all
|
||||
# all and none can't be combined with other options
|
||||
linemode = "size"
|
||||
|
||||
[display.sort]
|
||||
# lexical, mtime, natural, size, ext
|
||||
sort_method = "natural"
|
||||
case_sensitive = false
|
||||
directories_first = true
|
||||
reverse = false
|
||||
|
||||
[preview]
|
||||
max_preview_size = 2097152 # 2MB
|
||||
preview_script = "~/.config/joshuto/preview_file.sh" # make sure it's marked as executable
|
||||
|
||||
[search]
|
||||
# insensitive, sensitive, smart
|
||||
string_case_sensitivity = "insensitive"
|
||||
# see above
|
||||
glob_case_sensitivity = "sensitive"
|
||||
# see above
|
||||
fzf_case_sensitivity = "insensitive"
|
||||
|
||||
[tab]
|
||||
# inherit, home, root
|
||||
home_page = "home"
|
||||
172
config/joshuto/keymap.toml
Normal file
172
config/joshuto/keymap.toml
Normal file
@@ -0,0 +1,172 @@
|
||||
[default_view]
|
||||
|
||||
keymap = [
|
||||
{ keys = ["escape"], command = "escape" },
|
||||
{ keys = ["ctrl+t"], command = "new_tab" },
|
||||
{ keys = ["alt+t"], command = "new_tab --cursor" },
|
||||
{ keys = ["T"], command = "new_tab --current" },
|
||||
{ keys = ["W"], command = "close_tab" },
|
||||
{ keys = ["ctrl+w"], command = "close_tab" },
|
||||
{ keys = ["q"], command = "close_tab" },
|
||||
{ keys = ["ctrl+c"], command = "quit" },
|
||||
{ keys = ["Q"], command = "quit --output-current-directory" },
|
||||
|
||||
{ keys = ["R"], command = "reload_dirlist" },
|
||||
{ keys = ["z", "h"], command = "toggle_hidden" },
|
||||
{ keys = ["ctrl+h"], command = "toggle_hidden" },
|
||||
{ keys = ["\t"], command = "tab_switch 1" },
|
||||
{ keys = ["backtab"], command = "tab_switch -1" },
|
||||
|
||||
{ keys = ["alt+1"], command = "tab_switch_index 1" },
|
||||
{ keys = ["alt+2"], command = "tab_switch_index 2" },
|
||||
{ keys = ["alt+3"], command = "tab_switch_index 3" },
|
||||
{ keys = ["alt+4"], command = "tab_switch_index 4" },
|
||||
{ keys = ["alt+5"], command = "tab_switch_index 5" },
|
||||
|
||||
{ keys = ["1"], command = "numbered_command 1" },
|
||||
{ keys = ["2"], command = "numbered_command 2" },
|
||||
{ keys = ["3"], command = "numbered_command 3" },
|
||||
{ keys = ["4"], command = "numbered_command 4" },
|
||||
{ keys = ["5"], command = "numbered_command 5" },
|
||||
{ keys = ["6"], command = "numbered_command 6" },
|
||||
{ keys = ["7"], command = "numbered_command 7" },
|
||||
{ keys = ["8"], command = "numbered_command 8" },
|
||||
{ keys = ["9"], command = "numbered_command 9" },
|
||||
|
||||
# arrow keys
|
||||
{ keys = ["arrow_up"], command = "cursor_move_up" },
|
||||
{ keys = ["arrow_down"], command = "cursor_move_down" },
|
||||
{ keys = ["arrow_left"], command = "cd .." },
|
||||
{ keys = ["arrow_right"], command = "open" },
|
||||
{ keys = ["\n"], command = "open" },
|
||||
{ keys = ["home"], command = "cursor_move_home" },
|
||||
{ keys = ["end"], command = "cursor_move_end" },
|
||||
{ keys = ["page_up"], command = "cursor_move_page_up" },
|
||||
{ keys = ["page_down"], command = "cursor_move_page_down" },
|
||||
{ keys = ["ctrl+u"], command = "cursor_move_page_up 0.5" },
|
||||
{ keys = ["ctrl+d"], command = "cursor_move_page_down 0.5" },
|
||||
{ keys = ["ctrl+b"], command = "cursor_move_page_up" },
|
||||
{ keys = ["ctrl+f"], command = "cursor_move_page_down" },
|
||||
|
||||
# vim-like keybindings
|
||||
{ keys = ["j"], command = "cursor_move_down" },
|
||||
{ keys = ["k"], command = "cursor_move_up" },
|
||||
{ keys = ["h"], command = "cd .." },
|
||||
{ keys = ["l"], command = "open" },
|
||||
{ keys = ["g", "g"], command = "cursor_move_home" },
|
||||
{ keys = ["G"], command = "cursor_move_end" },
|
||||
{ keys = ["r"], command = "open_with" },
|
||||
|
||||
{ keys = ["H"], command = "cursor_move_page_home" },
|
||||
{ keys = ["L"], command = "cursor_move_page_middle" },
|
||||
{ keys = ["M"], command = "cursor_move_page_end" },
|
||||
|
||||
{ keys = ["["], command = "parent_cursor_move_up" },
|
||||
{ keys = ["]"], command = "parent_cursor_move_down" },
|
||||
|
||||
{ keys = ["c", "d"], command = ":cd " },
|
||||
{ keys = ["d", "d"], command = "cut_files" },
|
||||
{ keys = ["y", "y"], command = "copy_files" },
|
||||
{ keys = ["y", "n"], command = "copy_filename" },
|
||||
{ keys = ["y", "."], command = "copy_filename_without_extension" },
|
||||
{ keys = ["y", "p"], command = "copy_filepath" },
|
||||
{ keys = ["y", "a"], command = "copy_filepath --all-selected=true" },
|
||||
{ keys = ["y", "d"], command = "copy_dirpath" },
|
||||
|
||||
{ keys = ["p", "l"], command = "symlink_files --relative=false" },
|
||||
{ keys = ["p", "L"], command = "symlink_files --relative=true" },
|
||||
|
||||
{ keys = ["delete"], command = "delete_files" },
|
||||
{ keys = ["d", "D"], command = "delete_files" },
|
||||
|
||||
{ keys = ["p", "p"], command = "paste_files" },
|
||||
{ keys = ["p", "o"], command = "paste_files --overwrite=true" },
|
||||
|
||||
{ keys = ["a"], command = "rename_append" },
|
||||
{ keys = ["A"], command = "rename_prepend" },
|
||||
|
||||
{ keys = ["f", "t"], command = ":touch " },
|
||||
|
||||
{ keys = [" "], command = "select --toggle=true" },
|
||||
{ keys = ["t"], command = "select --all=true --toggle=true" },
|
||||
{ keys = ["V"], command = "toggle_visual" },
|
||||
|
||||
{ keys = ["w"], command = "show_tasks --exit-key=w" },
|
||||
{ keys = ["b", "b"], command = "bulk_rename" },
|
||||
{ keys = ["="], command = "set_mode" },
|
||||
|
||||
{ keys = [":"], command = ":" },
|
||||
{ keys = [";"], command = ":" },
|
||||
|
||||
{ keys = ["'"], command = ":shell " },
|
||||
{ keys = ["m", "k"], command = ":mkdir " },
|
||||
{ keys = ["c", "w"], command = ":rename " },
|
||||
|
||||
{ keys = ["/"], command = ":search " },
|
||||
{ keys = ["|"], command = ":search_inc " },
|
||||
{ keys = ["\\"], command = ":search_glob " },
|
||||
{ keys = ["S"], command = "search_fzf" },
|
||||
{ keys = ["C"], command = "subdir_fzf" },
|
||||
|
||||
{ keys = ["n"], command = "search_next" },
|
||||
{ keys = ["N"], command = "search_prev" },
|
||||
|
||||
{ keys = ["s", "r"], command = "sort reverse" },
|
||||
{ keys = ["s", "l"], command = "sort lexical" },
|
||||
{ keys = ["s", "m"], command = "sort mtime" },
|
||||
{ keys = ["s", "n"], command = "sort natural" },
|
||||
{ keys = ["s", "s"], command = "sort size" },
|
||||
{ keys = ["s", "e"], command = "sort ext" },
|
||||
|
||||
{ keys = ["m", "s"], command = "linemode size" },
|
||||
{ keys = ["m", "m"], command = "linemode mtime" },
|
||||
{ keys = ["m", "M"], command = "linemode size | mtime" },
|
||||
{ keys = ["m", "u"], command = "linemode user" },
|
||||
{ keys = ["m", "U"], command = "linemode user | group" },
|
||||
{ keys = ["m", "p"], command = "linemode perm" },
|
||||
|
||||
{ keys = ["g", "r"], command = "cd /" },
|
||||
{ keys = ["g", "c"], command = "cd ~/.config" },
|
||||
{ keys = ["g", "d"], command = "cd ~/Downloads" },
|
||||
{ keys = ["g", "e"], command = "cd /etc" },
|
||||
{ keys = ["g", "h"], command = "cd ~/" },
|
||||
{ keys = ["?"], command = "help" },
|
||||
]
|
||||
|
||||
[task_view]
|
||||
|
||||
keymap = [
|
||||
# arrow keys
|
||||
{ keys = ["arrow_up"], command = "cursor_move_up" },
|
||||
{ keys = ["arrow_down"], command = "cursor_move_down" },
|
||||
{ keys = ["home"], command = "cursor_move_home" },
|
||||
{ keys = ["end"], command = "cursor_move_end" },
|
||||
|
||||
# vim-like keybindings
|
||||
{ keys = ["j"], command = "cursor_move_down" },
|
||||
{ keys = ["k"], command = "cursor_move_up" },
|
||||
{ keys = ["g", "g"], command = "cursor_move_home" },
|
||||
{ keys = ["G"], command = "cursor_move_end" },
|
||||
|
||||
{ keys = ["w"], command = "show_tasks" },
|
||||
{ keys = ["escape"], command = "show_tasks" },
|
||||
]
|
||||
|
||||
[help_view]
|
||||
|
||||
keymap = [
|
||||
# arrow keys
|
||||
{ keys = ["arrow_up"], command = "cursor_move_up" },
|
||||
{ keys = ["arrow_down"], command = "cursor_move_down" },
|
||||
{ keys = ["home"], command = "cursor_move_home" },
|
||||
{ keys = ["end"], command = "cursor_move_end" },
|
||||
|
||||
# vim-like keybindings
|
||||
{ keys = ["j"], command = "cursor_move_down" },
|
||||
{ keys = ["k"], command = "cursor_move_up" },
|
||||
{ keys = ["g", "g"], command = "cursor_move_home" },
|
||||
{ keys = ["G"], command = "cursor_move_end" },
|
||||
|
||||
{ keys = ["w"], command = "show_tasks" },
|
||||
{ keys = ["escape"], command = "show_tasks" },
|
||||
]
|
||||
229
config/joshuto/mimetype.toml
Normal file
229
config/joshuto/mimetype.toml
Normal file
@@ -0,0 +1,229 @@
|
||||
[class]
|
||||
audio_default = [
|
||||
{ command = "mpv", args = [
|
||||
"--",
|
||||
] },
|
||||
{ command = "mediainfo", confirm_exit = true },
|
||||
]
|
||||
|
||||
image_default = [
|
||||
{ command = "qimgv", args = [
|
||||
"--",
|
||||
], fork = true, silent = true },
|
||||
{ command = "krita", args = [
|
||||
"--",
|
||||
], fork = true, silent = true },
|
||||
{ command = "exiftool", confirm_exit = true },
|
||||
{ command = "swappy", args = [
|
||||
"-f",
|
||||
], fork = true },
|
||||
]
|
||||
|
||||
video_default = [
|
||||
{ command = "mpv", args = [
|
||||
"--",
|
||||
], fork = true, silent = true },
|
||||
{ command = "mediainfo", confirm_exit = true },
|
||||
{ command = "mpv", args = [
|
||||
"--mute",
|
||||
"on",
|
||||
"--",
|
||||
], fork = true, silent = true },
|
||||
]
|
||||
|
||||
text_default = [
|
||||
{ command = "micro" },
|
||||
{ command = "gedit", fork = true, silent = true },
|
||||
{ command = "bat", args = [
|
||||
"--paging=always",
|
||||
] },
|
||||
]
|
||||
|
||||
reader_default = [{ command = "evince", fork = true, silent = true }]
|
||||
|
||||
libreoffice_default = [{ command = "libreoffice", fork = true, silent = true }]
|
||||
|
||||
[extension]
|
||||
|
||||
## image formats
|
||||
avif.inherit = "image_default"
|
||||
bmp.inherit = "image_default"
|
||||
gif.inherit = "image_default"
|
||||
heic.inherit = "image_default"
|
||||
jpeg.inherit = "image_default"
|
||||
jpe.inherit = "image_default"
|
||||
jpg.inherit = "image_default"
|
||||
pgm.inherit = "image_default"
|
||||
png.inherit = "image_default"
|
||||
ppm.inherit = "image_default"
|
||||
webp.inherit = "image_default"
|
||||
|
||||
svg.app_list = [
|
||||
{ command = "inkview", fork = true, silent = true },
|
||||
{ command = "inkscape", fork = true, silent = true },
|
||||
]
|
||||
tiff.app_list = [
|
||||
{ command = "qimgv", fork = true, silent = true },
|
||||
{ command = "krita", fork = true, silent = true },
|
||||
]
|
||||
|
||||
## audio formats
|
||||
flac.inherit = "audio_default"
|
||||
m4a.inherit = "audio_default"
|
||||
mp3.inherit = "audio_default"
|
||||
ogg.inherit = "audio_default"
|
||||
wav.inherit = "audio_default"
|
||||
|
||||
## video formats
|
||||
avi.inherit = "video_default"
|
||||
av1.inherit = "video_default"
|
||||
flv.inherit = "video_default"
|
||||
mkv.inherit = "video_default"
|
||||
m4v.inherit = "video_default"
|
||||
mov.inherit = "video_default"
|
||||
mp4.inherit = "video_default"
|
||||
ts.inherit = "video_default"
|
||||
webm.inherit = "video_default"
|
||||
wmv.inherit = "video_default"
|
||||
|
||||
## text formats
|
||||
build.inherit = "text_default"
|
||||
c.inherit = "text_default"
|
||||
cmake.inherit = "text_default"
|
||||
conf.inherit = "text_default"
|
||||
cpp.inherit = "text_default"
|
||||
css.inherit = "text_default"
|
||||
csv.inherit = "text_default"
|
||||
cu.inherit = "text_default"
|
||||
ebuild.inherit = "text_default"
|
||||
eex.inherit = "text_default"
|
||||
env.inherit = "text_default"
|
||||
ex.inherit = "text_default"
|
||||
exs.inherit = "text_default"
|
||||
go.inherit = "text_default"
|
||||
h.inherit = "text_default"
|
||||
hpp.inherit = "text_default"
|
||||
hs.inherit = "text_default"
|
||||
html.inherit = "text_default"
|
||||
ini.inherit = "text_default"
|
||||
java.inherit = "text_default"
|
||||
js.inherit = "text_default"
|
||||
json.inherit = "text_default"
|
||||
kt.inherit = "text_default"
|
||||
lua.inherit = "text_default"
|
||||
log.inherit = "text_default"
|
||||
md.inherit = "text_default"
|
||||
micro.inherit = "text_default"
|
||||
ninja.inherit = "text_default"
|
||||
py.inherit = "text_default"
|
||||
rkt.inherit = "text_default"
|
||||
rs.inherit = "text_default"
|
||||
scss.inherit = "text_default"
|
||||
sh.inherit = "text_default"
|
||||
srt.inherit = "text_default"
|
||||
svelte.inherit = "text_default"
|
||||
toml.inherit = "text_default"
|
||||
tsx.inherit = "text_default"
|
||||
txt.inherit = "text_default"
|
||||
vim.inherit = "text_default"
|
||||
xml.inherit = "text_default"
|
||||
yaml.inherit = "text_default"
|
||||
yml.inherit = "text_default"
|
||||
|
||||
# archive formats
|
||||
7z.app_list = [
|
||||
{ command = "7z", args = [
|
||||
"x",
|
||||
], confirm_exit = true },
|
||||
{ command = "file-roller", fork = true, silent = true },
|
||||
]
|
||||
bz2.app_list = [
|
||||
{ command = "tar", args = [
|
||||
"-xvjf",
|
||||
], confirm_exit = true },
|
||||
{ command = "file-roller", fork = true, silent = true },
|
||||
]
|
||||
gz.app_list = [
|
||||
{ command = "tar", args = [
|
||||
"-xvzf",
|
||||
], confirm_exit = true },
|
||||
{ command = "file-roller", fork = true, silent = true },
|
||||
]
|
||||
tar.app_list = [
|
||||
{ command = "tar", args = [
|
||||
"-xvf",
|
||||
], confirm_exit = true },
|
||||
{ command = "file-roller", fork = true, silent = true },
|
||||
]
|
||||
tgz.app_list = [
|
||||
{ command = "tar", args = [
|
||||
"-xvzf",
|
||||
], confirm_exit = true },
|
||||
{ command = "file-roller", fork = true, silent = true },
|
||||
]
|
||||
rar.app_list = [
|
||||
{ command = "unrar", args = [
|
||||
"x",
|
||||
], confirm_exit = true },
|
||||
{ command = "file-roller", fork = true, silent = true },
|
||||
]
|
||||
xz.app_list = [
|
||||
{ command = "tar", args = [
|
||||
"-xvJf",
|
||||
], confirm_exit = true },
|
||||
{ command = "file-roller", fork = true, silent = true },
|
||||
]
|
||||
zip.app_list = [
|
||||
{ command = "unzip", confirm_exit = true },
|
||||
{ command = "file-roller", fork = true, silent = true },
|
||||
]
|
||||
|
||||
# misc formats
|
||||
aup.app_list = [{ command = "audacity", fork = true, silent = true }]
|
||||
|
||||
m3u.app_list = [
|
||||
{ command = "micro" },
|
||||
{ command = "mpv" },
|
||||
{ command = "gedit", fork = true, silent = true },
|
||||
{ command = "bat", confirm_exit = true },
|
||||
]
|
||||
|
||||
odt.inherit = "libreoffice_default"
|
||||
odf.inherit = "libreoffice_default"
|
||||
ods.inherit = "libreoffice_default"
|
||||
odp.inherit = "libreoffice_default"
|
||||
|
||||
doc.inherit = "libreoffice_default"
|
||||
docx.inherit = "libreoffice_default"
|
||||
xls.inherit = "libreoffice_default"
|
||||
xlsx.inherit = "libreoffice_default"
|
||||
ppt.inherit = "libreoffice_default"
|
||||
pptx.inherit = "libreoffice_default"
|
||||
|
||||
pdf.inherit = "reader_default"
|
||||
|
||||
kra.app_list = [{ command = "krita", fork = true, silent = true }]
|
||||
kdenlive.app_list = [{ command = "kdenlive", fork = true, silent = true }]
|
||||
|
||||
tex.app_list = [
|
||||
{ command = "micro" },
|
||||
{ command = "gedit", fork = true, silent = true },
|
||||
{ command = "bat", confirm_exit = true },
|
||||
{ command = "pdflatex" },
|
||||
]
|
||||
|
||||
torrent.app_list = [{ command = "transmission-gtk" }]
|
||||
|
||||
[mimetype]
|
||||
|
||||
# application/octet-stream
|
||||
[mimetype.application.subtype.octet-stream]
|
||||
inherit = "video_default"
|
||||
|
||||
# text/*
|
||||
[mimetype.text]
|
||||
inherit = "text_default"
|
||||
|
||||
# text/*
|
||||
[mimetype.video]
|
||||
inherit = "video_default"
|
||||
111
config/joshuto/theme.toml
Normal file
111
config/joshuto/theme.toml
Normal file
@@ -0,0 +1,111 @@
|
||||
##########################################
|
||||
## Tabs
|
||||
##########################################
|
||||
|
||||
# Inactive tabs
|
||||
[tabs.inactive]
|
||||
|
||||
# Active tabs
|
||||
[tabs.active]
|
||||
invert = true
|
||||
|
||||
##########################################
|
||||
## File List - Selections
|
||||
##########################################
|
||||
|
||||
# Selected files (standard selection)
|
||||
[selection]
|
||||
fg = "light_yellow"
|
||||
bold = true
|
||||
|
||||
# Files selected in current visual mode
|
||||
[visual_mode_selection]
|
||||
fg = "light_red"
|
||||
bold = true
|
||||
|
||||
[selection.prefix]
|
||||
prefix = " "
|
||||
size = 2
|
||||
|
||||
##########################################
|
||||
## File List - System File Types
|
||||
##########################################
|
||||
|
||||
# Basic style, used for regular files (and also device files and FIFOs)
|
||||
[regular]
|
||||
fg = "white"
|
||||
|
||||
# For directories
|
||||
[directory]
|
||||
fg = "light_blue"
|
||||
bold = true
|
||||
|
||||
# For symbolic links
|
||||
[link]
|
||||
fg = "cyan"
|
||||
bold = true
|
||||
|
||||
# For socket files
|
||||
[socket]
|
||||
fg = "light_magenta"
|
||||
bold = true
|
||||
|
||||
##########################################
|
||||
## File List - Exceptional Files
|
||||
##########################################
|
||||
|
||||
# Files marked as executable
|
||||
[executable]
|
||||
fg = "light_green"
|
||||
bold = true
|
||||
|
||||
# Invalid symbolic links (pointing to non-existing target)
|
||||
[link_invalid]
|
||||
fg = "red"
|
||||
bold = true
|
||||
|
||||
##########################################
|
||||
## File list - Override style by extension
|
||||
##########################################
|
||||
# This sections allows to override the basic
|
||||
# style with a specific style for the file's
|
||||
# extension.
|
||||
|
||||
[ext]
|
||||
|
||||
bmp.fg = "yellow"
|
||||
gif.fg = "yellow"
|
||||
heic.fg = "yellow"
|
||||
jpg.fg = "yellow"
|
||||
jpeg.fg = "yellow"
|
||||
pgm.fg = "yellow"
|
||||
png.fg = "yellow"
|
||||
ppm.fg = "yellow"
|
||||
svg.fg = "yellow"
|
||||
|
||||
wav.fg = "magenta"
|
||||
flac.fg = "magenta"
|
||||
mp3.fg = "magenta"
|
||||
amr.fg = "magenta"
|
||||
|
||||
avi.fg = "magenta"
|
||||
flv.fg = "magenta"
|
||||
m3u.fg = "magenta"
|
||||
m4a.fg = "magenta"
|
||||
m4v.fg = "magenta"
|
||||
mkv.fg = "magenta"
|
||||
mov.fg = "magenta"
|
||||
mp4.fg = "magenta"
|
||||
mpg.fg = "magenta"
|
||||
rmvb.fg = "magenta"
|
||||
webm.fg = "magenta"
|
||||
wmv.fg = "magenta"
|
||||
|
||||
7z.fg = "red"
|
||||
bz2.fg = "red"
|
||||
gz.fg = "red"
|
||||
rar.fg = "red"
|
||||
tar.fg = "red"
|
||||
tgz.fg = "red"
|
||||
xz.fg = "red"
|
||||
zip.fg = "red"
|
||||
Reference in New Issue
Block a user