lowcase homedir

This commit is contained in:
Matt Nish-Lapidus 2025-06-22 23:40:17 -04:00
parent c7069c3b78
commit 706b07fd33
9 changed files with 76 additions and 59 deletions

View file

@ -60,7 +60,7 @@
trayscale
font-manager
papers
# papers
newsflash
stirling-pdf
@ -114,13 +114,14 @@
qpwgraph
clapper
ardour
oculante
halloy
paleta
wayback
protonplus
fstl
eog
wl-color-picker
# screen recording and streaming

View file

@ -266,10 +266,10 @@ in
}
];
# switch-events = with config.lib.niri.actions; {
# lid-close.action = spawn "niri msg output eDP-1 off";
# lid-open.action = spawn "niri msg output eDP-1 on";
# };
switch-events = with config.lib.niri.actions; {
lid-close.action = spawn "niri msg output eDP-1 off";
lid-open.action = spawn "niri msg output eDP-1 on";
};
binds =
with config.lib.niri.actions;
@ -527,7 +527,7 @@ in
};
"Mod+Shift+Alt+P" = {
hotkey-overlay.title = "Turn Laptop Display On";
action = spawn "niri" "msg" "output" "eDP-1" "on";
action = spawn "niri msg output eDP-1 on";
allow-when-locked = true;
};
};

View file

@ -69,8 +69,8 @@
{ on = ["c" "p"]; run = "copy path"; desc = "Copy file path"; }
{ on = ["c" "u"]; run = "unyank"; desc = "Cancel file copy"; }
{ on = ["g" "y"]; run = "cd ~/Sync"; desc = "Go to ~/Sync"; }
{ on = ["g" "p"]; run = "cd ~/Projects"; desc = "Go to ~/Projects"; }
{ on = ["g" "y"]; run = "cd ~/sync"; desc = "Go to ~/sync"; }
{ on = ["g" "p"]; run = "cd ~/projects"; desc = "Go to ~/projects"; }
{ on = ["g" "s"]; run = "cd ~/source"; desc = "Go to ~/source"; }
{ on = "p"; run = "plugin smart-paste"; }
@ -166,7 +166,7 @@
};
plugin = {
prepend_preloaders = [
{ name = "/home/emenel/Mounts/**"; run = "noop"; }
{ name = "/home/emenel/mounts/**"; run = "noop"; }
{ name = "/mnt/**"; run = "noop"; }
# Office Documents

View file

@ -149,3 +149,19 @@ rules = [
]
# : }}}
[icon]
dirs = [
{ name = ".config", text = "" },
{ name = ".git", text = "" },
{ name = "desktop", text = "" },
{ name = "documents", text = "" },
{ name = "downloads", text = "" },
{ name = "library", text = "" },
{ name = "movies", text = "" },
{ name = "music", text = "" },
{ name = "pictures", text = "" },
{ name = "sync", text = "" },
{ name = "videos", text = "" },
]

View file

@ -45,7 +45,7 @@ pref_by_location:setup({
-- show_hidden: true|false (Optional) https://yazi-rs.github.io/docs/configuration/yazi#mgr.show_hidden
-- Match any folder with name "Downloads"
{ location = ".*/Downloads", sort = { "mtime", reverse = true, dir_first = false }, linemode = "time_and_size" },
{ location = ".*/downloads", sort = { "mtime", reverse = true, dir_first = false }, linemode = "time_and_size" },
},
})

View file

@ -1,7 +1,7 @@
local function setup()
ps.sub("cd", function()
local cwd = cx.active.current.cwd
if cwd:ends_with("Downloads") then
if cwd:ends_with("downloads") then
ya.mgr_emit("sort", { "mtime", reverse = true, dir_first = false })
else
ya.mgr_emit("sort", { "alphabetical", reverse = false, dir_first = true })