Commit Graph

98 Commits

Author SHA1 Message Date
e0c0119a36 monitor-setup: Rewrite 2022-10-09 19:50:56 +02:00
7666086dba *: Move die() into .local/bin/helpers.sh
The function `die` was redundantly implemented in various files.

Move the function into .local/bin/helpers.sh and source that where
previously implemented.

Also prepend the program's name to the message and always terminate the
message with a newline. The newline was previously needed for a small
but unnecessary hack that prevented the need of the `[ -z "$1" ]` test.
2022-09-22 14:39:20 +02:00
4ccf7961b2 bin: Add trans to translate text with DeepL 2022-09-19 14:23:47 +02:00
2643445ed0 .local:bin:timetracking: Update tail command 2022-07-14 14:24:59 +02:00
8c6a2f1ba5 git:plugins: Update diff-so-fancy, git-filter-repo 2022-07-12 21:00:11 +02:00
0f38510810 vim:plugs: Add vimwiki 2022-07-12 21:00:06 +02:00
392bc1c49b tmux:plugs: Remove tmux-yank
It messes with mappings I set (e.g. `MouseDragEnd1Pane`) and brings no
real addition in functionality.
2022-07-12 21:00:04 +02:00
891cb063e6 git:filter-repo: Build manpage on installation 2022-07-12 21:00:02 +02:00
03163a92a4 git:filter-repo: Add to $PATH 2022-07-12 21:00:02 +02:00
40416ebd9c *: Move third-party plugins into .local/share/
Move all submodules that were under .config/ into .local/share/ (alias
XDG_DATA_HOME). I got convinced that they feel out of place in .config/.

Instead of updating the paths from which they are sourced (e.g.
`TMUX_PLUGIN_MANAGER_PATH` or `packpath`), keep a symlink in the old
location that points to the new one. This has the benefit that
everything related to one program remains mostly accessible from the
same place instead of spreading everything out.

I am still unsure if I really like the new location as I affiliate user
**data** more with something that has to be backed up as it is
non-recreatable. And moving them out of .config/ had the reasoning that
they are not my config files but rather data from the internet that
could be retrieved when deleting. But using XDG_CACHE_HOME seems
unreasonable as well.
We'll see.

Move the fzf-repo from ./local/bin/ to .local/share/.

Update all relative symlinks' (e.g. fzf) targets.
2022-07-12 21:00:01 +02:00
00927c8921 *: Use tabs for indentation where appropriate
I am a big supporter of the approach to indent with tabs and align with
spaces. (Read [here][1] f.e.) Thus at some places a simple `s/ {4}/\t/g`
(replace 4 with whatever fits) is not enough and a bit more thought is
needed. Because of that there are still places where I plan to
substitute the whitespace in the future.

This patch contains exclusively whitespace changes. Check for yourself
with `git diff --ignore-all-space`.

[1]: https://dmitryfrank.com/articles/indent_with_tabs_align_with_spaces
2022-06-23 23:59:01 +02:00
b96d32996b *: Wrap lines at 80 columns where appropriate
Wrap lines at 80 columns where appropriate and I had the energy to think
about how/where to wrap.

There are still lines longer than that, which I plan to wrap in the
future. But that is enough for now.
2022-06-23 23:59:00 +02:00
020b39887e gpg,git: Move gpg.loopback into PATH
Move gpg.loopback into PATH as git's `gpg.program` does not handle paths
with `~` or other environment variables very well.
2022-06-23 23:58:54 +02:00
5caff096cb bin:timetracking: Sort weeks numerically 2022-03-30 03:00:47 +02:00
25ba34c913 bin:timetracking: Print difference to expected hs
Print difference between the sum of all hours and the expected numbers
of hours.
2022-03-30 03:00:47 +02:00
3c4a0d4038 bin:timetracking: Fix octal representation
Fix unwanted octal representation.

Fixes a49bc5f1b5 ("bin:timetracking: Remove padding `0` prefix")
2022-03-30 03:00:47 +02:00
a49bc5f1b5 bin:timetracking: Remove padding 0 prefix
Remove a potential padding `0` as prefix as the number is then
recognized as an octal number.
2022-02-24 17:39:07 +01:00
e268a2fd57 bin:timetracking: stdin, curr year, soft columns 2022-02-17 15:17:33 +01:00
cb7263e77d *: Update plugins and other submodules 2022-01-29 22:42:33 +01:00
eaa4b938c3 bin: Add timetracking 2022-01-28 16:35:57 +01:00
b1d396babd *: Use /usr/bin/env in shebangs for bash & zsh
To increase the portability (OSX for example has zsh under `/bin/zsh`).
2021-07-14 13:48:21 +02:00
029aa73759 bin:raw2preview: Do not always exit with code 1
When a preview was generated and `JPGs` exist at the end, `rmdir` would
fail and the script would always exit with that same return code.
2021-07-13 17:04:28 +02:00
4650ebe641 bin:raw2preview: Add support of TIFFs
I know that TIFFs are not strictly speaking raw files. But I don't
bother remaining the script.
2021-07-13 17:01:54 +02:00
ec0e23d07b gnupg: Add gpg-agent configuration stub 2021-06-04 11:55:46 +02:00
987cabb841 bin:zoom-links: Only copy if browser opened
Do not overwrite the link in the clipboard if nothing opened.
2021-04-19 18:17:36 +02:00
fb72813e0c bin:raw2preview: Refactor + skip directories 2021-04-08 18:30:17 +02:00
60761055d3 bin:filterHistory: Update characters to escape 2021-04-02 18:45:12 +02:00
f0ebab3ca2 repo: Update submodules 2021-03-08 01:05:32 +01:00
0d35030132 bin: Add monitor selection script using xrandr+fzf 2021-01-05 23:18:04 +01:00
914e8a1992 repo: Update submodules & cleanup gitmodules
Update all submodules to the newest commit.
Change submodule names in `.gitmodules` from local path to repo names.
Sort and group `.gitmodules` by program that uses it.
Remove the clone of 'fzf-tab' as my pull request got merged.
2020-12-22 16:22:33 +01:00
3202178fb2 bin:zoom-links: Delete ? with pwd & better comment 2020-11-29 13:39:59 +01:00
druckdev
1d56537c1d direnv: Add python virtual environment template 2020-11-23 02:20:03 +01:00
druckdev
9755823819 bin:zoom-links: Use firefox with zoom profile 2020-11-15 01:30:16 +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
a1990a751c .local/bin:filterHistory: Fix bug and refactor
Fix bug that `cut` only took the second field when splitting on ';'
instead of everything after the first semicolon and thus not properly
handling commands that contain semicolons.

Add die() and hist-sort().
Use here-string instead of process substitution with input redirection.
Rephrase comment.
2020-10-26 15:05:18 +01:00
druckdev
5b088f8822 scripts: Add toggleDock
Add old script that toggles the dock in GNOME.
2020-10-06 03:26:08 +02:00
druckdev
d5efedf872 raw2preview: Refactor and add functionality
Add support for multiple arguments.
Make the code more modular and extendable for other raw formats by
keeping the differentiation code in the main loop and removing the
hardcoded file extension from extractRAW().
Write some of the EXIF tags that the original raw image had into the JPG
like Orientation and some technical details.
2020-10-06 01:03:31 +02:00
druckdev
4cb445c2b5 shell-scripts: Use [[ instead of [ where possible
Replace all occurrences of [ with [[ in bash and zsh scripts and
configs.
Performance wise it makes sense to use the builtin instead of calling an
external command also when from a functionality stand point `test` would
suffice.
2020-10-03 01:29:29 +02:00
druckdev
4d3c9f2cc4 zsh:filterHistory: Escape {B,E}OL markers
Especially the dollar sign is used often making this important. Commands
containing one of both were not deleted properly.
2020-09-24 03:41:48 +02:00
druckdev
f6d1bbb19d git: Add diff-so-fancy as submodule
Instead of relying on diff-so-fancy being installed already deliver it
with these dotfiles.
2020-09-24 02:55:49 +02:00
druckdev
0bd083f760 fzf chooser instead of hardcoded commands
Instead of deleting hardcoded commands in filterHistory, sort commands
by usage and let the user select in fzf. If fzf is not installed, show
the most used ones and let the user select manually.
Keep the first occurence in the history for stuff like autosuggestions.
2020-09-03 11:39:32 +02:00
druckdev
11be8376ae Add description to filterHistory script
Add author, date and description to the filterHistory script.
Fix other author and date notes formatting.
2020-08-25 04:23:57 +02:00
druckdev
c3415cf310 filterHistory improvements
Add existence check for given file. (How did I forget that?)
Create automatic backup in temporary directory and use it to show
overview of deleted commands.
Make sed expression more readable by using double quotes for the whole
regex and escaping the $ instead of a mix between single and double.
2020-08-25 04:07:57 +02:00
druckdev
f5259b5505 Add fuzzy finder
Add fzf as submodule.
Source it keybindings and completion files.
Adjust dotbot install config to pull fzf binary.
Add symlink to its binary.
2020-08-04 02:54:05 +02:00
druckdev
5945f17b08 Fix whitespace error 2020-07-04 02:54:49 +02:00
druckdev
ab01a9a9ce Add check for missing arguments
Another error that occurred when refactoring the script before
committing it. It was like this when I created it. I swear!
2020-06-25 23:06:45 +02:00
druckdev
1a8a41f867 Fix typo
Fix typo that occurred when fixing the capitalization of zoom.
2020-06-24 17:31:53 +00:00
druckdev
e7427ba925 Add scripts collection
Add a couple of utility scripts.
2020-06-24 16:56:47 +02:00