Switch to nixpkgs-fmt formatter
This commit is contained in:
parent
36f6903639
commit
ca59cb8f3c
45 changed files with 695 additions and 606 deletions
|
|
@ -109,7 +109,8 @@ let
|
|||
};
|
||||
|
||||
ramp = [ "▂" "▃" "▄" "▅" "▆" "▇" ];
|
||||
in {
|
||||
in
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs) noto-fonts material-design-icons noto-fonts-cjk-sans;
|
||||
# emojione
|
||||
|
|
@ -190,20 +191,22 @@ in {
|
|||
type = "internal/bspwm";
|
||||
format = "<label-state>";
|
||||
|
||||
label = let
|
||||
common = {
|
||||
padding = 1;
|
||||
# separator = " ";
|
||||
text = "%name%";
|
||||
label =
|
||||
let
|
||||
common = {
|
||||
padding = 1;
|
||||
# separator = " ";
|
||||
text = "%name%";
|
||||
};
|
||||
in
|
||||
{
|
||||
focused = recursiveUpdate common colors.selected;
|
||||
occupied = recursiveUpdate common colors.active;
|
||||
urgent = recursiveUpdate (recursiveUpdate common colors.active) {
|
||||
background = colors.alert;
|
||||
};
|
||||
empty = recursiveUpdate common colors.normal;
|
||||
};
|
||||
in {
|
||||
focused = recursiveUpdate common colors.selected;
|
||||
occupied = recursiveUpdate common colors.active;
|
||||
urgent = recursiveUpdate (recursiveUpdate common colors.active) {
|
||||
background = colors.alert;
|
||||
};
|
||||
empty = recursiveUpdate common colors.normal;
|
||||
};
|
||||
};
|
||||
|
||||
"module/cpu" = {
|
||||
|
|
@ -298,40 +301,42 @@ in {
|
|||
open = recursiveUpdate colors.normal { text = "●"; };
|
||||
close = recursiveUpdate colors.normal { text = ""; };
|
||||
};
|
||||
menu = [[
|
||||
{
|
||||
text = "";
|
||||
exec = confirm_command {
|
||||
cmd = logout;
|
||||
title = "Logout";
|
||||
text = "Do you want to logout?";
|
||||
};
|
||||
}
|
||||
{
|
||||
text = "";
|
||||
exec = confirm_command {
|
||||
cmd = "${systemctl} reboot";
|
||||
title = "Reboot";
|
||||
text = "Do you want to reboot?";
|
||||
};
|
||||
}
|
||||
{
|
||||
text = "";
|
||||
exec = confirm_command {
|
||||
cmd = "${systemctl} hibernate";
|
||||
title = "Hibernate";
|
||||
text = "Do you want to hibernate?";
|
||||
};
|
||||
}
|
||||
{
|
||||
text = "";
|
||||
exec = confirm_command {
|
||||
cmd = "${shutdown} now";
|
||||
title = "Shutdown";
|
||||
text = "Do you want to shutdown?";
|
||||
};
|
||||
}
|
||||
]];
|
||||
menu = [
|
||||
[
|
||||
{
|
||||
text = "";
|
||||
exec = confirm_command {
|
||||
cmd = logout;
|
||||
title = "Logout";
|
||||
text = "Do you want to logout?";
|
||||
};
|
||||
}
|
||||
{
|
||||
text = "";
|
||||
exec = confirm_command {
|
||||
cmd = "${systemctl} reboot";
|
||||
title = "Reboot";
|
||||
text = "Do you want to reboot?";
|
||||
};
|
||||
}
|
||||
{
|
||||
text = "";
|
||||
exec = confirm_command {
|
||||
cmd = "${systemctl} hibernate";
|
||||
title = "Hibernate";
|
||||
text = "Do you want to hibernate?";
|
||||
};
|
||||
}
|
||||
{
|
||||
text = "";
|
||||
exec = confirm_command {
|
||||
cmd = "${shutdown} now";
|
||||
title = "Shutdown";
|
||||
text = "Do you want to shutdown?";
|
||||
};
|
||||
}
|
||||
]
|
||||
];
|
||||
};
|
||||
|
||||
"module/notifications" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue