🗑️ remove(waybar): not used scripts
This commit is contained in:
parent
214c5ae44b
commit
40a1806c1d
6 changed files with 0 additions and 212 deletions
|
@ -1,19 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
## Simple Script To Pick Color Quickly.
|
|
||||||
|
|
||||||
# pick and autocopy
|
|
||||||
hyprpicker -n -a
|
|
||||||
|
|
||||||
# get the value
|
|
||||||
color=$(wl-paste)
|
|
||||||
|
|
||||||
image=/tmp/${color}.png
|
|
||||||
|
|
||||||
if [[ "$color" ]]; then
|
|
||||||
# generate preview
|
|
||||||
convert -size 48x48 xc:"$color" ${image}
|
|
||||||
# notify the color
|
|
||||||
notify-send -u low -i ${image} "$color" "Copied to clipboard."
|
|
||||||
fi
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
echo "$(cat /sys/devices/platform/asus-nb-wmi/hwmon/hwmon[[:print:]]*/fan1_input) RPM "
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/usr/bin/bash
|
|
||||||
|
|
||||||
killall -q waybar
|
|
||||||
|
|
||||||
# env GTK_DEBUG=interactive
|
|
||||||
waybar -l info -c ~/.config/waybar/config.jsonc -s ~/.config/waybar/style.css > /tmp/waybar.log 2>&1 & disown
|
|
|
@ -1,24 +0,0 @@
|
||||||
#!/usr/bin/bash
|
|
||||||
swaylockd \
|
|
||||||
--screenshots \
|
|
||||||
--indicator \
|
|
||||||
--clock \
|
|
||||||
--inside-wrong-color f38ba8 \
|
|
||||||
--ring-wrong-color 161925 \
|
|
||||||
--inside-clear-color a6e3a1 \
|
|
||||||
--ring-clear-color 161925 \
|
|
||||||
--inside-ver-color 89b4fa \
|
|
||||||
--ring-ver-color 161925 \
|
|
||||||
--text-color f5c2e7 \
|
|
||||||
--indicator-radius 100 \
|
|
||||||
--indicator-thickness 5 \
|
|
||||||
--effect-blur 8x5 \
|
|
||||||
--effect-vignette 0.4:0.4 \
|
|
||||||
--ring-color 161925 \
|
|
||||||
--key-hl-color f5c2e7 \
|
|
||||||
--line-color 313244 \
|
|
||||||
--inside-color 00161925 \
|
|
||||||
--separator-color 00000000 \
|
|
||||||
--fade-in 0.2 &
|
|
||||||
|
|
||||||
# sleep 2; ~/.config/hypr/scripts/screenshot_full
|
|
|
@ -1,39 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Original script by @speltriao on GitHub
|
|
||||||
# https://github.com/speltriao/Pacman-Update-for-GNOME-Shell
|
|
||||||
|
|
||||||
# If the operating system is not Arch Linux, exit the script successfully
|
|
||||||
if [ ! -f /etc/arch-release ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Calculate updates for each service
|
|
||||||
AUR=$(yay -Qua | wc -l)
|
|
||||||
|
|
||||||
# Case/switch for each service updates
|
|
||||||
case $1 in
|
|
||||||
aur) echo " $AUR";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# If the parameter is "update", update all services
|
|
||||||
if [ "$1" = "update" ]; then
|
|
||||||
kitty --start-as=fullscreen --title all_is_kitty sh -c 'yay -Syu'
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If there aren't any parameters, return the total number of updates
|
|
||||||
if [ "$1" = "" ]; then
|
|
||||||
# Calculate total number of updates
|
|
||||||
COUNT=$((AUR))
|
|
||||||
# If there are updates, the script will output the following: Updates
|
|
||||||
# If there are no updates, the script will output nothing.
|
|
||||||
|
|
||||||
if [[ "$COUNT" = "0" ]]
|
|
||||||
then
|
|
||||||
echo ""
|
|
||||||
else
|
|
||||||
# This Update symbol is RTL. So ‭ is left-to-right override.
|
|
||||||
echo " $COUNT"
|
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
fi
|
|
|
@ -1,122 +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 = {}
|
|
||||||
|
|
||||||
try:
|
|
||||||
weather = requests.get("https://wttr.in/?format=j1").json()
|
|
||||||
except Exception:
|
|
||||||
data['text'] = '🪐'
|
|
||||||
data['tooltip'] = 'Weather data unavailable'
|
|
||||||
print(json.dumps(data))
|
|
||||||
exit()
|
|
||||||
|
|
||||||
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"<b>{weather['current_condition'][0]['weatherDesc'][0]['value']} {weather['current_condition'][0]['temp_C']}°</b>\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<b>"
|
|
||||||
if i == 0:
|
|
||||||
data['tooltip'] += "Today, "
|
|
||||||
if i == 1:
|
|
||||||
data['tooltip'] += "Tomorrow, "
|
|
||||||
data['tooltip'] += f"{day['date']}</b>\n"
|
|
||||||
data['tooltip'] += f"⬆️ {day['maxtempC']}° ⬇️ {day['mintempC']}° "
|
|
||||||
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))
|
|
Loading…
Add table
Reference in a new issue