mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-03-22 06:11:27 -07:00
idk
This commit is contained in:
@@ -312,13 +312,13 @@
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"notification": "<span foreground='red'><sup></sup></span>",
|
||||
"none": "<span foreground='red'><sup> </sup></span>",
|
||||
"none": "",
|
||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-none": "<span foreground='red'><sup> </sup></span>",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"inhibited-none": "<span foreground='red'><sup> </sup></span>",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-inhibited-none": "<span foreground='red'><sup> </sup></span>",
|
||||
"dnd-inhibited-none": "",
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
|
||||
@@ -185,6 +185,7 @@ label:focus {
|
||||
#network {
|
||||
background-color: @peach;
|
||||
color: @mantle;
|
||||
padding: 0 18px 0 10px;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
@@ -273,7 +274,7 @@ label:focus {
|
||||
background-color: @yellow;
|
||||
color: @mantle;
|
||||
padding: 0 10px;
|
||||
margin: 5px 1px 5px 5px;
|
||||
margin: 5px 1px 5px 1px;
|
||||
}
|
||||
|
||||
#custom-launcher {
|
||||
@@ -330,7 +331,6 @@ label:focus {
|
||||
font-family: inherit;
|
||||
padding: 0 10px;
|
||||
margin: 5px 1px;
|
||||
min-width: 1em;
|
||||
background-color: @maroon;
|
||||
color: @mantle;
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ fetch_weather() {
|
||||
--show-error \
|
||||
--fail \
|
||||
--max-time 10 \
|
||||
"https://api.open-meteo.com/v1/forecast?latitude=${latitude}&longitude=${longitude}¤t=temperature_2m,relative_humidity_2m,apparent_temperature,weather_code,wind_speed_10m,is_day&timezone=$(url_encode "$timezone")" 2>/dev/null || true
|
||||
"https://api.open-meteo.com/v1/forecast?latitude=${latitude}&longitude=${longitude}¤t=temperature_2m,relative_humidity_2m,apparent_temperature,weather_code,wind_speed_10m,is_day&temperature_unit=fahrenheit&wind_speed_unit=mph&timezone=$(url_encode "$timezone")" 2>/dev/null || true
|
||||
}
|
||||
|
||||
format_weather() {
|
||||
@@ -140,8 +140,8 @@ format_weather() {
|
||||
humidity="$(jq -r '.current.relative_humidity_2m | round | "\(.)"' <<<"$weather_json")"
|
||||
wind="$(jq -r '.current.wind_speed_10m | round | "\(.)"' <<<"$weather_json")"
|
||||
|
||||
text="${icon} ${temperature}°C"
|
||||
tooltip="${place}: ${description}. Feels like ${feels_like}°C, humidity ${humidity}%, wind ${wind} km/h"
|
||||
text="${icon} ${temperature}°F"
|
||||
tooltip="${place}: ${description}. Feels like ${feels_like}°F, humidity ${humidity}%, wind ${wind} mph"
|
||||
|
||||
emit_json "$text" "$tooltip"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user