dotfiles

Dotfiles for my OpenBSD environment.
Log | Files | Refs

commit 6451a13f9567dd8827da88d23b4f0c5cbb18bcd0
parent 7caf98a67ac95894d032f69f0d8195564965eeb6
Author: Matsuda Kenji <contact2655@matsudakenji.xyz>
Date:   Thu, 16 Dec 2021 18:52:19 +0900

modify mutt settings

Diffstat:
M.config/X11/xinitrc | 4+---
A.config/mutt/conf.d/gmail | 19+++++++++++++++++++
A.config/mutt/conf.d/sakura | 20++++++++++++++++++++
M.config/mutt/mailcap | 2+-
M.config/mutt/muttrc | 40++++++++++++++++++++--------------------
A.config/mutt/muttrc.bu | 64++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/mutt/passwd/gmail.gpg | 2++
A.config/mutt/passwd/sakura.gpg | 0
D.config/mutt/password.gpg | 0
M.config/newsboat/config | 2++
M.config/newsboat/urls | 9++++++---
Abin/chogo | 2++
Mbin/dwm_blocks_wifi.sh | 2+-
Abin/home_buckup | 2++
Mbin/pass | 3++-
Abin/sakura_update | 2++
Aopenbsd_pkg_list | 20++++++++++++++++++++
Mpasswords.gpg | 0
18 files changed, 164 insertions(+), 29 deletions(-)

diff --git a/.config/X11/xinitrc b/.config/X11/xinitrc @@ -49,7 +49,6 @@ fi export XMODIFIERS='@im=uim' export GTK_IM_MODULE=uim export GTK3_IM_MODULE=uim -#uim-xim & xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1 xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2 @@ -57,8 +56,7 @@ xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 5 xinput set-prop "/dev/wsmouse" "Device Accel Constant Deceleration" 0.4 xsetroot -solid black -xidle -program "/usr/X11R6/bin/xlock -mode random" & -#xidle -program "/usr/X11R6/bin/xlock -mode clock -count 1 -size 100" & +xidle -program "/usr/local/bin/slock"& dwmblocks & exec dwm diff --git a/.config/mutt/conf.d/gmail b/.config/mutt/conf.d/gmail @@ -0,0 +1,19 @@ +source "gpg -d ~/.config/mutt/passwd/gmail.gpg |" + +set hostname = "gmail.com" +set from = "ftvda283@gmail.com" +set folder = "imaps://ftvda283@gmail.com@imap.gmail.com:993" +set smtp_url = "smtp://ftvda283@gmail.com@smtp.gmail.com:587" +set imap_user = "ftvda283@gmail.com" + +set spoolfile = "+INBOX" +set record = "+[Gmail]/Sent Mail" +set trash = "+[Gmail]/Trash" +set postponed = "+[Gmail]/Drafts" + +named-mailboxes \ + "g_inbox" =INBOX \ + "g_sent" =[Gmail]/Sent\ Mail \ + "g_draft" =[Gmail]/Drafts \ + "g_spam" =[Gmail]/Spam \ + "g_trash" =[Gmail]/Trash diff --git a/.config/mutt/conf.d/sakura b/.config/mutt/conf.d/sakura @@ -0,0 +1,20 @@ +source "gpg -d ~/.config/mutt/passwd/sakura.gpg |" + +set hostname = "matsudakenji.xyz" +set from = "contact2655@matsudakenji.xyz" +set folder = "imaps://contact2655@matsudakenji.xyz@mail.matsudakenji.xyz:993" +set smtp_url = "smtps://contact2655@matsudakenji.xyz@mail.matsudakenji.xyz:587" +set imap_user = "contact2655@matsudakenji.xyz" +set hostname = "matsudakenji.xyz" + +# folder +set from = "contact2655@matsudakenji.xyz" +set spoolfile = "=INBOX" +set record = "=Sent" +set trash = "=Trash" +set postponed = "=Drafts" +named-mailboxes \ + s_inbox =INBOX \ + s_sent =Sent \ + s_draft =Drafts \ + s_trash =Trash diff --git a/.config/mutt/mailcap b/.config/mutt/mailcap @@ -1,3 +1,3 @@ text/html; w3m -o keymap_file=~/.config/w3m/keymap %s -I %{charset} -T text/html image/*; sxiv %s -application/pdf; zathura %s +application/pdf; mupdf %s diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc @@ -1,22 +1,15 @@ -source "gpg -d ~/.config/mutt/password.gpg |" #パスワードの読み込み - set realname = "Matsuda Kenji" -set hostname = "gmail.com" -set from = "ftvda283@gmail.com" - -# send -set folder = "imaps://ftvda283@gmail.com@imap.gmail.com:993" -set smtp_url = "smtp://ftvda283@gmail.com@smtp.gmail.com:587" -set imap_user = "ftvda283@gmail.com" - -# folder -set spoolfile = "+INBOX" -#set record = "+[Gmail]/Sent Mail" -unset record -set trash = "+[Gmail]/Trash" -set postponed = "+[Gmail]/Drafts" -named-mailboxes "inbox" =INBOX "sent" =[Gmail]/Sent\ Mail "drafts" =[Gmail]/Drafts "spam" =[Gmail]/Spam "trash" =[Gmail]/Trash -set sort=reverse-date + +# default to sakura +source "~/.config/mutt/conf.d/sakura" + +# folder hooks +folder-hook 'imaps://contact2655@matsudakenji.xyz@mail.matsudakenji.xyz' 'source ~/.config/mutt/conf.d/sakura' +folder-hook 'imaps://ftvda283@gmail.com@imap.gmail.com' 'source ~/.config/mutt/conf.d/gmail' + +# macros to switch account +macro index ,s "<enter-command>unmailboxes *<enter><enter-command>source ~/.config/mutt/conf.d/sakura<enter><sync-mailbox><change-folder>!<enter>" +macro index ,g "<enter-command>unmailboxes *<enter><enter-command>source ~/.config/mutt/conf.d/gmail<enter><sync-mailbox><change-folder>!<enter>" # security set ssl_starttls = yes @@ -31,6 +24,7 @@ auto_view text/plain #set implicit_autoview = "yes" set pager = less unset prompt_after +set sort = reverse-date #sidebar set sidebar_visible @@ -41,11 +35,17 @@ bind index \CP sidebar-prev bind index \CN sidebar-next bind index \CO sidebar-open +# pager +ignore * +unignore from date subject to cc +unignore organization organisation x-mailer: x-newsreader: x-mailing-list: +unignore posted-to: + # GPG source /usr/local/share/examples/neomutt/gpg.rc -set pgp_default_key = DC457F8B13AB6448 +set pgp_default_key = E05198049B0E4EEA #set crypt_autoencrypt -set pgp_sign_as = 011FB63551C7B02E +set pgp_sign_as = E05198049B0E4EEA set crypt_autosign # Vim like binds diff --git a/.config/mutt/muttrc.bu b/.config/mutt/muttrc.bu @@ -0,0 +1,64 @@ +source "gpg -d ~/.config/mutt/passwd/gmail.gpg |" + +set realname = "Matsuda Kenji" +set hostname = "gmail.com" +set from = "ftvda283@gmail.com" + +# send +set folder = "imaps://ftvda283@gmail.com@imap.gmail.com:993" +set smtp_url = "smtp://ftvda283@gmail.com@smtp.gmail.com:587" +set imap_user = "ftvda283@gmail.com" + +# folder +set spoolfile = "+INBOX" +#set record = "+[Gmail]/Sent Mail" +unset record +set trash = "+[Gmail]/Trash" +set postponed = "+[Gmail]/Drafts" +#named-mailboxes "inbox" =INBOX "sent" =[Gmail]/Sent\ Mail "drafts" =[Gmail]/Drafts "spam" =[Gmail]/Spam "trash" =[Gmail]/Trash "contact" =Contact +mailboxes =INBOX =[Gmail]/Sent\ Mail =[Gmail]/Drafts =[Gmail]/Spam =[Gmail]/Trash +set sort=reverse-date + +# security +set ssl_starttls = yes +set ssl_force_tls = yes + +# basic +set editor = "vim" +set charset = "utf-8" +set certificate_file = "./certificates" +set mailcap_path = "~/.config/mutt/mailcap" +auto_view text/plain +#set implicit_autoview = "yes" +set pager = less +unset prompt_after + +#sidebar +set sidebar_visible +set sidebar_format = "%D%?F? [%F]?%* %?N?%N/?%S" +#set sidebar_width = 15 +set sidebar_divider_char = '|' +bind index \CP sidebar-prev +bind index \CN sidebar-next +bind index \CO sidebar-open + +# pager +ignore * +unignore from date subject to cc +unignore organization organisation x-mailer: x-newsreader: x-mailing-list: +unignore posted-to: + +# GPG +source /usr/local/share/examples/neomutt/gpg.rc +set pgp_default_key = DC457F8B13AB6448 +#set crypt_autoencrypt +set pgp_sign_as = 011FB63551C7B02E +set crypt_autosign + +# Vim like binds +bind attach,index \CD half-down +bind attach,index \CU half-up +bind attach,index g first-entry +bind attach,index G last-entry +bind editor <Esc>A eol +bind editor <Esc>I bol diff --git a/.config/mutt/passwd/gmail.gpg b/.config/mutt/passwd/gmail.gpg @@ -0,0 +1 @@ + uWHg|1<Ul]p#XxJGA6,hL5V[i쎂 mܣ@I>;5ӧڧx̌k) 1]6q1O&K50ɭpE?]~|\x;'-:HsĨ,vL\)G h3/ &yd8o@bע^,ʣ>"Â.xlp(ÖGAՍI}&b!)fQ.s3<Et ٧co-#r/\zh: C&7$>{Ni4gaNR0gpBK?s4C3,"vݴ.:xz^|u =2ʕ<c%IJu.~e˄:cT蒬}(Һ$-ۺG<=b>TT,t_ck)@nX"ek&Oi%\)nz ;%\zh^iX\wa,>eѼ6) mvB`yC2nWE8 _"s4|D+Hy>+Fk3R +\ No newline at end of file diff --git a/.config/mutt/passwd/sakura.gpg b/.config/mutt/passwd/sakura.gpg Binary files differ. diff --git a/.config/mutt/password.gpg b/.config/mutt/password.gpg Binary files differ. diff --git a/.config/newsboat/config b/.config/newsboat/config @@ -3,4 +3,6 @@ browser "firefox %u" bind-key k prev bind-key j next +pager less + macro y set browser "mpv %u"; open-in-browser; set browser "firefox %u" diff --git a/.config/newsboat/urls b/.config/newsboat/urls @@ -1,20 +1,23 @@ https://lukesmith.xyz/rss.xml https://notrelated.xyz/rss https://videos.lukesmith.xyz/feeds/videos.xml?sort=-publishedAt&filter=local -https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA https://suckless.org/atom.xml https://archlinux.org/feeds/news/ https://www.romanzolotarev.com/rss.xml +https://unixsheikh.com/feed.rss https://vermaden.wordpress.com/feed +https://lonami.dev/blog/atom.xml +https://dataswamp.org/~solene/rss.xml +https://www.freebsd.org/events/feed.xml +https://blog.eniehack.net/atom.xml +https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA https://www.youtube.com/feeds/videos.xml?channel_id=UCntL6bw6PoFR0r67cMYXLkg https://www.youtube.com/feeds/videos.xml?channel_id=UC5gLmcFuvdGbajs4VL-WU3g https://www.youtube.com/feeds/videos.xml?channel_id=UCqpdhncf4nxTfy0QZh1YWLQ -https://www.freebsd.org/events/feed.xml https://www.youtube.com/feeds/videos.xml?channel_id=UCNnuBjHrb2UYBUi0I5otmjQ https://www.youtube.com/feeds/videos.xml?channel_id=UCykitgt7KZZdBo597aoz38A https://www.youtube.com/feeds/videos.xml?channel_id=UCExoD6BaC8Pj45SB92iS1Wg https://www.youtube.com/feeds/videos.xml?channel_id=UCgVRISJeNusnxbYad3vfajg -https://blog.eniehack.net/atom.xml https://www.youtube.com/feeds/videos.xml?channel_id=UCwSOARsvB-Qa6PtuYyK74dA asmr https://www.youtube.com/feeds/videos.xml?channel_id=UCz4jhqrCfthF8NnldZeK_rw asmr https://www.youtube.com/feeds/videos.xml?channel_id=UCmZb4LwQRhEzZX5Uqpcqziw asmr diff --git a/bin/chogo b/bin/chogo @@ -0,0 +1 @@ +/home/kenji/.local/src/chogo/chogo +\ No newline at end of file diff --git a/bin/dwm_blocks_wifi.sh b/bin/dwm_blocks_wifi.sh @@ -1,4 +1,4 @@ #!/bin/sh ifconfig em0 | awk '/active/{printf ""}' -ifconfig iwn0 | awk '/active/{printf ""}/no network/{printf " down\n"}/nwid/{printf "%s\n", $3}' +ifconfig iwn0 | awk '/active/{printf ""}/no network/{printf " down\n"}/join/{printf "%s\n", $3}' diff --git a/bin/home_buckup b/bin/home_buckup @@ -0,0 +1,2 @@ +#!/bin/sh +rsync -av --delete ~/.mozilla ~/.config ~/.eskk ~/.gitconfig ~/.local ~/.ssh ~/.uim.d ~/Downloads ~/TODO ~/code ~/docs ~/music ~/pics ~/videos 192.168.100.200:/mnt/x220 diff --git a/bin/pass b/bin/pass @@ -3,7 +3,8 @@ passwords=~/.local/dotfiles/passwords.gpg item=$(gpg -d $passwords | awk '{print $1, $3}' | dmenu -i -l 5 ) +[ -n $item ] && exit; echo $item | awk '{print $2}' name=$(echo $item | awk '{print $1}') id=$(echo $item | awk '{print $2}') -gpg -d $passwords | grep "$name" | grep "$id" | sed 's/.* //' | xclip +gpg -d $passwords | grep "$name" | grep "$id" | sed 's/.* //' | xclip -r diff --git a/bin/sakura_update b/bin/sakura_update @@ -0,0 +1,2 @@ +#!/bin/sh +rsync -av --delete ~/docs/kagero/pub/ matsudakenji.xyz:/var/www/htdocs/www.matsudakenji.xyz diff --git a/openbsd_pkg_list b/openbsd_pkg_list @@ -0,0 +1,20 @@ +firefox-- +font-awesome-- +git-- +gnupg-- +gpgme-- +libconfig-- +liberation-fonts-- +mpv-- +neomutt--gpgme-sasl +newsboat-- +noto-cjk-- +noto-emoji-- +noto-fonts-- +quirks-- +rsync-- +skk-jisyo-- +uim-- +uim-gtk3-- +vim--no_x11 +xclip-- diff --git a/passwords.gpg b/passwords.gpg Binary files differ.