dendrify: comfy-station
80
old/modules/home/wlogout/default.nix
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.hive.wlogout;
|
||||
in {
|
||||
options.hive.wlogout = {
|
||||
enable = lib.mkEnableOption "Enable Wlogout";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.wlogout.enable = true;
|
||||
programs.wlogout.layout = [
|
||||
{
|
||||
label = "shutdown";
|
||||
action = "systemctl poweroff";
|
||||
text = "Shutdown";
|
||||
keybind = "s";
|
||||
}
|
||||
{
|
||||
label = "reboot";
|
||||
action = "systemctl reboot";
|
||||
text = "Reboot";
|
||||
keybind = "r";
|
||||
}
|
||||
{
|
||||
label = "logout";
|
||||
action = "loginctl kill-session $XDG_SESSION_ID";
|
||||
text = "Logout";
|
||||
keybind = "e";
|
||||
}
|
||||
{
|
||||
label = "hibernate";
|
||||
action = "hyprlock --immediate & (sleep 1; systemctl hibernate -i)";
|
||||
text = "Hibernate";
|
||||
keybind = "h";
|
||||
}
|
||||
{
|
||||
label = "lock";
|
||||
action = "hyprlock";
|
||||
text = "Lock";
|
||||
keybind = "l";
|
||||
}
|
||||
];
|
||||
programs.wlogout.style = builtins.readFile ./style.css;
|
||||
xdg.enable = true;
|
||||
xdg.configFile = {
|
||||
"wlogout/icons/hibernate.png" = {
|
||||
source = ./icons/hibernate.png;
|
||||
};
|
||||
"wlogout/icons/lock.png" = {
|
||||
source = ./icons/lock.png;
|
||||
};
|
||||
"wlogout/icons/logout.png" = {
|
||||
source = ./icons/logout.png;
|
||||
};
|
||||
"wlogout/icons/power.png" = {
|
||||
source = ./icons/power.png;
|
||||
};
|
||||
"wlogout/icons/restart.png" = {
|
||||
source = ./icons/restart.png;
|
||||
};
|
||||
"wlogout/icons/hibernate-hover.png" = {
|
||||
source = ./icons/hibernate-hover.png;
|
||||
};
|
||||
"wlogout/icons/lock-hover.png" = {
|
||||
source = ./icons/lock-hover.png;
|
||||
};
|
||||
"wlogout/icons/logout-hover.png" = {
|
||||
source = ./icons/logout-hover.png;
|
||||
};
|
||||
"wlogout/icons/power-hover.png" = {
|
||||
source = ./icons/power-hover.png;
|
||||
};
|
||||
"wlogout/icons/restart-hover.png" = {
|
||||
source = ./icons/restart-hover.png;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
BIN
old/modules/home/wlogout/icons/hibernate-hover.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
old/modules/home/wlogout/icons/hibernate.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
old/modules/home/wlogout/icons/lock-hover.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
old/modules/home/wlogout/icons/lock.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
old/modules/home/wlogout/icons/logout-hover.png
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
old/modules/home/wlogout/icons/logout.png
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
old/modules/home/wlogout/icons/power-hover.png
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
old/modules/home/wlogout/icons/power.png
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
old/modules/home/wlogout/icons/restart-hover.png
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
BIN
old/modules/home/wlogout/icons/restart.png
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
BIN
old/modules/home/wlogout/icons/sleep-hover.png
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
BIN
old/modules/home/wlogout/icons/sleep.png
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
80
old/modules/home/wlogout/style.css
Normal file
@@ -0,0 +1,80 @@
|
||||
/* ----------- 💫 https://github.com/JaKooLit 💫 -------- */
|
||||
/* pywal-wlogout */
|
||||
|
||||
/* Importing pywal colors */
|
||||
|
||||
/*
|
||||
@import '../../.cache/wal/colors-waybar.css';
|
||||
*/
|
||||
|
||||
window {
|
||||
font-family: Fira Code Medium;
|
||||
font-size: 16pt;
|
||||
/* color: @foreground; */
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
background-color: rgba(24, 27, 32, 0.2);
|
||||
|
||||
}
|
||||
|
||||
button {
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 20%;
|
||||
background-color: transparent;
|
||||
animation: gradient_f 20s ease-in infinite;
|
||||
transition: all 0.3s ease-in;
|
||||
box-shadow: 0 0 10px 2px transparent;
|
||||
border-radius: 36px;
|
||||
border-style: none;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
button:focus {
|
||||
box-shadow: none;
|
||||
background-size : 20%;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-size: 50%;
|
||||
box-shadow: 0 0 10px 3px rgba(0,0,0,.4);
|
||||
/* background-color: @color6;*/
|
||||
background-color: rgba(24, 27, 32, 0);
|
||||
color: transparent;
|
||||
transition: all 0.3s cubic-bezier(.55, 0.0, .28, 1.682), box-shadow 0.5s ease-in;
|
||||
}
|
||||
|
||||
#shutdown {
|
||||
background-image: image(url("./icons/power.png"));
|
||||
}
|
||||
#shutdown:hover {
|
||||
background-image: image(url("./icons/power-hover.png"));
|
||||
}
|
||||
|
||||
#logout {
|
||||
background-image: image(url("./icons/logout.png"));
|
||||
|
||||
}
|
||||
#logout:hover {
|
||||
background-image: image(url("./icons/logout-hover.png"));
|
||||
}
|
||||
|
||||
#reboot {
|
||||
background-image: image(url("./icons/restart.png"));
|
||||
}
|
||||
#reboot:hover {
|
||||
background-image: image(url("./icons/restart-hover.png"));
|
||||
}
|
||||
|
||||
#lock {
|
||||
background-image: image(url("./icons/lock.png"));
|
||||
}
|
||||
#lock:hover {
|
||||
background-image: image(url("./icons/lock-hover.png"));
|
||||
}
|
||||
|
||||
#hibernate {
|
||||
background-image: image(url("./icons/hibernate.png"));
|
||||
}
|
||||
#hibernate:hover {
|
||||
background-image: image(url("./icons/hibernate-hover.png"));
|
||||
}
|
||||