hypr: update stuff
This commit is contained in:
+32
-11
@@ -43,6 +43,10 @@ label {
|
||||
text = cmd[update:30000] echo -e "$(date +"%R")" # 24-hours
|
||||
# text = cmd[update:30000] echo -e "$(date +"%I:%M %p")" # 12-hours (AM/PM)
|
||||
color = $foreground
|
||||
shadow_passes = 1
|
||||
shadow_size = 2
|
||||
shadow_color = $background
|
||||
shadow_boost = 0.4
|
||||
font_size = 120
|
||||
font_family = $clockFont
|
||||
position = 0, -60
|
||||
@@ -55,6 +59,10 @@ label {
|
||||
monitor =
|
||||
text = cmd[update:43200000] echo -e "$(date +"%A, %d %B %Y")"
|
||||
color = $foreground
|
||||
shadow_passes = 1
|
||||
shadow_size = 2
|
||||
shadow_color = $background
|
||||
shadow_boost = 0.4
|
||||
font_size = 20
|
||||
font_family = $font
|
||||
position = 0, -250
|
||||
@@ -74,17 +82,21 @@ label {
|
||||
position = 0, 5
|
||||
}
|
||||
|
||||
# Media # TODO rework for astal and ags
|
||||
#label {
|
||||
# monitor =
|
||||
# font_size = 12
|
||||
# font_family = Cantarell
|
||||
# color = $foreground
|
||||
# text = cmd[update:1000] JSON_MEDIA=$(eww get json_media | jq -c '.'); PLAYER=$(echo $JSON_MEDIA | jq -r ".player"); TITLE=$(echo $JSON_MEDIA | jq -r ".title"); ARTIST=$(echo $JSON_MEDIA | jq -r ".artist"); [[ "$JSON_MEDIA" == "" ]] || sh -c "echo -e $([[ $PLAYER =~ 'spotify' ]] && echo -e '' || echo -e '') $TITLE - $ARTIST"
|
||||
# halign = center
|
||||
# valign = center
|
||||
# position = 0, 180
|
||||
#}
|
||||
Media
|
||||
label {
|
||||
monitor =
|
||||
font_size = 12
|
||||
font_family = Cantarell
|
||||
color = $foreground
|
||||
text = cmd[update:1000] bash -c 'playerctl metadata && echo -e " $(playerctl metadata title) - $(playerctl metadata artist)"' | tail -n 1
|
||||
shadow_passes = 1
|
||||
shadow_size = 2
|
||||
shadow_color = $background
|
||||
shadow_boost = 0.4
|
||||
halign = center
|
||||
valign = center
|
||||
position = 0, 180
|
||||
}
|
||||
|
||||
# Avatar
|
||||
image {
|
||||
@@ -92,9 +104,14 @@ image {
|
||||
path = ~/.face
|
||||
size = 72
|
||||
border_color = $color2
|
||||
border_size = 2
|
||||
position = 0, 100
|
||||
halign = center
|
||||
valign = bottom
|
||||
shadow_passes = 1
|
||||
shadow_size = 2
|
||||
shadow_color = $background
|
||||
shadow_boost = 0.4
|
||||
}
|
||||
|
||||
# Input (password)
|
||||
@@ -118,4 +135,8 @@ input-field {
|
||||
position = 0, 40
|
||||
halign = center
|
||||
valign = bottom
|
||||
shadow_passes = 1
|
||||
shadow_size = 2
|
||||
shadow_color = $background
|
||||
shadow_boost = 0.2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user