commit e41b4c95d1bbef595d67592af62f6d745aa25c75
parent 08db1ef6db8c0ed27a7b2c2782dfc5c17600bee9
Author: Jacob R. Edwards <n/a>
Date: Mon, 8 Nov 2021 12:06:10 -0800
Add, remove, and rename scripts
Add xkeycode which I forgot to add along with xkeysym (formerly
keysym) and away, a new script to bring the system to an idle state
(perhaps it should have been named idle?). In addition various
useless scripts were removed and some bad names made less bad.
Diffstat:
11 files changed, 7 insertions(+), 74 deletions(-)
diff --git a/local/bin/bin/away b/local/bin/bin/away
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+apc pause
+slock xset dpms force suspend
diff --git a/local/bin/bin/files b/local/bin/bin/files
@@ -1,5 +0,0 @@
-#!/bin/sh
-# Copyright 2021 Jacob R. Edwards
-# License: GPLv3
-
-find "${@:?No files specified}" -type f
diff --git a/local/bin/bin/fsmenu b/local/bin/bin/fsmenu
@@ -1,7 +0,0 @@
-#!/bin/sh
-# Copyright 2021 Jacob R. Edwards
-# License: GPLv3
-#
-# fsmenu -- find(1) dmenu(1) wrapper
-
-find "$@" -not -name '.*' | dmenu
diff --git a/local/bin/bin/mark b/local/bin/bin/mark
@@ -1,10 +0,0 @@
-#!/bin/ksh
-# Copyright 2021 Jacob R. Edwards
-# License: GPLv3
-#
-# mark -- copy bookmark to the clipboard
-
-set -o pipefail
-
-find "${XDG_DATA_HOME:-$HOME/.local/share}/mark" -type f -print0 |
- xargs -0 cat | dmenu -i | xgrab && herbe "$(xclip -out)" &
diff --git a/local/bin/bin/rrmdir b/local/bin/bin/rmdirs
diff --git a/local/bin/bin/sman b/local/bin/bin/sman
@@ -1,13 +0,0 @@
-#!/bin/sh
-# Copyright 2021 Jacob R. Edwards
-# License: GPLv3
-#
-# sman -- simple script manual system
-#
-# Find each argument's location using which(1) and invoke sman.sed
-# on it.
-
-for i in $*
-do
- sman.sed <`which $i`
-done
diff --git a/local/bin/bin/sman.sed b/local/bin/bin/sman.sed
@@ -1,18 +0,0 @@
-#!/usr/bin/sed -Enf
-# Copyright 2021 Jacob R. Edwards
-# License: GPLv3
-#
-# sman.sed -- simple script manual system sed script
-#
-# Display the first comment (`#') block of a file, excluding the
-# shebang, within blank lines and indented by two spaces.
-
-1 { i\
-
- d
-}
-/^#/ !{ i\
-
- q
-}
-s/^# ?/ /p
diff --git a/local/bin/bin/vdplay b/local/bin/bin/vplay
diff --git a/local/bin/bin/wpaper b/local/bin/bin/wpaper
@@ -1,21 +0,0 @@
-#!/bin/sh -e
-# Copyright 2021 Jacob R. Edwards
-# License: GPLv3
-#
-# wpaper -- wallpaper selection
-#
-# Invoke sxiv(1) on WALLPAPER_DIR, or, if `-s' is given, on a
-# directory selected with fsmenu.
-
-dir="$HOME/image/wallpapers"
-
-case $*
-in
-(-s)
- exec sxiv -rtb `fsmenu "$dir" -type d`;;
-('')
- exec sxiv -rtb $dir;;
-(*)
- printf 'usage: %s [-s]\n' `basename $0` 1>&2
- exit 1
-esac
diff --git a/local/bin/bin/xkeycode b/local/bin/bin/xkeycode
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+xev | sed -En 's/.*keycode ([x0-9]+).*/\1/p'
diff --git a/local/bin/bin/keysym b/local/bin/bin/xkeysym