From ead314085dd03214aecc5e1c2e0b1d61256b6a30 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 5 May 2023 16:48:38 +0300 Subject: remove pictures and scripts Removing pictures and scripts from this repo, seperating into different ones --- pictures/exwm-guix-02-02.png | Bin 1828099 -> 0 bytes pictures/medicine/plague-doctor-s.png | Bin 107388 -> 0 bytes pictures/showcase.png | Bin 1917408 -> 0 bytes pictures/showcase2.png | Bin 1899445 -> 0 bytes pictures/sources.org | 2 - pictures/wallpaper-cyberpunk.jpg | Bin 1099430 -> 0 bytes pictures/wallpaper-cyberpunk2.jpg | Bin 338344 -> 0 bytes pictures/wallpaper.png | Bin 365750 -> 0 bytes scripts/keyboard-light-x220.sh | 9 --- scripts/sound.sh | 3 - scripts/waybar-wttr.py | 119 ---------------------------------- 11 files changed, 133 deletions(-) delete mode 100755 pictures/exwm-guix-02-02.png delete mode 100755 pictures/medicine/plague-doctor-s.png delete mode 100755 pictures/showcase.png delete mode 100755 pictures/showcase2.png delete mode 100755 pictures/sources.org delete mode 100644 pictures/wallpaper-cyberpunk.jpg delete mode 100644 pictures/wallpaper-cyberpunk2.jpg delete mode 100755 pictures/wallpaper.png delete mode 100755 scripts/keyboard-light-x220.sh delete mode 100755 scripts/sound.sh delete mode 100755 scripts/waybar-wttr.py diff --git a/pictures/exwm-guix-02-02.png b/pictures/exwm-guix-02-02.png deleted file mode 100755 index 023ed79..0000000 Binary files a/pictures/exwm-guix-02-02.png and /dev/null differ diff --git a/pictures/medicine/plague-doctor-s.png b/pictures/medicine/plague-doctor-s.png deleted file mode 100755 index 25f8be0..0000000 Binary files a/pictures/medicine/plague-doctor-s.png and /dev/null differ diff --git a/pictures/showcase.png b/pictures/showcase.png deleted file mode 100755 index babb9f8..0000000 Binary files a/pictures/showcase.png and /dev/null differ diff --git a/pictures/showcase2.png b/pictures/showcase2.png deleted file mode 100755 index e13539f..0000000 Binary files a/pictures/showcase2.png and /dev/null differ diff --git a/pictures/sources.org b/pictures/sources.org deleted file mode 100755 index 2c64a42..0000000 --- a/pictures/sources.org +++ /dev/null @@ -1,2 +0,0 @@ - -/plague doctor pic [[https://www.deviantart.com/oomizuao/art/romac-OC-chibi-Medico-284285734][source]]/ diff --git a/pictures/wallpaper-cyberpunk.jpg b/pictures/wallpaper-cyberpunk.jpg deleted file mode 100644 index 7b7bee4..0000000 Binary files a/pictures/wallpaper-cyberpunk.jpg and /dev/null differ diff --git a/pictures/wallpaper-cyberpunk2.jpg b/pictures/wallpaper-cyberpunk2.jpg deleted file mode 100644 index 8892acc..0000000 Binary files a/pictures/wallpaper-cyberpunk2.jpg and /dev/null differ diff --git a/pictures/wallpaper.png b/pictures/wallpaper.png deleted file mode 100755 index 02b2f78..0000000 Binary files a/pictures/wallpaper.png and /dev/null differ diff --git a/scripts/keyboard-light-x220.sh b/scripts/keyboard-light-x220.sh deleted file mode 100755 index 6aa509b..0000000 --- a/scripts/keyboard-light-x220.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -STATUS=$(brightnessctl --device "tpacpi::thinklight" | grep "Current brightness") - -if [[ "$STATUS" == *"(0%)" ]]; then - brightnessctl --device "tpacpi::thinklight" set 1 -else - brightnessctl --device "tpacpi::thinklight" set 0 -fi diff --git a/scripts/sound.sh b/scripts/sound.sh deleted file mode 100755 index 8c19a5b..0000000 --- a/scripts/sound.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -awk -F"[][]" '/Left:/ { print $2 }' <(amixer sget Master) diff --git a/scripts/waybar-wttr.py b/scripts/waybar-wttr.py deleted file mode 100755 index 08b49a6..0000000 --- a/scripts/waybar-wttr.py +++ /dev/null @@ -1,119 +0,0 @@ -#!/usr/bin/env python - -import json -import requests -from datetime import datetime - -WEATHER_CODES = { - '113': '☀️ ', - '116': '⛅ ', - '119': '☁️ ', - '122': '☁️ ', - '143': '☁️ ', - '176': '🌧️', - '179': '🌧️', - '182': '🌧️', - '185': '🌧️', - '200': '⛈️ ', - '227': '🌨️', - '230': '🌨️', - '248': '☁️ ', - '260': '☁️ ', - '263': '🌧️', - '266': '🌧️', - '281': '🌧️', - '284': '🌧️', - '293': '🌧️', - '296': '🌧️', - '299': '🌧️', - '302': '🌧️', - '305': '🌧️', - '308': '🌧️', - '311': '🌧️', - '314': '🌧️', - '317': '🌧️', - '320': '🌨️', - '323': '🌨️', - '326': '🌨️', - '329': '❄️ ', - '332': '❄️ ', - '335': '❄️ ', - '338': '❄️ ', - '350': '🌧️', - '353': '🌧️', - '356': '🌧️', - '359': '🌧️', - '362': '🌧️', - '365': '🌧️', - '368': '🌧️', - '371': '❄️', - '374': '🌨️', - '377': '🌨️', - '386': '🌨️', - '389': '🌨️', - '392': '🌧️', - '395': '❄️ ' -} - -data = {} - - -weather = requests.get("https://wttr.in/?format=j1").json() - - -def format_time(time): - return time.replace("00", "").zfill(2) - - -def format_temp(temp): - return (hour['FeelsLikeC']+"°").ljust(3) - - -def format_chances(hour): - chances = { - "chanceoffog": "Fog", - "chanceoffrost": "Frost", - "chanceofovercast": "Overcast", - "chanceofrain": "Rain", - "chanceofsnow": "Snow", - "chanceofsunshine": "Sunshine", - "chanceofthunder": "Thunder", - "chanceofwindy": "Wind" - } - - conditions = [] - for event in chances.keys(): - if int(hour[event]) > 0: - conditions.append(chances[event]+" "+hour[event]+"%") - return ", ".join(conditions) - -tempint = int(weather['current_condition'][0]['FeelsLikeC']) -extrachar = '' -if tempint > 0 and tempint < 10: - extrachar = '+' - - -data['text'] = ' '+WEATHER_CODES[weather['current_condition'][0]['weatherCode']] + \ - " "+extrachar+weather['current_condition'][0]['FeelsLikeC']+"°" - -data['tooltip'] = f"{weather['current_condition'][0]['weatherDesc'][0]['value']} {weather['current_condition'][0]['temp_C']}°\n" -data['tooltip'] += f"Feels like: {weather['current_condition'][0]['FeelsLikeC']}°\n" -data['tooltip'] += f"Wind: {weather['current_condition'][0]['windspeedKmph']}Km/h\n" -data['tooltip'] += f"Humidity: {weather['current_condition'][0]['humidity']}%\n" -for i, day in enumerate(weather['weather']): - data['tooltip'] += f"\n" - if i == 0: - data['tooltip'] += "Today, " - if i == 1: - data['tooltip'] += "Tomorrow, " - data['tooltip'] += f"{day['date']}\n" - data['tooltip'] += f"⬆️ {day['maxtempF']}° ⬇️ {day['mintempF']}° " - data['tooltip'] += f"🌅 {day['astronomy'][0]['sunrise']} 🌇 {day['astronomy'][0]['sunset']}\n" - for hour in day['hourly']: - if i == 0: - if int(format_time(hour['time'])) < datetime.now().hour-2: - continue - data['tooltip'] += f"{format_time(hour['time'])} {WEATHER_CODES[hour['weatherCode']]} {format_temp(hour['FeelsLikeC'])} {hour['weatherDesc'][0]['value']}, {format_chances(hour)}\n" - - -print(json.dumps(data)) -- cgit v1.2.3