feat: cleanup .local/bin
This commit is contained in:
parent
757b759b4a
commit
87d37712dd
21 changed files with 69 additions and 86 deletions
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
podman run --rm -it -v "$PWD:/mnt/" -w /mnt/ docker.io/archlinux/archlinux:base
|
16
.local/bin/ddev
Executable file
16
.local/bin/ddev
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
declare -A aliases
|
||||
aliases=(
|
||||
[arch]=archlinux/archlinux:base
|
||||
[debian]=debian:12-slim
|
||||
)
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
img="${aliases[$1]:-$1:latest}"
|
||||
|
||||
set -x
|
||||
podman run --rm -it -v "$PWD:/mnt/" -w /mnt/ "docker.io/$img"
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
podman run --rm -it -v "$PWD:/mnt/" -w /mnt/ docker.io/debian:12-slim
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
podman run --rm -it -v "$PWD:/mnt/" -w /mnt/ docker.io/fedora:40
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
in="$1"; shift
|
||||
out="$1"; shift
|
||||
smalside="${1:-480}"; shift || true
|
||||
smallside="${1:-720}"; shift || true
|
||||
|
||||
if ! [ -r "$in" ]; then
|
||||
echo "error: can't read '$in'" >&2
|
||||
|
@ -15,5 +15,5 @@ if [ -z "$out" ]; then
|
|||
fi
|
||||
|
||||
set -x
|
||||
#ffmpeg -i "$in" -r 24 -vcodec libx265 -vf "scale=-2:$smalside,setpts=0.5*PTS" "$@" "$out"
|
||||
ffmpeg -i "$in" -r 24 -vcodec libx265 -vf "scale=-2:$smalside" "$@" "$out"
|
||||
#ffmpeg -i "$in" -r 24 -vcodec libx265 -vf "scale=-2:$smallside,setpts=0.5*PTS" "$@" "$out"
|
||||
ffmpeg -i "$in" -r 24 -vcodec libx265 -vf "scale=-2:$smallside" "$@" "$out"
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
pass show "$(cat /tmp/passselect)" | less
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
xdg-open \
|
||||
"$(pass show "$(cat /tmp/passselect)" | sed -n '/^URL:/{s/URL:\s*//p;q}')"
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
xdotool type --clearmodifiers --delay 0 "$(pass otp "$(cat /tmp/passselect)")"
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
xdotool type --clearmodifiers --delay 0 \
|
||||
"$(pass show "$(cat /tmp/passselect)" | head -n1 -)"
|
|
@ -1,14 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
shopt -s nullglob globstar
|
||||
|
||||
prefix="${PASSWORD_STORE_DIR-"$HOME"/.password-store}"
|
||||
password_files=("$prefix"/**/*.gpg)
|
||||
password_files=("${password_files[@]#"$prefix"/}")
|
||||
password_files=("${password_files[@]%.gpg}")
|
||||
|
||||
password_file="$(printf '%s\n' "${password_files[@]}" | dmenu "$@")"
|
||||
|
||||
[ -n "$password_file" ] || exit
|
||||
|
||||
echo "$password_file" > /tmp/passselect
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
xdotool type --clearmodifiers --delay 0 \
|
||||
"$(pass show "$(cat /tmp/passselect)" | sed -n '/^Username:/{s/Username:\s*//p;q}')"
|
|
@ -108,8 +108,8 @@ echo "$$" > "$HOME/.cache/pidofbar"
|
|||
|
||||
sec=0
|
||||
while true; do
|
||||
[ "$((sec % 300))" = 10 ] && update_crypto
|
||||
[ "$((sec % 10))" = 0 ] && {
|
||||
[ "$((sec % 300))" -eq 5 ] && update_crypto
|
||||
[ "$((sec % 5))" -eq 0 ] && {
|
||||
update_cpu
|
||||
update_memory
|
||||
update_sink_vol
|
||||
|
@ -119,7 +119,7 @@ while true; do
|
|||
update_time
|
||||
display
|
||||
}
|
||||
((sec += 10))
|
||||
awk "@load \"time\"; BEGIN {d=10; s=$(date '+%S.%N'); sleep(d - s % d)}" &
|
||||
((sec += 5))
|
||||
awk "@load \"time\"; BEGIN {d=5; s=$(date '+%S.%N'); sleep(d - s % d)}" &
|
||||
wait
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue