summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2025-04-29 09:25:30 +0530
committerVikas Kushwaha <dev@vikas.rocks>2025-04-29 09:28:54 +0530
commit7df7120b1ae66ed0e9a7c6ed9b224ba44ea1d920 (patch)
tree1a9f78045786dbbad346204d3957194af04988e4 /.config
parenta2860b969e97e47a2b1c0ddb7161adb5b35c06f3 (diff)
Updates
Diffstat (limited to '.config')
-rw-r--r--.config/Zeal/Zeal.conf2
-rw-r--r--.config/fd/ignore1
-rw-r--r--.config/gtk-2.0/gtkfilechooser.ini4
-rw-r--r--.config/i3/config6
-rw-r--r--.config/keepassxc/keepassxc.ini3
-rw-r--r--.config/lf/lfrc22
-rw-r--r--.config/nvim/coc/coc-settings.json9
-rw-r--r--.config/nvim/dev.vim2
-rw-r--r--.config/nvim/init.vim43
m---------.config/nvim/pack/plugins/opt/vim-javascript0
m---------.config/nvim/pack/plugins/opt/vim-jsx0
m---------.config/nvim/pack/plugins/opt/vim-jsx-improve0
m---------.config/nvim/pack/plugins/opt/vim-jsx-pretty0
-rw-r--r--.config/shell/aliasrc1
-rw-r--r--.config/shell/bm-dirs10
-rw-r--r--.config/shell/bm-files4
-rw-r--r--.config/shell/profile14
-rw-r--r--.config/yt-dlp/videos.conf2
-rw-r--r--.config/zsh/.zshrc2
-rw-r--r--.config/zsh/zprofile4
20 files changed, 75 insertions, 54 deletions
diff --git a/.config/Zeal/Zeal.conf b/.config/Zeal/Zeal.conf
index 303b565..2344fae 100644
--- a/.config/Zeal/Zeal.conf
+++ b/.config/Zeal/Zeal.conf
@@ -46,7 +46,7 @@ fuzzy_search_enabled=true
[state]
splitter_geometry=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1X\0\0\x5P\0\xff\xff\xff\xff\x1\0\0\0\x1\0)
toc_splitter_state=@ByteArray()
-window_geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\x1\xe\0\0\x6m\0\0\x4\x8e\0\0\0\0\0\0\x1\xe\0\0\x6m\0\0\x4\x8e\0\0\0\0\x2\0\0\0\x6n\0\0\0\0\0\0\x1\xe\0\0\x6m\0\0\x4\x8e)
+window_geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\x1\xe\0\0\x6m\0\0\x4\x8e\0\0\0\x1\0\0\x1'\0\0\x6l\0\0\x4\xa7\0\0\0\0\x2\0\0\0\x6n\0\0\0\0\0\0\x1\xe\0\0\x6m\0\0\x4\x8e)
[tabs]
open_new_tab_after_active=true
diff --git a/.config/fd/ignore b/.config/fd/ignore
index 4bfcd08..0ce8d71 100644
--- a/.config/fd/ignore
+++ b/.config/fd/ignore
@@ -3,3 +3,4 @@ node_modules
.thumbnails
.stignore
.stfolder
+.ipynb_checkpoints
diff --git a/.config/gtk-2.0/gtkfilechooser.ini b/.config/gtk-2.0/gtkfilechooser.ini
index bc097de..3b97141 100644
--- a/.config/gtk-2.0/gtkfilechooser.ini
+++ b/.config/gtk-2.0/gtkfilechooser.ini
@@ -2,8 +2,8 @@
LocationMode=path-bar
ShowHidden=false
ShowSizeColumn=true
-GeometryX=393
-GeometryY=71
+GeometryX=2550
+GeometryY=246
GeometryWidth=1140
GeometryHeight=855
SortColumn=name
diff --git a/.config/i3/config b/.config/i3/config
index 37c3ac7..952f000 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -17,7 +17,7 @@
# pulseaudio system tray
# exec --no-startup-id pasystray
-exec st -c dropdown_tmuxdd -e tmux
+exec st -c dropdown_tmuxdd -e tmux new -A -s ddterm
################################
### Commonly Used Variables: ###
@@ -67,7 +67,7 @@ bindsym $super+F7 exec --no-startup-id sh -c 'find ~/.librewolf -mindepth 1 -max
bindsym $super+b exec --no-startup-id librewolf-open
bindsym $super+c exec --no-startup-id edit-graphical-buffer
bindsym $super+x exec --no-startup-id toggle-xeyes
-bindsym $super+i exec --no-startup-id sh -c 'xdotool type "$(grep -v "^#\|^\s*$" ~/Documents/Notes/bookmarks.txt | tac | dmenu -i -l 50 | cut -d\ -f1)"'
+bindsym $super+i exec --no-startup-id sh -c 'xdotool type "$(grep -v "^#\|^\s*$" ~/Documents/Notes/bookmarks.txt | tac | dmenu -i -l 50 | cut -d# -f1)"'
bindsym $super+Shift+z exec --no-startup-id dmenu-zeal
bindsym $super+Shift+b exec --no-startup-id librewolf-open "$(xprint)"
bindsym $super+Shift+v exec --no-startup-id st -c "dropdown_clipboard" -e sh -c 'xclip -sel clip -o >/tmp/clipboard && nvim /tmp/clipboard && xclip -sel clip -i /tmp/clipboard || read -r ans'
@@ -625,12 +625,14 @@ mode "$mode_gaps_outer" {
bindsym $super+BackSpace mode "$mode_system"
set $mode_system (l)ock (e)xit switch_(u)ser (s)uspend (h)ibernate (r)eboot (Shift+s)hutdown
mode "$mode_system" {
+ bindsym o exec --no-startup-id i3exit off, mode "default"
bindsym l exec --no-startup-id i3exit lock, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym u exec --no-startup-id i3exit switch_user, mode "default"
bindsym s exec --no-startup-id i3exit suspend, mode "default"
bindsym h exec --no-startup-id i3exit hibernate, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default"
+ bindsym $alt+s exec --no-startup-id i3exit sleep, mode "default"
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
# exit system mode: "Enter" or "Escape"
diff --git a/.config/keepassxc/keepassxc.ini b/.config/keepassxc/keepassxc.ini
index 4350875..be49131 100644
--- a/.config/keepassxc/keepassxc.ini
+++ b/.config/keepassxc/keepassxc.ini
@@ -36,3 +36,6 @@ ExcludedChars=
Length=60
Numbers=false
SpecialChars=false
+
+[Security]
+IconDownloadFallback=true
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index 07a1d5e..a9b2874 100644
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -57,12 +57,12 @@ cmd extract ${{
*.tar.bz|*.tar.bz2|*.tbz|*.tbz2) tar xjvf "$f" ;;
*.tar.gz|*.tgz) tar xzvf "$f" ;;
*.tar.xz|*.txz) tar xJvf "$f" ;;
- *.gz) gunzip "$f" ;;
- *.zip|*.epub) unzip "$f" ;;
*.rar) unrar x "$f" ;;
*.7z) 7z x "$f" ;;
*.zst) unzstd "$f" ;;
- *) echo "Unsupported format" >&2; exit 1 ;;
+ *.gz) gunzip "$f" ;;
+ *) unzip "$f" ;;
+ # *) echo "Unsupported format" >&2; exit 1 ;;
esac done
}}
@@ -110,12 +110,12 @@ map <a-s> :source ~/.config/lf/lfrc
map <tab> :toggle; down
map <backtab> :toggle; up
map Z :toggle; up
-map <c-j> select_eval "fzf --reverse --query '!/$ ' --header-first --header='Jump to location'"
-map <backspace> ${{ lf -remote "send $id select \"$(cat \"${OPEN_HISTFILE:-${XDG_STATE_HOME:-$HOME/.local/state}/open_history}\" |
- fzf --tac --reverse --header-first --header='File History')\"" }}
+map <c-j> select_eval "fzf --reverse --track --header-first --header='Jump to location' --query \"^${f##*/}$\" --bind 'load:change-query(!/$ )'"
+map <backspace> ${{ lf -remote "send $id select \"$(cat "${OPEN_HISTFILE:-${XDG_STATE_HOME:-$HOME/.local/state}/open_history}" |
+ fzf --reverse --tac --header-first --header='File History')\"" }}
map <c-k> ${{ lf -remote "send $id cd \"$(cat ${CD_HISTFILE:-${XDG_STATE_HOME:-$HOME/.local/state}/cd_history} |
- fzf --tac --reverse --header-first --header='Path History')\"" }}
-map <c-c> select_eval "fzf --reverse --query '/$ ' --header-first --header='Jump to directory'"
+ fzf --reverse --tac --header-first --header='Path History')\"" }}
+map <c-c> select_eval "fzf --reverse --track --header-first --header='Jump to location' --query \"^${f##*/}/$\" --bind 'load:change-query(/$ )'"
map c
map d
@@ -128,16 +128,17 @@ map o $LESSOPEN="|preview %s" less -r $f
map O $mimeopen --ask $f
map . set hidden!
map x cut
-map M $lf -remote "send $id select \"$(fmd)\""
+map M $lf -remote "send $id select \"$(FZF_DEFAULT_OPTS="--track --query '^${f##*/}$' --bind 'load:clear-query'" fmd)\""
map D delete
map W $setsid -f $TERMINAL >/dev/null 2>&1
map X !$f
-map T !dev test $f
+map T push :$touch<space>""<c-b>
map b $vidir
map V push :!nvim<space>""<c-b>
map P :link
map ge extract
+map gz $file="${f#"$PWD/"}"; zip -r "$file" "$file"
map gl clear
map gx ${{ chmod +x $fx; lf -remote "send $id reload"; }}
map gX ${{ chmod -x $fx; lf -remote "send $id reload"; }}
@@ -148,6 +149,7 @@ map gf !{{ file "$f" && file --brief --mime-type "$f" }}
map gy %{{ printf "%s" "$fx" | xsel -b }}
map gi link_index
map gsb $setbg $f
+map gcp $soffice --headless --convert-to pdf $f
map zpp set previewer preview
map zpt set previewer text-preview
diff --git a/.config/nvim/coc/coc-settings.json b/.config/nvim/coc/coc-settings.json
index f90bc38..8b56371 100644
--- a/.config/nvim/coc/coc-settings.json
+++ b/.config/nvim/coc/coc-settings.json
@@ -1,6 +1,7 @@
{
- "suggest.autoTrigger": "always",
- "diagnostic.enable": true,
- "python.linting.pycodestyleEnabled": true,
- "html.autoCreateQuotes": false
+ "suggest.autoTrigger": "always",
+ "diagnostic.enable": true,
+ "python.linting.pycodestyleEnabled": true,
+ "html.autoCreateQuotes": false,
+ "coc.preferences.formatOnType": true
}
diff --git a/.config/nvim/dev.vim b/.config/nvim/dev.vim
index a3b888b..149b931 100644
--- a/.config/nvim/dev.vim
+++ b/.config/nvim/dev.vim
@@ -3,6 +3,7 @@ source ~/.config/nvim/init.vim
packadd! onedark.vim
" packadd! fzf
packadd! fzf.vim
+packadd! vim-jsx-pretty
" --> Fzf
source ~/.config/nvim/other/fzf.vim
@@ -36,6 +37,7 @@ nnoremap <silent><nowait> <leader>cj :<C-u>CocNext<CR>
nnoremap <silent><nowait> <leader>ck :<C-u>CocPrev<CR>
nnoremap <silent><nowait> <leader>cp :<C-u>CocListResume<CR>
nnoremap <leader>cm :CocList marketplace<CR>
+nnoremap <leader>cff :Format<CR>
" --> Vimspector
let g:vimspector_base_dir = expand('$HOME/.local/share/nvim/vimspector')
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 9261061..e9772ee 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -124,23 +124,26 @@ inoremap jk <Esc>
inoremap ;n <Esc>/<++><Enter>c4l
nnoremap <leader>n /<++><Enter>c4l
-autocmd FileType html,markdown,template inoremap ;s ><Esc>bi<<Esc>ea
-autocmd FileType html,markdown,template inoremap ;c ><Esc>bi</<Esc>ea
-autocmd FileType html,markdown,template inoremap ;i <Esc>b"tywi<<Esc>ea></><Esc>PF<i
-autocmd FileType html,markdown,template inoremap ;I <Esc>b"tywi<<Esc>ea><++></><Esc>P2F>i<Space>
-autocmd FileType html,markdown,template inoremap ;b <Esc>b"tywi<<Esc>ea><CR></<Esc>"tpa><CR><++><Esc>kO
-autocmd FileType html,markdown,template inoremap ;B <Esc>b"tywi<<Esc>ea><CR><++><CR></<Esc>"tpa><CR><++><Esc>3k$i<Space>
-autocmd FileType html,markdown,template inoremap ;ap <p><CR><++><CR></p><CR><++><Esc>3k$i
-autocmd FileType html,markdown,template inoremap ;aa <a href=""><CR><++><CR></a><CR><++><Esc>3k$hi
-
-autocmd FileType tex inoremap ;b <Esc>b"tywi\begin{<Esc>ea}<CR>\end{<Esc>"tpa}<Esc>kA
-autocmd FileType tex inoremap ;s \section{}<Esc>i
-autocmd FileType tex inoremap ;at \begin{tikzpicture}<CR>\end{tikzpicture}<Esc>O
-autocmd FileType tex inoremap ;ap \usepackage{}<Esc>i
-autocmd FileType tex inoremap ;aP \usepackage[]{}<Esc>F[a
-autocmd FileType tex inoremap ;ab \textbf{}<Esc>i
-autocmd FileType tex inoremap ;ai \textit{}<Esc>i
-autocmd FileType tex inoremap ;au \underline{}<Esc>i
+inoremap ;s ><Esc>bi<<Esc>ea
+inoremap ;c ><Esc>bi</<Esc>ea
+inoremap ;i <Esc>b"tywi<<Esc>ea></><Esc>PF<i
+inoremap ;I <Esc>b"tywi<<Esc>ea><++></><Esc>P2F>i<Space>
+inoremap ;b <Esc>b"tywi<<Esc>ea><CR></<Esc>"tpa><CR><++><Esc>kO
+inoremap ;B <Esc>b"tywi<<Esc>ea><CR><++><CR></<Esc>"tpa><CR><++><Esc>3k$i<Space>
+inoremap ;ap <p><CR><++><CR></p><CR><++><Esc>3k$i
+inoremap ;aa <a href=""><CR><++><CR></a><CR><++><Esc>3k$hi
+
+augroup Tex
+ autocmd!
+ autocmd FileType tex inoremap ;b <Esc>b"tywi\begin{<Esc>ea}<CR>\end{<Esc>"tpa}<Esc>kA
+ autocmd FileType tex inoremap ;s \section{}<Esc>i
+ autocmd FileType tex inoremap ;at \begin{tikzpicture}<CR>\end{tikzpicture}<Esc>O
+ autocmd FileType tex inoremap ;ap \usepackage{}<Esc>i
+ autocmd FileType tex inoremap ;aP \usepackage[]{}<Esc>F[a
+ autocmd FileType tex inoremap ;ab \textbf{}<Esc>i
+ autocmd FileType tex inoremap ;ai \textit{}<Esc>i
+ autocmd FileType tex inoremap ;au \underline{}<Esc>i
+augroup END
autocmd FileType go inoremap ;ae err<Space>:=<Space><++><CR>if<Space>err<Space>!=<Space>nil<Space>{<CR>return<Space>err<CR>}<Esc>3kI
@@ -169,7 +172,10 @@ autocmd BufEnter vartak-results-data.pl nmap <leader>t :w<CR>:se nornu<CR>:!vart
nnoremap <leader>w :set wrap!<CR>
nnoremap <leader>fo :!opout "%:p"<CR>
-nnoremap <leader>ec :tabnew ~/.config/nvim/init.vim<CR>
+nnoremap <leader>ei :tabnew ~/.config/nvim/init.vim<CR>
+nnoremap <leader>eo :tabnew ~/.config/nvim/coc/coc-onload.vim<CR>
+nnoremap <leader>ec :tabnew ~/.config/nvim/coc/coc-settings.json<CR>
+nnoremap <leader>ed :tabnew ~/.config/nvim/dev.vim<CR>
nnoremap <leader><C-r> :source ~/.config/nvim/init.vim<CR>
nnoremap <leader>s :%s//gc<Left><Left><Left>
@@ -179,3 +185,4 @@ let shortcuts = config_dir . "shortcuts.vim"
if filereadable(shortcuts)
execute "source " . shortcuts
endif
+
diff --git a/.config/nvim/pack/plugins/opt/vim-javascript b/.config/nvim/pack/plugins/opt/vim-javascript
new file mode 160000
+Subproject b26c9edb3563e02f5c0b20580f7cf9743e95b15
diff --git a/.config/nvim/pack/plugins/opt/vim-jsx b/.config/nvim/pack/plugins/opt/vim-jsx
new file mode 160000
+Subproject 8879e0d9c5ba0e04ecbede1c89f63b7a0efa24a
diff --git a/.config/nvim/pack/plugins/opt/vim-jsx-improve b/.config/nvim/pack/plugins/opt/vim-jsx-improve
new file mode 160000
+Subproject b179bf9a3901ccc6afcaa3abc9c93bae450f333
diff --git a/.config/nvim/pack/plugins/opt/vim-jsx-pretty b/.config/nvim/pack/plugins/opt/vim-jsx-pretty
new file mode 160000
+Subproject 6989f1663cc03d7da72b5ef1c03f87e6ddb70b4
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index 7325729..37a847c 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -14,7 +14,6 @@ alias o='${OPENER:-xdg-open}'
alias e='${EDITOR:-vi}'
alias se='sudoedit'
alias lf='lfcd'
-alias rs='exec $SHELL'
alias sr='ff ~/.config ~/.local/bin ~/bin'
alias uc='cd ~ && gitpush' # update config
diff --git a/.config/shell/bm-dirs b/.config/shell/bm-dirs
index cf9de6c..603136b 100644
--- a/.config/shell/bm-dirs
+++ b/.config/shell/bm-dirs
@@ -2,6 +2,7 @@
cac ${XDG_CACHE_HOME:-$HOME/.cache}
cg ${XDG_CONFIG_HOME:-$HOME/.config}
lsh ${XDG_DATA_DIR:-$HOME/.local/share}
+lsha ${XDG_DATA_DIR:-$HOME/.local/share}/applications
vnv ${XDG_DATA_DIR:-$HOME/.local/share}/virtualenvs
ltr ${XDG_DATA_DIR:-$HOME/.local/share}/Trash
lsr ${XDG_DATA_DIR:-$HOME/.local/src}
@@ -9,6 +10,7 @@ lst ${XDG_DATA_DIR:-$HOME/.local/state}
dn ${XDG_DOWNLOAD_DIR:-$HOME/Downloads}
dx ${XDG_DOCUMENTS_DIR:-$HOME/Documents}
dl ${XDG_DOCUMENTS_DIR:-$HOME/Documents}/latex
+dr ${XDG_DOCUMENTS_DIR:-$HOME/Documents}/latex/resume
nt ${XDG_DOCUMENTS_DIR:-$HOME/Documents}/Notes
ms ${XDG_MUSIC_DIR:-$HOME/Music}
px ${XDG_PICTURES_DIR:-$HOME/Pictures}
@@ -23,20 +25,20 @@ ap ~/Applications
dv ~/Dev
cm ~/Dev/cloud-maker
cs ~/Dev/sites/csstudent41.github.io
-vr ~/Dev/sites/vikas.rocks
+vrd ~/Dev/sites/vikas.rocks
vrc ~/Dev/sites/vikas.rocks/content
vrl ~/Dev/sites/vikas.rocks/layouts
vrp ~/Dev/sites/vikas.rocks/public
td ~/Dev/test
gd ~/GDrive/vartak/CS/sem6
-gf ~/GDrive/vartak/CS/sem6/practicals
-gp ~/GDrive/vartak/CS/sem6/journals
+gp ~/GDrive/vartak/CS/sem6/practicals
+gj ~/GDrive/vartak/CS/sem6/journals
gz ~/GDrive/vartak/CS/practical-zip/sem5
gn ~/GDrive/vartak/CS/sem6/notes
rs ~/GDrive/vartak/results
ph ~/Phone
stv ~/Phone/.stversions
-pw ~/Phone/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp\ Documents
+pw ~/Phone/Android/media/com.whatsapp.w4b/WhatsApp\ Business/Media/WhatsApp\ Business\ Documents
mn /mnt
stg ${STORAGE:-/mnt/storage}
diff --git a/.config/shell/bm-files b/.config/shell/bm-files
index 442b116..898e080 100644
--- a/.config/shell/bm-files
+++ b/.config/shell/bm-files
@@ -9,7 +9,7 @@ zp ~/.zprofile
xp ~/.xprofile
gi ~/.gitignore
zc ${XDG_CONFIG_HOME:-$HOME/.config}/zsh/.zshrc
-zh ${XDG_DATA_HOME:-$HOME/.config}/zsh/history
+zh ${XDG_STATE_HOME:-$HOME/.local/state}/zsh/history
za ${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc
arc ${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc
spf ${XDG_CONFIG_HOME:-$HOME/.config}/shell/server.profile
@@ -22,8 +22,8 @@ xi ${XDG_CONFIG_HOME:-$HOME/.config}/X11/xinitrc
mm ${XDG_CONFIG_HOME:-$HOME/.config}/mimeapps.list
fdi ${XDG_CONFIG_HOME:-$HOME/.config}/fd/ignore
ssc ~/.ssh/config
-csh ~/Dev/csstudent41.github.io/layouts/_default/home.html
qn ${XDG_DOCUMENTS_HOME:-$HOME/Documents}/Notes/QuickNote.md
bm ${XDG_DOCUMENTS_HOME:-$HOME/Documents}/Notes/bookmarks.txt
akn ${XDG_DOCUMENTS_HOME:-$HOME/Documents}/Notes/ak47.txt
li ${XDG_DOCUMENTS_HOME:-$HOME/Documents}/latex/lorem-ipsum.txt
+vrh ~/Dev/sites/vikas.rocks/layouts/_default/home.html
diff --git a/.config/shell/profile b/.config/shell/profile
index c981fbc..234b1c2 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -68,6 +68,8 @@ export FZF_DEFAULT_OPTS="
--bind 'alt-space:toggle-preview,alt-w:toggle-preview-wrap'
--bind 'alt-enter:print-query'
--bind 'ctrl-alt-c:change-preview-window(up|left:50%|down|right:50%)'
+ --bind 'ctrl-alt-k:change-preview-window(50%|60%|70%|80%|90%)'
+ --bind 'ctrl-alt-j:change-preview-window(50%|40%|30%|20%)'
--bind 'ctrl-alt-a:select-all,ctrl-alt-d:deselect-all'
--bind 'alt-n:half-page-down,alt-p:half-page-up'
--bind 'alt-N:page-down,alt-P:page-up'
@@ -84,12 +86,12 @@ export FZF_DEFAULT_OPTS="
--bind 'alt-9:change-preview(printf \"%s\\\n\" {+})'
--bind 'alt-!:execute(less {})'
--bind 'alt-@:execute(\$PREVIEWER {} | less)'
- --bind 'alt-v:execute(echo {q} >> \"$FZF_HISTFILE\"; LESSOPEN=\"|preview %s\" less {})'
- --bind 'alt-e:execute(echo {q} >> \"$FZF_HISTFILE\"; eval \"\${EDITOR:-vi} {}\")'
- --bind 'ctrl-o:execute(echo {q} >> \"$FZF_HISTFILE\"; eval \"\${OPENER:-xdg-open} {}\")'
- --bind 'alt-O:execute(echo {q} >> \"$FZF_HISTFILE\"; mimeopen --ask {})'
- --bind 'alt-o:execute(echo {q} >> \"$FZF_HISTFILE\"; eval \"\${FILES:-lf} {}\")'
- --bind 'alt-D:become(echo {q} >> \"$FZF_HISTFILE\"; dirname {} )'
+ --bind 'ctrl-o:execute(append-to-history {q} \"$FZF_HISTFILE\"; eval \"\${OPENER:-xdg-open} {}\")'
+ --bind 'alt-v:execute(append-to-history {q} \"$FZF_HISTFILE\"; LESSOPEN=\"|preview %s\" less {})'
+ --bind 'alt-e:execute(append-to-history {q} \"$FZF_HISTFILE\"; eval \"\${EDITOR:-vi} {}\")'
+ --bind 'alt-O:execute(append-to-history {q} \"$FZF_HISTFILE\"; mimeopen --ask {})'
+ --bind 'alt-o:execute(append-to-history {q} \"$FZF_HISTFILE\"; eval \"\${FILES:-lf} {}\")'
+ --bind 'alt-D:become(append-to-history {q} \"$FZF_HISTFILE\"; dirname {} )'
"
## Custom themes for GTypist
diff --git a/.config/yt-dlp/videos.conf b/.config/yt-dlp/videos.conf
index 04d3137..c9e8013 100644
--- a/.config/yt-dlp/videos.conf
+++ b/.config/yt-dlp/videos.conf
@@ -1,2 +1,2 @@
--config config
---format bestvideo*[height<=1080][fps<=30]+bestaudio
+--format bestvideo*[height<=1080][fps<=60]+bestaudio
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 6c3b004..22bf62f 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -263,7 +263,7 @@ case "$TERM" in *256*)
}
command -v fd >/dev/null && {
- FZF_DEFAULT_COMMAND="fd --hidden --no-ignore-vcs --color=always $@"
+ FZF_DEFAULT_COMMAND="fd --hidden --no-ignore-vcs --color=always | sort"
FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --ansi"
ff() { FZF_DEFAULT_COMMAND+="$@" fzf -m; }
alias f='fd --hidden --no-ignore-vcs'
diff --git a/.config/zsh/zprofile b/.config/zsh/zprofile
index f41c6a2..16b64c6 100644
--- a/.config/zsh/zprofile
+++ b/.config/zsh/zprofile
@@ -9,9 +9,9 @@ on_ac_power="$(cat /sys/class/power_supply/ACAD/online)"
case "$TTY" in
/dev/tty1)
- command -V optimus-manager >/dev/null && [ "$on_ac_power" = 1 ] {
+ command -V optimus-manager >/dev/null && [ "$on_ac_power" = 1 ] && {
echo "Waiting for nvidia card to load up..."
- until [ -e /dev/dri/card0 ]; do; sleep 0.1; done
+ until [ -e /dev/dri/card1 ]; do; sleep 0.1; done
}
command -V startx >/dev/null && { pgrep startx || startx }
;;