Changes in configs

This commit is contained in:
Wiktor Zykubek 2020-07-01 10:44:10 +02:00
parent 35a16b43e8
commit 2e0c2b569c
10 changed files with 26 additions and 19 deletions

View File

@ -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;

View File

@ -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')

View File

@ -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}

View File

@ -49,7 +49,7 @@ nnoremap w :view<cr>
vnoremap w :view<cr>gv
nnoremap cc cw<c-u>
nnoremap I za<c-u>
nnoremap x :!sxiv -btf *<Cr>
nnoremap x :!sxiv -btf * -q<Cr>
unmap Y
nnoremap Y :!xclip -selection clipboard -t image/png < %c<cr>:echo expand('%"c:p') "is copied to clipboard"<cr>

View File

@ -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"

View File

@ -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"

View File

@ -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 ;;

View File

@ -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"

View File

@ -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
}

View File

@ -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