Commit graph

283 commits

Author SHA1 Message Date
717b9d9096 Adapt compton config to new naming scheme picom 2019-11-18 18:19:48 +01:00
a1c8b56003 Exchange supercrabtree/k for exa
exa is more versatile and way faster than k. I rarely used the git
integration of k (which is, admittedly, better), as well as the colored
variables. So exa should work well enough for my purposes, especially
since I make more use of vifm when cd-ing through a lot of directories.
2019-11-18 17:26:24 +01:00
c56e96cc11 Fix some pandoc variables for bibliography 2019-11-18 17:20:43 +01:00
b33a58b593 Fix true color support for nvim in tmux
Uses the correct TERM env var and sets the correct rgb setting for
surrounding terminal.
2019-11-18 17:16:32 +01:00
15e63044db Add colorscheme switching and airline/tmux autoset
Use <leader><F8> to set a new colorscheme in vim. The airline
automatically sets itself to the corresponding colorscheme, as does the
tmux statusbar at the bottom.

Use <F8> to toggle between dark and light mode for the colorscheme (not
all colorschemes support this unfortunately, I might restrict the
installed colorschemes to those that do). Again, Airline and tmuxline
will automatically adjust themselves.

Tmux prefix highlight plugin has been removed, since its functionality
can be replicated easily with the ?client_prefix function in tmux -
which also works regardless of any styles applied to the statusbar
through tmuxline. Currently, whenever the prefix is active the
clock-area will turn bright blue.
2019-11-18 11:00:10 +01:00
4cd3feda3a Switch to official notational velocity vim plugin
It works with fzf, and will use smartcase for its search. Since the
setup is not using skim anymore, the official plugin will do.
2019-11-17 23:03:17 +01:00
40b0a2a775 Remove grammarious from vim
I've never actually used it for prose writing, and it depends on Java
installation as a dependency which is not installed on my machines.
2019-11-13 17:48:04 +01:00
dc29299157 Add font highlighting and dpi scaling
Check this works for both desktop and laptop display.
2019-11-13 17:46:15 +01:00
3c6ef91ae0 Fix shortcuts and settings for bibtex-fzf 2019-11-12 08:38:21 +01:00
75195765ca Set fzf commands to actually use FZF 2019-11-04 21:59:43 +01:00
570c575776 Add FZF bibliography insertion 2019-11-04 21:45:59 +01:00
e8e8290426 Edit pandoc academia settings 2019-11-04 19:26:36 +01:00
8ffa12744c Add several experimental academia profiles 2019-11-04 19:13:43 +01:00
02c323bea5 Fix profiles folder 2019-11-03 12:27:36 +01:00
84a2a945df Add vim profiles folder 2019-11-03 11:37:33 +01:00
44bed9b6a4 Add calculator to meta+r quicklaunch menu 2019-10-24 17:07:15 +02:00
9914f5ae91 Fix pandoc conceal levels and add to Prose group 2019-10-24 17:06:30 +02:00
675e4fd9d5 Refactor markdown plugins, enable conceal, add day colorscheme to term 2019-10-18 11:02:11 +02:00
320d62e880 Merge branch '56-set-up-vim-for-rmarkdown-and-academic-writing' of gitlab.com:marty-oehme/dotfiles into 56-set-up-vim-for-rmarkdown-and-academic-writing 2019-10-18 11:01:14 +02:00
552a56cc33 [nvim] Improve compilation filetype target
Allows compilation using pandoc to happen for markdown, as well as
rmarkdown files.
2019-10-18 10:59:57 +02:00
14f6bee7a1 [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-10-18 10:59:57 +02:00
de0b83fb3f [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-10-18 10:59:57 +02:00
350158c520 [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-10-18 10:59:02 +02:00
48be54b79c Refactor notes/wiki search functions 2019-10-17 18:55:32 +02:00
73b5004c3f Fix tab titles separator at the end 2019-09-29 21:40:38 +02:00
ed25b3d966 Add gopass configuration file 2019-09-20 14:53:47 +02:00
06489ac101 Add yank filename/-path to vim as yf 2019-09-19 15:43:40 +02:00
a0a14c4afd Set default papis notes to RMarkdown file ending 2019-09-19 15:39:45 +02:00
640ee9dbf9 Add surfraw rofi extension to search the web with bangs 2019-09-18 17:55:44 +02:00
76efabe67b Add gopass settings for vim 2019-09-18 16:01:43 +02:00
710e47758d Add rofi-gopass to quickly enter gopass entries 2019-09-18 16:01:06 +02:00
81ecb4dfb6 [HACK] Add fix for sxhkd rofi menu
HACK TODO: Added a hard-coded line to the rofi powermenu mode in
.config. Should either point to an XDG compliant rofi-modes folder
(.config/rofi-modi or smthg), or, ideally a specific directory in rofi
configuration or scripts and rofi specific dirs. That depends on the
rofi modi being seen primarily as scripts or as configuration of the
operating procedure of rofi.
2019-09-10 23:47:50 +02:00
9fb9bb39ee Fix rofi layout sizings for fullscreen 2019-09-05 22:07:10 +02:00
da5cd9ef1f Add rofi menus to global shortcuts
Accessible through Super+Space for the quickrun menu (essentially
emulates dmenu, just with a nice colorscheme); Super+r for a more
extensive options menu: window switching, clipboard history, ssh
(accessible with Shift-right). First step toward streamlined rofi
config.
2019-09-05 21:41:07 +02:00
8b7de007e9 Add dmenu-like application selector 2019-09-05 21:15:50 +02:00
b28a98c4e4 Add rofi-nerdfont icon picker mode 2019-09-05 19:50:17 +02:00
c6c4161d77 Add rofi-fontawesome icon picker mode 2019-09-05 19:21:55 +02:00
ff6ca7e684 Make rofi-powermenu configurable through env vars
Added Environment variables to show/hide the text and icons, as well as
change the individual commands rofi-powermenu uses to affect the system.
2019-09-05 17:47:15 +02:00
49cacfe787 Refactor powermenu to rofi modus 2019-09-05 16:21:53 +02:00
3d9ea5cffe Configure rofi-powermenu and lockscreen script
Use rofi-powermenu to show options for suspend,reboot, shutdown,
lockscreen, log out. Can be invoked with <M-backspace>. Other power
option shortcuts have been removed from quick access through sxhkd or
i3. Lockscreen can still be quickly set with <M-x>.

Lockscreen now resides in its own script to provide one source of truth,
and in case it is further customized in the future.
2019-09-05 13:31:42 +02:00
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