auto up 01:59:20 up 7:21, 2 users, load average: 0.17, 0.29, 0.37

This commit is contained in:
2025-11-06 01:59:21 +01:00
parent 25a8f64577
commit 7cc3d26c3b
5 changed files with 64 additions and 15 deletions

View File

@@ -5,6 +5,23 @@ require("gpg"):setup {
delete_after = true,
}
require("git"):setup()
-- https://github.com/MasouShizuka/projects.yazi
require("projects"):setup({
save = {
method = "lua",
},
last = {
update_after_save = true,
update_after_load = true,
load_after_start = true,
},
notify = {
enable = false,
},
})
function Linemode:line_info()
local time = math.floor(self._file.cha.mtime or 0)
if time == 0 then

View File

@@ -10,11 +10,13 @@ prepend_keymap = [
# Chmod in yazi
{on = [ "c", "m" ],run = "plugin chmod",desc = "Chmod on selected files"},
{on = [ "g", "E" ],run = "plugin gpg",desc = "Gpg the hovered file"},
{on = [ "q" ],run = "plugin projects quit",desc = "Quit with save"},
{on = [ "M" ],run = "plugin mount",desc = "Quit with save"},
# Recover the last delted file
{ on = ["u"], run = "plugin restore", desc = "Restore last deleted files/folders" },
{ on = ["T"], run = "plugin toggle-pane max-preview", desc = "Restore last deleted files/folders" },
# Get the size of the cwd
{ on = [ "\\", "s" ], run = "plugin what-size", desc = "Calc size of selection or cwd" },

View File

@@ -25,14 +25,34 @@ hash = "92fbb5483657fa7976cdf4e0104e18e0"
[[plugin.deps]]
use = "Ascyii/gpg"
rev = "fe565fe"
hash = "bf2fadffef4965e1824aa1a246c10a6f"
rev = "58fccf8"
hash = "b6a8d73d6f0be9aeb9be2077b062ca84"
[[plugin.deps]]
use = "Rolv-Apneseth/starship"
rev = "a63550b"
hash = "c2021386289a0cbb3e152a052f67c177"
[[plugin.deps]]
use = "MasouShizuka/projects"
rev = "a5e33db"
hash = "3de26efded35814ba3e55e28f1c389a4"
[[plugin.deps]]
use = "yazi-rs/plugins:mount"
rev = "8f1d971"
hash = "4fccaaf10c36dc2466e2438a386ff017"
[[plugin.deps]]
use = "yazi-rs/plugins:git"
rev = "8f1d971"
hash = "63b6c222bf2103b3023389dde5e2ecfe"
[[plugin.deps]]
use = "yazi-rs/plugins:toggle-pane"
rev = "8f1d971"
hash = "8a7c58225816a163a6e8730c0adafbc8"
[[flavor.deps]]
use = "dangooddd/kanagawa"
rev = "a0b1d9d"

View File

@@ -34,3 +34,13 @@ rules = [
append_rules = [
{ name = "*", use = ["edit", "open", "image", "play"]}
]
[[plugin.prepend_fetchers]]
id = "git"
name = "*"
run = "git"
[[plugin.prepend_fetchers]]
id = "git"
name = "*/"
run = "git"

View File

@@ -31,7 +31,7 @@ alias ff="~/projects/scripts/hyprfix.sh" # Fix the touchpad not working on the l
alias sp="spotify_player"
alias ne="newsboat"
alias po="castero"
alias h="zsh"
alias h="~/projects/scripts/shell/helper.sh"
alias tw="torify w3m duckduckgo.com"
alias rmbak="mkdir -p ~/.local/share/Trash/files && find . -name '.bak.*' -exec mv '{}' ~/.local/share/Trash/files \;"
alias f="~/projects/scripts/search.sh"