mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Update nvim, zsh
This commit is contained in:
parent
4400d0aac8
commit
a9d8ac7432
5 changed files with 47 additions and 63 deletions
|
|
@ -19,7 +19,7 @@ bspc monitor -d 1 2 3 4 5 6 7 8 9
|
|||
|
||||
# General
|
||||
bspc config border_width 2
|
||||
bspc config window_gap 6
|
||||
bspc config window_gap 4
|
||||
bspc config split_ratio 0.50
|
||||
bspc config borderless_monocle true
|
||||
bspc config gapless_monocle true
|
||||
|
|
@ -39,6 +39,7 @@ bspc rule -a kitty desktop='^1' focus=on follow=on
|
|||
bspc rule -a firefox desktop='^2' focus=on follow=on
|
||||
bspc rule -a Google-chrome desktop='^2' focus=on follow=on
|
||||
bspc rule -a Code desktop='^3' focus=on follow=on
|
||||
bspc rule -a Emacs desktop='^3' focus=on follow=on state='tiled'
|
||||
bspc rule -a '*:nvim' desktop='^3' focus=on follow=on
|
||||
bspc rule -a '*:ranger' desktop='^4' focus=on follow=off
|
||||
bspc rule -a Thunar desktop='^4' focus=on follow=off
|
||||
|
|
|
|||
|
|
@ -1,15 +1,8 @@
|
|||
"""For working this script set in ~/.profile 2 variable:
|
||||
OWM_POLYBAR: API key
|
||||
OWM_CITY: Your city
|
||||
"""
|
||||
import requests, os
|
||||
|
||||
|
||||
API_KEY = os.getenv("OWM_POLYBAR")
|
||||
CITY = os.getenv("OWM_CITY")
|
||||
|
||||
try:
|
||||
JSON = requests.get(f"http://api.openweathermap.org/data/2.5/weather?q={CITY}&lang=EN&&units=metric&appid={API_KEY}").json()
|
||||
print("", int(JSON["main"]["temp"]), "°С")
|
||||
except Exception:
|
||||
print(" err °С")
|
||||
except Exception as e:
|
||||
print(" err")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue