Update configs due to newer programs (hypr, eza@aliasrc)
Add new features to ansible-vault-manager Add search engines to qutebrowser Add location to waybar weather
This commit is contained in:
parent
7300c7a813
commit
6f6ca6f79d
9 changed files with 49 additions and 16 deletions
|
@ -23,9 +23,6 @@
|
|||
"on-click": "activate",
|
||||
"all-outputs": true,
|
||||
"sort-by-number": true,
|
||||
"persistent_workspaces": {
|
||||
"*": 10
|
||||
}
|
||||
},
|
||||
"hyprland/window": {
|
||||
"max-length": 128
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#!nix-shell -i python -p python3 python3Packages.requests
|
||||
|
||||
import json
|
||||
import os
|
||||
import requests
|
||||
from datetime import datetime
|
||||
|
||||
|
@ -58,8 +59,9 @@ WEATHER_CODES = {
|
|||
|
||||
data = {}
|
||||
|
||||
|
||||
weather = requests.get("https://wttr.in/?format=j1").json()
|
||||
place = os.environ.get('WTTR_PLACE', 'Berlin')
|
||||
url = "https://wttr.in/" + place + "?format=j1"
|
||||
weather = requests.get(url).json()
|
||||
|
||||
|
||||
def format_time(time):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue