test aurora

This commit is contained in:
2026-03-20 11:28:20 -05:00
parent 1636b715b5
commit 79c8e5061b
12 changed files with 63 additions and 64 deletions

View File

@@ -127,7 +127,7 @@ bind = $mainMod, Q, killactive,
bind = $mainMod, F, exec, thunar
bind = $mainMod SHIFT, F, fullscreen
bind = $mainMod SHIFT, semicolon, exec, colorPrefix kitty -e lf
bind = $mainMod SHIFT, semicolon, exec, colorPrefix kitty -e yazi
bind = $mainMod, Insert, exec, libreoffice
@@ -263,10 +263,10 @@ windowrule = float on, match:class $kitty
windowrule = $scratchpadsize, match:class $kitty
windowrule = workspace special silent, match:class $kitty
$lf = ^(scratchpad-lf)$
windowrule = float on, match:class $lf
windowrule = $scratchpadsize, match:class $lf
windowrule = workspace special silent, match:class $lf
$files = ^(scratchpad-files)$
windowrule = float on, match:class $files
windowrule = $scratchpadsize, match:class $files
windowrule = workspace special silent, match:class $files
$cal = ^(scratchpad-cal)$
windowrule = float on, match:class $cal

View File

@@ -3,11 +3,11 @@
"scratchpads"
]
[scratchpads.lf]
[scratchpads.files]
animation = "fromTop"
command = "kitty --class scratchpad-lf lf ~"
command = "kitty --class scratchpad-files yazi ~"
lazy = true
class = "scratchpad-lf"
class = "scratchpad-files"
margin = 100
multi = true
excludes = "*"

View File

@@ -31,7 +31,7 @@
rsync
curl
(python313.withPackages (ps: with ps; [
(python314.withPackages (ps: with ps; [
gpustat
numpy
matplotlib

View File

@@ -33,22 +33,23 @@
out=''${3:-/dev/null}
if [[ ''$ext == "gif" || ''$ext == "mp4" ]]; then
yes | ${pkgs.ffmpeg}/bin/ffmpeg -i "''$img" -vframes 1 /tmp/nathan/tmp.jpg >> ''$out
cp /tmp/nathan/tmp.jpg /tmp/nathan/tmp2.jpg
pidof mpvpaper && pkill mpvpaper
${pkgs.swww}/bin/swww img /tmp/nathan/tmp.jpg -t wipe >> ''$out
sleep 0.3
hyprctl dispatch exec "${pkgs.mpvpaper}/bin/mpvpaper ALL ''$img -o loop"
rm /tmp/nathan/tmp2.jpg
yes | ${pkgs.ffmpeg}/bin/ffmpeg -i "''$img" -vframes 1 /tmp/nathan/tmp.jpg >> ''$out
cp /tmp/nathan/tmp.jpg /tmp/nathan/tmp2.jpg
pidof mpvpaper && pkill mpvpaper
${pkgs.swww}/bin/swww img /tmp/nathan/tmp.jpg -t wipe >> ''$out
sleep 0.4
hyprctl dispatch exec "${pkgs.mpvpaper}/bin/mpvpaper ALL ''$img -o loop"
rm /tmp/nathan/tmp2.jpg
else
yes | ${pkgs.ffmpeg}/bin/ffmpeg -i "''$img" /tmp/nathan/tmp.jpg >> ''$out
pidof mpvpaper && pkill mpvpaper
hyprctl dispatch exec "${pkgs.swww}/bin/swww img ''$img -t wipe" >> ''$out
fi
hyprctl dispatch exec "${pkgs.swww}/bin/swww img ''$img -t wipe" >> ''$out
fi
changeColors "''$img" "''$2" >> ''$out
'')
changeColors "''$img" "''$2" >> ''$out
'')
(pkgs.writeShellScriptBin "changeColors" ''
(pkgs.writeShellScriptBin "changeColors" ''
img=''$(realpath "''$1")
alpha=''${2:-70}
@@ -66,9 +67,9 @@
fi
colorPrefix
'')
'')
(pkgs.writeShellScriptBin "colorPrefix" ''
(pkgs.writeShellScriptBin "colorPrefix" ''
pidof firefox > /dev/null && ${pkgs.pywalfox-native}/bin/pywalfox update &
pidof kitty > /dev/null && pkill -USR1 kitty
pidof cava > /dev/null && pkill -USR1 cava
@@ -77,7 +78,7 @@
done
eval "''$@"
'')
'')
(pkgs.writeShellScriptBin "onSystemStart" ''

View File

@@ -2,16 +2,12 @@
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
options.homeconfig.hyprlock.enable = lib.options.mkOption {
options.homeconfig.hypridle.enable = lib.options.mkOption {
type = lib.types.bool;
default = false;
};
config = lib.mkIf config.homeconfig.hyprlock.enable {
programs.hyprlock = {
enable = true;
};
config = lib.mkIf config.homeconfig.hypridle.enable {
services.hypridle = {
enable = true;

View File

@@ -20,13 +20,13 @@
home.activation.extraHyprFile = lib.hm.dag.entryAfter ["writeBoundary"] ''
if [[ ! -f ${config.home.homeDirectory}/.config/hypr/otf.conf ]]; then
touch ${config.home.homeDirectory}/.config/hypr/otf.conf
fi
fi
if [[ ! -f ${config.home.homeDirectory}/.config/background ]]; then
cp ${config.home.homeDirectory}/Pictures/Wallpaper/bluescape.jpg ${config.home.homeDirectory}/.config/background
chmod 600 ${config.home.homeDirectory}/.config/background
fi
'';
if [[ ! -f ${config.home.homeDirectory}/.config/background ]]; then
cp ${config.home.homeDirectory}/Pictures/Wallpaper/bluescape.jpg ${config.home.homeDirectory}/.config/background
chmod 600 ${config.home.homeDirectory}/.config/background
fi
'';
wayland.windowManager.hyprland = {

View File

@@ -29,6 +29,8 @@
map ctrl+tab next_tab
map ctrl+shift+tab previous_tab
allow_remote_control yes
'';
};
};

View File

@@ -2,7 +2,7 @@
flake.homeModules.nathan = { ... }: {
config = {
programs.lf = {
programs.yazi = {
enable = true;
};
};

View File

@@ -25,8 +25,8 @@
vi = "nvim";
vim = "nvim";
python = "python3.13";
python3 = "python3.13";
python = "python3.14";
python3 = "python3.14";
};
history = {