This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
general { | |
colors = true | |
interval = 1 | |
color_good = "#2AA198" | |
color_bad = "#586E75" | |
color_degraded = "#DC322F" | |
} | |
order += "volume master" | |
order += "cpu_usage" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rootcheck () { | |
if [ $(id -u) != "0" ] | |
then | |
echo "warning: auto appending sudo.." | |
sudo "$0" "$@" | |
exit $? | |
fi | |
} | |
rootcheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
for i in {0..255} ; do | |
printf "\x1b[38;5;${i}mcolour${i} " | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set previewer ~/.config/lf/pv.sh | |
cmd trash ${{ | |
mkdir -p ~/trash | |
if [ -z "$fs" ]; then | |
mv "$f" ~/trash | |
else | |
IFS="`printf '\n\t'`"; mv $fs ~/trash | |
fi | |
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
case "$1" in | |
*.jpg) feh "$1";; | |
*.tar*) tar tf "$1";; | |
*.zip) unzip -l "$1";; | |
*.rar) unrar l "$1";; | |
*.7z) 7z l "$1";; | |
*.pdf) pdftotext "$1" -;; | |
*) highlight -O ansi "$1" || cat "$1";; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set $mod Mod1 | |
set $mod2 control | |
new_window pixel 0 | |
new_float normal | |
hide_edge_borders none | |
#bindsym $mod+u border none | |
#bindsym $mod+y border pixel 5 | |
#corners rounded 20 | |
bindsym $mod+shift+y border pixel 0 | |
bindsym $mod+shift+n border normal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# henro's bash aliases | |
## general | |
alias ls='ls --color=auto' | |
alias l='ls -lhtr --color=auto' | |
# bash history | |
alias searchBashHistory='cat ~/.bash_history | fzf'; | |
# clipboard | |
alias clippy='xclip -r -selection clipboard'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -p "Delete all files and dirs in ~/trash/* ? " -n 1 -r | |
echo | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
rm -rf /home/hnr/trash/* | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export ZSH="/home/hnr/.oh-my-zsh" | |
SPACESHIP_GIT_SHOW=false | |
SPACESHIP_HG_SHOW=false | |
SPACESHIP_HG_BRANCH_SHOW=false | |
SPACESHIP_HG_STATUS_SHOW=false | |
SPACESHIP_PACKAGE_SHOW=false | |
SPACESHIP_NODE_SHOW=false | |
SPACESHIP_RUBY_SHOW=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
XDT=/usr/bin/xdotool | |
WINDOW=`$XDT getwindowfocus` | |
# this brings in variables WIDTH and HEIGHT | |
eval `xdotool getwindowgeometry --shell $WINDOW` | |
TX=`expr $WIDTH / 2` | |
TY=`expr $HEIGHT / 2` |