diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf index 97d8a28..42c3ec6 100644 --- a/hypr/hyprlock.conf +++ b/hypr/hyprlock.conf @@ -48,6 +48,17 @@ label { valign = center } +# BATTERY +label { + monitor = + text = cmd[update:30000] echo "󰁹 $(cat /sys/class/power_supply/BAT1/capacity)%" + font_family = Lexend + font_size = 14 + position = -100, 100 + halign = right + valign = bottom +} + input-field { monitor = size = 300, 50 diff --git a/waybar/config.jsonc b/waybar/config.jsonc index cf80b3e..944bfea 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -123,7 +123,7 @@ "warning": 30, }, "events": { - "on-dischargin-critical": "notify-send -u critical 'Low Battery'" + "on-discharging-critical": "notify-send -u critical 'Low Battery'" } }, "custom/sep": { diff --git a/wlogout/icons/hibernate.png b/wlogout/icons/hibernate.png new file mode 100644 index 0000000..a6322aa Binary files /dev/null and b/wlogout/icons/hibernate.png differ diff --git a/wlogout/icons/lock.png b/wlogout/icons/lock.png new file mode 100644 index 0000000..f0b1eaf Binary files /dev/null and b/wlogout/icons/lock.png differ diff --git a/wlogout/icons/logout.png b/wlogout/icons/logout.png new file mode 100644 index 0000000..345a8aa Binary files /dev/null and b/wlogout/icons/logout.png differ diff --git a/wlogout/icons/reboot.png b/wlogout/icons/reboot.png new file mode 100644 index 0000000..29cfa2f Binary files /dev/null and b/wlogout/icons/reboot.png differ diff --git a/wlogout/icons/shutdown.png b/wlogout/icons/shutdown.png new file mode 100644 index 0000000..4d7d499 Binary files /dev/null and b/wlogout/icons/shutdown.png differ diff --git a/wlogout/icons/suspend.png b/wlogout/icons/suspend.png new file mode 100644 index 0000000..647bd66 Binary files /dev/null and b/wlogout/icons/suspend.png differ diff --git a/wlogout/layout b/wlogout/layout new file mode 100644 index 0000000..b3b158e --- /dev/null +++ b/wlogout/layout @@ -0,0 +1,36 @@ +{ + "label" : "lock", + "action" : "hyprlock", + "text" : "Lock", + "keybind" : "l" +} +{ + "label" : "logout", + "action" : "hyprctl dispatch exit", + "text" : "Logout", + "keybind" : "e" +} +{ + "label" : "suspend", + "action" : "systemctl suspend", + "text" : "Suspend", + "keybind" : "u" +} +{ + "label" : "hibernate", + "action" : "systemctl hibernate", + "text" : "Hibernate", + "keybind" : "h" +} +{ + "label" : "shutdown", + "action" : "systemctl poweroff", + "text" : "Shutdown", + "keybind" : "s" +} +{ + "label" : "reboot", + "action" : "systemctl reboot", + "text" : "Reboot", + "keybind" : "r" +} diff --git a/wlogout/style.css b/wlogout/style.css new file mode 100644 index 0000000..30bf0b8 --- /dev/null +++ b/wlogout/style.css @@ -0,0 +1,43 @@ +window { + font-family: "Lexend"; + font-size: 12pt; + color: #cdd6f4; + background-color: rgba(30, 30, 46, 0.9); +} + +button { + background-repeat: no-repeat; + background-position: center; + background-size: 25%; + border-style: solid; + border-width: 3px; + background-color: rgba(12, 12, 12, 0.3); + border-color: #313244; + margin: 5px; + border-radius: 20px; + transition: all 0.3s ease-in-out; +} + +#lock { + background-image: image(url("icons/lock.png")); +} + +#logout { + background-image: image(url("icons/logout.png")); +} + +#suspend { + background-image: image(url("icons/suspend.png")); +} + +#hibernate { + background-image: image(url("icons/hibernate.png")); +} + +#reboot { + background-image: image(url("icons/reboot.png")); +} + +#shutdown { + background-image: image(url("icons/shutdown.png")); +}