12 changed files with 113 additions and 34 deletions
-
19aliases/key_aliases.tmpl
-
13aliases/key_dirs.tmpl
-
2aliases/key_files.tmpl
-
7dot_config/fish/config.fish.tmpl
-
3dot_config/i3/config.tmpl
-
19dot_config/i3blocks/i3blocks.conf.tmpl
-
13dot_config/mimeapps-ffox.list
-
10dot_config/mimeapps.list
-
4dot_imwheelrc
-
5dot_xinitrc.tmpl
-
36scripts/executable_glhf-metadata
-
16scripts/executable_ubuntu-start
@ -0,0 +1,36 @@ |
|||||
|
#!/usr/bin/env python |
||||
|
|
||||
|
import requests |
||||
|
|
||||
|
def get_tier_value(num): |
||||
|
url = f"https://www.glhfers.com/api/rom-metadata/{num}" |
||||
|
try: |
||||
|
response = requests.get(url) |
||||
|
response.raise_for_status() # Raise an error for bad status codes |
||||
|
data = response.json() |
||||
|
|
||||
|
# Find the Tier trait value |
||||
|
for attribute in data.get("attributes", []): |
||||
|
if attribute.get("trait_type") == "Tier": |
||||
|
return attribute.get("value") |
||||
|
# value = attribute.get("value") |
||||
|
|
||||
|
return "Tier not found" |
||||
|
except requests.exceptions.RequestException as e: |
||||
|
return f"Error fetching data: {e}" |
||||
|
|
||||
|
def main(): |
||||
|
while True: |
||||
|
try: |
||||
|
num = input("Enter a number: ") |
||||
|
if num.lower() == 'exit': |
||||
|
break |
||||
|
|
||||
|
num = int(num) # Convert input to integer |
||||
|
tier_value = get_tier_value(num) |
||||
|
print(f"{tier_value}") |
||||
|
except ValueError: |
||||
|
print("Invalid input. Please enter a number or 'exit' to quit.") |
||||
|
|
||||
|
if __name__ == "__main__": |
||||
|
main() |
@ -0,0 +1,16 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
picom & |
||||
|
pulseaudio --start |
||||
|
imwheel |
||||
|
xmodmap ~/.Xmodmap |
||||
|
|
||||
|
redshift -O 3000 |
||||
|
xset r rate $XSET_DELAY $XSET_RATE |
||||
|
/usr/lib/notification-daemon-1.0/notification-daemon & |
||||
|
picom & |
||||
|
imwheel & |
||||
|
numlockx on & |
||||
|
start-pulseaudio-x11 & |
||||
|
|
||||
|
wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/editing") & |
Write
Preview
Loading…
Cancel
Save
Reference in new issue