diff --git a/.bashrc b/.bashrc index 11c4136..ac68a41 100644 --- a/.bashrc +++ b/.bashrc @@ -26,6 +26,8 @@ alias mv='mv -i' # ^ alias ..='cd ..' # convinient navigation alias vi='vim' # Also convinient +alias lsblk='lsblk -o name,mountpoint,label,size,fstype,uuid | egrep -v "^loop"' + alias ss='sshch' alias rtv='rtv --enable-media' @@ -120,6 +122,9 @@ if [ -f $HOME/.bash_helpers ]; then . $HOME/.bash_helpers fi + +alias genpass="apg -a 1 -M lnc -n 9 -m 26" + alias screen_record='bash screen_record.sh' export GOPATH=$HOME/go 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 -source /home/david/.config/broot/launcher/bash/br - alias repl="NODE_PATH=$(npm root -g) node" # Scaleway CLI autocomplete initialization. diff --git a/i3/config b/i3/config index 1579bbe..8c83261 100644 --- a/i3/config +++ b/i3/config @@ -14,7 +14,7 @@ set $super Mod4 # Font for window titles. Will also be used by the bar unless a different font # 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/wall.png @@ -59,6 +59,8 @@ bindsym $mod+Return exec i3-sensible-terminal # kill focused window bindsym $mod+Shift+q kill +bindsym $mod+Shift+w xdotool getwindowfocus windowkill + # start dmenu (a program launcher) #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 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) bindsym $mod+s layout stacking diff --git a/scripts/erc20balance.sh b/scripts/erc20balance.sh index 7e91817..1729ccc 100755 --- a/scripts/erc20balance.sh +++ b/scripts/erc20balance.sh @@ -1,5 +1,9 @@ #/bin/bash 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)$ \ No newline at end of file + +#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)$