diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 8d5d1d6..3ee22fa 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -11,7 +11,6 @@ " this config does not set nocompatible - neovim does this automatically " this config does not set filetype plugin - vim-sensible does this " }}} -" ================================================================================ " PLUGIN INSTALLATION - handled by VIM-PLUG {{{ " ================================================================================ " @@ -108,7 +107,6 @@ call plug#end() endif " }}} -" ================================================================================ " PLUGIN CONFIGURATION {{{ " ================================================================================ @@ -226,7 +224,6 @@ let g:tmuxline_preset = { let g:tmux_navigator_save_on_switch = 1 " }}} -" ================================================================================ " VIM SETTINGS {{{ " ================================================================================ " @@ -270,7 +267,6 @@ highlight ColorColumn ctermbg=magenta call matchadd('ColorColumn', '\%81v', 100) " }}} -" ================================================================================ " KEYBINDINGS {{{ " ================================================================================ " @@ -348,7 +344,29 @@ nnoremap Q vapJgqap " Enter distraction free prose mode with F11 noremap :Goyo +" surround stuff with quotes, from normal or visual mode +nnoremap " viwa"bi"lel +vnoremap " ``>la"l + +" stronger versions of left,right - move all the way +nnoremap H ^ +nnoremap L $ + +" }}} +" ABBREVIATIONS {{{ + +" Typos +iabbrev adn and +iabbrev waht what +iabbrev tehn then +iabbrev whit with +iabbrev whith with + +" Text expansion +iabbrev @@ marty.oehme@gmail.com +iabbrev ccopy Copyright 2019 Marty Oehme, all rights reserved. + +" " }}} -" ================================================================================ " END " ================================================================================ diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 79ccd94..a37fbf7 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -75,6 +75,15 @@ c.aliases["q"] = "tab-close" # if we save sessions with w, load sessions with e (again, mimicks vim) c.aliases["e"] = "session-load" +# bookmarklet aliases: +# currently the idea is to prefix bookmarklets with b (as in open "bookmarklet") +# wallabag add current page, either with walla command, or bw +c.aliases["wallabag-add"] = "spawn --userscript wallabag_add.sh" +config.bind(leader + 'bw', 'wallabag-add', mode='normal') +# re-opens the current page on the web archive overview page +c.aliases["archive-open"] = "open https://web.archive.org/web/{url}" +config.bind(leader + 'ba', 'archive-open', mode='normal') + # set stylesheets for the browser to use # leader - ss to remove all applied stylesheets config.bind(leader + 'ss', 'set content.user_stylesheets ""') diff --git a/.config/shell/rc.d/autostartx.sh b/.config/shell/rc.d/autostartx.sh new file mode 100644 index 0000000..2296142 --- /dev/null +++ b/.config/shell/rc.d/autostartx.sh @@ -0,0 +1,3 @@ +# if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then +# exec startx ~/.xinitrc +# fi diff --git a/.config/shell/rc.d/enable-fasd-hook.sh b/.config/shell/rc.d/enable-fasd-hook.sh new file mode 100644 index 0000000..907fd96 --- /dev/null +++ b/.config/shell/rc.d/enable-fasd-hook.sh @@ -0,0 +1,3 @@ +#!/bin/sh +# more usage instructions at https://github.com/clvv/fasd +eval "$(fasd --init auto)" diff --git a/.local/share/qutebrowser/userscripts/wallabag_add.sh b/.local/share/qutebrowser/userscripts/wallabag_add.sh new file mode 100755 index 0000000..ab4c707 --- /dev/null +++ b/.local/share/qutebrowser/userscripts/wallabag_add.sh @@ -0,0 +1,12 @@ +#! /usr/bin/bash + +# from swalladge: +# https://github.com/swalladge/dotfiles/blob/master/local/share/qutebrowser/userscripts/wallabag_add.sh + +# for wallabag v1.* +# `-w 0` disables auto line wrapping in base64 +# echo "open -t https://www.framabag.org/u/swalladge/?action=add&url='`echo -n "$QUTE_URL" | base64 -w 0`'" >> "$QUTE_FIFO" + + +# v2.* +echo "open https://read.martyoeh.me/bookmarklet?url=$QUTE_URL" >> "$QUTE_FIFO"