programs/hyprpanel: init (#7303) (#7321)

(cherry picked from commit f5098b0740)

Co-authored-by: Perchun Pak <git@perchun.it>
This commit is contained in:
home-manager-ci[bot] 2025-06-24 11:42:55 -05:00 committed by GitHub
parent 7aae0ee71a
commit d457fa3c76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 265 additions and 0 deletions

View file

@ -377,6 +377,7 @@ import nmtSrc {
./modules/programs/halloy
./modules/programs/hexchat
./modules/programs/hyprlock
./modules/programs/hyprpanel
./modules/programs/i3bar-river
./modules/programs/i3blocks
./modules/programs/i3status-rust

View file

@ -0,0 +1,31 @@
{
"bar": {
"battery": {
"label": true
},
"bluetooth": {
"label": false
},
"clock": {
"format": "%H:%M:%S"
},
"layouts": {
"*": {
"left": [
"dashboard",
"workspaces",
"media"
],
"middle": [
"windowtitle"
],
"right": [
"volume",
"network",
"bluetooth",
"notifications"
]
}
}
}
}

View file

@ -0,0 +1,34 @@
{ config, ... }:
{
programs.hyprpanel = {
enable = true;
package = config.lib.test.mkStubPackage { name = "hyprpanel"; };
settings = {
bar.battery.label = true;
bar.bluetooth.label = false;
bar.clock.format = "%H:%M:%S";
bar.layouts = {
"*" = {
left = [
"dashboard"
"workspaces"
"media"
];
middle = [ "windowtitle" ];
right = [
"volume"
"network"
"bluetooth"
"notifications"
];
};
};
};
};
nmt.script = ''
assertFileContent \
"home-files/.config/hyprpanel/config.json" \
${./basic-config.json}
'';
}

View file

@ -0,0 +1,4 @@
{
hyprpanel-basic-config = ./basic-config.nix;
hyprpanel-with-hypridle = ./with-hypridle.nix;
}

View file

@ -0,0 +1,38 @@
{
"bar": {
"battery": {
"label": true
},
"bluetooth": {
"label": false
},
"clock": {
"format": "%H:%M:%S"
},
"customModules": {
"hypridle": {
"isActiveCommand": "systemctl --user status hypridle.service | grep -q 'Active: active (running)' && echo 'yes' || echo 'no'",
"startCommand": "systemctl --user start hypridle.service",
"stopCommand": "systemctl --user stop hypridle.service"
}
},
"layouts": {
"*": {
"left": [
"dashboard",
"workspaces",
"media"
],
"middle": [
"windowtitle"
],
"right": [
"volume",
"network",
"bluetooth",
"notifications"
]
}
}
}
}

View file

@ -0,0 +1,35 @@
{ config, ... }:
{
services.hypridle.enable = true;
programs.hyprpanel = {
enable = true;
package = config.lib.test.mkStubPackage { name = "hyprpanel"; };
settings = {
bar.battery.label = true;
bar.bluetooth.label = false;
bar.clock.format = "%H:%M:%S";
bar.layouts = {
"*" = {
left = [
"dashboard"
"workspaces"
"media"
];
middle = [ "windowtitle" ];
right = [
"volume"
"network"
"bluetooth"
"notifications"
];
};
};
};
};
nmt.script = ''
assertFileContent \
"home-files/.config/hyprpanel/config.json" \
${./with-hypridle.json}
'';
}