Commit graph

266 commits

Author SHA1 Message Date
Bruno BELANYI 61fb44f08b [UPDATE][VIM] Change colorscheme
I added more colorschemes that look good. Onedark should be a nice
change from Gruvbox.
2020-12-12 14:12:41 +01:00
Bruno BELANYI 5c85e11535 [FIX][ZSH] Don't assume zprofile is sourced from ~ 2020-12-12 14:12:41 +01:00
Bruno BELANYI 58e8869538 [ADD][VIM] Use lazyredraw 2020-12-12 14:12:41 +01:00
Bruno BELANYI 31174951ff [ADD][VIM] Auto-format Python files on save 2020-12-12 14:12:41 +01:00
Bruno BELANYI 51ef52513e [ADD][GIT] Alias related to 'assume-unchanged' 2020-12-12 14:12:41 +01:00
Bruno BELANYI ff1649bd58 [ADD][VIM] Only show sign column on active buffer 2020-12-12 14:12:41 +01:00
Bruno BELANYI da54f2d130 [UPDATE][VIM] Move plugin settings to directory 2020-12-12 14:12:41 +01:00
Bruno BELANYI f7653311d5 [UPDATE][I3] Factorize numeric row key-codes 2020-12-12 14:12:41 +01:00
Bruno BELANYI 8a9cc1f98e [UPDATE][GIT] Use XDG_CONFIG_HOME scheme
Git supports looking for its configuration in
$XDG_CONFIG_HOME/git/config and a global ignore file in
$XDG_CONFIG_HOME/git/ignore in recent versions.
2020-12-12 14:12:41 +01:00
Bruno BELANYI 351fe7e95a [FIX] Check if TERM is 'xterm-.*' in Bash & Zsh 2020-12-12 14:12:41 +01:00
Bruno BELANYI 2e927c89e7 [UPDATE][SCRIPT] Use expansion for PROMPT_COMMAND
It seems like the idiomatic way to update $PROMPT_COMMAND is to use
variable expansion to add a semi-colon and a space before the command
we're adding.

I also switched from prepending my commands to appending them, which
allows overriding behaviour, such as terminal titles which could be set
from system files.
2020-12-12 14:12:41 +01:00
Bruno BELANYI 173a0b093c [ADD] Use my own script to display terminal title
The provided 'vte.sh' script  doesn't quite work on Bash because
$HOSTNAME is empty for some reason.
2020-12-12 14:12:41 +01:00
Bruno BELANYI 4df55b8835 [UPDATE][I3] Exit custom mode with same keybinding
To be consistent with the resize mode that is defined in this
configuration file, the other modes I have written can be exited using
the "Enter" key, the "Escape" key, and the binding used to enter this
mode.
2020-12-12 14:12:41 +01:00
Bruno BELANYI d26732e4f3 [FIX][I3] Consistent comments with capital letter 2020-12-12 14:12:41 +01:00
Bruno BELANYI a649c4cad9 [UPDATE][I3] Factorize Vim-like key definitions 2020-12-12 14:12:41 +01:00
Bruno BELANYI b1e415594d [UPDATE][I3] Use keycode mappings for number row
If and when I want to switch to a different layout that uses numbers
without the shift key, unlike the traditional french layout, I still
want my shortcuts to work for switching workspaces.

I don't think any of my other shortcuts would have a problem switching
between AZERTY and QWERTY layout for example (well, selecting parent and
child containers would be switched, but I rarely need that
functionality and it is easy to switch on the fly).
2020-12-12 14:12:41 +01:00
Bruno BELANYI f69b5797fb [FIX][I3] Don't lock automatically while sleeping
My script to go to sleep already locks the screen, there's no use having
Xautolock try to do it while the computer is sleeping.
2020-12-12 14:12:41 +01:00
Bruno BELANYI 0d548d3a11 [UPDATE][I3] Notify before locking automatically 2020-12-12 14:12:41 +01:00
Bruno BELANYI aadee80b84 [UPDATE][I3] Extend auto-lock delay to 3 minutes 2020-12-12 14:12:41 +01:00
Bruno BELANYI 63da4ac6e7 [ADD][SCRIPT] Git fast forward command
This script can be used to fast-forward all local branches tracking
remote branches instead of having to check them out manually to `git
pull`.
2020-12-12 14:12:41 +01:00
Bruno BELANYI 07211d4093 [FIX][I3] Remove wrong path to i3exit command 2019-11-05 16:00:42 +01:00
Bruno BELANYI bdf2b7a58c [UPDATE][VIM] Better display of whitespace
I noticed that I didn't have any display for non-breaking spaces. While
adding this option, I chose to update tabs and trailing spaces display
too.
2019-11-05 16:00:42 +01:00
Bruno BELANYI 83270a9bce [ADD] Zathura configuration files 2019-11-05 16:00:42 +01:00
Bruno BELANYI b610120360 [UPDATE][VIM] Better description for misc mappings 2019-11-05 16:00:42 +01:00
Bruno BELANYI 8b3eb2d05e [ADD][VIM] Mapping to source current buffer 2019-11-05 16:00:42 +01:00
Bruno BELANYI b1db71ddfa [ADD][VIM] Home-row insertion mode escape mappings 2019-11-05 16:00:42 +01:00
Bruno BELANYI da66b21004 [FIX] Make window title script work with Xterm
This is quite an awful hack, but I don't want to copy paste the script
to my dot-files instead, so this will do.
2019-11-05 16:00:42 +01:00
Bruno BELANYI f5c1d37ca3 [ADD][VIM] Mapping to jump to/from quickfix list 2019-11-05 16:00:42 +01:00
Bruno BELANYI dfc7166126 [ADD][VIM] Mapping search using fzf 2019-11-05 16:00:42 +01:00
Bruno BELANYI e96580ebd5 [FIX][I3] Add single background option to setter 2019-11-05 16:00:42 +01:00
Bruno BELANYI cbcddccb50 [FIX] Only source terminal prompt file if there
I don't want to see an error message when ssh-ing to a computer which
doesn't have this file because `termite` isn't installed.
2019-11-05 16:00:42 +01:00
Bruno BELANYI d79a86e8bd [ADD] Teach Makefile how to unlink stow packages
To ease the addition and removal of packages, some rules were added to
deal with those specially.

I still need to figure out how to stop repeating myself when linking and
unlinking unconventional packages (such as `scripts`).
2019-11-05 16:00:42 +01:00
Bruno BELANYI 8bedc06072 [UPDATE] Use bootstrap and Makefile installation
Instead of running `install.sh` to link all my packages, I split the
configuration into its CLI components and packages that need a Xorg
display server set-up.

This uses the `bootstrap.sh` script to make sure the needed dependencies
are installed. The `Makefile` can install all the packages or CLI ones
only.
2019-11-05 16:00:42 +01:00
Bruno BELANYI 13e2ea1b6a [UPDATE][SCRIPT] Remove underscore in script name 2019-10-29 13:17:20 +01:00
Bruno BELANYI db50d0a7d9 [ADD][I3] Mode to choose background orientation 2019-10-29 13:13:14 +01:00
Bruno BELANYI 66a55063bb [FIX][SCRIPTS] Use correct bash shebang
The `/bin/bash` path is not assured by POSIX, however the path
`/usr/bin/env bash` should work, if bash is in the PATH.
2019-10-29 13:11:18 +01:00
Bruno BELANYI ae5d77e52d [FIX][I3] Correct or remove comments 2019-10-29 13:07:42 +01:00
Bruno BELANYI b628c4df21 [ADD][SCRIPT] Background setter script 2019-10-29 12:14:00 +01:00
Bruno BELANYI cdc36237de [ADD][WALLPAPER] Valley vertical background 2019-10-29 12:12:47 +01:00
Bruno BELANYI ba34c045ef [UPDATE][DESKTOP] Use full path in package 2019-10-29 12:05:57 +01:00
Bruno BELANYI ffe4513deb [FIX][ZSH] Have C-u delete from the cursor
By default, Zsh deletes the whole line when doing Ctrl+u unlike Bash
which keeps what's after the cursor.
2019-10-28 21:27:39 +01:00
Bruno BELANYI bccda57c46 [ADD][SHELL] Vim as an Info reader function
The node needs to have the spaces in its title escaped to work correctly
with the Info command.
2019-10-27 18:53:47 +01:00
Bruno BELANYI f08e81154f [ADD][VIM] Info reader plug-in 2019-10-27 18:53:47 +01:00
Bruno BELANYI 824b349542 [FIX][VIM] Do not highlight trailing space in help 2019-10-27 18:53:36 +01:00
Bruno BELANYI a3d8ef9a63 [UPDATE][VIM] Move mappings to different files
Because a lot of my mappings use the <Leader> key, this is the only file
that *must* be loaded before all the others, otherwise the value of
leader when the script is read will be erroneous.

I also tried to use `git write-tree` and `git commit-tree` to emulate a
manual octopus merge to preserve the line history for each file. But
honestly that gave a graph that was too ugly for a history that really
did not need that amount of accountability. However it is a fun
exercise, and I recommend to everyone to try it at least once.
See Raymond Chen's blog `The Old New Thing`, with the post titled `How
to split out pieces of a file while preserving git line history: The
hard way with commit-tree`, for an explanation.
2019-10-26 00:55:20 +02:00
Bruno BELANYI 1d58d25015 [UPDATE][VIM] Remove Gmove leader mappings
I never use it, and git-messenger shadows the mapping, which I should
make less implicit by at least removing this useless option.
2019-10-25 23:48:16 +02:00
Bruno BELANYI c56455f851 [FIX] Xterm window title for Zsh and Bash
The escape sequence to display a title for Xterm and Termite is the
same, and the export for the current directory does not seem to have any
negative impact on Xterm.

The VTE script uses `$HOSTNAME` which is a bashism for `$HOST`, so this
needs a correction in my shell profile.
2019-10-25 17:22:54 +02:00
Bruno BELANYI d9eab5526f [UPDATE][VIM] Factorise b:undo_ftplugin
Instead of re-writing the same condition each time, I put the function
in an autoload plugin instead (which is going to be loaded just about
every time I start writing code, but that's neither here nor there) to
stop repeating myself.
2019-10-25 14:27:21 +02:00
Bruno BELANYI 36faab278e [FIX][VIM] Set b:undo_ftplugin if not set
I hit the problem when loading a fugitive window, but this should be
done for all filetype plug-ins before trying to append to the variable.
2019-10-25 14:15:56 +02:00
Bruno BELANYI 571d5bc9e0 [ADD][VIM] ALE settings for Mypy linter in Python 2019-10-25 14:01:19 +02:00