Commit graph

1082 commits

Author SHA1 Message Date
Jonathan Hodgson
1a419c8670 Auto detect laptop resolution for screen layouts
New laptop is slightly taller than my last so updates the screenlayout
scripts to detect the resolution automatically
2022-02-07 12:35:50 +00:00
Jonathan Hodgson
5809254253 Removes auto-expand 2022-02-07 12:33:20 +00:00
Jonathan Hodgson
3ce150f385 Makes background script use hsetroot 2022-02-07 12:32:42 +00:00
Jonathan Hodgson
58fe21a0c0 Updates gpg alias 2022-02-07 12:32:02 +00:00
Jonathan Hodgson
be59dd91f6 Deletes old rofi config file 2022-02-07 12:31:14 +00:00
Jonathan Hodgson
2bedce62a4 Stops rofi launcher running as a normal window 2022-02-07 12:30:33 +00:00
Jonathan Hodgson
2d8a64c566 Adds qr code decode to act on last 2022-02-07 12:29:52 +00:00
Jonathan Hodgson
313198d18f Update zsh plugins 2022-02-07 12:26:21 +00:00
Jonathan Hodgson
cdc3805f04 Changes tridactyl hintchars
these are the characters tridactyl will use for hints. I have set them
to be the characters on the home row on my colemak layout
2022-02-06 17:01:52 +00:00
Jonathan Hodgson
b5d14f1149 Small changes to tridactylrc
Added hover binding
Added hints for protonmail
Added some settins to disable pocket by default
2022-02-06 16:43:33 +00:00
Jonathan Hodgson
c1d63038d7 Makes tridactyl redirct to old style arch wiki 2022-01-28 16:21:26 +00:00
Jonathan Hodgson
94f1be2e2a Changes to rofi for new config format 2022-01-26 17:26:36 +00:00
Jonathan Hodgson
c437f3ed21 Updates lspconfig and treesitter 2022-01-11 21:16:47 +00:00
Jonathan Hodgson
292a8744e9 Adds autocommand for updating the shared file
This allows neovim instances to share registers, marks, command history
and some other bits.

See :h shada

Augroup stolen from here:

https://vi.stackexchange.com/a/24564
2022-01-07 13:18:33 +00:00
Jonathan Hodgson
b829ab5802 Adds Projectionist plugin
Greg Hurrell video: https://www.youtube.com/watch?v=3jDafvUESbs

This allows me to jump between c source, header and test files easily.

It is capable of a lot more than this but I haven't looked into it too
much yet.
2021-12-28 01:17:57 +00:00
Jonathan Hodgson
f6b014475d Adds mapping for eding vrc 2021-12-28 00:49:13 +00:00
Jonathan Hodgson
4f8f58d992 Some tweaks to lsp config
Now uses ccls instead of clang for c language server. Seems better at
jumping to definition.

Also adds <leader k> to open man page since shift k is now overwritten
with the popup for the declaration that lsp provides
2021-12-28 00:47:08 +00:00
Jonathan Hodgson
a6cb84e420 Updates lsp config plugin 2021-12-28 00:46:38 +00:00
Jonathan Hodgson
2e38dbc611 Adds auto-expand to some of my aliases
Heavily inspired by this: https://dev.to/frost/fish-style-abbreviations-in-zsh-40aa

When space is pushed, zsh will try to expand any aliases that I have put
in the array in this file.

It is currently quite basic, only looking at the first word on the
command line.
2021-11-28 20:58:16 +00:00
Jonathan Hodgson
199eae9ebb Sets attribution for mutt 2021-11-25 17:26:29 +00:00
Jonathan Hodgson
dc242379da Adjusts date format in mutt 2021-11-25 17:26:08 +00:00
Jonathan Hodgson
d1a41eb3c9 Makes mutt open files in libreoffice 2021-11-25 17:25:33 +00:00
Jonathan Hodgson
56395b71f1 Changes double shift action
Previously, pushing both shift keys would switch the layout between
colemak and qwerty. However, I never use qwerty now so have changed it
so that double shift now toggles capslock. The capslock key remains
bound to backspace as is default in colemak
2021-11-25 12:30:22 +00:00
Jonathan Hodgson
4279b7373a BIN: actOnLast: small changes to how screenshots are handled
If a shadow is added to a screenshot, that new images is added to the
clipboard and the next event will be run against that.

Also, add to clipboard is now something you can do after a screenshot
(or shadow add) which is useful if you copy something, then want to
re-add the last screenshot to your clipboard
2021-11-23 15:37:24 +00:00
Jonathan Hodgson
1b84c6f1f7 Turn off relative numbers in quickfix windows 2021-11-23 10:49:35 +00:00
Jonathan Hodgson
2364f96151 Open fold and centre when moving between quickfix listings
My bindings for moving between quickfix listings ([c and ]c) now open
folds and centre the item.
2021-11-23 10:47:33 +00:00
Jonathan Hodgson
dcfc8e7fe4 Adds ability to load templates in vim
Will add to it at some point so I can view the template in fzf's preview
2021-11-23 10:46:36 +00:00
Jonathan Hodgson
e325e49959 Starts work on ActOnLast
This is a script that provides context menus (via rofi) based on a
previous action.

It takes an optional --first argument that, when present, causes the
script to select the first option on the list automatically.

It currently has two actions that it knows how to follow:

* using my password manager script to select a password
    - In this situation it will get a otp for the same password
* After taking a screenshot
    - open the screenshot
    - Add a shadow to the screenshot
    - Perform ocr on the screenshot

I will extend this to do more things in time.
2021-11-18 11:29:18 +00:00
Jonathan Hodgson
8ea14abe9e Adds treesitter and biscuit plugins + tweak to sudo write
The two plugins were added along with relevant configuration for each

If in neovim and sudo_askpass isn't set, vim will display a warning if
WW is typed in command mode
2021-11-17 14:41:49 +00:00
Jonathan Hodgson
7cb88eb204 Updates vim plugins 2021-11-16 16:03:03 +00:00
Jonathan Hodgson
c7721e7468 Updates lsp config 2021-11-16 15:57:13 +00:00
Jonathan Hodgson
c9d1320b54 Adds sudo writes to nvim
If in nvim and the SUDO_ASKPASS environment variable is set then a WW
mapping will expand to

:w !sudo -A tee % >/dev/null

If in not-neo vim, the -A is omitted.

The environment variable is also set. Some unused environment variables
were also removed.

https://stackoverflow.com/questions/2600783/how-does-the-vim-write-with-sudo-trick-work
https://github.com/neovim/neovim/issues/12103
2021-11-16 14:29:20 +00:00
Jonathan Hodgson
52eb406676 FZF: adds git bindings and toggle preview
I have added a default binging of ctrl+/ to toggle the preview in fzf

I have added some git key bindings for git stuff. They are all in the
form with ctrl+g ctrl+<something>. Most are what they want, for example
branches are ctrl+g ctrl+b however commits are not. I assume this is
because I can't overwrite what ctrl+c does, even if prefixed. I will
look into this at some point but for now commits are ctrl+g ctrl+h.

Largely stolen the code from here:
https://gist.github.com/junegunn/8b572b8d4b5eddd8b85e5f4d40f17236
although with minor tweaks.

I might change the initial ctrl+g binding as it is awkward on colemak
although we'll see how often I use it.
2021-11-16 11:45:45 +00:00
Jonathan Hodgson
b5f91ddfde Sets repdef environment variable in projects 2021-11-16 11:21:21 +00:00
Jonathan Hodgson
8a56e49a74 list contents if I try and cat a directory 2021-11-16 11:20:15 +00:00
Jonathan Hodgson
766dcab3a7 Adds .local/bin to path for pip 2021-11-16 11:19:37 +00:00
Jonathan Hodgson
288d8c4ce1 Stops forcing colour for jq 2021-11-16 11:18:45 +00:00
Jonathan Hodgson
5dd5856873 Adds script for generating pdf containing js 2021-11-16 10:48:18 +00:00
Jonathan Hodgson
445c0a3d18 Adds httpie wrappers for ntlm auth 2021-11-16 10:46:23 +00:00
Jonathan Hodgson
9f78ea20ce Adds audiobookbay script 2021-11-16 10:45:44 +00:00
Jonathan Hodgson
9d7c40372e Starts making yt work with yt-dlp 2021-11-16 10:45:15 +00:00
Jonathan Hodgson
f5506ada59 Bin: Analyse-headers: makes includesubdomains check case insensitive 2021-11-16 10:44:00 +00:00
Jonathan Hodgson
acc8707055 Delete uberw3m submodule and wrapper script 2021-11-16 10:43:03 +00:00
Jonathan Hodgson
5252713d76 Starts adding wayland support to my screenshot script 2021-11-16 10:36:28 +00:00
Jonathan Hodgson
cc94b994b5 Makes the screen layouts scripts slightly more robust
I should probably re-work all of them at some point but these changes
allow for external monitors with a resolution other than 1920x1080. When
switching to laptop only, I disable all other monitors by listing all
rather than hard coding common ones
2021-11-16 10:34:36 +00:00
Jonathan Hodgson
081c3bfeb4 Adds "simple" shell for keybinding
I have been experimenting with running a terminal on a black and white
e-ink display. A lot of things are difficult to see when converted from
colour to black and white.
2021-11-16 10:32:29 +00:00
Jonathan Hodgson
fcbd5f3637 Adds wl-clip support to password manager 2021-11-16 10:30:24 +00:00
Jonathan Hodgson
9fbdb83d70 Adds pacman hook to remove the grc default aliases file 2021-11-16 10:27:25 +00:00
Jonathan Hodgson
b00d95d514 Moves and tweaks some systemd timers / services 2021-11-16 10:26:21 +00:00
Jonathan Hodgson
00ecd6bdc3 NEWSBOAT: Adds graeme's blog 2021-11-08 20:46:01 +00:00