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 --- .config/mpv/input.conf | 4 ++++ .config/sxhkd/sxhkdrc | 12 ++++++------ .scripts/order | 14 ++++++++++++++ 3 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 .scripts/order diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf index 20789ee..55d3177 100644 --- a/.config/mpv/input.conf +++ b/.config/mpv/input.conf @@ -43,6 +43,10 @@ b multiply speed 1/1.1 # increase the playback speed ] multiply speed 1.1 n multiply speed 1.1 + +Ctrl+WHEEL_UP add speed 0.1 +Ctrl+WHEEL_DOWN add speed -0.1 + # reset the speed to normal \ set speed 1.0 diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index f5406eb..485d4d1 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -84,17 +84,17 @@ super + ctrl + t super + d dmenu_run -hp 4chgetw,bts,dcalc,dmount,dumount,librewolf,passmenu,picomm,pidkill,picomm,setbg,st,telegram-desktop,todo,tolearn,trashy,xkill -#dmenu emoji-picker (universal) +#dmenu pidkill super + F1 - emojisel + pidkill -#dmenu emoji-picker (active-window) +#dmenu emoji-picker (universal) super + F2 - emojiselw + emojisel -#dmenu pidkill +#dmenu emoji-picker (active-window) super + F3 - pidkill + emojiselw # dmenu wifi-menu 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