config: adjustments and additions all around
This commit is contained in:
parent
34a5b7a326
commit
81a3e2c293
|
@ -213,11 +213,11 @@ Version 2019-11-04 2021-02-16"
|
||||||
|
|
||||||
(map! :map org-mode-map
|
(map! :map org-mode-map
|
||||||
:leader
|
:leader
|
||||||
"j" 'org-insert-heading
|
|
||||||
"\\" 'org-ctrl-c-ctrl-c
|
"\\" 'org-ctrl-c-ctrl-c
|
||||||
:localleader
|
:localleader
|
||||||
"C" 'org-clock-in
|
"C" 'org-clock-in
|
||||||
"j" 'org-insert-heading
|
"v" 'org-insert-heading
|
||||||
|
"jj" 'org-insert-heading
|
||||||
"k" 'org-latex-export-to-pdf
|
"k" 'org-latex-export-to-pdf
|
||||||
"t" 'org-todo-or-insert
|
"t" 'org-todo-or-insert
|
||||||
"n" 'org-add-note
|
"n" 'org-add-note
|
||||||
|
|
|
@ -52,6 +52,7 @@ cd() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# LOCATE {{{1
|
# LOCATE {{{1
|
||||||
|
# TODO no double heading with bat
|
||||||
alias fselect='fzf -0 -1 --reverse --height=30% | while read f; do test -d "$f" && cd "$f" || { highlight "$f" && b "$f" }; done'
|
alias fselect='fzf -0 -1 --reverse --height=30% | while read f; do test -d "$f" && cd "$f" || { highlight "$f" && b "$f" }; done'
|
||||||
loci() {
|
loci() {
|
||||||
locate --all --ignore-case --basename --existing "$@" |
|
locate --all --ignore-case --basename --existing "$@" |
|
||||||
|
|
|
@ -8,6 +8,13 @@ findsongs() {
|
||||||
-regex "${1:-.*\.(mp3|flac|wav|m4a)}" -printf "%P\n"
|
-regex "${1:-.*\.(mp3|flac|wav|m4a)}" -printf "%P\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addtopl() {
|
||||||
|
pl=$1
|
||||||
|
shift
|
||||||
|
playlists=$MUSIC/Playlists
|
||||||
|
realpath --relative-to $playlists "$@" | tee -a $playlists/$pl*
|
||||||
|
}
|
||||||
|
|
||||||
addmix() {
|
addmix() {
|
||||||
mv -v "$1.cue" "$AUDIO/recordings/cues"
|
mv -v "$1.cue" "$AUDIO/recordings/cues"
|
||||||
addsong "$1.flac" Mixes
|
addsong "$1.flac" Mixes
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#assume_yes = true
|
#assume_yes = true
|
||||||
|
|
||||||
# Disable specific steps - same options as the command line flag
|
# Disable specific steps - same options as the command line flag
|
||||||
disable = ["node", "pnpm", "nix", "emacs", "config-update"]
|
disable = ["node", "pnpm", "nix", "emacs"] #, "config-update"]
|
||||||
|
|
||||||
# Ignore failures for these steps
|
# Ignore failures for these steps
|
||||||
#ignore_failures = ["powershell"]
|
#ignore_failures = ["powershell"]
|
||||||
|
|
|
@ -45,7 +45,14 @@ link fdfind /usr/bin/fd
|
||||||
link batcat /usr/bin/bat
|
link batcat /usr/bin/bat
|
||||||
|
|
||||||
highlight "SSH Permissions"
|
highlight "SSH Permissions"
|
||||||
chmod og= "$HOME/.ssh" -R
|
chmod og= $HOME/.ssh -R
|
||||||
|
chmod a+r $HOME/.ssh/keys/*.pub
|
||||||
|
_ovpn="$XDG_DATA_HOME/openvpn"
|
||||||
|
test -d "$_ovpn" &&
|
||||||
|
sudo rm -vdf /etc/openvpn/client &&
|
||||||
|
sudo ln -vsf "$_ovpn" /etc/openvpn/client &&
|
||||||
|
sudo chmod -vR ugo-rwx,ug+rX,u+w "$_ovpn" &&
|
||||||
|
sudo chown -vR janek:openvpn "$_ovpn"
|
||||||
|
|
||||||
highlight "Cron"
|
highlight "Cron"
|
||||||
echo 'cron.* /var/log/cron.log' | sudo tee /etc/rsyslog.d/60-cron.conf
|
echo 'cron.* /var/log/cron.log' | sudo tee /etc/rsyslog.d/60-cron.conf
|
||||||
|
@ -105,7 +112,8 @@ then mkdir "$mx" && ln -sv -t "$mx" ${XDG_DATA_HOME:-$HOME/.local/share}/mixxx/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
subhighlight "Block internet at night & on weekdays in the morning to force focus"
|
subhighlight "Block internet at night & on weekdays in the morning to force focus"
|
||||||
walli 22 --save
|
#walli 22 --save
|
||||||
|
# TODO netkeeper
|
||||||
|
|
||||||
subhighlight "Setup kakoune plugin loader"
|
subhighlight "Setup kakoune plugin loader"
|
||||||
cloneshallow plug.kak robertmeta "${XDG_CONFIG_HOME:-$HOME/.config}/kak/plugins/plug.kak"
|
cloneshallow plug.kak robertmeta "${XDG_CONFIG_HOME:-$HOME/.config}/kak/plugins/plug.kak"
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Start single all-in-one dragon-drag-and-drop with args or pwd
|
# Start single all-in-one dragon-drag-and-drop with args or pwd
|
||||||
$(command which dragon 2>/dev/null || echo dragon-drag-and-drop) -x -a "${@:-.}"
|
$(command which dragon 2>/dev/null || echo dragon-drop) -x -a "${@:-.}"
|
||||||
|
|
|
@ -12,6 +12,7 @@ case $1 in
|
||||||
LESS="$LESS +/^ *$last *\\[" man zshall;;
|
LESS="$LESS +/^ *$last *\\[" man zshall;;
|
||||||
(gh|chordpro|bat|pdfjam|reflector|topgrade|r128gain|7z) unbuffer "$@" --help | $paginate;;
|
(gh|chordpro|bat|pdfjam|reflector|topgrade|r128gain|7z) unbuffer "$@" --help | $paginate;;
|
||||||
(caddy|stretchly|go) "$1" help "${@:2}" | $paginate;;
|
(caddy|stretchly|go) "$1" help "${@:2}" | $paginate;;
|
||||||
|
(rails) { rails -H && rails --help; } | $paginate;;
|
||||||
(plantuml) unbuffer "$@" -help | $paginate;;
|
(plantuml) unbuffer "$@" -help | $paginate;;
|
||||||
(vlc) unbuffer vlc --full-help "${@:2}" | $paginate;;
|
(vlc) unbuffer vlc --full-help "${@:2}" | $paginate;;
|
||||||
(kdeconnect*) kdeconnect-cli --help-all "${@:2}" | $paginate;;
|
(kdeconnect*) kdeconnect-cli --help-all "${@:2}" | $paginate;;
|
||||||
|
@ -21,7 +22,7 @@ case $1 in
|
||||||
(*) man "$@" ||
|
(*) man "$@" ||
|
||||||
{ info "$1" -w | grep -v "manpages" && pinfo "$@"; } ||
|
{ info "$1" -w | grep -v "manpages" && pinfo "$@"; } ||
|
||||||
if which "$1" >/dev/null
|
if which "$1" >/dev/null
|
||||||
then "$@" --help || echo $? == 1 && "$@" -help || echo $? == 1 && "$@" -h 2>&1 | $paginate
|
then "$@" --help || { test $? == 1 && "$@" -help; } || { test $? == 1 && "$@" -h; } 2>&1 | $paginate
|
||||||
fi;;
|
fi;;
|
||||||
esac
|
esac
|
||||||
docs="/usr/share/doc/$1"
|
docs="/usr/share/doc/$1"
|
||||||
|
|
2
.zshenv
2
.zshenv
|
@ -11,7 +11,7 @@ export XDG_CACHE_HOME="$HOME/.local/cache"
|
||||||
export XDG_CONFIG_HOME="$HOME/.config"
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
export JOURNAL="$(eval "dirname $(grep -1 journals $XDG_CONFIG_HOME/jrnl/jrnl.yaml | tail -1 | cut -d':' -f2-)" ||
|
export JOURNAL="$(eval "dirname $(grep -1 journals $XDG_CONFIG_HOME/jrnl/jrnl.yaml | tail -1 | cut -d':' -f2-)" ||
|
||||||
echo "$DATA/2-standards/box/journal")"
|
echo "$DATA/2-standards/box/journal")"
|
||||||
export PATH="$HOME/.local/bin/scripts:$HOME/.local/bin:$PATH:$XDG_CONFIG_HOME/emacs/bin:$GOPATH/bin"
|
export PATH="$HOME/.local/bin/scripts:$HOME/.local/bin:$PATH:$XDG_CONFIG_HOME/emacs/bin:$GOPATH/bin:$XDG_DATA_HOME/gem/ruby/3.0.0/bin"
|
||||||
# adjust programs to use xdg
|
# adjust programs to use xdg
|
||||||
export MNT=/run/media/$USER
|
export MNT=/run/media/$USER
|
||||||
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
|
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
|
||||||
|
|
Loading…
Reference in New Issue