Skip to content

Commit

Permalink
update before migrating to awesome
Browse files Browse the repository at this point in the history
  • Loading branch information
keystroke3 committed Apr 24, 2022
1 parent 00c9b08 commit 5345508
Show file tree
Hide file tree
Showing 393 changed files with 65 additions and 28,428 deletions.
14 changes: 11 additions & 3 deletions .bin/finder
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/bin/bash
fuzz=$(rg -j 4 --files ~/ | dmenu -i -l 10 -p File: -nb '#1E1C31' -nf '#ccc' -sb '#E5C07B' -sf '#1E1C31')
mimeo "$fuzz"
#!/bin/zsh
HIST_FILE=~/.cache/finders/dmenufinder
RG="$(rg -j 4 --files ~/)"
HIST="$(head -n9 $HIST_FILE)"
FUZZ="$(echo $HIST $RG | dmenu -i -l 10 -p File: -nb '#1E1C31' -nf '#ccc' -sb '#E5C07B' -sf '#1E1C31')"
if [[ -f $FUZZ ]]
then
echo "$HIST" | grep -vF "$FUZZ" | sed "1i$FUZZ" > $HIST_FILE
mimeo "$FUZZ"
fi

# mime=$(xdg-mime query filetype "$fuzz")
# fileclass=$(echo $mime | awk -F/ '{print $1}' | tr -d "\n")
# filetype=$(echo $mime | awk -F/ '{print $2}' | tr -d "\n")
Expand Down
2 changes: 0 additions & 2 deletions .bin/lf-mimeopen

This file was deleted.

1 change: 0 additions & 1 deletion .bin/minimizerd

This file was deleted.

5 changes: 3 additions & 2 deletions .bin/vp-finder
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# fuzz=$(fd . $HOME -H | rofi -dmenu -theme-str '#window { width: 70%; }' 20 -i -p 'Open Files: ')
# fuzz=$(fd . /home/ted/Videos/ -pt d | rofi -dmenu -m -1 -theme-str '#window { width: 70%; height: 50%; } #listview { columns: 1;}' 20 -i -p 'Folder Name:')
fuzz=$(fd . /home/ted/Videos/ -pt d | dmenu -i -l 10 -p File: -nb '#1E1C31' -nf '#ccc' -sb '#98C379' -sf '#1E1C31')
#
[[ "$1" == "resume" ]] && color=#98c379 || color=#e06c75
fuzz=$(fd . /home/ted/Videos/ -pt d | dmenu -i -l 10 -p File: -nb '#1E1C31' -nf '#ccc' -sb $color -sf '#1E1C31')
[[ "$1" == "resume" ]] && mpv "$fuzz" --resume-playback || mpv "$fuzz" --no-resume-playback

36 changes: 30 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
vim/plugged/
vim/*.tmp
vim/pack/
vim/viminfo
.bin/videofinder.log
mpv/watch_later/
*
!.bin/
!.git
!.config/alacritty
!.config/bspwm
!.config/dunst
!.config/kitty
!.config/lf
!.config/mpv
!.config/ranger
!.config/rofi
!.config/screenshots
!.config/sxhkd
!.config/vim
!.config/wallpapers
!.config/yay
!.config/zathura
!.aliases
!.bash_profile
!.bash_prompt
!.bashrc
!.fzf.zsh
!.gitignore
!.venv
!.xinitrc
!.Xresources
!.zprofile
!.zshrc
!picom.conf
!README.md
18 changes: 6 additions & 12 deletions .zprofile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export PATH="$HOME/bin:$PATH";
export PATH="$HOME/bin:$PATH"
#export PATH="$HOME.nvm/\*/bin:$PATH"
export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
export FZF_DEFAULT_COMMAND='fd --hidden --type f . $HOME'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
Expand All @@ -7,6 +8,8 @@ export PATH=$HOME/.bin:/usr/local/bin:$PATH
export PATH="$HOME/.local/bin:$PATH"
export EDITOR="nvim"
export VISUAL="nvim"


#set history size
export HISTSIZE=10000
#save history after logout
Expand All @@ -20,16 +23,7 @@ setopt HIST_IGNORE_DUPS
# add timestamp for each entry
setopt EXTENDED_HISTORY

# export PYTHONPATH="${PYTHONPATH}:/home/ted/.local/bin"

### "bat" as manpager
export MANPAGER="sh -c 'col -bx | bat -l man -p'"

# if [[ "$(tty)" = "/dev/tty1" ]]; then
# pgrep bspwm || startx "$HOME/.xinitrc"
# fi
# [[ $- != *i* ]] && return
# for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
# [ -r "$file" ] && [ -f "$file" ] && source "$file";
# done;
# unset file;
#export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
#[ -s "$NVM_DIR/nvm.sh --no-use" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
16 changes: 15 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source ~/.config/zsh/zsh-autosuggestions.zsh
source ~/.config/zsh/zsh-vim-mode.zsh
source ~/.config/zsh/zsh-history-substring-search.zsh
source ~/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
#source ~/.config/zsh/autoswitch_virtualenv.plugin.zsh
source ~/.config/zsh/autoswitch_virtualenv.plugin.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
[ -f ~/.zprofile ] && source ~/.zprofile
[ -f ~/.aliases ] && source ~/.aliases
Expand All @@ -16,6 +16,16 @@ autoload -U +X compinit && compinit
autoload -Uz url-quote-magic
autoload -Uz bracketed-paste-magic

open-file(){
fzfopen
}
jump(){
_dir="$(fzfjump)"
[ -n $_dir ] && cd "$_dir" && zle reset-prompt
}
zle -N jump{,}
bindkey '^o' jump


# ++++ New history commands ++++

Expand All @@ -33,3 +43,7 @@ bindkey -M emacs '^N' history-substring-search-down

eval "$(starship init zsh)"


# export NVM_DIR="$HOME/.nvm"
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
59 changes: 0 additions & 59 deletions alacritty/alacritty.yml

This file was deleted.

67 changes: 0 additions & 67 deletions bspwm/autostart.sh

This file was deleted.

55 changes: 0 additions & 55 deletions bspwm/bspwmrc

This file was deleted.

Loading

0 comments on commit 5345508

Please sign in to comment.