From 13096e0f271be8140c3546d0c50234c355b56d5f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 26 Jun 2021 14:04:42 +0200 Subject: Add radharc wrapper, iswork bin, and secret bins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- radharc/Makefile | 5 +++++ radharc/radharc | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100755 radharc/radharc (limited to 'radharc') diff --git a/radharc/Makefile b/radharc/Makefile index 0a7a4ab..9c94b2a 100644 --- a/radharc/Makefile +++ b/radharc/Makefile @@ -4,14 +4,19 @@ include ../common.mk XINITRC_ORDER = 20 install: + test -x /bin/dash mkdir -p -- ~/.config/X11/xinit/xinitrc.d test ! -d ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-radharc ln -sf -- ~/.dotfiles/radharc/xinit ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-radharc + mkdir -p -- ~/.local/bin + test ! -d ~/.local/bin/radharc + ln -sf -- ~/.dotfiles/radharc/radharc ~/.local/bin/radharc uninstall: -unlink -- ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-radharc -rmdir -- ~/.config/X11/xinit/xinitrc.d -rmdir -- ~/.config/X11/xinit -rmdir -- ~/.config/X11 + -unlink -- ~/.local/bin/radharc .PHONY: install uninstall diff --git a/radharc/radharc b/radharc/radharc new file mode 100755 index 0000000..b630bc9 --- /dev/null +++ b/radharc/radharc @@ -0,0 +1,10 @@ +#!/bin/dash + +location= +if test -r ~/.config/geolocation; then + location=-L"$(head -n1 ~/.config/geolocation | tr ' ' :)" +elif test -r /etc/geolocation; then + location=-L"$(head -n1 /etc/geolocation | tr ' ' :)" +fi + +exec /usr/bin/radharc $location -l3500 -h5500 "$@" -- cgit v1.2.3-70-g09d2