Commit graph

243 commits

Author SHA1 Message Date
16cb8f092e Add dmenu theme 2019-09-05 13:03:51 +02:00
199fbdae4d Add rofi theme scaffolding
Themes are structured in two parts: layout and colorschemes. Both can be
set independently from each other. Layouts can make use of anchored
color values (@background, @background-focus,.. look at colorscheme
files for all available values). Colorscheme files then translate the
values into actual colorcodes.

That way, the colorscheme for all layouts can be changed with one
setting, or independently of each other. Layouts try to specify some
often used structures for rofi menus - right now there is a horizontal
list and a fullscreen options selection (which can make use of icon
fonts).

Any global theme changes should be done in settings.rasi. Any global
function changes can still be done in config.rasi. A rofi-powermenu has
been added as an example of using the theming structure. The powermenu
script loads rofi with the powermenu.rasi theme enabled. The powermenu
theme loads the fullscreen options layout, which in turn loads the
vertical list layout, which loads settings, which sets the correct
colors. Idea and original structure from:
https://gitlab.com/vahnrr/rofi-menus
2019-09-05 10:45:32 +02:00
264e095224 Add initial rofi-bangs script
Can be executed with rofi-bang. It will take a comma-separated list of
commands (for now statically sourced from rofi config dir), show labels
and 'bangs' for them (in the manner of !c or !yt) which, if typed will
instantly execute their command. In this manner, it becomes possible to
create a quickly accessible menu using rofi.

E.g. we could have !b to search bookmarks. As soon as !b is typed the
'bang' instance of rofi exits and executes the associated command. If
the command starts up another, visually identical, rofi instance with a
preselection of different user bookmarks, it appears as if we just
jumped into a bookmark list in the same rofi instance.

Of course, the commands can be anything. They don't have to invoke more
rofi instances.
2019-09-04 23:04:07 +02:00
f1bcae1767 Add simple rofi config file 2019-09-04 19:47:13 +02:00
7e45d94997 Add fuzzy tools to vim and shell
In vim:
Use <leader>c to insert a bibtex reference in your text. By default it
is a pandoc reference (@bibref), but it can be changed to latex style
(\cite(bibref)). <leader>CM inserts a pretty-printed reference to the
selected work, using markdown styling. If you want to insert a citation
while writing, use @@ from insertmode to insert the bibref instead.

The settings add two commands: :CiteRef and :CitePretty which call the
respective functions. You can pass any amount of .bibtex libraries to
the commands and they will be available to fuzzy search through.

:CiteEdit also added to fuzzy find a source and open it in vim for editing.
The function is not working yet, I have to find a way to go from the
fuzzy finder to papis, select the correct file and edit it in vim.

In Shell:
Can cd directories (d, D), open files (f, F), open most recently used
(ru), and edit bibtex references (ref). lowercase is a weighted view
over previously used directories/files, Uppercase is a search of the
whole file structure.

Still outstanding:
Needs the same comfort function additions as vim search, especially
reference search. (i.e., open corresponding document, yank path, open
editor,...)
2019-09-04 17:32:11 +00:00
3ce896af43 [nvim] Improve compilation filetype target
Allows compilation using pandoc to happen for markdown, as well as
rmarkdown files.
2019-09-02 23:23:43 +02:00
dcd3f07a8f [nvim] Add useful writing colorscheme
Pencil is from reedes, cribbed from iWriter. It is a good, subdued
colorscheme for writing prose. All colorschemes in this vimrc now come
with italicized letters (for comments, and words that should be italic).
All themes also respect the background= dark/light distinction and
enable the respective mode.
2019-09-02 23:21:56 +02:00
5f57994570 [nvim] Add rmarkdown, pandoc plugins and bindings
PDFs can be compiled using rmarkdown by invoking <leader>c, or C to open
the file (which pauses vim however). The best workflow is to open the
pdf manually in something like zathura, which will auto-update when the
document is newly compiled.
2019-09-02 22:45:24 +02:00
a84c18f7ab [nvim] Add function to show all keymappings
Use :ShowMaps to display all currently mapped things for vim. Will not
include things like `i`, but actual mappings.
2019-09-02 21:44:54 +02:00
b5e979189b [nvim] Add german dict possibility 2019-09-02 19:15:14 +02:00
29d7d4a65f [nvim] Add spellchecking shortcuts to vim
<leader>O to enable spellchecking for current buffer,
<leader>o to show suggestiong for word under curser.

(Try it out here, just hover over misspelled cursor!)
2019-09-02 19:07:44 +02:00
a7397dc58d Resolve "Set up papis configuration for reference management"
Add papis config file. Sets up a single 'academia' library in Nextcloud/Library folder.

Uses vim for most editing, and vifm as the file manager. No advanced functionality of papis is touched yet.

The structure of the library is to use authorname-title as subfolders in the library for the individual document clusters (i.e. the info.yaml files and any associated document files or notes).

Will need to further test functionality.
2019-09-02 13:54:24 +00:00
499d375791 Add basic dimswitch
Prints out current version number and simple usage instructions on invocation
with -h, --help, -v, --version. Displays used configuration file when invoked
with -i/--info.

Adds simple toggle ability script, used by simply invoking `dimswitch` from the
.local/bin/ directory. In this dotfile configuration that directory is added to
the path, so can be invoked from anywhere.

Invoked without any options it will look for a line which specifies a theme
with a `-light` or `-dark` option appended, and switch them out. Does not
change the vim colorscheme or background, and can not change the theme in
alacritty itself.

The extent of this script is still limited, if it should be expanded python
seems more suited. For further discussion, see its original Merge Request !18.
2019-09-02 11:00:28 +00:00
659bd61af3 [qutebrowser] Revert to downloading PDFs for now
Should implement checking existence of pdfjs on the system before either
showing PDFs in the browser or downloading.
2019-09-01 11:03:55 +02:00
39e2035571 Add qutebrowser as default BROWSER env var 2019-08-29 16:45:16 +02:00
13625bafec [qutebrowser] Add adblock blacklist, slightly change media shortcuts 2019-08-29 16:44:15 +02:00
991b906690 Add js whitelist for gmaps, gmail. Fix tab display
Tab titles need a number in front for quick <number>gm movement. Google
maps and Google mail do not work without javascript.
2019-08-27 14:13:18 +02:00
e5088962fb [qutebrowser] Add toggl to javascript whitelist 2019-08-08 14:12:43 +02:00
dbcc42051e [qutebrowser] Add dict.cc quick search engine
Use d and search term to translate the therm (by default German-English
and vice versa).
2019-08-08 13:34:40 +02:00
9061c77232 [qutebrowser] Add Todoist to javascript whitelist 2019-08-08 13:20:18 +02:00
b83a679d1d [qutebrowser] Add search engines, javascript toggle
Toggle Javascript on/off with <leader>js. Reload the configuration file
with <leader>VV. The search engines include reddit, github, wikipedia,
archlinux, aur, gopackages and more.
2019-08-06 09:25:57 +02:00
7fab7dd6fb [tmux] Add remote session nesting
If calling a tmux session within a tmux session, pressing F12 will
toggle between sending commands to the outer or inner session. If the
outer session is inactive its status-bar will be slightly greyed out to
show that no commands will reach it. If the inner session is a remote
ssh session, it will set some additional stylings for the status-bar to
further differentiate the two.
2019-07-27 12:29:47 +00:00
b11343b73a Add bats unit testing to repository
Will recursively look for `*.bats` files and run them with bats-core test suite. Simple sample unit tests for existing scripts are included in `.config/shell/rc.d/test`.
2019-07-27 11:42:54 +00:00
beb5f1c323 Rename alias & env setting shell scripts 2019-07-27 11:29:31 +02:00
b9441dc36d [vifm] Add icons for most used filetypes 2019-07-26 13:42:45 +02:00
6277ed1cf1 [tmux] Fix root directory setting command 2019-07-26 13:41:50 +02:00
590f430a09 Merge branch 'master' of gitlab.com:marty-oehme/dotfiles 2019-07-25 12:28:33 +02:00
eca508e230 [tmux] Notes session set vim root to notes dir 2019-07-25 12:28:00 +02:00
d7e8831423 Fix static analysis and lint errors 2019-07-24 11:32:04 +02:00
8494eda973 [nvim] Add shfmt and analysis to zsh files 2019-07-24 10:58:46 +02:00
bedf7e18a9 Fix static analysis errors 2019-07-24 10:54:06 +02:00
05c189cfa4 Fix merge errors 2019-07-24 10:42:12 +02:00
ef73a11e51 Naive fixing of linter errors 2019-07-24 07:33:28 +02:00
7e302d8770 [dot] Remove legacy bootstrap install scripts 2019-07-23 16:56:38 +02:00
6e09ca47cb [gitlab] Fix sh linting in vim and pipeline 2019-07-23 16:50:30 +02:00
2b8540f6cf [nvim] Remove golang-ci metalinter, rely on vim-go
vim-go already provides the linting necessary for golang. Using
golang-ci additionally only complicates matters and provides no benefit.
Additionally, it did not seem to be able to track files other than the
one in the current buffer, or those open in hidden buffers and would
show (false) errors of classes or functions not found even when they
existed.
2019-07-23 15:41:23 +02:00
7d414b294c [tmux] Add notes default session file
Called with `tm notes.session`. Calls up a vifm instance pointed to the
notes directory, and a vim session pointed to the notes index file.
2019-07-17 10:47:08 +02:00
c9e3b917f2 Merge branch 'master' of gitlab.com:marty-oehme/dotfiles 2019-07-16 21:17:57 +02:00
1fafcaadc4 Add dotfile configuration session
Invoked with `tm dot.session`. Contains a git window watching the
dotfiles status, diff, and a git log of recent commits. Contains a
window with vim. Contains a third window to test out the resulting dot
commands. Kept simple and clean.
2019-07-16 21:17:04 +02:00
4668849a4f Add italics in vim
Italicizes comments and anything which should be italicized in text
(e.g. markdown *star-surrounded* words). Might lead to errors in ssh
connections, will have to test.
2019-07-16 13:13:48 +02:00
c581e72110 Add yanking filepath/dir from vifm to clipboard
Use yd for directory, yf for file path, yn for file name (without full
path), yr for yanking the root of current filename. Makes use of xclip
to work.
2019-07-16 13:12:01 +02:00
c42625f4be Add toggleable color schemes to alacritty 2019-07-16 09:46:15 +02:00
2e9bda1fd6 [vifm] Add zathura association to .epub files 2019-07-12 14:02:50 +02:00
f3c89aa1e3 Add golang linters to vim 2019-07-11 09:01:00 +02:00
ea7e3635fe Automate initial tmux plugin installation 2019-07-08 22:06:56 +02:00
6f2f130212 Add golangci linter to vim through ale 2019-07-08 22:06:25 +02:00
95c3305cbb Allow entering vifm in pwd with vmm alias
vifm enters last open dirs by default. vmm alias opens vifm with the pwd
as the opened dir instead. Passing along arbitrary paths to vm also
opens vifm there.
2019-07-08 22:04:52 +02:00
a736a107df Add keymappings to vifm: sync panes, hide dotfiles
Set the current pane to the other pane with <c-y>. Hide dotfiles with zc
(zm still works) to mimic the vim behavior.
2019-07-04 10:33:16 +02:00
ef7c6ba8c8 Enable vifm image previews 2019-07-04 10:30:24 +02:00
62610c82c5 Add vim folds to vifmrc file 2019-07-04 08:19:16 +02:00
f932aa4b97 Merge branch '37-replace-ranger-with-vifm' into 'master'
Resolve "Replace ranger with vifm"

Closes #37

See merge request marty-oehme/dotfiles!11
2019-07-03 20:29:35 +00:00
9df014fa62 Replace rifle with xdg-open for fuzzy file opening
rifle is going away soon with ranger being replaced by vifm in these
dotfiles. To be prepared, and make them more universal, the fuzzy file
finder uses xdg-open to open any files.
2019-07-03 22:27:57 +02:00
bf28f2067d Add first draft of vifm configuration 2019-07-03 22:24:01 +02:00
f16bdd0c7b Add default vifmrc 2019-07-03 16:23:25 +02:00
9a1617b78a Add go configuration to vim
added vim-go plugin and assorted mappings for tests, navigation, running
and documenting go files
2019-07-03 11:49:24 +02:00
0187636e22 Change gopath to default to the new project folder
Moved from Code folder which is deprecated.
2019-07-03 11:48:27 +02:00
b66747f9fd Update alacritty config for new alacritty release
Alacritty deprecated some startup options, this should bring them back
into the correct use and get rid of the error message on startup.
2019-06-28 12:25:46 +02:00
de582afa1d Reword instructions for fuzzy finding programs
Uses the full name of fuzzy finders instead of just their abbreviations
when warning about any of them missing, to make it clearer which
programs the warning is talking about.
2019-06-26 21:21:52 +02:00
b1cb9ceef9 Remove unused fuzzy finding function 2019-06-26 21:20:40 +02:00
368032a73c Switch vim keys for Buffer/File opening
Switch fuzzy opening of buffers to <leader>f, and set opening files in
work directory to <leader>F. Switching these two is intended to allow
easier access to buffer switching, which I use much more often than file
access, especially when working over a longer time-frame in vim.
2019-06-26 21:03:33 +02:00
a442de0292 Begin adding custom sk command 2019-06-17 23:13:55 +02:00
215f93d65a Fix fuzzy directory search
Fixed search to be passed along to cd, not the rifle command.
2019-06-17 22:33:13 +02:00
900b949a7a Move fuzzy history search, Add missing fuzzy warns
Moved zhfind command to fuzzy finding since it relies on sk to be
present. Added some preliminary warnings if sk is not on the system.
2019-06-17 18:30:19 +02:00
359de7e1bd Rename fuzzy finding shell script
In preparation for extending the scripting, renamed the script from just
being a re-aliasing of fzf. Now, all fuzzy finding logic can reside in
this file.
2019-06-17 18:01:23 +02:00
348621d824 Add automatic choice of greplikes/fzflikes 2019-06-17 09:18:50 +02:00
949e071b97 Fix .. command to go up to parent directory
Fixed the quick-style .. to go up a directory. Use `cd ..` to enable the
fzf enabled selection if you quickly need to go up multiple directories
instead.
2019-06-17 09:17:17 +02:00
07c3d6e05b Revert removal of wiki delete page mapping 2019-06-13 21:38:50 +02:00
cd0894b01f Set terminal font size to more reasonable size 2019-06-13 21:38:00 +02:00
5257d3e191 Fix keybinds for wiki.vim keeping defaults
HACK HACK HACK
The default keybinds for wiki.vim are now kept, only removing the ones
that I don't need. For now, since wiki.vim does not seem to allow empty
strings being passed as its keybinds (in order to remove them by
overwriting with empty), it just assigns bogus binds with
<leader>== and an arbitrary number of === following.
2019-06-13 11:12:55 +02:00
0925515457 Add tmux session management plugin
Added tmux-resurrect plugin. This allows easy persisting of sessions
through a server shutdown. To save a session, use
<leader><c-s>, to restore it <leader><c-r>.
2019-06-13 07:22:28 +02:00
078259182c Add vim rg fulltext fuzzy search for current dir
Allows searching current working directory's files with rg (or
ag,pt,find) when invoked with <c-F> in vim.
2019-06-12 15:11:59 +02:00
6557b8dce0 Add quick fuzzy note search to wiki
Use <leader>wf from anywhere to fuzzysearch a phrase over the notes. If
no initial input is given loads all files into the interactive
fuzzysearch. Use <leader>wF to load a more detailed, full-screen windows
(via CtrlSF) which allows direct editing of results and more.
2019-06-12 14:56:15 +02:00
f06ab7804e Remove subset of vim wiki default mappings
Only keep some of the default vimwiki mappings, since the rest I don't
really need (currently) and they interfere with some other operations I
intend to map (e.g. <leader>wf should fuzzysearch wiki but will toggle a
link when overwritten by the defaults).
2019-06-12 14:22:28 +02:00
6298daeca2 Add configurable wiki root directory
Can be set through environment variable WIKIROOT. By default points to
~/Nextcloud/Notes/ but is kept configurable for each computer. Will be
picked up by vim wiki plugin to enable wiki functionality for the
respective directory.
2019-06-12 14:18:46 +02:00
abccdc7a62 Remove obsolete vim-zettel configuration 2019-06-12 13:34:25 +02:00
f7b304966c Add full-text search to notes
Adds full-text search with CtrlSF vim plugin. Activated via
<leader>wf, to spell wiki-find (mirrors <leader>ww for wiki-index).

Optimizations can certainly be done.
2019-06-11 14:55:55 +02:00
eb955beba1 Change wiki root to Nextcloud notes 2019-06-11 13:28:59 +02:00
d3cc983eff add common vim bindings
* set up beggining/end of line with H/L
* set surround current word/visually selected word with <leader>"
* set text expansion for @@ marty.oehme@gmail.com - email
* set text expansion for ccopy - copyright notice
* set common typos autocorrection
2019-06-11 13:28:59 +02:00
54e31a85ac add uppercasing in vim 2019-06-11 13:27:00 +02:00
95d79cd39a add basic wiki and zettel structure 2019-06-11 13:27:00 +02:00
34f7cd7da9 Add zhfind command
Can be used to fuzzy search through shell history.
2019-06-07 11:39:38 +02:00
510443abdf Add fzy alias to be called as fzf 2019-06-07 10:57:06 +02:00
ffee75f514 Merge branch 'master' of gitlab.com:marty-oehme/dotfiles 2019-06-07 10:30:02 +02:00
6b7705409c Add fasd shell hook 2019-06-05 16:44:15 +02:00
79768266a1 Add open in webarchive to qutebrowser,unify keys 2019-06-04 13:28:44 +02:00
eb57109565 Add abbreviations and quote surround to vimrc 2019-06-04 13:28:15 +02:00
9153315a09 Clean section breaks in vimrc 2019-06-04 13:27:01 +02:00
729bcf9660 Automatically start X when on display 1
Should start x after all the XDG folders have been set so that aliases
etc should still work. If binds/aliases do not work (things like tm, tl,
cl and so on) then this is presumably caused by a race condition and x
should only be started *after* all directories have benn set.
2019-06-04 11:30:45 +02:00
8a31e9024a Add wallabag article quickadd to qutebrowser
Adds :wallabag-add command to qutebrowser to add current page to it as
an article. Can optionally use <leader>ra (read-add) for the same functionality.
2019-05-28 11:10:03 +02:00
df45a08c6c Move scripts to .local/bin
Moved all personal scripts to ~/.local/bin to be systemd file hierarchy
compliant, as well as XDG compliant. Since they are not configuration
options they don't have anything to do in .config directories.
Also, it's just easier to find than the previous .config/scripts/bin.
2019-05-23 11:20:11 +02:00
992dedfd5b Remove tmux legacy styling
Switch option-fg, -bg and so on for the new style options which have now
superseded the legacy styling. Tmux manual
[here](https://man.openbsd.org/tmux.1#STYLES).
2019-05-23 09:45:48 +02:00
170415bc40 Improve qutebrowser configuration file
Added
* keybindings to hide/display tabbar
* leader-key binding mimicking vim
* darkmode/lightmode unified stylesheets in solarized theme
* lazy tab restoration on loading sessions
* tab closing/restoring with x/X
2019-05-22 19:58:30 +02:00
e28a068bb9 Fix duplicate i3 keybind close window
Kill window in i3 shadows shutdown pc in x. This changes the close
window key to be super+shift+c.
2019-05-22 14:49:10 +02:00
1f491f8f23 Fix background picture folder name in i3 config
i3 was looking for the picture in Pictures, but it is spelled with a
small p - pictures in my xdg dirs.
2019-05-22 14:43:31 +02:00
844256901d Remove duplicate keybindings from i3 config
Removed the keybindings now handled by sxhkd. Some are changed around
slightly, most of them are still the same.
2019-05-22 14:42:39 +02:00
bdbde11ef1 Add sxhkd key bindings file
Added the key bindings from i3 to sxhkd, making use of the new
dmenuprompt program.
2019-05-22 14:41:33 +02:00
472b2e8f92 Add simple prompt program based on dmenu
Can be used to as for confirmation for actions (E.g. shut down pc,
reboot and so on). Takes 3 parameters, with the last being optional, in
the form of:

dmenuprompt "Text to display" "command to execute on yes"
[success/warn/danger]

The last flag only changes the colors being displayed by the prompt.
If the last flag is not provided, it will display in default colors.
2019-05-22 14:24:29 +02:00
0e829a629c Fix i3 config indentation 2019-05-22 13:30:01 +02:00
85100995df unify vim prose functionality under one function 2019-05-20 17:13:38 +02:00
9000b8b873 add U for redo in vim, set localeader to leader 2019-05-20 17:02:32 +02:00