diff --git a/eww/eww.scss b/eww/eww.scss deleted file mode 100644 index 23841ba..0000000 --- a/eww/eww.scss +++ /dev/null @@ -1,75 +0,0 @@ -/** Global *******************************************/ -*{ - all: unset; - font-family: feather; - font-family: Iosevka; -} - -/** Background ***************************************/ -.bg { - // background-image: url("images/bg.png"); - background-color: #474D59; - opacity: 1; -} - -/** Generic window ***********************************/ -.genwin { - background-color: #2E3440; - border-radius: 16px; -} - -/** Music ***************************************/ -.album_art { - background-size: 240px; - min-height: 240px; - min-width: 240px; - margin: 20px; - border-radius: 14px; -} - -.song { - color: #8FBCBB; - font-size : 24px; - font-weight : bold; - margin : 40px 0px 0px 0px; -} - -.artist { - color: #EBCB8B; - font-size : 16px; - font-weight : normal; - margin : 0px 0px 15px 0px; -} - -.btn_prev, .btn_play, .btn_next { - font-family: Iosevka Nerd Font; -} -.btn_prev { - color: #EBCB8B; - font-size : 32px; - font-weight : normal; -} -.btn_play { - color: #A3BE8C; - font-size : 48px; - font-weight : bold; -} -.btn_next { - color: #EBCB8B; - font-size : 32px; - font-weight : normal; -} - -.music_bar scale trough highlight { - all: unset; - background-color: #B48EAD; - border-radius: 8px; -} -.music_bar scale trough { - all: unset; - background-color: #3A404C; - border-radius: 8px; - min-height: 20px; - min-width: 310px; - margin : 10px 0px 0px 0px; -} diff --git a/eww/eww.yuck b/eww/eww.yuck deleted file mode 100644 index a6e29a2..0000000 --- a/eww/eww.yuck +++ /dev/null @@ -1,37 +0,0 @@ -; Music vars -(deflisten music_metadata "scripts/music listen-metadata") -(deflisten music_position "scripts/music listen-position") -(deflisten music_status "scripts/music listen-status") - -; Music -(defwidget music [] - (box :class "genwin" :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false" - (box :class "album_art" :vexpand "false" :hexpand "false" :style "background-image: url('${music_metadata.arturl}');") - (box :orientation "v" :spacing 20 :space-evenly "false" :vexpand "false" :hexpand "false" - (label :halign "center" :class "song" :wrap "true" :limit-width 20 :text "${music_metadata.title}") - (label :halign "center" :class "artist" :wrap "true" :limit-width 15 :text "${music_metadata.artist}") - (box :orientation "h" :spacing 20 :halign "center" :space-evenly "true" :vexpand "false" :hexpand "false" - (button :class "btn_prev" :onclick "playerctl previous" "") - (button :class "btn_play" :onclick "playerctl play-pause" {"${music_status.status}" == "Playing" ? "" : ""}) - (button :class "btn_next" :onclick "playerctl next" "") - ) - (box :class "music_bar" :halign "center" :state "progress" - (scale - :onscroll "playerctl position {}" - :onclick "playerctl position {}" - :min 0 - :max "${music_metadata.length}" - :active true - :hexpand true - :vexpand true - :value "${music_position.position}" - ) - ) - ) - ) -) - -; music -(defwindow music :stacking "fg" :focusable "false" :screen 1 :monitor 0 - :geometry (geometry :x 100 :y 100 :width 610 :height 280) - (music)) diff --git a/eww/scripts/music b/eww/scripts/music deleted file mode 100755 index d4488f4..0000000 --- a/eww/scripts/music +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -listen_metadata() { - fmt="\"artist\":\"{{artist}}\",\"title\":\"{{title}}\",\"album\":\"{{album}}\"" - fmt="$fmt,\"arturl\":\"{{mpris:artUrl}}\",\"length\":\"{{mpris:length}}\"" - fmt="$fmt,\"duration\":\"{{duration(mpris:length)}}\"" - playerctl --follow metadata --format "{$fmt}" | while read -r info; do - artist=$(echo -e $info | jq -r ".artist") - title=$(echo -e $info | jq -r ".title") - url=$(echo -e $info | jq -r ".arturl") - # cover=$(cover_art "$url") - # lyrics=$(lyrics_lines "$artist" "$title") - echo $info | jq -cr ". + {\"cover\":\"$cover\",\"lyrics\":\"$lyrics\"}" - done -} - -listen_position() { - fmt="{\"position\":\"{{position}}\",\"time\":\"{{duration(position)}}\"}" - playerctl --follow position --format "$fmt" -} - -listen_status() { - playerctl --follow status | while read -r playstatus; do - if [[ $playstatus != "Playing" ]]; then - icon="" - else - icon="" - fi - echo "{\"status\":\"$playstatus\",\"icon\":\"$icon\"}" - done -} - -case "$1" in - "listen-metadata") - listen_metadata - ;; - "listen-position") - listen_position - ;; - "listen-status") - listen_status - ;; -esac diff --git a/eww/toggle_music b/eww/toggle_music deleted file mode 100755 index bf3a477..0000000 --- a/eww/toggle_music +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -if [ ! -f ~/.eww_music ]; then - eww --config ~/dotfiles/eww open music - echo $! > ~/.eww_music -else - eww --config ~/dotfiles/eww close music - rm ~/.eww_music -fi diff --git a/eww/weather/eww.scss b/eww/weather/eww.scss deleted file mode 100644 index 6e21aa7..0000000 --- a/eww/weather/eww.scss +++ /dev/null @@ -1,48 +0,0 @@ -/** Global *******************************************/ -*{ - all: unset; - font-family: feather; - font-family: Iosevka; -} - -/** Background ***************************************/ -.bg { - // background-image: url("images/bg.png"); - background-color: #474D59; - opacity: 1; -} - -/** Generic window ***********************************/ -.genwin { - background-color: #2E3440; - border-radius: 16px; - padding: 20px; -} - -.label_temp { - font-size: 100; - color: white; - background-color: black; - padding: 10; - border-radius: 16; -} - -.label_stat { - padding: 10; - border-radius: 16; - font-size: 50; - color: white; - background-color: black; -} - -.areabox { - background-color: black; - border-radius: 16; -} - -.label_quote { - color: white; - background-color: black; - padding: 10; - border-radius: 16; -} diff --git a/eww/weather/eww.yuck b/eww/weather/eww.yuck deleted file mode 100644 index 0d25ba3..0000000 --- a/eww/weather/eww.yuck +++ /dev/null @@ -1,32 +0,0 @@ -; Weather data -(defpoll weatherdata :interval "15m" `wttr/wttr.py`) - -(defwidget weather [] - (box :class "genwin" :style "background-image: url('${weatherdata.current_condition[0].weatherCode}');background-size: cover;" - (box :orientation "v" :spacing 10 :space-evenly false :vexpand false :hexpand false - (box :orientation "h" :spacing 0 :vexpand false :hexpand false - (label :class "label_temp" :halign "center" :text "${weatherdata.current_condition[0].temp_C}") - ) - (box :orientation "v" :spacing 10 :halign "center" :space-evenly false :vexpand false :hexpand false - (label :class "label_stat" :text "${weatherdata.current_condition[0].weatherDesc[0].value}") - (box - :class "areabox" - :orientation "h" - :spacing 10 - :space-evenly false - :vexpand false - :hexpand false - :halign "center" - (label :class "label_quote" :text "${weatherdata.nearest_area[0].country[0].value}") - (label :class "label_quote" :text "${weatherdata.nearest_area[0].region[0].value}") - ) - ) - ) - ) -) - -; Weather window -(defwindow weather :stacking "bg" :focusable true :exclusive true :screen 1 :windowtype "dock" - :geometry (geometry :x 100 :y 100 :width 610 :height 280) - (weather) -) diff --git a/eww/weather/images/113.jpg b/eww/weather/images/113.jpg deleted file mode 100644 index c52e76c..0000000 Binary files a/eww/weather/images/113.jpg and /dev/null differ diff --git a/eww/weather/images/116.jpeg b/eww/weather/images/116.jpeg deleted file mode 100644 index 91cd3a6..0000000 Binary files a/eww/weather/images/116.jpeg and /dev/null differ diff --git a/eww/weather/images/119.jpeg b/eww/weather/images/119.jpeg deleted file mode 100644 index f5ee625..0000000 Binary files a/eww/weather/images/119.jpeg and /dev/null differ diff --git a/eww/weather/images/143.jpg b/eww/weather/images/143.jpg deleted file mode 100644 index 15f14da..0000000 Binary files a/eww/weather/images/143.jpg and /dev/null differ diff --git a/eww/weather/images/176.jpeg b/eww/weather/images/176.jpeg deleted file mode 100644 index 30d79bc..0000000 Binary files a/eww/weather/images/176.jpeg and /dev/null differ diff --git a/eww/weather/images/bg.png b/eww/weather/images/bg.png deleted file mode 100644 index 4a9b899..0000000 Binary files a/eww/weather/images/bg.png and /dev/null differ diff --git a/eww/weather/images/bidstorm.jpeg b/eww/weather/images/bidstorm.jpeg deleted file mode 100644 index beb3330..0000000 Binary files a/eww/weather/images/bidstorm.jpeg and /dev/null differ diff --git a/eww/weather/images/cold.jpeg b/eww/weather/images/cold.jpeg deleted file mode 100644 index d39a8d2..0000000 Binary files a/eww/weather/images/cold.jpeg and /dev/null differ diff --git a/eww/weather/images/rain.jpeg b/eww/weather/images/rain.jpeg deleted file mode 100644 index 23f45f6..0000000 Binary files a/eww/weather/images/rain.jpeg and /dev/null differ diff --git a/eww/weather/images/snow.jpeg b/eww/weather/images/snow.jpeg deleted file mode 100644 index a7834ce..0000000 Binary files a/eww/weather/images/snow.jpeg and /dev/null differ diff --git a/eww/weather/images/storm.jpeg b/eww/weather/images/storm.jpeg deleted file mode 100644 index 9e8f09f..0000000 Binary files a/eww/weather/images/storm.jpeg and /dev/null differ diff --git a/eww/weather/wttr.json b/eww/weather/wttr.json deleted file mode 100644 index 4fb9a29..0000000 --- a/eww/weather/wttr.json +++ /dev/null @@ -1,1146 +0,0 @@ -{ - "current_condition": [ - { - "FeelsLikeC": "8", - "FeelsLikeF": "47", - "cloudcover": "77", - "humidity": "88", - "localObsDateTime": "2024-09-03 09:00 AM", - "observation_time": "02:00 AM", - "precipInches": "0.0", - "precipMM": "0.1", - "pressure": "1008", - "pressureInches": "30", - "temp_C": "10", - "temp_F": "50", - "uvIndex": "3", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "176", - "weatherDesc": [{ "value": "Patchy rain nearby" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "W", - "winddirDegree": "268", - "windspeedKmph": "14", - "windspeedMiles": "9" - } - ], - "nearest_area": [ - { - "areaName": [{ "value": "Томск" }], - "country": [{ "value": "Russia" }], - "latitude": "56.500", - "longitude": "84.967", - "population": "485519", - "region": [{ "value": "Tomsk" }], - "weatherUrl": [{ "value": "" }] - } - ], - "request": [{ "query": "Lat 56.49 and Lon 84.95", "type": "LatLon" }], - "weather": [ - { - "astronomy": [ - { - "moon_illumination": "0", - "moon_phase": "Waxing Crescent", - "moonrise": "06:17 AM", - "moonset": "08:22 PM", - "sunrise": "06:27 AM", - "sunset": "08:10 PM" - } - ], - "avgtempC": "9", - "avgtempF": "48", - "date": "2024-09-03", - "hourly": [ - { - "DewPointC": "7", - "DewPointF": "45", - "FeelsLikeC": "5", - "FeelsLikeF": "41", - "HeatIndexC": "8", - "HeatIndexF": "46", - "WindChillC": "5", - "WindChillF": "41", - "WindGustKmph": "31", - "WindGustMiles": "19", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "90", - "chanceofrain": "100", - "chanceofremdry": "0", - "chanceofsnow": "0", - "chanceofsunshine": "0", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "100", - "diffRad": "0.0", - "humidity": "97", - "precipInches": "0.0", - "precipMM": "0.6", - "pressure": "1005", - "pressureInches": "30", - "shortRad": "0.0", - "tempC": "8", - "tempF": "46", - "time": "0", - "uvIndex": "1", - "visibility": "2", - "visibilityMiles": "1", - "weatherCode": "266", - "weatherDesc": [{ "value": "Light drizzle" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "SSW", - "winddirDegree": "192", - "windspeedKmph": "20", - "windspeedMiles": "12" - }, - { - "DewPointC": "9", - "DewPointF": "48", - "FeelsLikeC": "7", - "FeelsLikeF": "44", - "HeatIndexC": "9", - "HeatIndexF": "48", - "WindChillC": "7", - "WindChillF": "44", - "WindGustKmph": "22", - "WindGustMiles": "14", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "92", - "chanceofrain": "100", - "chanceofremdry": "0", - "chanceofsnow": "0", - "chanceofsunshine": "0", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "100", - "diffRad": "1.5", - "humidity": "99", - "precipInches": "0.0", - "precipMM": "0.3", - "pressure": "1004", - "pressureInches": "30", - "shortRad": "1.9", - "tempC": "9", - "tempF": "48", - "time": "300", - "uvIndex": "1", - "visibility": "2", - "visibilityMiles": "1", - "weatherCode": "266", - "weatherDesc": [{ "value": "Light drizzle" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "SW", - "winddirDegree": "233", - "windspeedKmph": "14", - "windspeedMiles": "9" - }, - { - "DewPointC": "9", - "DewPointF": "48", - "FeelsLikeC": "8", - "FeelsLikeF": "47", - "HeatIndexC": "10", - "HeatIndexF": "51", - "WindChillC": "8", - "WindChillF": "47", - "WindGustKmph": "20", - "WindGustMiles": "13", - "chanceoffog": "7", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "88", - "chanceofrain": "100", - "chanceofremdry": "0", - "chanceofsnow": "0", - "chanceofsunshine": "0", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "100", - "diffRad": "22.1", - "humidity": "92", - "precipInches": "0.0", - "precipMM": "0.2", - "pressure": "1006", - "pressureInches": "30", - "shortRad": "38.6", - "tempC": "10", - "tempF": "51", - "time": "600", - "uvIndex": "1", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "353", - "weatherDesc": [{ "value": "Light rain shower" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "W", - "winddirDegree": "280", - "windspeedKmph": "15", - "windspeedMiles": "9" - }, - { - "DewPointC": "9", - "DewPointF": "47", - "FeelsLikeC": "9", - "FeelsLikeF": "48", - "HeatIndexC": "11", - "HeatIndexF": "51", - "WindChillC": "9", - "WindChillF": "48", - "WindGustKmph": "22", - "WindGustMiles": "13", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "81", - "chanceofrain": "100", - "chanceofremdry": "0", - "chanceofsnow": "0", - "chanceofsunshine": "0", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "84", - "diffRad": "100.4", - "humidity": "86", - "precipInches": "0.0", - "precipMM": "0.1", - "pressure": "1008", - "pressureInches": "30", - "shortRad": "176.4", - "tempC": "11", - "tempF": "51", - "time": "900", - "uvIndex": "3", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "176", - "weatherDesc": [{ "value": "Patchy rain nearby" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "W", - "winddirDegree": "276", - "windspeedKmph": "15", - "windspeedMiles": "10" - }, - { - "DewPointC": "8", - "DewPointF": "47", - "FeelsLikeC": "9", - "FeelsLikeF": "49", - "HeatIndexC": "11", - "HeatIndexF": "51", - "WindChillC": "9", - "WindChillF": "49", - "WindGustKmph": "17", - "WindGustMiles": "11", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "86", - "chanceofrain": "100", - "chanceofremdry": "0", - "chanceofsnow": "0", - "chanceofsunshine": "0", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "84", - "diffRad": "90.4", - "humidity": "85", - "precipInches": "0.0", - "precipMM": "0.2", - "pressure": "1009", - "pressureInches": "30", - "shortRad": "160.4", - "tempC": "11", - "tempF": "51", - "time": "1200", - "uvIndex": "3", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "353", - "weatherDesc": [{ "value": "Light rain shower" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "W", - "winddirDegree": "262", - "windspeedKmph": "12", - "windspeedMiles": "7" - }, - { - "DewPointC": "8", - "DewPointF": "47", - "FeelsLikeC": "8", - "FeelsLikeF": "47", - "HeatIndexC": "9", - "HeatIndexF": "49", - "WindChillC": "8", - "WindChillF": "47", - "WindGustKmph": "15", - "WindGustMiles": "9", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "81", - "chanceofrain": "71", - "chanceofremdry": "0", - "chanceofsnow": "0", - "chanceofsunshine": "0", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "100", - "diffRad": "7.1", - "humidity": "92", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1011", - "pressureInches": "30", - "shortRad": "13.3", - "tempC": "9", - "tempF": "49", - "time": "1500", - "uvIndex": "2", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "176", - "weatherDesc": [{ "value": "Patchy rain nearby" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "SW", - "winddirDegree": "225", - "windspeedKmph": "9", - "windspeedMiles": "5" - }, - { - "DewPointC": "7", - "DewPointF": "45", - "FeelsLikeC": "7", - "FeelsLikeF": "44", - "HeatIndexC": "8", - "HeatIndexF": "46", - "WindChillC": "7", - "WindChillF": "44", - "WindGustKmph": "12", - "WindGustMiles": "7", - "chanceoffog": "2", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "90", - "chanceofrain": "0", - "chanceofremdry": "93", - "chanceofsnow": "0", - "chanceofsunshine": "17", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "100", - "diffRad": "1.8", - "humidity": "97", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1011", - "pressureInches": "30", - "shortRad": "3.3", - "tempC": "8", - "tempF": "46", - "time": "1800", - "uvIndex": "2", - "visibility": "2", - "visibilityMiles": "1", - "weatherCode": "143", - "weatherDesc": [{ "value": "Mist" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "SW", - "winddirDegree": "226", - "windspeedKmph": "6", - "windspeedMiles": "4" - }, - { - "DewPointC": "7", - "DewPointF": "45", - "FeelsLikeC": "8", - "FeelsLikeF": "46", - "HeatIndexC": "8", - "HeatIndexF": "46", - "WindChillC": "8", - "WindChillF": "46", - "WindGustKmph": "3", - "WindGustMiles": "2", - "chanceoffog": "41", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "94", - "chanceofrain": "0", - "chanceofremdry": "92", - "chanceofsnow": "0", - "chanceofsunshine": "13", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "90", - "diffRad": "0.0", - "humidity": "96", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1011", - "pressureInches": "30", - "shortRad": "0.0", - "tempC": "8", - "tempF": "46", - "time": "2100", - "uvIndex": "1", - "visibility": "2", - "visibilityMiles": "1", - "weatherCode": "143", - "weatherDesc": [{ "value": "Mist" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "WSW", - "winddirDegree": "244", - "windspeedKmph": "1", - "windspeedMiles": "1" - } - ], - "maxtempC": "11", - "maxtempF": "52", - "mintempC": "7", - "mintempF": "44", - "sunHour": "10.5", - "totalSnow_cm": "0.0", - "uvIndex": "1" - }, - { - "astronomy": [ - { - "moon_illumination": "1", - "moon_phase": "Waxing Crescent", - "moonrise": "07:35 AM", - "moonset": "08:26 PM", - "sunrise": "06:29 AM", - "sunset": "08:07 PM" - } - ], - "avgtempC": "9", - "avgtempF": "49", - "date": "2024-09-04", - "hourly": [ - { - "DewPointC": "6", - "DewPointF": "43", - "FeelsLikeC": "6", - "FeelsLikeF": "43", - "HeatIndexC": "6", - "HeatIndexF": "44", - "WindChillC": "6", - "WindChillF": "43", - "WindGustKmph": "9", - "WindGustMiles": "6", - "chanceoffog": "16", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "86", - "chanceofrain": "0", - "chanceofremdry": "86", - "chanceofsnow": "0", - "chanceofsunshine": "17", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "66", - "diffRad": "0.0", - "humidity": "97", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1009", - "pressureInches": "30", - "shortRad": "0.0", - "tempC": "6", - "tempF": "44", - "time": "0", - "uvIndex": "1", - "visibility": "2", - "visibilityMiles": "1", - "weatherCode": "143", - "weatherDesc": [{ "value": "Mist" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "ENE", - "winddirDegree": "60", - "windspeedKmph": "5", - "windspeedMiles": "3" - }, - { - "DewPointC": "6", - "DewPointF": "44", - "FeelsLikeC": "6", - "FeelsLikeF": "43", - "HeatIndexC": "7", - "HeatIndexF": "45", - "WindChillC": "6", - "WindChillF": "43", - "WindGustKmph": "11", - "WindGustMiles": "7", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "81", - "chanceofrain": "0", - "chanceofremdry": "91", - "chanceofsnow": "0", - "chanceofsunshine": "19", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "50", - "diffRad": "28.3", - "humidity": "95", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1009", - "pressureInches": "30", - "shortRad": "57.6", - "tempC": "7", - "tempF": "45", - "time": "300", - "uvIndex": "1", - "visibility": "2", - "visibilityMiles": "1", - "weatherCode": "143", - "weatherDesc": [{ "value": "Mist" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "NE", - "winddirDegree": "37", - "windspeedKmph": "6", - "windspeedMiles": "4" - }, - { - "DewPointC": "7", - "DewPointF": "45", - "FeelsLikeC": "10", - "FeelsLikeF": "51", - "HeatIndexC": "12", - "HeatIndexF": "53", - "WindChillC": "10", - "WindChillF": "51", - "WindGustKmph": "12", - "WindGustMiles": "7", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "85", - "chanceofrain": "0", - "chanceofremdry": "85", - "chanceofsnow": "0", - "chanceofsunshine": "10", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "74", - "diffRad": "94.1", - "humidity": "74", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1009", - "pressureInches": "30", - "shortRad": "242.7", - "tempC": "12", - "tempF": "53", - "time": "600", - "uvIndex": "1", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "119", - "weatherDesc": [{ "value": "Cloudy " }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "NNE", - "winddirDegree": "30", - "windspeedKmph": "10", - "windspeedMiles": "6" - }, - { - "DewPointC": "6", - "DewPointF": "43", - "FeelsLikeC": "13", - "FeelsLikeF": "55", - "HeatIndexC": "14", - "HeatIndexF": "57", - "WindChillC": "13", - "WindChillF": "55", - "WindGustKmph": "14", - "WindGustMiles": "9", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "81", - "chanceofrain": "100", - "chanceofremdry": "0", - "chanceofsnow": "0", - "chanceofsunshine": "0", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "100", - "diffRad": "181.7", - "humidity": "59", - "precipInches": "0.0", - "precipMM": "0.1", - "pressure": "1009", - "pressureInches": "30", - "shortRad": "463.6", - "tempC": "14", - "tempF": "57", - "time": "900", - "uvIndex": "3", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "176", - "weatherDesc": [{ "value": "Patchy rain nearby" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "N", - "winddirDegree": "358", - "windspeedKmph": "12", - "windspeedMiles": "7" - }, - { - "DewPointC": "5", - "DewPointF": "41", - "FeelsLikeC": "11", - "FeelsLikeF": "52", - "HeatIndexC": "13", - "HeatIndexF": "55", - "WindChillC": "11", - "WindChillF": "52", - "WindGustKmph": "17", - "WindGustMiles": "11", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "80", - "chanceofrain": "0", - "chanceofremdry": "83", - "chanceofsnow": "0", - "chanceofsunshine": "19", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "92", - "diffRad": "153.0", - "humidity": "60", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1011", - "pressureInches": "30", - "shortRad": "327.8", - "tempC": "13", - "tempF": "55", - "time": "1200", - "uvIndex": "3", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "122", - "weatherDesc": [{ "value": "Overcast " }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "N", - "winddirDegree": "352", - "windspeedKmph": "13", - "windspeedMiles": "8" - }, - { - "DewPointC": "6", - "DewPointF": "43", - "FeelsLikeC": "8", - "FeelsLikeF": "46", - "HeatIndexC": "9", - "HeatIndexF": "48", - "WindChillC": "8", - "WindChillF": "46", - "WindGustKmph": "15", - "WindGustMiles": "9", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "82", - "chanceofrain": "62", - "chanceofremdry": "0", - "chanceofsnow": "0", - "chanceofsunshine": "0", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "82", - "diffRad": "14.3", - "humidity": "81", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1012", - "pressureInches": "30", - "shortRad": "29.1", - "tempC": "9", - "tempF": "48", - "time": "1500", - "uvIndex": "2", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "176", - "weatherDesc": [{ "value": "Patchy rain nearby" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "N", - "winddirDegree": "357", - "windspeedKmph": "8", - "windspeedMiles": "5" - }, - { - "DewPointC": "6", - "DewPointF": "42", - "FeelsLikeC": "5", - "FeelsLikeF": "41", - "HeatIndexC": "6", - "HeatIndexF": "43", - "WindChillC": "5", - "WindChillF": "41", - "WindGustKmph": "13", - "WindGustMiles": "8", - "chanceoffog": "7", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "83", - "chanceofrain": "0", - "chanceofremdry": "93", - "chanceofsnow": "0", - "chanceofsunshine": "6", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "34", - "diffRad": "3.6", - "humidity": "96", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1014", - "pressureInches": "30", - "shortRad": "7.3", - "tempC": "6", - "tempF": "43", - "time": "1800", - "uvIndex": "2", - "visibility": "2", - "visibilityMiles": "1", - "weatherCode": "143", - "weatherDesc": [{ "value": "Mist" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "N", - "winddirDegree": "4", - "windspeedKmph": "6", - "windspeedMiles": "4" - }, - { - "DewPointC": "6", - "DewPointF": "42", - "FeelsLikeC": "5", - "FeelsLikeF": "42", - "HeatIndexC": "6", - "HeatIndexF": "43", - "WindChillC": "5", - "WindChillF": "42", - "WindGustKmph": "10", - "WindGustMiles": "6", - "chanceoffog": "20", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "82", - "chanceofrain": "0", - "chanceofremdry": "93", - "chanceofsnow": "0", - "chanceofsunshine": "10", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "68", - "diffRad": "0.0", - "humidity": "96", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1014", - "pressureInches": "30", - "shortRad": "0.0", - "tempC": "6", - "tempF": "43", - "time": "2100", - "uvIndex": "1", - "visibility": "2", - "visibilityMiles": "1", - "weatherCode": "143", - "weatherDesc": [{ "value": "Mist" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "N", - "winddirDegree": "3", - "windspeedKmph": "5", - "windspeedMiles": "3" - } - ], - "maxtempC": "14", - "maxtempF": "57", - "mintempC": "6", - "mintempF": "43", - "sunHour": "11.3", - "totalSnow_cm": "0.0", - "uvIndex": "3" - }, - { - "astronomy": [ - { - "moon_illumination": "3", - "moon_phase": "Waxing Crescent", - "moonrise": "08:50 AM", - "moonset": "08:29 PM", - "sunrise": "06:31 AM", - "sunset": "08:04 PM" - } - ], - "avgtempC": "10", - "avgtempF": "49", - "date": "2024-09-05", - "hourly": [ - { - "DewPointC": "6", - "DewPointF": "43", - "FeelsLikeC": "6", - "FeelsLikeF": "43", - "HeatIndexC": "7", - "HeatIndexF": "44", - "WindChillC": "6", - "WindChillF": "43", - "WindGustKmph": "10", - "WindGustMiles": "6", - "chanceoffog": "22", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "89", - "chanceofrain": "0", - "chanceofremdry": "84", - "chanceofsnow": "0", - "chanceofsunshine": "18", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "67", - "diffRad": "0.0", - "humidity": "96", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1014", - "pressureInches": "30", - "shortRad": "0.0", - "tempC": "7", - "tempF": "44", - "time": "0", - "uvIndex": "1", - "visibility": "2", - "visibilityMiles": "1", - "weatherCode": "143", - "weatherDesc": [{ "value": "Mist" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "NNE", - "winddirDegree": "14", - "windspeedKmph": "6", - "windspeedMiles": "4" - }, - { - "DewPointC": "6", - "DewPointF": "43", - "FeelsLikeC": "6", - "FeelsLikeF": "43", - "HeatIndexC": "8", - "HeatIndexF": "46", - "WindChillC": "6", - "WindChillF": "43", - "WindGustKmph": "11", - "WindGustMiles": "7", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "44", - "chanceofrain": "0", - "chanceofremdry": "90", - "chanceofsnow": "0", - "chanceofsunshine": "71", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "55", - "diffRad": "26.2", - "humidity": "92", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1014", - "pressureInches": "30", - "shortRad": "55.5", - "tempC": "8", - "tempF": "46", - "time": "300", - "uvIndex": "1", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "116", - "weatherDesc": [{ "value": "Partly Cloudy " }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "NNE", - "winddirDegree": "23", - "windspeedKmph": "8", - "windspeedMiles": "5" - }, - { - "DewPointC": "6", - "DewPointF": "43", - "FeelsLikeC": "11", - "FeelsLikeF": "51", - "HeatIndexC": "12", - "HeatIndexF": "53", - "WindChillC": "11", - "WindChillF": "51", - "WindGustKmph": "13", - "WindGustMiles": "8", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "86", - "chanceofrain": "68", - "chanceofremdry": "0", - "chanceofsnow": "0", - "chanceofsunshine": "0", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "82", - "diffRad": "82.4", - "humidity": "67", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1013", - "pressureInches": "30", - "shortRad": "256.5", - "tempC": "12", - "tempF": "53", - "time": "600", - "uvIndex": "1", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "176", - "weatherDesc": [{ "value": "Patchy rain nearby" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "NE", - "winddirDegree": "37", - "windspeedKmph": "12", - "windspeedMiles": "7" - }, - { - "DewPointC": "5", - "DewPointF": "41", - "FeelsLikeC": "13", - "FeelsLikeF": "55", - "HeatIndexC": "14", - "HeatIndexF": "57", - "WindChillC": "13", - "WindChillF": "55", - "WindGustKmph": "15", - "WindGustMiles": "9", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "89", - "chanceofrain": "83", - "chanceofremdry": "0", - "chanceofsnow": "0", - "chanceofsunshine": "0", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "93", - "diffRad": "163.1", - "humidity": "54", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1012", - "pressureInches": "30", - "shortRad": "453.8", - "tempC": "14", - "tempF": "57", - "time": "900", - "uvIndex": "3", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "176", - "weatherDesc": [{ "value": "Patchy rain nearby" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "NE", - "winddirDegree": "49", - "windspeedKmph": "13", - "windspeedMiles": "8" - }, - { - "DewPointC": "6", - "DewPointF": "44", - "FeelsLikeC": "12", - "FeelsLikeF": "54", - "HeatIndexC": "13", - "HeatIndexF": "55", - "WindChillC": "12", - "WindChillF": "54", - "WindGustKmph": "14", - "WindGustMiles": "8", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "93", - "chanceofrain": "67", - "chanceofremdry": "0", - "chanceofsnow": "0", - "chanceofsunshine": "0", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "69", - "diffRad": "100.0", - "humidity": "64", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1012", - "pressureInches": "30", - "shortRad": "219.3", - "tempC": "13", - "tempF": "55", - "time": "1200", - "uvIndex": "3", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "176", - "weatherDesc": [{ "value": "Patchy rain nearby" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "NE", - "winddirDegree": "42", - "windspeedKmph": "9", - "windspeedMiles": "6" - }, - { - "DewPointC": "7", - "DewPointF": "44", - "FeelsLikeC": "9", - "FeelsLikeF": "49", - "HeatIndexC": "11", - "HeatIndexF": "51", - "WindChillC": "9", - "WindChillF": "49", - "WindGustKmph": "19", - "WindGustMiles": "12", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "91", - "chanceofrain": "81", - "chanceofremdry": "0", - "chanceofsnow": "0", - "chanceofsunshine": "0", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "51", - "diffRad": "8.8", - "humidity": "76", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1012", - "pressureInches": "30", - "shortRad": "16.7", - "tempC": "11", - "tempF": "51", - "time": "1500", - "uvIndex": "3", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "176", - "weatherDesc": [{ "value": "Patchy rain nearby" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "NNE", - "winddirDegree": "33", - "windspeedKmph": "11", - "windspeedMiles": "7" - }, - { - "DewPointC": "5", - "DewPointF": "42", - "FeelsLikeC": "5", - "FeelsLikeF": "41", - "HeatIndexC": "7", - "HeatIndexF": "44", - "WindChillC": "5", - "WindChillF": "41", - "WindGustKmph": "20", - "WindGustMiles": "13", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "37", - "chanceofrain": "0", - "chanceofremdry": "94", - "chanceofsnow": "0", - "chanceofsunshine": "88", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "36", - "diffRad": "2.2", - "humidity": "90", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1012", - "pressureInches": "30", - "shortRad": "4.2", - "tempC": "7", - "tempF": "44", - "time": "1800", - "uvIndex": "3", - "visibility": "10", - "visibilityMiles": "6", - "weatherCode": "116", - "weatherDesc": [{ "value": "Partly Cloudy " }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "NE", - "winddirDegree": "38", - "windspeedKmph": "10", - "windspeedMiles": "6" - }, - { - "DewPointC": "5", - "DewPointF": "41", - "FeelsLikeC": "3", - "FeelsLikeF": "38", - "HeatIndexC": "6", - "HeatIndexF": "42", - "WindChillC": "3", - "WindChillF": "38", - "WindGustKmph": "22", - "WindGustMiles": "14", - "chanceoffog": "0", - "chanceoffrost": "0", - "chanceofhightemp": "0", - "chanceofovercast": "89", - "chanceofrain": "0", - "chanceofremdry": "82", - "chanceofsnow": "0", - "chanceofsunshine": "11", - "chanceofthunder": "0", - "chanceofwindy": "0", - "cloudcover": "16", - "diffRad": "0.0", - "humidity": "95", - "precipInches": "0.0", - "precipMM": "0.0", - "pressure": "1011", - "pressureInches": "30", - "shortRad": "0.0", - "tempC": "6", - "tempF": "42", - "time": "2100", - "uvIndex": "1", - "visibility": "2", - "visibilityMiles": "1", - "weatherCode": "143", - "weatherDesc": [{ "value": "Mist" }], - "weatherIconUrl": [{ "value": "" }], - "winddir16Point": "NE", - "winddirDegree": "35", - "windspeedKmph": "10", - "windspeedMiles": "6" - } - ], - "maxtempC": "14", - "maxtempF": "57", - "mintempC": "6", - "mintempF": "42", - "sunHour": "12.0", - "totalSnow_cm": "0.0", - "uvIndex": "3" - } - ] -} diff --git a/eww/weather/wttr/wttr.py b/eww/weather/wttr/wttr.py deleted file mode 100755 index 723795e..0000000 --- a/eww/weather/wttr/wttr.py +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/python - -import json -import requests -from datetime import datetime - -WEATHER_CODES = { - '113': 'images/113.jpg', - '116': 'images/116.jpeg', - '119': 'images/119.jpeg', - '122': 'images/119.jpeg', - '143': 'images/143.jpg', - '176': 'images/176.jpeg', - '179': 'images/rain.jpeg', - '182': 'images/rain.jpeg', - '185': 'images/rain.jpeg', - '200': 'images/storm.jpeg', - '227': 'images/snow.jpeg', - '230': 'images/cold.jpeg', - '248': 'images/143.jpg', - '260': 'images/143.jpg', - '263': 'images/176.jpeg', - '266': 'images/176.jpeg', - '281': 'images/rain.jpeg', - '284': 'images/rain.jpeg', - '293': 'images/176.jpeg', - '296': 'images/176.jpeg', - '299': 'images/rain.jpeg', - '302': 'images/rain.jpeg', - '305': 'images/rain.jpeg', - '308': 'images/rain.jpeg', - '311': 'images/rain.jpeg', - '314': 'images/rain.jpeg', - '317': 'images/rain.jpeg', - '320': 'images/snow.jpeg', - '323': 'images/snow.jpeg', - '326': 'images/snow.jpeg', - '329': 'images/cold.jpeg', - '332': 'images/cold.jpeg', - '335': 'images/cold.jpeg', - '338': 'images/cold.jpeg', - '350': 'images/rain.jpeg', - '353': 'images/176.jpeg', - '356': 'images/rain.jpeg', - '359': 'images/rain.jpeg', - '362': 'images/rain.jpeg', - '365': 'images/rain.jpeg', - '368': 'images/snow.jpeg', - '371': 'images/cold.jpeg', - '374': 'images/rain.jpeg', - '377': 'images/rain.jpeg', - '386': 'images/storm.jpeg', - '389': 'images/bigstorm.jpeg', - '392': 'images/storm.jpeg', - '395': 'images/cold.jpeg' -} - -data = {} - -weather = requests.get("https://wttr.in/Tomsk+Russia?format=j1").json() - -# data['text'] = WEATHER_CODES[weather['current_condition'][0]['weatherCode']] + \ -# " "+weather['current_condition'][0]['FeelsLikeC']+"°" - -weather['current_condition'][0]['weatherCode'] = WEATHER_CODES[weather['current_condition'][0]['weatherCode']] - -print(json.dumps(weather)) diff --git a/hyfetch/hyfetch.json b/hyfetch/hyfetch.json deleted file mode 100644 index 142fc6b..0000000 --- a/hyfetch/hyfetch.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "preset": "rainbow", - "mode": "rgb", - "light_dark": "dark", - "lightness": 0.65, - "color_align": { - "mode": "horizontal", - "custom_colors": [], - "fore_back": null - }, - "backend": "neofetch", - "args": null, - "distro": null, - "pride_month_shown": [], - "pride_month_disable": false -} \ No newline at end of file diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf index f8b46cb..5ceb80f 100644 --- a/hypr/hyprlock.conf +++ b/hypr/hyprlock.conf @@ -2,7 +2,7 @@ #---- backgroung configuration ---------------------------------------------------------------------------------------------------------------------- background { monitor = # show on all monitors - path = /home/tola/Pictures/wallpaper/apple-waves1.png + path = /home/tola/Pictures/wallpaper/river_to_castle_theme_blue.png color = rgba(25, 20, 20, 1.0) # color blur_passes = 4 # 0 disables blurring blur_size = 2 # blur size