waybar: wlogout, weather
This commit is contained in:
parent
1a6942fd6e
commit
35c1d07e49
3 changed files with 51 additions and 40 deletions
|
|
@ -14,6 +14,7 @@
|
|||
./swaync.nix
|
||||
./vscode.nix
|
||||
./waybar.nix
|
||||
./wlogout.nix
|
||||
./zsh.nix
|
||||
# keep-sorted end
|
||||
];
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
#"image"
|
||||
"group/status-infos"
|
||||
"group/system-tray"
|
||||
"group/group-power"
|
||||
"custom/wlogout"
|
||||
];
|
||||
|
||||
"group/system-tray" = {
|
||||
|
|
@ -57,6 +57,7 @@
|
|||
orientation = "inherit";
|
||||
modules = [
|
||||
"battery"
|
||||
"custom/weather"
|
||||
"temperature"
|
||||
"cpu"
|
||||
"memory"
|
||||
|
|
@ -174,42 +175,10 @@
|
|||
disk = {
|
||||
format = "{free}/{total}";
|
||||
};
|
||||
"group/group-power" = {
|
||||
"orientation" = "inherit";
|
||||
"drawer" = {
|
||||
"transition-duration" = 500;
|
||||
"children-class" = "not-power";
|
||||
"transition-left-to-right" = false;
|
||||
};
|
||||
"modules" = [
|
||||
"custom/power" # First element is the "group leader" and won't ever be hidden
|
||||
"custom/quit"
|
||||
"custom/lock"
|
||||
"custom/reboot"
|
||||
];
|
||||
};
|
||||
"custom/quit" = {
|
||||
"format" = " ";
|
||||
"tooltip" = false;
|
||||
"on-click" = "niri msg action quit";
|
||||
min-width = 20;
|
||||
};
|
||||
"custom/lock" = {
|
||||
"format" = " ";
|
||||
"tooltip" = false;
|
||||
"on-click" = "${lib.getBin config.programs.swaylock.package}/bin/swaylock";
|
||||
min-width = 20;
|
||||
};
|
||||
"custom/reboot" = {
|
||||
"format" = " ";
|
||||
"tooltip" = false;
|
||||
"on-click" = "systemctl reboot";
|
||||
min-width = 20;
|
||||
};
|
||||
"custom/power" = {
|
||||
"format" = " ";
|
||||
"tooltip" = false;
|
||||
"on-click" = "systemctl shutdown";
|
||||
"custom/wlogout" = {
|
||||
format = " ";
|
||||
tooltip = false;
|
||||
on-click = "wlogout";
|
||||
min-width = 20;
|
||||
};
|
||||
idle_inhibitor = {
|
||||
|
|
@ -308,6 +277,13 @@
|
|||
on-click-right = "${swaync-client} --toggle-dnd --skip-wait";
|
||||
escape = true;
|
||||
};
|
||||
"custom/weather" = {
|
||||
format = "{}°";
|
||||
tooltip = true;
|
||||
interval = 3600;
|
||||
exec = "${lib.getBin pkgs.wttrbar}/bin/wttrbar --nerd";
|
||||
return-type = "json";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
34
homeConfigurations/vinzenz/wlogout.nix
Normal file
34
homeConfigurations/vinzenz/wlogout.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
config.programs.wlogout = {
|
||||
enable = true;
|
||||
style = ''
|
||||
* {
|
||||
/*background-image: none;*/
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
window {
|
||||
background-color: rgba(30, 30, 46, 0.90);
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 0;
|
||||
border-color: #cba6f7;
|
||||
text-decoration-color: #cdd6f4;
|
||||
color: #cdd6f4;
|
||||
background-color: #181825;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 25%;
|
||||
}
|
||||
|
||||
button:focus, button:active, button:hover {
|
||||
/* 20% Overlay 2, 80% mantle */
|
||||
background-color: rgb(48, 50, 66);
|
||||
outline-style: none;
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue