mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-07 20:24:08 +09:00
noctalia
This commit is contained in:
@@ -5,6 +5,14 @@
|
||||
...
|
||||
}:
|
||||
let
|
||||
codexbar = import ./codexbar.nix { inherit lib pkgs; };
|
||||
codexbarUsagePlugin = pkgs.runCommand "noctalia-codexbar-usage-plugin" { } ''
|
||||
mkdir -p "$out"
|
||||
cp ${./plugins/codexbar-usage/plugin.toml} "$out/plugin.toml"
|
||||
substitute ${./plugins/codexbar-usage/usage.luau} "$out/usage.luau" \
|
||||
--replace-fail "@codexbarPath@" "${lib.getExe codexbar}"
|
||||
'';
|
||||
|
||||
wallpapers = pkgs.fetchFromGitHub {
|
||||
owner = "moons-14";
|
||||
repo = "wallpapers";
|
||||
@@ -21,6 +29,14 @@ let
|
||||
"cpu-graph"
|
||||
"ram"
|
||||
];
|
||||
labwcSystemWidgets = [
|
||||
"network"
|
||||
"bluetooth"
|
||||
"network-connection"
|
||||
"spacer"
|
||||
"cpu"
|
||||
"ram"
|
||||
];
|
||||
centerWidgets = [
|
||||
"app-launcher"
|
||||
"workspaces"
|
||||
@@ -45,7 +61,13 @@ let
|
||||
margin_ends = 0;
|
||||
start = [ "taskbar" ];
|
||||
center = centerWidgets;
|
||||
end = systemWidgets ++ [ "spacer" ] ++ endWidgets;
|
||||
end =
|
||||
labwcSystemWidgets
|
||||
++ [
|
||||
"moons/codexbar-usage:usage"
|
||||
"spacer"
|
||||
]
|
||||
++ endWidgets;
|
||||
};
|
||||
|
||||
dock = {
|
||||
@@ -56,6 +78,7 @@ let
|
||||
network.show_label = false;
|
||||
taskbar = {
|
||||
type = "taskbar";
|
||||
scale = 1.5;
|
||||
pinned = [
|
||||
"org.gnome.Nautilus"
|
||||
"org.gnome.TextEditor"
|
||||
@@ -64,10 +87,14 @@ let
|
||||
"code"
|
||||
"dev.zed.Zed"
|
||||
"codex"
|
||||
"vesktop"
|
||||
];
|
||||
group_by_workspace = false;
|
||||
show_window_title = false;
|
||||
pinned_opacity = 0.60;
|
||||
inactive_opacity = 1.0;
|
||||
};
|
||||
input-volume.show_label = false;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -97,7 +124,10 @@ let
|
||||
};
|
||||
in
|
||||
{
|
||||
home.packages = [ pkgs.networkmanagerapplet ];
|
||||
home.packages = [
|
||||
codexbar
|
||||
pkgs.networkmanagerapplet
|
||||
];
|
||||
|
||||
home.file = {
|
||||
".face".source = ../../../images/avatar.jpg;
|
||||
@@ -107,6 +137,11 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
xdg.dataFile."noctalia/plugins/codexbar-usage" = {
|
||||
source = codexbarUsagePlugin;
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
programs.noctalia = {
|
||||
enable = true;
|
||||
|
||||
@@ -141,11 +176,16 @@ in
|
||||
center = centerWidgets;
|
||||
end = [
|
||||
"media"
|
||||
"moons/codexbar-usage:usage"
|
||||
"spacer"
|
||||
]
|
||||
++ endWidgets;
|
||||
};
|
||||
|
||||
plugins = {
|
||||
enabled = [ "moons/codexbar-usage" ];
|
||||
};
|
||||
|
||||
widget = {
|
||||
app-launcher = {
|
||||
type = "custom_button";
|
||||
|
||||
Reference in New Issue
Block a user