Changes in configs

This commit is contained in:
samedamci 2020-07-01 10:44:10 +02:00
parent 451af383b5
commit 665686c305
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894
10 changed files with 26 additions and 19 deletions

View File

@ -15,3 +15,7 @@ video/x-matroska=video.desktop
inode/directory=file.desktop inode/directory=file.desktop
x-scheme-handler/http=linkhandler.desktop x-scheme-handler/http=linkhandler.desktop
x-scheme-handler/https=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 " for JS language server
if (executable('typescript-language-server')) if (executable('typescript-language-server'))
augroup LspJavaScript augroup LspJavaScript
autocmd! autocmd!
autocmd User lsp_setup call lsp#register_server({ autocmd User lsp_setup call lsp#register_server({
\ 'name': 'js-ls', \ 'name': 'js-ls',
\ 'cmd': {server_info->[&shell, &shellcmdflag, 'typescript-language-server --stdio']}, \ 'cmd': {server_info->[&shell, &shellcmdflag, 'typescript-language-server --stdio']},
\ 'whitelist': ['javascript', 'javascript.jsx', 'javascriptreact'] \ 'whitelist': ['javascript', 'javascript.jsx', 'javascriptreact']
\ }) \ })
augroup END augroup END
endif endif
" for Go language server " for Go language server
if executable('gopls') if executable('gopls')

View File

@ -1,7 +1,7 @@
super + Return super + Return
$TERMINAL $TERMINAL
super + {_,ctrl,alt +} b super + {_,ctrl,alt +} b
{search,$BROWSER,torbrowser-launcher} {search,$BROWSER,tor-browser}
super + {_,shift +} d super + {_,shift +} d
rofi -show {run,drun} rofi -show {run,drun}
super + shift + s super + shift + s
@ -11,8 +11,8 @@ super + c
super + s; {t,m,n,v,c} super + s; {t,m,n,v,c}
{tuirent,mails,rss,fm,ncmp} {tuirent,mails,rss,fm,ncmp}
super + a; {g,k,l,i} super + a; {g,k,l,i,m}
{gimp,keepassxc,libreoffice,inkscape} {gimp,keepassxc,libreoffice,inkscape,minecraft-launcher}
super + {_,ctrl +} m super + {_,ctrl +} m
rofi-mpd {-a,-s} && refbar rofi-mpd {-a,-s} && refbar
@ -64,5 +64,5 @@ ctrl + XF86Audio{Next,Prev}
XF86AudioStop XF86AudioStop
mpc stop && refbar mpc stop && refbar
super + {Left,Up,Down,Right} ctrl + alt + {Left,Up,Down,Right}
rotscreen {left,normal,inverted,right} rotscreen {left,normal,inverted,right}

View File

@ -49,7 +49,7 @@ nnoremap w :view<cr>
vnoremap w :view<cr>gv vnoremap w :view<cr>gv
nnoremap cc cw<c-u> nnoremap cc cw<c-u>
nnoremap I za<c-u> nnoremap I za<c-u>
nnoremap x :!sxiv -btf *<Cr> nnoremap x :!sxiv -btf * -q<Cr>
unmap Y unmap Y
nnoremap Y :!xclip -selection clipboard -t image/png < %c<cr>:echo expand('%"c:p') "is copied to clipboard"<cr> 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 echo " " > /tmp/newsupdate
refbar & refbar &
/usr/bin/newsboat -x reload /usr/bin/newsboat -x reload && rm -f /tmp/newsupdate
rm -f /tmp/newsupdate
refbar & refbar &
newsboat -x print-unread | awk '{ print $1 }' > "$HOME/.cache/news_unread" 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)" unread="$(cat "$HOME/.cache/news_unread" 2>/dev/null)"
printf "" printf ""
[ "$unread" ] && printf " %s" "$unread" [ "$unread" ] && printf " %s" "$unread"
echo "$icon" 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 & ;; curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///")" && sxiv -a "/tmp/$(echo "$1" | sed "s/.*\///")" >/dev/null 2>&1 & ;;
*mp3|*flac|*opus|*mp3?source*) *mp3|*flac|*opus|*mp3?source*)
setsid tsp curl -LO "$1" >/dev/null 2>&1 & ;; setsid tsp curl -LO "$1" >/dev/null 2>&1 & ;;
*.onion*)
tor-browser "$1" ;;
*) *)
if [ -f "$1" ]; then "$TERMINAL" -e "$EDITOR $1" if [ -f "$1" ]; then "$TERMINAL" -e "$EDITOR $1"
else setsid $BROWSER "$1" >/dev/null 2>&1 & fi ;; 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="$(grep -m 1 "$chosen" "$bmfile" | awk '{ print $1 }')"
[ ! "$url" ] && { [ ! "$url" ] && {
[ "$(echo "$chosen" | grep "[a-z|0-9]\.[a-z|0-9]")" ] && [ "$(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" "$BROWSER" "$url"

View File

@ -39,6 +39,7 @@ export FZF_DEFAULT_OPTS='
export SEL="$(awk '/define sel/ { print $3 }' ~/.config/Xresources)" export SEL="$(awk '/define sel/ { print $3 }' ~/.config/Xresources)"
export ASEL="$(awk '/define asel/ { print $3 }' ~/.config/Xresources)" export ASEL="$(awk '/define asel/ { print $3 }' ~/.config/Xresources)"
export C12="$(awk '/color12/ { print $2 }' ~/.config/Xresources)" export C12="$(awk '/color12/ { print $2 }' ~/.config/Xresources)"
eval "$(ssh-agent)"
! pgrep -x Xorg >/dev/null && exec startx ! pgrep -x Xorg >/dev/null && exec startx
} }

View File

@ -13,10 +13,11 @@ telegram-desktop &
xrdb ~/.config/Xresources & xrdb ~/.config/Xresources &
setwall & setwall &
dbar & dbar &
exec ~/.local/bin/scripts/startdwm
setxkbmap -layout 'pl' -option caps:swapescape & setxkbmap -layout 'pl' -option caps:swapescape &
xset r rate 300 50 & xset r rate 300 50 &
xsetroot -cursor_name left_ptr & xsetroot -cursor_name left_ptr &
xmodmap -e "keycode 135 = Super_L" & xmodmap -e "keycode 135 = Super_L" &
unclutter -idle 2 & unclutter -idle 2 &
exec ~/.local/bin/scripts/startdwm