This commit is contained in:
David Aizenberg
2020-04-17 20:31:03 +03:00
parent 6e75774f9a
commit 0de28ce288
3 changed files with 57 additions and 6 deletions

18
.zshrc
View File

@@ -4,12 +4,20 @@
# Path to your oh-my-zsh installation.
export ZSH="/home/david/.oh-my-zsh"
export GOPATH=$HOME/gocode
export PATH=$PATH:$GOPATH/bin:/home/david/Scripts
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="sunaku"
alias j=jumpy
alias ja=jumpy -a --as
alias jd=jumpy -d
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
@@ -103,7 +111,7 @@ alias moc="mocp"
alias mt="neomutt"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias scrot='scrot -s ~/Pictures/Screenshots/%b%d::%H%M%S.png'
alias scrot='scrot -s ~/Pictures/Screenshots/%b%d%H%M%S.png'
alias mem='smem -rk'
@@ -139,11 +147,11 @@ alias checkout='git checkout'
alias master='git checkout master'
alias blame='git log --graph --pretty=oneline --abbrev-commit'
alias 2c='rclone -P sync ~/Cloud/ b2://neohomeBkt'
alias c2='rclone -P sync b2://neohomeBkt ~/Cloud/'
alias 2c='rclone -P -v --exclude "**/.thumbnail/**" sync ~/Cloud/ b2://neohomeBkt'
alias c2='rclone -P -v --exclude "**/.thumbnail/**" sync b2://neohomeBkt ~/Cloud/'
alias 2p='rclone -P sync ~/Public/ b2://neoPublicBkt'
alias p2='rclone -P sync b2://neoPublicBkt ~/Public/'
alias 2p='rclone -P -v --exclude "**/.thumbnail/**" sync ~/Public/ b2://neoPublicBkt'
alias p2='rclone -P -v --exclude "**/.thumbnail/**" sync b2://neoPublicBkt ~/Public/'
fullsync() {
echo -e "${GREEN} ☑ Upload to Pvt ${NC}";

View File

@@ -189,5 +189,5 @@ bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
status_command i3blocks -c /home/david/.config/i3blocks.conf </dev/null
}

43
desktop/i3blocks.conf Normal file
View File

@@ -0,0 +1,43 @@
[docker]
command= sh ~/Scripts/docker.sh
color=#0db7ed
interval=10
[memory]
command= sh ~/Scripts/memory.sh
label=MEM
interval=30
[disk]
command= sh ~/Scripts/disk.sh
label=HOME:
interval=30
[clicker]
command= sh ~/Scripts/getTimeWorked.sh
interval=480
color=#00f404
# Guess the weather hourly
[weather]
command=curl -Ss 'https://wttr.in?0&T&Q' | cut -c 16- | head -2 | xargs echo
interval=3600
color=#A4C2F4
# Query my default IP address only on startup
[ip]
command=curl -s ip.me | awk '{ print "IP:" $1 }'
interval=once
color=#91E78B
[covid]
command= sh ~/Scripts/corona.sh
color=#ffffff
interval=240
# Update time every 5 seconds
[time]
command=echo "Local: $(date +%H:%M) | LA: $(TZ="America/Los_Angeles" date +%H:%M)"
color=#ffffff
interval=5