Browse Source

general: Adds various tweaks

main
creton32 2 weeks ago
parent
commit
d34778106e
  1. BIN
      dev/.config/wakatime/.wakatime.cfg
  2. BIN
      reader/.config/newsboat/urls
  3. 5
      term/.config/rmuxinator/media.toml
  4. 6
      term/.config/zsh/.zshenv
  5. 18
      up
  6. 4
      video/.config/mpv/input.conf
  7. 3
      video/.config/pipe-viewer/pipe-viewer.conf

BIN
dev/.config/wakatime/.wakatime.cfg

Binary file not shown.

BIN
reader/.config/newsboat/urls

Binary file not shown.

5
term/.config/rmuxinator/media.toml

@ -3,7 +3,7 @@ name = "media"
name = "scli"
[[windows.panes]]
commands = ["sleep 2 && wait; scli"]
commands = ["sleep 3 && wait; scli"]
[[windows]]
name = "NeoMutt"
@ -28,6 +28,3 @@ name = "media"
[[windows.panes]]
commands = ["np"]
[[windows.panes]]
commands = ["tuner"]

6
term/.config/zsh/.zshenv

@ -20,9 +20,10 @@ export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" \
ZDOTDIR="$HOME/.config/zsh" \
PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store" \
GNUPGHOME="$XDG_DATA_HOME/gnupg" \
ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android" \
ANDROID_SDK_HOME="$XDG_DATA_HOME/android" \
ANDROID_AVD_HOME="$XDG_DATA_HOME/android" \
ANDROID_EMULATOR_HOME="$XDG_DATA_HOME/android" \
ANDROID_SDK_ROOT="$XDG_DATA_HOME/android"
ADB_VENDOR_KEY="$XDG_CONFIG_HOME/android" \
NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch/notmuchrc" \
LESSHISTFILE=- \
@ -32,8 +33,7 @@ export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" \
HISTFILE="$XDG_DATA_HOME/bash/history" \
FONTDIR="$XDG_DATA_HOME/fonts" \
WEECHAT_HOME="$XDG_CONFIG_HOME/weechat" \
WAKATIME_HOME="$XDG_CONFIG_HOME/wakatime" \
ANDROID_SDK_ROOT="$XDG_DATA_HOME/android"
WAKATIME_HOME="$XDG_CONFIG_HOME/wakatime"
# Environment variables for external programs
export MANROFFOPT="-c" \

18
up

@ -46,15 +46,15 @@ do_up() {
case "$dir" in
browser)
stow --adopt "$dir"
[ ! -d ~/.local/share/tridactyl ] &&
[ ! -d ~/.local/share/tridactyl ] &&
curl -fsSl \
https://raw.githubusercontent.com/tridactyl/tridactyl/master/native/install.sh \
-o /tmp/trinativeinstall.sh &&
-o /tmp/trinativeinstall.sh &&
bash /tmp/trinativeinstall.sh 1.20.2>/dev/null 2>&1
;;
key)
([ ! -d ~/.local/share/qmk ] && \
[ -x "$(command -v qmk)" ]) &&
[ -x "$(command -v qmk)" ]) &&
qmk setup -H ~/.local/share/qmk
stow --adopt "$dir"
;;
@ -63,7 +63,7 @@ do_up() {
inboxes="$(find "$DOTFILES_DIR"/mail/.config/mutt/accounts -type f -printf '%f\n')"
if [ ! -f ~/.local/share/password-store/.gpg-id ]; then
! find ~/.local/share/gnupg -iname "*.kbx" -o -iname "*.gpg" &&
! find ~/.local/share/gnupg -iname "*.kbx" -o -iname "*.gpg" &&
gpg2 --generate-key
pass init \
$(gpg2 --list-keys | awk -F'[<|>]' '{print $2}')
@ -128,7 +128,7 @@ EOF
# Load kernel modules
mod() {
# modinfo -p to show info about available
# modinfo -p to show info about available
# options of kernel modules
# lsbusb to get vid and pid
# if the parameters below don't work, one can try
@ -139,9 +139,9 @@ options snd-hda-intel index=0 model=alc255-asus,headset-mic
options snd-usb-audio index=1,2 vid=0x0c76,0x046d pid=0x161f,0x0826
EOF
fi
# Set up ddcutil
$(command -v ddcutil) &&
$(command -v ddcutil) &&
doas modprobe i2c-dev
echo "i2c-dev" | doas tee /usr/lib/modules-load.d/i2c-dev.conf
doas groupadd --system i2c
@ -170,7 +170,7 @@ unlock() {
# Create symlinks
sym() {
# Autoload weechat plugins on startup
for plugin in wee-slack weechat-notify-send weechat-matrix weechat-autosort; do
for plugin in wee-slack weechat-fzf weechat-notify-send weechat-matrix weechat-autosort; do
[ xpkg -L | grep "$plugin" ] &&
ln -s /usr/share/weechat/python/"$plugin".py ~/.config/weechat/python/autoload/
done
@ -274,7 +274,7 @@ case "$1" in
--audio) audio ;;
--unlock) unlock ;;
*)
pre_up && up && sub &&
pre_up && up && sub &&
gpg && audio && unlock
;;
esac

4
video/.config/mpv/input.conf

@ -19,10 +19,10 @@ Shift+p add chapter -1
: script-binding console/enable
# Copy the path video slug to the clipboard
Y run "/bin/sh" "-c" "xc -n ${filename} mpv"
Y run "/bin/sh" "-c" "xc -n mpv ${filename}"
# Copy the full URI to clipboard
y run "/bin/sh" "-c" "xc -n ${path} mpv"
y run "/bin/sh" "-c" "xc -n mpv ${path}"
# Display video comments
c run "/bin/sh" "-c" "term 'pipe-viewer --comments ${path} | bat --style=plain --paging=always'"

3
video/.config/pipe-viewer/pipe-viewer.conf

@ -1,6 +1,6 @@
#!/usr/bin/perl
# CLI Pipe Viewer 0.0.7 - configuration file
# CLI Pipe Viewer 0.0.9 - configuration file
our $CONFIG = {
api_host => "vid.puffyan.us",
@ -69,6 +69,7 @@ our $CONFIG = {
order => undef,
page => 1,
prefer_av1 => 0,
prefer_invidious => 0,
prefer_mp4 => 0,
region => undef,
remember_watched => 0,

Loading…
Cancel
Save