added wlogout
This commit is contained in:
parent
be5f4cd1a0
commit
3b20f06c28
2 changed files with 84 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
./pipewire.nix
|
./pipewire.nix
|
||||||
./polkit.nix
|
./polkit.nix
|
||||||
./utils.nix
|
./utils.nix
|
||||||
|
./wlogout.nix
|
||||||
./wofi.nix
|
./wofi.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
83
users/willifan/graphical/hyprland/common/wlogout.nix
Normal file
83
users/willifan/graphical/hyprland/common/wlogout.nix
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
{ pkgs, home-manager, ...}:
|
||||||
|
{
|
||||||
|
home-manager.users.willifan = {
|
||||||
|
programs.wlogout = {
|
||||||
|
enable = true;
|
||||||
|
layout = [
|
||||||
|
{
|
||||||
|
label = "shutdown";
|
||||||
|
action = "systemctl poweroff";
|
||||||
|
text = "Shutdown";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "hyprland";
|
||||||
|
action = "hyprctl dispatch exit";
|
||||||
|
text = "Exit Hyprland";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "whatever";
|
||||||
|
action = "";
|
||||||
|
text = "whatever";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "reboot";
|
||||||
|
action = "systemctl reboot";
|
||||||
|
text = "Reboot";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "suspend";
|
||||||
|
action = "systemctl suspend";
|
||||||
|
text = "Suspend";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "hibernate";
|
||||||
|
action = "systemctl hibernate";
|
||||||
|
text = "Hibernate";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
style = ''
|
||||||
|
@import url("file:///home/willifan/.config/gtk-4.0/gtk.css");
|
||||||
|
* {
|
||||||
|
background-image: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
background-color: rgba(12, 12, 12, 0.9);
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
border-radius: 10px;
|
||||||
|
border-color: #ffa44b;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 2px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: 25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:focus, button:active, button:hover {
|
||||||
|
/*background-color: #3700B3;*/
|
||||||
|
outline-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#suspend {
|
||||||
|
background-image: image(url("/home/willifan/.config/wlogout/suspend.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#hibernate {
|
||||||
|
background-image: image(url("/home/willifan/.config/wlogout/hibernate.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#shutdown {
|
||||||
|
background-image: image(url("/home/willifan/.config/wlogout/shutdown.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#reboot {
|
||||||
|
background-image: image(url("/home/willifan/.config/wlogout/reboot.png"));
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue