niri, ashell
This commit is contained in:
48
packages/ashell.nix
Normal file
48
packages/ashell.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{ wrappers, pkgs }:
|
||||
let
|
||||
config = {
|
||||
clock.format = "%Y-%m-%d (%j %a %W) %H:%M";
|
||||
modules = {
|
||||
center = [ "Clock" ];
|
||||
left = [
|
||||
"Workspaces"
|
||||
[ "WindowTitle" ]
|
||||
];
|
||||
right = [
|
||||
"KeyboardLayout"
|
||||
[
|
||||
"Tray"
|
||||
"SystemTray"
|
||||
"Settings"
|
||||
]
|
||||
];
|
||||
};
|
||||
settings.indicators = [
|
||||
"IdleInhibitor"
|
||||
"PowerProfile"
|
||||
"Audio"
|
||||
"Bluetooth"
|
||||
"Network"
|
||||
"Vpn"
|
||||
"Battery"
|
||||
];
|
||||
system_info.indicators = [
|
||||
"Cpu"
|
||||
"Memory"
|
||||
{ "Disk" = "/"; }
|
||||
];
|
||||
workspaces = {
|
||||
disable_special_workspaces = true;
|
||||
enable_workspace_filling = false;
|
||||
visibility_mode = "MonitorSpecific";
|
||||
};
|
||||
};
|
||||
configFile = (pkgs.formats.toml { }).generate "config.toml" config;
|
||||
in
|
||||
wrappers.lib.wrapPackage {
|
||||
inherit pkgs;
|
||||
package = pkgs.ashell;
|
||||
flags = {
|
||||
"--config-path" = toString configFile;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user