diff --git a/wlogout/icons/hibernate-hover.png b/wlogout/icons/hibernate-hover.png new file mode 100644 index 0000000..1f07a2c Binary files /dev/null and b/wlogout/icons/hibernate-hover.png differ diff --git a/wlogout/icons/hibernate.png b/wlogout/icons/hibernate.png new file mode 100644 index 0000000..bf2b001 Binary files /dev/null and b/wlogout/icons/hibernate.png differ diff --git a/wlogout/icons/lock-hover.png b/wlogout/icons/lock-hover.png new file mode 100644 index 0000000..8fb86fe Binary files /dev/null and b/wlogout/icons/lock-hover.png differ diff --git a/wlogout/icons/lock.png b/wlogout/icons/lock.png new file mode 100644 index 0000000..430451c Binary files /dev/null and b/wlogout/icons/lock.png differ diff --git a/wlogout/icons/logout-hover.png b/wlogout/icons/logout-hover.png new file mode 100644 index 0000000..9e570a9 Binary files /dev/null and b/wlogout/icons/logout-hover.png differ diff --git a/wlogout/icons/logout.png b/wlogout/icons/logout.png new file mode 100644 index 0000000..128c995 Binary files /dev/null and b/wlogout/icons/logout.png differ diff --git a/wlogout/icons/power-hover.png b/wlogout/icons/power-hover.png new file mode 100644 index 0000000..122d331 Binary files /dev/null and b/wlogout/icons/power-hover.png differ diff --git a/wlogout/icons/power.png b/wlogout/icons/power.png new file mode 100644 index 0000000..ce56166 Binary files /dev/null and b/wlogout/icons/power.png differ diff --git a/wlogout/icons/restart-hover.png b/wlogout/icons/restart-hover.png new file mode 100644 index 0000000..3e18536 Binary files /dev/null and b/wlogout/icons/restart-hover.png differ diff --git a/wlogout/icons/restart.png b/wlogout/icons/restart.png new file mode 100644 index 0000000..7855d40 Binary files /dev/null and b/wlogout/icons/restart.png differ diff --git a/wlogout/icons/sleep-hover.png b/wlogout/icons/sleep-hover.png new file mode 100644 index 0000000..0fd3bad Binary files /dev/null and b/wlogout/icons/sleep-hover.png differ diff --git a/wlogout/icons/sleep.png b/wlogout/icons/sleep.png new file mode 100644 index 0000000..6a3d607 Binary files /dev/null and b/wlogout/icons/sleep.png differ diff --git a/wlogout/layout b/wlogout/layout new file mode 100644 index 0000000..6841651 --- /dev/null +++ b/wlogout/layout @@ -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" +} \ No newline at end of file diff --git a/wlogout/readme.md b/wlogout/readme.md new file mode 100644 index 0000000..5416c88 --- /dev/null +++ b/wlogout/readme.md @@ -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) \ No newline at end of file diff --git a/wlogout/style.css b/wlogout/style.css new file mode 100644 index 0000000..19bf9b6 --- /dev/null +++ b/wlogout/style.css @@ -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")); +} \ No newline at end of file