about summary refs log tree commit diff stats
path: root/config/ksh/functions
diff options
context:
space:
mode:
authorensa <@>2023-02-04 20:03:47 -0800
committerensa <@>2023-02-04 20:52:52 -0800
commit75ee668954833ab6ba9287ed5eb16a9957edcac2 (patch)
tree07d9f88939ab0fd93d93c6f4ddbbc7b548a812f0 /config/ksh/functions
parentebae3707b36e9a83014ef08271d75bd9826bb999 (diff)
downloadcfg-75ee668954833ab6ba9287ed5eb16a9957edcac2.tar.gz
restructure, cleanups, greener pastures, new additions
config and data are now etc and share, to better match my homedir

bin:
generally, shellcheck errors (where there's actually a problem) have been fixed
bother now includes alternate support for libnotify as well as my notif
comm-sel now loops, so spawning programs doesn't require multiple runs
fcard: my flashcard script
	accepts a tsv's path on $1, expecting:
		the word on column 1
		the defintion on column 2
		(optional) the section on column 3
	if $2 is specified, only runs through lines with that string as its section
fl:
	added aesgcm to the url detector string, because of profanity
	cleaned up urlparse
	now outputs the urls, one per line, making it more unixy
flc: a quick script. uses fl's output to do what fl once did on its own.
kbsetup now lacks escape xcape magic, qmk does that for me now.
lh: general cleanup. added and removed a site for the video extract section
metamv: gives arguments self-describing names based off metadata.
	mainly just for sorting FLACs off bandcamp
	this might not be entirely safe. use your own discretion.
notif:
	xnotify wasn't happy with the previous design.
	it was sending notifications in pieces.
	this new one's an absolute mess but it works well, is smaller, and faster
op: changed the pdf bit to allow variants
smv: file is self-explanatory
	applies the pipeline specified in "$1" to every file name specified after it
xbg: contains a fallback if xwallpaper isn't downloaded or its path is empty.
yw: just a quick and dirty line for watching things in mpv using yt-dlp.

etc:
X11/:
	xprofile now includes the latest xnotify initialization.
	xresources prevents a variable collision
		also updates new xnotify resource names
		and changes which program to pipe the screen to.
mpd/mpd.conf
	just updates to path structure.
yt-dlp/*
	too many changes to describe. should be fairly self-explanatory.
ksh/:
	prompt.ksh:	the $ is green now. hooray!
lf/lfrc: removed ttmsh function. i use my server for that now.
newsboat/config: external-url-viewer is now non-python.
zathura/zathurarc: font is now hermit.
aliasrc:
	exa is no more.
	vis is also no more.
	youtube-dl is dead. long live yt-dlp.
shrc: locale vars changed to ones than glibc is ok with
Diffstat (limited to 'config/ksh/functions')
-rw-r--r--config/ksh/functions/l.10
-rw-r--r--config/ksh/functions/man_complete4
-rw-r--r--config/ksh/functions/mc4
-rw-r--r--config/ksh/functions/mpvpin4
-rw-r--r--config/ksh/functions/pcl8
-rw-r--r--config/ksh/functions/pct8
-rw-r--r--config/ksh/functions/pkg_complete5
-rw-r--r--config/ksh/functions/update_completion_manpages8
-rw-r--r--config/ksh/functions/update_completion_packages_obsd8
-rw-r--r--config/ksh/functions/update_completion_pkg_inst_obsd4
-rw-r--r--config/ksh/functions/update_completions6
11 files changed, 0 insertions, 69 deletions
diff --git a/config/ksh/functions/l. b/config/ksh/functions/l.
deleted file mode 100644
index e4a759e..0000000
--- a/config/ksh/functions/l.
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/ksh
-function l. {
-	if [[ -n "$1" ]]; then
-		( cd "$1" 2>/dev/null ||\
-			{ echo "$0: $1 - No such directory" >&2 ; exit; }
-		ls -d .* )
-	else
-		ls -d .*
-	fi
-}
diff --git a/config/ksh/functions/man_complete b/config/ksh/functions/man_complete
deleted file mode 100644
index bab26dd..0000000
--- a/config/ksh/functions/man_complete
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/ksh
-man_complete() {
-	set -A complete_man -- $(<~cache/ksh/precompletions/manpages)
-}
diff --git a/config/ksh/functions/mc b/config/ksh/functions/mc
deleted file mode 100644
index db8a46f..0000000
--- a/config/ksh/functions/mc
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/ksh
-mc() {
-	mkdir "$1" && cd "$1";
-}
diff --git a/config/ksh/functions/mpvpin b/config/ksh/functions/mpvpin
deleted file mode 100644
index 7fabc6c..0000000
--- a/config/ksh/functions/mpvpin
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/ksh
-mpvpin() {
-	mpv --no-terminal --title "PIN" "$1" >/dev/null 2>&1 &
-}
diff --git a/config/ksh/functions/pcl b/config/ksh/functions/pcl
deleted file mode 100644
index 42ad224..0000000
--- a/config/ksh/functions/pcl
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/ksh
-function pcl {
-	if [ -z "$2" ]; then
-		pass show "$1"|head -1|xclip -l 1 -r
-	else
-		pass show "$1"|head -1|xclip -sel c -l 1 -r
-	fi
-}
diff --git a/config/ksh/functions/pct b/config/ksh/functions/pct
deleted file mode 100644
index b80abff..0000000
--- a/config/ksh/functions/pct
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/ksh
-function pct {
-	if [ -z "$2" ]; then
-		pass show "$1"|tail -1|xclip -l 1 -r
-	else
-		pass show "$1"|tail -1|xclip -sel c -l 1 -r
-	fi
-}
diff --git a/config/ksh/functions/pkg_complete b/config/ksh/functions/pkg_complete
deleted file mode 100644
index 2664527..0000000
--- a/config/ksh/functions/pkg_complete
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/ksh
-pkg_complete() {
-	set -A complete_pa -- $(<~cache/ksh/precompletions/packages)
-	set -A complete_pi -- $complete_pa
-}
diff --git a/config/ksh/functions/update_completion_manpages b/config/ksh/functions/update_completion_manpages
deleted file mode 100644
index dc4e77a..0000000
--- a/config/ksh/functions/update_completion_manpages
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/ksh
-update_completion_manpages() {
-	rm $XDG_CACHE_HOME/ksh/precompletions/manpages
-	for manpage in $(man -kw Nm~.);
-	do
-		basename $manpage|sed 's/\..*//'>>$XDG_CACHE_HOME/ksh/precompletions/manpages
-	done
-}
diff --git a/config/ksh/functions/update_completion_packages_obsd b/config/ksh/functions/update_completion_packages_obsd
deleted file mode 100644
index 2de477f..0000000
--- a/config/ksh/functions/update_completion_packages_obsd
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/ksh
-update_completion_packages() {
-	if [[ -e /usr/local/share/ports-INDEX ]]; then
-		sed 's/|.*$//' /usr/local/share/ports-INDEX>$XDG_CACHE_HOME/ksh/precompletions/packages
-	else
-		echo "install portslist if you want the completions for pkg_add and pkg_info" > /dev/stderr
-	fi
-}
diff --git a/config/ksh/functions/update_completion_pkg_inst_obsd b/config/ksh/functions/update_completion_pkg_inst_obsd
deleted file mode 100644
index 0442a77..0000000
--- a/config/ksh/functions/update_completion_pkg_inst_obsd
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/ksh
-update_completion_pkg_inst() {
-	ls -1 /var/db/pkg>$XDG_CACHE_HOME/ksh/precompletions/pkg_inst
-}
diff --git a/config/ksh/functions/update_completions b/config/ksh/functions/update_completions
deleted file mode 100644
index cc1e82b..0000000
--- a/config/ksh/functions/update_completions
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/ksh
-update_completions() {
-	update_completion_packages&
-	update_completion_pkg_inst&
-	update_completion_manpages&
-}