aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--caja/Makefile12
-rwxr-xr-xcaja/c16
-rw-r--r--dmenu/Makefile2
-rwxr-xr-xdmenu/dmenu7
-rw-r--r--mplayer/Makefile4
-rwxr-xr-xmplayer/mplayer7
-rw-r--r--st/Makefile12
-rwxr-xr-xst/st7
-rw-r--r--yaourt/Makefile12
-rwxr-xr-xyaourt/aur2
10 files changed, 81 insertions, 0 deletions
diff --git a/caja/Makefile b/caja/Makefile
new file mode 100644
index 0000000..b0c08a5
--- /dev/null
+++ b/caja/Makefile
@@ -0,0 +1,12 @@
+.POSIX:
+include ../common.mk
+
+install:
+ $(CHECK_INSTALLED) dash
+ mkdir -p -- ~/.local/bin
+ ln -sf -- ~/.dotfiles/caja/c ~/.local/bin/
+
+uninstall:
+ -unlink -- ~/.local/bin/c
+
+.PHONY: install uninstall
diff --git a/caja/c b/caja/c
new file mode 100755
index 0000000..88f50b4
--- /dev/null
+++ b/caja/c
@@ -0,0 +1,16 @@
+#!/bin/dash
+
+for i in $(ls /dev/fd/); do
+ eval "exec $i>&-"
+done
+exec 0</dev/null
+exec 1>/dev/null
+exec 2>/dev/null
+
+if test $# = 0; then
+ exec caja --no-desktop &
+else
+ p="$(realpath -- "$*" || printf '%s\n' "$*")"
+ cd /
+ exec caja --no-desktop -- "$p" &
+fi
diff --git a/dmenu/Makefile b/dmenu/Makefile
index 85e0681..5ed7d04 100644
--- a/dmenu/Makefile
+++ b/dmenu/Makefile
@@ -6,12 +6,14 @@ install:
$(CHECK_INSTALLED) vis
make -C unicode.d
mkdir -p -- ~/.local/bin
+ ln -sf -- ~/.dotfiles/dmenu/dmenu ~/.local/bin/
ln -sf -- ~/.dotfiles/dmenu/man ~/.local/bin/
ln -sf -- ~/.dotfiles/dmenu/ipa ~/.local/bin/
ln -sf -- ~/.dotfiles/dmenu/unicode ~/.local/bin/
ln -sf -- ~/.dotfiles/dmenu/plumb ~/.local/bin/
uninstall:
+ -unlink -- ~/.local/bin/dmenu
-unlink -- ~/.local/bin/man
-unlink -- ~/.local/bin/ipa
-unlink -- ~/.local/bin/unicode
diff --git a/dmenu/dmenu b/dmenu/dmenu
new file mode 100755
index 0000000..42a68f0
--- /dev/null
+++ b/dmenu/dmenu
@@ -0,0 +1,7 @@
+#!/bin/dash
+
+if test -x /usr/local/bin/dmenu; then
+ exec /usr/local/bin/dmenu -fn 'schumacher clean-8' "$@"
+else
+ exec /usr/bin/dmenu -fn 'schumacher clean-8' "$@"
+fi
diff --git a/mplayer/Makefile b/mplayer/Makefile
index c561294..372ea97 100644
--- a/mplayer/Makefile
+++ b/mplayer/Makefile
@@ -2,13 +2,17 @@
include ../common.mk
install:
+ $(CHECK_INSTALLED) dash
mkdir -p -- ~/.config/profile.d
test ! -d ~/.config/profile.d/mplayer
ln -sf -- ~/.dotfiles/mplayer/user-profile ~/.config/profile.d/mplayer
+ mkdir -p -- ~/.local/bin
+ ln -sf -- ~/.dotfiles/mplayer/mplayer ~/.local/bin/
uninstall:
-unlink -- ~/.config/profile.d/mplayer
-rmdir -- ~/.config/profile.d
-rm -rf -- ~/.config/mplayer
+ -unlink -- ~/.local/bin/mplayer
.PHONY: install uninstall
diff --git a/mplayer/mplayer b/mplayer/mplayer
new file mode 100755
index 0000000..1175d81
--- /dev/null
+++ b/mplayer/mplayer
@@ -0,0 +1,7 @@
+#!/bin/dash
+
+if test -x /usr/local/bin/mplayer; then
+ exec /usr/local/bin/mplayer -softvol -msgcolor "$@"
+else
+ exec /usr/bin/mplayer -softvol -msgcolor "$@"
+fi
diff --git a/st/Makefile b/st/Makefile
new file mode 100644
index 0000000..e9e6f52
--- /dev/null
+++ b/st/Makefile
@@ -0,0 +1,12 @@
+.POSIX:
+include ../common.mk
+
+install:
+ $(CHECK_INSTALLED) dash
+ mkdir -p -- ~/.local/bin
+ ln -sf -- ~/.dotfiles/st/st ~/.local/bin/
+
+uninstall:
+ -unlink -- ~/.local/bin/st
+
+.PHONY: install uninstall
diff --git a/st/st b/st/st
new file mode 100755
index 0000000..cf056a3
--- /dev/null
+++ b/st/st
@@ -0,0 +1,7 @@
+#!/bin/dash
+
+if test -x /usr/local/bin/st; then
+ exec /usr/local/bin/st -f vectorfixed:pixelsize=11:antialias=false:autohint=false "$@"
+else
+ exec /usr/bin/st -f vectorfixed:pixelsize=11:antialias=false:autohint=false "$@"
+fi
diff --git a/yaourt/Makefile b/yaourt/Makefile
new file mode 100644
index 0000000..4042cb4
--- /dev/null
+++ b/yaourt/Makefile
@@ -0,0 +1,12 @@
+.POSIX:
+include ../common.mk
+
+install:
+ $(CHECK_INSTALLED) dash
+ mkdir -p -- ~/.local/bin
+ ln -sf -- ~/.dotfiles/yaourt/aur ~/.local/bin/
+
+uninstall:
+ -unlink -- ~/.local/bin/aur
+
+.PHONY: install uninstall
diff --git a/yaourt/aur b/yaourt/aur
new file mode 100755
index 0000000..38a2429
--- /dev/null
+++ b/yaourt/aur
@@ -0,0 +1,2 @@
+#!/bin/dash
+exec yaourt --aur "$@"