Kevin Mok
6 years ago
16 changed files with 237 additions and 51 deletions
-
25aliases/zsh_aliases
-
21configs/i3/config
-
2configs/i3blocks-scripts/spotify
-
16configs/i3blocks-scripts/spotify_old
-
3configs/sam-i3blocks/sam-i3blocks.conf
-
4dotfiles/.vimrc
-
2dotfiles/.xinitrc
-
2dotfiles/.zshrc
-
36scripts/colors/arch
-
3scripts/colors/blocks
-
23scripts/colors/panes
-
48scripts/colors/rupees
-
38scripts/colors/space-invaders
-
62scripts/colors/unowns
-
1txt/exlude-dirs-backup.txt
-
2txt/key_dirs.txt
@ -1,4 +1,4 @@ |
|||
#!/bin/bash |
|||
|
|||
. "/home/kevin/.cache/wal/colors.sh" |
|||
printf "$(spotify-now -i '%artist - %title')\n\n%s\n" "$color7" |
|||
printf "$(spotify-now -i '%artist - %title' -p '' -e '')\n\n%s\n" "$color7" |
@ -1,16 +0,0 @@ |
|||
#!/usr/bin/python |
|||
|
|||
import dbus |
|||
import os |
|||
|
|||
try: |
|||
bus = dbus.SessionBus() |
|||
spotify = bus.get_object("org.mpris.MediaPlayer2.spotify", "/org/mpris/MediaPlayer2") |
|||
spotify_iface = dbus.Interface(spotify, 'org.freedesktop.DBus.Properties') |
|||
props = spotify_iface.Get('org.mpris.MediaPlayer2.Player', 'Metadata') |
|||
song_str = str(props['xesam:artist'][0]) + " - " + str(props['xesam:title']) |
|||
print("{}\n\n{}\n".format(song_str, os.environ['COLOR7'])) |
|||
# print('COLOR7' in os.environ) |
|||
exit |
|||
except dbus.exceptions.DBusException: |
|||
exit |
@ -1,4 +1,4 @@ |
|||
#xrandr --setprovideroutputsource modesetting NVIDIA-0 |
|||
xrandr --setprovideroutputsource modesetting NVIDIA-0 |
|||
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources |
|||
xrandr --auto |
|||
exec i3 |
@ -0,0 +1,36 @@ |
|||
#!/bin/sh |
|||
|
|||
# Author: Ivo |
|||
# Source: http://crunchbang.org/forums/viewtopic.php?pid=237794#p237794 |
|||
# ANSI Color -- use these variables to easily have different color |
|||
# and format output. Make sure to output the reset sequence after |
|||
# colors (f = foreground, b = background), and use the 'off' |
|||
# feature for anything you turn on. |
|||
|
|||
initializeANSI() |
|||
{ |
|||
esc="" |
|||
|
|||
redf="${esc}[31m"; greenf="${esc}[32m" |
|||
yellowf="${esc}[33m" bluef="${esc}[34m"; |
|||
cyanf="${esc}[36m"; purplef="${esc}[35m" |
|||
|
|||
boldon="${esc}[1m"; |
|||
reset="${esc}[0m" |
|||
} |
|||
|
|||
# note in this first use that switching colors doesn't require a reset |
|||
# first - the new color overrides the old one. |
|||
|
|||
initializeANSI |
|||
|
|||
cat << EOF |
|||
|
|||
${boldon}${redf} ■ ${boldon}${greenf} ■ ${boldon}${yellowf} ■ ${boldon}${bluef} ■ ${boldon}${purplef} ■ ${boldon}${cyanf} ■ ${reset} |
|||
${boldon}${redf} ■■■ ${boldon}${greenf} ■■■ ${boldon}${yellowf} ■■■ ${boldon}${bluef} ■■■ ${boldon}${purplef} ■■■ ${boldon}${cyanf} ■■■ ${reset} |
|||
${boldon}${redf} ■■■■■ ${boldon}${greenf} ■■■■■ ${boldon}${yellowf} ■■■■■ ${boldon}${bluef} ■■■■■ ${boldon}${purplef} ■■■■■ ${boldon}${cyanf} ■■■■■ ${reset} |
|||
${redf} ■( )■ ${greenf} ■( )■ ${yellowf} ■( )■ ${bluef} ■( )■ ${purplef} ■( )■ ${cyanf} ■( )■ ${reset} |
|||
${redf} ■■■■ ■■■■ ${greenf} ■■■■ ■■■■ ${yellowf} ■■■■ ■■■■ ${bluef} ■■■■ ■■■■ ${purplef} ■■■■ ■■■■ ${cyanf} ■■■■ ■■■■ ${reset} |
|||
${redf} ■■ ■■ ${greenf} ■■ ■■ ${yellowf} ■■ ■■ ${bluef} ■■ ■■ ${purplef} ■■ ■■ ${cyanf} ■■ ■■ ${reset} |
|||
|
|||
EOF |
@ -0,0 +1,3 @@ |
|||
#!/usr/bin/env bash |
|||
pcs() { for i in {0..7}; do echo -en "\e[${1}$((30+$i))m \u2588\u2588 \e[0m"; done; } |
|||
printf "\n%s\n%s\n\n" "$(pcs)" "$(pcs '1;')" |
@ -0,0 +1,23 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
# Author: GekkoP |
|||
# Source: http://linuxbbq.org/bbs/viewtopic.php?f=4&t=1656#p33189 |
|||
|
|||
f=3 b=4 |
|||
for j in f b; do |
|||
for i in {0..7}; do |
|||
printf -v $j$i %b "\e[${!j}${i}m" |
|||
done |
|||
done |
|||
d=$'\e[1m' |
|||
t=$'\e[0m' |
|||
v=$'\e[7m' |
|||
|
|||
|
|||
cat << EOF |
|||
|
|||
$f1███$d▄$t $f2███$d▄$t $f3███$d▄$t $f4███$d▄$t $f5███$d▄$t $f6███$d▄$t $f7███$d▄$t |
|||
$f1███$d█$t $f2███$d█$t $f3███$d█$t $f4███$d█$t $f5███$d█$t $f6███$d█$t $f7███$d█$t |
|||
$f1███$d█$t $f2███$d█$t $f3███$d█$t $f4███$d█$t $f5███$d█$t $f6███$d█$t $f7███$d█$t |
|||
$d$f1 ▀▀▀ $f2▀▀▀ $f3▀▀▀ $f4▀▀▀ $f5▀▀▀ $f6▀▀▀ $f7▀▀▀ |
|||
EOF |
@ -0,0 +1,48 @@ |
|||
#!/bin/sh |
|||
|
|||
initializeANSI() |
|||
{ |
|||
esc="" |
|||
|
|||
Bf="${esc}[30m"; rf="${esc}[31m"; gf="${esc}[32m" |
|||
yf="${esc}[33m" bf="${esc}[34m"; pf="${esc}[35m" |
|||
cf="${esc}[36m"; wf="${esc}[37m" |
|||
|
|||
Bb="${esc}[40m"; rb="${esc}[41m"; gb="${esc}[42m" |
|||
yb="${esc}[43m" bb="${esc}[44m"; pb="${esc}[45m" |
|||
cb="${esc}[46m"; wb="${esc}[47m" |
|||
|
|||
ON="${esc}[1m"; OFF="${esc}[22m" |
|||
italicson="${esc}[3m"; italicsoff="${esc}[23m" |
|||
ulon="${esc}[4m"; uloff="${esc}[24m" |
|||
invon="${esc}[7m"; invoff="${esc}[27m" |
|||
|
|||
reset="${esc}[0m" |
|||
} |
|||
|
|||
initializeANSI |
|||
|
|||
cat << EOF |
|||
|
|||
${Bf}██ ${Bf}████ ${Bf}████ ${Bf}████ ${Bf}████ ${Bf}████ |
|||
${Bf}██${yf}██${Bf}██ ${Bf}██${gf}${ON}██${OFF}██${Bf}██ ${Bf}██${bf}${ON}██${OFF}██${Bf}██ ${Bf}██${rf}${ON}██${OFF}██${Bf}██ ${Bf}██${pf}${ON}██${OFF}██${Bf}██ ${Bf}██${cf}${ON}██${OFF}██${Bf}██ |
|||
${Bf}██${yf}██████${Bf}██ ${Bf}██${gf}${ON}████${OFF}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}████${Bf}██ |
|||
${Bf}██${yf}${ON}██${OFF}████${Bf}██ ${Bf}██${gf}${ON}██████${OFF}██████${Bf}██ ${Bf}██${bf}${ON}██████${OFF}██████${Bf}██ ${Bf}██${rf}${ON}██████${OFF}██████${Bf}██ ${Bf}██${pf}${ON}██████${OFF}██████${Bf}██ ${Bf}██${cf}${ON}██████${OFF}██████${Bf}██ |
|||
${Bf}██${yf}██${ON}████${OFF}████${Bf}██ ${Bf}██${gf}${ON}██${OFF}██${ON}██${OFF}██${Bf}██${gf}██${Bf}██${gf}██${Bf}██ ${Bf}██${bf}${ON}██${OFF}██${ON}██${OFF}██${Bf}██${bf}██${Bf}██${bf}██${Bf}██ ${Bf}██${rf}${ON}██${OFF}██${ON}██${OFF}██${Bf}██${rf}██${Bf}██${rf}██${Bf}██ ${Bf}██${pf}${ON}██${OFF}██${ON}██${OFF}██${Bf}██${pf}██${Bf}██${pf}██${Bf}██ ${Bf}██${cf}${ON}██${OFF}██${ON}██${OFF}██${Bf}██${cf}██${Bf}██${cf}██${Bf}██ |
|||
${Bf}██${yf}████${ON}██${OFF}████${Bf}██ ${Bf}██${gf}${ON}████${OFF}██████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}██████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}██████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}██████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}██████${Bf}██${cf}████${Bf}██ |
|||
${Bf}██${yf}██████${ON}████${OFF}████${Bf}██ ${Bf}██${gf}${ON}████${OFF}██████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}██████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}██████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}██████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}██████${Bf}██${cf}████${Bf}██ |
|||
${Bf}██${yf}████████${ON}██${OFF}████${Bf}██ ${Bf}██${gf}${ON}████${OFF}██████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}██████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}██████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}██████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}██████${Bf}██${cf}████${Bf}██ |
|||
${Bf}██████████████████████ ${Bf}██${gf}${ON}████${OFF}██████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}██████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}██████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}██████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}██████${Bf}██${cf}████${Bf}██ |
|||
${Bf}██${yf}██${Bf}██ ██${yf}██${Bf}██ ${Bf}██${gf}${ON}████${OFF}██████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}██████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}██████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}██████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}██████${Bf}██${cf}████${Bf}██ |
|||
${Bf}██${yf}██████${Bf}██ ██${yf}██████${Bf}██ ${Bf}██${gf}${ON}████${OFF}██████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}██████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}██████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}██████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}██████${Bf}██${cf}████${Bf}██ |
|||
${Bf}██${yf}██████${Bf}██ ██${yf}${ON}██${OFF}████${Bf}██ ${Bf}██${gf}${ON}██${OFF}██${ON}██${OFF}████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}██${OFF}██${ON}██${OFF}████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}██${OFF}██${ON}██${OFF}████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}██${OFF}██${ON}██${OFF}████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}██${OFF}██${ON}██${OFF}████${Bf}██${cf}████${Bf}██ |
|||
${Bf}██${yf}██████████${Bf}██ ██${yf}██${ON}████${OFF}████${Bf}██ ${Bf}██${gf}██████${ON}██${OFF}${Bf}██${gf}██${Bf}██${gf}██${Bf}██ ${Bf}██${bf}██████${ON}██${OFF}${Bf}██${bf}██${Bf}██${bf}██${Bf}██ ${Bf}██${rf}██████${ON}██${OFF}${Bf}██${rf}██${Bf}██${rf}██${Bf}██ ${Bf}██${pf}██████${ON}██${OFF}${Bf}██${pf}██${Bf}██${pf}██${Bf}██ ${Bf}██${cf}██████${ON}██${OFF}${Bf}██${cf}██${Bf}██${cf}██${Bf}██ |
|||
${Bf}██${yf}${ON}██${OFF}████████${Bf}██ ██${yf}████${ON}██${OFF}████${Bf}██ ${Bf}██${gf}████████████${Bf}██ ${Bf}██${bf}████████████${Bf}██ ${Bf}██${rf}████████████${Bf}██ ${Bf}██${pf}████████████${Bf}██ ${Bf}██${cf}████████████${Bf}██ |
|||
${Bf}██${yf}██${ON}████${OFF}████████${Bf}██ ██${yf}██████${ON}████${OFF}████${Bf}██ ${Bf}██${gf}████████${Bf}██ ${Bf}██${bf}████████${Bf}██ ${Bf}██${rf}████████${Bf}██ ${Bf}██${pf}████████${Bf}██ ${Bf}██${cf}████████${Bf}██ |
|||
${Bf}██${yf}████${ON}██${OFF}████████${Bf}██ ██${yf}████████${ON}██${OFF}████${Bf}██ ${Bf}██${gf}████${Bf}██ ${Bf}██${bf}████${Bf}██ ${Bf}██${rf}████${Bf}██ ${Bf}██${pf}████${Bf}██ ${Bf}██${cf}████${Bf}██ |
|||
${Bf}██████████████████████████████████████ ${Bf}████ ${Bf}████ ${Bf}████ ${Bf}████ ${Bf}████${reset} |
|||
|
|||
EOF |
|||
|
|||
|
|||
|
@ -0,0 +1,38 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
# ANSI color scheme script featuring Space Invaders |
|||
|
|||
# Original: http://crunchbanglinux.org/forums/post/126921/#p126921 |
|||
# Modified by lolilolicon |
|||
|
|||
f=3 b=4 |
|||
for j in f b; do |
|||
for i in {0..7}; do |
|||
printf -v $j$i %b "\e[${!j}${i}m" |
|||
done |
|||
done |
|||
bld=$'\e[1m' |
|||
rst=$'\e[0m' |
|||
|
|||
cat << EOF |
|||
|
|||
$f1 ▀▄ ▄▀ $f2 ▄▄▄████▄▄▄ $f3 ▄██▄ $f4 ▀▄ ▄▀ $f5 ▄▄▄████▄▄▄ $f6 ▄██▄ $rst |
|||
$f1 ▄█▀███▀█▄ $f2███▀▀██▀▀███ $f3▄█▀██▀█▄ $f4 ▄█▀███▀█▄ $f5███▀▀██▀▀███ $f6▄█▀██▀█▄$rst |
|||
$f1█▀███████▀█ $f2▀▀███▀▀███▀▀ $f3▀█▀██▀█▀ $f4█▀███████▀█ $f5▀▀███▀▀███▀▀ $f6▀█▀██▀█▀$rst |
|||
$f1▀ ▀▄▄ ▄▄▀ ▀ $f2 ▀█▄ ▀▀ ▄█▀ $f3▀▄ ▄▀ $f4▀ ▀▄▄ ▄▄▀ ▀ $f5 ▀█▄ ▀▀ ▄█▀ $f6▀▄ ▄▀$rst |
|||
|
|||
$bld$f1▄ ▀▄ ▄▀ ▄ $f2 ▄▄▄████▄▄▄ $f3 ▄██▄ $f4▄ ▀▄ ▄▀ ▄ $f5 ▄▄▄████▄▄▄ $f6 ▄██▄ $rst |
|||
$bld$f1█▄█▀███▀█▄█ $f2███▀▀██▀▀███ $f3▄█▀██▀█▄ $f4█▄█▀███▀█▄█ $f5███▀▀██▀▀███ $f6▄█▀██▀█▄$rst |
|||
$bld$f1▀█████████▀ $f2▀▀▀██▀▀██▀▀▀ $f3▀▀█▀▀█▀▀ $f4▀█████████▀ $f5▀▀▀██▀▀██▀▀▀ $f6▀▀█▀▀█▀▀$rst |
|||
$bld$f1 ▄▀ ▀▄ $f2▄▄▀▀ ▀▀ ▀▀▄▄ $f3▄▀▄▀▀▄▀▄ $f4 ▄▀ ▀▄ $f5▄▄▀▀ ▀▀ ▀▀▄▄ $f6▄▀▄▀▀▄▀▄$rst |
|||
|
|||
|
|||
$f7▌$rst |
|||
|
|||
$f7▌$rst |
|||
|
|||
$f7 ▄█▄ $rst |
|||
$f7▄█████████▄$rst |
|||
$f7▀▀▀▀▀▀▀▀▀▀▀$rst |
|||
|
|||
EOF |
@ -0,0 +1,62 @@ |
|||
#!/usr/bin/env python |
|||
# -*- coding: UTF-8 -*- |
|||
__author__ = 'actionless' |
|||
|
|||
import random |
|||
|
|||
unowns = [[ |
|||
' ▀█▀▀▀█▀ ', |
|||
' ▄▀▀▀▄ ', |
|||
' ▀▄ ▀ ▄▀ ', |
|||
' ▀█▀ ', |
|||
' ▄█▄▄▄▄ ', |
|||
], [ |
|||
' █▄ █ ', |
|||
' █ ▀▄▀▀▀▄ █ ', |
|||
' █ ▀▄ ▀ ▄▀ █ ', |
|||
' █ ▀▀▀ ▀▄█ ', |
|||
' ▀ ▀ ', |
|||
], [ |
|||
' ▀▀▀█▀▀▀ ', |
|||
' ▄▀▀▀▄ ', |
|||
' ▀▄ ▀ ▄▀ ', |
|||
' ▀▀▀ ', |
|||
' ', |
|||
], [ |
|||
' ▀▄ ▄▀ ', |
|||
' ▀▄▀▀▀▄▀ ', |
|||
' ▀▄ ▀ ▄▀ ', |
|||
' ▄▀ ▀▀▀ ▀▄ ', |
|||
' ▀ ▀ ', |
|||
], [ |
|||
' █▀▀▄ ', |
|||
' ▄▀▀▀▄ ▀▄ ', |
|||
' ▀▄ ▀ ▄▀ █ ', |
|||
' ▀▀▀ ▄▀ ', |
|||
' ▀▀▀ ', |
|||
], [ |
|||
' ▀▄ ▄▀ ', |
|||
' ▄▀▀▀▄ ', |
|||
' ▀▄ ▀ ▄▀ ', |
|||
' ▀█▀ ', |
|||
' ▄▀▄ ', |
|||
]] |
|||
|
|||
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") |
Write
Preview
Loading…
Cancel
Save
Reference in new issue