Major overhaul

This commit is contained in:
Augusto Gunsch 2021-08-11 14:45:00 -03:00
parent 1b0aaf9186
commit 6dcc6899a2
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
16 changed files with 38 additions and 35 deletions

12
aliases
View File

@ -9,23 +9,11 @@ alias ....="cd ../../.."
alias .....="cd ../../../.."
export EDITOR="/usr/bin/vim"
# trash bin
alias trash='mkdir -p "$HOME/.trash" && mv -b -t "$HOME/.trash"'
alias cleartrash='rm -fv "$HOME/.trash/*"'
# weather forecast
alias forecast="curl -s wttr.in | head -n -1"
# improved reset and clear
alias reset="tput reset"
alias clear="tput reset"
# get ip alias
alias getip="curl -s https://ipecho.net/plain | xargs echo"
# better du
alias du="du -h"
alias weather="curl -s wttr.in | head -n-1"
alias feh="feh -."

View File

View File

Before

Width:  |  Height:  |  Size: 557 KiB

After

Width:  |  Height:  |  Size: 557 KiB

View File

View File

@ -1,27 +1,25 @@
#!/bin/sh
mydir=$(dirname "$0")
mydir=$(realpath "$mydir")
cd "$(dirname "$0")"
PWD="$(pwd)"
if [ ! "$mydir" = "$HOME/dotfiles" ]; then
mv "$mydir" "$HOME/dotfiles"
mydir="$HOME/dotfiles"
fi
#dotfiles from
#~/.config
for f in config/*; do
mkdir -p "$HOME/.$f"
for d in $f/*; do
ln -sf "$PWD/$d" "$HOME/.$d"
done
done
install() {
ln "$mydir/$1" "$HOME/.$1" -sf
}
#dotfiles from
#~
for f in home/*; do
ln -sf "$PWD/$f" "$HOME/.$(basename $f)"
done
installto() {
mkdir -p "$HOME/$2"
ln "$mydir/$1" "$HOME/$2/$1" -sf
}
install tmux.conf
install zshrc
install xinitrc
install Xmodmap
install wallpaper.png
install vimrc
installto picom.conf .config/picom
installto dunstrc .config/dunst
installto config.py .config/qutebrowser
#scripts
#~/.local/bin
mkdir -p "$HOME/.local/bin"
for f in local/bin/*; do
ln -sf "$PWD/$f" "$HOME/.$f"
done

3
local/bin/cleartrash Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
rm -rfv "$HOME/.trash"

3
local/bin/forecast Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
curl -s wttr.in | head -n -1

4
local/bin/getip Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
curl -s ipecho.net/plain
echo

4
local/bin/trash Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
mkdir -p "$HOME/.trash"
mv $@ "$HOME/.trash"

3
local/bin/weather Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
curl -s wttr.in | head -n -1