config: various little additions

This commit is contained in:
xeruf 2021-11-19 12:01:04 +01:00
parent 74d282217c
commit 7ef49491db
9 changed files with 14 additions and 6 deletions

View File

@ -200,6 +200,7 @@ Version 2019-11-04 2021-02-16"
(use-package! org (use-package! org
:bind (:map org-mode-map :bind (:map org-mode-map
("C-c b" . org-cycle-list-bullet)
("C-c ." . org-time-stamp-inactive) ("C-c ." . org-time-stamp-inactive)
("C-c C-." . org-time-stamp) ("C-c C-." . org-time-stamp)
("M-C-+" . org-timestamp-up) ("M-C-+" . org-timestamp-up)
@ -385,6 +386,7 @@ Version 2019-11-04 2021-02-16"
my/auto-org-roam-db-sync--timer-interval :repeat my/auto-org-roam-db-sync--timer-interval :repeat
(and 'org-roam-db-sync 'org-roam-update-org-id-locations 'org-mode-restart))))) (and 'org-roam-db-sync 'org-roam-update-org-id-locations 'org-mode-restart)))))
(my/auto-org-roam-db-sync-mode) (my/auto-org-roam-db-sync-mode)
;; Prompt after idleness - Focused? ETC? (Pragmatic Programmer) - org-journal
) )

View File

@ -147,6 +147,7 @@
cme = commit -v --edit --message # Commit with message but edit it cme = commit -v --edit --message # Commit with message but edit it
cp = cherry-pick cp = cherry-pick
cpc = cherry-pick --continue
rb = rebase rb = rebase
rbi = rebase --interactive rbi = rebase --interactive
rbc = rebase --continue rbc = rebase --continue

View File

@ -8,6 +8,7 @@ application/x-mswinurl=firefox.desktop;
application/xhtml+xml=firefox.desktop; application/xhtml+xml=firefox.desktop;
application/zip=org.kde.ark.desktop; application/zip=org.kde.ark.desktop;
audio/flac=mpc.desktop; audio/flac=mpc.desktop;
audio/mp4=mpc.desktop;
audio/mpeg=mpc.desktop; audio/mpeg=mpc.desktop;
audio/x-wav=mpc.desktop; audio/x-wav=mpc.desktop;
image/jpeg=org.kde.showfoto.desktop; image/jpeg=org.kde.showfoto.desktop;
@ -25,6 +26,7 @@ application/x-mswinurl=firefox.desktop;
application/xhtml+xml=firefox.desktop; application/xhtml+xml=firefox.desktop;
application/zip=org.kde.ark.desktop; application/zip=org.kde.ark.desktop;
audio/flac=mpc.desktop; audio/flac=mpc.desktop;
audio/mp4=mpc.desktop;
audio/mpeg=mpc.desktop; audio/mpeg=mpc.desktop;
audio/x-wav=mpc.desktop; audio/x-wav=mpc.desktop;
image/jpeg=org.kde.showfoto.desktop; image/jpeg=org.kde.showfoto.desktop;

View File

@ -26,7 +26,7 @@ cl() {
# cd but search for data dirs and ls in new dir # cd but search for data dirs and ls in new dir
cd() { cd() {
if test -d "$DATA" && test "$1" != "-" -a ! -d "$1" -a $# -eq 1 if test -d "$DATA" && test "${1:--}" != "-" -a ! -d "$1" -a $# -eq 1
then then
dir=$(fd --no-ignore --glob "$1*" "$DATA" --maxdepth 2 --type d --max-results 1) dir=$(fd --no-ignore --glob "$1*" "$DATA" --maxdepth 2 --type d --max-results 1)
test -n "$dir" && cd "$dir" test -n "$dir" && cd "$dir"

View File

@ -273,7 +273,9 @@ compdef f=fd
#alias f1='find -mindepth 1 -maxdepth 1' #alias f1='find -mindepth 1 -maxdepth 1'
lowercase_transliterate="y/A-Z /a-z-/" lowercase_transliterate="y/A-Z /a-z-/"
which perl-rename >/dev/null && alias lowercase="perl-rename '$lowercase_transliterate'" || alias lowercase="rename '$lowercase_transliterate'" which perl-rename >/dev/null &&
alias lowercase="perl-rename -iv '$lowercase_transliterate'" ||
alias lowercase="rename -iv '$lowercase_transliterate'"
# rsync directory properly - suffix both dirs with / to act on contents # rsync directory properly - suffix both dirs with / to act on contents
alias rc='rsync --recursive --info=progress2,remove,symsafe,flist,del --human-readable --links' alias rc='rsync --recursive --info=progress2,remove,symsafe,flist,del --human-readable --links'

View File

@ -72,7 +72,7 @@ formatsongs() {
unset IFS unset IFS
} }
# Normalize filenames from stding # Normalize filenames for files given from stdin
formatin() { formatin() {
while read song; do while read song; do
new="$(formatsong "$song")" new="$(formatsong "$song")"
@ -80,6 +80,7 @@ formatin() {
done done
} }
# Normalize the given filename
formatsong() { formatsong() {
echo "$1" | sed -e 's/\b\(ft\|Ft\|Feat\|featuring\)\([ .]\)/feat\2/; echo "$1" | sed -e 's/\b\(ft\|Ft\|Feat\|featuring\)\([ .]\)/feat\2/;
s/\bfeat /feat. /; s/\bfeat /feat. /;

View File

@ -7,5 +7,5 @@ esac
name="/mnt/backup/borg::$(test -n "$name" && echo "$name" || cat /etc/hostname)-${1:-system}-$(date -u +"%y%m%d")" name="/mnt/backup/borg::$(test -n "$name" && echo "$name" || cat /etc/hostname)-${1:-system}-$(date -u +"%y%m%d")"
echo "Backing up as $name" echo "Backing up as $name"
sudo borg create --progress --stats \ sudo borg create --progress --stats \
$(echo $DIRS_IGNORE_SAFE -x 'software-challenge/*/build' -x 'emacs/.local' | sed 's|-x \([^ ]\+\)|-e "*/\1" -e \1|g') \ $(echo $DIRS_IGNORE_SAFE -x 'software-challenge/*/build' -x 'emacs/.local' | sed 's|-x \([^ ]\+\)|-e "sh:**/\1"|g') \
"$name" $(test $# -eq 0 && echo etc home root || test $# -eq 1 && echo $1) "${@:2}" "$name" $(test $# -eq 0 && echo etc home root || test $# -eq 1 && echo $1) "${@:2}"

View File

@ -55,7 +55,7 @@ and configuration for ~less~ and ~fzf~.
- mail :: offlineimap mu - mail :: offlineimap mu
** Graphical ** Graphical
- x :: xorg-xserver xorg-xkill xorg-setxkbmap xorg-xinit xterm xclip xprintidle light - x :: xorg-xserver xorg-xkill xorg-setxkbmap xorg-xinit xterm xclip xprintidle light
- music production :: lilypond lilypond-docs timidity++ chordpro-git musescore - music production :: lilypond lilypond-docs timidity++ chordpro-git musescore mixxx-beta-git
- video :: vlc obs-studio kdenlive - video :: vlc obs-studio kdenlive
- kde :: plasma-desktop plasma-nm spectacle breeze systemsettings konsole ktorrent dolphin kdeplasma-addons kinfocenter partitionmanager kdeconnect kwallet-pam kwalletmanager ksshaskpass okular bluedevil - kde :: plasma-desktop plasma-nm spectacle breeze systemsettings konsole ktorrent dolphin kdeplasma-addons kinfocenter partitionmanager kdeconnect kwallet-pam kwalletmanager ksshaskpass okular bluedevil
- office :: emacs texlive-core texlive-latexextra context-bin libreoffice-fresh - office :: emacs texlive-core texlive-latexextra context-bin libreoffice-fresh
@ -78,9 +78,9 @@ https://addons.mozilla.org/firefox/addon/masterpassword-firefox
*** Dev *** Dev
#+begin_source sh #+begin_source sh
yays intellij-idea-ultimate-edition intellij-idea-ultimate-edition-jre \ yays intellij-idea-ultimate-edition intellij-idea-ultimate-edition-jre \
clion clion-jre cmake gdb \
jdk-openjdk java-openjfx jdk8-openjdk java8-openjfx jdk-openjdk java-openjfx jdk8-openjdk java8-openjfx
archlinux-java set jdk8-openjdk archlinux-java set jdk8-openjdk
yays clion clion-jre cmake gdb python-pre-commit
#+end_source #+end_source
**** Android **** Android
: yays android-udev android-tools adbfs-rootless-git android-studio : yays android-udev android-tools adbfs-rootless-git android-studio