yazi and lots of stuff
This commit is contained in:
parent
7b26c73b59
commit
995a7247ed
72 changed files with 8598 additions and 71 deletions
|
@ -13,8 +13,8 @@
|
|||
listener = [
|
||||
{
|
||||
timeout = "30";
|
||||
on-timeout = "systemd-ac-power || light -S 0 && light -s razer/0003:1532:02B6.0004/backlight -S 0";
|
||||
on-resume = "systemd-ac-power || light -I && light -s razer/0003:1532:02B6.0004/backlight -S 40";
|
||||
on-timeout = "systemd-ac-power || light -S 0 && light -s razer/0003:1532:02B6.0003/backlight -S 0";
|
||||
on-resume = "systemd-ac-power || light -I && light -s razer/0003:1532:02B6.0003/backlight -S 40";
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -30,8 +30,8 @@
|
|||
# ac power timers
|
||||
{
|
||||
timeout = "60";
|
||||
on-timeout = "systemd-ac-power && light -S 0 && light -s razer/0003:1532:02B6.0004/backlight -S 0";
|
||||
on-resume = "systemd-ac-power && light -I && light -s razer/0003:1532:02B6.0004/backlight -S 40";
|
||||
on-timeout = "systemd-ac-power && light -S 0 && light -s razer/0003:1532:02B6.0003/backlight -S 0";
|
||||
on-resume = "systemd-ac-power && light -I && light -s razer/0003:1532:02B6.0003/backlight -S 40";
|
||||
}
|
||||
|
||||
{ timeout = "180";
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
programs = {
|
||||
waybar = {
|
||||
enable = true;
|
||||
|
@ -22,13 +21,10 @@
|
|||
|
||||
spawn-at-startup = [
|
||||
{ command = ["maestral_qt"]; }
|
||||
# { command = ["xwayland-satellite" ":0"]; }
|
||||
{ command = ["clipse" "-listen"]; }
|
||||
# { command = ["waybar"]; }
|
||||
{ command = ["swayosd-server"]; }
|
||||
{ command = ["plexamp"]; }
|
||||
{ command = [ "systemctl --user restart waybar.service mako.service hypridle.service xwayland-satellite.service" ]; }
|
||||
# { command = ["hypridle"]; }
|
||||
{ command = [ "systemctl" "--user" "restart" "waybar.service" "mako.service" "hypridle.service" "xwayland-satellite.service" ]; }
|
||||
];
|
||||
|
||||
workspaces = {
|
||||
|
@ -60,18 +56,18 @@
|
|||
outputs = {
|
||||
"eDP-1" = {
|
||||
mode = {
|
||||
height = 2560;
|
||||
width = 1600;
|
||||
width = 2560;
|
||||
height = 1600;
|
||||
};
|
||||
background-color = "#000000";
|
||||
scale = 1;
|
||||
variable-refresh-rate = true;
|
||||
};
|
||||
|
||||
"PNP(BNQ) BenQ PD2725U N2N00414019" = {
|
||||
mode = {
|
||||
height = 3840;
|
||||
width = 2160;
|
||||
refresh = 59.997;
|
||||
width = 3840;
|
||||
height = 2160;
|
||||
};
|
||||
background-color = "#000000";
|
||||
scale = 1;
|
||||
|
@ -174,6 +170,11 @@
|
|||
open-floating = true; }
|
||||
];
|
||||
|
||||
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 && shikanectl switch desk-clam";
|
||||
};
|
||||
|
||||
binds = with config.lib.niri.actions; let
|
||||
wez = spawn "wezterm" "--config-file" "/home/emenel/.config/wezterm/launcher.lua" "start" "--always-new-process";
|
||||
wezlaunch = wez "--class" "launcher";
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
age
|
||||
figlet
|
||||
ffmpeg-full
|
||||
|
||||
ouch
|
||||
pinentry
|
||||
gcr
|
||||
gnutar
|
||||
|
@ -22,6 +22,7 @@
|
|||
zip
|
||||
stdenv
|
||||
tldr
|
||||
glow
|
||||
delta
|
||||
htop
|
||||
gnupg
|
||||
|
@ -37,7 +38,8 @@
|
|||
coreutils
|
||||
binutils
|
||||
editorconfig-core-c
|
||||
openssl.out
|
||||
openssl
|
||||
exiftool
|
||||
libsecret
|
||||
samba4Full
|
||||
shellcheck
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "shikane";
|
||||
ExecStart = "${pkgs.shikane}/bin/shikane";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -6,14 +6,71 @@
|
|||
package = inputs.yazi.packages.x86_64-linux.default;
|
||||
initLua = ../../homes/emenel/dotfiles/dot_config/yazi/init.lua;
|
||||
keymap = {
|
||||
input.prepend_keymap = [
|
||||
{ on = "<C-d>"; run = "shell 'ripdrag \"$@\" -x 2>/dev/null &' --confirm"; }
|
||||
manager.prepend_keymap = [
|
||||
{ on = ["c" "d"]; run = "shell 'ripdrag \"$@\" -x 2>/dev/null &' --confirm"; desc = "drag selection";}
|
||||
{ on = "y"; run = ["shell 'for path in \"$@\"; do echo \"file://$path\"; done | wl-copy -t text/uri-list'\n" "yank"]; }
|
||||
{ on = ["g" "r"]; run = "shell 'ya emit cd \"$(git rev-parse --show-toplevel)\"'\n"; }
|
||||
{ on = ["g" "r"]; run = "shell 'ya emit cd \"$(git rev-parse --show-toplevel)\"'\n"; desc = "go to top of git repo"; }
|
||||
{ on = ["t" "p"]; run = "plugin toggle-view parent"; desc = "Toggle parent"; }
|
||||
{ on = ["t" "c"]; run = "plugin toggle-view current"; desc = "Toggle current"; }
|
||||
{ on = ["t" "r"]; run = "plugin toggle-view preview"; desc = "Toggle preview"; }
|
||||
{ on = "<C-t>"; run ="tab_create"; }
|
||||
{ on = "<C-w>"; run ="tab_close"; }
|
||||
{ on = "<C-A-right>"; run ="tab_switch 1 --relative"; }
|
||||
{ on = "<C-A-left>"; run ="tab_switch -1 --relative"; }
|
||||
{ on = "<Tab>"; run = "spot"; desc = "Spot hovered file"; }
|
||||
{ on = "M"; run = "plugin mount"; }
|
||||
{ on = "p"; run = "plugin smart-paste"; desc = "Paste into the hovered directory or CWD"; }
|
||||
{ on = "<Esc>"; run = "close"; desc = "cancel input"; }
|
||||
];
|
||||
};
|
||||
settings = {
|
||||
manager = {
|
||||
sort_dir_first = false;
|
||||
};
|
||||
opener = {
|
||||
edit = [
|
||||
{ run = "em \"$@\""; }
|
||||
];
|
||||
extract = [
|
||||
{ run = "ouch d -y \"%*\""; desc = "Extract here with ouch"; for = "windows"; }
|
||||
{ run = "ouch d -y \"$@\""; desc = "Extract here with ouch"; for = "unix"; }
|
||||
];
|
||||
};
|
||||
plugin = {
|
||||
append_previewers = [
|
||||
{ name = "*"; run = "file-extra-metadata"; }
|
||||
{ name = "*.md"; run = "glow"; }
|
||||
{ mime = "{image,audio,video}/*"; run = "mediainfo";}
|
||||
{ mime = "application/x-subrip"; run = "mediainfo";}
|
||||
|
||||
# Archive previewer
|
||||
{ mime = "application/*zip"; run = "ouch"; }
|
||||
{ mime = "application/x-tar"; run = "ouch"; }
|
||||
{ mime = "application/x-bzip2"; run = "ouch"; }
|
||||
{ mime = "application/x-7z-compressed"; run = "ouch"; }
|
||||
{ mime = "application/x-rar"; run = "ouch"; }
|
||||
{ mime = "application/x-xz"; run = "ouch"; }
|
||||
];
|
||||
append_spotters = [
|
||||
{ name = "*"; run = "file-extra-metadata"; }
|
||||
];
|
||||
prepend_fetchers = [
|
||||
{
|
||||
id = "git";
|
||||
name = "*";
|
||||
run = "git";
|
||||
}
|
||||
{
|
||||
id = "git";
|
||||
name = "*/";
|
||||
run = "git";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile."yazi/theme.toml".source = ../../homes/emenel/dotfiles/dot_config/yazi/theme.toml;
|
||||
xdg.configFile."yazi/flavors".source = ../../homes/emenel/dotfiles/dot_config/yazi/flavors;
|
||||
xdg.configFile."yazi/plugins".source = ../../homes/emenel/dotfiles/dot_config/yazi/plugins;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue