From 5a9f4d37f4ed192d84b27472a1ad84cf6db13cd7 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Tue, 5 Jul 2022 11:18:09 +0530 Subject: sxhkd dmenukill keybinding changes+mpv wheel speed control+order script --- .scripts/order | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .scripts/order (limited to '.scripts') diff --git a/.scripts/order b/.scripts/order new file mode 100644 index 0000000..155e039 --- /dev/null +++ b/.scripts/order @@ -0,0 +1,14 @@ +#!/bin/sh + +noofdirs=$(find . -mindepth 1 -maxdepth 1 -type d | wc -l) +lenofnod=$(echo -n "$noofdirs" | wc -m) ## Flag n to prevent newline count + +for f in * ; +do mv -n "$f" "$(date -r "$f" +"%Y%m%d_%H%M%S")_$f"; +done + +#open in vimv +#let @a=1 | g/^.\{0,16}/s//\=i.'.' | let i=i+1 +#add zeroes in front if lenofnod = 1 +#add zeroes in front if lenofnod = 2 + -- cgit v1.2.3