Commit graph

1312 commits

Author SHA1 Message Date
502d3ef821
[i3] Add border toggle, fix startup apps
Added a border toggle on mod4+b, toggles through no border (default),
plain border, border and window title. Removed individual changing the
outer gaps keybind -- gaps are changed along with resizing inner gaps,
and who really needs to seperately change only the outer ones.

Substituted exec for exec_always to not repeatedly start copies of
'dropdown' windows whenever restarting i3.

Changed a couple keybindings around that should largely not be
noticeable during normal operation, for reloading and restarting i3.
2020-03-02 19:16:25 +01:00
71ec5b31cf
[nvim] Change default fzfrg to search hidden files
<leader>F will search hidden files but skip the .git directory. This is
what I want most often.
2020-02-27 20:54:43 +01:00
4010b3ffc1
[nvim] Fix fzf cmd & coloring
Fix various little fzf annoyances: Implement good coloring of floating
window. Make it use fd by default, search through hidden files but
ignore the git directory itself.

Also, let it split the window on s and vertical split on v.
2020-02-27 10:07:09 +01:00
a390d14390
[nvim] Simplify floating fzf window
fzf already comes with its own floating window call function, so we
don't have to use our own. Instead simply call the floating window when
we are in compatible vim/nvim version and let fzf do its thing.
2020-02-27 10:06:38 +01:00
3575c147b2
[nvim] Update spellfile 2020-02-25 23:27:15 +01:00
083cfa3c20
[nvim] Change fzf to use floating window
By default fzf now uses a floating window covering most of the editor
screen real estate. It can still be full screened with a bang.

Floating window can be made optional with fzf layout options, but for
now I will try it for all fzf searches to get a feel for the positives
and negatives.
2020-02-25 23:25:25 +01:00
fcd58887da
[nvim] Add Fzf mappings for git, helptags 2020-02-25 23:24:40 +01:00
f0dff67410
[polybar] Add safer package update checking
Package updates in yay (as in pacman) will not be reported correctly
when the repository mirrors have not been updated recently.

However, updating only the mirrors without also synching the packages
locally is not recommended by arch. That means, essentially, we can't do
a dry-run to only 'check' for packages without running the danger of
performing a partial arch upgrade.

The program `checkupdates` in pacman-contrib package helps with this by
performing a check for the available updates without needing to pull
from the mirrors before. So, the polybar update script now checks for
its existence and uses it if available, falling back to the standard yay
procedure otherwise.
2020-02-25 07:53:05 +01:00
3f1443c546
[sh] Remove dimswitch tests
Removed dimswitch, kept its tests. That will work well.
2020-02-23 23:02:36 +01:00
e5a6c3e350
[X] Add simplifying xclip script
Added `clip` to path, allows sending stuff through stdin or via normal
file input to xclip. Makes xclip default to clipboard when clipping
input. Special handlers for image files (png and jp[e]g).
2020-02-23 22:50:13 +01:00
0f67355ccd
[nvim] Add ale defaults
Added package which sets ale defaults without having to define them
myself. Still keeping ale settings file around, but can probably get rid
of it soon.
2020-02-23 22:47:39 +01:00
393dd4e042
[sh] Remove dimswitch,clean homedir,improve exist
Removed dimswitch script. I liked it but it has been utterly superseded
by styler; if wanting to switch light and dark I can just switch to
light or dark base16 theme and do not have to rely on alacritty config
file hacking through dimswitch (well, now just through styler, yay.)

exist script will print message to stdout even if it prints to notify,
this makes more sense since now passing a loudness factor just adds it
to the message, instead of replacing printed message with libnotify.

Added stow ignores to top-level files. Not entirely sure if it is
needed, but they were linked on my system and the change shouldn't hurt.
2020-02-23 22:39:51 +01:00
92a01d99ee
[git] Substitute git for https connections
When git is invoked with https for either github or gitlab then
automatically switch it out to git@server.com
2020-02-20 22:47:00 +01:00
167744e8c8
[tmux] Fix true color support, especially in nvim
Tmux needs Tc set to enable truecolor support. At the same time, the
file was setting the same variable multiple times and in illogical ways.
So it now gets the term env var from the actual variable and simply adds
truecolor support.

Also removed cursor switching support for nvim, since tmux seems to
support it natively now. If it does not, this needs to be reinstituted.

Following discussions here:
https://www.reddit.com/r/neovim/comments/825dj7/the_endless_litany_of_tmux_and_nvim_color_problems/
and here:
https://stackoverflow.com/questions/41783367/tmux-tmux-true-color-is-not-working-properly
2020-02-20 20:46:41 +01:00
4e8be2abf2
[i3] Add todo and terminal dropdowns
Added quick access to todo.md file in home directory with mod4+t, and to
a dropdown terminal window with mod4+shift+return (mirroring the usual
terminal creation without shift).
2020-02-19 00:24:17 +01:00
92d5155aca
[i3] Simplify gap management, improve mode naming
i3 now uses mod4[+shift]+g to increase/decrease inner gaps and +b to do
the same for outer gaps.

The mode name for media has been put into a variable to make potential
dynamic namings possible and avoid duplication.
2020-02-19 00:24:02 +01:00
4191ed430b
Add simple dunst configuration
Configuration mostly copied from sample dunstrc provided by the package.
Sets basic layouting and is used by styler to append colorschemes
on-demand.
2020-02-16 14:29:21 +01:00
9919c68975
Improve styler documentation
Replaced `list templates` with correct command `list packages` in styler
command line help printout.
2020-02-16 14:28:28 +01:00
3dac8e5034
Source fzf-tab plugin, installed from custom repo 2020-02-16 14:23:05 +01:00
d5b7646611
Add make recursive dir alias, fix tmux alias
Fixes tmux session function alias and renames function to be a bit more
descriptive.

Added basic `md` alias to recursively `mkdir` directories.
2020-02-16 14:21:42 +01:00
fcbadd2bf0
Prepare qutebrowser for styler automation 2020-02-16 13:55:51 +01:00
b8e10e727c
Prepare alacritty for styler automation 2020-02-16 13:52:09 +01:00
347ef4e41f
Add thesaurus function to nvim
Added thesaurus calling on leader-zt, for word under cursor or selected
word(s). Will go through variety of online api's or locally supplied
mthesaur.txt from project gutenberg.
2020-02-11 17:17:47 +01:00
9fe4e5aab9
Fix qutebrowser reddit js whitelist
Unblock javascript only on old.reddit.com domain, since that is the one
I am using. I don't want to unblock on the new design.
2020-02-11 14:42:17 +01:00
31b8a50c60 Merge branch '86-readme-images-point-to-the-wrong-location' into 'master'
Resolve "Readme Images point to the wrong location"

Closes #86

See merge request marty-oehme/dotfiles!29
2020-02-11 09:33:18 +00:00
4634655619 Fix README image paths and dot description
Fixed paths to images for new repository dotfile delineation. Added
quick readme blurb explaining differece of normal and dotfile
directories.
Readme still explained old bare-repository directory structure. Rewrote
sentences to conform to new structure.

Removed underscore from bootstrap directory, since the repository does
not organize itself through underscore prefixes anymore.
Fixed package gathering git-hook to respect new bootstrap directory.
2020-02-11 09:33:18 +00:00
4d748ebebd
Add qutebrowser formedit shortcut
Added qutebrowser shortcut to edit forms in vim (leader-e). Added gitlab
and asciinema to javascript exceptions list. And removed some never-used
shortcut mappings.
2020-02-11 09:50:21 +01:00
facb95f0b9
Fix linting and static analysis
Set linter and formatter to *only* run when files it works for are
actually detected. Uses moreutils' ifne to detect the status of stdin
before sending an empty string to the test suite.
2020-02-10 22:24:38 +01:00
a29ce0aabf
Improve zsh vi-mode handling
Moved mode indicator to more immediately visible prompt location.
Allowed deletions and adding spaces regardless of mode.
Allow moving backwards through history and searching through terminal
input history.
2020-02-10 21:07:00 +01:00
b76b3ca4ca
Fix compile script
Fixed compile script to not use ifinstalled anymore.

HACK Fixed compile script to correctly pass through output targets to
RMarkdown, through the implementation is very rough currently.
It will look for additional arguments passed through and run RMarkdown
rendering once for each target. It would presumably be faster (and at
the very least more elegant) to pass all arguments through at once, but
I am not sure how to pass arguments through shell surrounded with
quotes.
2020-02-08 20:26:31 +01:00
145548c01a
Change ifinstalled script to exist
Renamed ifinstalled to exist, moved it into base shell module. It can be
called with just a command name to check for, or with an additional
libnotify urgency level (low, normal, critical).

If called with an urgency as the second argument, the user will be
notified of the missing command with the corresponding urgency.
2020-02-08 20:23:30 +01:00
97f7fcbbd6
Move scripts into respective directories
Having a general script folder makes little sense if the scripts are
targeted to specific applications. This commit moved every script that
solely, or mainly (like ueberzug), targets a single application into
that respective stow module.
2020-02-08 20:17:44 +01:00
7d60a61565
Add spellsync plugin to vim
Enables easier vcs integration of vim spelllang dictionaries. Will cause
them to be reloaded on external editing, add their binary parts to
ignore files, and set their addition files to unison merge mode.
2020-02-08 18:42:12 +01:00
40b6d2220c
Remove zsh plugin manager
Plugins are managed directly through pacman packages now. Since I am
only using six zsh plugins and they are staying relatively constant and
not changing much, pacman seems a much more sane way to manage them
without cluttering up my zsh initialization routine. All zgen management
can go and just needs 6 `source` lines in order to load the plugin
entrypoints.
2020-02-08 16:28:36 +01:00
370c155ca4
Standardize top-level directory paths
Anything which needs to be (at least partly) touched by stow should stay
in the top-level normal directory name that they are. Anything that
*only* concerns the repository, not the dotfiles, should be moved into a
hidden folder, preceded by a dot.

These directories should still contain a `.stow-local-ignore` file
patterning everything which should not show up in stow (i.e. `^/.*`,
everything) since it is not guaranteed that stow will ignore the
.dotfile directories. The installation script does ignore them on its
own, for now, but is not guaranteed to in the future either.
2020-02-07 22:41:30 +01:00
c76b0d0223
Sign commits by default
By default use the gpg signing key to sign any commit made from this
machine, or with the help of these dotfiles.
2020-02-07 22:36:00 +01:00
ecbf8409f9
Add git hook for package comparison
When moving to commit, this hook will automatically fire and check the
current system's installed packages against those explicitly committed
to the repository. If they mismatch it will inform the user.

It will not prevent the commit, but simply add a comment at the top of
the commit messages to remind the user that something is unbalanced
between both. It would be recommended to either check the additional
package into source control, remove it from the current system, or
explicitly add it to ignored packages.
2020-02-07 22:31:41 +01:00
c7ed986c0e
Update package list
Updated package list in preparation for unified package management. For
the moment still uses basic bash script to manage package installation.
Packages are collected in a big list, with some packages being ignored.

This is in preparation for the possibility to manage future package
'groups' directly in pacman meta packages. They will then be added /
removed to the individual PKGBUILD files as dependencies and will
automatically be kept up-to-date, added and removed on all systems which
use the corresponding meta group.

It also opens the path to have commit-time checking of irregularities
between the packages stipulated in the dotfile repository and the
current running system. This can be done by adding all packages of the
different package group lists, unifying them and removing potential
ignored packages.

It allows e.g. printing a warning when committing changes to the
repository while the system packages and the repository packages differ,
to make sure no package dependencies were introduced without knowing it
and which would introduce potential breaking changes into the dotfiles.
2020-02-07 22:07:53 +01:00
83728d6fb0 Add nvim spell dicts and management
Added custom term spell dictionary for neovim. Will track any words that
should be needed on all my machines.

Added spellmake plugin which watches spellfiles and rebuilds the binary
whenever a new word has been added through external edits like git.

The plugin also automatically adds a gitignore file for the .spl
file, and a unison merge strategy through a gitattributes file to any
spell directory it finds. Ignoring is due to .spl being automatically
generated binary files. The merge strategy ensures that no merge errors
will pop up even when words get added in different orders. All it cares
about is that the content of the files is the same, in whatever order.
2020-02-06 23:12:49 +01:00
348a167390 Fix tmux vim navigator movement
Fixes tmux xdg-compliance (and, more importantly, Tmux Plugin Manager's)
by setting the environment variable TMUX_PLUGIN_MANAGER_PATH to follow
xdg specifications. Tmux, due to not being xdg-compliant, needs to be
aliased to start with the `-f` option pointing into the configuration
directory.

Fixes tmux vim nagigator's controls being overwritten by other control
schemes in tmux.
2020-02-06 20:49:15 +01:00
87ad744e6a Point main README to git module README 2020-02-06 15:09:45 +01:00
8741bbac24 Add git module README 2020-02-06 15:09:22 +01:00
d411be708e Add gitignore usage information, fix empty api calls
Added general usage information. Made sure gitignore api is never called
without any arguments.

Made script fzf aware -- if it finds fzf it can be invoked without
arguments, if it does not it will display usage information instead.
2020-02-06 15:07:55 +01:00
84aae314f5 Fix dotlink.sh missing shebang 2020-02-06 13:12:08 +01:00
71f9076846 Change bootstrap to use standard stow functions
Removed the `autostow.sh` scipt. Its use was to call stow for every
folder in base directory and ignore certain folders. Both those
functions can be handled by stow on its own.

Stow allows defining per-directory ignore patterns with
`.stow-loca-ignore` files, which can be set to `.*` to completely ignore
a folder, just as before. And Stow can be called with a glob pattern to
automatically call it for every directory in the repository.

`.stowrc` additionally makes sure that all operations take place
targeting the home directory of the current user, since that is where
the dotfiles will (generally) be stored. Of course, this can be
overridden with the stow command-line options (see option precedence in
stow manual).

Finally, the bootstrap stow module adds an alias `dotlink` to the shell,
which allows fast (re-)stowing of all directories in the dotfile
repository. It uses a hard-coded location for the .dotfiles base
directory, so if the dotfiles are cloned anywhere else this has to be
customized.
2020-02-06 12:48:08 +01:00
1d28202f17 Add styler zsh completions
Can list available commands, specific options for commands (such as
list), and a complete list of installed themes that can be applied.
2020-02-05 23:52:23 +01:00
b344242dff Standardize and document styler cli commands
Removed superfluous styler `--theme`-style options, instead relying on
the commands provided to be the primary way of interaction.

Documented the new standardized ways with the `help` command and added
improved documentation for all avaliable options.
2020-02-05 23:51:49 +01:00
d1438b216c Styler add empty argument check 2020-02-04 22:00:13 +01:00
7b076d7a2f Standardize wiki link opening scheme with xdg-open 2020-02-04 20:47:49 +01:00
c541763617 Add wiki.vim file opening scheme for pdf, html
Can open file-links that the cursor is currently over (in markdown link
format). PDF is opened in zathura, html in qutebrowser, the rest in vim.
2020-02-04 20:40:03 +01:00