From 0b2abdb3a462cdc4027be75da7db2c673f194838 Mon Sep 17 00:00:00 2001 From: Kiran George Date: Wed, 24 Apr 2024 08:03:30 +0530 Subject: [PATCH 1/2] 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 From d9f5d66504336a361cb59ac96591b774288938c4 Mon Sep 17 00:00:00 2001 From: Kiran George Date: Wed, 24 Apr 2024 08:13:03 +0530 Subject: [PATCH 2/2] Updated hypridle to launch hyprlock before sleep to have hyprlock open when waking up from suspend --- config/hypr/hypridle.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf index 7b8ce81..549f1b1 100644 --- a/config/hypr/hypridle.conf +++ b/config/hypr/hypridle.conf @@ -6,7 +6,7 @@ general { # lock_cmd = notify-send "lock!" # dbus/sysd lock command (loginctl lock-session) # unlock_cmd = notify-send "unlock!" # same as above, but unlock - # before_sleep_cmd = notify-send "Zzz" # command ran before sleep + before_sleep_cmd = hyprlock # command ran before sleep # after_sleep_cmd = notify-send "Awake!" # command ran after sleep ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) }