diff --git a/.config/mpd/log b/.config/mpd/log index 5e03dba..52de95a 100644 --- a/.config/mpd/log +++ b/.config/mpd/log @@ -259,3 +259,176 @@ Jun 16 08:13 : client: [3] opened from [::1]:60826 Jun 16 08:13 : client: [1] closed Jun 16 08:15 : client: [0] closed Jun 16 08:15 : client: [4] opened from [::1]:60852 +Jun 16 08:17 : player: played "Japan/Uchiage Hanabi - DAOKO x Kenshi Yonezu (Cover)-wAPhltEcsYM.mp3" +Jun 16 08:30 : player: played "English or EDM/Alan Walker - 01 All Falls Down.mp3" +Jun 16 08:33 : player: played "English or EDM/Jonas Blue - Perfect Strangers.mp3" +Jun 16 08:37 : player: played "English or EDM/Avicii - Waiting For Love.mp3" +Jun 16 08:41 : player: played "English or EDM/Justin Bieber - Love Yourself.mp3" +Jun 16 08:44 : player: played "English or EDM/Major Lazer-Justin Bieber-MØ - Cold Water.mp3" +Jun 16 08:48 : player: played "Japan/Jonathan Parecki - 01 Sayonara Moon Town (From "Boruto: Naruto Next Generations").mp3" +Jun 16 08:53 : player: played "Japan/フジファブリック - 02 破顔.mp3" +Jun 16 08:57 : player: played "English or EDM/Slightly Left of Centre - RASPUTIN (Funk Overload).mp3" +Jun 16 09:00 : player: played "English or EDM/Ikson - Last Summer.mp3" +Jun 16 09:16 : player: played "Japan/RADWIMPS & Toko Miura - Grand Escape.mp3" +Jun 16 09:22 : player: played "Japan/RADWIMPS & Toko Miura - Grand Escape.mp3" +Jun 16 09:26 : player: played "Japan/.AZU. - 14 For You.mp3" +Jun 16 09:38 : player: played "Japan/RADWIMPS & Toko Miura - Grand Escape.mp3" +Jun 16 09:40 : player: played "Japan/Quruli - だいじなこと.mp3" +Jun 16 09:49 : player: played "Japan/RADWIMPS & Toko Miura - Grand Escape.mp3" +Jun 16 09:58 : player: played "Japan/RADWIMPS & Toko Miura - Grand Escape.mp3" +Jun 16 10:01 : player: played "English or EDM/Jacksepticeye - All the Way (I Believe In Steve).mp3" +Jun 16 10:05 : player: played "English or EDM/Katy Perry - Chained To The Rhythm.mp3" +Jun 16 10:08 : player: played "English or EDM/Culture Code feat. KARRA - 01 Make Me Move.mp3" +Jun 16 10:11 : player: played "English or EDM/Dua Lipa - New Rules.mp3" +Jun 16 10:15 : player: played "English or EDM/Culture Code - Make Me Move.mp3" +Jun 16 10:18 : player: played "English or EDM/Alvaro Soler - 01 La Cintura.mp3" +Jun 16 10:21 : player: played "English or EDM/Twenty One Pilots - Ride.mp3" +Jun 16 10:25 : player: played "English or EDM/Alan Walker - Spectre.mp3" +Jun 16 10:32 : player: played "Japan/RADWIMPS & Toko Miura - Grand Escape.mp3" +Jun 16 10:35 : player: played "Japan/LIT [Piano & Orchetral Cover].mp3" +Jun 16 10:38 : player: played "English or EDM/Chiiild - Darling.mp3" +Jun 16 10:42 : player: played "English or EDM/Fun. - 03 We Are Young (feat. Janelle Monáe).mp3" +Jun 16 10:58 : player: played "Japan/RADWIMPS & Toko Miura - Grand Escape.mp3" +Jun 16 11:01 : player: played "English or EDM/Jim Yosef & Anna Yvette - Linked [NCS Release].mp3" +Jun 16 11:05 : player: played "English or EDM/Migos feat. Lil Uzi Vert - Bad & Boujee (Aylen & DIV-IDE Remix).mp3" +Jun 16 11:08 : player: played "English or EDM/Hideki Sakamoto - SSB - Ultimate Main Theme.mp3" +Jun 16 11:12 : player: played "English or EDM/Maroon 5 - Don't Wanna Know (feat. Kendrick Lamar).mp3" +Jun 16 11:16 : player: played "English or EDM/Daft Punk - 04 Harder, Better, Faster, Stronger.mp3" +Jun 16 11:19 : player: played "English or EDM/Alan Walker - 04 Lily.mp3" +Jun 16 11:23 : player: played "English or EDM/Juice WRLD - Lucid Dreams.mp3" +Jun 16 11:26 : player: played "English or EDM/Jonas Blue - Mama.mp3" +Jun 16 11:30 : player: played "English or EDM/Samuel Kim - Für Elise.mp3" +Jun 16 11:33 : player: played "English or EDM/Fear, and Loathing in Las Vegas - Let Me Hear.mp3" +Jun 16 11:38 : player: played "Japan/Aimer - 06 Hoshikuzu Venus.mp3" +Jun 16 11:41 : player: played "Japan/Carole & Tuesday - 01 Round & Laundry.mp3" +Jun 16 11:45 : player: played "Japan/LiSA - Rising Hope.mp3" +Jun 16 11:48 : player: played "English or EDM/Breakbot - Baby I'm Yours - feat. Irfane.mp3" +Jun 16 11:52 : player: played "Japan/THE ORAL CIGARETTES - Kyouran Hey Kids!!.mp3" +Jun 16 11:56 : player: played "English or EDM/Avicii - Wake Me Up.mp3" +Jun 16 12:00 : player: played "English or EDM/Shawn Mendes - Imagination.mp3" +Jun 16 12:06 : player: played "Japan/Aqua Timez - 06 Mayonaka No Orchestra.mp3" +Jun 16 12:10 : player: played "Japan/LiSA - Gurenge.mp3" +Jun 16 12:14 : player: played "English or EDM/Ahrix - 01 Nova.mp3" +Jun 16 12:18 : player: played "English or EDM/J Balvin - Mi Gente (feat. Beyoncé).mp3" +Jun 16 12:21 : player: played "English or EDM/Linkin Park - In the End.mp3" +Jun 16 12:26 : player: played "English or EDM/Ed Sheeran - Photograph.mp3" +Jun 16 12:29 : player: played "English or EDM/slenderbodies - belong.mp3" +Jun 16 12:33 : player: played "Japan/Kobasolo - I wish there's no you to be around (feat. Harucha).mp3" +Jun 16 12:59 : player: played "English or EDM/Owl City - Fireflies (Said The Sky Remix).mp3" +Jun 16 13:02 : player: played "English or EDM/Jonas Blue - Rise.mp3" +Jun 16 16:03 : client: [4] closed +Jun 16 16:03 : client: [5] opened from [::1]:58928 +Jun 16 16:08 : player: played "Japan/RADWIMPS & Toko Miura - Grand Escape.mp3" +Jun 16 19:09 : client: [5] closed +Jun 16 19:09 : client: [3] closed +Jun 16 19:09 : player: played "English or EDM/Panic! At The Disco - 04 High Hopes.mp3" +Jun 17 05:48 : exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 17 05:48 : client: [0] opened from [::1]:46906 +Jun 17 06:30 : client: [1] opened from [::1]:48464 +Jun 17 06:30 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 17 06:30 : player: played "English or EDM/Alan Walker - Traveler.mp3" +Jun 17 06:31 : client: [1] closed +Jun 17 06:31 : client: [2] opened from [::1]:48472 +Jun 17 06:40 : player: played "Japan/RADWIMPS & Toko Miura - Grand Escape.mp3" +Jun 17 06:44 : player: played "English or EDM/Justin Bieber - Beauty And A Beat (Audio) ft. Nicki Minaj.mp3" +Jun 17 06:48 : player: played "English or EDM/Lil Dicky - Earth.mp3" +Jun 17 06:53 : player: played "Japan/CHiCO with HoneyWorks - Sekaiwa Koi Ni Ochiteiru.mp3" +Jun 17 06:58 : player: played "English or EDM/Samuel Kim - Für Elise.mp3" +Jun 17 07:01 : player: played "Japan/FLOW - Go!!!.mp3" +Jun 17 09:27 : player: played "Indonesia/HIVI! - Siapkah Kau 'Tuk Jatuh Cinta Lagi.mp3" +Jun 17 09:31 : player: played "Japan/LiSA - Gurenge.mp3" +Jun 17 09:35 : player: played "English or EDM/Alan Walker - Traveler.mp3" +Jun 17 09:38 : player: played "English or EDM/Jim Yosef - Linked.mp3" +Jun 17 09:43 : player: played "Japan/Hitorie - 01 Polaris.mp3" +Jun 17 09:46 : player: played "English or EDM/Fear, and Loathing in Las Vegas - Let Me Hear.mp3" +Jun 17 09:52 : player: played "Japan/ZONE - secret base~君がくれたもの~.mp3" +Jun 17 09:55 : player: played "Japan/近藤晃央 - 01 ブラックナイトタウン.mp3" +Jun 17 09:59 : player: played "English or EDM/TULE - Fearless Pt. II.mp3" +Jun 17 10:02 : player: played "Japan/LIT [Piano & Orchetral Cover].mp3" +Jun 17 10:06 : player: played "Japan/THE ORAL CIGARETTES - Kyouran Hey Kids!!.mp3" +Jun 17 10:11 : player: played "Japan/DAOKO×米津玄師 - 01 打上花火.mp3" +Jun 17 10:13 : player: played "English or EDM/RetroVision - Puzzle.mp3" +Jun 17 10:16 : player: played "English or EDM/Toby Fox - MEGALOVANIA.mp3" +Jun 17 10:20 : player: played "English or EDM/Slightly Left of Centre - RASPUTIN (Funk Overload).mp3" +Jun 17 10:23 : player: played "English or EDM/Papa Ya - Sunny.mp3" +Jun 17 10:27 : player: played "English or EDM/Cartoon - On & On.mp3" +Jun 17 10:32 : player: played "Japan/Aqua Timez - 06 Mayonaka No Orchestra.mp3" +Jun 17 10:36 : player: played "English or EDM/Yvar - What Does The Fox Say.mp3" +Jun 17 10:40 : player: played "Japan/Kobasolo - I wish there's no you to be around (feat. Harucha).mp3" +Jun 17 10:44 : player: played "English or EDM/Jonas Blue - Rise.mp3" +Jun 17 10:47 : player: played "English or EDM/Shawn Mendes - Imagination.mp3" +Jun 17 13:25 : exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 17 13:25 : client: [0] opened from [::1]:60300 +Jun 17 15:43 : client: [1] opened from [::1]:33218 +Jun 17 15:44 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 17 15:46 : player: played "English or EDM/The Verkkars - EZ4ENCE (kannatuslaulu).mp3" +Jun 17 15:49 : player: played "English or EDM/The Verkkars - 01 EZ4ENCE (kannatuslaulu).mp3" +Jun 17 16:05 : client: [1] closed +Jun 17 16:05 : client: [0] closed +Jun 17 16:05 : player: played "English or EDM/Shawn Mendes - Imagination.mp3" +Jun 18 06:28 : exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 18 06:28 : client: [0] opened from [::1]:37718 +Jun 18 06:28 : client: [1] opened from [::1]:37722 +Jun 18 06:29 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 18 06:36 : client: [1] closed +Jun 18 06:38 : player: played "Japan/RADWIMPS - スパークル - movie ver.mp3" +Jun 18 06:42 : player: played "English or EDM/Twenty One Pilots - Stressed Out.mp3" +Jun 18 16:33 : exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 18 19:11 : client: [0] closed +Jun 18 19:11 : player: played "English or EDM/TULE - Fearless Pt. II.mp3" +Jun 19 06:11 : exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 19 06:11 : client: [0] opened from [::1]:54446 +Jun 19 06:42 : client: [1] opened from [::1]:55534 +Jun 19 06:42 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 19 08:24 : player: played "English or EDM/Ampyx - Rise.mp3" +Jun 19 08:27 : player: played "English or EDM/Dua Lipa - New Rules.mp3" +Jun 19 08:30 : player: played "English or EDM/Alan Walker - 01 On My Way.mp3" +Jun 19 08:35 : player: played "Japan/RADWIMPS - 前前前世 - movie ver.mp3" +Jun 19 08:39 : player: played "Japan/Harutya ft. Kobasolo - Fiction.mp3" +Jun 19 08:43 : player: played "English or EDM/Deaf Kev - Invincible.mp3" +Jun 19 08:47 : player: played "English or EDM/Brian Tyler - Under the Black Flag.mp3" +Jun 19 08:50 : player: played "Japan/Ikimonogakari - Blue Bird.mp3" +Jun 19 08:54 : player: played "Japan/.AZU. - 14 For You.mp3" +Jun 19 08:58 : player: played "English or EDM/Tones And I - Dance Monkey.mp3" +Jun 19 09:01 : player: played "English or EDM/Emotional Oranges - Built That Way.mp3" +Jun 19 09:05 : player: played "English or EDM/Clean Bandit - Rockabye (feat. Anne-Marie) - Recorded at Spotify Studios NYC.mp3" +Jun 19 09:09 : player: played "English or EDM/Diana Boncheva feat. BanYa - Beethoven Virus.mp3" +Jun 19 09:12 : player: played "English or EDM/J Balvin - Mi Gente (feat. Beyoncé).mp3" +Jun 19 09:17 : player: played "Japan/Harutya - Mabataki.mp3" +Jun 19 13:41 : exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 19 13:41 : client: [0] opened from [::1]:51924 +Jun 19 14:33 : client: [1] opened from [::1]:53640 +Jun 19 14:33 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 19 14:37 : player: played "English or EDM/Diana Boncheva feat. BanYa - Beethoven Virus.mp3" +Jun 19 14:40 : player: played "English or EDM/Twenty One Pilots - Stressed Out.mp3" +Jun 19 14:43 : player: played "English or EDM/RetroVision - Puzzle.mp3" +Jun 19 14:46 : player: played "English or EDM/The Verkkars - 01 EZ4ENCE (kannatuslaulu).mp3" +Jun 19 14:49 : player: played "English or EDM/Clean Bandit - Rockabye (feat. Anne-Marie) - Recorded at Spotify Studios NYC.mp3" +Jun 19 14:54 : player: played "Japan/99RadioService - STAR.mp3" +Jun 19 14:58 : player: played "English or EDM/Avicii - Wake Me Up.mp3" +Jun 19 15:02 : player: played "English or EDM/Joakim Karud - Rock Angel.mp3" +Jun 19 15:07 : player: played "Japan/Masayoshi Yamazaki - One More Time, One More Chance.flac" +Jun 19 15:11 : player: played "English or EDM/Justin Bieber - Beauty And A Beat (Audio) ft. Nicki Minaj.mp3" +Jun 19 15:15 : player: played "English or EDM/Daft Punk - 04 Harder, Better, Faster, Stronger.mp3" +Jun 19 15:18 : player: played "English or EDM/Galantis - 01 No Money.mp3" +Jun 19 15:22 : player: played "Japan/Uchiage Hanabi - DAOKO x Kenshi Yonezu (Cover)-wAPhltEcsYM.mp3" +Jun 19 16:35 : client: [1] closed +Jun 19 16:35 : client: [0] closed +Jun 19 16:35 : player: played "Japan/RADWIMPS - Nandemonaiya - Movie Version.mp3" +Jun 20 06:38 : exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 20 06:38 : client: [0] opened from [::1]:53802 +Jun 20 07:06 : client: [1] opened from [::1]:55396 +Jun 20 07:06 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 20 07:07 : client: [1] closed +Jun 20 07:07 : exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted +Jun 20 08:58 : player: played "English or EDM/Migos feat. Lil Uzi Vert - Bad & Boujee (Aylen & DIV-IDE Remix).mp3" +Jun 20 09:01 : player: played "English or EDM/Alan Walker - 11 Darkside.mp3" +Jun 20 09:05 : player: played "English or EDM/Jim Yosef & Anna Yvette - Linked [NCS Release].mp3" +Jun 20 09:09 : player: played "English or EDM/Coldplay - 03 Paradise.mp3" +Jun 20 09:14 : player: played "Japan/Hitorie - 01 Polaris.mp3" +Jun 20 09:17 : player: played "English or EDM/Alvaro Soler - 01 La Cintura.mp3" +Jun 20 09:21 : player: played "English or EDM/DNCE - Cake By The Ocean.mp3" +Jun 20 09:30 : player: played "Japan/RADWIMPS - スパークル - movie ver.mp3" +Jun 20 09:33 : player: played "English or EDM/Calvin Harris - How Deep Is Your Love.mp3" +Jun 20 09:37 : player: played "English or EDM/Rynx - Want You.mp3" +Jun 20 09:40 : player: played "Japan/Harutya ft. Kobasolo - Fiction.mp3" diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index bad8219..e950ffc 100755 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -64,7 +64,7 @@ super + ctrl + {m,x,y,z} # # focus the node in the given direction -super + {_,shift + }{j,k,i,l} +super + {_,shift + }{h,j,k,l} bspc node -{f,s} {west,south,north,east} # focus the node for the given path jump @@ -98,7 +98,7 @@ super + {_,shift + }{1-9,0} # # preselect the direction -super + ctrl + {j,k,i,l} +super + ctrl + {h,j,k,l} bspc node -p {west,south,north,east} # preselect the ratio @@ -118,11 +118,11 @@ super + ctrl + shift + space # # expand a window by moving one of its side outward -super + alt + {j,k,i,l} +super + alt + {h,j,k,l} bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0} # contract a window by moving one of its side inward -super + alt + shift + {j,k,i,l} +super + alt + shift + {h,j,k,l} bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} # move a floating window diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 3496cea..4136ad4 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -10,6 +10,9 @@ rateUSD #python ~/Currency/USD2IDR/rate.py #PYTHON IS JUST TOO SLOW FOR TERMINAL #sh ~/.scripts/motd.sh +# Theme +[ -f ~/.config/zsh/theme ] && source ~/.config/zsh/theme + # History in cache directory HISTFILE=~/.cache/zsh/zsh_history HISTSIZE=1000 @@ -17,42 +20,42 @@ SAVEHIST=1000 # Theme #ZSH_THEME="zi" -ZSH_THEME="spaceship" +# ZSH_THEME="spaceship" # configuration -SPACESHIP_CHAR_SYMBOL="$> " -SPACESHIP_GIT_BRANCH_COLOR="magenta" -SPACESHIP_GIT_PREFIX="" -SPACESHIP_GIT_SUFFIX="" -SPACESHIP_GIT_BRANCH_SUFFIX="" -SPACESHIP_GIT_STATUS_PREFIX=' ' -SPACESHIP_GIT_STATUS_SUFFIX='' -SPACESHIP_EXEC_TIME_SHOW=false -SPACESHIP_DIR_COLOR="blue" -SPACESHIP_DIR_TRUNC_PREFIX="~/" -SPACESHIP_PYENV_SYMBOL="" -ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#60C0FF,bold,underline" -ZSH_AUTOSUGGEST_HISTORY_IGNORE="ls *,cd *" +# SPACESHIP_CHAR_SYMBOL="$> " +# SPACESHIP_GIT_BRANCH_COLOR="magenta" +# SPACESHIP_GIT_PREFIX="" +# SPACESHIP_GIT_SUFFIX="" +# SPACESHIP_GIT_BRANCH_SUFFIX="" +# SPACESHIP_GIT_STATUS_PREFIX=' ' +# SPACESHIP_GIT_STATUS_SUFFIX='' +# SPACESHIP_EXEC_TIME_SHOW=false +# SPACESHIP_DIR_COLOR="blue" +# SPACESHIP_DIR_TRUNC_PREFIX="~/" +# SPACESHIP_PYENV_SYMBOL="" # vimrc export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC' - # vi mode #bindkey -v #export KEYTIMEOUT=1 # Plugins -plugins=( -git -fast-syntax-highlighting -#zsh-syntax-highlighting -zsh-autosuggestions -) +ZSH_PLUGIN="$XDG_DATA_HOME/zsh/plugins" +#plugins=( +#git +#fast-syntax-highlighting +##zsh-syntax-highlighting +#zsh-autosuggestions +#) -source $ZSH/oh-my-zsh.sh +# source $ZSH/oh-my-zsh.sh # Binds/Alias (Preventing from reverted to the original one) [ -f ~/.config/zsh/aliases ] && source ~/.config/zsh/aliases [ -f ~/.config/zsh/keybinds ] && source ~/.config/zsh/keybinds -#emulate -R zsh -c 'source $ZSH_PLUGINS/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' +# emulate -R zsh -c 'source $ZSH_PLUGINS/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' +source $ZSH_CUSTOM/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null +source $ZSH_CUSTOM/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh 2>/dev/null #source $ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null #source $ZSH_CUSTOM/plugins/fsh/fast-syntax-highlighting.plugin.zsh diff --git a/.config/zsh/aliases b/.config/zsh/aliases index 88fecf8..e5014e1 100644 --- a/.config/zsh/aliases +++ b/.config/zsh/aliases @@ -22,21 +22,14 @@ alias weather='curl wttr.in' alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash' #install -alias pac='sudo pacman' -alias pacS='sudo pacman -S' -alias pacSy='sudo pacman -Sy' -alias pacSyu='sudo pacman -Syu' -alias pacR='sudo pacman -R' -alias aur='yay' -alias aurS='yay -S' -alias aurSy='yay -Sy' -alias aurSyu='yay -Syu' -alias aurR='yay -R' +alias p='sudo pacman' +alias a='yay' #ripper alias spotifyrip='spotify-ripper -u palembani@gmail.com' -alias yt='youtube-dl' -alias yta='youtube-dl -x --audio-format' +alias yt='youtube-dl --add-metadata' +alias yta='youtube-dl --add-metadata -x --audio-format' +alias crunchyroll-dl='youtube-dl --write-sub --sub-lang enUS --cookies="/home/ziro/Downloads/cookies.txt"' alias xreload='xrdb $HOME/.config/Xresources' #clean up @@ -55,6 +48,7 @@ alias storagelist='lsblk -f' alias ..='cd ..' alias ...='cd ../..' alias q='exit' +alias l='exa --color=always --group-directories-first' # my preferred listing alias ls='exa --color=always --group-directories-first' # my preferred listing alias la='exa -a --color=always --group-directories-first' # all files and dirs alias ll='exa -l --color=always --group-directories-first' # long format @@ -98,6 +92,7 @@ alias cdclg='cd "$HOME/my Files/Kuliah/"' alias cdwine='cd "$HOME/.local/share/wineprefixes/"' #Git Aliases +alias gca='git commit --all' alias gR='git restore' alias gs='git status' alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME' diff --git a/.config/zsh/theme b/.config/zsh/theme new file mode 100644 index 0000000..9de1e7b --- /dev/null +++ b/.config/zsh/theme @@ -0,0 +1,32 @@ +#!/bin/env zsh +autoload -Uz vcs_info +precmd_vcs_info() { vcs_info } +precmd_functions+=( precmd_vcs_info ) +setopt prompt_subst +zstyle ':vcs_info:*' stagedstr 'M' +zstyle ':vcs_info:*' unstagedstr '!' +zstyle ':vcs_info:*' check-for-changes true +zstyle ':vcs_info:git:*' formats '%F{5} %b %F{1}%c%u %f' +zstyle ':vcs_info:git*+set-message:*' hooks git-untracked +zstyle ':vcs_info:*' enable git ++vi-git-untracked() { + + # git status ahead + if [[ $(git status --porcelain -b | grep '^## [^ ]\+ .*ahead') ]]; then + hook_com[unstaged]+='%F{1}⇡%f' + fi + + # git untracked + if [ $(git rev-parse --is-inside-work-tree 2> /dev/null) = 'true' ] && \ + [ $(git ls-files --other --directory --exclude-standard | sed q | wc -l | tr -d ' ') = 1 ] ; then + hook_com[unstaged]+='%F{1}?%f' + fi +} + +precmd () { vcs_info } +#RPROMPT=\$vcs_info_msg_0_ +PS1=" +%B%F{blue}%~ \$vcs_info_msg_0_ +%F{green}$>%f%b " +ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#60C0FF,bold,underline" +ZSH_AUTOSUGGEST_HISTORY_IGNORE="ls *,cd *"