mirror of
https://github.com/Ascyii/dotfiles.git
synced 2025-12-31 22:44:24 -05:00
Some improvements
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
color_theme = "Default"
|
||||
|
||||
#* If the theme set background should be shown, set to False if you want terminal background transparency.
|
||||
theme_background = True
|
||||
theme_background = False
|
||||
|
||||
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
|
||||
truecolor = True
|
||||
@@ -57,10 +57,10 @@ update_ms = 2000
|
||||
|
||||
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
|
||||
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
|
||||
proc_sorting = "memory"
|
||||
proc_sorting = "pid"
|
||||
|
||||
#* Reverse sorting order, True or False.
|
||||
proc_reversed = False
|
||||
proc_reversed = True
|
||||
|
||||
#* Show processes as a tree.
|
||||
proc_tree = True
|
||||
|
||||
11
cli/dot-config/yazi/init.lua
Normal file
11
cli/dot-config/yazi/init.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function Linemode:line_info()
|
||||
local time = math.floor(self._file.cha.mtime or 0)
|
||||
if time == 0 then
|
||||
time = ""
|
||||
elseif os.date("%Y", time) == os.date("%Y") then
|
||||
time = os.date("%b %d %H:%M", time)
|
||||
else
|
||||
time = os.date("%b %d %Y", time)
|
||||
end
|
||||
return time
|
||||
end
|
||||
@@ -36,13 +36,12 @@ append_keymap = [
|
||||
{ on = [ "g", "u" ], run = "cd ~/projects/university", desc = "Go to university folder" },
|
||||
{ on = [ "g", "n" ], run = "cd ~/nixos", desc = "Go to nixos folder" },
|
||||
{ on = [ "g", "p" ], run = "cd ~/projects", desc = "Go to projects folder" },
|
||||
{ on = [ "g", "w" ], run = "cd ~/workspace_local", desc = "Go to workspace" },
|
||||
{ on = [ "g", "w" ], run = "cd ~/workspace", desc = "Go to workspace" },
|
||||
{ on = [ "g", "e" ], run = "cd ~/dotfiles", desc = "Go to dotfiles" },
|
||||
{ on = [ "g", "r" ], run = "cd /", desc = "Go to root" },
|
||||
{ on = [ "g", "b" ], run = "cd /shared", desc = "Go to hdd" },
|
||||
{ on = [ "g", "l" ], run = "cd ~/.local", desc = "Go to Local" },
|
||||
{ on = [ "g", "b" ], run = "cd ~/webdav/notes", desc = "Go to notes" },
|
||||
{ on = [ "g", "o" ], run = "cd ~/Documents", desc = "Go to Docs" },
|
||||
{ on = [ "g", "a" ], run = "cd ~/.cache", desc = "Go to Cache" },
|
||||
{ on = [ "g", "t" ], run = "cd ~/.local/share/Trash", desc = "Go to Trash" },
|
||||
{ on = [ "g", "U" ], run = "cd ~/projects/university/pdfs", desc = "Go to Uni PDF" },
|
||||
|
||||
@@ -5,13 +5,13 @@ hash = "ee71543790f0ce3951161045a3787abd"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:chmod"
|
||||
rev = "d1c8baa"
|
||||
rev = "9a52857"
|
||||
hash = "8ad3e90b079190b4905f24a44f4ca06b"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "boydaihungst/restore"
|
||||
rev = "dc40509"
|
||||
hash = "e7e377f9b1bbaca4a2e5d9ec9709ac4d"
|
||||
rev = "2161735"
|
||||
hash = "901741afba1979739b4650324265162e"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "pirafrank/what-size"
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
[mgr]
|
||||
sort_by = "extension"
|
||||
sort_by = "mtime"
|
||||
linemode = "line_info"
|
||||
sort_reverse = true
|
||||
sort_dir_first = true
|
||||
show_hidden = false
|
||||
mouse_events = []
|
||||
|
||||
[opener]
|
||||
imagefeh = [
|
||||
{ run = 'gtk4-launch fehcustom.desktop "$@"', orphan = true, for = "unix" },
|
||||
]
|
||||
play = [
|
||||
{ run = 'mpv "$@"', orphan = true, for = "unix" },
|
||||
]
|
||||
@@ -23,7 +24,7 @@ prepend_rules = [
|
||||
{ name = "*.html", use = [ "open" ] },
|
||||
]
|
||||
rules = [
|
||||
{ mime = "image/*", use = "imagefeh" },
|
||||
{ mime = "image/*", use = "open" },
|
||||
{ mime = "text/*", use = "edit" },
|
||||
{ mime = "video/*", use = "play" },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user