diff --git a/.config/mimeapps.list b/.config/mimeapps.list index dcd9066..ff3c109 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -15,3 +15,7 @@ video/x-matroska=video.desktop inode/directory=file.desktop x-scheme-handler/http=linkhandler.desktop x-scheme-handler/https=linkhandler.desktop +x-scheme-handler/discord-610508934456934412=discord-610508934456934412.desktop + +[Added Associations] +application/rss+xml=text.desktop;nvim.desktop;rss.desktop; diff --git a/.config/nvim/plugins.vim b/.config/nvim/plugins.vim index 5edc1f6..245ec92 100644 --- a/.config/nvim/plugins.vim +++ b/.config/nvim/plugins.vim @@ -129,15 +129,15 @@ call deoplete#custom#option('smart_case', v:false) " for JS language server if (executable('typescript-language-server')) - augroup LspJavaScript - autocmd! - autocmd User lsp_setup call lsp#register_server({ - \ 'name': 'js-ls', - \ 'cmd': {server_info->[&shell, &shellcmdflag, 'typescript-language-server --stdio']}, - \ 'whitelist': ['javascript', 'javascript.jsx', 'javascriptreact'] - \ }) - augroup END - endif + augroup LspJavaScript + autocmd! + autocmd User lsp_setup call lsp#register_server({ + \ 'name': 'js-ls', + \ 'cmd': {server_info->[&shell, &shellcmdflag, 'typescript-language-server --stdio']}, + \ 'whitelist': ['javascript', 'javascript.jsx', 'javascriptreact'] + \ }) + augroup END +endif " for Go language server if executable('gopls') diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 1ff8b42..02778fe 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -1,7 +1,7 @@ super + Return $TERMINAL super + {_,ctrl,alt +} b - {search,$BROWSER,torbrowser-launcher} + {search,$BROWSER,tor-browser} super + {_,shift +} d rofi -show {run,drun} super + shift + s @@ -11,8 +11,8 @@ super + c super + s; {t,m,n,v,c} {tuirent,mails,rss,fm,ncmp} -super + a; {g,k,l,i} - {gimp,keepassxc,libreoffice,inkscape} +super + a; {g,k,l,i,m} + {gimp,keepassxc,libreoffice,inkscape,minecraft-launcher} super + {_,ctrl +} m rofi-mpd {-a,-s} && refbar @@ -64,5 +64,5 @@ ctrl + XF86Audio{Next,Prev} XF86AudioStop mpc stop && refbar -super + {Left,Up,Down,Right} +ctrl + alt + {Left,Up,Down,Right} rotscreen {left,normal,inverted,right} diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 7da9aeb..689a0ad 100644 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -49,7 +49,7 @@ nnoremap w :view vnoremap w :viewgv nnoremap cc cw nnoremap I za -nnoremap x :!sxiv -btf * +nnoremap x :!sxiv -btf * -q unmap Y nnoremap Y :!xclip -selection clipboard -t image/png < %c:echo expand('%"c:p') "is copied to clipboard" diff --git a/.local/bin/cron/newsup b/.local/bin/cron/newsup index 133581d..33c327b 100755 --- a/.local/bin/cron/newsup +++ b/.local/bin/cron/newsup @@ -8,8 +8,7 @@ ps ax | grep -q newsboat$ && \ echo " " > /tmp/newsupdate refbar & -/usr/bin/newsboat -x reload -rm -f /tmp/newsupdate +/usr/bin/newsboat -x reload && rm -f /tmp/newsupdate refbar & newsboat -x print-unread | awk '{ print $1 }' > "$HOME/.cache/news_unread" diff --git a/.local/bin/scripts/dwmbar/news b/.local/bin/scripts/dwmbar/news index 273c355..446b0d6 100755 --- a/.local/bin/scripts/dwmbar/news +++ b/.local/bin/scripts/dwmbar/news @@ -4,6 +4,6 @@ icon="$(cat "/tmp/newsupdate" 2>/dev/null)" unread="$(cat "$HOME/.cache/news_unread" 2>/dev/null)" -printf "" +printf "" [ "$unread" ] && printf " %s" "$unread" echo "$icon" diff --git a/.local/bin/scripts/linkhandler b/.local/bin/scripts/linkhandler index d4a9f99..0601dbb 100755 --- a/.local/bin/scripts/linkhandler +++ b/.local/bin/scripts/linkhandler @@ -12,6 +12,8 @@ case "$1" in curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///")" && sxiv -a "/tmp/$(echo "$1" | sed "s/.*\///")" >/dev/null 2>&1 & ;; *mp3|*flac|*opus|*mp3?source*) setsid tsp curl -LO "$1" >/dev/null 2>&1 & ;; + *.onion*) + tor-browser "$1" ;; *) if [ -f "$1" ]; then "$TERMINAL" -e "$EDITOR $1" else setsid $BROWSER "$1" >/dev/null 2>&1 & fi ;; diff --git a/.local/bin/scripts/search b/.local/bin/scripts/search index ada0a8d..7f7293b 100755 --- a/.local/bin/scripts/search +++ b/.local/bin/scripts/search @@ -17,7 +17,7 @@ chosen="$( url="$(grep -m 1 "$chosen" "$bmfile" | awk '{ print $1 }')" [ ! "$url" ] && { [ "$(echo "$chosen" | grep "[a-z|0-9]\.[a-z|0-9]")" ] && - url="$chosen" || url="https://duckduckgo.com/?q=$chosen" + url="$chosen" || url="http://searx.samedamci.me/?=&q=$chosen" } "$BROWSER" "$url" diff --git a/.profile b/.profile index a285a5a..fadbb8e 100644 --- a/.profile +++ b/.profile @@ -39,6 +39,7 @@ export FZF_DEFAULT_OPTS=' export SEL="$(awk '/define sel/ { print $3 }' ~/.config/Xresources)" export ASEL="$(awk '/define asel/ { print $3 }' ~/.config/Xresources)" export C12="$(awk '/color12/ { print $2 }' ~/.config/Xresources)" + eval "$(ssh-agent)" ! pgrep -x Xorg >/dev/null && exec startx } diff --git a/.xinitrc b/.xinitrc index dcd9b79..b8ff16a 100644 --- a/.xinitrc +++ b/.xinitrc @@ -13,10 +13,11 @@ telegram-desktop & xrdb ~/.config/Xresources & setwall & dbar & -exec ~/.local/bin/scripts/startdwm setxkbmap -layout 'pl' -option caps:swapescape & xset r rate 300 50 & xsetroot -cursor_name left_ptr & xmodmap -e "keycode 135 = Super_L" & unclutter -idle 2 & + +exec ~/.local/bin/scripts/startdwm