mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-17 12:21:07 +01:00
a6687d45e0
Here are the source files I package with my PKGBUILDs. The tari-scripts directory features some color scripts from around the web. tari-urxvt contains patches for urxvt, tari-util houses launch.c, and tari-web is where my mozilla.cfg is located.
65 lines
1.5 KiB
Python
Executable File
65 lines
1.5 KiB
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: UTF-8 -*-
|
|
__author__ = 'actionless'
|
|
|
|
import random
|
|
|
|
unowns = [[
|
|
' ▀█▀▀▀█▀ ',
|
|
' ▄▀▀▀▄ ',
|
|
' ▀▄ ▀ ▄▀ ',
|
|
' ▀█▀ ',
|
|
' ▄█▄▄▄▄ ',
|
|
], [
|
|
' █▄ █ ',
|
|
' █ ▀▄▀▀▀▄ █ ',
|
|
' █ ▀▄ ▀ ▄▀ █ ',
|
|
' █ ▀▀▀ ▀▄█ ',
|
|
' ▀ ▀ ',
|
|
], [
|
|
' ▀▀▀█▀▀▀ ',
|
|
' ▄▀▀▀▄ ',
|
|
' ▀▄ ▀ ▄▀ ',
|
|
' ▀▀▀ ',
|
|
' ',
|
|
], [
|
|
' ▀▄ ▄▀ ',
|
|
' ▀▄▀▀▀▄▀ ',
|
|
' ▀▄ ▀ ▄▀ ',
|
|
' ▄▀ ▀▀▀ ▀▄ ',
|
|
' ▀ ▀ ',
|
|
], [
|
|
' █▀▀▄ ',
|
|
' ▄▀▀▀▄ ▀▄ ',
|
|
' ▀▄ ▀ ▄▀ █ ',
|
|
' ▀▀▀ ▄▀ ',
|
|
' ▀▀▀ ',
|
|
], [
|
|
' ▀▄ ▄▀ ',
|
|
' ▄▀▀▀▄ ',
|
|
' ▀▄ ▀ ▄▀ ',
|
|
' ▀█▀ ',
|
|
' ▄▀▄ ',
|
|
]]
|
|
|
|
print("")
|
|
|
|
for mode in ['normal', 'bold']:
|
|
random.shuffle(unowns)
|
|
if mode == 'bold':
|
|
print("\033[1m")
|
|
|
|
print(
|
|
'\n'.join([
|
|
''.join([
|
|
"\033[03{n}m{string}".format(
|
|
n=color_number + 1,
|
|
string=unowns[color_number][line_number]
|
|
)
|
|
for color_number in range(6)])
|
|
for line_number in range(5)])
|
|
)
|
|
|
|
# reset font:
|
|
print("\033[0m")
|