changed background added stuff to weather.py
This commit is contained in:
@@ -245,7 +245,7 @@ bindswitch --reload --locked lid:off output $laptop enable
|
|||||||
# Monitors
|
# Monitors
|
||||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||||
output HDMI-A-1 scale 2.0
|
output HDMI-A-1 scale 2.0
|
||||||
output * bg /home/opal/.config/wallpapers/tropical-mountains.jpg fill
|
output * bg ~/.config/wallpapers/exterminator.png fill
|
||||||
|
|
||||||
bindsym $mod+Shift+m output "HDMI-A-1" enable
|
bindsym $mod+Shift+m output "HDMI-A-1" enable
|
||||||
bindsym $mod+Shift+n output "HDMI-A-1" disable
|
bindsym $mod+Shift+n output "HDMI-A-1" disable
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Image
|
# Image
|
||||||
image=~/.config/wallpapers/tropical-mountains.jpg
|
image=~/.config/wallpapers/exterminator.png
|
||||||
scaling=fill
|
scaling=fill
|
||||||
|
|
||||||
# Indicator
|
# Indicator
|
||||||
|
|||||||
BIN
.config/wallpapers/blasfemia.png
Normal file
BIN
.config/wallpapers/blasfemia.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 MiB |
BIN
.config/wallpapers/exterminator.png
Normal file
BIN
.config/wallpapers/exterminator.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
@@ -26,6 +26,7 @@ def get_weather_icon(description):
|
|||||||
"thunderstorm": "",
|
"thunderstorm": "",
|
||||||
"snow": "",
|
"snow": "",
|
||||||
"mist": "",
|
"mist": "",
|
||||||
|
"haze": ""
|
||||||
}
|
}
|
||||||
return icons.get(description, "❓")
|
return icons.get(description, "❓")
|
||||||
|
|
||||||
@@ -38,7 +39,7 @@ try:
|
|||||||
weather_data = response.json()
|
weather_data = response.json()
|
||||||
|
|
||||||
weather_desc = weather_data["weather"][0]["description"]
|
weather_desc = weather_data["weather"][0]["description"]
|
||||||
# print(weather_desc)
|
#print(weather_desc)
|
||||||
temp_c = round(weather_data["main"]["temp"])
|
temp_c = round(weather_data["main"]["temp"])
|
||||||
temp_f = round(celsius_to_fahrenheit(temp_c))
|
temp_f = round(celsius_to_fahrenheit(temp_c))
|
||||||
weather_icon = get_weather_icon(weather_desc)
|
weather_icon = get_weather_icon(weather_desc)
|
||||||
|
|||||||
Reference in New Issue
Block a user