dotfiles

My collection of dotfiles
git clone git://git.stellar-nexus.ru/dotfiles
Log | Files | Refs

commit f5a1cebd7646cd8305e1d6f6c2ca8b6961334ec2
parent 50251fd0c78bab4927404d2a51cdd8f446337dbd
Author: Plat <plat@stellar-nexus.ru>
Date:   Fri,  9 Aug 2024 02:58:58 +0000

Updated the dotfiles

Diffstat:
Mmake.conf | 3++-
Amuttrc | 112+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apatches/sys-apps/sinit-scripts/01-rc.init.diff | 24++++++++++++++++++++++++
Apatches/sys-apps/sinit-scripts/02-rc.shutdown.diff | 30++++++++++++++++++++++++++++++
Mvimrc | 11+++++++++++
5 files changed, 179 insertions(+), 1 deletion(-)

diff --git a/make.conf b/make.conf @@ -18,9 +18,10 @@ EMERGE_DEFAULT_OPTS="--jobs 8 --load-average 8" FEATURES="parallel-fetch parallel-install" VIDEO_CARDS="radeon radeonsi amdgpu" PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="[1-9] n [013]p [1357]ssl" +PORTAGE_NICENESS="1" #You gotta have abi_x86_32 to play video games. Don't build it in on your laptop -USE="X pgo lto xorg system-man -dbus -udev -abi_x86_32 -vulkan -gles1 -gles2 -gles2-only -sqlite system-icu alsa grub savedconfig -usb -pulseaudio -emacs -xemacs -gnome -ios -ipod -nvidia -smartcard -wayland -systemd -aqua -bidi -bluetooth -clamav -colord -coreaudio -elogind -gimp -geolocation -gnome-keyring -gps -gstreamer -ibm -scanner -screencast -syslog -telemetry -gtk -kde -nls -linguisti -sql mpv vaapi -egrep-fgrep -arping -cramfs -qmanifest -qtegrity -desktop-portal -dialogs -joystick -haptic -ui-m64py" +USE="X pgo lto xorg system-man gsasl dmenu -dbus -udev -abi_x86_32 -vulkan -gles1 -gles2 -gles2-only -sqlite system-icu alsa grub savedconfig -usb -pulseaudio -emacs -xemacs -gnome -ios -ipod -nvidia -smartcard -wayland -systemd -aqua -bidi -bluetooth -clamav -colord -coreaudio -elogind -gimp -geolocation -gnome-keyring -gps -gstreamer -ibm -scanner -screencast -syslog -telemetry -gtk -kde -nls -linguisti -sql mpv vaapi -egrep-fgrep -arping -cramfs -qmanifest -qtegrity -desktop-portal -dialogs -joystick -haptic -ui-m64py" # NOTE: This stage was built with the bindist Use flag enabled PORTDIR="/var/db/repos/gentoo" diff --git a/muttrc b/muttrc @@ -0,0 +1,112 @@ +# character set on sent messages +set send_charset="utf-8" +# if there is no character set given on incoming messages, it is probably windows +set assumed_charset="iso-8859-1" + +# make sure Vim knows Mutt is a mail client and that a UTF-8 encoded message will be composed +set editor="vim -c 'set syntax=mail ft=mail enc=utf-8'" + +# just scroll one line instead of full page +set menu_scroll=yes + +# make default search pattern to search in To, Cc and Subject +set simple_search="~f %s | ~C %s | ~s %s" + +# threading preferences, sort by threads +set sort=reverse-threads +set strict_threads=yes + +# show spam score (from SpamAssassin only) when reading a message +spam "X-Spam-Score: ([0-9\\.]+).*" "SA: %1" +set pager_format = " %C - %[%H:%M] %.20v, %s%* %?H? [%H] ?" + +# do not show all headers, just a few +ignore * +unignore From To Cc Bcc Date Subject +# and in this order +unhdr_order * +hdr_order From: To: Cc: Bcc: Date: Subject: + +# brighten up stuff with colors, for more coloring examples see: +# http://aperiodic.net/phil/configs/mutt/colors +set help=no +#set status_on_top=yes +color normal white black +color hdrdefault green default +color quoted green default +color quoted1 yellow default +color quoted2 red default +color signature cyan default +color indicator black yellow +color error brightred default +color status brightwhite color202 +color tree brightmagenta black +color tilde blue default +color attachment brightyellow default +color markers brightred default +color message white black +color search brightwhite magenta +color bold brightyellow default +# if you don't like the black progress bar at the bottom of the screen, +# comment out the following line +#color progress white black + +#Bindings +macro index,pager <left> ":exec sidebar-prev:exec sidebar-open" +macro index,pager <right> ":exec sidebar-next:exec sidebar-open" + +# personality settings +set from = "plat@stellar-nexus.ru" +set realname = "Plat" +set imap_pass = "" +set smtp_pass = "" +#alternates "larry@mail.server|larry.the.cow@mail.server" +# this file must exist, and contains your signature, comment it out if +# you don't want a signature to be used +#set signature = ~/.signature + +# aliases (sort of address book) +#source ~/.aliases + +# IMAP connection settings +set mail_check=60 +set imap_keepalive=300 + +# IMAP account settings +set folder=imaps://plat@mail.stellar-nexus.ru/ +set spoolfile=imaps://plat@mail.stellar-nexus.ru/ +set record=imaps://plat@mail.stellar-nexus.ru/Sent +set postponed=imaps://plat@mail.stellar-nexus.ru/Drafts + +# use headercache for IMAP (make sure this is a directory for better performance!) +set header_cache=/var/tmp/.mutt + +# uncomment this to enable the sidebar feature +set sidebar_visible = yes +set sidebar_width = 0 +set sidebar_folder_indent = yes +set sidebar_short_path = yes + +# make the progress updates not that expensive, this will update the bar every 300ms +set read_inc = 1 +set time_inc = 300 + +# only if you compiled Mutt with USE=gpgme, enable the gpgme backend +#set crypt_use_gpgme = yes +# you can set this to hide gpg's verification output and only rely on Mutt's status flag +#set crypt_display_signature = no +# enable signing of emails by default +set pgp_autosign = yes +set pgp_sign_as = 0xXXXXXXXX # your gpg keyid here +set pgp_replyencrypt = yes + +# mailboxes we want to monitor for new mail +mailboxes =INBOX =Sent =Junk +#mailboxes "=" +#mailboxes "=Lists" + +# mailing lists for a Gentoo user (these are regexps!) +subscribe "gentoo-.*@gentoo\\.org" + +# SMTP mailing configuration (for sending mail) +set smtp_url=smtp://plat@mail.stellar-nexus.ru/ diff --git a/patches/sys-apps/sinit-scripts/01-rc.init.diff b/patches/sys-apps/sinit-scripts/01-rc.init.diff @@ -0,0 +1,24 @@ +--- sinit-scripts-main/bin/rc.init ++++ sinit-scripts-main/bin/rc.init +@@ -11,10 +11,9 @@ + echo "Mounting everything in /etc/fstab..." + mount -a -O no_netdev + +-echo "Mounting sys, efi, proc and dev..." ++echo "Mounting sys, proc and dev..." + mountpoint -q /sys || mount -t sysfs sys /sys -o nosuid,noexec,nodev + mountpoint -q /sys/kernel/security || mount -n -t securityfs securityfs /sys/kernel/security +-[ -d /sys/firmware/efi ] && (mountpoint -q /sys/firmware/efi/efivars || mount -n -t efivarfs -o ro efivarfs /sys/firmware/efi/efivars) + mountpoint -q /proc || mount -t proc proc /proc -o nosuid,noexec,nodev + mountpoint -q /dev || mount -t devtmpfs dev /dev -o mode=0755,nosuid + +@@ -50,9 +49,6 @@ + mountpoint -q /dev/shm || mount -t tmpfs shm /dev/shm -o mode=1777,nosuid,nodev + mountpoint -q /run || mount -t tmpfs run /run -o mode=0755,nosuid,nodev + +-echo "Enabling swap..." +-swapon -a +- + echo "Setting up hostname..." + [ -s /etc/hostname ] && HOSTNAME="$(cat /etc/hostname)" + [ "$HOSTNAME" ] && echo "$HOSTNAME" >| /proc/sys/kernel/hostname diff --git a/patches/sys-apps/sinit-scripts/02-rc.shutdown.diff b/patches/sys-apps/sinit-scripts/02-rc.shutdown.diff @@ -0,0 +1,30 @@ +--- sinit-scripts-main/bin/rc.shutdown ++++ sinit-scripts-main/bin/rc.shutdown +@@ -39,27 +39,19 @@ + echo "[ !! ] pkill -9 (murdering)..." + pkill -9 -e 1 + +- + echo; +-echo "[ {} ] swapoff -a..." +-swapoff -a +- + echo "[ {} ] Remounting filesystems as read-only..." + echo "u" > /proc/sysrq-trigger +-sleep 3 + + echo "[ {} ] Syncing filesystems..." + sync + echo "s" > /proc/sysrq-trigger +-sleep 3 + + echo; + if test "$shutdown_mode" = "reboot"; then + echo "[ OK ] Rebooting..." +- sleep 1 + echo "b" > /proc/sysrq-trigger + else + echo "[ OK ] Powering off..." +- sleep 1 + echo "o" > /proc/sysrq-trigger + fi diff --git a/vimrc b/vimrc @@ -150,6 +150,17 @@ let @s='S(v%:norm A i 26to33? ) lv%:s/ //g $?( :w lvggd/ ) vG$da ):w! /tmp let @b='S(v%:norm A i 26to33? )lv%:s/ //g$?( :wlvggd/ )vG$da ):w! /tmp/beeg:open!ndi(h2xik!!/home/plat/scripts/vimb.shinoNvjdi 26to3326to3 3:%s/26to33//g:%s/26to3 3//g' let @c='y:wGopk$dgg:w! /tmp/vimclip:!xclip -sel c /tmp/vimclip:open!' +" mutt: insert attachment +fun! RangerMuttAttach() + silent !ranger --choosefile=/tmp/chosenfile + if filereadable('/tmp/chosenfile') + exec 'read /tmp/chosenfile' + call system('rm /tmp/chosenfile') + endif + redraw! +endfun +map <C-a> magg/Reply-To<CR><ESC>:call RangerMuttAttach()<CR>IAttach: <ESC>`a + augroup gentoo au!