Compare commits

...

23 Commits

Author SHA1 Message Date
b2ec3d9cd0 update flake 2026-04-12 21:20:54 -05:00
35fbfa3d95 update flake 2026-04-12 20:58:43 -05:00
c7fe5778db update flake 2026-04-12 20:57:10 -05:00
c51c9752d1 update flake 2026-04-12 20:50:56 -05:00
067ebcae93 update flake 2026-04-12 20:49:15 -05:00
fac3994444 update flake 2026-04-12 20:39:33 -05:00
b396a302d3 update flake 2026-04-11 20:03:09 -05:00
7179e6441f update flake 2026-04-11 20:01:47 -05:00
6902564ac1 renamed package 2026-04-11 07:27:12 -05:00
dbc8351e82 update flake 2026-04-11 06:55:13 -05:00
3e14569edd test 2026-04-10 16:56:54 -05:00
062b6d63bd test 2026-04-10 16:53:41 -05:00
983f0f24de test 2026-04-10 16:48:49 -05:00
2f00ce43be test 2026-04-10 16:45:15 -05:00
cf4da27549 test 2026-04-10 16:41:31 -05:00
2fb2731383 test 2026-04-10 16:30:47 -05:00
37c05f2e36 test 2026-04-10 16:26:25 -05:00
58adc58002 test 2026-04-10 16:09:16 -05:00
b97e9dc547 test 2026-04-10 13:12:00 -05:00
bd134cad26 test 2026-04-10 12:04:06 -05:00
67c56deae2 test 2026-04-10 11:48:20 -05:00
dc14e418f3 test 2026-04-10 11:42:46 -05:00
4584546301 test 2026-04-10 10:28:03 -05:00
5 changed files with 115 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
{ self, ... }: {
{ self, inputs, ... }: {
perSystem = { self', pkgs, system, ... }: {
@@ -23,11 +23,21 @@
mkdir -p $out/share
cp -r $src/* $out/share
'';
};
};
aurora-greeter-hypr-conf = pkgs.writeText "greeter-conf" ''
exec-once=${self'.packages.aurora-set-wallpaper}/bin/aurora-set-wallpaper; ${self'.packages.aurora-greeter}/bin/aurora-greeter; hyprctl dispatch exit
exec-shutdown = rm ~/.config/wal/colorschemes/dark/wallpaper*
exec-once=${self'.packages.aurora-greeter-init}/bin/aurora-greeter-init
misc {
disable_hyprland_logo = false
disable_splash_rendering = true
force_default_wallpaper = 0
}
ecosystem {
no_update_news = true
no_donation_nag = true
}
'';
@@ -71,19 +81,51 @@
if [[ ''$ext == "gif" || ''$ext == "mp4" ]]; then
yes | ${pkgs.ffmpeg}/bin/ffmpeg -i "''$img" -vframes 1 /tmp/aurora/tmp.jpg >> ''$out
pidof mpvpaper >> $out && pkill mpvpaper
${pkgs.swww}/bin/swww img /tmp/aurora/tmp.jpg -t wipe >> ''$out
${pkgs.awww}/bin/awww img /tmp/aurora/tmp.jpg -t wipe >> ''$out
sleep 0.6
hyprctl dispatch exec "${pkgs.mpvpaper}/bin/mpvpaper ALL ''$img -o loop" >> ''$out
else
yes | ${pkgs.ffmpeg}/bin/ffmpeg -i "''$img" /tmp/aurora/tmp.jpg >> ''$out
pidof mpvpaper >> $out && pkill mpvpaper
hyprctl dispatch exec "${pkgs.swww}/bin/swww img ''$img -t wipe" >> ''$out
hyprctl dispatch exec "${pkgs.awww}/bin/awww img ''$img -t wipe" >> ''$out
fi
${self'.packages.aurora-change-colors}/bin/aurora-change-colors "''$src" "''$2" >> ''$out
'');
aurora-greeter-init = (pkgs.writeShellScriptBin "aurora-greeter-init" ''
if [[ ! -d /tmp/aurora ]]; then
mkdir /tmp/aurora
fi
hyprctl --batch "\
dispatch exec ${pkgs.awww}/bin/awww-daemon ;\
dispatch exec ${self'.packages.aurora-set-wallpaper}/bin/aurora-set-wallpaper;\
setcursor Bibata-Modern-Classic 16"
sleep 3
hyprctl reload
${self'.packages.aurora-greeter}/bin/aurora-greeter
rm ~/.config/wal/colorschemes/dark/wallpaper*
hyprctl dispatch exit
'');
aurora-init = (pkgs.writeShellScriptBin "aurora-init" ''
if [[ ! -d /tmp/aurora ]]; then
mkdir /tmp/aurora
fi
hyprctl --batch "\
dispatch exec ${pkgs.awww}/bin/awww-daemon ;\
dispatch exec ${self'.packages.aurora-set-wallpaper}/bin/aurora-set-wallpaper;\
setcursor Bibata-Modern-Classic 16"
sleep 3
hyprctl reload
'');
};
};
@@ -97,6 +139,8 @@
cfg = config.services.aurora-greeter;
system = pkgs.stdenv.hostPlatform.system;
pkgs-a = import inputs.nixpkgs { inherit system; };
in {
users.users.aurora = {
@@ -107,9 +151,10 @@
packages = with pkgs; [
self.packages.${system}.aurora-greeter
self.packages.${system}.aurora-greeter-init
self.packages.${system}.aurora-set-wallpaper
swww
pkgs-a.awww
mpvpaper
ffmpeg
];

View File

@@ -68,16 +68,26 @@
default = "hyprland-session.target";
};
};
settings = mkOption {
type = types.attrsOf types.str;
default = {};
};
};
config = let
cfg = config.programs.aurora;
system = pkgs.stdenv.hostPlatform.system;
pkgs-a = import inputs.nixpkgs { inherit system; };
in {
home.packages = with pkgs; [
swww
pkgs-a.awww
mpvpaper
ffmpeg
bluez
bluez-tools
@@ -91,6 +101,9 @@
hyprsunset
wf-recorder
self.packages.${system}.aurora-set-wallpaper
self.packages.${system}.aurora-init
];
programs.quickshell = {
@@ -111,6 +124,10 @@
target = cfg.systemd.target;
};
};
home.file.".config/aurora/settings.json".text = builtins.toJSON cfg.settings;
systemd.user.services.quickshell.Service.Environment = [ "AURORA_SETTINGS=${config.home.homeDirectory}/${config.home.file.".config/aurora/settings.json".target}" ];
};
};
}

View File

@@ -36,6 +36,13 @@ PanelWindow {
bottom: true
}
IpcHandler {
target: "shell"
function reload() {
Quickshell.reload(false)
}
}
Component.onCompleted: {

View File

@@ -15,17 +15,23 @@ Singleton {
property bool launcherOpen: false
property string colorsDir: s_json.colorsDir
property string wallpaperDir: s_json.wallpaperDir
property string settingsDir: "/home/" + Quickshell.env("USER") + "/.config/aurora"
onSettingsDirChanged: reload()
property string colorsPath: s_json.colorsPath
Process {
id: cc
command: [ s_json.changeColorsCmd ]
running: false
}
property string settingsPath: Quickshell.env("AURORA_SETTINGS")
onSettingsPathChanged: reload()
function reload() {
settings.reload()
root.wallpaperDir = Qt.binding(() => s_json.wallpaperDir)
root.colorsDir = Qt.binding(() => s_json.colorsDir)
root.colorsPath = Qt.binding(() => s_json.colorsPath)
root.wallpaper = Qt.binding(() => c_json.wallpaper)
root.colors = Qt.binding(() => c_json.colors)
}
@@ -36,7 +42,7 @@ Singleton {
id: settings
path: root.settingsDir + "/settings.json"
path: root.settingsPath
watchChanges: true
@@ -46,7 +52,9 @@ Singleton {
id: s_json
property string wallpaperDir
property string colorsDir
property string colorsPath
property string changeColorsCmd
}
}
@@ -65,11 +73,14 @@ Singleton {
id: pywal
path: root.colorsDir
path: root.colorsPath
watchChanges: true
onFileChanged: reload()
onFileChanged: {
reload()
cc.running = true
}
JsonAdapter {
id: c_json

36
flake.lock generated
View File

@@ -5,11 +5,11 @@
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1772408722,
"narHash": "sha256-rHuJtdcOjK7rAHpHphUb1iCvgkU3GpfvicLMwwnfMT0=",
"lastModified": 1775087534,
"narHash": "sha256-91qqW8lhL7TLwgQWijoGBbiD4t7/q75KTi8NxjVmSmA=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "f20dc5d9b8027381c474144ecabc9034d6a839a3",
"rev": "3107b77cd68437b9a76194f0f7f9c55f2329ca5b",
"type": "github"
},
"original": {
@@ -23,11 +23,11 @@
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1772845525,
"narHash": "sha256-Dp5Ir2u4jJDGCgeMRviHvEQDe+U37hMxp6RSNOoMMPc=",
"lastModified": 1775900011,
"narHash": "sha256-QUGu6CJYFQ5AWVV0n3/FsJyV+1/gj7HSDx68/SX9pwM=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "27b93804fbef1544cb07718d3f0a451f4c4cd6c0",
"rev": "b0569dc6ec1e6e7fefd8f6897184e4c191cd768e",
"type": "github"
},
"original": {
@@ -38,11 +38,11 @@
},
"import-tree": {
"locked": {
"lastModified": 1772344373,
"narHash": "sha256-OQQ1MhB9t1J71b2wxRRTdH/Qd8UGG0p+dGspfCf5U1c=",
"lastModified": 1773693634,
"narHash": "sha256-BtZ2dtkBdSUnFPPFc+n0kcMbgaTxzFNPv2iaO326Ffg=",
"owner": "vic",
"repo": "import-tree",
"rev": "10fda59eee7d7970ec443b925f32a1bc7526648c",
"rev": "c41e7d58045f9057880b0d85e1152d6a4430dbf1",
"type": "github"
},
"original": {
@@ -53,11 +53,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1772542754,
"narHash": "sha256-WGV2hy+VIeQsYXpsLjdr4GvHv5eECMISX1zKLTedhdg=",
"lastModified": 1775423009,
"narHash": "sha256-vPKLpjhIVWdDrfiUM8atW6YkIggCEKdSAlJPzzhkQlw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8c809a146a140c5c8806f13399592dbcb1bb5dc4",
"rev": "68d8aa3d661f0e6bd5862291b5bb263b2a6595c9",
"type": "github"
},
"original": {
@@ -69,11 +69,11 @@
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1772328832,
"narHash": "sha256-e+/T/pmEkLP6BHhYjx6GmwP5ivonQQn0bJdH9YrRB+Q=",
"lastModified": 1774748309,
"narHash": "sha256-+U7gF3qxzwD5TZuANzZPeJTZRHS29OFQgkQ2kiTJBIQ=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "c185c7a5e5dd8f9add5b2f8ebeff00888b070742",
"rev": "333c4e0545a6da976206c74db8773a1645b5870a",
"type": "github"
},
"original": {
@@ -84,11 +84,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1772433332,
"narHash": "sha256-izhTDFKsg6KeVBxJS9EblGeQ8y+O8eCa6RcW874vxEc=",
"lastModified": 1775710090,
"narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "cf59864ef8aa2e178cccedbe2c178185b0365705",
"rev": "4c1018dae018162ec878d42fec712642d214fdfa",
"type": "github"
},
"original": {