panel is now configured, need to do system tray

This commit is contained in:
sadan 2025-03-19 23:09:32 -04:00
parent 1834aef60f
commit dd4dff8873
No known key found for this signature in database
2 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,73 @@
{ screen }:
let
baseConfig = {
inherit screen;
floating = true;
height = 40;
# weird, see: https://github.com/nix-community/plasma-manager/issues/62#issuecomment-1986816749
hiding = "normalpanel";
lengthMode = "fit";
location = "top";
maxLength = null;
minLength = null;
offset = null;
opacity = "opaque";
};
in
builtins.map (section: baseConfig // section) [
{
alignment = "left";
widgets = [
{
kicker = {
icon = "nix-snowflake-white";
};
}
{
appMenu = {
};
}
];
}
{
alignment = "center";
widgets = [
{
iconTasks = {
# .desktop filenames
# 1. open app
# 2. drag app to desktop => copy here
# 3. open context menu => show target
# 4. copy filename
# 5. profit
launchers = builtins.map (filename: "applications:${filename}.desktop") [
"brave-browser"
"spotify"
"kitty"
"vesktop"
];
appearance = {
fill = false;
};
};
}
];
}
{
alignment = "right";
widgets = [
{
systemTray = {
};
}
{
digitalClock = {
time = {
format = "12h";
};
};
}
];
}
]

View file

@ -1,7 +1,12 @@
{ ... }:
let
makePanel = import ./_makePanel.nix;
in
{
programs = {
plasma = {
panels =
[ ] ++ (makePanel { screen = 0; }) ++ (makePanel { screen = 1; }) ++ (makePanel { screen = 2; });
configFile = {
"plasmashellrc" = {
# Monitor display numbers