My Nix Configuration

[flake] remove wlogout

pyrox.dev 83dbc6ca 369b9367

verified
Changed files
-110
homeModules
profiles
desktop
gui
programs
-1
homeModules/profiles/desktop/default.nix
···
playerctl
poptracker
thunderbird
-
wlogout
wl-clipboard
zotero
];
-1
homeModules/profiles/gui/default.nix
···
obs.enable = mkDefault true;
onagre.enable = mkDefault true;
vscodium.enable = mkDefault false;
-
wlogout.enable = mkDefault true;
zed-editor.enable = mkDefault true;
};
services = {
-1
homeModules/programs/default.nix
···
./ssh
./starship
./vscodium
-
./wlogout
./zed-editor
];
}
-55
homeModules/programs/wlogout/default.nix
···
-
{
-
pkgs,
-
config,
-
lib,
-
...
-
}:
-
let
-
cfg = config.py.programs.wlogout;
-
pkg = config.programs.wlogout.package;
-
in
-
{
-
options.py.programs.wlogout.enable = lib.mkEnableOption "wlogout";
-
config.programs.wlogout = lib.mkIf cfg.enable {
-
enable = true;
-
style = import ./style.nix { inherit pkg; };
-
layout = [
-
{
-
label = "hibernate";
-
action = "systemctl hibernate";
-
text = "Hibernate";
-
keybind = "h";
-
}
-
{
-
label = "reboot";
-
action = "systemctl reboot";
-
text = "Reboot";
-
keybind = "r";
-
}
-
{
-
label = "suspend";
-
action = "systemctl suspend";
-
text = "Suspend";
-
keybind = "u";
-
}
-
{
-
label = "suspend-then-hibernate";
-
action = "systemctl suspend-then-hibernate";
-
text = "Supend then Hibernate";
-
keybind = "p";
-
}
-
{
-
label = "lock";
-
action = "hyprlock";
-
text = "Lock";
-
keybind = "l";
-
}
-
{
-
label = "shutdown";
-
action = "systemctl poweroff";
-
text = "Shutdown";
-
keybind = "s";
-
}
-
];
-
};
-
}
-52
homeModules/programs/wlogout/style.nix
···
-
{ pkg, ... }:
-
let
-
icon-path = "${pkg}/share/wlogout/icons";
-
in
-
''
-
* {
-
background-image: none;
-
}
-
window {
-
background-image: image(url("/home/thehedgehog/bgs/wallpapers/xenia/chimmie_valentine_xenia.png"), url("/home/thehedgehog/bgs/wallpapers/xenia/chimmie_valentine_xenia.png"));
-
background-size: cover;
-
}
-
button {
-
color: #cdd6f4;
-
background-color: #11111b;
-
border: none;
-
border-color: #6c7086;
-
background-repeat: no-repeat;
-
background-position: center;
-
background-size: 25%;
-
}
-
-
button:focus, button:active, button:hover {
-
background-color: #1e1e2e;
-
outline-style: none;
-
border:none;
-
}
-
-
#lock {
-
background-image: image(url("${icon-path}/lock.png"), url("${icon-path}/lock.png"));
-
}
-
-
#suspend-then-hibernate {
-
background-image: image(url("${icon-path}/suspend.png"), url("${icon-path}/suspend.png"));
-
}
-
-
#suspend {
-
background-image: image(url("${icon-path}/suspend.png"), url("${icon-path}/suspend.png"));
-
}
-
-
#hibernate {
-
background-image: image(url("${icon-path}/hibernate.png"), url("${icon-path}/hibernate.png"));
-
}
-
-
#shutdown {
-
background-image: image(url("${icon-path}/shutdown.png"), url("${icon-path}/shutdown.png"));
-
}
-
-
#reboot {
-
background-image: image(url("${icon-path}/reboot.png"), url("${icon-path}/reboot.png"));
-
}
-
''