This commit is contained in:
Miguel Palhas
2025-11-24 13:21:00 +00:00
parent 5098792587
commit 265d97cecc
11 changed files with 88 additions and 33 deletions
+2 -1
View File
@@ -15,12 +15,13 @@
../common/programs/zen-browser.nix
../common/programs/hyprland
../common/programs/i3.nix
../common/programs/kitty.nix
../common/programs/kitty
../common/programs/syncthing.nix
../common/programs/unity.nix
../common/programs/ethui.nix
../common/programs/gpg.nix
../common/features/xdg.nix
../common/programs/3d.nix
../common/features/bluetooth.nix
./monitors.nix
];
+1
View File
@@ -17,6 +17,7 @@
./aider.nix
./cpp.nix
./claude
./yazi
];
programs = {
+27 -6
View File
@@ -44,6 +44,7 @@ in
gaps_in = 0;
gaps_out = 0;
snap = {
enabled = true;
border_overlap = true;
};
@@ -54,6 +55,7 @@ in
misc = {
disable_hyprland_logo = true;
disable_splash_rendering = true;
new_window_takes_over_fullscreen = 2;
};
xwayland = {
@@ -104,6 +106,15 @@ in
"nm-applet"
"hyprsunset"
];
workspace = [
# no gaps when only window
"w[t1], gapsout:0, gapsin:0"
"w[tg1], gapsout:0, gapsin:0"
"f[1], gapsout:0, gapsin:0"
"special:terminal, on-created-empty:[float; size 1000 800; move center] kitty, persistent:false"
"special:yazi, on-created-empty:[float; size 1000 800; move center] kitty --session sessions/yazi, persistent:false"
];
windowrulev2 = [
# imv
@@ -120,23 +131,28 @@ in
"move cursor -50% -50%, class:pavucontrol"
"size 600 600, class:pavucontrol"
# thunar
"float, class:thunar"
"move cursor -50% -50%, class:thunar"
"size 800 600, class:thunar"
# metamask
"float, class:chrome-nkbihfbeogaeaoehlefnkodbefgpgknn-.*"
# bitwarden, chrome
"float, class:chrome-nngceckbapebfimnlniiiahkandclblb-.*"
# no gaps when only window
"bordersize 0, floating:0, onworkspace:w[t1]"
"rounding 0, floating:0, onworkspace:w[t1]"
"bordersize 0, floating:0, onworkspace:w[tg1]"
"rounding 0, floating:0, onworkspace:w[tg1]"
"bordersize 0, floating:0, onworkspace:f[1]"
"rounding 0, floating:0, onworkspace:f[1]"
"move center, onworkspace:special:terminal"
"move center, onworkspace:special:yazi"
];
"$mod" = "SUPER";
bind = [
"$mod, t, exec, kitty"
"$mod, e, exec, thunar"
"$mod, v, togglefloating"
"$mod, q, killactive"
"$mod, f, fullscreen, 0"
@@ -182,6 +198,11 @@ in
"$mod, mouse_down, workspace, e+1"
"$mod, mouse_up, workspace, e-1"
# special workspaces
"$mod, x, togglespecialworkspace, terminal"
"$mod, x, centerwindow"
"$mod, e, togglespecialworkspace, yazi"
"$mod, e, centerwindow"
];
bindel = [
@@ -126,4 +126,6 @@
color15 #ffffff
'';
};
xdg.configFile."kitty/sessions".source = ./sessions;
}
+1
View File
@@ -0,0 +1 @@
launch yazi
+14
View File
@@ -0,0 +1,14 @@
{
lib,
pkgs,
config,
...
}:
{
home.packages = with pkgs; [
yazi
];
xdg.configFile."yazi/yazi.yaml".source = ./yazi.yaml;
}
+9
View File
@@ -0,0 +1,9 @@
[preview]
image_quality = 80
[opener]
pdf = [{ run = 'tdf "$@"', block = true }]
edit = [{ run = '$EDITOR "$@"', block = true }]
[open]
rules = [{ mime = "application/pdf", use = "tdf" }]
+9 -3
View File
@@ -66,10 +66,15 @@
export PATH="$HOME/.bin:$PATH"
export FOUNDRY_DISABLE_NIGHTLY_WARNING=true
# export PKG_CONFIG_PATH=$(nix eval --raw nixpkgs.openssl.dev)/lib/pkgconfig:$PKG_CONFIG_PATH
# export LIBRARY_PATH=$(nix eval --raw nixpkgs.openssl.dev)/lib:$LIBRARY_PATH
# export LD_LIBRARY_PATH=$(nix eval --raw nixpkgs.openssl.dev)/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${pkgs.icu}/lib:${pkgs.stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
IFS= read -r -d "" cwd < "$tmp"
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
rm -f -- "$tmp"
}
'';
};
@@ -120,6 +125,7 @@
eza
asdf-vm
fd
tdf
];
home.sessionVariables = {
+1 -1
View File
@@ -15,7 +15,7 @@
../common/programs/zen-browser.nix
../common/programs/hyprland
../common/programs/i3.nix
../common/programs/kitty.nix
../common/programs/kitty
../common/programs/syncthing.nix
../common/programs/unity.nix
../common/programs/gpg.nix