firefox-wrapper: start firefox (a workaround for some $PATH nonsense).
edit-clipboard: open current contents of clipboard in $EDITOR, write them
back to clipboard. relies on xclip.
mcd(): a function to make a path and cd into it.
This has very little utility, but might demonstrate a general
approach for using Lynx as a viewer for HTML files generated from some
other source and editing them from there. You hit `e` in Lynx and it
calls whatever editor is defined.
Hit `o` to set options and change the
editor in there to lynx-wrapper-edit, making sure to hit the "write
changes to disk" or whatever it says checkmark before applying changes.
This works by taking the path that Lynx passes off for the filename to
edit, changing part of that path with sed to reflect where the source
file is, and then handing that to vim to edit. After vim finishes, it
re-renders the static HTML files that Lynx is viewing.
I've come to rely on this thing, for better or worse. Mostly as a way
to paper over the hilariously inconsistent clipboard behavior of a modern
apps like browsers.
...seems like a more lightweight way of providing various settings to
Gtk apps (and maybe other stuff? I'm not sure).
Various other font tweaks and such in this commit.
- messes with DPI & fonts
- changes trayer height
- rewrites chunks of xmonad.hs to use EZConfig style bindings, rofi for
launcher and i3lock for a lock screen (thanks @benlemasurier), and a
slightly different set of layouts. also handles some fancy laptop keys
like volume adjustment. still need to steal casey & tyler's stuffs for
backlight handling, probably.
for now, i'm going to keep these changes in a separate branch rather than
attempt to make them work on all of my systems. I'm running Debian Stretch
on here and the monitor is giant, so it would likely be a hassle, and it's
small enough that i can probably just manage as a separate branch as long
as needed.
Nothing drastic in this commit; just takes care of some little
inconsistencies and quibbles. Probably breaks a few files with calls to
filter utilities, but those should be easy to fix on a case-by-case basis.
I'm renaming them because there's nothing vim-specific about them.
- move a few aliases to bin/
- tags -> build-tags
- extip -> get-external-ip
- rename some utils in bin/
- vim-filter-* to filter-*
- vertical to filter-vertical
- remove some bogus stuff from bin/
- googleearth
- d (some thing i was messing around with for menus)
- pup (nice util, but should install elsewhere)
- add a bin/cheat to hang cheatsheet stuff on
- use fzf-tmux for h alias
fzf:
https://github.com/junegunn/fzf
I'm not 100% sold yet, but it's basically dmenu for the shell. Much to
recommend. Adds an improved ctrl-r.
unsorted-unique is just a wrapper around a short awk operation. I put it
in its own script because quoting things in aliases is hard.