first commit
24
modules/home/wlogout/config/layout
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"label" : "lock",
|
||||
"action" : "swaylock",
|
||||
"text" : "Lock",
|
||||
"keybind" : "l"
|
||||
}
|
||||
{
|
||||
"label": "reboot",
|
||||
"action": "systemctl reboot",
|
||||
"text": "Reboot",
|
||||
"keybind": "r"
|
||||
}
|
||||
{
|
||||
"label" : "shutdown",
|
||||
"action" : "poweroff",
|
||||
"text" : "Shut Down",
|
||||
"keybind" : "s"
|
||||
}
|
||||
{
|
||||
"label": "logout",
|
||||
"action": "loginctl terminate-user $USER",
|
||||
"text": "Logout",
|
||||
"keybind": "e"
|
||||
}
|
BIN
modules/home/wlogout/config/lock-hover.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
modules/home/wlogout/config/lock.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
modules/home/wlogout/config/logout-hover.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
modules/home/wlogout/config/logout.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
modules/home/wlogout/config/power-hover.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
modules/home/wlogout/config/power.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
modules/home/wlogout/config/restart-hover.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
modules/home/wlogout/config/restart.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
modules/home/wlogout/config/sleep-hover.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
modules/home/wlogout/config/sleep.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
53
modules/home/wlogout/config/style.css
Normal file
|
@ -0,0 +1,53 @@
|
|||
window {
|
||||
font-family: JetBrainsMono Nerd Font;
|
||||
font-size: 14pt;
|
||||
color: #CED7F4; /* text */
|
||||
background-color: rgba(31, 31, 31, 0.7);
|
||||
}
|
||||
button {
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 50%;
|
||||
border: none;
|
||||
background-color: rgba(30, 30, 46, 0);
|
||||
margin: 5px;
|
||||
transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
|
||||
}
|
||||
button:hover {
|
||||
background-color: rgba(49, 50, 68, 0.5);
|
||||
}
|
||||
button:focus {
|
||||
background-color: #595959;
|
||||
color:#1F1F1F;
|
||||
}
|
||||
#lock {
|
||||
background-image: image(url("./lock.png"));
|
||||
}
|
||||
#lock:focus {
|
||||
background-image: image(url("./lock-hover.png"));
|
||||
}
|
||||
#logout {
|
||||
background-image: image(url("./logout.png"));
|
||||
}
|
||||
#logout:focus {
|
||||
background-image: image(url("./logout-hover.png"));
|
||||
}
|
||||
#suspend {
|
||||
background-image: image(url("./sleep.png"));
|
||||
}
|
||||
#suspend:focus {
|
||||
background-image: image(url("./sleep-hover.png"));
|
||||
}
|
||||
|
||||
#shutdown {
|
||||
background-image: image(url("./power.png"));
|
||||
}
|
||||
#shutdown:focus {
|
||||
background-image: image(url("./power-hover.png"));
|
||||
}
|
||||
#reboot {
|
||||
background-image: image(url("./restart.png"));
|
||||
}
|
||||
#reboot:focus {
|
||||
background-image: image(url("./restart-hover.png"));
|
||||
}
|
3
modules/home/wlogout/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{...}: {
|
||||
xdg.configFile."wlogout".source = ./config;
|
||||
}
|