Compare commits

...

2 commits

Author SHA1 Message Date
b90b1a6ae8 minor 2023-07-11 15:54:37 +03:00
577b24ddc5 dots: cleanup 2023-07-11 15:53:17 +03:00
17 changed files with 33 additions and 243 deletions

View file

@ -1,5 +1,3 @@
# -*- conf -*-
term=xterm-256color
initial-window-size-chars=80x24
pad=2x2
@ -47,5 +45,3 @@ show-urls-launch=Mod1+f
[search-bindings]
find-next=Mod1+n
find-prev=Mod1+Shift+n
# vim: ft=dosini

View file

@ -1,67 +0,0 @@
# vim: filetype=neomuttrc
# General rebindings
bind index v tag-entry
bind index,pager i noop
bind index,pager g noop
bind index \Cf noop
bind index,pager M noop
bind index,pager C noop
bind index a toggle-new
bind index gg first-entry
bind index j next-entry
bind index k previous-entry
bind attach l view-mailcap
bind index G last-entry
bind pager,attach h exit
bind pager j next-line
bind pager k previous-line
bind pager l view-attachments
bind index D delete-message
bind index U undelete-message
bind index L limit
bind index h noop
bind index l display-message
bind index,query <space> tag-entry
macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
bind index,pager H view-raw-message
bind browser l select-entry
bind pager,browser gg top-page
bind pager,browser G bottom-page
bind index,pager,browser d half-down
bind index,pager,browser u half-up
bind index,pager S sync-mailbox
bind index,pager R group-reply
bind index \031 previous-undeleted
bind index \005 next-undeleted
bind pager \031 previous-line
bind pager \005 next-line
bind editor <Tab> complete-query
# Sidebar
bind index,pager \Ck sidebar-prev
bind index,pager \Cj sidebar-next
bind index,pager \Co sidebar-open
bind index,pager \Cp sidebar-prev-new
bind index,pager \Cn sidebar-next-new
bind index,pager B sidebar-toggle-visible
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
macro index,pager ga "<change-folder>=Archive<enter>" "go to archive"
macro index,pager Ma ";<save-message>=Archive<enter>" "move mail to archive"
macro index,pager Ca ";<copy-message>=Archive<enter>" "copy mail to archive"
macro index,pager c "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"
macro index R "<shell-escape>mbsync -c $XDG_CONFIG_HOME/isync/mbsyncrc dmitz@disroot.org<enter>" "run mbsync to sync dmitz@disroot.org"
macro index A "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>printf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern"

View file

@ -1,48 +0,0 @@
# vim: filetype=neomuttrc
color index blue default '.*'
color index white default "~R"
color index brightyellow default "~T"
color indicator yellow black
color sidebar_highlight yellow default
color sidebar_divider black default
color sidebar_flagged red black
color sidebar_new blue black
color normal blue black
color error red default
color tilde black default
color message blue default
color markers red white
color attachment white default
color search magenta default
color status white default
color hdrdefault green default
color quoted green default
color quoted1 blue default
color quoted2 cyan default
color quoted3 yellow default
color quoted4 red default
color quoted5 brightred default
color signature green default
color bold black default
color underline black default
color normal default default
# Regex highlighting:
color header default default ".*"
color header magenta default "(^Date:)"
color header cyan default "(^From|To:)"
color header white default "(^Subject:)"
color header yellow default "(^CC|BCC:)"
color body red default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
color body blue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
color body brightwhite black "\`[^\`]*\`" # Green text between ` and `
color body blue default "^# \.*" # Headings as bold blue
color body cyan default "^## \.*" # Subheadings as bold cyan
color body green default "^### \.*" # Subsubheadings as bold green
color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
color body red default "(BAD signature)"
color body cyan default "(Good signature)"
color body brightblack default "^gpg: Good signature .*"
color body brightyellow default "^gpg: "
color body brightyellow red "^gpg: BAD signature from.*"

View file

@ -1,9 +0,0 @@
text/plain; $EDITOR %s ;
text/html; openfile %s ; nametemplate=%s.html
text/html; elinks -dump %s; nametemplate=%s.html; copiousoutput;
image/*; linkhandler %s ;
video/*; linkhandler %s ;
audio/*; linkhandler %s ;
application/pdf; linkhandler %s ;
application/pgp-encrypted; gpg -d '%s'; copiousoutput;
application/pgp-keys; gpg --import '%s'; copiousoutput;

View file

@ -1,53 +0,0 @@
# vim: filetype=neomuttrc
set realname = "Dmitry Zakharchenko"
set from = "dmitz@disroot.org"
set sendmail = "msmtp -a dmitz@disroot.org"
alias me dmitz <dmitz@disroot.org>
set folder = "/home/dmitz/.local/share/mail/dmitz@disroot.org"
set header_cache = /home/dmitz/.cache/mutt/dmitz@disroot.org/headers
set message_cachedir = /home/dmitz/.cache/mutt/dmitz@disroot.org/bodies
set mbox_type = Maildir
set hostname = "disroot.org"
set spoolfile = +INBOX
set postponed = +Drafts
set trash = +Trash
set record = +Sent
mailboxes "=INBOX" "=Sent" "=Drafts" "=Archive" "=Trash"
set mailcap_path = /home/dmitz/.config/mutt/mailcap
set mime_type_query_command = "file --mime-type -b %s"
set date_format="%b %d"
set index_format="%3zs %-8D %s"
set status_format = "[ Folder: %f ] [%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]%> %?p?( %p postponed )?"
set sort = 'reverse-date'
set smtp_authenticators = 'gssapi:login'
set query_command = "abook --mutt-query '%s'"
set rfc2047_parameters = yes
set sleep_time = 0
set markers = no
set mark_old = no
set mime_forward = yes
set wait_key = no
set fast_reply
set fcc_attach
set forward_format = "Fwd: %s"
set forward_quote
set reverse_name
set include
set mail_check=60
auto_view text/html
auto_view application/pgp-encrypted
alternative_order text/plain text/enriched text/html
# Sidebar
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 = '%D%?F? [%F]?%* %?N?%N/? %?S?%S?'
source /home/dmitz/.config/mutt/binds
source /home/dmitz/.config/mutt/colors

View file

@ -4,7 +4,7 @@ mpd_port = "6600"
# Directories for storing ncmpcpp files
ncmpcpp_directory = ~/.config/ncmpcpp
lyrics_directory = ~/.local/share/lyrics
lyrics_directory = ~/.cache/lyrics
# Playlist
playlist_display_mode = "classic" (classic/columns)
@ -43,5 +43,3 @@ search_engine_display_mode = "columns" (classic/columns)
follow_now_playing_lyrics = "yes"
user_interface = "alternative" (classic/alternative)
execute_on_song_change="pkill -RTMIN+11 someblocks"
vim:ft=config

View file

@ -1,8 +1,7 @@
"TECH" "(---)"
https://www.phoronix.com/rss.php "(www)"
https://linuxgamingcentral.com/posts/index.xml "(www)" "~Linux Gaming Central"
https://go.dev/blog/feed.atom "(www)"
https://drewdevault.com/blog/index.xml "(www)" "~Drew DeVault"
https://spacepub.space/feeds/videos.xml?videoChannelId=2 "(prb)"
https://lobste.rs/top/rss "(www)" "~Lobsters"
https://youtube.com/feeds/videos.xml?channel_id=UCKTehwyGCKF-b2wo0RKwrcg "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCl2mFZoRqjw_ELax4Yisf6w "(ytb)"
@ -24,16 +23,13 @@ https://youtube.com/feeds/videos.xml?channel_id=UCpi0JLkVK0RrAHkfpB3B2Aw "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UC2WNW0NZVyMeEPvtLmScgvQ "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCiUkcNS6W0n8QdosuZASduQ "(ytb)"
"TCH" "(---)"
https://twitchrss.appspot.com/vod/uebermarginal "(tch)" "~uebermarginal"
https://twitchrss.appspot.com/vod/lastmiles "(tch)" "~lastmiles"
https://twitchrss.appspot.com/vod/bashbunni "(tch)" "~bashbunni"
https://twitchrss.appspot.com/vod/teej_dv "(tch)" "~teej_dv"
"PPL" "(---)"
https://lukesmith.xyz/rss.xml "(www)" "~Luke's Webpage"
https://notrelated.xyz/rss "(www)" "~Not Related"
https://lukesmith.xyz/peertube "(prt)"
https://emersion.fr/blog/atom.xml "(www)"
https://isaacfreund.com/blog/feed.xml "(www)"
https://drewdevault.com/blog/index.xml "(www)" "~Drew DeVault"
https://spacepub.space/feeds/videos.xml?videoChannelId=2 "(prb)"
https://youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCxFGffCAi7wC-nl1jA13x1A "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UC3ltptWa0xfrDweghW94Acg "(ytb)"
@ -51,7 +47,6 @@ https://youtube.com/feeds/videos.xml?channel_id=UCf_kbk7T6-3Cw1o3KA4hxCg "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UC-b89a0Fw6pNoP-g-_qLeiw "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UC9RM-iSvTu1uPJb8X5yp3EQ "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCR1D15p_vdP3HkrH8wgjQRw "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCjjElKokwu5KCN2PeHzE9Eg "(ytb)" "~Furydrops"
https://youtube.com/feeds/videos.xml?channel_id=UCbWcXB0PoqOsAvAdfzWMf0w "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCo4au6lRX4-_gIczBneEZWA "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCsK84qDhiw7SwtZonplxavg "(ytb)"
@ -91,9 +86,6 @@ https://rss.nixnet.services/?action=display&bridge=Bandcamp&context=By+band&band
https://repology.org/maintainer/dmitz%40disroot.org/feed-for-repo/alpine_edge/atom "(www)"
https://github.com/kolunmi/sandbar/commits/main.atom "(ghb)"
https://github.com/djpohly/dwl/commits/main.atom "(ghb)"
https://git.sr.ht/~raphi/somebar/log/master/rss.xml "(srt)"
https://github.com/riverwm/river/commits/master.atom "(ghb)"
https://github.com/lukesmithxyz/voidrice/commits/master.atom "(ghb)"
https://github.com/LukeSmithxyz/dwm/commits/master.atom "(ghb)"
https://github.com/qutebrowser/qutebrowser/releases.atom "(ghb)"
https://github.com/newsboat/newsboat/releases.atom "(ghb)"

View file

@ -1,5 +1,5 @@
c.url.searchengines = {'DEFAULT': 'https://librex.baczek.me/search.php?q={}',
'y': 'https://tube.cadence.moe/search?q={}',
c.url.searchengines = {'DEFAULT': 'https://search.zeroish.xyz/search.php?q={}',
'y': 'https://invidious.lunar.icu/search?q={}',
'gh': 'https://github.com/search?q={}',
'md': 'https://reelgood.com/search?q={}',
'rep': 'https://repology.org/projects/?search={}',

View file

@ -7,8 +7,6 @@ riverctl border-color-unfocused 0x262626
# General binds
riverctl map normal Super Return spawn foot
riverctl map normal Alt 1 spawn "wlfreerdp $XDG_DATA_HOME/rdp/aws.rdp /dynamic-resolution"
riverctl map normal Super A send-layout-cmd rivertile "padding toggle"
riverctl map normal Super B spawn "echo 'all toggle-visibility' > $XDG_RUNTIME_DIR/sandbar-0"
riverctl map normal Super C spawn "foot pipe-viewer"
riverctl map normal Super D spawn passmenu
@ -23,6 +21,7 @@ riverctl map normal Super T spawn "torwrap open"
riverctl map normal Super W spawn qutebrowser
riverctl map normal Super+Shift B spawn bluetooth
riverctl map normal Super+Shift BackSpace spawn "sysact reb"
riverctl map normal Super+Shift D spawn tofi-drun
riverctl map normal Super+Shift F toggle-float
riverctl map normal Super+Shift M spawn "foot -T float pulsemixer"
riverctl map normal Super+Shift Q spawn "sysact rest"
@ -71,17 +70,8 @@ riverctl map normal Super BackSlash focus-previous-tags
riverctl map normal Super+Shift J swap next
riverctl map normal Super+Shift K swap previous
# Scratchpad and sticky
all_tags=$(((1 << 32) - 1))
scratch_tag=$((1 << 20 ))
all_but_scratch_tag=$(( $all_tags ^ $scratch_tag ))
riverctl map normal Super Z set-view-tags $scratch_tag
riverctl map normal Super X toggle-focused-tags $scratch_tag
riverctl spawn-tagmask $all_but_scratch_tag
# Sticky
all_tags=$(((1 << 32) - 1))
sticky_tag=$((1 << 31))
all_but_sticky_tag=$(( $all_tags ^ $sticky_tag ))
@ -128,7 +118,7 @@ riverctl map-pointer normal Super BTN_MIDDLE toggle-float
riverctl map-pointer normal Super BTN_RIGHT resize-view
# Rules
riverctl rule-add float -title "float"
riverctl float-filter-add title "float"
# Autostart
autostart="pipewire mpd mako"
@ -136,10 +126,10 @@ for program in $autostart; do
pidof -sx "$program" || riverctl spawn "$program" &
done
riverctl spawn "startbar"
riverctl spawn "sbar"
riverctl spawn "gpg-agent --daemon"
riverctl declare-mode normal
riverctl default-layout rivertile
riverctl attach-mode bottom
rivertile -view-padding 4 -outer-padding 4 &
rivertile -view-padding 0 -outer-padding 0 &

View file

@ -15,7 +15,6 @@ d="cd $XDG_DOWNLOAD_DIR && ls" \
m="cd $XDG_MUSIC_DIR && ls" \
dc="cd $XDG_DOCUMENTS_DIR && ls" \
cf="cd $XDG_CONFIG_HOME && ls" \
gs="cd $GOPATH/src && ls" \
shr="cd $XDG_DATA_HOME && ls" \
sc="cd ~/.local/bin && ls" \
ap="cd $XDG_DOCUMENTS_DIR/code/alps/aports && ls" \
@ -28,7 +27,7 @@ cfu="$EDITOR $XDG_CONFIG_HOME/newsboat/urls" \
cfv="$EDITOR $XDG_CONFIG_HOME/nvim/init.lua" \
hist="$EDITOR $XDG_CACHE_HOME/history"
for program in zathura mpv imv; do
for program in zathura mpv imv ; do
alias $program="setsid -f $program"
done; unset program

View file

@ -17,7 +17,7 @@
"cache-size-mb": 4,
"default-trackers": "",
"dht-enabled": true,
"download-dir": "/home/dmitz/downloads/films",
"download-dir": "/home/dmitz/downloads/torrents",
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,

View file

@ -1,19 +0,0 @@
{
"palettes": {
"default": [
[ "footer", "white", "black" ],
[ "search", "white", "" ],
[ "msgtext:ellipses", "light gray", "black" ],
[ "urlref:number:braces", "dark magenta", "" ],
[ "urlref:number", "dark magenta", "" ],
[ "urlref:url", "dark blue", "default" ],
[ "url:sel", "yellow", "default" ]
]
},
"keys": {
"0": "digits", "1": "digits", "2": "digits", "3": "digits", "4": "digits",
"5": "digits", "6": "digits", "7": "digits", "8": "digits", "9": "digits",
"g": "top", "j": "down", "k": "up", "q": "quit",
"G": "bottom", "c": "context", "?": "help_menu"
}
}

View file

@ -53,4 +53,4 @@ fileviewer <image/*> sixel %c %pw %ph %pd %pc
filetype *.torrent torwrap add %c
fileviewer *.torrent transmission-show
set vifminfo=dhistory,chistory,tui,shistory,phistory,fhistory,dirstack,registers
set vifminfo=tui,registers

View file

@ -22,11 +22,13 @@ export FILE="vifm"
export READER="zathura"
export TERMINAL="foot"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export GOMODCACHE="$XDG_CACHE_HOME/go/mod"
export GOPATH="$XDG_DOCUMENTS_DIR/code/go"
export GOPROXY=direct
export GOSUMDB=off
export GOTELEMETRY=off
export GOTOOLCHAIN=local
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0"
export INPUTRC="$XDG_CONFIG_HOME/shell/inputrc"
export LESS=-R

View file

@ -7,6 +7,4 @@ case $1 in
prompt "Reboot computer?" "doas reboot" ;;
rest)
prompt "Leave WM?" "riverctl exit" ;;
lock)
mpc pause; waylock -init-color 0x000000 -input-color 0x005577
esac

10
.local/bin/sbar Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
FIFO="$XDG_RUNTIME_DIR/sandbar-0"
[ -e "$FIFO" ] && rm -f "$FIFO"
mkfifo "$FIFO"
while cat "$FIFO"; do :; done | sandbar -hide-vacant-tags -no-title -vertical-padding 3 -title-bg-color '222222ff' -font 'monospace:size=10' &
pidof -sx someblocks || someblocks -s "$FIFO" &

View file

@ -1,7 +1,8 @@
Include ~/.ssh/config.d/*
Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"
Host juno
HostName 18.159.216.33
Host *
User admin
RequestTTY yes
RemoteCommand screen -d -RR