cleanup
This commit is contained in:
parent
6cb04314bd
commit
cd1ade73b0
16 changed files with 101 additions and 551 deletions
|
@ -1 +0,0 @@
|
|||
sourcerer.colourscheme
|
|
@ -1,4 +1,3 @@
|
|||
import = ["/home/je/.config/alacritty/active_colourscheme.toml"]
|
||||
|
||||
[cursor.style]
|
||||
shape = "Beam"
|
||||
|
@ -10,13 +9,16 @@ shape = "Underline"
|
|||
size = 10
|
||||
|
||||
[font.bold]
|
||||
family = "EnvyCodeR"
|
||||
family = "EnvyCodeR Nerd Font Mono"
|
||||
style = "Bold"
|
||||
|
||||
[font.italic]
|
||||
family = "EnvyCodeR"
|
||||
family = "EnvyCodeR Nerd Font Mono"
|
||||
style = "Italic"
|
||||
|
||||
[font.normal]
|
||||
family = "EnvyCodeR"
|
||||
family = "EnvyCodeR Nerd Font Mono"
|
||||
style = "Regular"
|
||||
|
||||
[general]
|
||||
import = ["/home/je/.config/alacritty/color/tokyo-night.toml"]
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
font:
|
||||
size: 10
|
||||
normal:
|
||||
family: EnvyCodeR
|
||||
style: Regular
|
||||
bold:
|
||||
family: EnvyCodeR
|
||||
style: Bold
|
||||
italic:
|
||||
family: EnvyCodeR
|
||||
style: Italic
|
||||
|
||||
cursor:
|
||||
style:
|
||||
shape: Beam
|
||||
vi_mode_style:
|
||||
shape: Underline
|
||||
|
||||
import:
|
||||
- ~/.config/alacritty/active_colourscheme.yml
|
|
@ -1,25 +0,0 @@
|
|||
colors:
|
||||
primary:
|
||||
background: '0xfafafa'
|
||||
foreground: '0x5c6773'
|
||||
cursor:
|
||||
text: '0x5c6773'
|
||||
cursor: '0xff6a00'
|
||||
normal:
|
||||
black: '0x000000'
|
||||
red: '0xff3333'
|
||||
green: '0x86b300'
|
||||
yellow: '0xf29718'
|
||||
blue: '0x41a6d9'
|
||||
magenta: '0xf07178'
|
||||
cyan: '0x4dbf99'
|
||||
white: '0xffffff'
|
||||
bright:
|
||||
black: '0x323232'
|
||||
red: '0xff6565'
|
||||
green: '0xb8e532'
|
||||
yellow: '0xffc94a'
|
||||
blue: '0x73d8ff'
|
||||
magenta: '0xffa3aa'
|
||||
cyan: '0x7ff1cb'
|
||||
white: '0xffffff'
|
23
configDots/alacritty/color/tokyo-night-storm.toml
Normal file
23
configDots/alacritty/color/tokyo-night-storm.toml
Normal file
|
@ -0,0 +1,23 @@
|
|||
[colors.bright]
|
||||
black = "#444b6a"
|
||||
blue = "#7da6ff"
|
||||
cyan = "#0db9d7"
|
||||
green = "#b9f27c"
|
||||
magenta = "#bb9af7"
|
||||
red = "#ff7a93"
|
||||
white = "#acb0d0"
|
||||
yellow = "#ff9e64"
|
||||
|
||||
[colors.normal]
|
||||
black = "#32344a"
|
||||
blue = "#7aa2f7"
|
||||
cyan = "#449dab"
|
||||
green = "#9ece6a"
|
||||
magenta = "#ad8ee6"
|
||||
red = "#f7768e"
|
||||
white = "#9699a8"
|
||||
yellow = "#e0af68"
|
||||
|
||||
[colors.primary]
|
||||
background = "#24283b"
|
||||
foreground = "#a9b1d6"
|
23
configDots/alacritty/color/tokyo-night.toml
Normal file
23
configDots/alacritty/color/tokyo-night.toml
Normal file
|
@ -0,0 +1,23 @@
|
|||
[colors.bright]
|
||||
black = "#444b6a"
|
||||
blue = "#7da6ff"
|
||||
cyan = "#0db9d7"
|
||||
green = "#b9f27c"
|
||||
magenta = "#bb9af7"
|
||||
red = "#ff7a93"
|
||||
white = "#acb0d0"
|
||||
yellow = "#ff9e64"
|
||||
|
||||
[colors.normal]
|
||||
black = "#32344a"
|
||||
blue = "#7aa2f7"
|
||||
cyan = "#449dab"
|
||||
green = "#9ece6a"
|
||||
magenta = "#ad8ee6"
|
||||
red = "#f7768e"
|
||||
white = "#787c99"
|
||||
yellow = "#e0af68"
|
||||
|
||||
[colors.primary]
|
||||
background = "#1a1b26"
|
||||
foreground = "#a9b1d6"
|
|
@ -1,25 +0,0 @@
|
|||
colors:
|
||||
primary:
|
||||
background: '#222222'
|
||||
foreground: '#c2c2b0'
|
||||
cursor:
|
||||
text: '#c2c2b0'
|
||||
cursor: '#c2c2b0'
|
||||
normal:
|
||||
black: '#111111'
|
||||
red: '#aa4450'
|
||||
green: '#719611'
|
||||
yellow: '#cc8800'
|
||||
blue: '#6688aa'
|
||||
magenta: '#8f6f8f'
|
||||
cyan: '#528b8b'
|
||||
white: '#d3d3d3'
|
||||
bright:
|
||||
black: '#181818'
|
||||
red: '#ff6a6a'
|
||||
green: '#b1d631'
|
||||
yellow: '#ff9800'
|
||||
blue: '#90b0d1'
|
||||
magenta: '#8181a6'
|
||||
cyan: '#87ceeb'
|
||||
white: '#c1cdc1'
|
|
@ -50,7 +50,7 @@ hidedifffiles = .SRCINFO
|
|||
|
||||
[network]
|
||||
aururl = https://aur.archlinux.org
|
||||
newsurl = https://www.archlinux.org/feeds/news/
|
||||
newsurl = https://archlinux.org/feeds/news/
|
||||
socks5proxy =
|
||||
aurhttpproxy =
|
||||
aurhttpsproxy =
|
||||
|
|
|
@ -119,7 +119,7 @@ alias l1vim='vim -c "e ++enc=latin1"'
|
|||
alias get_systemp="paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) <(ls -1 /sys/class/thermal/thermal_zone*/temp) | column -s $'\t' -t"
|
||||
|
||||
# Spezialitäten für Arch Linux
|
||||
alias y_clean='pacman -Rs $(pacman -Qtdq)'
|
||||
alias y_clean='pikaur -Rs $(pikaur -Qtdq)'
|
||||
alias y_update='pikaur -Syu'
|
||||
alias y_inst='pikaur -Sy'
|
||||
alias y_rem='pikaur -Rsn'
|
||||
|
|
|
@ -1,225 +0,0 @@
|
|||
# Configuration file for dircolors, a utility to help you set the
|
||||
# LS_COLORS environment variable used by GNU ls with the --color option.
|
||||
# Copyright (C) 1996, 1999-2010 Free Software Foundation, Inc.
|
||||
# Copying and distribution of this file, with or without modification,
|
||||
# are permitted provided the copyright notice and this notice are preserved.
|
||||
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
|
||||
# slackware version of dircolors) are recognized but ignored.
|
||||
# Below, there should be one TERM entry for each termtype that is colorizable
|
||||
TERM Eterm
|
||||
TERM ansi
|
||||
TERM color-xterm
|
||||
TERM con132x25
|
||||
TERM con132x30
|
||||
TERM con132x43
|
||||
TERM con132x60
|
||||
TERM con80x25
|
||||
TERM con80x28
|
||||
TERM con80x30
|
||||
TERM con80x43
|
||||
TERM con80x50
|
||||
TERM con80x60
|
||||
TERM cons25
|
||||
TERM console
|
||||
TERM cygwin
|
||||
TERM dtterm
|
||||
TERM eterm-color
|
||||
TERM gnome
|
||||
TERM gnome-256color
|
||||
TERM jfbterm
|
||||
TERM konsole
|
||||
TERM kterm
|
||||
TERM linux
|
||||
TERM linux-c
|
||||
TERM mach-color
|
||||
TERM mlterm
|
||||
TERM putty
|
||||
TERM rxvt
|
||||
TERM rxvt-256color
|
||||
TERM rxvt-cygwin
|
||||
TERM rxvt-cygwin-native
|
||||
TERM rxvt-unicode
|
||||
TERM rxvt-unicode256
|
||||
TERM screen
|
||||
TERM screen-256color
|
||||
TERM screen-256color-bce
|
||||
TERM screen-bce
|
||||
TERM screen-w
|
||||
TERM screen.linux
|
||||
TERM vt100
|
||||
TERM xterm
|
||||
TERM xterm-16color
|
||||
TERM xterm-256color
|
||||
TERM xterm-88color
|
||||
TERM xterm-color
|
||||
TERM xterm-debian
|
||||
# Below are the color init strings for the basic file types. A color init
|
||||
# string consists of one or more of the following numeric codes:
|
||||
# Attribute codes:
|
||||
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
|
||||
# Text color codes:
|
||||
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
|
||||
# Background color codes:
|
||||
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
|
||||
|
||||
## dircolors 256 COLOR SUPPORT (see here: http://www.mail-archive.com/bug-coreutils@gnu.org/msg11030.html)
|
||||
# Text 256 color coding:
|
||||
# 38;5;COLOR_NUMBER
|
||||
# Background 256 color coding:
|
||||
# 48;5;COLOR_NUMBER
|
||||
|
||||
NORMAL 00;38;5;244 # no color code at all
|
||||
#FILE 00 # regular file: use no color at all
|
||||
RESET 0 # reset to "normal" color
|
||||
DIR 00;38;5;33 # directory 01;34
|
||||
LINK 01;38;5;33 # symbolic link. (If you set this to 'target' instead of a
|
||||
# numerical value, the color is as for the file pointed to.)
|
||||
MULTIHARDLINK 00 # regular file with more than one link
|
||||
FIFO 48;5;230;38;5;136;01 # pipe
|
||||
SOCK 48;5;230;38;5;136;01 # socket
|
||||
DOOR 48;5;230;38;5;136;01 # door
|
||||
BLK 48;5;230;38;5;244;01 # block device driver
|
||||
CHR 48;5;230;38;5;244;01 # character device driver
|
||||
ORPHAN 48;5;235;38;5;160 # symlink to nonexistent file, or non-stat'able file
|
||||
SETUID 48;5;160;38;5;230 # file that is setuid (u+s)
|
||||
SETGID 48;5;136;38;5;230 # file that is setgid (g+s)
|
||||
CAPABILITY 30;41 # file with capability
|
||||
STICKY_OTHER_WRITABLE 48;5;64;38;5;230 # dir that is sticky and other-writable (+t,o+w)
|
||||
OTHER_WRITABLE 48;5;235;38;5;33 # dir that is other-writable (o+w) and not sticky
|
||||
STICKY 48;5;33;38;5;230 # dir with the sticky bit set (+t) and not other-writable
|
||||
# This is for files with execute permission:
|
||||
EXEC 01;38;5;64
|
||||
# List any file extensions like '.gz' or '.tar' that you would like ls
|
||||
# to colorize below. Put the extension, a space, and the color init string.
|
||||
# (and any comments you want to add after a '#')
|
||||
# If you use DOS-style suffixes, you may want to uncomment the following:
|
||||
#.cmd 01;32 # executables (bright green)
|
||||
#.exe 01;32
|
||||
#.com 01;32
|
||||
#.btm 01;32
|
||||
#.bat 01;32
|
||||
# Or if you want to colorize scripts even if they do not have the
|
||||
# executable bit actually set.
|
||||
#.sh 01;32
|
||||
#.csh 01;32
|
||||
|
||||
# archives or compressed (violet + bold for compression)
|
||||
.tar 00;38;5;61
|
||||
.tgz 01;38;5;61
|
||||
.arj 01;38;5;61
|
||||
.taz 01;38;5;61
|
||||
.lzh 01;38;5;61
|
||||
.lzma 01;38;5;61
|
||||
.tlz 01;38;5;61
|
||||
.txz 01;38;5;61
|
||||
.zip 01;38;5;61
|
||||
.z 01;38;5;61
|
||||
.Z 01;38;5;61
|
||||
.dz 01;38;5;61
|
||||
.gz 01;38;5;61
|
||||
.lz 01;38;5;61
|
||||
.xz 01;38;5;61
|
||||
.bz2 01;38;5;61
|
||||
.bz 01;38;5;61
|
||||
.tbz 01;38;5;61
|
||||
.tbz2 01;38;5;61
|
||||
.tz 01;38;5;61
|
||||
.deb 01;38;5;61
|
||||
.rpm 01;38;5;61
|
||||
.jar 01;38;5;61
|
||||
.rar 01;38;5;61
|
||||
.ace 01;38;5;61
|
||||
.zoo 01;38;5;61
|
||||
.cpio 01;38;5;61
|
||||
.7z 01;38;5;61
|
||||
.rz 01;38;5;61
|
||||
.apk 01;38;5;61
|
||||
|
||||
# image formats (yellow)
|
||||
.jpg 00;38;5;136
|
||||
.JPG 00;38;5;136 #stupid but needed
|
||||
.jpeg 00;38;5;136
|
||||
.gif 00;38;5;136
|
||||
.bmp 00;38;5;136
|
||||
.pbm 00;38;5;136
|
||||
.pgm 00;38;5;136
|
||||
.ppm 00;38;5;136
|
||||
.tga 00;38;5;136
|
||||
.xbm 00;38;5;136
|
||||
.xpm 00;38;5;136
|
||||
.tif 00;38;5;136
|
||||
.tiff 00;38;5;136
|
||||
.png 00;38;5;136
|
||||
.svg 00;38;5;136
|
||||
.svgz 00;38;5;136
|
||||
.mng 00;38;5;136
|
||||
.pcx 00;38;5;136
|
||||
.dl 00;38;5;136
|
||||
.xcf 00;38;5;136
|
||||
.xwd 00;38;5;136
|
||||
.yuv 00;38;5;136
|
||||
.cgm 00;38;5;136
|
||||
.emf 00;38;5;136
|
||||
.eps 00;38;5;136
|
||||
|
||||
# files of interest (base1 + bold)
|
||||
.pdf 01;38;5;245
|
||||
.tex 01;38;5;245
|
||||
.rdf 01;38;5;245
|
||||
.owl 01;38;5;245
|
||||
.n3 01;38;5;245
|
||||
.tt 01;38;5;245
|
||||
.nt 01;38;5;245
|
||||
|
||||
# "unimportant" files as logs and backups (base01)
|
||||
.log 00;38;5;240
|
||||
.bak 00;38;5;240
|
||||
.aux 00;38;5;240
|
||||
.bbl 00;38;5;240
|
||||
.blg 00;38;5;240
|
||||
|
||||
# audio formats (orange)
|
||||
.aac 00;38;5;166
|
||||
.au 00;38;5;166
|
||||
.flac 00;38;5;166
|
||||
.mid 00;38;5;166
|
||||
.midi 00;38;5;166
|
||||
.mka 00;38;5;166
|
||||
.mp3 00;38;5;166
|
||||
.mpc 00;38;5;166
|
||||
.ogg 00;38;5;166
|
||||
.ra 00;38;5;166
|
||||
.wav 00;38;5;166
|
||||
# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
|
||||
.axa 00;38;5;166
|
||||
.oga 00;38;5;166
|
||||
.spx 00;38;5;166
|
||||
.xspf 00;38;5;166
|
||||
|
||||
# video formats (as audio + bold)
|
||||
.mov 01;38;5;166
|
||||
.mpg 01;38;5;166
|
||||
.mpeg 01;38;5;166
|
||||
.m2v 01;38;5;166
|
||||
.mkv 01;38;5;166
|
||||
.ogm 01;38;5;166
|
||||
.mp4 01;38;5;166
|
||||
.m4v 01;38;5;166
|
||||
.mp4v 01;38;5;166
|
||||
.vob 01;38;5;166
|
||||
.qt 01;38;5;166
|
||||
.nuv 01;38;5;166
|
||||
.wmv 01;38;5;166
|
||||
.asf 01;38;5;166
|
||||
.rm 01;38;5;166
|
||||
.rmvb 01;38;5;166
|
||||
.flc 01;38;5;166
|
||||
.avi 01;38;5;166
|
||||
.fli 01;38;5;166
|
||||
.flv 01;38;5;166
|
||||
.gl 01;38;5;166
|
||||
# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
|
||||
.axv 01;38;5;166
|
||||
.anx 01;38;5;166
|
||||
.ogv 01;38;5;166
|
||||
.ogx 01;38;5;166
|
|
@ -6,80 +6,11 @@ EC() {
|
|||
}
|
||||
trap EC ERR
|
||||
|
||||
# Simple calculator
|
||||
calc() {
|
||||
local result=""
|
||||
result="$(printf "scale=10;$*\n" | bc --mathlib | tr -d '\\\n')"
|
||||
# └─ default (when `--mathlib` is used) is 20
|
||||
|
||||
if [[ "$result" == *.* ]]; then
|
||||
# improve the output for decimal numbers
|
||||
printf "$result" |
|
||||
sed -e 's/^\./0./' `# add "0" for cases like ".5"` \
|
||||
-e 's/^-\./-0./' `# add "0" for cases like "-.5"`\
|
||||
-e 's/0*$//;s/\.$//'; # remove trailing zeros
|
||||
else
|
||||
printf "$result"
|
||||
fi
|
||||
printf "\n"
|
||||
}
|
||||
|
||||
# Create a new directory and enter it
|
||||
mkd() {
|
||||
mkdir -p "$@" && cd "$@"
|
||||
}
|
||||
|
||||
# cd and list
|
||||
cl() {
|
||||
local dir="$1"
|
||||
local dir="${dir:=$HOME}"
|
||||
if [[ -d "$dir" ]]; then
|
||||
cd "$dir" >/dev/null; ls -l
|
||||
else
|
||||
echo "bash: cl: $dir: Directory not found"
|
||||
fi
|
||||
}
|
||||
|
||||
# Simple Note App
|
||||
note () {
|
||||
# if file doesn't exist, create it
|
||||
if [[ ! -f $HOME/.notes ]]; then
|
||||
touch "$HOME/.notes"
|
||||
fi
|
||||
|
||||
if ! (($#)); then
|
||||
# no arguments, print file
|
||||
cat "$HOME/.notes"
|
||||
elif [[ "$1" == "-c" ]]; then
|
||||
# clear file
|
||||
printf "%s" > "$HOME/.notes"
|
||||
else
|
||||
# add all arguments to file
|
||||
printf "%s\n" "$*" >> "$HOME/.notes"
|
||||
fi
|
||||
}
|
||||
|
||||
todo() {
|
||||
if [[ ! -f $HOME/.todo ]]; then
|
||||
touch "$HOME/.todo"
|
||||
fi
|
||||
|
||||
if ! (($#)); then
|
||||
cat "$HOME/.todo"
|
||||
elif [[ "$1" == "-l" ]]; then
|
||||
nl -b a "$HOME/.todo"
|
||||
elif [[ "$1" == "-c" ]]; then
|
||||
> $HOME/.todo
|
||||
elif [[ "$1" == "-r" ]]; then
|
||||
nl -b a "$HOME/.todo"
|
||||
eval printf %.0s- '{1..'"${COLUMNS:-$(tput cols)}"\}; echo
|
||||
read -p "Type a number to remove: " number
|
||||
sed -i ${number}d $HOME/.todo
|
||||
else
|
||||
printf "%s\n" "$*" >> "$HOME/.todo"
|
||||
fi
|
||||
}
|
||||
|
||||
# Make a temporary directory and enter it
|
||||
tmpd() {
|
||||
if [ $# -eq 0 ]; then
|
||||
|
@ -89,32 +20,15 @@ tmpd() {
|
|||
fi
|
||||
}
|
||||
|
||||
# Create a .tar.gz archive, using `zopfli`, `pigz` or `gzip` for compression
|
||||
targz() {
|
||||
local tmpFile="${@%/}.tar"
|
||||
tar -cvf "${tmpFile}" --exclude=".DS_Store" "${@}" || return 1
|
||||
|
||||
size=$(
|
||||
stat -f"%z" "${tmpFile}" 2> /dev/null; # OS X `stat`
|
||||
stat -c"%s" "${tmpFile}" 2> /dev/null # GNU `stat`
|
||||
)
|
||||
|
||||
local cmd=""
|
||||
if (( size < 52428800 )) && hash zopfli 2> /dev/null; then
|
||||
# the .tar file is smaller than 50 MB and Zopfli is available; use it
|
||||
cmd="zopfli"
|
||||
# cd and list
|
||||
cl() {
|
||||
local dir="$1"
|
||||
local dir="${dir:=$HOME}"
|
||||
if [[ -d "$dir" ]]; then
|
||||
cd "$dir" >/dev/null; ls -l
|
||||
else
|
||||
if hash pigz 2> /dev/null; then
|
||||
cmd="pigz"
|
||||
else
|
||||
cmd="gzip"
|
||||
echo "bash: cl: $dir: Directory not found"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Compressing .tar using \`${cmd}\`…"
|
||||
"${cmd}" -v "${tmpFile}" || return 1
|
||||
[ -f "${tmpFile}" ] && rm "${tmpFile}"
|
||||
echo "${tmpFile}.gz created successfully."
|
||||
}
|
||||
|
||||
# Determine size of a file or total size of a directory
|
||||
|
@ -131,24 +45,6 @@ fs() {
|
|||
fi
|
||||
}
|
||||
|
||||
# Create a data URL from a file
|
||||
dataurl() {
|
||||
local mimeType=$(file -b --mime-type "$1")
|
||||
if [[ $mimeType == text/* ]]; then
|
||||
mimeType="${mimeType};charset=utf-8"
|
||||
fi
|
||||
echo "data:${mimeType};base64,$(openssl base64 -in "$1" | tr -d '\n')"
|
||||
}
|
||||
|
||||
# Create a git.io short URL
|
||||
gitio() {
|
||||
if [ -z "${1}" -o -z "${2}" ]; then
|
||||
echo "Usage: \`gitio slug url\`"
|
||||
return 1
|
||||
fi
|
||||
curl -i http://git.io/ -F "url=${2}" -F "code=${1}"
|
||||
}
|
||||
|
||||
# Start an HTTP server from a directory, optionally specifying the port
|
||||
server() {
|
||||
local port="${1:-8000}"
|
||||
|
@ -167,48 +63,11 @@ gz() {
|
|||
printf "gzip: %d bytes (%2.2f%%)\n" "$gzipsize" "$ratio"
|
||||
}
|
||||
|
||||
# Syntax-highlight JSON strings or files
|
||||
# Usage: `json '{"foo":42}'` or `echo '{"foo":42}' | json`
|
||||
json() {
|
||||
if [ -t 0 ]; then # argument
|
||||
python -mjson.tool <<< "$*" | pygmentize -l javascript
|
||||
else # pipe
|
||||
python -mjson.tool | pygmentize -l javascript
|
||||
fi
|
||||
}
|
||||
|
||||
# Run `dig` and display the most useful info
|
||||
digga() {
|
||||
dig +nocmd "$1" any +multiline +noall +answer
|
||||
}
|
||||
|
||||
# UTF-8-encode a string of Unicode symbols
|
||||
escape() {
|
||||
printf "\\\x%s" $(printf "$@" | xxd -p -c1 -u)
|
||||
# print a newline unless we’re piping the output to another program
|
||||
if [ -t 1 ]; then
|
||||
echo ""; # newline
|
||||
fi
|
||||
}
|
||||
|
||||
# Decode \x{ABCD}-style Unicode escape sequences
|
||||
unidecode() {
|
||||
perl -e "binmode(STDOUT, ':utf8'); print \"$@\""
|
||||
# print a newline unless we’re piping the output to another program
|
||||
if [ -t 1 ]; then
|
||||
echo ""; # newline
|
||||
fi
|
||||
}
|
||||
|
||||
# Get a character’s Unicode code point
|
||||
codepoint() {
|
||||
perl -e "use utf8; print sprintf('U+%04X', ord(\"$@\"))"
|
||||
# print a newline unless we’re piping the output to another program
|
||||
if [ -t 1 ]; then
|
||||
echo ""; # newline
|
||||
fi
|
||||
}
|
||||
|
||||
# Show all the names (CNs and SANs) listed in the SSL certificate
|
||||
# for a given domain
|
||||
getcertnames() {
|
||||
|
@ -243,16 +102,6 @@ getcertnames() {
|
|||
fi
|
||||
}
|
||||
|
||||
# `v` with no arguments opens the current directory in Vim, otherwise opens the
|
||||
# given location
|
||||
v() {
|
||||
if [ $# -eq 0 ]; then
|
||||
vim .
|
||||
else
|
||||
vim "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
# `o` with no arguments opens the current directory, otherwise opens the given
|
||||
# location
|
||||
o() {
|
||||
|
@ -263,14 +112,6 @@ o() {
|
|||
fi
|
||||
}
|
||||
|
||||
# `tre` is a shorthand for `tree` with hidden files and color enabled, ignoring
|
||||
# the `.git` directory, listing directories first. The output gets piped into
|
||||
# `less` with options to preserve color and line numbers, unless the output is
|
||||
# small enough for one screen.
|
||||
tre() {
|
||||
tree -aC -I '.git' --dirsfirst "$@" | less -FRNX
|
||||
}
|
||||
|
||||
# Get colors in manual pages
|
||||
man() {
|
||||
env \
|
||||
|
@ -298,29 +139,6 @@ openimage() {
|
|||
--start-at "$file"
|
||||
}
|
||||
|
||||
# get dbus session
|
||||
dbs() {
|
||||
local t=$1
|
||||
if [[ -z "$t" ]]; then
|
||||
local t="session"
|
||||
fi
|
||||
|
||||
dbus-send --$t --dest=org.freedesktop.DBus \
|
||||
--type=method_call --print-reply \
|
||||
/org/freedesktop/DBus org.freedesktop.DBus.ListNames
|
||||
}
|
||||
|
||||
# check if uri is up
|
||||
isup() {
|
||||
local uri=$1
|
||||
|
||||
if curl -s --head --request GET "$uri" | grep "200 OK" > /dev/null ; then
|
||||
notify-send --urgency=critical "$uri is down"
|
||||
else
|
||||
notify-send --urgency=low "$uri is up"
|
||||
fi
|
||||
}
|
||||
|
||||
# get the name of a x window
|
||||
xname(){
|
||||
local window_id=$1
|
||||
|
@ -362,30 +180,6 @@ d_reset(){
|
|||
|
||||
}
|
||||
|
||||
## Radare2 Container OPS
|
||||
d_r2(){
|
||||
docker run \
|
||||
-ti --rm \
|
||||
--cap-add=SYS_PTRACE \
|
||||
--name r2 \
|
||||
-v ~/RE:/mnt \
|
||||
-v ~/.radare2rc:/home/r2/.radare2rc:ro \
|
||||
-v ~/.bashrc:/home/r2/.bashrc:ro \
|
||||
-v ~/.bash_profile:/home/r2/.bash_profile:ro \
|
||||
-v ~/.exports:/home/r2/.exports:ro \
|
||||
-v ~/.aliases:/home/r2/.aliases:ro \
|
||||
radare/radare2 \
|
||||
bash
|
||||
}
|
||||
d_r2s(){
|
||||
docker exec -ti r2 bash
|
||||
}
|
||||
|
||||
## Menu-Man
|
||||
mman(){
|
||||
man -k . | sort | dmenu -l 30 | awk '{print substr($2, 2, length($2) - 2) " " $1}' | xargs -r $TERMINAL -e man
|
||||
}
|
||||
|
||||
## Dump SSL Cert from host
|
||||
## sslcheck example.com:25 -starttls smtp
|
||||
## sslcheck example.com:443
|
||||
|
|
|
@ -7,10 +7,7 @@ set $alt Mod1
|
|||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below.
|
||||
#font pango:Terminus 8
|
||||
font pango:B612 10
|
||||
#font pango:DejaVu Sans Mono 12
|
||||
#font pango:Inconsolata 12
|
||||
font pango:B612 Mono 13
|
||||
|
||||
|
||||
# Color theme
|
||||
|
@ -233,6 +230,7 @@ for_window [class="Arandr"] floating enable
|
|||
for_window [class="Argon"] floating enable
|
||||
for_window [class="Blueman-manager"] floating enable
|
||||
for_window [class="Ghidra"] floating enable
|
||||
for_window [class="Plus42"] floating enable
|
||||
for_window [class="QjackCtl"] floating enable
|
||||
for_window [class="Qsynth"] floating enable
|
||||
for_window [class="VMPK"] floating enable
|
||||
|
|
|
@ -1,17 +1,21 @@
|
|||
[theme]
|
||||
theme = "modern"
|
||||
|
||||
[icons]
|
||||
icons = "awesome6"
|
||||
|
||||
[[block]]
|
||||
block = "privacy"
|
||||
|
||||
[[block.driver]]
|
||||
name = "v4l"
|
||||
|
||||
[[block.driver]]
|
||||
name = "pipewire"
|
||||
exclude_input = ["openrgb"]
|
||||
display = "nickname"
|
||||
|
||||
|
||||
[[block]]
|
||||
block = "disk_space"
|
||||
info_type = "available"
|
||||
|
@ -25,9 +29,10 @@ format_alt = " $icon $available / $total "
|
|||
block = "net"
|
||||
format = " $icon $ip ({$signal_strength $ssid|Wired}) "
|
||||
|
||||
[[block]]
|
||||
block = "external_ip"
|
||||
format = " $ip $country_code "
|
||||
#[[block]]
|
||||
#block = "external_ip"
|
||||
#format = " $ip $country_code "
|
||||
#interval = 900
|
||||
|
||||
[[block]]
|
||||
block = "temperature"
|
||||
|
@ -41,7 +46,7 @@ block = "cpu"
|
|||
interval = 1
|
||||
format = " $icon $barchart $utilization "
|
||||
format_alt = " $icon $frequency{ $boost|} "
|
||||
info_cpu = 20
|
||||
info_cpu = 30
|
||||
warning_cpu = 50
|
||||
critical_cpu = 90
|
||||
|
||||
|
|
|
@ -76,7 +76,6 @@
|
|||
- pcmanfm-gtk3
|
||||
- perl
|
||||
- perl-date-manip
|
||||
- perl-finance-quote
|
||||
- powerline-fonts
|
||||
- rofi
|
||||
- qrencode
|
||||
|
@ -99,8 +98,12 @@
|
|||
- texlive-publishers
|
||||
- texlive-science
|
||||
- tree
|
||||
- ttf-inconsolata
|
||||
- ttf-3270-nerd
|
||||
- ttf-cousine-nerd
|
||||
- ttf-envycoder-nerd
|
||||
- ttf-font-awesome
|
||||
- ttf-hack-nerd
|
||||
- ttf-inconsolata-nerd
|
||||
- unzip
|
||||
- usbutils
|
||||
- w3m
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
- insync
|
||||
- c-lolcat
|
||||
- plus42
|
||||
- ttf-unifont
|
||||
- ttf-symbola
|
||||
|
||||
|
||||
|
||||
|
|
Reference in a new issue