Commit Graph

1692 Commits

Author SHA1 Message Date
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
25993afc83 repo: Ignore the installation backups 2020-10-31 22:34:16 +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
druckdev
7b63a148eb zsh: Add zprofile to auto start X on login 2020-10-31 22:34:11 +01:00
druckdev
0bf9a268ba zsh: Tell gpg the current tty 2020-10-31 22:34:08 +01:00
druckdev
26e9e42610 rofi:powermenu: Use loginctl instead of systemctl
By that the script can be used together with elogind when systemd is not
fully installed as in artix.
2020-10-31 22:34:04 +01:00
druckdev
fa7c06a572 i3: Add gaps 2020-10-31 22:34:00 +01:00
druckdev
3e418b263e compositor: Switch from compton to picom
Switch to ibhagwan's picom fork with dual_kawase blur and rounded
corners.
2020-10-31 22:33:52 +01:00
druckdev
08c5c66e1e X11: Move pieces from i3 and zshenv into xinitrc
Move everything that is desirable independent of the WM or shell into
xinitrc.
Move .Xresources and .Xmodmap into .config/X11.
Remove all unneeded GNOME bits from i3 config.
Make compositor launch script portable.
Add locker symlink and launch.sh similar to the compositor.
2020-10-31 22:33:26 +01:00
druckdev
feec02e267 X11: Add .xinitrc
This is just a slightly refactored version of /etc/X11/xinit/xinitrc.
2020-10-31 02:16:45 +01:00
druckdev
e403a03eca rofi:powermenu: Small fixes and refactoring
Remove ": " from prompts since rofi adds them already.

Change order of yes and no when conforming so that <Enter> cannot
accidentally be pressed twice.

Use tabs instead of spaces.
2020-10-26 15:08:49 +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
67c30e9842 meta:hooks:commit-msg: Allow dots and slashes
Allow dots and slashes in the program specification in the subject.
2020-10-26 15:04:20 +01:00
druckdev
0db8155002 meta:hooks: Refactor commit-msg (sh -> bash)
Refactor commit-msg to reduce redundancies by splitting up the pattern
into the different 'levels'.
For the array the change from /bin/sh to /bin/bash was necessary.
Because of that: Change all `test` occurrences to [[ ]] for performance.
2020-10-26 15:00:38 +01:00
druckdev
d1869afff6 zsh:alias,functions: Add lowres, crypt-{,u}mount 2020-10-26 13:46:25 +01:00
druckdev
ca7e82ae64 rofi: Add run modi, auto-select + fix whitespaces 2020-10-26 13:40:26 +01:00
druckdev
7a5c898621 vim: Autoindent new lines
This option is not set in vanilla vim by default.
2020-10-26 13:38:09 +01:00
druckdev
e8d1ae12c7 vim:ftplugin: Add python and xdefaults 2020-10-26 13:36:27 +01:00
druckdev
53a3966c01 dircolors: Fix readability of other writable
Blue on green is too hard to read. Just use the normal foreground font
color.
2020-10-26 13:21:49 +01:00
druckdev
466273c07b dircolors: Fix whitespaces in config
Use spaces to align stuff since tabs can have different widths.
2020-10-26 13:19:08 +01:00
druckdev
1b382f4f85 zsh:alias: Do not use aliases dictionary
Just use the command name instead of trying to directly expand
previously defined aliases for the command. Nested aliases still work
like this and using the dictionary breaks some stuff like
syntax-highlighting.

Put xxd into quotes just to be consistent.
2020-10-25 02:20:18 +02:00
druckdev
fbdf7252ec zsh:alias: Remove trash-restore alias
trash renamed the command. The alias is now useless/breaks stuff since
restore-trash does not exist anymore.
2020-10-25 02:12:14 +02:00
druckdev
3c6c37f235 meta:hooks: Refactor pre-commit + check renaming
Refactor the script to match my coding style more and update the
comments.
When checking the filenames for non-ASCII characters, check also
renaming of files instead of only additions.
2020-10-24 20:04:30 +02:00
druckdev
07a9f80c19 meta:hooks: Add pre-commit example script 2020-10-24 19:34:47 +02:00
druckdev
6b7827dc2e zsh:keys: Add edit binding and use Ctrl
Add binding that opens the current command in the editor.
Use Ctrl instead of Alt for shell bindings to be consistent.
2020-10-24 18:54:24 +02:00
druckdev
f311fc8a35 zsh:keys: Stay with the flow (vim history scroll)
These combine nicely with the bindings in fzf when searching through the
history.
2020-10-24 18:51:13 +02:00
druckdev
38f1fe4677 zsh: Small improvement
Use the aliases dictionary instead of calling the builtin alias command.
Autoload without alias expansion using the zsh style.
2020-10-24 18:46:20 +02:00
druckdev
f170429306 ranger: Enable video thumbnails 2020-10-24 18:45:17 +02:00
druckdev
307364364a polybar: Fix typo 2020-10-24 18:44:40 +02:00
druckdev
84d861112a i3: Update config
Divide config into different sections and move all relevant lines into
those.
Use the $TERMINAL variable wherever possible.
Cleanup some stuff and add a couple of comments.
Add vim modeline to indicate filetype.
Set the key repeat rate.
Ditch scratchpad-terminal.sh:
    The reason why I created that script was that I liked to have
    different bindings for showing and hiding the terminal. At this
    point it just brings too much overhead in a dirty way for a feature
    I do not really need. mod+space can still be used to toggle focus
    and with mod+comma the window is now shown/hidden from/to
    scratchpad.
Use a terminal flag to set the window name instead of using escape
sequences at the start of a new shell.
2020-10-23 20:01:30 +02:00
druckdev
74436f2625 i3: Delete unused parts 2020-10-13 01:36:47 +02:00
druckdev
9f1d45bc41 i3: Use hjkl instead of arrow keys 2020-10-13 01:34:10 +02:00
druckdev
5a238e165c vim: Unset joinspaces 2020-10-13 00:46:57 +02:00
druckdev
36ca182110 zsh:glog: Better handling of small terminals +more
Instead of storing fzf's output and doing something with it (putting
into clipboard/editing buffer/stdout, etc.) there is a new keybinding
that stores the currently selected commit in the clipboard. fzf's output
is not piped or saved anymore since else `less` cannot be executed
inside of fzf. This is necessary for the second new keybinding that
executes the preview command piped into less. This is needed for example
when `glog` is started in a terminal that is too small to display all
information. In that case the peview window is not shown by default
anymore (but can still be toggled).
Since fzf can now only be aborted it always returns 130. Since this is
annoying `glog` returns 0 at the end form now on.

Refactoring:
Make the `commit_hash` regex more robust and by that simultaneously the
`del_ansi` regex obsolete.
Use `$dateshort` in `$date` since it depends from it.
Do not store the color flag in an extra variable. This was done earlier
to keep the lines under 80 characters but is not needed anymore.
2020-10-13 00:45:57 +02:00
druckdev
53622ea223 zsh:autoload:*: Add filetype to vim modeline 2020-10-10 13:27:53 +02:00
druckdev
552b467102 meta:commit-msg-hook: Add more special characters 2020-10-10 13:26:42 +02:00
druckdev
d8f432655e zsh:glog: Push to editor buffer rather clipboard
This removes the dependency of xclip and makes it more usable since when
I need the commit hash it will almost always be in the next command.
2020-10-10 13:12:19 +02:00
druckdev
1a3a062309 zsh:glog: Small fixes
Commit hashes only contain letters from a-f.
Use heredoc for the fzf preview command for better readability.
2020-10-10 13:10:39 +02:00
druckdev
f3938bd38d firefox: Protect against unicode fishing attacks 2020-10-10 01:18:31 +02:00
druckdev
810415ebd1 firefox: Let fullscreen fill window not the screen
The WM should be in charge of that.
2020-10-10 01:18:10 +02:00
druckdev
164af2e500 vim: Automatic formatting 2020-10-10 00:30:09 +02:00
druckdev
5f4a6862ab vim: Add binding to correct with first suggestion 2020-10-10 00:28:37 +02:00
druckdev
d14a84fb9c vim: Turn on showcmd in vim like in neovim 2020-10-10 00:27:46 +02:00
druckdev
4fafd8a99a vim: Improve command-line completion
Turn on wildmenu (Default in neovim).
Let vim first complete the longest common string between matches before
seleting full matches. (Similar to completion done by bash or zsh)
2020-10-10 00:22:24 +02:00
druckdev
646d1bc7c4 vim: Bind Ctrl-Backspace also on command-line 2020-10-10 00:05:22 +02:00
druckdev
c0f7b43dac vim: Load coc.nvim only with vim >= 8.1.1719 2020-10-10 00:03:48 +02:00
druckdev
027204615b vim: Use EN instead of EN_US dict for spell check
I do not care about color/colour etc.
2020-10-10 00:01:19 +02:00
druckdev
72159411b9 zsh: Delete unused parts and bits
Delete:
 - transfer.zsh
 - zsh-async
 - telegram helper functions + completion
 - TERM hack for kitty terminal
2020-10-06 22:22:42 +02:00
druckdev
0424941699 zsh: Rename autoloadable function ls
Rename to avoid confusion and make the config more transparent.
2020-10-06 03:54:01 +02:00
druckdev
ea4f13dc84 ranger: Add config symlink to rc.conf for conf
Since `rc.conf` is not matched by `conf` and it does not really match a
broader pattern that could be added.
2020-10-06 03:27:37 +02:00