feat: wlogout

This commit is contained in:
Elias Renman
2023-11-30 00:48:27 +01:00
parent 09aefa9c00
commit 01740eadfd
15 changed files with 113 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
wlogout/icons/hibernate.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
wlogout/icons/lock.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
wlogout/icons/logout.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
wlogout/icons/power.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

BIN
wlogout/icons/restart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
wlogout/icons/sleep.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

36
wlogout/layout Normal file
View 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
View 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
View 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"));
}