feat: wlogout
BIN
wlogout/icons/hibernate-hover.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
wlogout/icons/hibernate.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
wlogout/icons/lock-hover.png
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
BIN
wlogout/icons/lock.png
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
BIN
wlogout/icons/logout-hover.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
wlogout/icons/logout.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
wlogout/icons/power-hover.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
wlogout/icons/power.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
wlogout/icons/restart-hover.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
wlogout/icons/restart.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
wlogout/icons/sleep-hover.png
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
BIN
wlogout/icons/sleep.png
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
36
wlogout/layout
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"label" : "lock",
|
||||||
|
"action" : "swaylock",
|
||||||
|
"text" : "Lock",
|
||||||
|
"keybind" : "l"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "hibernate",
|
||||||
|
"action" : "systemctl hibernate",
|
||||||
|
"text" : "Hibernate",
|
||||||
|
"keybind" : "h"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "logout",
|
||||||
|
"action" : "loginctl terminate-user $USER",
|
||||||
|
"text" : "Logout",
|
||||||
|
"keybind" : "e"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "shutdown",
|
||||||
|
"action" : "systemctl poweroff",
|
||||||
|
"text" : "Shutdown",
|
||||||
|
"keybind" : "s"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "suspend",
|
||||||
|
"action" : "systemctl suspend",
|
||||||
|
"text" : "Suspend",
|
||||||
|
"keybind" : "u"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "reboot",
|
||||||
|
"action" : "systemctl reboot",
|
||||||
|
"text" : "Reboot",
|
||||||
|
"keybind" : "r"
|
||||||
|
}
|
||||||
8
wlogout/readme.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Wlogout
|
||||||
|
Make sure to link layout file with
|
||||||
|
```Bash
|
||||||
|
sudo ln ./wlogout/layout /etc/wlogout/layout
|
||||||
|
```
|
||||||
|
|
||||||
|
Icons borrowed with pride from
|
||||||
|
[gaesch](https://github.com/gasech/hyprland-dots/tree/main)
|
||||||
69
wlogout/style.css
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
window {
|
||||||
|
font-family: JetBrainsMono Nerd Font, monospace;
|
||||||
|
font-size: 12pt;
|
||||||
|
color: #cdd6f4;
|
||||||
|
background-color: rgba(30, 30, 46, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: 20%;
|
||||||
|
border: none;
|
||||||
|
color: #ced7f4;
|
||||||
|
text-shadow: 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.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
button:focus {
|
||||||
|
background-color: #3d59a1;
|
||||||
|
color: #18182a;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#lock {
|
||||||
|
background-image: image(url("./icons/lock.png"));
|
||||||
|
}
|
||||||
|
#lock:focus {
|
||||||
|
background-image: image(url("./icons/lock-hover.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#logout {
|
||||||
|
background-image: image(url("./icons/logout.png"));
|
||||||
|
}
|
||||||
|
#logout:focus {
|
||||||
|
background-image: image(url("./icons/logout-hover.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#suspend {
|
||||||
|
background-image: image(url("./icons/sleep.png"));
|
||||||
|
}
|
||||||
|
#suspend:focus {
|
||||||
|
background-image: image(url("./icons/sleep-hover.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#shutdown {
|
||||||
|
background-image: image(url("./icons/power.png"));
|
||||||
|
}
|
||||||
|
#shutdown:focus {
|
||||||
|
background-image: image(url("./icons/power-hover.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#reboot {
|
||||||
|
background-image: image(url("./icons/restart.png"));
|
||||||
|
}
|
||||||
|
#reboot:focus {
|
||||||
|
background-image: image(url("./icons/restart-hover.png"));
|
||||||
|
}
|
||||||
|
#hibernate {
|
||||||
|
background-image: image(url("./icons/hibernate.png"));
|
||||||
|
}
|
||||||
|
#hibernate:focus {
|
||||||
|
background-image: image(url("./icons/hibernate-hover.png"));
|
||||||
|
}
|
||||||