diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index b704e0b..3c905fe 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -1,13 +1,13 @@ { "layer": "top", - "output" : "DP-2", + "output": "DP-2", "modules-left": [ "custom/power", "hyprland/workspaces", "custom/spotify" ], "modules-center": [ - "clock", + "clock" ], "modules-right": [ "privacy", @@ -21,6 +21,7 @@ "custom/power": { "format": "⏻", "tooltip": false, + "on-click": "hyprctl dispatch exec 'wlogout -b 6 -L 1100 -R 1100 -T 650 -B 650'" }, "hyprland/workspaces": { "format": "{name}", @@ -29,7 +30,7 @@ "on-click": "none" }, "clock": { - "format": "{0:%H:%M:%S}", + "format": "{0:%b, %d %H:%M:%S}", "interval": 1, "tooltip": true, "tooltip-format": "{0:%A, %d.%m.%Y W%W}" @@ -67,7 +68,7 @@ "memory": { "format": " {percentage}% ({used}G)", "interval": 5, - "on-click": "hyprctl dispatch exec 'resources -t memory'" + "on-click": "hyprctl dispatch exec 'resources -t memory'" }, "pulseaudio": { "format": "{icon} {volume}%", @@ -108,4 +109,4 @@ "return-type": "json", "interval": 5 } -} +} \ No newline at end of file diff --git a/.config/wlogout/icons/hibernate.png b/.config/wlogout/icons/hibernate.png new file mode 100644 index 0000000..a6322aa Binary files /dev/null and b/.config/wlogout/icons/hibernate.png differ diff --git a/.config/wlogout/icons/lock-active.svg b/.config/wlogout/icons/lock-active.svg new file mode 100644 index 0000000..37c2365 --- /dev/null +++ b/.config/wlogout/icons/lock-active.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/.config/wlogout/icons/lock.png b/.config/wlogout/icons/lock.png new file mode 100644 index 0000000..f0b1eaf Binary files /dev/null and b/.config/wlogout/icons/lock.png differ diff --git a/.config/wlogout/icons/lock.svg b/.config/wlogout/icons/lock.svg new file mode 100644 index 0000000..6ab53f1 --- /dev/null +++ b/.config/wlogout/icons/lock.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/.config/wlogout/icons/logout.png b/.config/wlogout/icons/logout.png new file mode 100644 index 0000000..345a8aa Binary files /dev/null and b/.config/wlogout/icons/logout.png differ diff --git a/.config/wlogout/icons/reboot.png b/.config/wlogout/icons/reboot.png new file mode 100644 index 0000000..29cfa2f Binary files /dev/null and b/.config/wlogout/icons/reboot.png differ diff --git a/.config/wlogout/icons/shutdown.png b/.config/wlogout/icons/shutdown.png new file mode 100644 index 0000000..4d7d499 Binary files /dev/null and b/.config/wlogout/icons/shutdown.png differ diff --git a/.config/wlogout/icons/suspend.png b/.config/wlogout/icons/suspend.png new file mode 100644 index 0000000..647bd66 Binary files /dev/null and b/.config/wlogout/icons/suspend.png differ diff --git a/.config/wlogout/layout b/.config/wlogout/layout new file mode 100644 index 0000000..7013ee9 --- /dev/null +++ b/.config/wlogout/layout @@ -0,0 +1,36 @@ +{ + "label" : "lock", + "action" : "loginctl lock-session", + "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" +} diff --git a/.config/wlogout/style.css b/.config/wlogout/style.css new file mode 100644 index 0000000..7f78559 --- /dev/null +++ b/.config/wlogout/style.css @@ -0,0 +1,51 @@ +* { + background-image: none; + box-shadow: none; + font-family: "Fira Sans Semibold", 'Courier New', Courier, monospace; +} + +window { + background-color: rgba(12, 12, 12, 0.8); +} + +button { + border-radius: 500px; + text-decoration-color: #FFFFFF; + color: #FFFFFF; + border-style: solid; + border-width: 1px; + background-repeat: no-repeat; + background-position: center; + background-size: 15%; + border: none; +} + +button:focus, button:active, button:hover { + color: #33CCFF; + outline-style: none; + font-family: "Fira Sans Bold"; +} + +#lock { + background-image: image(url("/home/paul/.config/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png")); +} + +#logout { + background-image: image(url("/home/paul/.config/wlogout/icons/logout.png"), url("/usr/local/share/wlogout/icons/logout.png")); +} + +#suspend { + background-image: image(url("/home/paul/.config/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png")); +} + +#hibernate { + background-image: image(url("/home/paul/.config/wlogout/icons/hibernate.png"), url("/usr/local/share/wlogout/icons/hibernate.png")); +} + +#shutdown { + background-image: image(url("/home/paul/.config/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png")); +} + +#reboot { + background-image: image(url("/home/paul/.config/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png")); +}