mirror of
https://github.com/SpyHoodle/PrideFetch.git
synced 2024-11-22 10:55:43 +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 🏳️⚧️
|
||||
|
||||
Python fetch script for showing your favourite pride flags & system info!<br>
|
||||
Forked from [megabytesofrem/pridefetch](https://github.com/megabytesofrem/pridefetch).<br>
|
||||
**Note:** Minimum `Python 3.7` required
|
||||
|
||||
## Examples
|
||||
|
||||
#### Display a trans flag
|
||||
|
||||
`pridefetch -f trans`
|
||||
|
||||
#### Display either a trans or lesbian flag, with a 50/50 chance
|
||||
|
||||
`pridefetch -r trans,lesbian`
|
||||
|
||||
#### List all the available flags
|
||||
|
||||
`pridefetch -l`
|
||||
|
||||
#### Display help with pridefetch
|
||||
|
||||
`pridefetch -h`
|
||||
|
||||
## Quickstart
|
||||
|
||||
```bash
|
||||
git clone https://github.com/SpyHoodle/pridefetch.git
|
||||
cd pridefetch
|
||||
chmod +x pridefetch
|
||||
```
|
||||
|
||||
Then, run pridefetch
|
||||
|
||||
```bash
|
||||
./pridefetch
|
||||
```
|
||||
|
||||
You can also add pridefetch to your `$PATH` to run it anywhere<br>
|
||||
|
||||
```bash
|
||||
mv pridefetch /usr/bin/
|
||||
```
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
from argparse import ArgumentParser
|
||||
from datetime import timedelta
|
||||
from packages import get_num_packages as packages
|
||||
from getpass import getuser
|
||||
# from platform import machine as architecture
|
||||
from platform import platform as system
|
||||
@ -10,8 +9,11 @@ from platform import release as kernel
|
||||
from random import choice as random_choice
|
||||
from socket import gethostname
|
||||
from time import clock_gettime, CLOCK_BOOTTIME
|
||||
|
||||
from distro import name as distribution
|
||||
|
||||
from packages import get_num_packages as packages
|
||||
|
||||
# Define a dictionary of all the flags and their colors
|
||||
# Each color is the color for an individual row in the flag
|
||||
flags = {
|
||||
|
Loading…
Reference in New Issue
Block a user