Recently I learnt that `docker rm -f` both stops and removes the
container in one go, without any races. It's much cleaner than the hack
from before so replace it outright.
Signed-off-by: Joe Groocock <me@frebib.net>
This fixes some inconsistent and incorrect startup order of the
graphical and desktop targets. xprofile will now always run as part of
xorg.target, which is before all other X-related applications that
require those settings to be in place beforehand.
Signed-off-by: Joe Groocock <me@frebib.net>
urxvt is a dated and broken terminal emulator. It fails to render simple
modern glyphs like emojis and powerline. There are much better
alternatives available now like Termite, Alacritty or Kitty.
Signed-off-by: Joe Groocock <me@frebib.net>
This prevents the sometimes lengthy waits whilst Docker spools months or
years of container logs into the shell scrollback, shortly to be
discarded. It's rare that more than the most 1000 recent lines will be
required, and those should probably use more specific cli invocations.
Signed-off-by: Joe Groocock <me@frebib.net>
These units appear in the journal with the identifier `sh` so set a
sensible identifier for them to aid in log readability
Signed-off-by: Joe Groocock <me@frebib.net>
This was added previously for Ctrl+V for vim editing of the
command-line, but the key-bind was removed in
ce595c81b6 but this was forgotten.
Signed-off-by: Joe Groocock <me@frebib.net>
These are significantly faster to load, and are actively maintained.
Functionality is almost identical from a usability perspective.
The primary motivation for this change is the several orders of
magnitude faster shell loading times, which should help with
productivity on overloaded and underpowered hardware.
Signed-off-by: Joe Groocock <me@frebib.net>
These vary by OS/distribution and even between devices depending on what
is installed. Most of these are optional anyway so make a best-effort
attempt to load them.
Signed-off-by: Joe Groocock <me@frebib.net>
Loading the environment on every shell invocation is slow. We can speed
up shell startup a little by skipping this for ever shell because it's
loaded on login by systemd.
Signed-off-by: Joe Groocock <me@frebib.net>
Move environment variable overrides for non-XDG compliant applications
into it's own file. I expect this list will get a lot longer over time.
Signed-off-by: Joe Groocock <me@frebib.net>
Require NetworkManager tmp files before attempting to start nm-applet,
else it will fail to start if NetworkManager is not actually running.
Signed-off-by: Joe Groocock <me@frebib.net>
Streams 720p25 video from a gphoto2-compatible camera through ffmpeg
into /dev/video* for use as a generic video/camera device.
Signed-off-by: Joe Groocock <me@frebib.net>
This is using my hacked branch of polybar, but it works well enough.
Padding isn't properly scaled, though.
Signed-off-by: Joe Groocock <me@frebib.net>
Remove all invocations of 'feh' for setting wallpaper that are now
redundant as this service should handle setting the wallpaper in all
relevant situations.
Signed-off-by: Joe Groocock <me@frebib.net>
systemd user units cannot depend on systemd units as the systemd daemons
are independent processes and have no notion of each-others' services.
Signed-off-by: Joe Groocock <me@frebib.net>
Prevents accidentally typing into other windows when focus is moved.
Allows the user to perform other tasks whilst the typing continues in
the background.
Signed-off-by: Joe Groocock <me@frebib.net>
After moving dotfiles around, these aliases became out of sync.
Dynamically detect the path of the 'aliases' file, and set 'dotfiles' to
use the XDG config directory.
Signed-off-by: Joe Groocock <me@frebib.net>
This moves loading of the environment variables out of the normal
service startup flow and has systemd load the variables early.
Shim ZSH to load the environment.d configuration when running without
systemd.
Signed-off-by: Joe Groocock <me@frebib.net>
Hopefully this should prevent auto-indent when hitting <CR> after
inserting a :. Whether it works or not, we'll have to see.
Signed-off-by: Joe Groocock <me@frebib.net>
I never use gvim. I'm not sure why I added these here in the first
place. The defaults should do the same thing anyway
Signed-off-by: Joe Groocock <me@frebib.net>
zsh-z is a zsh-native plugin which can be installed with antigen. It is
a drop-in replacement and does the same thing, but with less management
overhead.
Set _Z_DATA to be in $XDG_DATA_HOME to un-clutter ~ a little more
Signed-off-by: Joe Groocock <me@frebib.net>
Add -s flag to pwgen to generate cryptographically secure passwords and
strip the newline when adding the value to the clipboard to prevent
accidental submit actions when pasting.
Signed-off-by: Joe Groocock <me@frebib.net>
This is technically more of a restart than a reload, but it's the
closest thing without actually restarting the main pid.
Signed-off-by: Joe Groocock <me@frebib.net>
I activate this all the time, but never actually want to use it. I find
it more annoying than helpful, so it can be banished forever!
Signed-off-by: Joe Groocock <me@frebib.net>
--active uses the active window as selection boundary, instead of the root window, or prompting for a window selection
--clip adds the image to the clipboard and exits without uploading
Signed-off-by: Joe Groocock <me@frebib.net>
Also directly invoke alacritty instead of i3-sensible-terminal as the
arguments passed are alacritty specific. Ideally there would be a
wrapper script that handles terminal-emulator specific arguments so this
would work with many/multiple emulators.