From 52a42447ca406695ba2fb228734c272491ecd589 Mon Sep 17 00:00:00 2001 From: Siren Date: Sun, 22 Dec 2024 22:32:53 +0100 Subject: [PATCH] Battery widget added, config for swaylock like look added. --- config/hypr/hyprlock-swaylock.conf | 114 +++++++++++++++++++++++++++++ config/hypr/hyprlock.conf | 24 +++++- 2 files changed, 137 insertions(+), 1 deletion(-) create mode 100644 config/hypr/hyprlock-swaylock.conf diff --git a/config/hypr/hyprlock-swaylock.conf b/config/hypr/hyprlock-swaylock.conf new file mode 100644 index 0000000..2109b59 --- /dev/null +++ b/config/hypr/hyprlock-swaylock.conf @@ -0,0 +1,114 @@ +general { + hide_cursor = true +} +background { + monitor = + #path = screenshot + path = /home/siren/Pictures/wallpaper/swirl.jpg + color = rgba(17, 17, 17, 1.0) + blur_passes = 2 +} +shape { + monitor = + size = 130, 130 + color = rgba(0, 0, 0, 1) # no fill + rounding = -1 # circle + border_size = 0 + border_color = rgba(0, 0, 0, 0.5) + + position = 0, 0 + halign = center + valign = center + zindex = 1 +} +input-field { + monitor = + size = 140, 140 + outline_thickness = 1 + + placeholder_text = + fail_text = + hide_input = true + + inner_color = rgba(44, 44, 44, 0.4) + outer_color = rgba(0, 0, 0, 0.4) + #check_color = rgba(0, 170, 136, 1) + #fail_color = rgba(255, 144, 116, 1) + + font_family = Ubuntu + font_color = rgb(204, 204, 204) + font_size = 10 + fade_on_empty = false + rounding = -1 + + position = 0, 0 + halign = center + valign = center +} +label { + monitor = + text = cmd[update:1000] echo $(sh ~/.config/hypr/scripts/date.sh) + color = rgba(204, 204, 204, 1.0) + font_size = 26 + font_family = Bahnschrift + + position = 0, 280 + halign = center + valign = center +} +label { + monitor = + text = cmd[update:1000] echo $(date +"%I:%M %p") + color = rgba(204, 204, 204, 1.0) + font_size = 16 + font_family = Bahnschrift + + position = 0, 240 + halign = center + valign = center +} +label { + monitor = + text = welcome back $USER + color = rgba(197, 197, 197, 1.0) + font_size = 25 + font_family = Ubuntu + + position = 0, 140 + halign = center + valign = center +} +shape { + monitor = + size = 360, 60 + color = rgba(0, 0, 0, 0.0) # no fill + rounding = -1 # circle + border_size = 4 + border_color = rgba(0, 125, 111, 1) + + position = 0, 140 + halign = center + valign = center +} +label { + monitor = + text = cmd[update:0] echo "$(fortune -s)" + color = rgba(197, 197, 197, 1.0) + font_size = 12 + font_family = Ubuntu + + position = 0, 30 + halign = center + valign = bottom +} +label { + monitor = + text = cmd[update:1000] echo "󰁹 $(cat /sys/class/power_supply/BAT0/capacity)%" + color = rgba(197, 197, 197, 1.0) + font_size = 10 + font_family = Ubuntu + + position = 30, 30 + halign = left + valign = bottom +} diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index 141474e..6dde81a 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -29,7 +29,18 @@ input-field { } label { monitor = - text = cmd[update:1000] echo "$(date)" + text = cmd[update:1000] echo $(sh ~/.config/hypr/scripts/date.sh) + color = rgba(204, 204, 204, 1.0) + font_size = 26 + font_family = Bahnschrift + + position = 0, 220 + halign = center + valign = center +} +label { + monitor = + text = cmd[update:1000] echo $(date +"%I:%M %p") color = rgba(204, 204, 204, 1.0) font_size = 16 font_family = Bahnschrift @@ -73,3 +84,14 @@ label { halign = center valign = bottom } +label { + monitor = + text = cmd[update:1000] echo "󰁹 $(cat /sys/class/power_supply/BAT0/capacity)%" + color = rgba(197, 197, 197, 1.0) + font_size = 10 + font_family = Ubuntu + + position = 30, 30 + halign = left + valign = bottom +}