This commit is contained in:
elena 2018-09-28 02:56:14 +03:00
parent a11c3944c6
commit 7adbe95291
17098 changed files with 0 additions and 880602 deletions

View file

@ -1,42 +0,0 @@
#!/bin/sh
# 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.
# Author: Ivo
# Source: http://crunchbang.org/forums/viewtopic.php?pid=134749#p134749
initializeANSI()
{
esc=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m" whitef="${esc}[37m"
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
cyanb="${esc}[46m"; whiteb="${esc}[47m"
boldon="${esc}[1m"; boldoff="${esc}[22m"
italicson="${esc}[3m"; italicsoff="${esc}[23m"
ulon="${esc}[4m"; uloff="${esc}[24m"
invon="${esc}[7m"; invoff="${esc}[27m"
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} ██████ ${reset} ${boldon}${greenf}██████ ${reset}${boldon}${yellowf} ██████${reset} ${boldon}${bluef}██████ ${reset} ${boldon}${purplef} ██████${reset} ${boldon}${cyanf} ███████${reset}
${boldon}${redf} ████████${reset} ${boldon}${greenf}██ ██ ${reset}${boldon}${yellowf}██ ${reset} ${boldon}${bluef}██ ██${reset} ${boldon}${purplef}██████ ${reset} ${boldon}${cyanf}█████████${reset}
${redf} ██ ████${reset} ${greenf}██ ████ ${reset}${yellowf}████ ${reset} ${bluef}████ ██${reset} ${purplef}████ ${reset} ${cyanf}█████ ${reset}
${redf} ██ ██${reset} ${greenf}██████ ${reset}${yellowf}████████${reset} ${bluef}██████ ${reset} ${purplef}████████${reset} ${cyanf}██ ${reset}
EOF

View file

@ -1,50 +0,0 @@
#!/bin/sh
# 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.
# Author: ed209
# Source: http://crunchbang.org/forums/viewtopic.php?pid=295676#p295676
initializeANSI()
{
esc=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
cyanb="${esc}[46m"; whiteb="${esc}[47m"
boldon="${esc}[1m"; boldoff="${esc}[22m"
italicson="${esc}[3m"; italicsoff="${esc}[23m"
ulon="${esc}[4m"; uloff="${esc}[24m"
invon="${esc}[7m"; invoff="${esc}[27m"
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
${redf}■■■■${reset}${boldon}${redf}■■${reset} ${greenf}■■■■${reset}${boldon}${greenf}■■${reset} ${yellowf}■■■■${reset}${boldon}${yellowf}■■${reset} ${bluef}■■■■${reset}${boldon}${purplef}■■${reset} ${purplef}■■■■${reset}${boldon}${bluef}■■${reset} ${cyanf}■■■■${reset}${boldon}${cyanf}■■${reset}
${redf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${greenf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${yellowf}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${bluef}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${cyanf}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}
${greenf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${yellowf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${bluef}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${boldon}${cyanf}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${bluef}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}
${greenf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${yellowf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${bluef}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${boldon}${cyanf}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${bluef}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}
${redf}■■■■${reset}${boldon}${redf}■■${reset} ${greenf}■■■■${reset}${boldon}${greenf}■■${reset} ${yellowf}■■■■${reset}${boldon}${yellowf}■■${reset} ${bluef}■■■■${reset}${boldon}${purplef}■■${reset} ${purplef}■■■■${reset}${boldon}${bluef}■■${reset} ${cyanf}■■■■${reset}${boldon}${cyanf}■■${reset}
${redf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${greenf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${yellowf}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${bluef}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${cyanf}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}
${greenf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${yellowf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${bluef}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${boldon}${cyanf}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${bluef}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}
${greenf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${yellowf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${bluef}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${boldon}${cyanf}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${bluef}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}
${redf}■■■■${reset}${boldon}${redf}■■${reset} ${greenf}■■■■${reset}${boldon}${greenf}■■${reset} ${yellowf}■■■■${reset}${boldon}${yellowf}■■${reset} ${bluef}■■■■${reset}${boldon}${purplef}■■${reset} ${purplef}■■■■${reset}${boldon}${bluef}■■${reset} ${cyanf}■■■■${reset}${boldon}${cyanf}■■${reset}
${redf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${greenf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${yellowf}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${bluef}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${cyanf}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}
${greenf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${yellowf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${bluef}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${boldon}${cyanf}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${bluef}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}
${greenf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${yellowf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${bluef}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${boldon}${cyanf}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${bluef}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}
EOF

View file

@ -1,63 +0,0 @@
#!/usr/bin/env bash
# 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=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[1;30m"; redb="${esc}[1;31m"; greenb="${esc}[1;32m"
yellowb="${esc}[1;33m" blueb="${esc}[1;34m"; purpleb="${esc}[1;35m"
cyanb="${esc}[1;36m"; whiteb="${esc}[1;37m"
boldon="${esc}[1m"; boldoff="${esc}[22m"
italicson="${esc}[3m"; italicsoff="${esc}[23m"
ulon="${esc}[4m"; uloff="${esc}[24m"
invon="${esc}[7m"; invoff="${esc}[27m"
reset="${esc}[0m"
}
# note in this first use that switching colors doesn't require a reset
# first - the new color overrides the old one.
numbers (){
initializeANSI
cat << EOF
${blackf}11111111${reset} ${redf}22222222${reset} ${greenf}33333333${reset} ${yellowf}44444444${reset} ${bluef}55555555${reset} ${purplef}66666666${reset} ${cyanf}77777777${reset} ${whitef}88888888${reset}
${blackb}11111111${reset} ${redb}22222222${reset} ${greenb}33333333${reset} ${yellowb}44444444${reset} ${blueb}55555555${reset} ${purpleb}66666666${reset} ${cyanb}77777777${reset} ${whiteb}88888888${reset}
EOF
}
blocks (){
initializeANSI
cat << EOF
${blackf}████${reset}${blackb}████${reset} ${redf}████${reset}${redb}████${reset} ${greenf}████${reset}${greenb}████${reset} ${yellowf}████${reset}${yellowb}████${reset} ${bluef}████${reset}${blueb}████${reset} ${purplef}████${reset}${purpleb}████${reset} ${cyanf}████${reset}${cyanb}████${reset} ${whitef}████${reset}${whiteb}████${reset}
${blackf}████${reset}${blackb}████${reset} ${redf}████${reset}${redb}████${reset} ${greenf}████${reset}${greenb}████${reset} ${yellowf}████${reset}${yellowb}████${reset} ${bluef}████${reset}${blueb}████${reset} ${purplef}████${reset}${purpleb}████${reset} ${cyanf}████${reset}${cyanb}████${reset} ${whitef}████${reset}${whiteb}████${reset}
${blackf}████${reset}${blackb}████${reset} ${redf}████${reset}${redb}████${reset} ${greenf}████${reset}${greenb}████${reset} ${yellowf}████${reset}${yellowb}████${reset} ${bluef}████${reset}${blueb}████${reset} ${purplef}████${reset}${purpleb}████${reset} ${cyanf}████${reset}${cyanb}████${reset} ${whitef}████${reset}${whiteb}████${reset}
EOF
}
case $1 in
b) blocks;;
n) numbers;;
a) blocks && numbers;;
*) blocks && numbers;;
esac

View file

@ -1,30 +0,0 @@
#!/usr/bin/env bash
# Daniel Crisman's ANSI color chart script from
# The Bash Prompt HOWTO: 6.1. Colours
# http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
#
# This function echoes a bunch of color codes to the
# terminal to demonstrate what's available. Each
# line is the color code of one forground color,
# out of 17 (default + 16 escapes), followed by a
# test use of that color on all nine background
# colors (default + 8 escapes).
T='•••' # The text for the color test
echo -e "\n def 40m 41m 42m 43m 44m 45m 46m 47m";
for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \
'1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \
' 36m' '1;36m' ' 37m' '1;37m';
do FG=${FGs// /}
echo -en " $FGs \033[$FG $T "
for BG in 40m 41m 42m 43m 44m 45m 46m 47m;
do echo -en "$EINS \033[$FG\033[$BG $T \033[0m";
done
echo;
done
echo

View file

@ -1,21 +0,0 @@
#!/usr/bin/env bash
# Author: machinebacon
# Source: http://linuxbbq.org/bbs/viewtopic.php?f=4&t=1656#p33237
T='*' # The test text
echo -e "\n 40m 41m 42m 43m\
44m 45m 46m 47m";
for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \
'1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \
' 36m' '1;36m' ' 37m' '1;37m';
do FG=${FGs// /}
echo -en " $FGs \033[$FG $T "
for BG in 40m 41m 42m 43m 44m 45m 46m 47m;
do echo -en "$EINS \033[$FG\033[$BG $T \033[0m";
done
echo;
done
echo

View file

@ -1,34 +0,0 @@
#!/usr/bin/env bash
# Original: http://frexx.de/xterm-256-notes/
# http://frexx.de/xterm-256-notes/data/colortable16.sh
# Modified by Aaron Griffin
# and further by Kazuo Teramoto
FGNAMES=(' black ' ' red ' ' green ' ' yellow' ' blue ' 'magenta' ' cyan ' ' white ')
BGNAMES=('DFT' 'BLK' 'RED' 'GRN' 'YEL' 'BLU' 'MAG' 'CYN' 'WHT')
echo " ┌──────────────────────────────────────────────────────────────────────────┐"
for b in {0..8}; do
((b>0)) && bg=$((b+39))
echo -en "\033[0m ${BGNAMES[b]} │ "
for f in {0..7}; do
echo -en "\033[${bg}m\033[$((f+30))m ${FGNAMES[f]} "
done
echo -en "\033[0m │"
echo -en "\033[0m\n\033[0m │ "
for f in {0..7}; do
echo -en "\033[${bg}m\033[1;$((f+30))m ${FGNAMES[f]} "
done
echo -en "\033[0m │"
echo -e "\033[0m"
((b<8)) &&
echo " ├──────────────────────────────────────────────────────────────────────────┤"
done
echo " └──────────────────────────────────────────────────────────────────────────┘"

View file

@ -1,43 +0,0 @@
#!/bin/sh
# 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.
# Author: gutterslob
# Source: http://crunchbang.org/forums/viewtopic.php?pid=148022#p148022
initializeANSI()
{
esc=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
cyanb="${esc}[46m"; whiteb="${esc}[47m"
boldon="${esc}[1m"; boldoff="${esc}[22m"
italicson="${esc}[3m"; italicsoff="${esc}[23m"
ulon="${esc}[4m"; uloff="${esc}[24m"
invon="${esc}[7m"; invoff="${esc}[27m"
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
${reset}${redf} ██ ██ ${reset}${greenf} ██ ██ ${reset}${yellowf} ██ ██ ${reset}${bluef} ██ ██ ${reset}${purplef} ██ ██ ${reset}${cyanf} ██ ██ ${reset}
${reset}${redf}██████████ ${reset}${greenf} ██████████ ${reset}${yellowf} ██████████ ${reset}${bluef} ██████████ ${reset}${purplef} ██████████ ${reset} ${cyanf}██████████ ${reset}
${reset}${redf} ██${boldon}██${boldoff}██ ${reset}${greenf} ██${boldon}██${boldoff}██ ${reset}${yellowf} ██${boldon}██${boldoff}██ ${reset}${bluef} ██${boldon}██${boldoff}██ ${reset}${purplef} ██${boldon}██${boldoff}██ ${reset}${cyanf} ██${boldon}██${boldoff}██ ${reset}
${reset}${redf}██████████ ${reset}${greenf} ██████████ ${reset}${yellowf} ██████████ ${bluef} ██████████ ${purplef} ██████████ ${reset}${cyanf} ██████████${reset}
${reset}${redf} ██ ██ ${reset}${greenf} ██ ██ ${reset}${yellowf} ██ ██ ${reset}${bluef} ██ ██ ${reset}${purplef} ██ ██ ${reset}${cyanf} ██ ██ ${reset}
${reset}
EOF

View file

@ -1,42 +0,0 @@
#!/bin/sh
# 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.
# Author: steampunknyanja
# Source: http://crunchbang.org/forums/viewtopic.php?pid=146715#p146715
initializeANSI()
{
esc=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
cyanb="${esc}[46m"; whiteb="${esc}[47m"
boldon="${esc}[1m"; boldoff="${esc}[22m"
italicson="${esc}[3m"; italicsoff="${esc}[23m"
ulon="${esc}[4m"; uloff="${esc}[24m"
invon="${esc}[7m"; invoff="${esc}[27m"
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
${reset}${redf} ██ ██ ${reset}${boldon}${redf}██ ${reset}${greenf} ██ ██ ${reset}${boldon}${greenf}██ ${reset}${yellowf} ██ ██ ${reset}${boldon}${yellowf}██ ${reset}${bluef} ██ ██ ${reset}${boldon}${bluef}██ ${reset}${purplef} ██ ██ ${reset}${boldon}${purplef}██ ${reset}${cyanf} ██ ██ ${reset}${boldon}${cyanf}██
${reset}${redf}██████████ ${reset}${boldon}${redf}██ ${reset}${greenf}██████████ ${reset}${boldon}${greenf}██ ${reset}${yellowf}██████████ ${reset}${boldon}${yellowf}██ ${reset}${bluef}██████████ ${reset}${boldon}${bluef}██ ${reset}${purplef}██████████ ${reset}${boldon}${purplef}██ ${reset}${cyanf}██████████ ${reset}${boldon}${cyanf}██
${reset}${redf} ██ ██ ${reset}${boldon}${redf}██ ${reset}${greenf} ██ ██ ${reset}${boldon}${greenf}██ ${reset}${yellowf} ██ ██ ${reset}${boldon}${yellowf}██ ${reset}${bluef} ██ ██ ${reset}${boldon}${bluef}██ ${reset}${purplef} ██ ██ ${reset}${boldon}${purplef}██ ${reset}${cyanf} ██ ██ ${reset}${boldon}${cyanf}██
${reset}${redf}██████████ ${reset}${greenf}██████████ ${reset}${yellowf}██████████ ${reset}${bluef}██████████ ${reset}${purplef}██████████ ${reset}${cyanf}██████████
${reset}${redf} ██ ██ ${reset}${boldon}${redf}██ ${reset}${greenf} ██ ██ ${reset}${boldon}${greenf}██ ${reset}${yellowf} ██ ██ ${reset}${boldon}${yellowf}██ ${reset}${bluef} ██ ██ ${reset}${boldon}${bluef}██ ${reset}${purplef} ██ ██ ${reset}${boldon}${purplef}██ ${reset}${cyanf} ██ ██ ${reset}${boldon}${cyanf}██
${reset}
EOF

View file

@ -1,42 +0,0 @@
#!/bin/sh
# 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.
# Author: thevdude
# Source: http://crunchbang.org/forums/viewtopic.php?pid=147530#p147530
initializeANSI()
{
esc=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
cyanb="${esc}[46m"; whiteb="${esc}[47m"
boldon="${esc}[1m"; boldoff="${esc}[22m"
italicson="${esc}[3m"; italicsoff="${esc}[23m"
ulon="${esc}[4m"; uloff="${esc}[24m"
invon="${esc}[7m"; invoff="${esc}[27m"
reset="${esc}[0m"
}
# note in this first use that switching colors doesn't require a reset
# first - the new color overrides the old one.
clear
initializeANSI
cat << EOF
${reset}${redf}▄█▄█▄ ${reset}${boldon}${redf}█ ${reset}${greenf}▄█▄█▄ ${reset}${boldon}${greenf}█ ${reset}${yellowf}▄█▄█▄ ${reset}${boldon}${yellowf}█ ${reset}${bluef}▄█▄█▄ ${reset}${boldon}${bluef}█ ${reset}${purplef}▄█▄█▄ ${reset}${boldon}${purplef}█ ${reset}${cyanf}▄█▄█▄ ${reset}${boldon}${cyanf}█${reset}
${reset}${redf}▄█▄█▄ ${reset}${boldon}${redf}▀ ${reset}${greenf}▄█▄█▄ ${reset}${boldon}${greenf}▀ ${reset}${yellowf}▄█▄█▄ ${reset}${boldon}${yellowf}▀ ${reset}${bluef}▄█▄█▄ ${reset}${boldon}${bluef}▀ ${reset}${purplef}▄█▄█▄ ${reset}${boldon}${purplef}▀ ${reset}${cyanf}▄█▄█▄ ${reset}${boldon}${cyanf}▀${reset}
${reset}${redf} ▀ ▀ ${reset}${boldon}${redf}▀ ${reset}${greenf} ▀ ▀ ${reset}${boldon}${greenf}▀ ${reset}${yellowf} ▀ ▀ ${reset}${boldon}${yellowf}▀ ${reset}${bluef} ▀ ▀ ${reset}${boldon}${bluef}▀ ${reset}${purplef} ▀ ▀ ${reset}${boldon}${purplef}▀ ${reset}${cyanf} ▀ ▀ ${reset}${boldon}${cyanf}▀${reset}
EOF

View file

@ -1,45 +0,0 @@
#!/bin/bash
# ANSI color scheme script by pfh
# Source: http://crunchbang.org/forums/viewtopic.php?pid=144011#p144011
# Initializing mod by lolilolicon from Archlinux
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'
inv=$'\e[7m'
cat << EOF
$f1█-----$bld█ $rst$f2█-----$bld█$rst $f3█-----$bld█$rst $f4█-----$bld█$rst $f5█-----$bld█$rst $f6█-----$bld█$rst
$f1█---$bld█$rst $f2█---$bld█$rst $f3█---$bld█$rst $f4█---$bld█$rst $f5█---$bld█$rst $f6█---$bld█$rst
$f1 █-$bld█$rst $f2 █-$bld█$rst $f3 █-$bld█$rst $f4 █-$bld█$rst $f5 █-$bld█$rst $f6 █-$bld█$rst
$f1█$rst $f2█$rst $f3█$rst $f4█$rst $f5█$rst $f6█$rst
$f1$bld█-$rst$f1█$rst $f2$bld█_$rst$f2█$rst $f3$bld█-$rst$f3█$rst $f4$bld█-$rst$f4█$rst $f5$bld█-$rst$f5█$rst $f6$bld█-$rst$f6█$rst
$f1$bld█---$rst$f1█$rst $f2$bld█---$rst$f2█$rst $f3$bld█---$rst$f3█$rst $f4$bld█---$rst$f4█$rst $f5$bld█---$rst$f5█$rst $f6$bld█---$rst$f6█$rst
$f1$bld█-----$rst$f1█$rst $f2$bld█-----$rst$f2█$rst $f3$bld█-----$rst$f3█$rst $f4$bld█-----$rst$f4█$rst $f5$bld█-----$rst$f5█$rst $f6$bld█-----$rst$f6█$rst
$f1$bld█---$rst$f1█$rst $f2$bld█---$rst$f2█$rst $f3$bld█---$rst$f3█$rst $f4$bld█---$rst$f4█$rst $f5$bld█---$rst$f5█$rst $f6$bld█---$rst$f6█$rst
$f1$bld█-$rst$f1█$rst $f2$bld█-$rst$f2█$rst $f3$bld█-$rst$f3█$rst $f4$bld█-$rst$f4█$rst $f5$bld█-$rst$f5█$rst $f6$bld█-$rst$f6█$rst
$f1$bld█$rst $f2$bld█$rst $f3$bld█$rst $f4$bld█$rst $f5$bld█$rst $f6$bld█$rst
$f1█-$bld█$rst $f2█-$bld█$rst $f3█-$bld█$rst $f4█-$bld█$rst $f5█-$bld█$rst $f6█-$bld█$rst
$f1█---$bld█$rst $f2█---$bld█$rst $f3█---$bld█$rst $f4█---$bld█$rst $f5█---$bld█$rst $f6█---$bld█$rst
$f1█-----$bld█ $rst$f2█-----$bld█$rst $f3█-----$bld█$rst $f4█-----$bld█$rst $f5█-----$bld█$rst $f6█-----$bld█$rst
$f1█---$bld█$rst $f2█---$bld█$rst $f3█---$bld█$rst $f4█---$bld█$rst $f5█---$bld█$rst $f6█---$bld█$rst
$f1 █-$bld█$rst $f2 █-$bld█$rst $f3 █-$bld█$rst $f4 █-$bld█$rst $f5 █-$bld█$rst $f6 █-$bld█$rst
$f1█$rst $f2█$rst $f3█$rst $f4█$rst $f5█$rst $f6█$rst
$f1$bld█-$rst$f1█$rst $f2$bld█_$rst$f2█$rst $f3$bld█-$rst$f3█$rst $f4$bld█-$rst$f4█$rst $f5$bld█-$rst$f5█$rst $f6$bld█-$rst$f6█$rst
$f1$bld█---$rst$f1█$rst $f2$bld█---$rst$f2█$rst $f3$bld█---$rst$f3█$rst $f4$bld█---$rst$f4█$rst $f5$bld█---$rst$f5█$rst $f6$bld█---$rst$f6█$rst
$f1$bld█-----$rst$f1█$rst $f2$bld█-----$rst$f2█$rst $f3$bld█-----$rst$f3█$rst $f4$bld█-----$rst$f4█$rst $f5$bld█-----$rst$f5█$rst $f6$bld█-----$rst$f6█$rst
$f1$bld█---$rst$f1█$rst $f2$bld█---$rst$f2█$rst $f3$bld█---$rst$f3█$rst $f4$bld█---$rst$f4█$rst $f5$bld█---$rst$f5█$rst $f6$bld█---$rst$f6█$rst
$f1$bld█-$rst$f1█$rst $f2$bld█-$rst$f2█$rst $f3$bld█-$rst$f3█$rst $f4$bld█-$rst$f4█$rst $f5$bld█-$rst$f5█$rst $f6$bld█-$rst$f6█$rst
$f1$bld█$rst $f2$bld█$rst $f3$bld█$rst $f4$bld█$rst $f5$bld█$rst $f6$bld█$rst
$f1█-$bld█$rst $f2█-$bld█$rst $f3█-$bld█$rst $f4█-$bld█$rst $f5█-$bld█$rst $f6█-$bld█$rst
$f1█---$bld█$rst $f2█---$bld█$rst $f3█---$bld█$rst $f4█---$bld█$rst $f5█---$bld█$rst $f6█---$bld█$rst
$f1█-----$bld█ $rst$f2█-----$bld█$rst $f3█-----$bld█$rst $f4█-----$bld█$rst $f5█-----$bld█$rst $f6█-----$bld█$rst
EOF

View file

@ -1,48 +0,0 @@
#!/bin/sh
# 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.
# Author: thevdude
# Source: http://crunchbang.org/forums/viewtopic.php?pid=144700#p144700
initializeANSI()
{
esc=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
cyanb="${esc}[46m"; whiteb="${esc}[47m"
boldon="${esc}[1m"; boldoff="${esc}[22m"
italicson="${esc}[3m"; italicsoff="${esc}[23m"
ulon="${esc}[4m"; uloff="${esc}[24m"
invon="${esc}[7m"; invoff="${esc}[27m"
reset="${esc}[0m"
}
# note in this first use that switching colors doesn't require a reset
# first - the new color overrides the old one.
clear
initializeANSI
cat << EOF
${boldon}${whitef} ▄▄▄${reset}
${boldon}${whitef} ▄█████▄▄ ${reset}
${boldon}${whitef}███${cyanb}▀▀▀▀${blackb}▀${cyanb}▀${blackb}▀${cyanb}▀${reset}
${boldon}${whitef}███${cyanb}▄ ${boldoff}${blackf}▀ ▀${reset}${cyanf}▀${reset}
${boldon}${whitef} ▄${cyanb} ${reset}${boldon}${whitef}█████▄ ${boldoff}${redf}█▄${reset}
${boldoff}${redf}▀▀${reset}${boldon}${redb}${whitef}▄${cyanb}▄ ${redb}▄▄▄${reset}${boldoff}${redf}▀██▀${reset}
${boldon}${whitef} ██▀▀▀██▀ ${boldoff}${redf}▀${reset}
${boldon}${whitef} ▀▀▀▀ ▀▀▀▀${reset}
EOF

View file

@ -1,41 +0,0 @@
#!/bin/sh
# 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.
# Author: pfh
# Source: http://crunchbang.org/forums/viewtopic.php?pid=127737#p127737
initializeANSI()
{
esc=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
cyanb="${esc}[46m"; whiteb="${esc}[47m"
boldon="${esc}[1m"; boldoff="${esc}[22m"
italicson="${esc}[3m"; italicsoff="${esc}[23m"
ulon="${esc}[4m"; uloff="${esc}[24m"
invon="${esc}[7m"; invoff="${esc}[27m"
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
${redf}▒▒▒▒${reset} ${boldon}${redf}▒▒${reset} ${greenf}▒▒▒▒${reset} ${boldon}${greenf}▒▒${reset} ${yellowf}▒▒▒▒${reset} ${boldon}${yellowf}▒▒${reset} ${bluef}▒▒▒▒${reset} ${boldon}${bluef}▒▒${reset} ${purplef}▒▒▒▒${reset} ${boldon}${purplef}▒▒${reset} ${cyanf}▒▒▒▒${reset} ${boldon}${cyanf}▒▒${reset}
${redf}▒▒ ■${reset} ${boldon}${redf}▒▒${reset} ${greenf}▒▒ ■${reset} ${boldon}${greenf}▒▒${reset} ${yellowf}▒▒ ■${reset} ${boldon}${yellowf}▒▒${reset} ${bluef}▒▒ ■${reset} ${boldon}${bluef}▒▒${reset} ${purplef}▒▒ ■${reset} ${boldon}${purplef}▒▒${reset} ${cyanf}▒▒ ■${reset} ${boldon}${cyanf}▒▒${reset}
${redf}▒▒ ${reset}${boldon}${redf}▒▒▒▒${reset} ${greenf}▒▒ ${reset}${boldon}${greenf}▒▒▒▒${reset} ${yellowf}▒▒ ${reset}${boldon}${yellowf}▒▒▒▒${reset} ${bluef}▒▒ ${reset}${boldon}${bluef}▒▒▒▒${reset} ${purplef}▒▒ ${reset}${boldon}${purplef}▒▒▒▒${reset} ${cyanf}▒▒ ${reset}${boldon}${cyanf}▒▒▒▒${reset}
EOF

View file

@ -1,30 +0,0 @@
#!/bin/bash
# ANSI color scheme script by pfh
# Source: http://crunchbang.org/forums/viewtopic.php?pid=157979#p157979
# Initializing mod by lolilolicon from Archlinux
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'
inv=$'\e[7m'
cat << EOF
$f1 ▄▄▄ $f2 ▄▄▄ $f3 ▄▄▄ $f4 ▄▄▄ $f5 ▄▄▄ $f6 ▄▄▄
$f1 ▀█▀██ ▄ $f2 ▀█▀██ ▄ $f3 ▀█▀██ ▄ $f4 ▀█▀██ ▄ $f5 ▀█▀██ ▄ $f6 ▀█▀██ ▄
$f1 ▀▄██████▀ $f2 ▀▄██████▀ $f3 ▀▄██████▀ $f4 ▀▄██████▀ $f5 ▀▄██████▀ $f6 ▀▄██████▀
$f1 ▀█████ $f2 ▀█████ $f3 ▀█████ $f4 ▀█████ $f5 ▀█████ $f6 ▀█████
$f1 ▀▀▀▀▄ $f2 ▀▀▀▀▄ $f3 ▀▀▀▀▄ $f4 ▀▀▀▀▄ $f5 ▀▀▀▀▄ $f6 ▀▀▀▀▄
$bld
$f1 ▄▄▄ $f2 ▄▄▄ $f3 ▄▄▄ $f4 ▄▄▄ $f5 ▄▄▄ $f6 ▄▄▄
$f1 ▀█▀██ ▄ $f2 ▀█▀██ ▄ $f3 ▀█▀██ ▄ $f4 ▀█▀██ ▄ $f5 ▀█▀██ ▄ $f6 ▀█▀██ ▄
$f1 ▀▄██████▀ $f2 ▀▄██████▀ $f3 ▀▄██████▀ $f4 ▀▄██████▀ $f5 ▀▄██████▀ $f6 ▀▄██████▀
$f1 ▀█████ $f2 ▀█████ $f3 ▀█████ $f4 ▀█████ $f5 ▀█████ $f6 ▀█████
$f1 ▀▀▀▀▄ $f2 ▀▀▀▀▄ $f3 ▀▀▀▀▄ $f4 ▀▀▀▀▄ $f5 ▀▀▀▀▄ $f6 ▀▀▀▀▄
$rst
EOF

View file

@ -1,15 +0,0 @@
#!/bin/bash
# Author: SuNjACk
# Source: http://crunchbang.org/forums/viewtopic.php?pid=135226#p135226
xdef="$HOME/.Xresources"
colors=( $( sed -re '/^!/d; /^$/d; /^#/d; s/(\*color)([0-9]):/\10\2:/g;' $xdef | grep 'color[01][0-9]:' | sort | sed 's/^.*: *//g' ) )
echo -e "\e[1;37m
Black Red Green Yellow Blue Magenta Cyan White
──────────────────────────────────────────────────────────────────────\e[0m"
for i in {0..7}; do echo -en "\e[$((30+$i))m ${colors[i]} \e[0m"; done
echo
for i in {8..15}; do echo -en "\e[1;$((22+$i))m ${colors[i]} \e[0m"; done
echo -e "\n"

View file

@ -1,13 +0,0 @@
#!/usr/bin/env bash
# source: Meyithi, https://bbs.archlinux.org/viewtopic.php?pid=1010829#p1010829
xdef="$HOME/.Xresources"
colors=( $( sed -re '/^!/d; /^$/d; /^#/d; s/(\*color)([0-9]):/\10\2:/g;' $xdef | grep 'color[01][0-9]:' | sort | sed 's/^.*: *//g' )
)
echo
for i in {0..7}; do echo -en "\e[$((30+$i))m ${colors[i]} \u2588\u2588 \e[0m"; done
echo
for i in {8..15}; do echo -en "\e[1;$((22+$i))m ${colors[i]} \u2588\u2588 \e[0m"; done
echo -e "\n"

View file

@ -1,51 +0,0 @@
#!/bin/sh
# 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.
# Author: pfh
# Source: http://crunchbang.org/forums/viewtopic.php?pid=129265#p129265
initializeANSI()
{
esc=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
cyanb="${esc}[46m"; whiteb="${esc}[47m"
boldon="${esc}[1m"; boldoff="${esc}[22m"
italicson="${esc}[3m"; italicsoff="${esc}[23m"
ulon="${esc}[4m"; uloff="${esc}[24m"
invon="${esc}[7m"; invoff="${esc}[27m"
reset="${esc}[0m"
}
# note in this first use that switching colors doesn't require a reset
# first - the new color overrides the old one.
# ****************************** Building blocks: █ ▓ ▒ ░ ▄ ▀ ▐ ▌ ● ═ ║ ╔ ╦ ╗ ╚ ╩ ╝ ■ ▬ ▲ ▼ ◄ ►
initializeANSI
cat << EOF
${redf} ▄█████▄ ${greenf} ▄█████▄ ${yellowf} ▄█████▄ ${bluef} ▄█████▄ ${purplef} ▄█████▄ ${cyanf} ▄█████▄
${redf} █▄▄ ▄▄█ ${greenf} █▄▄ ▄▄█ ${yellowf} █▄▄ ▄▄█ ${bluef} █▄▄ ▄▄█ ${purplef} █▄▄ ▄▄█ ${cyanf} █▄▄ ▄▄█
${redf} ███ ███ ${greenf} ███ ███ ${yellowf} ███ ███ ${bluef} ███ ███ ${purplef} ███ ███ ${cyanf} ███ ███
${redf} ▀██ ██▀ ${greenf} ▀██ ██▀ ${yellowf} ▀██ ██▀ ${bluef} ▀██ ██▀ ${purplef} ▀██ ██▀ ${cyanf} ▀██ ██▀
${redf} ▀ ▀ ${greenf} ▀ ▀ ${yellowf} ▀ ▀ ${bluef} ▀ ▀ ${purplef} ▀ ▀ ${cyanf} ▀ ▀
${boldon}
${redf} ▄█████▄ ${greenf} ▄█████▄ ${yellowf} ▄█████▄ ${bluef} ▄█████▄ ${purplef} ▄█████▄ ${cyanf} ▄█████▄
${redf} █▄▄ ▄▄█ ${greenf} █▄▄ ▄▄█ ${yellowf} █▄▄ ▄▄█ ${bluef} █▄▄ ▄▄█ ${purplef} █▄▄ ▄▄█ ${cyanf} █▄▄ ▄▄█
${redf} ███ ███ ${greenf} ███ ███ ${yellowf} ███ ███ ${bluef} ███ ███ ${purplef} ███ ███ ${cyanf} ███ ███
${redf} ▀██ ██▀ ${greenf} ▀██ ██▀ ${yellowf} ▀██ ██▀ ${bluef} ▀██ ██▀ ${purplef} ▀██ ██▀ ${cyanf} ▀██ ██▀
${redf} ▀ ▀ ${greenf} ▀ ▀ ${yellowf} ▀ ▀ ${bluef} ▀ ▀ ${purplef} ▀ ▀ ${cyanf} ▀ ▀
${reset}
EOF

View file

@ -1,36 +0,0 @@
#!/usr/bin/env bash
# ANSI color scheme script featuring PACMAN
# Author: pfh
# Source: http://crunchbang.org/forums/viewtopic.php?pid=144481#p144481
# Initializing procedure 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'
inv=$'\e[7m'
cat << EOF
$rst
$f3 ▄███████▄ $f1 ▄██████▄ $f2 ▄██████▄ $f4 ▄██████▄ $f5 ▄██████▄ $f6 ▄██████▄
$f3▄█████████▀▀ $f1▄$f7█▀█$f1██$f7█▀█$f1██▄ $f2▄█$f7███$f2██$f7███$f2█▄ $f4▄█$f7███$f4██$f7███$f4█▄ $f5▄█$f7███$f5██$f7███$f5█▄ $f6▄██$f7█▀█$f6██$f7█▀█$f6▄
$f3███████▀ $f7▄▄ ▄▄ ▄▄ $f1█$f7▄▄█$f1██$f7▄▄█$f1███ $f2██$f7█ █$f2██$f7█ █$f2██ $f4██$f7█ █$f4██$f7█ █$f4██ $f5██$f7█ █$f5██$f7█ █$f5██ $f6███$f7█▄▄$f6██$f7█▄▄$f6█
$f3███████▄ $f7▀▀ ▀▀ ▀▀ $f1████████████ $f2████████████ $f4████████████ $f5████████████ $f6████████████
$f3▀█████████▄▄ $f1██▀██▀▀██▀██ $f2██▀██▀▀██▀██ $f4██▀██▀▀██▀██ $f5██▀██▀▀██▀██ $f6██▀██▀▀██▀██
$f3 ▀███████▀ $f1▀ ▀ ▀ ▀ $f2▀ ▀ ▀ ▀ $f4▀ ▀ ▀ ▀ $f5▀ ▀ ▀ ▀ $f6▀ ▀ ▀ ▀
$bld
$f3 ▄███████▄ $f1 ▄██████▄ $f2 ▄██████▄ $f4 ▄██████▄ $f5 ▄██████▄ $f6 ▄██████▄
$f3▄█████████▀▀ $f1▄$f7█▀█$f1██$f7█▀█$f1██▄ $f2▄█$f7█ █$f2██$f7█ █$f2█▄ $f4▄█$f7█ █$f4██$f7█ █$f4█▄ $f5▄█$f7█ █$f5██$f7█ █$f5█▄ $f6▄██$f7█▀█$f6██$f7█▀█$f6▄
$f3███████▀ $f7▄▄ ▄▄ ▄▄ $f1█$f7▄▄█$f1██$f7▄▄█$f1███ $f2██$f7███$f2██$f7███$f2██ $f4██$f7███$f4██$f7███$f4██ $f5██$f7███$f5██$f7███$f5██ $f6███$f7█▄▄$f6██$f7█▄▄$f6█
$f3███████▄ $f7▀▀ ▀▀ ▀▀ $f1████████████ $f2████████████ $f4████████████ $f5████████████ $f6████████████
$f3▀█████████▄▄ $f1██▀██▀▀██▀██ $f2██▀██▀▀██▀██ $f4██▀██▀▀██▀██ $f5██▀██▀▀██▀██ $f6██▀██▀▀██▀██
$f3 ▀███████▀ $f1▀ ▀ ▀ ▀ $f2▀ ▀ ▀ ▀ $f4▀ ▀ ▀ ▀ $f5▀ ▀ ▀ ▀ $f6▀ ▀ ▀ ▀
$rst
EOF

View file

@ -1,187 +0,0 @@
#!/usr/bin/env bash
# Animated pipes.sh terminal screensaver at an angle.
# Copyright (C) 2013 by Yu-Jie Lin
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
# Blog: http://blog.yjl.im/2013/07/pipesxsh-animated-pipessh-terminal.html
# Gist: https://gist.github.com/livibetter/5974905
# Screenshot: https://lh3.googleusercontent.com/-UaCta_DtgrQ/Ud6dqIgcfmI/AAAAAAAAE_8/VXPac0OpULU/s800/pipesX.sh.gif
# Screenshot: https://lh6.googleusercontent.com/-yBety-A8J_c/Ud6dk10sjBI/AAAAAAAAE_0/S98aRRV8t0s/s800/pipesX.sh%25202013-07-11--19%253A51%253A05.png
# Screencast: http://youtu.be/dITTlFPYVPA
W=$(tput cols) H=$(tput lines)
# maximal random value + 1
M=32768
SETS=('╱╲' '/\')
COLORS=(31 32 33 34 35 36 37)
# default values
N=1
T=0
I=0.05
P=25
R=$((W * H / 4))
HELP="Usage: $(basename $0) [OPTIONS]
Animated pipes.sh terminal screensaver at an angle.
Options:
-n [1-] number of pipes. (Default: $N)
-t [0-$((${#SETS[@]} - 1))] type of pipes. (Default: $T)
-i [float] piping interval or maze generation interval. (Default: $I)
-P [0-100] probability of a turning pipe or of \\ in maze generation. (Default: $P)
-r [LIMIT] reset after x characters, 0 if no limit. (Default: $R)
-R random starting point.
-C no color.
-X maze generation.
-h this help message.
"
while getopts "n:t:i:P:r:RCXh" arg; do
case $arg in
n)
((N = OPTARG > 0 ? OPTARG : N))
;;
t)
((T = (OPTARG >= 0 && OPTARG < ${#SETS[@]}) ? OPTARG : T))
;;
i)
I=$OPTARG
;;
P)
((P = (OPTARG >= 0 && OPTARG <= 100) ? OPTARG : P))
;;
r)
((R = OPTARG >= 0 ? OPTARG : R))
;;
R)
RNDSTART=1
;;
C)
NOCOLOR=1
;;
X)
MAZE=1
;;
h)
echo -e "$HELP"
exit 0
;;
esac
done
do_exit() {
# Show cursor and echo stdin
echo -ne "\e[?25h"
stty echo
clear
exit 0
}
trap do_exit INT TERM
# No echo stdin and hide the cursor
stty -echo
echo -ne "\e[?25l"
# maze geneartion
while [[ $MAZE ]] && clear; do
[[ $NOCOLOR ]] || echo -ne "\e[1;${COLORS[${#COLORS[@]} * RANDOM / M]}m"
for ((i = 0; i < W * H; i++ )); do
echo -ne ${SETS[T]:100 * RANDOM / M < P:1}
done
read -t $I -n 1 && [[ $REPLY =~ q|Q ]] && do_exit
done
# initialze values
for ((n = 0; n < N; n++)); do
((X[n] = RNDSTART ? (W + 2) * RANDOM / M : W / 2))
((Y[n] = RNDSTART ? (H + 2) * RANDOM / M : H / 2))
D[n]=$((4 * RANDOM / M))
C[n]=${COLORS[${#COLORS[@]} * RANDOM / M]}
done
clear
while :; do
for ((n = 0; n < N; n++, CC = 0)); do
x=${X[n]} y=${Y[n]}
d=${D[n]} c=${C[n]}
# calculate new direction `d`
# 1 0
# \/ 4 directions 0 to 3
# /\
# 2 3
# valid directions: d: dd', d' is the new direction
# d
# 0: / 00 \ 01 03
# / / /\
# 1: / 10 \ 11 12
# \ \ /\
# 2: \/ 21 / 22 / 23
# / \
# 3: \/ 30 \ 32 \ 33
# / \
((d = (100 * RANDOM / M) < P ? ((d + 1) + 2 * (RANDOM % 2)) % 4 : d))
((e = (d + 1) % 4))
# calculate new position
# d' x' y'
# 0: x+1 y-1
# 1: x-1 y-1
# 2: x-1 y+1
# 3: x+1 y+1
((xn = e < 2 ? x + 1 : x - 1))
((yn = d < 2 ? y - 1 : y + 1))
# adjust position and change color?
((d < 2 && y == 0)) && ((yn--, CC=1))
((e > 1 && x == 0)) && ((xn--, CC=1))
((d > 1 && y == H)) && ((yn++, CC=1))
((e < 2 && x == W)) && ((xn++, CC=1))
((CC)) && c=${COLORS[${#COLORS[@]} * RANDOM / M]}
# warp pipe
((xn = (xn + W + 1) % (W + 1)))
((yn = (yn + H + 1) % (H + 1)))
# calculate position in terminal
# d' xt yt
# 0: x' y'+1
# 1: x'+1 y'+1
# 2: x'+1 y'
# 3: x' y'
((xt = e < 2 ? xn : xn + 1))
((yt = d < 2 ? yn + 1 : yn))
echo -ne "\e[${yt};${xt}H"
[[ $NOCOLOR ]] || echo -ne "\e[1;${c}m"
echo -n "${SETS[T]:d%2:1}"
X[n]=$xn Y[n]=$yn
D[n]=$d C[n]=$c
done
read -t $I -n 1 && [[ $REPLY =~ q|Q ]] && do_exit
((R)) && ((r += N, r >= R)) && r=0 && clear
done
do_exit

View file

@ -1,60 +0,0 @@
#!/usr/bin/env bash
declare -i f=75 s=13 r=2000 t=0 c=1 n=0 l=0
declare -ir w=$(tput cols) h=$(tput lines)
declare -i x=$((w/2)) y=$((h/2))
declare -ar v=( [00]="\x82" [01]="\x8c" [03]="\x90" ####
[10]="\x98" [11]="\x80" [12]="\x90" # Normal UTF-8 box characters.
[21]="\x94" [22]="\x82" [23]="\x98" # (These are the default for they are supported almost everywhere.)
[30]="\x94" [32]="\x8c" [33]="\x80" ) ####
# declare -ar v=( [00]="\x83" [01]="\x8f" [03]="\x93" ####
# [10]="\x9b" [11]="\x81" [12]="\x93" # Heavy UTF-8 box characters.
# [21]="\x97" [22]="\x83" [23]="\x9b" # (Uncomment only if your terminal supports it)
# [30]="\x97" [32]="\x8f" [33]="\x81" ) ####
OPTIND=1
while getopts "f:s:r:h" arg; do
case $arg in
f) ((f=($OPTARG>19 && $OPTARG<101)?$OPTARG:$f));;
s) ((s=($OPTARG>4 && $OPTARG<16 )?$OPTARG:$s));;
r) ((r=($OPTARG>0)?$OPTARG:$r));;
h) echo -e "Usage: pipes [OPTION]..."
echo -e "Animated pipes terminal screensaver.\n"
echo -e " -f [20-100]\tframerate (D=75)."
echo -e " -s [5-15]\tprobability of a straight fitting (D=13)."
echo -e " -r LIMIT\treset after x characters (D=2000)."
echo -e " -h\t\thelp (this screen).\n"
exit 0;;
esac
done
tput smcup
tput reset
tput civis
trap "tput rmcup; tput reset; exit" SIGINT
while true; do
# New position:
(($l%2)) && ((x+=($l==1)?1:-1))
((!($l%2))) && ((y+=($l==2)?1:-1))
# Loop on edges (change color on loop):
((c=($x>$w || $x<0 || $y>$h || $y<0)?($RANDOM%7):$c))
((x=($x>$w)?0:(($x<0)?$w:$x)))
((y=($y>$h)?0:(($y<0)?$h:$y)))
# New random direction:
((n=$RANDOM%$s-1))
((n=($n>1||$n==0)?$l:$l+$n))
((n=($n<0)?3:$n%4))
# Print:
tput cup $y $x
printf "\033[1;3${c}m\xe2\x94${v[$l$n]}"
(($t>$r)) && tput reset && tput civis && t=0 || ((t++))
l=$n
sleep $(echo "scale=5;1/$f"|bc)
done

View file

@ -1,38 +0,0 @@
#!/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

View file

@ -1,21 +0,0 @@
#!/usr/bin/env bash
# Author: crshd
# Source: http://crunchbang.org/forums/viewtopic.php?pid=128584#p128584
echo
for f in {0..6}; do
echo -en "\033[$((f+41))m\033[$((f+30))m██▓▒░"
done
echo -en "\033[37m██\n"
echo
for f in {0..6}; do
echo -en "\033[$((f+41))m\033[1;$((f+30))m██▓▒░"
done
echo -en "\033[1;37m██"
echo -e "\033[0m"
echo

View file

@ -1,40 +0,0 @@
#!/bin/sh
# 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.
# Author: muzieca
# Source: http://crunchbang.org/forums/viewtopic.php?pid=127509#p127509
initializeANSI()
{
esc=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
cyanb="${esc}[46m"; whiteb="${esc}[47m"
boldon="${esc}[1m"; boldoff="${esc}[22m"
italicson="${esc}[3m"; italicsoff="${esc}[23m"
ulon="${esc}[4m"; uloff="${esc}[24m"
invon="${esc}[7m"; invoff="${esc}[27m"
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
${redf}▀ █${reset} ${boldon}${redf}█ ▀${reset} ${greenf}▀ █${reset} ${boldon}${greenf}█ ▀${reset} ${yellowf}▀ █${reset} ${boldon}${yellowf}█ ▀${reset} ${bluef}▀ █${reset} ${boldon}${bluef}█ ▀${reset} ${purplef}▀ █${reset} ${boldon}${purplef}█ ▀${reset} ${cyanf}▀ █${reset} ${boldon}${cyanf}█ ▀${reset}
${redf}██${reset} ${boldon}${redf} ██${reset} ${greenf}██${reset} ${boldon}${greenf}██${reset} ${yellowf}██${reset} ${boldon}${yellowf}██${reset} ${bluef}██${reset} ${boldon}${bluef}██${reset} ${purplef}██${reset} ${boldon}${purplef}██${reset} ${cyanf}██${reset} ${boldon}${cyanf}██${reset}
${redf}▄ █${reset}${boldon}${redf} █ ▄ ${reset} ${greenf}▄ █ ${reset}${boldon}${greenf}█ ▄${reset} ${yellowf}▄ █ ${reset}${boldon}${yellowf}█ ▄${reset} ${bluef}▄ █ ${reset}${boldon}${bluef}█ ▄${reset} ${purplef}▄ █ ${reset}${boldon}${purplef}█ ▄${reset} ${cyanf}▄ █ ${reset}${boldon}${cyanf}█ ▄${reset}
EOF

View file

@ -1,58 +0,0 @@
#!/bin/sh
# 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.
# Original Author: pfh
# Source: http://crunchbang.org/forums/viewtopic.php?pid=129265#p129265
# Further Modified by: Chef-Stark
# This is the same tiefighter1 color-script minus the inverted colors
initializeANSI()
{
esc=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
cyanb="${esc}[46m"; whiteb="${esc}[47m"
boldon="${esc}[1m"; boldoff="${esc}[22m"
italicson="${esc}[3m"; italicsoff="${esc}[23m"
ulon="${esc}[4m"; uloff="${esc}[24m"
invon="${esc}[7m"; invoff="${esc}[27m"
reset="${esc}[0m"
}
# note in this first use that switching colors doesn't require a reset
# first - the new color overrides the old one.
# ****************************** Building blocks: █ ▓ ▒ ░ ▄ ▀ ▐ ▌ ● ═ ║ ╔ ╦ ╗ ╚ ╩ ╝ ■ ▬ ▲ ▼ ◄ ►
initializeANSI
cat << EOF
${redf} ▄█ █▄ ${greenf} ▄▄ ▄▄ ${yellowf} ▄▄ ▄▄ ${bluef} ▄▄ ▄▄ ${purplef} ▄▄ ▄▄ ${cyanf} ▄█ █▄
${redf} ▄█▀ ▄▄▄ ▀█▄ ${greenf} ▄█▀ ▄▄▄ ▀█▄ ${yellowf} ▄█▀ ▄▄▄ ▀█▄ ${bluef} ▄█▀ ▄▄▄ ▀█▄ ${purplef} ▄█▀ ▄▄▄ ▀█▄ ${cyanf} ▄█▀ ▄▄▄ ▀█▄
${redf} ██▄▄██▀██▄▄██ ${greenf} ██▄▄██▀██▄▄██ ${yellowf} ██▄▄██▀██▄▄██ ${bluef} ██▄▄██▀██▄▄██ ${purplef} ██▄▄██▀██▄▄██ ${cyanf} ██▄▄██▀██▄▄██
${redf} ██▀▀█████▀▀██ ${greenf} ██▀▀█████▀▀██ ${yellowf} ██▀▀█████▀▀██ ${bluef} ██▀▀█████▀▀██ ${purplef} ██▀▀█████▀▀██ ${cyanf} ██▀▀█████▀▀██
${redf} ▀█▄ ▀▀▀ ▄█▀ ${greenf} ▀█▄ ▀▀▀ ▄█▀ ${yellowf} ▀█▄ ▀▀▀ ▄█▀ ${bluef} ▀█▄ ▀▀▀ ▄█▀ ${purplef} ▀█▄ ▀▀▀ ▄█▀ ${cyanf} ▀█▄ ▀▀▀ ▄█▀
${redf} ▀█ █▀ ${greenf} ▀▀ ▀▀ ${yellowf} ▀▀ ▀▀ ${bluef} ▀▀ ▀▀ ${purplef} ▀▀ ▀▀ ${cyanf} ▀█ █▀
${boldon}
${redf} ▄█ █▄ ${greenf} ▄▄ ▄▄ ${yellowf} ▄▄ ▄▄ ${bluef} ▄▄ ▄▄ ${purplef} ▄▄ ▄▄ ${cyanf} ▄█ █▄
${redf} ▄█▀ ▄▄▄ ▀█▄ ${greenf} ▄█▀ ▄▄▄ ▀█▄ ${yellowf} ▄█▀ ▄▄▄ ▀█▄ ${bluef} ▄█▀ ▄▄▄ ▀█▄ ${purplef} ▄█▀ ▄▄▄ ▀█▄ ${cyanf} ▄█▀ ▄▄▄ ▀█▄
${redf} ██▄▄██▀██▄▄██ ${greenf} ██▄▄██▀██▄▄██ ${yellowf} ██▄▄██▀██▄▄██ ${bluef} ██▄▄██▀██▄▄██ ${purplef} ██▄▄██▀██▄▄██ ${cyanf} ██▄▄██▀██▄▄██
${redf} ██▀▀█████▀▀██ ${greenf} ██▀▀█████▀▀██ ${yellowf} ██▀▀█████▀▀██ ${bluef} ██▀▀█████▀▀██ ${purplef} ██▀▀█████▀▀██ ${cyanf} ██▀▀█████▀▀██
${redf} ▀█▄ ▀▀▀ ▄█▀ ${greenf} ▀█▄ ▀▀▀ ▄█▀ ${yellowf} ▀█▄ ▀▀▀ ▄█▀ ${bluef} ▀█▄ ▀▀▀ ▄█▀ ${purplef} ▀█▄ ▀▀▀ ▄█▀ ${cyanf} ▀█▄ ▀▀▀ ▄█▀
${redf} ▀█ █▀ ${greenf} ▀▀ ▀▀ ${yellowf} ▀▀ ▀▀ ${bluef} ▀▀ ▀▀ ${purplef} ▀▀ ▀▀ ${cyanf} ▀█ █▀
${reset}
EOF

View file

@ -1,53 +0,0 @@
#!/bin/sh
# 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.
# Author: pfh
# Source: http://crunchbang.org/forums/viewtopic.php?pid=129265#p129265
initializeANSI()
{
esc=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
cyanb="${esc}[46m"; whiteb="${esc}[47m"
boldon="${esc}[1m"; boldoff="${esc}[22m"
italicson="${esc}[3m"; italicsoff="${esc}[23m"
ulon="${esc}[4m"; uloff="${esc}[24m"
invon="${esc}[7m"; invoff="${esc}[27m"
reset="${esc}[0m"
}
# note in this first use that switching colors doesn't require a reset
# first - the new color overrides the old one.
# ****************************** Building blocks: █ ▓ ▒ ░ ▄ ▀ ▐ ▌ ● ═ ║ ╔ ╦ ╗ ╚ ╩ ╝ ■ ▬ ▲ ▼ ◄ ►
initializeANSI
cat << EOF
${redf} █ █ ${greenf}█ █ ${yellowf}█ █ ${bluef}█ █ ${purplef}█ █ ${cyanf}█ █
${redf} █ ▄▄▄ █ ${greenf}█ ▄▄▄ █ ${yellowf}█ ▄▄▄ █ ${bluef}█ ▄▄▄ █ ${purplef}█ ▄▄▄ █ ${cyanf}█ ▄▄▄ █
${redf} █▄▄██▀██▄▄█ ${greenf}█▄▄██▀██▄▄█ ${yellowf}█▄▄██▀██▄▄█ ${bluef}█▄▄██▀██▄▄█ ${purplef}█▄▄██▀██▄▄█ ${cyanf}█▄▄██▀██▄▄█
${redf} █▀▀█████▀▀█ ${greenf}█▀▀█████▀▀█ ${yellowf}█▀▀█████▀▀█ ${bluef}█▀▀█████▀▀█ ${purplef}█▀▀█████▀▀█ ${cyanf}█▀▀█████▀▀█
${redf} █ ▀▀▀ █ ${greenf}█ ▀▀▀ █ ${yellowf}█ ▀▀▀ █ ${bluef}█ ▀▀▀ █ ${purplef}█ ▀▀▀ █ ${cyanf}█ ▀▀▀ █
${redf} █ █ ${greenf}█ █ ${yellowf}█ █ ${bluef}█ █ ${purplef}█ █ ${cyanf}█ █
${boldon}
${redf} █ █ ${greenf}█ █ ${yellowf}█ █ ${bluef}█ █ ${purplef}█ █ ${cyanf}█ █
${redf} █ ▄▄▄ █ ${greenf}█ ▄▄▄ █ ${yellowf}█ ▄▄▄ █ ${bluef}█ ▄▄▄ █ ${purplef}█ ▄▄▄ █ ${cyanf}█ ▄▄▄ █
${redf} █▄▄██▀██▄▄█ ${greenf}█▄▄██▀██▄▄█ ${yellowf}█▄▄██▀██▄▄█ ${bluef}█▄▄██▀██▄▄█ ${purplef}█▄▄██▀██▄▄█ ${cyanf}█▄▄██▀██▄▄█
${redf} █▀▀█████▀▀█ ${greenf}█▀▀█████▀▀█ ${yellowf}█▀▀█████▀▀█ ${bluef}█▀▀█████▀▀█ ${purplef}█▀▀█████▀▀█ ${cyanf}█▀▀█████▀▀█
${redf} █ ▀▀▀ █ ${greenf}█ ▀▀▀ █ ${yellowf}█ ▀▀▀ █ ${bluef}█ ▀▀▀ █ ${purplef}█ ▀▀▀ █ ${cyanf}█ ▀▀▀ █
${redf} █ █ ${greenf}█ █ ${yellowf}█ █ ${bluef}█ █ ${purplef}█ █ ${cyanf}█ █
${reset}
EOF

View file

@ -1,23 +0,0 @@
#!/bin/bash
# ANSI color scheme script by pfh
# Source: http://crunchbang.org/forums/viewtopic.php?pid=141044#p141044
# Initializing mod by lolilolicon from Archlinux
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'
inv=$'\e[7m'
cat << EOF
$f1▀■▄ $f2▀■▄ $f3▀■▄ $f4▀■▄ $f5▀■▄ $f6▀■▄
$bld$f1▀■▄ $f2▀■▄ $f3▀■▄ $f4▀■▄ $f5▀■▄ $f6▀■▄$rst
EOF

View file

@ -1,16 +0,0 @@
#!/bin/bash
#
TEMP="$(nvidia-settings -q all | grep "Attribute 'ThermalSensorReading'" -m 1 | awk '{print $4}')"
# With icon
# echo " $TEMP"
# Just text
if [ ${#TEMP} -eq "0" ]; then
# Print CPU temp if nvidia card is disabled
~/Scripts/temperature.sh
else
echo "${TEMP%?}°C"
# echo "HEAT ${TEMP%?}°C"
fi
#echo "gpu ${TEMP%?}°C"

View file

@ -1,35 +0,0 @@
#!/bin/zsh
# upower -i $(upower -e | grep 'BAT') | grep -E "state|to\ full|percentage"
# glyphs:     
INFO="$(upower -i "$(upower -e | grep 'BAT')")"
STATE="$(echo $INFO | grep "state" | awk '{print $2}')"
# Note: I cut off the percentage sign so i can later compare POWER as an int
POWER="$(echo $INFO | grep "percentage" | awk '{print $2}' | head -c -2)"
# With icons
if [[ "$STATE" = "discharging" ]]; then
if [ "$POWER" -ge "85" ]; then
echo "$POWER%"
elif [ "$POWER" -ge "60" ]; then
echo "$POWER%"
elif [ "$POWER" -ge "35" ]; then
echo "$POWER%"
elif [ "$POWER" -ge "10" ]; then
echo "$POWER%"
else
echo "$POWER%"
fi
else
# State = fully charged or charging
echo "$POWER%"
fi
# Without icons
# if [[ "$STATE" = "discharging" ]]; then
# echo "BAT* $POWER%"
# else
# # State = fully charged or charging
# echo "BAT $POWER%"
# fi

View file

@ -1,3 +0,0 @@
notify-send 'Select area to capture.' --icon=/home/elena/.icons/oomox-wally-flat/apps/scalable/gnome-screenshot.svg --urgency low
scrot -s '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Pictures/Screenshots/';
notify-send "Screenshot taken." --icon=/home/elena/.icons/oomox-wally-flat/apps/scalable/gnome-screenshot.svg --urgency low

View file

@ -1,28 +0,0 @@
#!/bin/bash
#    
CPU="$[100-$(vmstat 1 2|tail -1|awk '{printf "%d", $15}')]"
# GOVERNOR="$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)"
# if [[ "$GOVERNOR" == "performance" ]]; then
# echo " $CPU%"
# else
# echo " $CPU%"
# fi
# Lazy whitespace padding
# With icon
if [ "$CPU" -ge "10" ]; then
echo "$CPU%"
else
echo "$CPU%"
fi
# # Just text
# if [ "$CPU" -ge "10" ]; then
# # echo "cpu $CPU%"
# echo "CPU $CPU%"
# else
# echo "CPU $CPU%"
# fi

View file

@ -1,6 +0,0 @@
#df -h | awk '$NF=="/"{printf "Disk Usage: %d/%dGB (%s)\n", $3,$2,$5}'
# show only free space
#df -k -h . | awk '$NF=="/"{printf " %dGB\n", ($2-$3)}'
df -k -h /dev/sda1 | tail -1 | awk '{printf " %sB\n", $4}'

View file

@ -1 +0,0 @@
killall dunst && notify-send 'Hello world!' 'Dunst has restarted.' --icon=/home/elena/.icons/oomox-wally-flat/apps/scalable/gtk-info.svg

View file

@ -1 +0,0 @@
neofetch --backend w3m --source "$(cat ~/.wally/cat .wally/path_to_wallpaper)" --crop_offset northeast --crop_mode fill --disable gpu cpu memory icons theme wm model --block_range 1 7 --color_blocks on --size 190px

View file

@ -1,2 +0,0 @@
# needs work
neofetch --backend w3m ~/Pictures/Wallpapers/ratatatGradientCon.jpg --crop_offset northeast --crop_mode fill --size 200px --disable gpu cpu memory icons theme wm model

View file

@ -1 +0,0 @@
redshift -O 3000

View file

@ -1,9 +0,0 @@
#!/bin/bash
REDSHIFT="$(ps cax | grep redshift)"
if [ ${#REDSHIFT} -eq "0" ]; then
#echo "redshift is not running."
# run redshift
echo "  "
else
echo "  "
fi

View file

@ -1,10 +0,0 @@
#!/bin/bash
TEMP=3000
REDSHIFT="$(ps cax | grep redshift)"
if [ ${#REDSHIFT} -eq "0" ]; then
#echo "redshift is not running."
# run redshift
redshift -l 0:0 -t $TEMP:$TEMP -r &
else
killall redshift
fi

View file

@ -1,35 +0,0 @@
#!/bin/bash
# Focus specific window
# Default (no options): focus window that has a specific string in its title
# Focus by pid (-i): focus window that has a specific pid
# Focus by priority (-p): focuses the window with the highest priority, if it exists, else it focuses the next one etc.
# Use: focus.sh mystring
# focus.sh -i pid
# focus.sh -p str1 str2 str3
if [[ "$1" = "-i" ]]; then
# focus by pid
PID="$(echo $2)"
wmctrl -i -a $(wmctrl -lp | grep -v "$0" | grep $PID | awk '{print $1}')
elif [[ "$1" = "-p" ]]; then
for var in "${@:2}"
do
WINDOWID="$(wmctrl -l | grep -v "$0" | grep -m 1 "$var" | awk '{print $1}')"
if [ ${#WINDOWID} -ne "0" ]; then
wmctrl -i -a $WINDOWID
break
fi
done
else
# focus by string in window title
WINDOWID="$(wmctrl -l | grep -v "$0" | grep -m 1 "$1" | awk '{print $1}')"
wmctrl -i -a $WINDOWID
fi
# if [[ $(ls -A) ]]; then
# echo "there are files"
# else
# echo "no files found"
# fi

View file

@ -1,18 +0,0 @@
# run only
#rofi -show run -display-run "»" -combi-modi "window,run" -lines 1 -width 100 -height 100 -padding 350 -font "FuraCode Nerd Font Bold 40" -separator-style "none"
# run+window
rofi -show combi -display-run " »" -display-window "::" -combi-modi "window,run" -hide-scrollbar -lines 10 -width 100 -height 100 -padding 125 -font "FuraCode Nerd Font Bold 30" -separator-style "none"
# rofi -show combi -combi-modi "window,run" -lines 15 -width 50 -padding 20 -font "proggycleanttce Nerd Font Regular 12" -separator-style "none" -no-show-match
#rofi -show combi -combi-modi "window,run" -lines 15 -width 50 -padding 15 -font "iosevka Nerd Font Bold 10" -separator-style "none" -no-show-match
# fullscreen
#rofi -show combi -combi-modi "window,run" -lines 15 -width 100 -padding 300 -font "terminus 11" -separator-style "none" -no-show-match
#rofi -show run -lines 15 -width 50 -padding 20 -font "terminus 11" -separator-style "none" -no-show-match
#rofi -show combi -combi-modi "window,run" -lines 15 -width 50 -padding 20 -font "pxplus ibm vga8 12" -separator-style "none" -no-show-match
#rofi -show combi -combi-modi "window,run" -lines 15 -width 50 -padding 20 -font "terminus 9" -separator-style "none" -no-show-match
#rofi -show combi -combi-modi "window,run" -lines 15 -width 40 -padding 20 -font "tewi 7" -separator-style "none" -no-show-match

View file

@ -1,3 +0,0 @@
#!/bin/bash
notify-send 'Hello world!' 'This is an example notification.' --icon=dialog-information

View file

@ -1,17 +0,0 @@
# needs work! not thoroughly tested...
# Replace with your own interface names here
WIRELESS_IF="wlp3s0"
WIRED_IF="enp2s0f0"
WIFI="$(ifconfig | grep -A 1 $WIRELESS_IF | grep "inet" | awk '{print $2}')"
ETHER="$(ifconfig | grep -A 1 $WIRED_IF | grep "inet" | awk '{print $2}')"
if [ ${#ETHER} -eq "0" ]; then
if [ ${#WIFI} -eq "0" ]; then
echo "  "
else
echo "$WIFI"
fi
else
echo "$ETHER"
fi

View file

@ -1,17 +0,0 @@
# needs work! not thoroughly tested...
# Replace with your own interface names here
WIRELESS_IF="wlp3s0"
WIRED_IF="enp2s0f0"
WIFI="$(ifconfig | grep -A 1 $WIRELESS_IF | grep "inet" | awk '{print $2}')"
ETHER="$(ifconfig | grep -A 1 $WIRED_IF | grep "inet" | awk '{print $2}')"
if [ ${#ETHER} -eq "0" ]; then
if [ ${#WIFI} -eq "0" ]; then
echo ""
else
echo ""
fi
else
echo ""
fi

View file

@ -1,21 +0,0 @@
#!/bin/bash
# Get mpd state
MPDSTATE="$(mpc | head -2 | tail -1 | awk '{print $1}')"
if [[ "$MPDSTATE" != "[playing]" ]]; then
# echo " ·| "
# echo ""
# echo "||"
# echo ""
echo ""
else
# echo " ·> "
# echo ""
# echo ""
# echo ">>"
# echo ""
echo ""
SONG="$(mpc | head -1)"
notify-send "Now playing:" "$SONG" -i ~/.icons/oomox-wally-flat/actions/scalable/player_play.svg --replace-file /tmp/mpd_notification_id
fi

View file

@ -1,13 +0,0 @@
#!/bin/bash
# Write PID to that file so other processes can send signals to me
echo $$ > /tmp/mpdinfo_pid
while : # This is the same as "while true".
do
# I do this when I wake up
~/Scripts/mpd-query.sh
# Then I go back to sleep
sleep 1d
#echo "woke up!"
done

View file

@ -1,4 +0,0 @@
#!/bin/bash
MPDINFO_PID="$(cat /tmp/mpdinfo_pid)"
pkill -P $MPDINFO_PID sleep

View file

@ -1,85 +0,0 @@
#!/bin/bash
# Prints media info from mpd, youtube
# Priority:
# 1. Prints the title of the mpd song playing, while scrolling (WORK IN PROGRESS)
# 2. Prints the title of the first open YouTube window, while scrolling (sexy!)
# NOTE: It works if the tab is in focus, so seperate the youtube tab from
# the rest of the browser so you don't have to keep it in focus and the script will work.
# Note: on tint2, set interval=0 and continuous output=2 or larger
# (in general continuous output should be larger than sleep time)
while :
do
# Seach for mpd info, youtube and pandora windows
MPDSTATE="$(mpc | head -2 | tail -1 | awk '{print $1}')"
#NCMPCPP="$(ps cax | grep ncmpcpp)"
YOUTUBE="$(wmctrl -l | grep -v "wmctrl" | grep -m 1 "YouTube")"
PANDORA="$(wmctrl -l | grep -v "wmctrl" | grep -m 1 "Pandora Radio")"
# Grab youtube window title
# Depending on your browser, uncomment the correct INPUT line (and comment the others)
# Vivaldi
if [[ "$MPDSTATE" != "[playing]" ]]; then
# Grab youtube window title
# Depending on your browser, uncomment the correct INPUT line (and comment the others)
# Vivaldi
#INPUT="$(echo $YOUTUBE | awk -v skipstart=3 -v skipend=2 '{delim = ""; for (i=skipstart+1;i<=NF-skipend;i++) {printf delim "%s", $i; delim = OFS};}')"
# Mozilla
INPUT="$(echo $YOUTUBE | awk -v skipstart=3 -v skipend=3 '{delim = ""; for (i=skipstart+1;i<=NF-skipend;i++) {printf delim "%s", $i; delim = OFS};}')"
# Chromium/Mozilla
# INPUT="$(echo $YOUTUBE | awk -v skipstart=3 -v skipend=4 '{delim = ""; for (i=skipstart+1;i<=NF-skipend;i++) {printf delim "%s", $i; delim = OFS};}')"
else
INPUT="$(mpc | head -1)"
fi
# If the song has changed, start from the beginning and send a notification
if [[ "$INPUT" != "$OLD_INPUT" ]]; then
i=1
# Uncomment this to enable notifying every time the song changes
if [ ${#INPUT} -ne "0" ]; then
notify-send "Now playing:" "$INPUT" -i ~/.icons/oomox-wally-flat/actions/scalable/player_play.svg
fi
fi
# Save old input for the next check
OLD_INPUT="$(echo $INPUT)"
# Optional: remove multibyte characters
# (they dont show up properly while scrolling due to "cut -c" being identical to "cut -b")
INPUT="$(echo $INPUT | tr -dc '[:print:]')"
INPUT_LENGTH="$(echo ${#INPUT})"
# If no youtube window is found
#if [ ${#YOUTUBE} -eq "0" ] && [ ${#NCMPCPP} -eq "0" ]; then
if [ ${#YOUTUBE} -eq "0" ] && [[ "$MPDSTATE" != "[playing]" ]]; then
#echo "  "
#echo "  "
#echo "  "
#echo "  "
#echo " "
echo " ·| "
else
if [[ "$MPDSTATE" != "[playing]" ]]; then
echo " ·@ "
#echo "  "
else
echo " ·> "
#echo "  "
fi
fi
# For fat bars/panels, I add this newline so the previous output is not visible
echo ""
sleep 1
done
# general method to exlude fields
# awk -v skipstart=1 -v skipend=1 '{delim = ""; for (i=skipstart+1;i<=NF-skipend;i++) {printf delim "%s", $i; delim = OFS}; printf "\n"}'

View file

@ -1,140 +0,0 @@
#!/bin/bash
# Prints media info from mpd, youtube, pandora
# Priority:
# 1. Prints the title of the mpd song playing, while scrolling (WORK IN PROGRESS)
# 2. Prints the title of the first open YouTube window, while scrolling (sexy!)
# NOTE: It works if the tab is in focus, so seperate the youtube tab from
# the rest of the browser so you don't have to keep it in focus and the script will work.
# 3. Prints "Pandora Radio" if there is a browser window with pandora open (same principle as above)
# Note: on tint2, set interval=0 and continuous output=2 or larger
# (in general continuous output should be larger than sleep time)
# TODO: start from the beginning if the output has changed (if the song has changed)
# Another way
# b=${a:12:5}
# (where 12 is the offset (zero-based) and 5 is the length)
# Limit for scrolling text
LIMIT=26
#SEPERATOR=" --- "
#SEPERATOR=" -- "
#SEPERATOR=" ~~~ "
SEPERATOR=" ~~ "
#SEPERATOR=" <> "
SEPERATOR_LENGTH="$(echo ${#SEPERATOR})"
# for multibyte chars (idk if it works):
# iconv -sc -t UTF-8 -f cp1251
# tr -dc '[:print:]'
i=1
while :
do
# For debugging purposes
# printf "|%02d|" $i
# Seach for ncmpcpp, youtube and pandora windows
MPDSTATE="$(mpc | head -2 | tail -1 | awk '{print $1}')"
#NCMPCPP="$(ps cax | grep ncmpcpp)"
YOUTUBE="$(wmctrl -l | grep -v "wmctrl" | grep -m 1 "YouTube")"
PANDORA="$(wmctrl -l | grep -v "wmctrl" | grep -m 1 "Pandora Radio")"
# Grab youtube window title
# Depending on your browser, uncomment the correct INPUT line (and comment the others)
# Vivaldi
#if [ ${#NCMPCPP} -eq "0" ] && [[ "$MPDSTATE" = "[paused]" ]]; then
if [[ "$MPDSTATE" != "[playing]" ]]; then
# Grab youtube window title
# Depending on your browser, uncomment the correct INPUT line (and comment the others)
# Vivaldi
#INPUT="$(echo $YOUTUBE | awk -v skipstart=3 -v skipend=2 '{delim = ""; for (i=skipstart+1;i<=NF-skipend;i++) {printf delim "%s", $i; delim = OFS};}')"
# Mozilla
INPUT="$(echo $YOUTUBE | awk -v skipstart=3 -v skipend=3 '{delim = ""; for (i=skipstart+1;i<=NF-skipend;i++) {printf delim "%s", $i; delim = OFS};}')"
# Chromium/Mozilla
# INPUT="$(echo $YOUTUBE | awk -v skipstart=3 -v skipend=4 '{delim = ""; for (i=skipstart+1;i<=NF-skipend;i++) {printf delim "%s", $i; delim = OFS};}')"
else
INPUT="$(mpc | head -1)"
fi
# If the song has changed, start from the beginning and send a notification
if [[ "$INPUT" != "$OLD_INPUT" ]]; then
i=1
if [ ${#INPUT} -ne "0" ]; then
notify-send " Now playing:" "$INPUT"
fi
fi
# Save old input for the next check
OLD_INPUT="$(echo $INPUT)"
# Optional: remove multibyte characters
# (they dont show up properly while scrolling due to "cut -c" being identical to "cut -b")
INPUT="$(echo $INPUT | tr -dc '[:print:]')"
INPUT_LENGTH="$(echo ${#INPUT})"
# If no youtube window is found (+pandora)
#if [ ${#YOUTUBE} -eq "0" ] && [ ${#NCMPCPP} -eq "0" ]; then
if [ ${#YOUTUBE} -eq "0" ] && [[ "$MPDSTATE" != "[playing]" ]]; then
if [ ${#PANDORA} -eq "0" ]; then
#echo "  "
#echo "  "
#echo "  "
#echo "  "
echo " "
else
echo "  Pandora Radio"
fi
elif [ $INPUT_LENGTH -le $LIMIT ]; then
# Song has a smaller title than the limit, so no need to scroll.
echo -n "  "
#echo -e -n "$INPUT"
#Justify - left
#SPACES=$(($LIMIT-$INPUT_LENGTH+1+1))
#echo -n "$INPUT" | awk -v spaces=$SPACES '{printf "%s%*.s\n", $0, spaces, " "}'
#Justify - center
SPACES_AFTER=$(($LIMIT-$(((${#INPUT}+$LIMIT)/2))))
printf "%*s\n" $(((${#INPUT}+$LIMIT)/2 + 1)) "$INPUT" | awk -v spaces=$SPACES_AFTER '{printf "%s%*.s\n", $0, spaces, " "}'
else
LOOPTAIL="$(echo $INPUT | cut -c -$LIMIT)"
FULLSTRING="$(echo "$INPUT""$SEPERATOR""$LOOPTAIL")"
#FULLSTRING="$(echo $INPUT | sed "s/$/$SEPERATOR/" | sed "s/$/$LOOPTAIL/" )"
# This is to prevent the bug when song changes and current i is larger than current song length
# (Not needed anymore, this bug was fixed differently)
# if [ $i -gt "${#FULLSTRING}" ]; then
# i=1
# fi
echo -n "  "
# Show only LIMIT characters, from i to i+LIMIT. Output scrolls due to incrementing i
echo -n $FULLSTRING | cut -c $i-$(($LIMIT+$i))
#echo -n $FULLSTRING | awk -v charlimit="$LIMIT" -v start="$i" '{print substr($0,start,charlimit)}'
# If we have shown the full string, start over
if [ $i -eq $(($INPUT_LENGTH+$SEPERATOR_LENGTH)) ]; then
i=0
fi
i=$(($i+1))
fi
# For fat bars/panels, I add this newline so the previous output is not visible
echo ""
sleep 1
done
# general method to exlude fields
# awk -v skipstart=1 -v skipend=1 '{delim = ""; for (i=skipstart+1;i<=NF-skipend;i++) {printf delim "%s", $i; delim = OFS}; printf "\n"}'

View file

@ -1,6 +0,0 @@
# Prints used GPU global memory
# Work in progress
while :
do
nvidia-settings -q all | grep -i "attribute 'useddedi"
done

View file

@ -1,2 +0,0 @@
gksu "prime-select intel"
#lxsession-logout

View file

@ -1,2 +0,0 @@
gksu "prime-select nvidia"
#lxsession-logout

View file

@ -1,11 +0,0 @@
# Icon and percentage
#free -m | awk 'NR==2{printf " %d%%\n", $3*100/$2 }'
# Text and percentage
#free -m | awk 'NR==2{printf "mem %d%%\n", $3*100/$2 }'
# Full
free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%%)\n", $3,$2,$3*100/$2 }'
#  

View file

@ -1 +0,0 @@
xrdb ~/.Xresources

View file

@ -1,16 +0,0 @@
#!/bin/bash
# Screen recording script
# Uses ffmpeg
RECORDINGS_DIR=~/Videos/Rec
SCREEN_RESOLUTION=1366x768
FPS=60
TIMESTAMP="$(date +%Y.%m.%d-%H.%M.%S)"
FILENAME=$RECORDINGS_DIR/$TIMESTAMP.screenrec.mp4
REC_ICON_PATH=~/.icons/oomox-only_icons/categories/scalable/applications-multimedia.svg
notify-send "Screen is being recorded." --urgency low -i $REC_ICON_PATH
ffmpeg -f x11grab -s $SCREEN_RESOLUTION -r $FPS -i :0.0 -vcodec libx264 -preset medium -crf 22 -y $FILENAME
notify-send "Screen recording over." --urgency low -i $REC_ICON_PATH

View file

@ -1,27 +0,0 @@
#!/bin/bash
# Screenshot wrapper
# Uses maim (which uses slop)
# "Friendship ended with scrot. Now maim is my best friend."
SCREENSHOTS_DIR=~/Pictures/Screenshots
TIMESTAMP="$(date +%Y.%m.%d-%H.%M.%S)"
FILENAME=$SCREENSHOTS_DIR/$TIMESTAMP.screenshot.png
PHOTO_ICON_PATH=~/.icons/oomox-only_icons/categories/scalable/applications-photography.svg
# -u option hides cursor
if [[ "$1" = "-s" ]]; then
# Area/window selection.
notify-send 'Select area or window to capture.' --urgency low -i $PHOTO_ICON_PATH
maim -u -s $FILENAME
notify-send "Screenshot taken." --urgency low -i $PHOTO_ICON_PATH
elif [[ "$1" = "-c" ]]; then
# Copy selection to clipboard
maim -u -s | xclip -selection clipboard -t image/png
notify-send "Copied selection to clipboard." --urgency low -i $PHOTO_ICON_PATH
else
# Full screenshot
maim -u $FILENAME
notify-send "Screenshot taken." --urgency low -i $PHOTO_ICON_PATH
fi

View file

@ -1,46 +0,0 @@
# Scrolling text
LIMIT=12
SEPERATOR=" ~~~ "
SEPERATOR_LENGTH="$(echo ${#SEPERATOR})"
i=1
while :
do
# Get input and create the full string that will be used
INPUT="$@"
INPUT_LENGTH="$(echo ${#INPUT})"
LOOPTAIL="$(echo $INPUT | cut -c -$LIMIT)"
FULLSTRING="$(echo "$INPUT$SEPERATOR$LOOPTAIL")"
if [ $INPUT_LENGTH -le $LIMIT ]; then
# Song has a smaller title than the limit, so no need to scroll.
echo -n "  "
#echo -e -n "$INPUT"
#Justify - left
#SPACES=$(($LIMIT-$INPUT_LENGTH+1))
#echo -n "$INPUT" | awk -v spaces=$SPACES '{printf "%s%*.s\n", $0, spaces, " "}'
#Justify - center
SPACES_AFTER=$(($LIMIT-$(((${#INPUT}+$LIMIT)/2))))
printf "%*s\n" $(((${#INPUT}+$LIMIT)/2 + 1)) "$INPUT" | awk -v spaces=$SPACES_AFTER '{printf "%s%*.s\n", $0, spaces, " "}'
else
LOOPTAIL="$(echo $INPUT | cut -c -$LIMIT)"
FULLSTRING="$(echo "$INPUT$SEPERATOR$LOOPTAIL")"
echo -n "  "
# Show only LIMIT characters, from i to i+LIMIT. Output scrolls due to incrementing i
echo -n $FULLSTRING | cut -c $i-$(($LIMIT+$i))
#echo -n $FULLSTRING | awk -v charlimit="$LIMIT" -v start="$i" '{print substr($0,start,charlimit)}'
# If we have shown the full string, start over
if [ $i -eq $(($INPUT_LENGTH+$SEPERATOR_LENGTH)) ]; then
i=0
fi
i=$(($i+1))
fi
sleep 1
done

View file

@ -1,73 +0,0 @@
#!/bin/bash
# Run as follows: ./scrolling_title.sh mystring
# It will look for "mystring" in all active windows and display the window title that includes this string.
# Case sensitive!
# Limit for scrolling text
LIMIT=30
#SEPERATOR=" --- "
#SEPERATOR=" -- "
#SEPERATOR=" ~~~ "
SEPERATOR=" ~~ "
#SEPERATOR=" <> "
SEPERATOR_LENGTH="$(echo ${#SEPERATOR})"
i=1
while :
do
# For debugging purposes
# printf "|%02d|" $i
INPUT="$(wmctrl -l | grep -v "wmctrl" | grep -m 1 $1 | awk -v skipstart=3 -v skipend=0 '{delim = ""; for (i=skipstart+1;i<=NF-skipend;i++) {printf delim "%s", $i; delim = OFS};}')"
# If the output has changed, start from the beginning
if [[ "$INPUT" != "$OLD_INPUT" ]]; then
i=1
fi
# Save old input for the next check
OLD_INPUT="$(echo $INPUT)"
# Optional: remove multibyte characters
# (they dont show up properly while scrolling due to "cut -c" being identical to "cut -b")
INPUT="$(echo $INPUT | tr -dc '[:print:]')"
INPUT_LENGTH="$(echo ${#INPUT})"
if [ $INPUT_LENGTH -le $LIMIT ]; then
# Song has a smaller title than the limit, so no need to scroll.
echo -n "  "
#echo -e -n "$INPUT"
#Justify - left
#SPACES=$(($LIMIT-$INPUT_LENGTH+1))
#echo -n "$INPUT" | awk -v spaces=$SPACES '{printf "%s%*.s\n", $0, spaces, " "}'
#Justify - center
SPACES_AFTER=$(($LIMIT-$(((${#INPUT}+$LIMIT)/2))))
printf "%*s\n" $(((${#INPUT}+$LIMIT)/2 + 1)) "$INPUT" | awk -v spaces=$SPACES_AFTER '{printf "%s%*.s\n", $0, spaces, " "}'
else
LOOPTAIL="$(echo $INPUT | cut -c -$LIMIT)"
FULLSTRING="$(echo "$INPUT$SEPERATOR$LOOPTAIL")"
echo -n "  "
# Show only LIMIT characters, from i to i+LIMIT. Output scrolls due to incrementing i
echo -n $FULLSTRING | cut -c $i-$(($LIMIT+$i))
#echo -n $FULLSTRING | awk -v charlimit="$LIMIT" -v start="$i" '{print substr($0,start,charlimit)}'
# If we have shown the full string, start over
if [ $i -eq $(($INPUT_LENGTH+$SEPERATOR_LENGTH)) ]; then
i=0
fi
i=$(($i+1))
fi
# For fat bars/panels, I add this newline so the previous output is not visible
echo ""
sleep 1
done

View file

@ -1 +0,0 @@
tint2 ~/.config/tint2/trayonly

View file

@ -1,8 +0,0 @@
#
TEMP="$(sensors | grep "Package" | awk '{print $4}' | cut -c 2-3,6-8)"
# With icon
echo "$TEMP"
# Just text
# echo "HEAT $TEMP"

View file

@ -1,3 +0,0 @@
wmctrl -s 2
discord &
#~/Scripts/focus.sh Discord

View file

@ -1,3 +0,0 @@
killall tint2
sleep 1
tint2 &

View file

@ -1,16 +0,0 @@
#!/bin/bash
# Run compton only if it is not already running.
COMPTON="$(ps cax | grep compton)"
if [ ${#COMPTON} -eq "0" ]; then
#echo "compton is not running."
# run compton
# compton -c &
# compton &
compton -c --shadow-exclude "class_g = 'Tint2'" -r 10
# compton -c --shadow-exclude "class_g = 'Tint2'" --shadow-exclude "class_g = 'Dunst'" -r 1 --shadow-red 0.35 --shadow-green 0 -o 1 --shadow-blue 0.4 &
# compton -c --shadow-exclude "class_g = 'Tint2'" -o 0.9 -r 10 -i 0.7 -f --active-opacity 0.9 --blur-background &
# compton -i 0.7 -f --active-opacity 0.9 --blur-background &
# compton --config ~/.config/compton/compton.conf
else
killall compton
fi

View file

@ -1,9 +0,0 @@
#!/bin/bash
VOL="$(pactl list sinks | grep "Volume: " | awk '{print $5}' | head -1)"
MUTE="$(pactl list sinks | grep -i "mute" | head -1 | awk '{print $2}')"
if [[ "$MUTE" != "no" ]]; then
notify-send " Volume is muted"
else
notify-send " Volume is at $VOL"
fi

View file

@ -1,71 +0,0 @@
#!/bin/bash
# For Alsa
#amixer get Master | grep "${snd_cha}" | awk -F'[]%[]' '/%/ {if ($7 == "off") {print "  "} else {printf "%d%% ", $2}}'
#
# For pulse
VOL="$(pactl list sinks | grep "Volume: " | awk '{print $5}' | head -1)"
MUTE="$(pactl list sinks | grep -i "mute" | head -1 | awk '{print $2}')"
if [[ "$MUTE" != "no" ]]; then
# Icon only
echo " off"
# Text only
# echo "VOL OFF"
# Line
# echo "-----------"
else
# Text only
# if [ "${VOL%?}" -ge "10" ]; then
# echo "VOL $VOL"
# else
# echo "VOL $VOL"
# fi
# Line (with siji icons)
# VOL="$(echo ${VOL%?})"
# if [ "$VOL" -ge "100" ]; then
# echo " ----------| "
# elif [ "$VOL" -ge "90" ]; then
# echo " ---------|- "
# elif [ "$VOL" -ge "80" ]; then
# echo " --------|-- "
# elif [ "$VOL" -ge "70" ]; then
# echo " -------|--- "
# elif [ "$VOL" -ge "60" ]; then
# echo " ------|---- "
# elif [ "$VOL" -ge "50" ]; then
# echo " -----|----- "
# elif [ "$VOL" -ge "40" ]; then
# echo " ----|------ "
# elif [ "$VOL" -ge "30" ]; then
# echo " ---|------- "
# elif [ "$VOL" -ge "20" ]; then
# echo " --|-------- "
# elif [ "$VOL" -ge "10" ]; then
# echo " -|--------- "
# else
# echo " |---------- "
# fi
# Icon only (simple)
if [ "${VOL%?}" -ge "10" ]; then
echo "$VOL"
else
echo "$VOL"
fi
#Icon only (gradual)
# VOL="$(echo ${VOL%?})"
# if [ "$VOL" -ge "60" ]; then
# echo " $VOL%"
# elif [ "$VOL" -ge "20" ]; then
# echo " $VOL%"
# else
# echo " $VOL%"
# fi
fi

View file

@ -1,13 +0,0 @@
#!/bin/bash
# Write PID to that file so other processes can send signals to me
echo $$ > /tmp/volume_pid
while : # This is the same as "while true".
do
# I do this when I wake up
~/Scripts/volume.sh
# Then I go back to sleep
sleep 1d
#echo "woke up!"
done

View file

@ -1,4 +0,0 @@
#!/bin/bash
VOLUME_PID="$(cat /tmp/volume_pid)"
pkill -P $VOLUME_PID sleep

View file

@ -1,9 +0,0 @@
# Replace with your own interface name here
VPN_IF="tap"
VPN="$(ifconfig -a | grep $VPN_IF)"
if [ ${#VPN} -eq "0" ]; then
notify-send "VPN status:" "Disabled" --icon=dialog-information
else
notify-send "VPN status:" "Enabled" --icon=dialog-information
fi

View file

@ -1,14 +0,0 @@
# Replace with your own interface name here
VPN_IF="tap"
VPN="$(ifconfig -a | grep $VPN_IF)"
if [ ${#VPN} -eq "0" ]; then
#echo "vpn off"
# echo "VPN N"
# echo "vpn "
echo "vpn "
else
# echo "vpn "
echo "vpn "
# echo "VPN Y"
fi

View file

@ -1,108 +0,0 @@
#!/bin/bash
# Requires wal or pywal (github)
# Run like this
# wally /path/to/wallpaper/or/directory
# examples:
# wally ~/Pictures/Wallpapers
# wally .
# wally ~/Pictures/Wallpapers/pape.jpg
# wally -f ~/path/to/color/file ~/path/to/wallpaper
# Arguments checking
if [ $# == 0 ]; then
echo "> No path to wallpaper or directory specified :("
exit 0;
fi
if [[ "$1" = "-c" ]]; then
echo "> Cleaning backups and exiting."
rm -rf ~/.wally/wally_backup-*
exit 0;
fi
# Create backup of linked files
echo "> Backing up linked files"
TIMESTAMP="$(date +%F-%H:%M:%S)"
cp -r -L ~/.wally/links ~/.wally/wally_backup-$TIMESTAMP
cp ~/.wally/path_to_wallpaper ~/.wally/wally_backup-$TIMESTAMP
# TODO!
# To restore backups "cp -L desired_backup_dir/* ~/.wally/links"
# And then "wally wallpaper_of_backed_up_dir"
# Declare arrays
declare -a color
declare -a XCOLOR_OLD
declare -a XCOLOR_NEW
# Grab old Xresources colors
for (( i = 0; i < 8; i++ )); do
color[$i]="$(echo color$i)"
XCOLOR_OLD[$i]="$(cat ~/.Xresources | grep -m 1 ${color[$i]} | awk '{print $2}')"
done
# Call wal to generate new colors
if [[ "$1" = "-f" ]]; then
COLORS_PATH=$2
echo "> Applying custom terminal colorscheme from $COLORS_PATH..."
wal -f $COLORS_PATH
PAPE_PATH=$3
echo "> Setting $PAPE_PATH as wallpaper..."
feh --bg-fill $3
else
ARG=$1
echo "> Calling wal at $ARG... toot toot..."
wal -i $ARG
feh --bg-fill $ARG
echo "> New colorscheme generated!"
fi
# Apply new colors to Xresources
echo "> Setting .Xresources..."
cp ~/.wally/Xresources-clean ~/.wally/Xresources-new
cat ~/.cache/wal/colors.xresources >> ~/.wally/Xresources-new
cp ~/.wally/Xresources-new ~/.Xresources
reloadXr
echo "> New .Xresources set!"
# Grab new Xresources colors
for (( i = 0; i < 8; i++ )); do
XCOLOR_NEW[$i]="$(cat ~/.Xresources | grep -m 1 ${color[$i]} | awk '{print $2}')"
done
# Replace colors to all linked files in wally's folder
for (( i = 0; i < 8; i++ )); do
sed -i --follow-symlinks "s@${XCOLOR_OLD[$i]}@${XCOLOR_NEW[$i]}@gI" ~/.wally/links/*
done
# Restart tint2 to reload config file
tint2restart
echo "> tint2 has restarted!"
# Reconfigure openbox to reload theme
# Template: ~/.local/share/themes/thebox/openbox-3/themerc
openbox --reconfigure
echo "> Openbox is reconfigured!"
# Restarting dunst so it reloads config file
dunst_restart
# Create steam theme
python3 ~/Programs/wal_steam/mywalsteam.py -w
echo "> Generated steam theme!"
# Copy new wallpaper path to wally's directory
if [[ "$1" = "-f" ]]; then
CUSTOMPAPEPATH="$(readlink -f $3)"
echo $CUSTOMPAPEPATH > ~/.wally/path_to_wallpaper
else
cp ~/.cache/wal/wal ~/.wally/path_to_wallpaper
fi
WALLPAPER="$(cat ~/.wally/path_to_wallpaper)"
# Display new colors with a color script
# (other good scripts: spectrum, colortest)
~/Scripts/Color/colortest
echo "> Current wallpaper: $WALLPAPER"
echo "> All done :)"

View file

@ -1,23 +0,0 @@
# Opens oomox to let you create your gtk theme
echo "> Opening oomox-gui so you can create your gtk theme. "
echo "> Name of the theme should be 'wally'. Close oomox when you have exported the theme."
oomox-gui
# Copies the gtk theme created by oomox to /usr/share/icons
# so that it can be used by lightdm greeter
echo -n "> Replacing gtk theme and icons... "
rm -rf /usr/share/themes/wally
rm -rf /usr/share/icons/wally
cp -r ~/.themes/oomox-wally /usr/share/themes/wally
cp -r ~/.icons/oomox-wally-flat /usr/share/icons/wally
echo "Done!"
# Requires that you have setup your lightdm to have ~/.wally/login as wallpaper
echo -n "> Setting login wallpaper... "
PAPE="$(cat ~/.wally/path_to_wallpaper)"
cp $PAPE ~/.wally/login
echo "Done!"
# echo "> Starting lightdm-gtk-greeter-settings..."
# lightdm-gtk-greeter-settings
# Create firefox icon
# cp ~/.icons/oomox-wally-flat/apps/scalable/browser.svg ~/.icons/oomox-wally-flat/apps/scalable/firefox.svg
echo "> All done :)"

View file

@ -1,63 +0,0 @@
#!/bin/bash
# needs work
CITY="Moscow"
# glyphs (TODO)
#  day cloud
#  storm
#  night cloud
#  rain
# umbrella 
#  snow 
#  sun
#  cloud
#  moon  star ⏾ another moon
#   house
#  globe
#  bed
# curl -4 http://wttr.in/@$(curl -s 'https://api.ipify.org?format=plaintext')
TEMP="$(curl -s -A "Mozilla/5.0" wttr.in/$CITY | grep -m 1 '°C'| awk '{print $(NF-1)}' | cut -d ">" -f2 | cut -f1 -d "<")"
# NOTE: Currently weather state disabled (not fully implemented). Uncomment to reenable
# STATE="$(curl -s -A "Mozilla/5.0" wttr.in/$CITY | grep -m 1 -B 1 '°C' | sed '$d' | awk '{printf "%s %s", $(NF-1), $NF}')"
# PRELAST="$(echo $STATE | awk '{print $1}')"
# HOUR="$(date +%H)"
# # Check if state is only one word
# if [[ "$PRELAST" = "</span>" ]]; then
# STATE="$(echo $STATE | awk '{print $2}')"
# fi
# if [[ "$STATE" = "Clear" ]]; then
# if [ $HOUR -lt 20 ] && [ $HOUR -gt $5 ]; then
# echo " $TEMP°C"
# else
# echo " $TEMP°C"
# fi
# elif [[ "$STATE" = "Partly cloudy" ]]; then
# if [ $HOUR -lt 20 ] && [ $HOUR -gt 5 ]; then
# echo " $TEMP°C"
# else
# echo " $TEMP°C"
# fi
# elif [[ "$STATE" = "Cloudy" ]]; then
# echo " $TEMP°C"
# elif [[ "$STATE" = "Sunny" ]]; then
# echo " $TEMP°C"
# else
# echo " $TEMP°C"
# fi
# City+degrees
echo " $CITY $TEMP°C"
# Degrees only
#echo "$TEMP°C"
# Leaf + degrees
#echo "  $TEMP°C"

View file

@ -1,93 +0,0 @@
! Cursor theme
xcursor.theme: Vanilla-DMZ
! URxvt config
URxvt*termName: rxvt-unicode
URxvt.scrollBar: off
!URxvt.font: xft:Hurmit Nerd Font:size=9:antialias=true:hinting=true:autohint=true
!URxvt.font: xft:mononoki Nerd Font:size=10:antialias=true
URxvt.font: xft:Iosevka Nerd Font:size=9:antialias=true
URxvt.letterSpace: 1
URxvt.internalBorder: 8
URxvt.geometry: 80x20
URxvt*selectToClipboard: true
URxvt*saveLines: 10000
URxvt.perl-ext-common: default,matcher,tabbedex,searchable-scrollback
URxvt.urlLauncher: /usr/bin/chromium
URxvt.matcher.button: 1
URxvt.tabbed.tabbar-fg: 8
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-fg: 2
URxvt.tabbed.tab-bg: 0
URxvt.tabbed.new-button: no
URxvt.tabbed.title: no
! For Transparency
urxvt*depth: 32
!urxvt*background: rgba:0200/1000/1700/c700
!URxvt*background: #050509
!urxvt*background: rgba:0500/0500/0900/e00f
!urxvt*background: rgba:0100/0000/0B00/e00f
!urxvt*background: rgba:0000/0000/0b00/f00f
!urxvt*background: rgba:0200/0000/0a00/ffff
! xscreensaver
xscreensaver.fade: false
xscreensaver.unfade: false
rofi.font: Hurmit Nerd Font Bold 11
rofi.bw: 2
rofi.width: 50
rofi.lines: 10
rofi.scroll-method: 1
!!! COLORS UNDER HERE !!!
URxvt*foreground: #DEEEAD
XTerm*foreground: #DEEEAD
URxvt*background: #01171C
XTerm*background: #01171C
URxvt*cursorColor: #DEEEAD
XTerm*cursorColor: #01171C
*color0: #01171C
*.color0: #01171C
*color1: #0A5E44
*.color1: #0A5E44
*color2: #374644
*.color2: #374644
*color3: #4E534B
*.color3: #4E534B
*color4: #6A6555
*.color4: #6A6555
*color5: #956449
*.color5: #956449
*color6: #A59069
*.color6: #A59069
*color7: #DEEEAD
*.color7: #DEEEAD
*color8: #666666
*.color8: #666666
*color9: #0A5E44
*.color9: #0A5E44
*color10: #374644
*.color10: #374644
*color11: #4E534B
*.color11: #4E534B
*color12: #6A6555
*.color12: #6A6555
*color13: #956449
*.color13: #956449
*color14: #A59069
*.color14: #A59069
*color15: #DEEEAD
*.color15: #DEEEAD
*color66: #01171C
rofi.color-window: argb:FF01171C, #01171C, #374644
rofi.color-normal: argb:FF01171C, #DEEEAD, #01171C, #374644, #01171C
rofi.color-active: argb:FF01171C, #DEEEAD, #01171C, #374644, #01171C
rofi.color-urgent: argb:FF01171C, #0A5E44, #01171C, #0A5E44, #DEEEAD
emacs*background: #01171C
emacs*foreground: #DEEEAD

View file

@ -1,121 +0,0 @@
! ██╗░░██╗██████╗░███████╗███████╗░██████╗░██╗░░░██╗██████╗░░██████╗███████╗███████╗
! ╚██╗██╔╝██╔══██╗██╔════╝██╔════╝██╔═══██╗██║░░░██║██╔══██╗██╔════╝██╔════╝██╔════╝
! ░╚███╔╝░██████╔╝█████╗░░███████╗██║░░░██║██║░░░██║██████╔╝██║░░░░░█████╗░░███████╗
! ░██╔██╗░██╔══██╗██╔══╝░░╚════██║██║░░░██║██║░░░██║██╔══██╗██║░░░░░██╔══╝░░╚════██║
! ██╔╝░██╗██║░░██║███████╗███████║╚██████╔╝╚██████╔╝██║░░██║╚██████╗███████╗███████║
! ╚═╝░░╚═╝╚═╝░░╚═╝╚══════╝╚══════╝░╚═════╝░░╚═════╝░╚═╝░░╚═╝░╚═════╝╚══════╝╚══════╝
!
! █▓▒░ lalala
!
! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
! Font antialiasing
!Xft.antialias: 1
!Xft.autohint: 0
!Xft.hinting: 0
! DPI
Xft.dpi: 102
!Xft.dpi: 96
! Cursor theme
xcursor.theme: Vanilla-DMZ
! ===========================
! Requires xst (st fork -> see github)
! st config
st.termname: st
st.borderpx: 18
! Kerning / character bounding-box height multiplier
st.chscale: 1.0
! Kerning / character bounding-box width multiplier
st.cwscale: 0.9
! st font
st.font: mononoki Nerd Font:size=12:antialias=true:hinting=true:autohint=true
!st.font: Iosevka Nerd Font:size=11:antialias=true:hinting=true:autohint=true
!st.font: Terminus:size=10:antialias=false
! allow bold font
st.bold_font: 1
st.xfps: 60
st.actionfps: 60
! ===========================
! URxvt config
URxvt*termName: rxvt-unicode
URxvt*iconFile: /home/elena/.icons/oomox-wally-flat/apps/scalable/xfce4-workspaces.svg
URxvt.scrollBar: off
! Copy-Paste
!URxvt.keysym.Shift-Control-V: eval:paste_clipboard
!URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard
!URxvt.font: xft:FuraCode Nerd Font:size=9:antialias=true:hinting=true:autohint=true:bold
URxvt.font: xft:Iosevka Nerd Font:size=10:antialias=true:hinting=true:autohint=true:bold
!URxvt.font: xft:terminus:size=12:antialias=false
!URxvt.boldFont: xft:terminus:size=12:antialias=false
!URxvt.font: xft:tewi:size=8:antialias=false
!URxvt.boldFont: xft:tewi:size=8:antialias=false
!URxvt.font: xft:pxplus ibm vga8:size=11:antialias=false
!URxvt.boldFont: xft:pxplus ibm vga8:size=11:antialias=false
URxvt.letterSpace: 0
URxvt.internalBorder: 22
URxvt.geometry: 80x18
URxvt*selectToClipboard: true
URxvt*saveLines: 10000
URxvt.perl-ext-common: default,matcher,tabbedex,searchable-scrollback
URxvt.urlLauncher: /usr/bin/firefox
URxvt.matcher.button: 1
URxvt.tabbed.tabbar-fg: 8
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-fg: 2
URxvt.tabbed.tab-bg: 0
URxvt.tabbed.new-button: no
URxvt.tabbed.title: no
! For Transparency
urxvt*depth: 32
!urxvt*background: rgba:0200/1000/1700/c700
!URxvt*background: #050509
!urxvt*background: rgba:0500/0500/0900/e00f
!urxvt*background: rgba:0100/0000/0B00/e00f
!urxvt*background: rgba:0000/0000/0b00/f00f
!urxvt*background: rgba:0200/0000/0a00/ffff
! xscreensaver
xscreensaver.fade: false
xscreensaver.unfade: false
rofi.bw: 0
rofi.width: 50
rofi.lines: 10
rofi.scroll-method: 1
rofi.hide-scrollbar: true
! Separator style (none, dash, solid)
rofi.separator-style: none
*background: #F8F8F8
*foreground: #737373
*cursorColor: #737373
*color0: #F8F8F8
*color1: #B5407B
*color2: #7BB540
*color3: #B57B40
*color4: #407BB5
*color5: #7B40B5
*color6: #40B57B
*color7: #737373
*color8: #A6A6A6
*color9: #CD73A0
*color10: #A0CD73
*color11: #CDA073
*color12: #73A0CD
*color13: #A073CD
*color14: #73CDA0
*color15: #737373
rofi.color-window: #F8F8F8, #B5407B, #407BB5
rofi.color-normal: #F8F8F8, #737373, #F8F8F8, #407BB5, #F8F8F8
rofi.color-active: #F8F8F8, #737373, #F8F8F8, #407BB5, #F8F8F8
rofi.color-urgent: #F8F8F8, #B5407B, #F8F8F8, #B5407B, #737373

View file

@ -1,103 +0,0 @@
! Font antialiasing
Xft.antialias: 1
! Cursor theme
xcursor.theme: Vanilla-DMZ
! URxvt config
URxvt*termName: rxvt-unicode
URxvt*iconFile: /home/elena/.icons/oomox-wally-flat/apps/scalable/xfce4-workspaces.svg
URxvt.scrollBar: off
!URxvt.font: xft:Hurmit Nerd Font:size=9:antialias=true:hinting=true:autohint=true
!URxvt.font: xft:mononoki Nerd Font:size=10:antialias=true
!URxvt.font: xft:proggycleanttce Nerd Font:size=11:antialias=false
!URxvt.boldFont: xft:proggycleanttce Nerd Font:size=11:antialias=false
!URxvt.font: xft:tewi:size=8:antialias=false
!URxvt.boldFont: xft:tewi:size=8:antialias=false
URxvt.font: xft:pxplus ibm vga8:size=11:antialias=false
URxvt.boldFont: xft:pxplus ibm vga8:size=11:antialias=false
URxvt.letterSpace: 0
URxvt.internalBorder: 8
URxvt.geometry: 80x21
URxvt*selectToClipboard: true
URxvt*saveLines: 10000
URxvt.perl-ext-common: default,matcher,tabbedex,searchable-scrollback
URxvt.urlLauncher: /usr/bin/chromium
URxvt.matcher.button: 1
URxvt.tabbed.tabbar-fg: 8
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-fg: 2
URxvt.tabbed.tab-bg: 0
URxvt.tabbed.new-button: no
URxvt.tabbed.title: no
! For Transparency
urxvt*depth: 32
!urxvt*background: rgba:0200/1000/1700/c700
!URxvt*background: #050509
!urxvt*background: rgba:0500/0500/0900/e00f
!urxvt*background: rgba:0100/0000/0B00/e00f
!urxvt*background: rgba:0000/0000/0b00/f00f
!urxvt*background: rgba:0200/0000/0a00/ffff
! xscreensaver
xscreensaver.fade: false
xscreensaver.unfade: false
rofi.bw: 4
rofi.width: 50
rofi.lines: 10
rofi.scroll-method: 1
!!! COLORS UNDER HERE !!!
URxvt*foreground: #AAAAAA
XTerm*foreground: #AAAAAA
URxvt*background: #050505
XTerm*background: #050505
URxvt*cursorColor: #AAAAAA
XTerm*cursorColor: #050505
*color0: #050505
*.color0: #050505
*color1: #AA0000
*.color1: #AA0000
*color2: #00AA00
*.color2: #00AA00
*color3: #FFFF55
*.color3: #FFFF55
*color4: #0000AA
*.color4: #0000AA
*color5: #AA00AA
*.color5: #AA00AA
*color6: #00AAAA
*.color6: #00AAAA
*color7: #AAAAAA
*.color7: #AAAAAA
*color8: #666666
*.color8: #666666
*color9: #AA0000
*.color9: #AA0000
*color10: #00AA00
*.color10: #00AA00
*color11: #FFFF55
*.color11: #FFFF55
*color12: #0000AA
*.color12: #0000AA
*color13: #AA00AA
*.color13: #AA00AA
*color14: #00AAAA
*.color14: #00AAAA
*color15: #AAAAAA
*.color15: #AAAAAA
*color66: #050505
rofi.color-window: argb:FF050505, #050505, #00AA00
rofi.color-normal: argb:FF050505, #AAAAAA, #050505, #00AA00, #050505
rofi.color-active: argb:FF050505, #AAAAAA, #050505, #00AA00, #050505
rofi.color-urgent: argb:FF050505, #AA0000, #050505, #AA0000, #AAAAAA
emacs*background: #050505
emacs*foreground: #AAAAAA

View file

@ -1,107 +0,0 @@
! Font antialiasing
Xft.antialias: 1
!Xft.autohint: 0
!Xft.hinting: 0
! Cursor theme
xcursor.theme: Vanilla-DMZ
! URxvt config
URxvt*termName: rxvt-unicode
URxvt*iconFile: /home/elena/.icons/oomox-wally-flat/apps/scalable/xfce4-workspaces.svg
URxvt.scrollBar: off
URxvt.font: xft:Iosevka Nerd Font:size=9:antialias=true:hinting=true:autohint=true:bold
!URxvt.font: xft:mononoki Nerd Font:size=10:antialias=true
!URxvt.font: xft:proggycleanttce Nerd Font:size=11:antialias=false
!URxvt.boldFont: xft:proggycleanttce Nerd Font:size=11:antialias=false
!URxvt.font: xft:Iosevka Nerd Font:size=9:antialias=true:hinting=true:autohint=true
!URxvt.font: xft:tewi:size=8:antialias=false
!URxvt.boldFont: xft:tewi:size=8:antialias=false
!URxvt.font: xft:pxplus ibm ega8:size=11:antialias=false
!URxvt.boldFont: xft:pxplus ibm ega8:size=11:antialias=false
URxvt.letterSpace: 0
URxvt.internalBorder: 8
URxvt.geometry: 80x18
URxvt*selectToClipboard: true
URxvt*saveLines: 10000
URxvt.perl-ext-common: default,matcher,tabbedex,searchable-scrollback
URxvt.urlLauncher: /usr/bin/chromium
URxvt.matcher.button: 1
URxvt.tabbed.tabbar-fg: 8
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-fg: 2
URxvt.tabbed.tab-bg: 0
URxvt.tabbed.new-button: no
URxvt.tabbed.title: no
! For Transparency
urxvt*depth: 32
!urxvt*background: rgba:0200/1000/1700/c700
!URxvt*background: #050509
!urxvt*background: rgba:0500/0500/0900/e00f
!urxvt*background: rgba:0100/0000/0B00/e00f
!urxvt*background: rgba:0000/0000/0b00/f00f
!urxvt*background: rgba:0200/0000/0a00/ffff
! xscreensaver
xscreensaver.fade: false
xscreensaver.unfade: false
rofi.bw: 4
rofi.width: 50
rofi.lines: 10
rofi.scroll-method: 1
!!! COLORS UNDER HERE !!!
URxvt*foreground: #F2EEAF
XTerm*foreground: #F2EEAF
URxvt*background: #0C0310
XTerm*background: #0C0310
URxvt*cursorColor: #F2EEAF
XTerm*cursorColor: #0C0310
*color0: #0C0310
*.color0: #0C0310
*color1: #B1393A
*.color1: #B1393A
*color2: #911558
*.color2: #911558
*color3: #325256
*.color3: #325256
*color4: #252790
*.color4: #252790
*color5: #E46A4D
*.color5: #E46A4D
*color6: #461E8A
*.color6: #461E8A
*color7: #F2EEAF
*.color7: #F2EEAF
*color8: #666666
*.color8: #666666
*color9: #B1393A
*.color9: #B1393A
*color10: #911558
*.color10: #911558
*color11: #325256
*.color11: #325256
*color12: #252790
*.color12: #252790
*color13: #E46A4D
*.color13: #E46A4D
*color14: #461E8A
*.color14: #461E8A
*color15: #F2EEAF
*.color15: #F2EEAF
*color66: #0C0310
rofi.color-window: argb:FF0C0310, #0C0310, #911558
rofi.color-normal: argb:FF0C0310, #F2EEAF, #0C0310, #911558, #0C0310
rofi.color-active: argb:FF0C0310, #F2EEAF, #0C0310, #911558, #0C0310
rofi.color-urgent: argb:FF0C0310, #B1393A, #0C0310, #B1393A, #F2EEAF
emacs*background: #0C0310
emacs*foreground: #F2EEAF

View file

@ -1,26 +0,0 @@
#!/usr/bin/env bash
function run {
if ! pgrep $1 ;
then
$@&
fi
}
# Load terminal colorscheme and settings
xrdb ~/.Xresources
# For desktop effects
run compton --config ~/.config/compton/config
# Enable numlock on login
run numlockx
# For battery notifications
run xfce4-power-manager
# Keyboard
setxkbmap -layout "us,gr,ru" -option "grp:alt_shift_toggle"
# Music
mpd ~/.config/mpd/mpd.conf

View file

@ -1,880 +0,0 @@
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = require("naughty")
local menubar = require("menubar")
local hotkeys_popup = require("awful.hotkeys_popup").widget
-- Enable hotkeys help widget for VIM and other apps
-- when client with a matching name is opened:
require("awful.hotkeys_popup.keys")
-- TODO: Tidy up this place. God, it's a mess...
-- {{{ Third party stuff
-- None for now
-- }}}
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config)
if awesome.startup_errors then
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, there were errors during startup!",
text = awesome.startup_errors })
end
-- Handle runtime errors after startup
do
local in_error = false
awesome.connect_signal("debug::error", function (err)
-- Make sure we don't go into an endless error loop
if in_error then return end
in_error = true
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, an error happened!",
text = tostring(err) })
in_error = false
end)
end
-- }}}
-- {{{ Variable definitions
-- Themes define colours, icons, font and wallpapers.
local theme_name = "reasons"
local theme_dir = os.getenv("HOME") .. "/.config/awesome/themes/"
beautiful.init( theme_dir .. theme_name .. "/theme.lua" )
--beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")
-- This is used later as the default terminal and editor to run.
terminal = "st"
tmux = terminal .. " -e tmux new "
floating_tmux = terminal .. " -c st_floating -e tmux new "
editor = "vim"
--editor = os.getenv("EDITOR") or "nano"
editor_cmd = terminal .. " -e " .. editor
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod4"
altkey = "Mod1"
-- Table of layouts to cover with awful.layout.inc, order matters.
awful.layout.layouts = {
awful.layout.suit.tile,
awful.layout.suit.floating,
awful.layout.suit.max,
--awful.layout.suit.spiral,
awful.layout.suit.spiral.dwindle,
awful.layout.suit.tile.top,
awful.layout.suit.fair,
--awful.layout.suit.fair.horizontal,
--awful.layout.suit.tile.left,
--awful.layout.suit.tile.bottom,
--awful.layout.suit.max.fullscreen,
awful.layout.suit.corner.nw,
awful.layout.suit.magnifier,
-- awful.layout.suit.corner.ne,
-- awful.layout.suit.corner.sw,
-- awful.layout.suit.corner.se,
}
-- }}}
-- {{{ Helper functions
local function client_menu_toggle_fn()
local instance = nil
return function ()
if instance and instance.wibox.visible then
instance:hide()
instance = nil
else
instance = awful.menu.clients({ theme = { width = 250 } })
end
end
end
-- }}}
-- {{{ Menu
-- Create a launcher widget and a main menu
myawesomemenu = {
{ "Hotkeys", function() return false, hotkeys_popup.show_help end},
{ "Manual", terminal .. " -e man awesome" },
{ "Edit config", editor_cmd .. " " .. awesome.conffile },
{ "Restart", awesome.restart },
{ "Quit", function() awesome.quit() end}
}
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
{ "open terminal", tmux }
}
})
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
menu = mymainmenu })
-- Menubar configuration
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
-- }}}
-- Keyboard map indicator and switcher
mykeyboardlayout = awful.widget.keyboardlayout()
-- {{{ Wibar
-- Create a textclock widget that shows date
mytextdate = wibox.widget.textclock(beautiful.date_prefix .. beautiful.date_format)
-- Create a textclock widget
mytextclock = wibox.widget.textclock(beautiful.clock_prefix .. beautiful.clock_format)
-- Create keyboard layout prefix
keyboardlayout_prefix = wibox.widget.textbox("")
-- Create item seperator
mytextseperator = wibox.widget.textbox()
mytextseperator.text = beautiful.seperator_text
-- Create focus indicator
-- Useful when titles are disabled
myfocusindicator = wibox.widget.textbox()
myfocusindicator.text = beautiful.focus_indicator
-- Create padding
pad = wibox.widget.textbox(" ")
-- Create a wibox for each screen and add it
local taglist_buttons = gears.table.join(
awful.button({ }, 1, function(t) t:view_only() end),
awful.button({ modkey }, 1, function(t)
if client.focus then
client.focus:move_to_tag(t)
end
end),
awful.button({ }, 3, awful.tag.viewtoggle),
awful.button({ modkey }, 3, function(t)
if client.focus then
client.focus:toggle_tag(t)
end
end),
awful.button({ }, 4, function(t) awful.tag.viewprev(t.screen) end),
awful.button({ }, 5, function(t) awful.tag.viewnext(t.screen) end)
)
local tasklist_buttons = gears.table.join(
awful.button({ }, 1,
function (c)
if c == client.focus then
c.minimized = true
else
-- Without this, the following
-- :isvisible() makes no sense
c.minimized = false
if not c:isvisible() and c.first_tag then
c.first_tag:view_only()
end
-- This will also un-minimize
-- the client, if needed
client.focus = c
c:raise()
end
end),
-- Middle mouse button closes the window
awful.button({ }, 2, function (c) c:kill() end),
awful.button({ }, 3, client_menu_toggle_fn()),
awful.button({ }, 4, function ()
awful.client.focus.byidx(-1)
end),
awful.button({ }, 5, function ()
awful.client.focus.byidx(1)
end))
-- Writes a string representation of the current layout in a textbox widget
function updatelayoutbox(l, s)
local screen = s or 1
l.text = beautiful["layout_txt_" .. awful.layout.getname(awful.layout.get(screen))]
end
local function set_wallpaper(s)
-- Wallpaper
if beautiful.wallpaper then
local wallpaper = beautiful.wallpaper
-- If wallpaper is a function, call it with the screen
if type(wallpaper) == "function" then
wallpaper = wallpaper(s)
end
-- Built in method to set wallpaper
--gears.wallpaper.maximized(wallpaper, s, true)
-- Set theme's wallpaper with feh
awful.spawn.with_shell("feh --bg-scale " .. wallpaper)
-- Set last wallpaper
--awful.spawn.with_shell(os.getenv("HOME") .. ".fehbg")
end
end
-- Create rounded rectangle shape
local rrect = function(radius)
return function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, radius)
end
end
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
screen.connect_signal("property::geometry", set_wallpaper)
awful.screen.connect_for_each_screen(function(s)
-- Wallpaper
set_wallpaper(s)
-- Layouts
-- Each screen has its own tag table.
local names={"", "", "", "", "", "", "", "", ""}
--local names={"  ", "  ", "  ", "  ", "  ", "  ", "  ", "  ", "  "}
--local names = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }
local l = awful.layout.suit -- Alias to save time :)
local layouts = { l.max, l.tile, l.tile, l.tile , l.fair,
l.tile, l.tile, l.tile, l.tile}
awful.tag(names, s, layouts)
-- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt({prompt = " Run: ", fg = beautiful.accent})
-- Create a textbox widget which will contain a short string representing
-- the layout we're using. We need one layoutbox per screen.
s.mytextlayoutbox = wibox.widget.textbox()
s.mytextlayoutbox.font = beautiful.layoutbox_font
s.mytextlayoutbox.forced_width = beautiful.layoutbox_forced_width
s.mytextlayoutbox.align = beautiful.layoutbox_align
--s.mytextlayoutbox.valign = "center"
s.mytextlayoutbox.text = beautiful["layout_txt_" .. awful.layout.getname(awful.layout.get(s))]
awful.tag.attached_connect_signal(s, "property::selected", function ()
updatelayoutbox(s.mytextlayoutbox, s)
end)
awful.tag.attached_connect_signal(s, "property::layout", function ()
updatelayoutbox(s.mytextlayoutbox, s)
end)
-- Create an imagebox widget which will contain an icon indicating which layout we're using.
-- We need one layoutbox per screen.
s.mylayoutbox = awful.widget.layoutbox(s)
s.mylayoutbox:buttons(gears.table.join(
awful.button({ }, 1, function () awful.layout.inc( 1) end),
awful.button({ }, 3, function () awful.layout.inc(-1) end),
awful.button({ }, 4, function () awful.layout.inc( 1) end),
awful.button({ }, 5, function () awful.layout.inc(-1) end)))
-- Text layoutbox buttons
s.mytextlayoutbox:buttons(gears.table.join(
awful.button({ }, 1, function () awful.layout.inc( 1) end),
awful.button({ }, 3, function () awful.layout.inc(-1) end),
awful.button({ }, 4, function () awful.layout.inc( 1) end),
awful.button({ }, 5, function () awful.layout.inc(-1) end)))
-- Create a taglist widget
s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, taglist_buttons)
-- Create a tasklist widget
-- Show all clients
--s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, tasklist_buttons)
-- Show only focused client
--s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.focused, tasklist_buttons)
-- Show only minimized clients
s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.minimizedcurrenttags, tasklist_buttons)
-- Create the wibox
s.mywibox = awful.wibar({ position = beautiful.wibar_position, screen = s, width = beautiful.wibar_width, height = beautiful.wibar_height, shape = rrect(beautiful.border_radius)})
if beautiful.wibar_detached then
-- Resize the screen so that it seems like the wibar is detached
-- from the edge (by using theme's useless_gap setting)
local screen_width = s.geometry.width
local screen_height = s.geometry.height
if s.mywibox.position == "bottom" then
s:fake_resize(0, 0, screen_width, screen_height - beautiful.useless_gap * 2)
elseif s.mywibox.position == "top" then
s:fake_resize(0, beautiful.useless_gap * 2, screen_width, screen_height - beautiful.useless_gap * 2)
end
end
--s.mywibox = awful.wibar({ position = "top", screen = s })
-- Panel items
-- Add widgets to the wibox
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
{ -- Left widgets
layout = wibox.layout.fixed.horizontal,
--s.mylayoutbox,
--mylauncher,
s.mytaglist
},
{ -- Middle widgets
layout = wibox.layout.fixed.horizontal,
s.mytasklist,
s.mypromptbox
},
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
-- TODO: battery widget
-- TODO: cpu widget
-- TODO: ram widget
keyboardlayout_prefix,
mykeyboardlayout,
mytextdateprefix,
mytextdate,
pad,
mytextclock,
wibox.widget.systray(),
s.mytextlayoutbox
},
}
end)
-- }}}
-- {{{ Mouse bindings
root.buttons(gears.table.join(
--awful.button({ }, 3, function () mymainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewprev),
awful.button({ }, 5, awful.tag.viewnext)
))
-- }}}
-- {{{ Key bindings
globalkeys = gears.table.join(
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
{description="show help", group="awesome"}),
--awful.key({ modkey, }, "Left", awful.tag.viewprev,
--{description = "view previous", group = "tag"}),
--awful.key({ modkey, }, "Right", awful.tag.viewnext,
--{description = "view next", group = "tag"}),
-- Focus client by direction
awful.key({ modkey }, "Down",
function()
awful.client.focus.global_bydirection("down")
if client.focus then client.focus:raise() end
end,
{description = "focus down", group = "client"}),
awful.key({ modkey }, "Up",
function()
awful.client.focus.global_bydirection("up")
if client.focus then client.focus:raise() end
end,
{description = "focus up", group = "client"}),
awful.key({ modkey }, "Left",
function()
awful.client.focus.global_bydirection("left")
if client.focus then client.focus:raise() end
end,
{description = "focus left", group = "client"}),
awful.key({ modkey }, "Right",
function()
awful.client.focus.global_bydirection("right")
if client.focus then client.focus:raise() end
end,
{description = "focus right", group = "client"}),
awful.key({ modkey, altkey }, "j",
function()
awful.client.focus.global_bydirection("down")
if client.focus then client.focus:raise() end
end,
{description = "focus down", group = "client"}),
awful.key({ modkey, altkey }, "k",
function()
awful.client.focus.global_bydirection("up")
if client.focus then client.focus:raise() end
end,
{description = "focus up", group = "client"}),
awful.key({ modkey, altkey }, "h",
function()
awful.client.focus.global_bydirection("left")
if client.focus then client.focus:raise() end
end,
{description = "focus left", group = "client"}),
awful.key({ modkey, altkey }, "l",
function()
awful.client.focus.global_bydirection("right")
if client.focus then client.focus:raise() end
end,
{description = "focus right", group = "client"}),
-- Focus client by index (cycle through clients)
awful.key({ modkey }, "j",
function ()
awful.client.focus.byidx( 1)
end,
{description = "focus next by index", group = "client"}
),
awful.key({ modkey }, "k",
function ()
awful.client.focus.byidx(-1)
end,
{description = "focus previous by index", group = "client"}
),
awful.key({ modkey, }, "w", function () mymainmenu:show() end,
{description = "show main menu", group = "awesome"}),
-- Layout manipulation
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end,
{description = "swap with next client by index", group = "client"}),
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end,
{description = "swap with previous client by index", group = "client"}),
-- No need for these (single screen setup)
--awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end,
--{description = "focus the next screen", group = "screen"}),
--awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end,
--{description = "focus the previous screen", group = "screen"}),
awful.key({ modkey, }, "u", awful.client.urgent.jumpto,
{description = "jump to urgent client", group = "client"}),
awful.key({ modkey, }, "Tab",
function ()
awful.client.focus.history.previous()
if client.focus then
client.focus:raise()
end
end,
{description = "go back", group = "client"}),
-- Standard program
awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end,
{description = "open a terminal", group = "launcher"}),
awful.key({ modkey, }, "t", function () awful.spawn(tmux) end,
{description = "open a terminal with tmux", group = "launcher"}),
-- Spawn floating terminal
-- (There is a rule below that makes class "st_floating" float)
awful.key({ modkey, "Shift" }, "Return", function() awful.spawn(terminal .. " -c st_floating") end,
{description = "spawn floating terminal", group = "launcher"}),
awful.key({ modkey, "Shift" }, "t", function() awful.spawn(floating_tmux) end,
{description = "spawn floating terminal with tmux", group = "launcher"}),
awful.key({ modkey, "Shift" }, "r", awesome.restart,
{description = "reload awesome", group = "awesome"}),
awful.key({ modkey, "Shift" }, "x", awesome.quit,
{description = "quit awesome", group = "awesome"}),
-- Vertical resize
awful.key({ modkey, "Control" }, "j", function () awful.client.incwfact( 0.15) end),
awful.key({ modkey, "Control" }, "k", function () awful.client.incwfact(-0.15) end),
awful.key({ modkey }, "l", function () awful.tag.incmwfact( 0.05) end,
{description = "increase master width factor", group = "layout"}),
awful.key({ modkey }, "h", function () awful.tag.incmwfact(-0.05) end,
{description = "decrease master width factor", group = "layout"}),
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1, nil, true) end,
{description = "increase the number of master clients", group = "layout"}),
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1, nil, true) end,
{description = "decrease the number of master clients", group = "layout"}),
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1, nil, true) end,
{description = "increase the number of columns", group = "layout"}),
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1, nil, true) end,
{description = "decrease the number of columns", group = "layout"}),
awful.key({ modkey, }, "space", function () awful.layout.inc( 1) end,
{description = "select next", group = "layout"}),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(-1) end,
{description = "select previous", group = "layout"}),
awful.key({ modkey, "Shift" }, "n",
function ()
local c = awful.client.restore()
-- Focus restored client
if c then
client.focus = c
c:raise()
end
end,
{description = "restore minimized", group = "client"}),
-- Prompt
-- Run program (d for dmenu ;)
awful.key({ modkey }, "d", function () awful.screen.focused().mypromptbox:run() end,
{description = "run prompt", group = "launcher"}),
-- Run lua code
awful.key({ modkey }, "r",
function ()
awful.prompt.run {
prompt = " Lua: ",
textbox = awful.screen.focused().mypromptbox.widget,
exe_callback = awful.util.eval,
history_path = awful.util.get_cache_dir() .. "/history_eval"
}
end,
{description = "lua execute prompt", group = "awesome"}),
-- TODO keybinds for dismissing notifications
-- Menubar
--awful.key({ modkey }, "p", function() menubar.show() end,
--{description = "show the menubar", group = "launcher"})
-- Volume Control
awful.key( { }, "XF86AudioMute", function()
awful.spawn.with_shell("pactl set-sink-mute 0 toggle")
end,
{description = "(un)mute volume", group = "volume"}),
awful.key( { }, "XF86AudioLowerVolume", function()
awful.spawn.with_shell("pactl set-sink-mute 0 0 && pactl set-sink-volume @DEFAULT_SINK@ -5%")
end,
{description = "lower volume", group = "volume"}),
awful.key( { }, "XF86AudioRaiseVolume", function()
awful.spawn.with_shell("pactl set-sink-mute 0 0 && pactl set-sink-volume @DEFAULT_SINK@ +5%")
end,
{description = "raise volume", group = "volume"}),
-- Screenshots
awful.key( { }, "Print", function() awful.spawn.with_shell( os.getenv("HOME") .. "/Scripts/screenshot.sh") end,
{description = "take full screenshot", group = "screenshots"}),
awful.key( { modkey, "Shift" }, "c", function() awful.spawn.with_shell( os.getenv("HOME") .. "/Scripts/screenshot.sh -s") end,
{description = "select area to capture", group = "screenshots"}),
awful.key( { modkey, "Control" }, "c", function() awful.spawn.with_shell( os.getenv("HOME") .. "/Scripts/screenshot.sh -c") end,
{description = "select area to copy to clipboard", group = "screenshots"}),
awful.key( { modkey }, "Print", function() awful.spawn.with_shell("cd ~/Pictures/Screenshots ; feh --title feh_preview $(ls -t | head -n1) * &") end,
{description = "browse screenshots", group = "screenshots"}),
awful.key( { modkey, "Shift" }, "Print", function() awful.spawn.with_shell("cd ~/Pictures/Screenshots; gimp $(ls -t | head -n1) & notify-send 'Opening last screenshot with GIMP' --urgency low -i ~/.icons/oomox-only_icons/categories/scalable/applications-painting.svg" ) end,
{description = "open most recent screenshot with gimp", group = "screenshots"}),
-- Toggle night light
awful.key({ modkey }, "x", function() awful.spawn.with_shell("flux") end,
{description = "toggle night light", group = "launcher"}),
-- Toggle compositor
awful.key({ modkey }, "z", function() awful.spawn.with_shell("~/Scripts/compositor") end,
{description = "toggle compositor", group = "launcher"}),
-- Spawn ncmpcpp in a terminal
awful.key({ modkey }, "F1", function() awful.spawn(terminal .. " -e ncmpcpp") end,
{description = "ncmpcpp", group = "launcher"}),
-- Spawn cava in a terminal
awful.key({ modkey }, "F2", function() awful.spawn(terminal .. " -e cava") end,
{description = "cava", group = "launcher"}),
-- Spawn htop in a terminal
awful.key({ modkey }, "p", function() awful.spawn(terminal .. " -e htop") end,
{description = "htop", group = "launcher"})
)
clientkeys = gears.table.join(
-- Move floating client (relative)
awful.key({ modkey, "Shift" }, "Down", function (c) c:relative_move( 0, 40, 0, 0) end),
awful.key({ modkey, "Shift" }, "Up", function (c) c:relative_move( 0, -40, 0, 0) end),
awful.key({ modkey, "Shift" }, "Left", function (c) c:relative_move(-40, 0, 0, 0) end),
awful.key({ modkey, "Shift" }, "Right", function (c) c:relative_move( 40, 0, 0, 0) end),
awful.key({ modkey }, "c", function (c)
awful.placement.centered(c,nil)
end),
-- Toggle fullscreen
awful.key({ modkey, }, "f",
function (c)
-- Disable titlebar if fullscreen will be enabled
-- and vice versa
if beautiful.titlebars_enabled then
if c.fullscreen then
awful.titlebar.show(c, top)
else
awful.titlebar.hide(c, top)
end
end
c.fullscreen = not c.fullscreen
c:raise()
end,
{description = "toggle fullscreen", group = "client"}),
awful.key({ modkey, "Shift" }, "q", function (c) c:kill() end,
{description = "close", group = "client"}),
--awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
-- Toggle floating + ontop and center client
awful.key({ modkey, "Control" }, "space",
function(c)
--client.focus = c
awful.client.floating.toggle()
c.ontop = not c.ontop
awful.placement.centered(c,nil)
c:raise()
end,
{description = "toggle floating", group = "client"}),
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end,
{description = "move to master", group = "client"}),
awful.key({ modkey, }, "o", function (c) c:move_to_screen() end,
{description = "move to screen", group = "client"}),
awful.key({ modkey, "Control" }, "t", function (c) c.ontop = not c.ontop end,
{description = "toggle keep on top", group = "client"}),
awful.key({ modkey, }, "n",
function (c)
-- The client currently has the input focus, so it cannot be
-- minimized, since minimized clients can't have the focus.
c.minimized = true
end ,
{description = "minimize", group = "client"}),
awful.key({ modkey, }, "m",
function (c)
c.maximized = not c.maximized
c:raise()
end ,
{description = "(un)maximize", group = "client"}),
awful.key({ modkey, "Control" }, "m",
function (c)
c.maximized_vertical = not c.maximized_vertical
c:raise()
end ,
{description = "(un)maximize vertically", group = "client"}),
awful.key({ modkey, "Shift" }, "m",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c:raise()
end ,
{description = "(un)maximize horizontally", group = "client"})
)
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it work on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do
globalkeys = gears.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9,
function ()
local screen = awful.screen.focused()
local tag = screen.tags[i]
local current_tag = screen.selected_tag
-- Tag back and forth:
-- If you try to focus the same tag you are at,
-- go back to the previous tag.
-- Useful for quick switching after for example
-- checking an incoming chat message at tag 2
-- and coming back to your work at tag 1
if tag then
if tag == current_tag then
awful.tag.history.restore()
else
tag:view_only()
end
end
-- Simple tag view
--if tag then
--tag:view_only()
--end
end,
{description = "view tag #"..i, group = "tag"}),
-- Toggle tag display.
awful.key({ modkey, "Control" }, "#" .. i + 9,
function ()
local screen = awful.screen.focused()
local tag = screen.tags[i]
if tag then
awful.tag.viewtoggle(tag)
end
end,
{description = "toggle tag #" .. i, group = "tag"}),
-- Move client to tag.
awful.key({ modkey, "Shift" }, "#" .. i + 9,
function ()
if client.focus then
local tag = client.focus.screen.tags[i]
if tag then
client.focus:move_to_tag(tag)
end
end
end,
{description = "move focused client to tag #"..i, group = "tag"}),
-- Toggle tag on focused client.
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function ()
if client.focus then
local tag = client.focus.screen.tags[i]
if tag then
client.focus:toggle_tag(tag)
end
end
end,
{description = "toggle focused client on tag #" .. i, group = "tag"})
)
end
-- Mouse buttons on the client (whole window, not just titlebar)
clientbuttons = gears.table.join(
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
awful.button({ modkey }, 1, awful.mouse.client.move),
awful.button({ modkey }, 3, function(c)
awful.mouse.resize(c, nil, {jump_to_corner=false})
end)
)
-- Set keys
root.keys(globalkeys)
-- }}}
-- {{{ Rules
-- Rules to apply to new clients (through the "manage" signal).
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = awful.client.focus.filter,
raise = true,
keys = clientkeys,
buttons = clientbuttons,
screen = awful.screen.preferred,
-- Disable WM_NORMAL_HINTS so that terminals are resized freely
size_hints_honor = false,
placement = awful.placement.no_overlap+awful.placement.no_offscreen
}
},
-- Floating clients.
{ rule_any = {
instance = {
"DTA", -- Firefox addon DownThemAll.
"copyq", -- Includes session name in class.
},
class = {
"Galculator",
"st_floating", -- Floating terminal
"Gpick",
"xtightvncviewer"},
name = {
"Event Tester", -- xev.
"feh_preview", -- title for feh used by some scripts for previewing.
},
role = {
"AlarmWindow", -- Thunderbird's calendar.
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
}
}, properties = { floating = true, ontop = true }},
-- Add titlebars to normal clients and dialogs, if required by theme.lua
-- Center them (if they are floating)
{ rule_any = {type = { "normal", "dialog" }
}, properties = { titlebars_enabled = beautiful.titlebars_enabled },
callback = function (c)
-- TODO: center only if there is no other client visible on the screen
awful.placement.centered(c,nil)
end
},
-- Set Firefox to always map on the tag named "2" on screen 1.
-- { rule = { class = "Firefox" },
-- properties = { screen = 1, tag = "2" } },
}
-- }}}
-- {{{ Signals
-- Signal function to execute when a new client appears.
client.connect_signal("manage", function (c)
-- Set every new window as a slave,
-- i.e. put it at the end of others instead of setting it master.
if not awesome.startup then awful.client.setslave(c) end
if awesome.startup and
not c.size_hints.user_position
and not c.size_hints.program_position then
-- Prevent clients from being unreachable after screen count changes.
awful.placement.no_offscreen(c)
end
end)
-- Add a titlebar if titlebars_enabled is set to true in the rules.
client.connect_signal("request::titlebars", function(c)
-- buttons for the titlebar
local buttons = gears.table.join(
awful.button({ }, 1, function()
client.focus = c
c:raise()
awful.mouse.client.move(c)
end),
-- Middle mouse button on the titlebar closes the window
awful.button({ }, 2, function ()
window_to_kill = mouse.object_under_pointer()
window_to_kill:kill()
end),
-- Right button - resize
awful.button({ }, 3, function()
client.focus = c
c:raise()
awful.mouse.client.resize(c)
end),
-- Scrolling
-- Scroll up -> toggle maximize
awful.button({ }, 4, function()
c = mouse.object_under_pointer()
c.maximized = not c.maximized
c:raise()
end),
-- Scroll down -> minimize
awful.button({ }, 5, function()
c = mouse.object_under_pointer()
c.minimized = true
end),
-- Side buttons
-- Toggle sticky
awful.button({ }, 8, function()
c = mouse.object_under_pointer()
c.sticky = not c.sticky
end),
-- Toggle floating + on top
awful.button({ }, 9, function()
client.focus = c
awful.client.floating.toggle()
c.ontop = not c.ontop
awful.placement.centered(c,nil)
c:raise()
end)
)
awful.titlebar(c, {font = beautiful.titlebar_font}) : setup {
{ -- Left
--awful.titlebar.widget.iconwidget(c),
buttons = buttons,
layout = wibox.layout.fixed.horizontal
},
{ -- Middle
--{ -- Title
--align = "center",
--widget = awful.titlebar.widget.titlewidget(c)
--},
buttons = buttons,
layout = wibox.layout.flex.horizontal
},
{ -- Right
-- Titlebar buttons
--awful.titlebar.widget.floatingbutton (c),
--awful.titlebar.widget.maximizedbutton(c),
--awful.titlebar.widget.stickybutton (c),
--awful.titlebar.widget.ontopbutton (c),
--awful.titlebar.widget.closebutton (c),
myfocusindicator,
layout = wibox.layout.fixed.horizontal()
},
layout = wibox.layout.align.horizontal
}
end)
-- Enable sloppy focus, so that focus follows mouse.
--client.connect_signal("mouse::enter", function(c)
-- if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
-- and awful.client.focus.filter(c) then
-- client.focus = c
-- end
--end)
-- Rounded corners
-- TODO: Rounded internal norder (see actionless' config)
client.connect_signal("property::geometry", function (c)
-- Only apply shape to non fullscreen clients
if not c.fullscreen then
gears.timer.delayed_call(function()
gears.surface.apply_shape_bounding(c, gears.shape.rounded_rect, beautiful.border_radius)
end)
end
end)
beautiful.notification_shape = rrect(beautiful.border_radius)
beautiful.snap_shape = rrect(beautiful.border_radius * 2)
beautiful.taglist_shape = rrect(beautiful.border_radius)
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- Startup applications
awful.spawn.with_shell( os.getenv("HOME") .. "/.config/awesome/autostart.sh")
-- }}}

View file

@ -1,3 +0,0 @@
Background images:
Mikael Eriksson <mikael_eriksson@miffe.org>
Licensed under CC-BY-SA-3.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 439 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 423 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 365 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 866 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 865 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 496 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 496 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 581 B

Some files were not shown because too many files have changed in this diff Show more