config: utility adjustments
This commit is contained in:
parent
549d1f2848
commit
32b8c8e128
|
@ -182,6 +182,8 @@ alias hx='sudo hexedit --maximize --color'
|
|||
# Paginated hexyl
|
||||
hex() { hexyl "$@" | "${PAGER:-less}" }
|
||||
|
||||
alias dic="cat $XDG_DATA_HOME/dictcc/dict.txt | tail -n +16 |
|
||||
fzf --tiebreak=length --bind='alt-bspace:clear-query'"
|
||||
alias dict="rlwrap rdictcc -d $XDG_DATA_HOME/dictcc"
|
||||
alias dictu="dict -i $XDG_DATA_HOME/dictcc/dict.txt"
|
||||
alias startMinecraftServer='curl https://ipinfo.io/ip | xclip -sel clip && cd ~/daten/games/sharedgames/minecraft/server && java -jar forge-1.12.2-14.23.5.2768-universal.jar -mx 8G'
|
||||
|
|
|
@ -61,6 +61,18 @@ ln -sv "$XDG_DATA_HOME/applications/signal-tray.desktop" "$XDG_CONFIG_HOME/autos
|
|||
ln -sv /usr/share/applications/stretchly.desktop "$XDG_CONFIG_HOME/autostart/"
|
||||
ln -sv python3 /usr/bin/python
|
||||
|
||||
highlight "Cron logging"
|
||||
echo 'cron.* /var/log/cron.log' | sudo tee /etc/rsyslog.d/60-cron.conf
|
||||
hasService=$(which service 2>/dev/null)
|
||||
test "$hasService" && sudo service rsyslog restart || sudo systemctl restart rsyslog
|
||||
|
||||
highlight "Reload cron"
|
||||
test "$hasService" && sudo service cron reload || sudo systemctl reload cronie
|
||||
|
||||
highlight "SSH Permissions"
|
||||
chmod og= ~/.ssh -R
|
||||
|
||||
### Arch
|
||||
highlight "Configure pacman"
|
||||
if test -f /etc/pacman.conf; then
|
||||
sudo sed -i 's/#Color/Color/' /etc/pacman.conf
|
||||
|
@ -75,24 +87,14 @@ if test -f /etc/pacman.conf; then
|
|||
sudo systemctl enable reflector.timer
|
||||
fi
|
||||
|
||||
### Applications
|
||||
highlight "Block internet at night & on weekdays in the morning to force focus"
|
||||
walli 22 --save
|
||||
|
||||
highlight "Mixxx symlinks"
|
||||
mkdir -p ~/.mixxx
|
||||
ln -s -t ~/.mixxx ${XDG_DATA_HOME:-$HOME/.local/share}/mixxx/* ${XDG_CONFIG_HOME:-$HOME/.config}/mixxx/*
|
||||
|
||||
highlight "Block internet at night & on weekdays in the morning to force focus"
|
||||
walli 22 --save
|
||||
|
||||
highlight "Cron logging"
|
||||
echo 'cron.* /var/log/cron.log' | sudo tee /etc/rsyslog.d/60-cron.conf
|
||||
hasService=$(which service 2>/dev/null)
|
||||
test "$hasService" && sudo service rsyslog restart || sudo systemctl restart rsyslog
|
||||
|
||||
highlight "Reload cron"
|
||||
test "$hasService" && sudo service cron reload || sudo systemctl reload cronie
|
||||
|
||||
highlight "SSH Permissions"
|
||||
chmod og= ~/.ssh -R
|
||||
|
||||
highlight "Setup kakoune for plugins"
|
||||
plugkak="${XDG_CONFIG_HOME:-$HOME/.config}/kak/plugins/plug.kak"
|
||||
! test -d "$plugkak" && mkdir -p "$(dirname $plugkak)" && git clone https://github.com/robertmeta/plug.kak.git "$plugkak"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# launch my focus playlist
|
||||
playlistPath="$MUSIC/Playlists"
|
||||
test -z "$1" && vp "$playlistPath/focus.m3u8" ||
|
||||
(find -L $playlistPath -iname "focus-$1.m3u8" -print0 | grep --null-data . ||
|
||||
test -z "$1" && vp "$MUSIC/focus.m3u" ||
|
||||
(find -L $MUSIC -iname "focus-$1.m3u" -print0 | grep --null-data . ||
|
||||
find -L $playlistPath -iname "$1.m3u*" -print0 | grep --null-data . ||
|
||||
find -L $MUSIC -iname "*$1*" -prune -exec find {} -size +2M -type f -not -iregex ".*.\(jpe?g\|png\)" -print0 \;) |
|
||||
xargs -0 vp
|
||||
|
|
|
@ -21,7 +21,7 @@ case $command in
|
|||
git aur push --amend;;
|
||||
(push)
|
||||
makepkg --printsrcinfo > .SRCINFO
|
||||
git add -f .SRCINFO
|
||||
git add -f .SRCINFO *.install
|
||||
git commit -v -a "$@"
|
||||
git push;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
# Grep in files matching the name pattern given as first argument
|
||||
find -name "$1" | while read f; do grep --color=always --line-number --ignore-case -H "${@:2}" "$f"; done | less -F
|
||||
find -name "$1" | while read f; do grep --color=always --with-filename --line-number --ignore-case "${@:2}" "$f"; done | less -F
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
echo "[Desktop Entry]
|
||||
Icon=text-html
|
||||
Type=Link
|
||||
URL=$1">${2:-$1}.desktop
|
||||
URL=$1" >"$(test -n "$2" && echo $2 || echo $1 | cut -d'/' -f3).desktop"
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
# Reconnect to ONKYO since it is buggy
|
||||
bluetoothctl disconnect 00:09:B0:1D:DC:98
|
||||
sleep 1
|
||||
bluetoothctl connect 00:09:B0:1D:DC:98
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh -e
|
||||
# Move roam files into subfolders
|
||||
cd $DATA/2-standards/notes/roam
|
||||
grep -l --directories=skip "roam_tags: person" * | xargs --no-run-if-empty mv -t people
|
||||
grep -l --directories=skip "roam_tags: tech" * | xargs --verbose --no-run-if-empty mv -t tech
|
||||
grep -l --directories=skip "roam_tags: project" * | xargs --verbose --no-run-if-empty mv -t projects
|
||||
grep -l --directories=skip "roam_tags: health" * | xargs --verbose --no-run-if-empty mv -t health
|
|
@ -52,6 +52,7 @@ export IGNOREDIRS="-x dev -x .sync -x .stfolder -x .git -x .gradle -x .idea -x o
|
|||
# red stderr
|
||||
test -f "/usr/lib/libstderred.so" && export LD_PRELOAD="/usr/lib/libstderred.so${LD_PRELOAD:+:$LD_PRELOAD}"
|
||||
# software config
|
||||
export TEXMF=/usr/share/context
|
||||
export KSCRIPT_IDEA_COMMAND=intellij-idea-ultimate-edition
|
||||
## enable pass extensions
|
||||
export PASSWORD_STORE_ENABLE_EXTENSIONS="true"
|
||||
|
|
29
README.org
29
README.org
|
@ -27,18 +27,37 @@ and configuration for ~less~ and ~fzf~.
|
|||
most have a short documentation header -
|
||||
including many essential git scripts
|
||||
* Packages
|
||||
: pacman -Qe | cut -d\ -f1 | xclip -selection clipboard
|
||||
# Use org-yank-visible
|
||||
- essentials :: git zsh bat neovim man-db texinfo
|
||||
- basic tools :: fd ripgrep tree jrnl python-pynvim wget zsh-completions mlocate
|
||||
- common tools :: ffmpeg imagemagick pandoc [[https://lftp.yar.ru/][lftp]] zsh-doc glances pacman-contrib
|
||||
- aur :: diffr bat-extras-git tldr++ rdictcc-git stretchly-xeruf-git sc-im
|
||||
- common tools :: ffmpeg imagemagick pandoc [[https://lftp.yar.ru/][lftp]] zsh-doc glances pacman-contrib pass
|
||||
- aur recommendations :: tldr++ sc-im
|
||||
- personal aur utils :: diffr bat-extras-git rdictcc-git
|
||||
** Applications
|
||||
- productivity :: activitywatch-bin
|
||||
- music :: mpd mpc ncmpc mpd-mpris vlc phonon-qt5-vlc
|
||||
: mkdir -p ~/.local/state/mpd && systemctl --user enable --now mpd mpd-mpris
|
||||
- bluetooth :: bluez bluez-utils pulseaudio-bluetooth
|
||||
** Graphical
|
||||
- x :: xorg-xserver xorg-xkill xorg-setxkbmap xorg-xinit xterm xclip xprintidle
|
||||
- music :: mpd mpc ncmpc vlc phonon-qt5-vlc
|
||||
: mkdir -p ~/.local/state/mpd && systemctl --user enable --now mpd
|
||||
- music production :: lilypond lilypond-docs timidity++ chordpro-git
|
||||
- kde :: plasma-desktop plasma-nm spectacle breeze systemsettings konsole ktorrent dolphin kdeplasma-addons kinfocenter partitionmanager kdeconnect kwallet-pam kwalletmanager ksshaskpass okular
|
||||
- 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 libreoffice-fresh
|
||||
- health :: stretchly-xeruf-git redshift acpilight
|
||||
: scu enable --now redshift
|
||||
** Firefox
|
||||
*** Password management
|
||||
**** Pass - the unix password manager
|
||||
Store all kinds of secrets in plain text
|
||||
https://addons.mozilla.org/firefox/addon/passff
|
||||
: passff-host
|
||||
**** MasterPassword - the stateless password manager
|
||||
> Keep different passwords for every site you log into without having to remember anything but a single master password.
|
||||
> And without the risk of your getting your password list stolen.
|
||||
https://addons.mozilla.org/firefox/addon/masterpassword-firefox
|
||||
*** [[https://addons.mozilla.org/en-US/firefox/collections/15727735/integration?collection_sort=-popularity][System Integration]]
|
||||
*** [[https://addons.mozilla.org/en-US/firefox/collections/15727735/privacy?collection_sort=-popularity][Privacy]]
|
||||
** Dev
|
||||
#+begin_source sh
|
||||
yays intellij-idea-ultimate-edition intellij-idea-ultimate-edition-jre \
|
||||
|
|
Loading…
Reference in New Issue