Compare commits
9 Commits
9bb52d016d
...
1201922b9d
Author | SHA1 | Date | |
---|---|---|---|
1201922b9d | |||
ef020f2181 | |||
7c124bdc48 | |||
66910691c2 | |||
663c3e0587 | |||
f4330f48bf | |||
5045970d3b | |||
52459f36a5 | |||
d3a2f84a39 |
@ -23,9 +23,12 @@ function pdfr
|
||||
pdftotext $argv - | nvim
|
||||
end
|
||||
|
||||
# Neomutt local config
|
||||
# Neomutt configs
|
||||
alias neomutt.local='neomutt -F .config/neomutt/neomuttrc.local'
|
||||
alias neomutt.disroot='neomutt -F .config/neomutt/neomuttrc.disroot'
|
||||
|
||||
# Specific to my Gentoo system
|
||||
alias genlop='doas -u portage /usr/bin/genlop'
|
||||
alias loginctl='doas /bin/loginctl'
|
||||
|
||||
alias pyenv='source ~/dox/proj/ref/venv/bin/activate.fish'
|
||||
|
15
src/.config/neomutt/binds.muttrc
Normal file
15
src/.config/neomutt/binds.muttrc
Normal file
@ -0,0 +1,15 @@
|
||||
# vim: filetype=muttrc
|
||||
|
||||
bind attach,index,pager \CD next-page
|
||||
bind attach,index,pager \CU previous-page
|
||||
bind pager g noop
|
||||
bind pager gg top
|
||||
bind pager G bottom
|
||||
bind attach,index g noop
|
||||
bind attach,index gg first-entry
|
||||
bind attach,index G last-entry
|
||||
|
||||
bind index,pager \CP sidebar-prev
|
||||
bind index,pager \CN sidebar-next
|
||||
bind index,pager \CO sidebar-open
|
||||
bind index,pager \CB sidebar-toggle-visible
|
13
src/.config/neomutt/common.muttrc
Normal file
13
src/.config/neomutt/common.muttrc
Normal file
@ -0,0 +1,13 @@
|
||||
# vim: filetype=muttrc
|
||||
|
||||
source ~/.config/neomutt/colors.muttrc
|
||||
source ~/.config/neomutt/binds.muttrc
|
||||
|
||||
set sleep_time=0
|
||||
set beep=no
|
||||
set editor="nvim"
|
||||
set sort=reverse-date
|
||||
|
||||
set sidebar_visible
|
||||
set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
|
||||
set mail_check_stats
|
26
src/.config/neomutt/disroot.muttrc
Normal file
26
src/.config/neomutt/disroot.muttrc
Normal file
@ -0,0 +1,26 @@
|
||||
# vim: filetype=muttrc
|
||||
|
||||
set from="dogeystamp@disroot.org"
|
||||
set realname="dogeystamp"
|
||||
|
||||
set imap_user="dogeystamp"
|
||||
set imap_pass="`keepassxc-cli show -s -a password \"$KEEPASSDB\" msg/disroot`"
|
||||
|
||||
set smtp_url="smtps://$ID_EMAIL_USER@disroot.org/"
|
||||
set smtp_pass="$imap_pass"
|
||||
set smtp_authenticators = 'login'
|
||||
|
||||
set folder="imaps://disroot.org/"
|
||||
set spoolfile=+INBOX
|
||||
set record="+Sent"
|
||||
set postponed="+Drafts"
|
||||
mailboxes =INBOX =Sent =Drafts =Junk =Trash
|
||||
mailboxes "~/dox/mail/arc"
|
||||
|
||||
macro index gd "<change-folder>=Drafts<enter>" "Go to drafts"
|
||||
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
|
||||
macro index gS "<change-folder>=Sent<enter>" "Go to sent messages"
|
||||
macro index gt "<change-folder>=Trash<enter>" "Go to trash"
|
||||
macro index ga "<change-folder>~/dox/mail/arc<enter>" "Go to archive"
|
||||
macro index,pager d "<save-message>=Trash<enter><enter>" "Trash"
|
||||
macro index,pager y "<save-message>=~/dox/mail/arc<enter><enter>" "Archive"
|
26
src/.config/neomutt/gmail.muttrc
Normal file
26
src/.config/neomutt/gmail.muttrc
Normal file
@ -0,0 +1,26 @@
|
||||
# vim: filetype=muttrc
|
||||
|
||||
set from="$ID_EMAIL"
|
||||
set realname="$ID_REALNAME"
|
||||
|
||||
set imap_user="$ID_EMAIL"
|
||||
set imap_pass="`keepassxc-cli show -s -a neomutt \"$KEEPASSDB\" meta/gmail`"
|
||||
|
||||
set smtp_url="smtps://$ID_EMAIL_USER@smtp.gmail.com/"
|
||||
set smtp_pass="$imap_pass"
|
||||
set smtp_authenticators = 'login'
|
||||
|
||||
set folder="imaps://imap.gmail.com/"
|
||||
set spoolfile=+INBOX
|
||||
set record="+[Gmail]/Sent Mail"
|
||||
set postponed="+[Gmail]/Drafts"
|
||||
mailboxes =INBOX =[Gmail]/Sent\ Mail =[Gmail]/Starred =[Gmail]/Drafts =[Gmail]/Spam =[Gmail]/Trash
|
||||
|
||||
macro index ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
|
||||
macro index gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
|
||||
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
|
||||
macro index gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
|
||||
macro index gS "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to sent messages"
|
||||
macro index gt "<change-folder>=[Gmail]/Trash<enter>" "Go to trash"
|
||||
macro index,pager d "<save-message>=[Gmail]/Trash<enter><enter>" "Trash"
|
||||
macro index,pager y "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive"
|
@ -1,56 +1,2 @@
|
||||
source ~/.config/neomutt/colors.muttrc
|
||||
|
||||
set folder = ~/dox/mail/disroot/
|
||||
set spoolfile = "+Inbox"
|
||||
set postponed = "+Drafts"
|
||||
set record = "+Sent"
|
||||
set trash = "+Trash"
|
||||
set header_cache = ~/.cache/neomutt/headers
|
||||
set message_cachedir = ~/.cache/neomutt/bodies
|
||||
set certificate_file = /etc/ssl/certs/ca-certificates.crt
|
||||
set tmpdir = .cache/neomutt/tmp
|
||||
|
||||
set wait_key = no
|
||||
set mbox_type = Maildir
|
||||
set use_from=yes
|
||||
set ssl_starttls=yes
|
||||
set ssl_force_tls=yes
|
||||
|
||||
set editor="nvim"
|
||||
set rfc2047_parameters = yes
|
||||
set sleep_time = 0 # Pause 0 seconds for informational messages
|
||||
set markers = no # Disables the `+` displayed at line wraps
|
||||
set mark_old = no # Unread mail stay unread until read
|
||||
set mime_forward = yes # attachments are forwarded with mail
|
||||
set wait_key = no # mutt won't ask "press key to continue"
|
||||
set fast_reply # skip to compose when replying
|
||||
set fcc_attach # save attachments with the body
|
||||
set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||
set forward_quote # include message in forwards
|
||||
set reverse_name # reply as whomever it was to
|
||||
set include # include message in replies
|
||||
|
||||
set sidebar_visible = yes
|
||||
set sidebar_width = 20
|
||||
set sidebar_short_path = yes
|
||||
set sidebar_next_new_wrap = yes
|
||||
set mail_check_stats
|
||||
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
|
||||
set charset = "utf-8"
|
||||
|
||||
mailboxes =Inbox
|
||||
mailboxes =Archive =Sent =Drafts =Junk =Trash =../arc
|
||||
|
||||
set sendmail="/usr/bin/msmtp -a mail"
|
||||
|
||||
macro index O "<shell-escape>mbsync -c \"$XDG_CONFIG_HOME\"/isync/mbsyncrc disroot <enter>" "run offlineimap to sync all mail"
|
||||
macro index,pager A "<save-message>=../arc<enter>" "Archive Message"
|
||||
bind index,pager \CP sidebar-prev
|
||||
# Ctrl-P – Previous Mailbox
|
||||
bind index,pager \CN sidebar-next
|
||||
# Ctrl-N – Next Mailbox
|
||||
bind index,pager \CO sidebar-open
|
||||
# Ctrl-O – Open Highlighted Mailbox
|
||||
|
||||
set realname = "dogeystamp"
|
||||
set signature = ~/dox/sig
|
||||
source ~/.config/neomutt/common.muttrc
|
||||
source ~/.config/neomutt/gmail.muttrc
|
||||
|
2
src/.config/neomutt/neomuttrc.disroot
Normal file
2
src/.config/neomutt/neomuttrc.disroot
Normal file
@ -0,0 +1,2 @@
|
||||
source ~/.config/neomutt/common.muttrc
|
||||
source ~/.config/neomutt/disroot.muttrc
|
@ -1,10 +1,3 @@
|
||||
# Configuration for reading local mail on servers
|
||||
|
||||
source ~/.config/neomutt/colors.muttrc
|
||||
|
||||
set header_cache = ~/.cache/neomutt/headers
|
||||
set message_cachedir = ~/.cache/neomutt/bodies
|
||||
set certificate_file = /etc/ssl/certs/ca-certificates.crt
|
||||
set tmpdir = .cache/neomutt/tmp
|
||||
|
||||
set editor="nvim"
|
||||
source ~/.config/neomutt/common.muttrc
|
||||
|
@ -34,7 +34,7 @@ config.bind('td', 'config-cycle colors.webpage.darkmode.enabled true false;; res
|
||||
|
||||
# General settings
|
||||
|
||||
c.scrolling.smooth = False
|
||||
c.scrolling.smooth = True
|
||||
c.url.default_page = "~/.config/qutebrowser/homepage.html"
|
||||
c.url.start_pages = "~/.config/qutebrowser/homepage.html"
|
||||
c.url.searchengines = {"DEFAULT":"https://search.disroot.org/search?q={}"}
|
||||
|
26
src/.local/bin/identity.sh
Executable file
26
src/.local/bin/identity.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
# Sets up environment variables for things I don't want to expose in my dotfiles
|
||||
|
||||
if [ -z "$XDG_CONFIG_HOME" ]; then
|
||||
XDG_CONFIG_HOME="$HOME"/.config
|
||||
fi
|
||||
|
||||
IDFILE="$XDG_CONFIG_HOME"/identity
|
||||
|
||||
cat << "EOF" > "$IDFILE"
|
||||
#!/bin/sh
|
||||
# Environment variables for personal information
|
||||
EOF
|
||||
|
||||
fields=$(mktemp)
|
||||
cat << "EOF" > "$fields"
|
||||
export ID_REALNAME=
|
||||
export ID_EMAIL=
|
||||
EOF
|
||||
|
||||
keepassxc-cli show "$KEEPASSDB" meta/identity -a realname -a email | paste -d '' "$fields" - >> "$IDFILE"
|
||||
rm "$fields"
|
||||
|
||||
cat << "EOF" >> "$IDFILE"
|
||||
export ID_EMAIL_USER=$(basename "$ID_EMAIL" @gmail.com)
|
||||
EOF
|
@ -67,14 +67,13 @@ case "$ACTION" in
|
||||
|
||||
exp ~/med/memes/woof/ "$ROOT/Pictures/memes/"
|
||||
exp ~/med/memes/bork/ "$ROOT/Pictures/memes2/"
|
||||
exp ~/med/rw/sch/ "$ROOT/Pictures/rw/sch/"
|
||||
exp ~/med/sticker/ "$ROOT/Pictures/sticker/"
|
||||
;;
|
||||
|
||||
RECV)
|
||||
# Move files to the quarantine zone for categorisation and renaming
|
||||
|
||||
imp "$ROOT/Pictures/Infinity/" $DEST
|
||||
imp "$ROOT/Pictures/Tachiyomi/" $DEST/crop/
|
||||
imp "$ROOT/Pictures/Screenshots/" $DEST
|
||||
|
||||
imp "$ROOT/Movies/Infinity/" $DEST
|
||||
@ -84,10 +83,6 @@ case "$ACTION" in
|
||||
|
||||
imp "$ROOT/Recordings/Sound records/" $DEST
|
||||
|
||||
imp "$ROOT/Documents/dr" $DEST
|
||||
|
||||
imp "$ROOT/Documents/contacts.vcf" $DEST
|
||||
imp "$ROOT/infbk/" $DEST
|
||||
impf_cp "$ROOT/.SeedVaultAndroidBackup/" $DEST/seedvault/ &
|
||||
;;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
# Categorize files in the quarantine directory
|
||||
|
||||
view() {
|
||||
mpv --no-resume-playback $@
|
||||
mpv --no-resume-playback "$1"
|
||||
}
|
||||
|
||||
dirsel() {
|
||||
@ -33,6 +33,7 @@ confirm() {
|
||||
PREVDIR=""
|
||||
PREVNAME=""
|
||||
find ~/quar \
|
||||
-maxdepth 1 \
|
||||
-type f \
|
||||
-not -path '*/trash/*' \
|
||||
\( \
|
||||
@ -53,6 +54,7 @@ while read -r FILE; do
|
||||
PREVDIR=""
|
||||
PREVNAME=""
|
||||
while true; do
|
||||
clear
|
||||
printf "\n\n%s\n" "$FILE"
|
||||
DESTPATH="$DIR"/"$NAME"."$EXT"
|
||||
printf "send to: %s\n" "$DESTPATH"
|
||||
@ -72,6 +74,10 @@ while read -r FILE; do
|
||||
fi;;
|
||||
s ) break;;
|
||||
d ) mv "$FILE" ~/quar/trash/; break;;
|
||||
* )
|
||||
printf "\nInvalid input! Press enter to continue\n";
|
||||
read </dev/tty;
|
||||
;;
|
||||
esac
|
||||
done
|
||||
done
|
||||
|
20
src/.local/bin/watson-shell
Executable file
20
src/.local/bin/watson-shell
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/fish
|
||||
|
||||
# thing for running watson subcommands quickly
|
||||
|
||||
|
||||
pyenv
|
||||
|
||||
prod.sh &
|
||||
|
||||
while true
|
||||
read -S -p 'set_color green; echo -n watson; set_color normal; echo "> "' -c "watson " CMD
|
||||
if test "$CMD" = "exit"
|
||||
or test "$CMD" = "watson exit"
|
||||
or test "$CMD" = "watson quit"
|
||||
break
|
||||
end
|
||||
eval $CMD
|
||||
end
|
||||
|
||||
kill %1
|
@ -51,4 +51,10 @@ export REALNAME="dogeystamp"
|
||||
export EMAIL="dogeystamp@disroot.org"
|
||||
export KEYID="A3A5FA72F8E5E54FBEE425057225FE3592EFFA38"
|
||||
|
||||
export KEEPASSDB="$HOME"/dox/sec/pass.kdbx
|
||||
# Identity (see ~/.local/bin/identity.sh)
|
||||
if [ -r "$XDG_CONFIG_HOME"/identity ]; then
|
||||
source "$XDG_CONFIG_HOME"/identity
|
||||
fi
|
||||
|
||||
source .config/bashrc
|
||||
|
Loading…
x
Reference in New Issue
Block a user