config: improve helpers
This commit is contained in:
parent
b73a5d7e37
commit
c39ee5d7b8
|
@ -439,6 +439,10 @@
|
|||
{
|
||||
"data": "Stretch",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"data": "Journal your day",
|
||||
"enabled": "expr $(date +%H) \/ 2 - $(jrnl -from '20 hours ago' | wc -l)"
|
||||
}
|
||||
],
|
||||
"showBreaksAsRegularWindows": false,
|
||||
|
|
|
@ -49,6 +49,8 @@
|
|||
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
||||
;(unpin! t)
|
||||
|
||||
(package! emms)
|
||||
|
||||
(unpin! org-journal)
|
||||
|
||||
(package! evil-args) ; motions in args
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
|
||||
[alias]
|
||||
fzf = !fzf --preview='git diff HEAD --color=always -- {}' --tiebreak=end,index --multi
|
||||
fzs = !cut -z -c2- | git fzf --read0 -d' ' --nth=2.. --bind='alt-enter:execute(nvim {2..})' --preview='test {1} != \\? && git diff --color -- HEAD {2..} | $(git config interactive.diffFilter) || find {2..} -type f | xargs -I% diff --recursive --color=always -u /dev/null %' | cut -c3-
|
||||
fzs = !cut -z -c2- | git fzf --read0 -d' ' --nth=2.. --bind='alt-enter:execute(nvim {2..})' --preview='test {1} != \\? && git diff --color HEAD -- {2..} | $(git config interactive.diffFilter) || find {2..} -type f | xargs -I% diff --recursive --color=always -u /dev/null %' | cut -c3-
|
||||
|
||||
# GET INFO
|
||||
s = !git stl && git stb
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
## Key bindings for ncmpc (generated by ncmpc)
|
||||
|
||||
## Select currently playing song
|
||||
key select-playing = Ctrl-P
|
||||
|
||||
## Help screen
|
||||
key screen-help = '1', F1
|
||||
|
||||
## Play/Enter directory
|
||||
key play = Ctrl-M, 'l'
|
||||
|
||||
## Go to parent directory
|
||||
key go-parent-directory = 34, 'h'
|
||||
|
|
@ -7,8 +7,9 @@ y() {
|
|||
test "$#" -eq 0 && yadm s || yadm "$@"
|
||||
}
|
||||
yc() {
|
||||
echo "config/$1:" >/tmp/yc-msg
|
||||
yadm commit -v --template /tmp/yc-msg ${@:2} -- "$XDG_CONFIG_HOME/$1"
|
||||
folder=${1:-${PWD/$XDG_CONFIG_HOME\/}}
|
||||
echo "config/$folder:" >/tmp/yc-msg
|
||||
yadm commit -v --template /tmp/yc-msg ${@:2} -- "$XDG_CONFIG_HOME/$folder"
|
||||
}
|
||||
|
||||
alias sysyadm="sudo yadm -Y /etc/yadm"
|
||||
|
|
Loading…
Reference in New Issue