Commit Graph

1348 Commits

Author SHA1 Message Date
druckdev
4f182e9108 fzf: Use rg instead of find when installed
Use rg as it respects possible gitignores.
2020-11-15 01:20:42 +01:00
druckdev
af49c39ba3 zsh: Reorder zshrc components and move stuff
Put the external plugins to the end as well as z-sy-h to the end of the
plugins.
Put the last remaining lines in the zshrc in their own modules.
2020-11-15 01:16:00 +01:00
druckdev
97ab5d64a6 rofi: Fix duplicate, whitespaces, bindings & more
Fix the duplicate config by replacing `config` with a symlink. `config`
only exists for the `conf` function in zsh.

Remove *.font since it is overriden by the Xresources setting.
TODO: Keep rofi form reading the Xresources file?

Remove *.lines setting, since it is overridden by window.height.
Convert spaces to tabs.
Add Vim like keybindings for navigation.
Set matching-type to fuzzy.
Remove unused commented lines.
2020-11-12 23:43:23 +01:00
druckdev
0e5dd20db4 zsh:alias:gpg: Fix zsh-sy-h related freeze 2020-11-12 22:51:16 +01:00
druckdev
bf46c5f687 zsh: Divide zshrc into zshrc.d
Move every file from plugins into zshrc.d as well as all bigger blobs in
the zshrc into their own files there.
Some stuff is still in there that I am not all too sure where it
belongs. TODO: Move.

Because all external plugins are now sourced over a symlink I had to
create a fork of fzf-tab for now that supports that.
See: https://github.com/Aloxaf/fzf-tab/pull/153
2020-11-10 02:58:22 +01:00
druckdev
a1b988838c vim:coc: Add C and shell language servers 2020-11-08 03:22:45 +01:00
druckdev
51643beddf fzf: Add DEFAULT_COMMAND and vim :Files mapping
Add FZF_DEFAULT_COMMAND that displays hidden files as well, but ignores
.git directories.
Add :Files mapping in vim. Because it is bound to <leader>f, the leader
key mapping had to be moved to the top of the file.
2020-11-08 03:19:40 +01:00
druckdev
c468af1fc2 vim: Display tab characters 2020-11-08 03:18:54 +01:00
druckdev
eb177d457e git: Add submodules to the pager changes regex 2020-11-07 03:21:35 +01:00
druckdev
2bebc2f9b5 vim: Fix plugin order 2020-11-07 03:21:10 +01:00
druckdev
00c6274d2d vim: Add fzf plugin
Symlink the fzf repo into the plugin directory and `packadd` it.
Add fzf.vim (that depends on the base fzf as plugin).
2020-11-07 03:19:33 +01:00
druckdev
5c19bd6414 zsh:plugins: Update fzf-tab & p10k submodules 2020-11-07 03:16:15 +01:00
druckdev
75a8af2d14 repo: Move fzf to non zsh-dependant location
Since fzf is not really only a zsh plugin this moves it to .local/bin.
I am not quite sure it will stay there.
The submodule was also updated in this process.

Update all links and references.
Add .local/share directory that contains the man pages. By that dotbot
just globs all of them and symlinks them. This makes it more modular and
a bit more transparent on how an installed system looks like, just by
looking through the repo structure.
2020-11-07 03:07:59 +01:00
druckdev
42cbed25b2 zsh:alias:zathura: Move output redirection to end
Move the output redirection of the zathura-pdf alias from the front to
the end to not confuse zsh-syntax-highlighting.
2020-11-07 02:17:17 +01:00
druckdev
6ff87f1e9c zsh: Add vimdiff alias that displays whitespaces 2020-11-05 14:49:45 +01:00
druckdev
211ef6e047 vscode: Use tabs per default, XDG & gitignore
Use tabs instead of spaces per default. (VSCodium will still respect the
indentation used in the file)
Stop vscode from writing files in HOME.
Since only the settings.json is versioned in this repo but the full
folder is symlinked: Ignore all other files that will be written.
(TODO: Only symlink file)
2020-11-05 14:45:46 +01:00
druckdev
9d166a6097 zsh: Use &>/dev/null 2020-11-05 14:45:05 +01:00
druckdev
76920ea53e zsh: Add cd wrapper for calls without arguments
Add a cd wrapper that when called without arguments, moves into the root
of the current repository instead of HOME. (Except when already there)
2020-11-05 14:42:33 +01:00
druckdev
d27b25c46d vim: Jump table bindings
Center cursor after jumping.
Add <S-Tab> binding to jump backwards to match the <Tab> binding (jump
forward).
2020-11-05 13:13:05 +01:00
druckdev
fdaa2dedb7 vim: Add surround and delimitMate plugins
These plugins add functionality to automatically close and surround text
with parantheses, brackets, quotes, etc.
Overwrite the vim-surround default bindings since they conflict with my
substitute bindings.
2020-11-05 13:08:04 +01:00
druckdev
74dd5de08d zathura: Dark colors + Make default pdf program 2020-11-05 12:51:38 +01:00
druckdev
1491c998a3 zsh:profile: More XDG Base Dir env-vars + wgetrc
Use an environment variable and a wgetrc instead of an alias for wget to
enforce the XDG Base Directory Specification so that script calls
respect it too.
2020-11-05 12:37:19 +01:00
druckdev
7753a1f7bf i3,polybar: Add bind and make calendar toggleable 2020-11-05 12:23:43 +01:00
druckdev
cffe17fd77 i3: Start telegram when not done before 2020-11-05 12:20:29 +01:00
druckdev
ddb2114a87 repo: Add XDG user dirs config + Update zsh hashes
Create named directories to every visible folder in $HOME for greater
portability.
Set the CDABLE_VARS zsh option.
2020-11-03 15:11:30 +01:00
druckdev
d0aa4ea65b firefox:user.js: Dark theme and fix sorting 2020-11-03 14:25:05 +01:00
druckdev
121900c093 zsh: Add mvln() that moves a file but keeps a link 2020-11-03 14:23:54 +01:00
druckdev
d7739bb16a zsh: Add more aliases that enforce XDG Base Dirs 2020-11-03 14:22:22 +01:00
druckdev
2f198cdb2e vim:xdg: Fix bug that creates ~/~
Fix bug that when the XDG Base Directory variables are not set on
startup a directory "~" is created in $HOME instead of falling back to
the default values.
2020-11-03 14:12:16 +01:00
druckdev
ec147dfc43 zsh: Move stuff around
Move all environment variables that do not relate directly to zsh but
(in most cases) enforce the XDG Base Directory specification to
zprofile.
This way they are just exported once on login and not every time the
shell starts again.

Move the lines in zshenv that are not directly responsible for moving
the zsh files into $XDG_CONFIG_HOME to their own zshenv there.
2020-11-03 13:59:54 +01:00
druckdev
983e1b0b0b zsh: Fix copy paste error from fe5a65f
Accidentally exported MANPAGER as neovim as well when neovim does not
exist.
2020-11-03 12:32:29 +01:00
druckdev
13a9b036ff zsh:alias: Set a reasonable time format for date 2020-11-03 01:35:17 +01:00
druckdev
fe5a65fa23 zsh: Make neovim the man pager
And disable vim's spell check in man pages.
2020-11-03 01:11:40 +01:00
druckdev
22fdf96020 i3: Declare and use variables for workspace names 2020-11-03 00:41:10 +01:00
druckdev
34219051e3 nvim: Fix coc.nvim and install it automatically
Fix bug introduced in c0f7b43 that stopped the sourcing of coc.nvim in
neovim.
Add command to the dotbot installation config to install coc.nvim
automatically after pulling its submodule.
2020-11-03 00:25:00 +01:00
druckdev
0fe0679276 all: Update submodules 2020-11-03 00:21:46 +01:00
druckdev
23f7cb3fde git: Add user details 2020-11-03 00:04:52 +01:00
druckdev
ba0c29e90e zsh:glog: Add pgp signing infos 2020-11-03 00:02:05 +01:00
druckdev
d8222a861a polybar:launch.sh: Fix typo 2020-11-02 23:26:26 +01:00
druckdev
62cd1d5b1f polybar: Add calendar popup on date-module click 2020-11-02 23:25:10 +01:00
druckdev
4d1b540778 zsh:ls-show-hidden: Bug fixes around -d flag
Fix behavior to match ls's when the -d flag but no files or directories
were passed.

Fix bug that the function thinks -d is passed when a long option that
contains a 'd' (as --group-directories-first) is specified and thus
just emulates plain `ls` in that case.
2020-11-02 17:46:26 +01:00
druckdev
f487261365 zsh: Reenable stderred with workaround for gpg
Using stderred's blacklist does not work. The new alias simply removes
the stderred library from LD_PRELOAD for the execution.
2020-11-02 15:22:39 +01:00
druckdev
db5fe9fcd3 zsh:alias: Small bug fixes
Use XDG_CONFIG_HOME instead of hardcoding the tmux config path.
Simplify the battery alias a lot.
Fix quotation issues in url{dec,enc}.
2020-11-02 03:42:21 +01:00
druckdev
ff25909ff9 zsh: Disable stderred for now
It seems to be incompatible with my current version of gnupg.
(*** stack smashing deteced ***: terminated)
2020-11-02 02:14:28 +01:00
druckdev
f0a0ba06c2 zsh:functions: Use portable syntax for functions
Use a portable syntax for the function headers.
Since I do not know where these functions could end in the future it
makes it easier and more consistent to use the portable syntax.
2020-11-02 02:04:38 +01:00
druckdev
6eac13011a zsh: Add named directory for work 2020-11-02 02:03:22 +01:00
druckdev
f8485e03e3 vim: Add Umlaute + sz and merge redundant bindings
Add bindings for typing Umlaute and sz.
Merge redundant bindings that are bound in multiple modes.
2020-11-02 01:59:28 +01:00
druckdev
744a1d5406 xresources: Add font for rofi and vim modeline
Rofi has a problem with the syntax used in *.font.

Since the file was moved and renamed, vim does not recognize the file
format correctly. This commit fixes that by adding a modeline.
2020-11-02 01:53:31 +01:00
druckdev
e846de0570 git: Use github per default
user.config holds some path were I want to use my gitlab account.
2020-10-31 22:38:46 +01:00
druckdev
ef13b24e80 zsh:alias: Update named directories
Update named directories location and rewrite the hash for wise and sose
to use a solution without tail but only the zsh glob power.
TODO: Find solution to get rid of the `echo` as well.
2020-10-31 22:34:13 +01:00