wlogout temp feature (will be removed with quickshell update)
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
otter-launcher = self'.packages.otter-launcher;
|
||||
quickshell = self'.packages.quickshell;
|
||||
waybar = self'.packages.waybar;
|
||||
wlogout = self'.packages.wlogout;
|
||||
way-edges = self'.packages.way-edges;
|
||||
};
|
||||
};
|
||||
|
||||
22
modules/features/wlogout/default.nix
Normal file
22
modules/features/wlogout/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
inputs,
|
||||
moduleWithSystem,
|
||||
...
|
||||
}: {
|
||||
flake.nixosModules.wlogout = moduleWithSystem ({self', ...}: {
|
||||
environment.systemPackages = with self'.packages; [
|
||||
wlogout
|
||||
];
|
||||
});
|
||||
perSystem = {pkgs, ...}: {
|
||||
packages.wlogout = inputs.wrappers.lib.wrapPackage ({...}: {
|
||||
inherit pkgs;
|
||||
package = pkgs.wlogout;
|
||||
flags = {
|
||||
"--css" = ./style.css;
|
||||
"--layout" = ./layout;
|
||||
"--buttons-per-row" = "5";
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
BIN
modules/features/wlogout/icons/exit.png
Normal file
BIN
modules/features/wlogout/icons/exit.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
BIN
modules/features/wlogout/icons/lock.png
Normal file
BIN
modules/features/wlogout/icons/lock.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
BIN
modules/features/wlogout/icons/power.png
Normal file
BIN
modules/features/wlogout/icons/power.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.0 KiB |
BIN
modules/features/wlogout/icons/reload.png
Normal file
BIN
modules/features/wlogout/icons/reload.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
BIN
modules/features/wlogout/icons/slwwp.png
Normal file
BIN
modules/features/wlogout/icons/slwwp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
30
modules/features/wlogout/layout
Executable file
30
modules/features/wlogout/layout
Executable file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"label" : "lock",
|
||||
"action" : "hyprlock",
|
||||
"text" : "Lock",
|
||||
"keybind" : "l"
|
||||
}
|
||||
{
|
||||
"label" : "logout",
|
||||
"action" : "hyprctl dispatch 'hl.dsp.exit()'" ,
|
||||
"text" : "Logout",
|
||||
"keybind" : "e"
|
||||
}
|
||||
{
|
||||
"label" : "shutdown",
|
||||
"action" : "systemctl poweroff",
|
||||
"text" : "Shutdown",
|
||||
"keybind" : "s"
|
||||
}
|
||||
{
|
||||
"label" : "suspend",
|
||||
"action" : "systemctl suspend",
|
||||
"text" : "Sleep",
|
||||
"keybind" : "u"
|
||||
}
|
||||
{
|
||||
"label" : "reboot",
|
||||
"action" : "systemctl reboot",
|
||||
"text" : "Reboot",
|
||||
"keybind" : "r"
|
||||
}
|
||||
73
modules/features/wlogout/style.css
Executable file
73
modules/features/wlogout/style.css
Executable file
@@ -0,0 +1,73 @@
|
||||
* {
|
||||
background-image: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
window {
|
||||
background-color: rgba(12, 12, 12, 0.05);
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 0;
|
||||
border-color: #cba6f7;
|
||||
text-decoration-color: #ffffff;
|
||||
color: #FFFFFF;
|
||||
background-color: #313244;
|
||||
border-style: solid none;
|
||||
border-width: 4px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: 50% 30%;
|
||||
background-size: 75%;
|
||||
}
|
||||
|
||||
button:first-child {
|
||||
border-top-left-radius: 10px;
|
||||
border-bottom-left-radius: 10px;
|
||||
}
|
||||
|
||||
button:last-child {
|
||||
border-top-right-radius: 10px;
|
||||
border-bottom-right-radius: 10px;
|
||||
}
|
||||
|
||||
#lock {
|
||||
border-left-style: solid;
|
||||
background-image: image(url("./icons/lock.png"));
|
||||
}
|
||||
|
||||
#logout {
|
||||
background-image: image(url("./icons/exit.png"));
|
||||
}
|
||||
|
||||
#suspend {
|
||||
background-image: image(url("./icons/slwwp.png"));
|
||||
}
|
||||
|
||||
#shutdown {
|
||||
background-image: image(url("./icons/power.png"));
|
||||
}
|
||||
|
||||
#reboot {
|
||||
border-right-style: solid;
|
||||
background-image: image(url("./icons/reload.png"));
|
||||
}
|
||||
|
||||
#lock:focus {
|
||||
background-color: #f38ba8;
|
||||
}
|
||||
|
||||
#logout:focus {
|
||||
background-color: #fab387;
|
||||
}
|
||||
|
||||
#shutdown:focus {
|
||||
background-color: #a6e3a1;
|
||||
}
|
||||
|
||||
#suspend:focus {
|
||||
background-color: #f9e2af;
|
||||
}
|
||||
|
||||
#reboot:focus {
|
||||
background-color: #cba6f7;
|
||||
}
|
||||
Reference in New Issue
Block a user