summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/px
blob: 1b4e849d5cc5d9b0eac492648537d128ddbadfdb (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# Printf Xsel

if [ $# -eq 0 ]; then
	/usr/bin/printf '%q' "$PWD"
else
	for dir; do
		/usr/bin/printf '%q ' "$(realpath -- "$dir")"
	done
fi | xsel -ib
class="hl sng">"$(tzselect)";; F) tz_from="$OPTARG";; # one extra ',' at the end will not let `for tz in ...` loop one extra time? t) for i in $(seq "$OPTARG"); do tz_to="$(tzselect),$tz_to" done;; T) tz_to="$OPTARG,$tz_to";; \?) exit 1;; esac done shift $((OPTIND-1))