diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-04-02 14:22:19 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-04-02 14:22:19 +0300 |
commit | 06ebba4c53dc2751a2aad1cbccb870bb7db6dc07 (patch) | |
tree | 3ed4a5006d7f66b54bcf7e32df2add4bcf9a5911 /dotfiles/.config/zsh/shortcuts | |
parent | 348fd5f7ffd4586b8599615dd453dcc61af3ace7 (diff) | |
download | swayrice-06ebba4c53dc2751a2aad1cbccb870bb7db6dc07.tar.gz swayrice-06ebba4c53dc2751a2aad1cbccb870bb7db6dc07.zip |
HUGE home cleanup
Diffstat (limited to 'dotfiles/.config/zsh/shortcuts')
-rw-r--r-- | dotfiles/.config/zsh/shortcuts | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dotfiles/.config/zsh/shortcuts b/dotfiles/.config/zsh/shortcuts new file mode 100644 index 0000000..a47bbba --- /dev/null +++ b/dotfiles/.config/zsh/shortcuts @@ -0,0 +1,48 @@ +#!/bin/sh + +# Some aliases +alias v="nvim" +alias abook="abook -C $HOME/.config/abook/abookrc --datafile $HOME/Documents/contacts/addressbook" +alias eslint="./node_modules/.bin/eslint" +alias ls="ls -hN --color=auto --group-directories-first" +alias tmux="tmux -f $HOME/.config/tmux/tmux.conf" +weath() { curl wttr.in/$1 ;} # Check the weather (give city or leave blank). +corona() { curl https://corona-stats.online/$1 ;} # It's corona time +wintitle() { printf "\033]2;%s\a" "$1";} + +# Generic shortcuts +alias music="ncmpcpp" +alias clock="ncmpcpp -s clock" +alias news="newsboat" +alias files="ranger" +alias audio="ncpamixer" +alias calendar="calcurse" +alias contacts="abook" +alias calc="R --no-save" + +# Mounting drive shortcuts +alias mnt="udisksctl mount -b" +alias umnt="udisksctl unmount -b" +alias dlock="udisksctl lock -b" +alias dulock="udisksctl unlock -b" + +# Internet +alias yt="youtube-dl --add-metadata -ic" # Download video link +alias yta="youtube-dl --add-metadata -xic" # Download only audio +alias YT="youtube-viewer" +alias starwars="telnet towel.blinkenlights.nl" + +# Audio and Music +alias mute="lmc mute" +alias vu="lmc up" +alias vd="lmc down" +alias play="mpc toggle" +alias next="mpc next" +alias prev="mpc prev" +alias pause="mpc pause" +alias beg="mpc seek 0%" +alias lilbak="mpc seek -10" +alias lilfor="mpc seek +10" +alias bigbak="mpc seek -120" +alias bigfor="mpc seek +120" + |