Modernise the script and make it more sane.
Ensure lingering notifications are removed when the script exits to
prevent collecting many notifications if the script is called in a loop.
Signed-off-by: Joe Groocock <me@frebib.net>
Remove host-specific options from the wifi/ethernet modules, because
polybar is able to work it out for itself.
Signed-off-by: Joe Groocock <me@frebib.net>
org.label-schema was deprecated in favour of the opencontainers labels,
which apparently a bunch of images actually use (unlike the label-schema
labels).
Signed-off-by: Joe Groocock <me@frebib.net>
Much like how `git pull` will default to the remote tracking branch if
called with no arguments, gfrb and gfrbi will fetch and rebase from the
"default" branch according to git defbranch.
Signed-off-by: Joe Groocock <me@frebib.net>
These aliases now make zero assumptions about either branch or origin
names. They default to origin, and the primary branch is determined from
the refs/remotes/$remote/HEAD symbolic-ref, which will be pulled from
the remote if it's not known locally.
With these it is now possible to act on any remote/branch combination:
# Get default branch for 'upstream' remote
$ git defbranch upstream
# Delete branches merged into the default branch of the 'upstream'
# remote
$ git cleanmerged upstream
# Delete branches merged into the upstream/foo branch
$ git cleanmerged upstream foo
Signed-off-by: Joe Groocock <me@frebib.net>
Ensures configuration of various graphical services is set correctly on
startup, either before they start, or just after, restarting them
accordingly. This should scale i3, picom, gtk and friends for a seamless
experience.
Use xresources as a source of truth for this information.
Signed-off-by: Joe Groocock <me@frebib.net>
Scale picom blur and corner radius and X cursor size according to a
constant scale factor. This ideally would be defined somewhere
centrally, but this is better than nothing.
Signed-off-by: Joe Groocock <me@frebib.net>
Picom can now accurately draw shadows (again?) so tweak them so they're
horizontally centred and slightly below the window so they look
aesthetically pleasing.
Signed-off-by: Joe Groocock <me@frebib.net>
This non-compliant turd doesn't respect the config file, because of
course it doesn't. Enforce the theme with yet another messy environment
variable.
Signed-off-by: Joe Groocock <me@frebib.net>
This broadly assumes that the "default" remote is called "origin", but
that's better than assuming that plus the default branch name.
Thanks to https://joshtronic.com/2020/08/09/how-to-get-the-default-git-branch/
Suggested-by: Chris Lane <chris@chrislane.com>
Signed-off-by: Joe Groocock <me@frebib.net>
As always, tweak some of the visuals. Tone down the shadow opacity to
make the non-rounded corner shadows less obvious. Hopefully I can undo
that a bit in the future.
Signed-off-by: Joe Groocock <me@frebib.net>
systemd v250 added ExitType= which allows systemd to wait for all
processes in the cgroup to exit before terminating the unit, instead of
only the main pid. This has many uses, but for desktop applications in
particular it allows self-restarting (forking) applications to correctly
fork/restart and other background processes that may have been spawned
to continue when their forked parent inevitably exits first (like ssh
processes inside terminals).
Signed-off-by: Joe Groocock <me@frebib.net>
picom cannot and does not attempt to use the window geometry from the
non-rectangular menu+friend windows that Firefox displays which causes a
strange floating blur/shadow behind the menus. Avoid this by disabling
both blur and shadows on those pop-ups until picom can handle it better.
Signed-off-by: Joe Groocock <me@frebib.net>
Info produces causes logging under normal use, which creates useless log
files in /tmp, which I don't need.
Signed-off-by: Joe Groocock <me@frebib.net>
This provides little value and causes clickable links inside Vim to take
the $ symbol with them into browsers, which outweighs the small gain.
Text is visibly more readable without it, too.
Signed-off-by: Joe Groocock <me@frebib.net>
This looks more aestetically pleasing to me, and is not so off-centre
between the bottom of the window and the bottom of the screen.
Signed-off-by: Joe Groocock <me@frebib.net>
These rely on SSH configuring ControlMaster and ControlSocket for the
host so the connection can be reused.
Signed-off-by: Joe Groocock <me@frebib.net>
I can't find a way to make this a wildcard that applies to all remotes,
so this adds the two most common remotes that I'm likely to use.
Signed-off-by: Joe Groocock <me@frebib.net>
Change the cursor to an `_` too, to make it abundantly clear that the
mode has changed. Hopefully this stops me screwing up and accidentally
entering vim mode without realising.
Signed-off-by: Joe Groocock <me@frebib.net>
Read some standard xsettings values out of xrdb and set them in
xsettingsd. Use bash instead of sh to allow for `set -o pipefail`.
Signed-off-by: Joe Groocock <me@frebib.net>
Fix all shellcheck warnings, mostly by adding double quotes around vars.
Re-order operations and run multiple jobs in parallel to speed up DPI
change speed.
Remove all use of bc, simple sh integer division is sufficient in all
cases.
Signed-off-by: Joe Groocock <me@frebib.net>