dictd wordnet refinements yazi
This commit is contained in:
parent
92fa4bb82d
commit
077f91494b
8 changed files with 141 additions and 32 deletions
|
@ -143,6 +143,7 @@
|
|||
gnome-online-accounts-gtk
|
||||
gnome-calculator
|
||||
gnome-calendar
|
||||
evolution
|
||||
wordbook
|
||||
|
||||
protonup
|
||||
|
@ -197,6 +198,7 @@
|
|||
"org/gnome/desktop/interface" = {
|
||||
color-scheme = "prefer-dark";
|
||||
gtk-theme = lib.mkForce "Colloid-Grey-Dark-Nord";
|
||||
clock-format = "12h";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -229,6 +231,25 @@
|
|||
xdg.configFile."wpaperd/config.toml".source = ../../homes/emenel/dotfiles/dot_config/wpaperd/config.toml;
|
||||
home.file.".local/wallpapers".source = ../../assets/wallpapers;
|
||||
|
||||
xdg.mime = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"application/pdf" = [ "zen-twilight.desktop" ];
|
||||
};
|
||||
associations = {
|
||||
added = {
|
||||
"application/pdf" = [ "zen-twilight.desktop" ];
|
||||
};
|
||||
removed = {
|
||||
"application/pdf" = [ "chromium-browser.desktop" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
xdg.desktopEntries = {
|
||||
rmpc = {
|
||||
name = "rmpc (music player)";
|
||||
|
|
|
@ -187,7 +187,7 @@ in
|
|||
{ app-id = "Create new document — Krita"; }
|
||||
{ app-id = "polkit-kde-authentication-agent-1"; }
|
||||
{ app-id = "Zoom Workdplace"; title = ".*menu.*"; }
|
||||
{ app-id = "r#\"librewolf$\"# title=\"^Picture-in-Picture$\""; }
|
||||
{ app-id = "org.gnome.Evolution"; title = "Appointment$"; }
|
||||
];
|
||||
open-floating = true;
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
settings = {
|
||||
manager = {
|
||||
sort_dir_first = false;
|
||||
linemode = "mtime";
|
||||
linemode = "time_and_size";
|
||||
show_symlink = true;
|
||||
};
|
||||
opener = {
|
||||
|
|
|
@ -10,7 +10,7 @@ require("dir-rules"):setup()
|
|||
require("restore"):setup({
|
||||
position = { "center", w = 70, h = 40 },
|
||||
show_confirm = true,
|
||||
})
|
||||
})
|
||||
|
||||
Status:children_add(function()
|
||||
local h = cx.active.current.hovered
|
||||
|
@ -18,28 +18,28 @@ Status:children_add(function()
|
|||
|
||||
local btime_formatted = nil
|
||||
if h and h.cha and h.cha.btime then
|
||||
local timestamp_num = tonumber(h.cha.btime)
|
||||
if timestamp_num and timestamp_num > 0 then
|
||||
btime_formatted = os.date("%Y-%m-%d %H:%M", math.floor(timestamp_num))
|
||||
end
|
||||
local timestamp_num = tonumber(h.cha.btime)
|
||||
if timestamp_num and timestamp_num > 0 then
|
||||
btime_formatted = os.date("%Y-%m-%d %H:%M", math.floor(timestamp_num))
|
||||
end
|
||||
end
|
||||
|
||||
local mtime_formatted = nil
|
||||
if h and h.cha and h.cha.mtime then
|
||||
local timestamp_num = tonumber(h.cha.mtime)
|
||||
if timestamp_num and timestamp_num > 0 then
|
||||
mtime_formatted = os.date("%Y-%m-%d %H:%M", math.floor(timestamp_num))
|
||||
end
|
||||
local timestamp_num = tonumber(h.cha.mtime)
|
||||
if timestamp_num and timestamp_num > 0 then
|
||||
mtime_formatted = os.date("%Y-%m-%d %H:%M", math.floor(timestamp_num))
|
||||
end
|
||||
end
|
||||
|
||||
if btime_formatted then
|
||||
table.insert(elements, ui.Span("B:"):fg("cyan"))
|
||||
table.insert(elements, ui.Span(btime_formatted.. " "):fg("blue"))
|
||||
table.insert(elements, ui.Span("B:"):fg("cyan"))
|
||||
table.insert(elements, ui.Span(btime_formatted.. " "):fg("blue"))
|
||||
end
|
||||
|
||||
if mtime_formatted then
|
||||
table.insert(elements, ui.Span("M:"):fg("cyan"))
|
||||
table.insert(elements, ui.Span(mtime_formatted.. " "):fg("blue"))
|
||||
table.insert(elements, ui.Span("M:"):fg("cyan"))
|
||||
table.insert(elements, ui.Span(mtime_formatted.. " "):fg("blue"))
|
||||
end
|
||||
|
||||
return ui.Line(elements)
|
||||
|
@ -67,3 +67,28 @@ Status:children_add(function(self)
|
|||
return ""
|
||||
end
|
||||
end, 3300, Status.LEFT)
|
||||
|
||||
|
||||
function Linemode:time_and_size()
|
||||
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
|
||||
|
||||
local size_str
|
||||
local size = self._file:size()
|
||||
if size then
|
||||
size_str = ya.readable_size(size)
|
||||
else
|
||||
-- file count for dirs
|
||||
local folder = cx.active:history(self._file.url)
|
||||
size_str = folder and tostring(#folder.files) or "-"
|
||||
end
|
||||
local size_formatted = string.format("%6s", size_str)
|
||||
|
||||
return string.format("%s %s", time, size_formatted)
|
||||
end
|
||||
|
|
|
@ -47,6 +47,57 @@ in
|
|||
enable = true;
|
||||
|
||||
keyboards = {
|
||||
raise = {
|
||||
devices = [ "/dev/input/by-id/usb-DYGMA_RAISE2_012310010BFAE7C9-if02-event-kbd" ];
|
||||
extraDefCfg = ''
|
||||
process-unmapped-keys yes
|
||||
concurrent-tap-hold yes
|
||||
allow-hardware-repeat false
|
||||
'';
|
||||
|
||||
config = ''
|
||||
(defsrc
|
||||
esc 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
caps a s d f g h j k l ; ' ret
|
||||
|
||||
lsft z x c v b n m , . / rsft
|
||||
lctl lmet lalt f23 spc f24 ralt rmet menu rctrl
|
||||
f19 f20 f21 f22)
|
||||
|
||||
${k-vars}
|
||||
|
||||
${shared-alias}
|
||||
|
||||
(defalias
|
||||
controls (layer-while-held media-controls))
|
||||
|
||||
(deflayer qwerty
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
@supesc @a @s @d f g h j k l ; ' ret
|
||||
@sp-lsft z x c v b n m , . / @sp-rsft
|
||||
lmet @controls lalt lctrl @spcnav rctrl ralt rmet menu @controls
|
||||
ret del bspc ret)
|
||||
|
||||
(deflayer navigation
|
||||
grv f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 bspc
|
||||
tab q w e r t home pgdn pgup end p [ ] \
|
||||
caps @a @s @d f g left down up right ; ' ret
|
||||
@sp-lsft z x c v b n m , . / up
|
||||
_ _ _ _ @spcnav _ _ left down right
|
||||
_ _ _ _)
|
||||
|
||||
(deflayer media-controls
|
||||
grv VolumeMute VolumeDown VolumeUp f4 MediaTrackPrevious MediaPlayPause MediaTrackNext f8 f9 f10 f11 f12 bspc
|
||||
tab q w e r t home pgdn pgup end p [ ] \
|
||||
caps @a @s @d f g MediaTrackPrevious VolumeDown VolumeUp MediaTrackNext MediaPlayPause ' ret
|
||||
@sp-lsft z x c v b n m , . / up
|
||||
lmet lmet lalt lctrl @spcnav _ _ left down right
|
||||
_ _ _ _)
|
||||
|
||||
'';
|
||||
};
|
||||
sinc = {
|
||||
devices = [ "/dev/input/by-id/usb-Keebio_Sinc_Rev._4-event-kbd"
|
||||
"/dev/input/by-id/usb-Keebio_Sinc_Rev._4-event-if02"
|
||||
|
@ -92,8 +143,8 @@ ${shared-alias}
|
|||
(deflayer media-controls
|
||||
esc VolumeMute VolumeDown VolumeUp f4 MediaTrackPrevious MediaPlayPause MediaTrackNext f8 f9 f10 f11 f12 prtsc
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = \ del home
|
||||
tab q w e r t y u i o MediaPlayPause [ ] bspc end
|
||||
@supesc _ _ _ f g MediaTrackPrevious VolumeDown VolumeUp MediaTrackNext ; ' ret pgup
|
||||
tab q w e r t y u i o p [ ] bspc end
|
||||
@supesc _ _ _ f g MediaTrackPrevious VolumeDown VolumeUp MediaTrackNext MediaPlayPause ' ret pgup
|
||||
@sp-lsft z x c v b n VolumeMute , . / @sp-rsft pgup _
|
||||
lmet lmet lalt lctrl _ rctrl ralt rmet home pgdn end)
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue