Browse Source

Added image in hyprlock config and added ping to server before weather curl request is sent

pull/211/head
Kiran George 2 years ago
parent
commit
0b2abdb3a4
  1. 22
      config/hypr/hyprlock.conf

22
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
}
Loading…
Cancel
Save