“Pywal is a tool that generates a color palette from the dominant colors in an image. It then applies the colors system-wide and on-the-fly in all of your favorite programs.”
I’m using Variety to change my wallpaper every day automatically. To always get the right colors in my terminal I added some lines in my .zshrc that will always grab the current wallpaper and pass it to PyWal. I’m sure a bash pro would do this in just one line… 🙂
sudo micro /etc/default/grub
#Setze von 0 auf 5
GRUB_TIMEOUT=5
sudo update-grub
Create new shortcut for the “System Monitor”
Copying my dotfiles over. First the .aliases
alias zoop="echo '👉😎👉 ~Zoop!~' | lolcat"
alias moo='fortune | cowsay | lolcat'
alias tux='fortune | cowsay -f tux | lolcat'
alias gnu='fortune | cowsay -f gnu | lolcat'
alias ll='ls -Al --color=auto --block-size=MB'
alias ls='ls -l --color=auto --block-size=MB'
alias cp='cp -vR'
alias rm='rm -vR'
alias mv='mv -v'
alias ln='ln -v'
alias mkdir='mkdir -v'
alias chown='chown -v'
alias chmod='chmod -v'
alias rmdir='rmdir -v'
alias tar='tar -xvf'
alias sudo="sudo " #Allows for aliases to work with sudo.
alias wget='wget -qc --show-progress' #Download with WGet with pretty and useful features.
alias grep='grep -sI --color=auto' #Colorful (auto) 'grep' output.
alias psf='ps -faxc -U $UID -o pid,uid,gid,pcpu,pmem,stat,comm' #Less excessive, current-user-focused ps alternative.
alias klog="sudo dmesg -t -L=never -l emerg,alert,crit,err,warn --human --nopager" #Potentially useful option for viewing the kernel log.
alias lsblk='lsblk -o name,label,fstype,size,type,uuid'
# Micro Editor
alias mic='micro'
# Column bereitet daten in spalten auf
alias mount='mount | column -t'
#mkdir && cd
function mcd() {
mkdir -p $1
cd $1
}
alias dl='cd "$HOME"/Downloads'
Followed by my .zshrc
neofetch | lolcat
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
# ZSH_THEME="robbyrussell"
ZSH_THEME=powerlevel10k/powerlevel10k
# zsh-syntax-highlighting has to be the last plugin!
plugins=(git tmux zsh-autosuggestions zsh-syntax-highlighting)
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='micro'
else
export EDITOR='nano'
fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
source $ZSH/oh-my-zsh.sh
if [ -f ~/.aliases ]; then
. ~/.aliases
fi
eval $(thefuck --alias FUCK)
If a pdf file is located in a different folder, you have to add the path like this: $home/Downloads/source1.pdf If you want to merge all pdf’s of the current folder you cant type:
Suspend a application. Resume it again by fg (resume in foreground) and bg (resume in background). Use jobs if you have multiple suspended applications and use fg %# (where # is the job number) to get it back on screen or end it with kill %#.
Ctrl-D
is same as typing exit
Pos1
like Ctrl-A
End
like Ctrl-E
Ctrl-R
Search terminal history
Some of the shortcuts are also recognized by other applications, like Ctrl-U on Ubuntu’s graphical login screen.
If you downloaded a series there are often folders for each episode. Each episode folder often includes another folder called “Sample” with a short demo video file.
Series -> Season 01 -> Episode 01 -> Sample -> sample.mkv
To get rid of these you can use the “find” and “rm” command. To remove each sample folder with its content you have to use the remove command with an “-r”.
To disable password authentication permanently you have to edit the ssh config. Be sure to first backup before editing. Now just set PasswordAuthentication to “no” in your config and restart the ssh daemon.
cp /etc/ssh/sshd_config /etc/ssh/sshd_config_bak
nano /etc/ssh/sshd_config
service ssh restart
Simple plugin to get autosuggestions from your history while typing in your Zsh shell. If you are using Oh My Zsh, the installtion is done in 3 steps. Look here. Just grab the plugin:
“Pywal is a tool that generates a color palette from the dominant colors in an image. It then applies the colors system-wide and on-the-fly in all of your favourite programs.” For the installation look at Github. In my case I had to run the following command: