Sync workstation

This commit is contained in:
David Aizenberg
2021-05-23 06:08:06 +03:00
parent ab92994e20
commit 0bd4bee6de
3 changed files with 15 additions and 6 deletions

View File

@@ -26,6 +26,8 @@ alias mv='mv -i' # ^
alias ..='cd ..' # convinient navigation alias ..='cd ..' # convinient navigation
alias vi='vim' # Also convinient alias vi='vim' # Also convinient
alias lsblk='lsblk -o name,mountpoint,label,size,fstype,uuid | egrep -v "^loop"'
alias ss='sshch' alias ss='sshch'
alias rtv='rtv --enable-media' alias rtv='rtv --enable-media'
@@ -120,6 +122,9 @@ if [ -f $HOME/.bash_helpers ]; then
. $HOME/.bash_helpers . $HOME/.bash_helpers
fi fi
alias genpass="apg -a 1 -M lnc -n 9 -m 26"
alias screen_record='bash screen_record.sh' alias screen_record='bash screen_record.sh'
export GOPATH=$HOME/go export GOPATH=$HOME/go
PATH=$GOPATH/bin:$PATH PATH=$GOPATH/bin:$PATH
@@ -129,8 +134,6 @@ export PATH="$PATH:$HOME/.rvm/bin"
[[ -s "/etc/profile.d/grc.bashrc" ]] && source /etc/profile.d/grc.bashrc [[ -s "/etc/profile.d/grc.bashrc" ]] && source /etc/profile.d/grc.bashrc
source /home/david/.config/broot/launcher/bash/br
alias repl="NODE_PATH=$(npm root -g) node" alias repl="NODE_PATH=$(npm root -g) node"
# Scaleway CLI autocomplete initialization. # Scaleway CLI autocomplete initialization.

View File

@@ -14,7 +14,7 @@ set $super Mod4
# Font for window titles. Will also be used by the bar unless a different font # Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. # is used in the bar {} block below.
font pango:monospace 8 font pango:monospace 10
#exec feh --bg-fill /home/david/Pictures/Wallpapers/ellie_full.jpg #exec feh --bg-fill /home/david/Pictures/Wallpapers/ellie_full.jpg
exec feh --bg-fill /home/david/Pictures/wall.png exec feh --bg-fill /home/david/Pictures/wall.png
@@ -59,6 +59,8 @@ bindsym $mod+Return exec i3-sensible-terminal
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
bindsym $mod+Shift+w xdotool getwindowfocus windowkill
# start dmenu (a program launcher) # start dmenu (a program launcher)
#bindsym $mod+d exec dmenu_run #bindsym $mod+d exec dmenu_run
@@ -110,7 +112,7 @@ bindsym $mod+f fullscreen toggle
for_window [title="^scratchpad$"] border 1pixel, floating enable, move scratchpad for_window [title="^scratchpad$"] border 1pixel, floating enable, move scratchpad
bindsym F1 [instance="scratchpad"] scratchpad show; sticky enable bindsym F1 [instance="scratchpad"] scratchpad show; sticky enable
exec urxvt -name scratchpad -geometry 200x50 exec kitty --title scratchpad --name scratchpad
# change container layout (stacked, tabbed, toggle split) # change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking bindsym $mod+s layout stacking

View File

@@ -1,5 +1,9 @@
#/bin/bash #/bin/bash
source ~/.secrets/ethplorer.api source ~/.secrets/ethplorer.api
USDT=$(curl -s "https://api.ethplorer.io/getAddressInfo/$ETH_ADDR?apiKey=$ETH_API_KEY" | jq .tokens[0].balance)
echo USDT: $(expr $USDT / 1000000)$ #USDT=$(curl -s "https://api.ethplorer.io/getAddressInfo/$ETH_ADDR?apiKey=$ETH_API_KEY" | jq .tokens[0].balance)
USDT=$(curl -s "https://api.ethplorer.io/getAddressInfo/$ETH_ADDR?apiKey=$ETH_API_KEY" | jq -r '(."ETH".balance)*(."ETH"."price"."rate")')
echo ETH=${USDT%.*}$
#echo USDT: $(expr $USDT)$