diff --git a/config/wlogout/layout b/config/wlogout/layout new file mode 100644 index 0000000..6d1c397 --- /dev/null +++ b/config/wlogout/layout @@ -0,0 +1,30 @@ +{ + "label" : "lock", + "action" : "$HOME/.config/hypr/scripts/LockScreen.sh", + "text" : "Lock", + "keybind" : "l" +} +{ + "label" : "reboot", + "action" : "systemctl reboot", + "text" : "Reboot", + "keybind" : "r" +} +{ + "label" : "shutdown", + "action" : "systemctl poweroff", + "text" : "Shutdown", + "keybind" : "s" +} +{ + "label" : "logout", + "action" : "hyprctl dispatch exit 0", + "text" : "Logout", + "keybind" : "e" +} +{ + "label" : "suspend", + "action" : "systemctl suspend", + "text" : "Suspend", + "keybind" : "u" +} diff --git a/config/wlogout/lock-hover.png b/config/wlogout/lock-hover.png new file mode 100644 index 0000000..8fb86fe Binary files /dev/null and b/config/wlogout/lock-hover.png differ diff --git a/config/wlogout/lock.png b/config/wlogout/lock.png new file mode 100644 index 0000000..430451c Binary files /dev/null and b/config/wlogout/lock.png differ diff --git a/config/wlogout/logout-hover.png b/config/wlogout/logout-hover.png new file mode 100644 index 0000000..9e570a9 Binary files /dev/null and b/config/wlogout/logout-hover.png differ diff --git a/config/wlogout/logout.png b/config/wlogout/logout.png new file mode 100644 index 0000000..128c995 Binary files /dev/null and b/config/wlogout/logout.png differ diff --git a/config/wlogout/power-hover.png b/config/wlogout/power-hover.png new file mode 100644 index 0000000..122d331 Binary files /dev/null and b/config/wlogout/power-hover.png differ diff --git a/config/wlogout/power.png b/config/wlogout/power.png new file mode 100644 index 0000000..ce56166 Binary files /dev/null and b/config/wlogout/power.png differ diff --git a/config/wlogout/restart-hover.png b/config/wlogout/restart-hover.png new file mode 100644 index 0000000..3e18536 Binary files /dev/null and b/config/wlogout/restart-hover.png differ diff --git a/config/wlogout/restart.png b/config/wlogout/restart.png new file mode 100644 index 0000000..7855d40 Binary files /dev/null and b/config/wlogout/restart.png differ diff --git a/config/wlogout/sleep-hover.png b/config/wlogout/sleep-hover.png new file mode 100644 index 0000000..0fd3bad Binary files /dev/null and b/config/wlogout/sleep-hover.png differ diff --git a/config/wlogout/sleep.png b/config/wlogout/sleep.png new file mode 100644 index 0000000..6a3d607 Binary files /dev/null and b/config/wlogout/sleep.png differ diff --git a/config/wlogout/style.css b/config/wlogout/style.css new file mode 100644 index 0000000..57c9ede --- /dev/null +++ b/config/wlogout/style.css @@ -0,0 +1,113 @@ +window { + font-family: monospace; + font-size: 14pt; + color: #cdd6f4; /* text */ + background-color: rgba(30, 30, 46, 0.5); +} + +button { + background-repeat: no-repeat; + background-position: center; + background-size: 25%; + border: none; + background-color: rgba(30, 30, 46, 0); + margin: 5px; + animation: gradient_f 20s ease-in infinite; + transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out; +} + +button:hover#lock { + /*background-color: rgba(49, 50, 68, 0.2);*/ + background-size: 25%; + margin-right : 30px; + margin-bottom : 30px; + border-radius: 20px; + animation: gradient_f 20s ease-in infinite; + transition: all 0.3s cubic-bezier(.55,0.0,.28,1.682); +} + +button:hover#logout { + /*background-color: rgba(49, 50, 68, 0.2);*/ + background-size: 25%; + margin-right : 30px; + margin-top : 30px; + border-radius: 20px; + animation: gradient_f 20s ease-in infinite; + transition: all 0.3s cubic-bezier(.55,0.0,.28,1.682); +} + +button:hover#shutdown { + /*background-color: rgba(49, 50, 68, 0.2);*/ + background-size: 25%; + margin-left : 20px; + margin-bottom : 30px; + border-radius: 20px; + animation: gradient_f 20s ease-in infinite; + transition: all 0.3s cubic-bezier(.55,0.0,.28,1.682); +} + +button:hover#reboot { + /*background-color: rgba(49, 50, 68, 0.2);*/ + background-size: 25%; + margin-left : 30px; + margin-top : 30px; + border-radius: 20px; + animation: gradient_f 20s ease-in infinite; + transition: all 0.3s cubic-bezier(.55,0.0,.28,1.682); +} + +button:hover#suspend { + /*background-color: rgba(49, 50, 68, 0.2);*/ + background-size: 25%; + margin-left : 30px; + margin-top : 30px; + border-radius: 20px; + animation: gradient_f 20s ease-in infinite; + transition: all 0.3s cubic-bezier(.55,0.0,.28,1.682); +} + +button:focus { + background-color: rgba(180, 190, 254, 0.3); + color: #1e1e2e; + background-size: 25%; + margin-left : 30px; + margin-top : 30px; + border-radius: 20px; + animation: gradient_f 20s ease-in infinite; + transition: all 0.3s cubic-bezier(.55,0.0,.28,1.682); +} + +#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")); +}