Commit graph

699 commits

Author SHA1 Message Date
Marty Oehme 7871442bcd
mail: Initial commit 2020-09-23 17:55:05 +02:00
Marty Oehme 27728b07db
nvim: Update spellchecker 2020-09-23 17:54:13 +02:00
Marty Oehme e5a48f1712
zathura: Add simple zathura configuration
Sets zathura to open itself with the recolored version of the pdf
instead of the usual (mostly white background/black lettering).
This works in concert with styler which will automatically set the
correct coloring in 'zathurarc' for the currently applied desktop theme.

Changes the copy mode to send anything copied to the clipboard instead
of primary selection, since I never use primary selection.

Adds a simple keymap to print a file (p) and makes it slightly harder to
accidentally rotate a file by moving rotate from r to s-r.
2020-09-23 17:14:08 +02:00
Marty Oehme 51e0d82ce9
i3: Remove i3 autostart package
The application autostart takes too long and is more intrusive than
anticipated. If I want to use qutebrowser, I can just start qutebrowser
on my and don't need to wait for i3 to do it for me --- especially since
the starting procedure takes a while and the application starts on the
wrong workspace anyways when it autostarts while I change desktops.

Spotify is not installed currently and throws an error each time, so
that is also not very useful.

An option for this to make a return might be as automatically starting
systemd services, which quickly switch to the correct workspace when the
application actually starts up -- but it is probably not worth the
hassle.

Lastly, this let's me get rid of a script in the i3 configuration
directory, which did not really belong there anyways with the XDG
distinction of 'configuration' and 'data'.
2020-09-23 16:51:02 +02:00
Marty Oehme e015c4b5f1
Tiny fixes
Clarified naming scheme in sxhkd-chain-labels documentation.

Updated year for vim copyright shortcut.

Enabled automatic copying to clipboard by neovim for every yank action.
2020-09-22 22:34:50 +02:00
Marty Oehme 98cb2ba48c
git: Add basic git rebase quick-alias
Every so often, when doing rebases, you need quick access to the git
rebase command to do something like '--edit-todo' or similar.

Every time, I tried to do `grb` since I already use these quick
shortcuts for `grbm` rebasing onto master, and `grbi`, `grbc` to rebase
interactively or continue one in progress. The base version is thus a
natural extension of the more detailed implementations of rebasing.
2020-09-18 17:17:48 +02:00
Marty Oehme df12199fdb
git: Add git pushall alias
`git pushall` (aliased to gpa) will push the current branch to each
connected remote of the repository.

So, if you have gitlab, github and keybase connected as remotes, it will
push to each one in return. As with the normal push command, you can
specify which branch to push ('master', 'develop', ..) after the
command, or use `--all` to push all branches at once.
2020-09-18 17:12:21 +02:00
Marty Oehme b83929bcbd
services: Move flashfocus to systemd service
Removed manual initialization of flashfocus from xinitrc, enabled the
service in systemd.

Changed the restart timer to 5 seconds, to mirror other X-dependent user
services to circumvent systemd being too eager to start the service
before X is ready on booting.
2020-09-18 13:16:09 +02:00
Marty Oehme 441cd2ba36
qutebrowser: Fix ytdl link downloading
Fixed the download media (`<leader>dm`) option in qutebrowser to
download the link that is hinted and not the current page.

To download the current page, the keymapping remains the same as before
(`<leader>dM`).
2020-09-18 13:10:37 +02:00
Marty Oehme 1e3ce1dec7
an2linux: Enable both bluetooth and wifi server
Enabling both servers will allow more messages to get through, and it
does not really constrain the server resources too much.

an2linux should be clever enough to use *either* wifi or bluetooth in
mirroring the messages, depending on which one it finds connected to the
server/client.
2020-09-15 11:15:13 +02:00
Marty Oehme bb892486e3
alacritty: Remove tmux integration
Removed autostarting of new tmux sessions for each new alacritty window.
The auto-closing and deluge of unnamed sessions did not help keep any
kind of organizational scheme, and lead to actual named sessions (like
notes, and dot) to perish under the mountain of sessions.
2020-09-15 11:13:32 +02:00
Marty Oehme def968aefd
sxhkd: Switch to rofi-pass and pavolume invocation
Switched sxhkd shortcut from rofi-gopass to new rofi-pass
implementation.

Additionally switched from pulsemixer to pavolume for media key volume
control. Pulsemixer works well as a tui application, but its cli
implementation is unbearably slow (on my setup at the very least).

After pressing the volume up/down/mute key it could take up to 3 seconds
to take effect. With pavolume this change happens almost
instantaneously, and it displays a libnotify message on top (can be
disabled).
2020-09-12 17:54:19 +02:00
Marty Oehme 268f8543a2
qutebrowser: Add search engines, download open map
Switched default search engine for my personal searx engine.
Added search engine bangs for duckduckgo (ddg), man-pages (man),
alternativeto.net (alt).

Added key mapping to quickly open last downloaded file, especially
useful for downloaded pdf documents or similar files.
<leader>o will open the last file.
2020-09-12 17:51:37 +02:00
Marty Oehme 377ab6ea56
rofi: Format rofi-surfraw with shellcheck 2020-09-12 17:41:39 +02:00
Marty Oehme 34fca7670f
services: Lower restart time to 2 seconds
Main issue the restart delay fixes is that services don't wait for X to
be ready on startup (which is bad if the application being started
requires X being ready to actually work.)

I have still not found a way to work around waiting for X being ready
other then the ugly delay hack (for systemd --user modules at least).

However, the delay can be --- in most cases --- smaller than 5 seconds.
All my machines start reasonably fast and have X up and running from
pressing login to staring at the wallpaper in a couple seconds at most.

If services don't start correctly and the error is X not being ready,
increase the startup delay once again.
2020-09-12 17:37:43 +02:00
Marty Oehme 755113f0f3
nvim: Add exclusions for pass files to nvim
Additionally to gopass editing, editing pass files should also avoid
creating external undo files, backups, and similar traceable files out
of which secrets could leak.

This prevents their creation on a wide level.
2020-09-12 17:36:11 +02:00
Marty Oehme 4453e4d94e
git: Update to rotated gpg key 2020-09-12 17:35:21 +02:00
Marty Oehme 20df4d70b6
gopass: Remove module
Remove now unused gopass module
2020-09-12 17:34:16 +02:00
Marty Oehme d47bc218d4
pass: Add README explaining the switch
Moved gopass README to pass directory, added additional explanation for
switching to pass instead.
2020-09-12 17:33:05 +02:00
Marty Oehme c646cb1f70
pass: Add toggling of password reveal state
Previously, the password could only be revealed -- once revealed it
could not be obfuscated anymore.

Now the obfuscated/deobfuscated state can be toggled by hitting the
corresponding keymapping repeatedly (default Alt+s in entry menu).
2020-09-12 14:47:30 +02:00
Marty Oehme 2ee621bd10
pass: Migrate gopass script to work for pass
Moved all invocations of gopass to pass. Changed the inner workings of a
few functions to cope with the fewer utility functions in pass instead
of go (no auto-clipping, no flat item listing).

Perhaps still somewhat brittle but should overall have feature parity to
older rofi-gopass script.
2020-09-12 14:47:30 +02:00
Marty Oehme cfe5bb563b
pass: Add config xdg specification loading
Set environment variable for pass to respect for each shell environment,
setting its pass store to the XDG_DATA_HOME directory.
2020-09-12 14:47:30 +02:00
Marty Oehme 1310f6ded6
an2linux: Add basic server setup 2020-09-12 14:43:23 +02:00
Marty Oehme 12beacac19
nvim: Fix 'vim:' modeline, add paragraph highlights
Fixed bug when line in todo dropdown starts with `vim:`, `vi:`, or `:ex`
which would automatically be read by vim and tried to be set in the
editor. Removed modeline reading from vim to fix the bug, and since it
provides quite an attack vector anyway.

Added Limelight to its startup procedure to highlight the current to-do
paragraph.
2020-09-08 14:58:36 +02:00
Marty Oehme 4774cd5b15
vifm: Add shortcut to extract selected file
Using `gx` the currently selected file(s?) will get extracted,
automatically using the correct extraction program for the compression
algorithm and creating a folder if necessary to avoid a file explosion
in the current directory (all default features of the `atool` program
which is a dependency)
2020-09-07 22:02:47 +02:00
Marty Oehme 5d265a33f7
polybar: Add weather script
Added script to show the forecast weather for the immediate future /
right now in polybar.
2020-09-07 22:02:25 +02:00
Marty Oehme 18cd15222d
polybar: Add underlines to modules
Slightly accent the modules by adding a distinct line under each one, in
the primary color of the current colorscheme.
2020-09-07 22:00:32 +02:00
Marty Oehme 11f1bf76c9
i3: Remove todo dropdown from autostart
Removed the autostart for the to-do dropdown from i3, since this is now
being handled by systemd as a system service with autostart and
automatic restart functionality.
2020-09-07 21:57:10 +02:00
Marty Oehme 28a8ff9d17
alacritty: Update to new alacritty version 2020-09-07 21:54:42 +02:00
Marty Oehme 53fc8bc134
i3: Fix program autostart script
Fixes timer calculation in autostart script.

Makes autostart script slightly more resilient, checking for timeout
time limit *or greater*.
2020-08-08 13:36:27 +02:00
Marty Oehme 219f9a912d
sxhkd: Fix volume media keys
Changed the order of volume media keys so raising vol key raises
volume and lower vol key lowers volume, not the other way round as
before. oops.
2020-08-01 09:19:26 +02:00
Marty Oehme 845dbba848
services: Increase restart period for X services
Dropdown services need an X server to connect to and fail autostarting
if there's no available server.

HACK

Increasing their restart timer will alleviate this problem, *but* it
also means the dropdowns will start more slowly when closed by the user.

There should be another way to alleviate one issue (start automatically
after X is available) without exacerbating the other (restart when you
have been closed).
2020-07-29 09:49:51 +02:00
Marty Oehme 5d4998481f
services: Unify naming pattern to kebab case 2020-07-29 09:38:22 +02:00
Marty Oehme cc0cdd2a6c
services: Add autostarting dropdown todo list
Added systemd-controlled automatic restart to existing i3 todo list
overlay (super+t). Contains a lot of hard-coded paths and applications.
2020-07-29 09:35:23 +02:00
Marty Oehme 1c45202f18
services: Add autostarting dropdown-terminal 2020-07-29 09:22:31 +02:00
Marty Oehme 440629f3c3
services: Rename commit_notes to uni_notes_sync 2020-07-29 08:13:32 +02:00
Marty Oehme 0b65023253
services: Add autostart for several other packages
Autostarts an2linuxserver, dunst, kbfs, keybase, and the keybase://
redirector.

Will (presumably) complain if one of the programs is missing. Either
this should not be enabled by default or the startup service should
contain a sanity check for the program before attempting to launch
itself.
2020-07-29 08:13:32 +02:00
Marty Oehme 717f2a13d6
X: Remove xdg-user-dirs, manually set dirs with sh
We already have a file which is strictly dedicated to xdg setting
environment variables and taking care of folder creations.

Using xdg-user-dirs as an application was basically doubling up on that.
Also, I don't need my directories localized - I just want them to point
to exactly where they should.
2020-07-29 08:13:31 +02:00
Marty Oehme 51178df4a3
services: Add time override to greenclip, redshift
Both greenclip and redshift did not automatically start on system start,
since they needed X to be running but their restart was almost
instantaneously. So, they restarted their alloted 5 times before X was
ready and gave up.

Restart time has been set to 5 and 10 seconds, so their startup takes a
little longer but should, in most cases, succeed.
2020-07-29 08:13:25 +02:00
Marty Oehme 8a5b45f41f
vifm: Add doc|docx preview and nvim opening
Added preview and opening of doc(x) files with nvim.
Makes use of docx2txt, catdoc to display the files, meaning they are
required.

Added some spellchecking words.
2020-07-28 18:15:26 +02:00
Marty Oehme e01b4c885c
[qutebrowser] Set webpage bg to grey
Defaults webpage backgrounds to 'davy grey'. Generally, this will be
overwritten in the stylesheet that is automatically applied through
styler. Setting the background color to a dark one does however prevent
the blinding whiteness when first opening a new page in a dark room and
it still has to load (as well as when rapidly switching between tabs).
2020-07-24 14:10:11 +02:00
Marty Oehme fd594e71f4
[nvim] Update spell dictionary 2020-07-24 14:07:41 +02:00
Marty Oehme cfcd458427
[X] Correctly detect laptop or desktop for key map
While shellcheck complains that posix does not know about HOSTNAME
env var, it seems to be required for zsh/bash.
2020-07-24 14:07:37 +02:00
Marty Oehme 90fcf81dfd
services: Fix commit_notes service autostart
Used wrong 'after' designation which would wait forever since it needed
to start after the runlevel which it was designated to run at.

Committed default.target.wants symlink to service file to automatically
enable its autostart on new machines.

This wil only really work for my directory set-up, so perhaps either the
service module should be disabled by default for the installation, be
asked during installation, or simply be manually enabled to autostart
during initial set-up (maybe mention in readme for the module).
2020-07-23 23:37:53 +02:00
Marty Oehme b280e4f9ae
sh: Unify fzf function names, add fzfman function
`fzfman` will gather all manpage topics and display them in a fzf list
to choose from. Selection will open the corresponding manpage.

Other fzf- functions have been standardized in their naming scheme:
fzf and the function without any spaces, e.g.

`fzfhistory`, `fzfyay`, `fzfyayrns`.
2020-07-23 15:33:02 +02:00
Marty Oehme d91adbfc13
tmux: Fix session chooser without fzf
If no fzf is installed, session chooser will now be the old manual
session name input. `tm session-name` will attach or create a session of
the same name, whether fzf is installed or not.

If invoked without argument, and fzf is installed will show a list of
sessions to choose from. If fzf is missing, will create new session
based on current directory.

`tl` has been changed to display the old non-interactive list if no fzf
exists. If fzf has been found however, it points to `tm` instead, since
invoking it without arguments fulfills the same function.
2020-07-23 15:29:05 +02:00
Marty Oehme 0487042d7e
tmux: Add simple workout tracking session
Hard-codes paths to open, used for quick opening of training tracking.
To be run with `tm sport.session`
2020-07-23 12:29:27 +02:00
Marty Oehme d3fbe7f4d6
git: Fix whitespace formatting 2020-07-23 12:25:46 +02:00
Marty Oehme 5640194504
nvim: Add longer yank highlight, standard toc map
Made yank highlight last 0.5s instead of 0.15s.

Moved mapping to display toc for markdown and pandoc files to the vim
standard mapping of gO (by default only enabled for :Man and :help).
Uses :WikiFzfToc, so will only work with wiki.vim
2020-07-23 12:23:15 +02:00
Marty Oehme f8371f0e73
[nvim] Add thesaurus autodownload
Fix location of thesaurus to follow XDG specification for application
data (in `.local/share/nvim/thesaurus`).

Automatically download thesaurus if it is not found.
2020-07-10 10:15:16 +02:00