Commit graph

1549 commits

Author SHA1 Message Date
4cfd863ecb
dotter: Fix templated files
Fixed an accidentally templated (papistui.yml) file, due to its
use of mustache-like double-braces.

Explicitly target another file as templated so we can change it
in the configuration directory (mako getting flavours colors
since it STILL lacks includes).
2023-10-03 14:56:15 +02:00
132c4c6c5b
dotter: Ignore cache directory 2023-10-03 14:49:02 +02:00
362c1f5375
dotter: Fix non-utf8 symlink warnings
Fix the warnings given by dotter for files that are not
utf-8 encoded to explicitly be identified as symlinks.

Should ultimately probably be either moved into data
directories or moved out of repo altogether, but for
now it works well.
2023-10-03 14:36:01 +02:00
5b2a55cfe3
qutebrowser: Remove qute-cookie-block script
Never completely functioned and worked to my satisfaction.
Need to find another tool or just accept the reality of
cookie banners.
2023-10-03 13:55:24 +02:00
8681d34946
qutebrowser: Make use of dotter for dir structure
Since we now use dotter we can simplify the dir structure for
qutebrowser a lot. Everything dot-filed earlier can now reside
in simple directories called config (for ~/.config/qutebrowser),
data (for ~/.local/share/qutebrowser), and scripts
(for ~/.local/bin) files.
2023-10-03 13:43:00 +02:00
dcde027a67
dotter: Simplify local setups
Everything that is in the repo should be listed in the global.toml
file. The local.toml file then picks the stuff to actually
write. For systemwide packages, a systemwide.toml (local) file
is used instead.
2023-10-03 13:19:48 +02:00
342a350c97
papis: Regress to textual priority entry
HACK Since there is some weirdness with the whoosh backend for papis not
being able to either index or search for integer values in custom
fields, this commit sets the priorities across the library (as well as
the tui picker) to make use of textual reprentations.

1 -> high
3 -> medium
5 -> low

This means we can't do simple arithmetic evaluations on priority anymore
but at least we can search it correctly in papis. Should probably put in
a ticket to see if it can be fixed.
2023-10-03 13:03:38 +02:00
3f335936c5
bootstrap: Remove unneeded installs, add dotter
Removed X11 programs like devour, broken plugins like mopidy-spotify.
2023-10-03 13:03:37 +02:00
47c3f7682d
bootstrap: Do not build paru on tmpfs
The tmp fs can sometimes be very small, too small in fact to build
paru on.
2023-10-03 13:03:37 +02:00
5e53105a62
install: Add simple dotter install 2023-10-03 13:03:35 +02:00
0a5d62909b
sh: Switch timg qr function to use viu
Since we switched to viu, we should also have qr
make use of it. Renamed the function to
qrurl to make its purpose clearer (sending
a simple file location/string/url via qr code)
and to distinguish it from programs like qrcp
which actually start a server and send a file
through qr.
2023-10-03 13:03:05 +02:00
ba042db7df
vifm: Fix wezterm image preview with chafa
We now use chafa to preview images. We use its iterm mode
since that seems to be the best integrated into wezterm
currently.

We have to use uncached previews so it is a little slower,
but at least it functions perfectly after the first image
is displayed.
2023-10-03 13:01:30 +02:00
7ccd7e4757
vifm: Fancy markdown display with glow or bat
For anything markdown or that gets displayed as markdown
(e.g. docx files) in the vifm preview, we now use glow
or bat to display a nicely styled and colored version.

For glow I added a script which tries to detect the
current terminal background between dark/light to
correctly set the color scheme.
2023-10-03 13:01:29 +02:00
893c177358
git: Replace dsf with git-delta
Diff-so-fancy is pretty good but delta just looks soo buttery smooth.
2023-10-02 20:19:00 +02:00
9040585fea
papis: Add new libraries 2023-10-02 20:08:02 +02:00
444676caac
nvim: Add markmap to build mindmaps
Added markmap plugin to make mindmaps from markdown. Uses
headings for leaves, and works pretty automatically.
Testing its functionality longer-term for now.
2023-10-02 20:06:56 +02:00
065488e57d
nvim: Remove debug printing of activated python venv
Removed notification on activating a python venv.
It should just work, transparent to the user and we do
not need a big ol' notification each time we enter
a file.
2023-10-02 19:21:29 +02:00
bfb62e6783
nvim: Add markdown code evaluation mappings
Can edit (`<ll>ce`), jump-to (`]c`, `[c`), insert (`<ll>co`,
`<ll>cO`) and run (`<ll>cc`) code cells in markdown files.

They will not be evaluated as part of an overall repl but
only stand-alone!
2023-10-02 19:20:44 +02:00
8b603b8c66
nvim: Improve lazy-loading of select plugins
Aerial (on command), test-runners (on python only) and other plugins
are now only loaded when actually required.
2023-10-02 19:18:29 +02:00
643deaebec
papis: Add ability to show tag counts to papis-tags
The `papis tags` command is extended with the functionality to not
just display all tags used in current query, sorted alphabetically,
but also to display how often they appear.

Use `papis tags -c` to show a space-separated count of how often
each tag is used next to the tag name, in descending order.
2023-10-02 19:16:23 +02:00
c4809c78f7
vidl: Use new default video location 2023-10-02 19:14:50 +02:00
587a46ccb7
qutebrowser: Disable canvas fingerprinting
Do not allow html5 canvas reading in qutebrowser. This shuts off one of the main
avenues of browser fingerprinting (aside from cookies) still currently
undertaken. It will possibly stop some obscure streaming sites from working but
I do not care, especially at the cost of fingerprinting information.
2023-10-02 19:14:25 +02:00
48229fc742
qutebrowser: Set tab display length to 2 seconds
When not showing tabs (only displaying them on actually
switchting between tabs), so far the duration that the
tabs would be displayed was just 800ms, way too short
to actually provide legible info.

This commit changes it to 2000ms, which may still be
too short but is at least more digestible.
2023-10-02 19:12:56 +02:00
093bc811d5
multimedia: Add simple imv configuration
Added simple configuration for the imv image viewer which is
wayland-compatible. Nothing too fancy but some simple
vim-like mappings are set, as well as some styling applied.
2023-10-02 19:11:20 +02:00
0fcac78b1f
git: Add date-enabled short log aliases
In addition to the existing `glg` and `glga` aliases for showing
one-line git logs for current or all branches, this commit adds
`glgd` and `glgad` for showing one-line git logs for current or
all branches *with date information*.

The date info comes from authoring date not committing date.
2023-10-02 19:10:27 +02:00
ec74d0ddff
xdg: Change default video directory location
Changed from ~/videos to ~/media/videos to declutter
home somewhat.
2023-10-02 19:08:40 +02:00
bad45b937d
river: Do not always restart kanshi with river
Kanshi used to be restarted every time river would be reloaded.
This is not desired however, as restarting river would also
kill the kanshi daemon, and subsequently reload it, reseting
any custom kanshi output layouts or options set.

With this commit kanshi only gets started if it is not already
running through river (i.e. on first boot most of the time).
2023-10-02 19:07:58 +02:00
e98d527f5d
river: Add gap toggling key bind
Use F10 to enable gaps (default) or Shift+F10 to disable gaps.
TODO Would love to make it a toggle on pressing F10 alone, but
I am not sure we can get the current gap width from the
layout in any way.
2023-10-02 19:05:58 +02:00
6bca05f212
river: Make volume and brightness keys repeatable
Will rapidly increase/decrease brightness and volume
when holding down the corresponding keys.
2023-10-02 19:01:31 +02:00
102cdbca1c
writing: Replace zathura with sioyek
Replaced or extended all default references to zathura with
sioyek so it will automatically take on any tasks meant
for pdf reading. With the current configuration, hardly a
change should be noticed.
2023-10-02 14:08:04 +02:00
af410c0b77
writing: Add sioyek configuration 2023-10-02 13:55:46 +02:00
334f3032e8
terminal: Exchange fasd for zoxide
fasd is unmaintained and slower than zoxide. The transferral
was painless. I imported my old database and can continue as
before. It does not care about files but that is completely
fine for me. Same `z` invocation as before. Has the
'interactive' mode on `zi` which is also completely fine.
2023-09-28 14:41:33 +02:00
bf2e74265c
nvim: Auto format prose soft with word-linebreaks
Automatically set formatting mode to soft for markdown, text and asciidoc files.
Also automatically format on startup (no lazy-loading), and thus have
nicely word-ending linebreaks (a word will not just be cut off wherever the
line is over but will be fully moved to the next line instead).
2023-09-25 19:54:38 +02:00
490232d18a
nvim: Update plugins 2023-09-25 19:44:11 +02:00
dfb9d7ff01
timewarrior: Add hash and plus to taskwarrior tags
Add a hash sign in front of 'project' tags received from
taskwarrior (i.e. where it is `project:something` it will
end up as #something in timewarrior.

Similarly, add a plus sign in front of tags: `+mytag`.
Only descriptions will be left as-is in translating from
taskwarrior to timewarrior.

This should make finding tags and projects specifically
much easier in timewarrior (e.g. for counting up the total
time spent on a single project).
2023-09-25 19:43:58 +02:00
23793795d6
nvim: Add coverage support for python testing
Use `,tp` to load a coverage report and show it in the gutter.
Use `,tP` to toggle it off and on. Use `,ts` to show a summary
instead.
2023-09-25 19:41:27 +02:00
497b19fcbe
nvim: Add util function to grab plugin conditionally 2023-09-25 19:39:51 +02:00
41934d3000
nvim: Attach ruff client to active python environment 2023-09-25 19:38:57 +02:00
8a5381a4aa
nvim: Add test setup for python to ide
Added neotest with some mappings to run tests and view
outputs, as well as neotest-python for now to make it
work under python.

Added registering with which-key if it exists.
2023-09-23 08:37:29 +02:00
e016b0a056
nvim: Remap lsp go to next/previous error
Mapped to `[D` / `]D`, reflecting the capitalization of going to the
next general diagnostic (`[d`/`]d`).
Now it is similar to spelling mistakes and spelling errors
(`]s[s`/`]S[S` respectively).
2023-09-23 07:43:49 +02:00
dc9f9373fe
nvim: Remove obsolete mappings
Removed easyread and nabla toggles since the plugins are removed.
2023-09-23 07:41:37 +02:00
6254c92bd3
chore: Update qutebrowser redirects, nvim spellfiles 2023-09-16 11:29:22 +02:00
dc78a5b67a
papis: Update config to use bbt formatter
Using my custom bbt-formatter for reference keys.
2023-09-16 11:28:36 +02:00
6e60101b9b
papis: Improve tui rendering and add priority maps
We render the priority of an entry in both table and multiline mode,
with priority >=1 being highest, >=3 being medium and everything
>5 being low priority.

We also have some maps for quickly setting the priority of an entry
from the tui:

`,ph` | `,pm` | `,pl` (for high, medium, low - so 1,3,5).

Lastly, I quickly added some to-dos that require the input of the
maintainer or some work in a fork, so I don't forget.
I also should not forget that I implemented some of them locally already
and am using them.
2023-09-16 11:23:23 +02:00
061e341253
nvim: Remove speed-reading plugin
The 'bionic-reading' mode, I have never used successfully.
It distracts rather than enabling me to move over text
more quickly.
2023-09-16 11:22:03 +02:00
f31b1b29ed
nvim: Enable marksman lsp for quarto files 2023-09-16 11:21:01 +02:00
c7393c9114
nvim: Move between git conflict hunks with ][H
Since we move between git chunks with ]h/[h, we may as well
move between git *conflict* chunks (should there be any)
with ]H and [H mirroring the diagnostics/error setup
situation.
2023-09-16 11:21:00 +02:00
60ae2e43c3
nvim: Switch signature help to cmp plugin
Simply switched signature help. Need to extensively test, but to
be perfectly honest the previous sig help plugin did not work all
the time either.
2023-09-16 11:20:59 +02:00
3562007bc8
beets: Remove acousticbrainz plugin
With the sunsetting of acousticbrainz I think it is time to
confront reality and remove the plugin. Was a lot of fun to
play around with and create playlists from that followed
music beats, mood or similar but ultimately it slowed down
importing a lot and I never earnestly used it for anything.
2023-09-16 11:17:20 +02:00
580f8e1452
kanshi: Add profiles for triple-/single-display
Added a profile for having all my screens display something when docked
(when usually the internal screen is turned off)
as well as to *only* display the internal screen even when connected
to the dock (should the need ever arise).
2023-09-16 11:14:49 +02:00