From 0b2abdb3a462cdc4027be75da7db2c673f194838 Mon Sep 17 00:00:00 2001 From: Kiran George Date: Wed, 24 Apr 2024 08:03:30 +0530 Subject: [PATCH] Added image in hyprlock config and added ping to server before weather curl request is sent --- config/hypr/hyprlock.conf | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index 6af5d7b..538ae25 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -51,7 +51,7 @@ label { font_size = 34 font_family = JetBrains Mono Nerd Font 10 - position = 0, -100 + position = 0, -150 halign = center valign = top } @@ -64,7 +64,7 @@ label { font_size = 24 font_family = JetBrains Mono Nerd Font 10 - position = 0, -150 + position = 0, -200 halign = center valign = top } @@ -78,7 +78,7 @@ label { font_size = 94 font_family = JetBrains Mono Nerd Font 10 - position = 0, 0 + position = 0, -150 halign = center valign = center } @@ -108,7 +108,7 @@ label { label { monitor = - text = cmd[update:3600000] curl -s 'wttr.in?format=2' # For specific location : wttr.in/busan?format=2 + text = cmd[update:3600000] ping -c 1 wttr.in > /dev/null && curl -s 'wttr.in?format=2' # For specific location : wttr.in/busan?format=2 color = $color10 font_size = 24 font_family = JetBrains Mono Nerd Font 10 @@ -116,3 +116,17 @@ label { halign = left valign = bottom } + +image { + monitor = + path = $HOME/.config/rofi/.current_wallpaper + size = 230 + rounding = -1 + border_size = 4 + border_color = $color12 + rotate = 0 + reload_time = -1 + position = 0, 200 + halign = center + valign = center +} \ No newline at end of file