mirror of
https://github.com/SpyHoodle/PrideFetch.git
synced 2024-11-22 19:05:41 +00:00
Clean up code
This commit is contained in:
parent
a89093c4f1
commit
ea999d37ab
11
README.md
11
README.md
@ -1,32 +1,43 @@
|
|||||||
# pridefetch 🏳️⚧️
|
# pridefetch 🏳️⚧️
|
||||||
|
|
||||||
Python fetch script for showing your favourite pride flags & system info!<br>
|
Python fetch script for showing your favourite pride flags & system info!<br>
|
||||||
Forked from [megabytesofrem/pridefetch](https://github.com/megabytesofrem/pridefetch).<br>
|
Forked from [megabytesofrem/pridefetch](https://github.com/megabytesofrem/pridefetch).<br>
|
||||||
**Note:** Minimum `Python 3.7` required
|
**Note:** Minimum `Python 3.7` required
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
#### Display a trans flag
|
#### Display a trans flag
|
||||||
|
|
||||||
`pridefetch -f trans`
|
`pridefetch -f trans`
|
||||||
|
|
||||||
#### Display either a trans or lesbian flag, with a 50/50 chance
|
#### Display either a trans or lesbian flag, with a 50/50 chance
|
||||||
|
|
||||||
`pridefetch -r trans,lesbian`
|
`pridefetch -r trans,lesbian`
|
||||||
|
|
||||||
#### List all the available flags
|
#### List all the available flags
|
||||||
|
|
||||||
`pridefetch -l`
|
`pridefetch -l`
|
||||||
|
|
||||||
#### Display help with pridefetch
|
#### Display help with pridefetch
|
||||||
|
|
||||||
`pridefetch -h`
|
`pridefetch -h`
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/SpyHoodle/pridefetch.git
|
git clone https://github.com/SpyHoodle/pridefetch.git
|
||||||
cd pridefetch
|
cd pridefetch
|
||||||
chmod +x pridefetch
|
chmod +x pridefetch
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, run pridefetch
|
Then, run pridefetch
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./pridefetch
|
./pridefetch
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also add pridefetch to your `$PATH` to run it anywhere<br>
|
You can also add pridefetch to your `$PATH` to run it anywhere<br>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mv pridefetch /usr/bin/
|
mv pridefetch /usr/bin/
|
||||||
```
|
```
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from packages import get_num_packages as packages
|
|
||||||
from getpass import getuser
|
from getpass import getuser
|
||||||
# from platform import machine as architecture
|
# from platform import machine as architecture
|
||||||
from platform import platform as system
|
from platform import platform as system
|
||||||
@ -10,8 +9,11 @@ from platform import release as kernel
|
|||||||
from random import choice as random_choice
|
from random import choice as random_choice
|
||||||
from socket import gethostname
|
from socket import gethostname
|
||||||
from time import clock_gettime, CLOCK_BOOTTIME
|
from time import clock_gettime, CLOCK_BOOTTIME
|
||||||
|
|
||||||
from distro import name as distribution
|
from distro import name as distribution
|
||||||
|
|
||||||
|
from packages import get_num_packages as packages
|
||||||
|
|
||||||
# Define a dictionary of all the flags and their colors
|
# Define a dictionary of all the flags and their colors
|
||||||
# Each color is the color for an individual row in the flag
|
# Each color is the color for an individual row in the flag
|
||||||
flags = {
|
flags = {
|
||||||
@ -20,7 +22,7 @@ flags = {
|
|||||||
"lesbian": [202, 209, 255, 255, 168, 161],
|
"lesbian": [202, 209, 255, 255, 168, 161],
|
||||||
"pansexual": [198, 220, 39],
|
"pansexual": [198, 220, 39],
|
||||||
"trans": [81, 211, 255, 211, 81],
|
"trans": [81, 211, 255, 211, 81],
|
||||||
"nonbinary": [226, 255, 98, 237,],
|
"nonbinary": [226, 255, 98, 237, ],
|
||||||
"demiboy": [244, 249, 117, 255, 117, 249, 244],
|
"demiboy": [244, 249, 117, 255, 117, 249, 244],
|
||||||
"demigirl": [244, 249, 218, 255, 218, 249, 244],
|
"demigirl": [244, 249, 218, 255, 218, 249, 244],
|
||||||
"genderfluid": [211, 255, 128, 0, 63],
|
"genderfluid": [211, 255, 128, 0, 63],
|
||||||
|
Loading…
Reference in New Issue
Block a user