fixed my i3blocks bar, cleaned up some files and added snap and i3block-contrib

This commit is contained in:
Rick van Lieshout 2019-09-16 08:42:14 +02:00
parent 9b7ed6d222
commit 4d68d00007
8 changed files with 35 additions and 43 deletions

View File

@ -11,11 +11,22 @@ alias docker-clean-containers='docker container prune -f --filter "until=48h"'
alias docker-clean-images='docker image prune -a -f --filter "until=48h"'
alias docker-clean-volumes='docker volume prune -f --filter "label!=keep"'
alias docker-clean-networks='docker network prune -f --filter "until=24h"'
alias docker-clean-all='docker system prune -f --volumes'
alias docker-clean-all='stop-dockers && docker-clean-containers && docker-clean-images && docker-clean-volumes && docker-clean-networks'
#upload text to sprunge.us
#USAGE cat file.txt | sprunge
alias sprunge='curl -F "sprunge=<-" http://sprunge.us'
# Kubernetes commands
alias mkubectl='microk8s.kubectl'
alias kubestart='microk8s.start'
alias kubestop='microk8s.stop'
#dotnet core
alias efupdate="dotnet ef database update"
alias efmigrate="dotnet ef migrations add"
alias efremove="dotnet ef migrations remove"
alias dotnetnew="dotnet new webapi -o "
# git
alias gitremovelocalbranches='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
alias untangle-line-endings='find ./ -type f -exec dos2unix {} \;'
## pacman and trizen
alias aur='trizen --noconfirm'
@ -34,12 +45,6 @@ alias preferredapps='exo-preferred-applications'
#show 5 most memory consuming apps
alias psmem='ps auxf | sort -nr -k 5 | head -n 5'
#dotnet core
alias efupdate="dotnet ef database update"
alias efmigrate="dotnet ef migrations add"
alias efremove="dotnet ef migrations remove"
alias dotnetnew="dotnet new webapi -o "
##utility
alias nmapscan='nmap -n -sP'
alias pia='nohup sh /opt/pia/run.sh &>/dev/null & disown'
@ -90,15 +95,6 @@ alias handbrake='ghb'
# grub
alias update-grub='grub-mkconfig -o /boot/grub/grub.cfg'
# git
alias gitremovelocalbranches='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
alias untangle-line-endings='find ./ -type f -exec dos2unix {} \;'
# development
alias chromecors='google-chrome-stable --disable-web-security --user-data-dir="~/.chrome-unsafe"'
## Functions
# function to cd up a couple of times
@ -143,9 +139,9 @@ isup(){
if ! [ -z "$1" ]; then
ping -c 3 $1 > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "$1 Seems to be offline";
echo "$1 seems to be offline";
else
echo "$1 Seems to be online";
echo "$1 seems to be online";
fi
fi
}

View File

@ -1,17 +1,14 @@
#
# ~/.bashrc
#
# if powerline-shell is available use it.
function _update_ps1() {
if hash powerline-shell 2>/dev/null; then
PS1=$(powerline-shell $?)
fi
}
source ~/.alias
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
source ~/.alias
source ~/.custom
source ~/.variables
@ -22,7 +19,6 @@ if hash dotnet 2>/dev/null; then
export PATH="${PATH}:${DOTNET_ROOT}:~/.dotnet/tools"
fi
#... :P fancy stuffs
#screenfetch -t -A "UBUNTU"
neofetch

View File

@ -1,3 +1,3 @@
#!/bin/sh
xrandr --output eDP-1 --mode 3840x2160 --pos 0x0 --rotate normal --output DP-1-2 --off --output HDMI-2 --off --output HDMI-1 --off --output DP-1 --off --output DP-1-3 --off --output DP-2 --off --output DP-1-1 --off
xrandr --output eDP-1 --primary --mode 3840x2160 --pos 0x0 --rotate normal --output DP-1-2 --off --output HDMI-2 --off --output HDMI-1 --off --output DP-1 --off --output DP-1-3 --off --output DP-2 --off --output DP-1-1 --off
xrdb -merge /home/mastermindzh/.Xresources.undocked

View File

@ -3,7 +3,6 @@ notifyconf
enpass-bin
insync
visual-studio-code-insiders
gpmdp
ttf-font-awesome-4
awesome-terminal-fonts-git
otf-droid-sans-mono-powerline-git
@ -12,3 +11,5 @@ dive
xorg-xev
spotify
networkmanager-l2tp
snapd
i3blocks-contrib

View File

@ -22,7 +22,6 @@ zenity
xorg-xrandr
networkmanager
eog
screenfetch
python
python-pip
gdm

View File

@ -24,7 +24,7 @@
#
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
command=/usr/lib/i3blocks/$BLOCK_NAME
command=/usr/lib/i3blocks/$BLOCK_NAME/$BLOCK_NAME
separator_block_width=15
markup=none

View File

@ -225,7 +225,7 @@ alias sp-prev=" sp-dbus Previous"
SPOTIFY_PID="$(pidof -s spotify)"
if [[ -z "$SPOTIFY_PID" ]]; then
echo "Error: Spotify is not running."
echo "Spotify is not running."
exit 1
fi