mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-07 21:13:03 -04:00
panel is now configured, need to do system tray
This commit is contained in:
parent
1834aef60f
commit
dd4dff8873
2 changed files with 78 additions and 0 deletions
73
common/users/homeModules/displays/_makePanel.nix
Normal file
73
common/users/homeModules/displays/_makePanel.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
|
@ -1,7 +1,12 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
|
let
|
||||||
|
makePanel = import ./_makePanel.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
plasma = {
|
plasma = {
|
||||||
|
panels =
|
||||||
|
[ ] ++ (makePanel { screen = 0; }) ++ (makePanel { screen = 1; }) ++ (makePanel { screen = 2; });
|
||||||
configFile = {
|
configFile = {
|
||||||
"plasmashellrc" = {
|
"plasmashellrc" = {
|
||||||
# Monitor display numbers
|
# Monitor display numbers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue