From 7ba46f88142f8aad7e440ccc999902fd3181174b Mon Sep 17 00:00:00 2001 From: Sergey Besedin Date: Sun, 23 Jun 2019 19:51:34 +0400 Subject: [PATCH] Add more configs --- .Xresources | 7 +- .Xresources.d/base16-gruvbox-dark-hard-256 | 50 ++++++++ .Xresources.d/st | 40 +++++++ .newsboat/config | 7 +- .rubocop.yml | 3 + .zshrc.d/env.zsh | 4 +- .zshrc.d/locale.zsh | 1 - htop/htoprc | 2 +- i3/config | 18 +-- kitty/kitty.conf | 8 +- mutt/mailcap | 1 + mutt/muttrc | 127 +++++++++++++++++++++ 12 files changed, 246 insertions(+), 22 deletions(-) create mode 100644 .Xresources.d/base16-gruvbox-dark-hard-256 create mode 100644 .Xresources.d/st create mode 100644 mutt/mailcap create mode 100644 mutt/muttrc diff --git a/.Xresources b/.Xresources index d4334a3..73e7378 100644 --- a/.Xresources +++ b/.Xresources @@ -1,6 +1,4 @@ -! URxvt*foreground: #F5FAFC -! URxvt*background: #1C1F22 -URxvt*font: xft:Iosevka\ Term:size=12 +URxvt*font: xft:Iosevka\ Term:size=11 URxvt*scrollBar: false ! URxvt*geometry: 167x54 @@ -34,3 +32,6 @@ Xft.hinting: true Xft.hintstyle: hintslight Xft.lcdfilter: lcddefault Xft.rgba: rgb + +#include ".Xresources.d/base16-gruvbox-dark-hard-256" +#include ".Xresources.d/st" diff --git a/.Xresources.d/base16-gruvbox-dark-hard-256 b/.Xresources.d/base16-gruvbox-dark-hard-256 new file mode 100644 index 0000000..6640879 --- /dev/null +++ b/.Xresources.d/base16-gruvbox-dark-hard-256 @@ -0,0 +1,50 @@ +! Base16 Gruvbox dark, hard +! Scheme: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) + +#define base00 #1d2021 +#define base01 #3c3836 +#define base02 #504945 +#define base03 #665c54 +#define base04 #bdae93 +#define base05 #d5c4a1 +#define base06 #ebdbb2 +#define base07 #fbf1c7 +#define base08 #fb4934 +#define base09 #fe8019 +#define base0A #fabd2f +#define base0B #b8bb26 +#define base0C #8ec07c +#define base0D #83a598 +#define base0E #d3869b +#define base0F #d65d0e + +*.foreground: base05 +*.background: base00 +*.cursorColor: base05 + +*.color0: base00 +*.color1: base08 +*.color2: base0B +*.color3: base0A +*.color4: base0D +*.color5: base0E +*.color6: base0C +*.color7: base05 + +*.color8: base03 +*.color9: base08 +*.color10: base0B +*.color11: base0A +*.color12: base0D +*.color13: base0E +*.color14: base0C +*.color15: base07 + +! Note: colors beyond 15 might not be loaded (e.g., xterm, urxvt), +! use 'shell' template to set these if necessary +*.color16: base09 +*.color17: base0F +*.color18: base01 +*.color19: base02 +*.color20: base04 +*.color21: base06 diff --git a/.Xresources.d/st b/.Xresources.d/st new file mode 100644 index 0000000..017b3dd --- /dev/null +++ b/.Xresources.d/st @@ -0,0 +1,40 @@ +! These are all possible options, presented with default values. +! xst will fallback to *.option if st.option is not present. +! see src/config.h for more information about option meanings. + +! These options only take effect on startup. +st.termname: xterm-256color +! if you do not set shell, precedence is: -e arg, utmp option, SHELL env var, /etc/passwd shell +! st.shell: /bin/sh + +! The following options options can be reloaded via USR1 signal. +st.font: Iosevka Term:pixelsize=18:antialias=true:autohint=false:dpi=120; +st.borderpx: 0 +! Available cursor values: 2 4 6 7 = █ _ | ☃ ( 1 3 5 are blinking versions) +st.cursorshape: 2 +! thickness of underline and bar cursors +st.cursorthickness: 2 +! 0: normal blinking, 1: leave cursor border and blink with cursor's background +st.cursorblinkstyle: 0 +! 0: cursor blinks with a constant interval; 1: blinking cycle resets on key input +st.cursorblinkontype: 1 +st.bold_font: 1 +st.xfps: 120 +st.actionfps: 30 +! Amount of lines scrolled +st.mouseScrollLines: 1 +! Kerning / character bounding-box height multiplier +st.chscale: 1.0 +! Kerning / character bounding-box width multiplier +st.cwscale: 1.0 +! blinking timeout for terminal and cursor blinking (0 disables) +st.blinktimeout: 800 +! bell volume. Value between -100 and 100. (0 disables) +st.bellvolume: 100 +! this is a char that is exposed like so: `printf '\033[z'` +st.prompt_char: $ +! This option is can be preedit style. Available values: `root` `overthespot` (Default taken `root`) +st.imstyle: root + +! opacity==255 means what terminal will be not transparent, 0 - fully transparent +st.opacity: 255 diff --git a/.newsboat/config b/.newsboat/config index 930cec6..9c1f779 100644 --- a/.newsboat/config +++ b/.newsboat/config @@ -8,7 +8,6 @@ auto-reload yes browser qutebrowser cleanup-on-quit yes -# download-path "/home/moparx/downloads/podcasts" feed-sort-order firsttag max-downloads 4 notify-always yes @@ -17,12 +16,12 @@ notify-program notify-send notify-xterm no notify-screen no player mpv -refresh-on-startup yes +refresh-on-startup no reload-time 60 -reload-threads 2 +reload-threads 4 #show-read-articles no show-read-feeds yes -prepopulate-query-feeds yes +prepopulate-query-feeds no feedlist-format "%4i %11u %T > %t" diff --git a/.rubocop.yml b/.rubocop.yml index 5e06016..a28db4b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -9,6 +9,9 @@ AllCops: - 'script/**/*' - 'vendor/bundle/**/*' - 'app/assets/**/*' + - 'node_modules/**/*' + - 'tmp/**/*' + - 'log/**/*' Rails: Enabled: true diff --git a/.zshrc.d/env.zsh b/.zshrc.d/env.zsh index 645720e..eb1365c 100644 --- a/.zshrc.d/env.zsh +++ b/.zshrc.d/env.zsh @@ -1,4 +1,4 @@ export TIMELOG=$HOME/.work-ledger/ledger/timelogger.ldg -export TERMINAL=kitty -export XTERM=kitty +export TERMINAL=xst +export XTERM=xst export EDITOR=nvim diff --git a/.zshrc.d/locale.zsh b/.zshrc.d/locale.zsh index 0e0fb89..c8f1d6e 100644 --- a/.zshrc.d/locale.zsh +++ b/.zshrc.d/locale.zsh @@ -1,2 +1 @@ export LANGUAGE=en_US:en_GB:en -export LC_TIME=ru_RU.UTF-8 diff --git a/htop/htoprc b/htop/htoprc index 26a2fd0..f169e25 100644 --- a/htop/htoprc +++ b/htop/htoprc @@ -12,7 +12,7 @@ show_program_path=1 highlight_base_name=1 highlight_megabytes=0 highlight_threads=1 -tree_view=1 +tree_view=0 header_margin=1 detailed_cpu_time=1 cpu_count_from_zero=1 diff --git a/i3/config b/i3/config index 0a079ba..5cd0035 100644 --- a/i3/config +++ b/i3/config @@ -53,9 +53,8 @@ client.placeholder #000000 #0c0c0c #fbf1c7 #000000 #0c0c0c client.background #ffffff # start a terminal -bindsym $mod+Shift+t exec kitty -bindsym $mod+Return exec kitty -bindsym $mod+b exec qutebrowser +bindsym $mod+Shift+t exec terminal +bindsym $mod+Return exec terminal # kill focused window bindsym $mod+Shift+c kill @@ -167,10 +166,10 @@ bindsym $mod+Shift+z exec "i3lock" mode "resize" { # These bindings trigger as soon as you enter the resize mode - bindsym h resize shrink width 10 px or 10 ppt - bindsym j resize grow height 10 px or 10 ppt - bindsym k resize shrink height 10 px or 10 ppt - bindsym l resize grow width 10 px or 10 ppt + bindsym h resize shrink width 3 px or 3 ppt + bindsym j resize grow height 3 px or 3 ppt + bindsym k resize shrink height 3 px or 3 ppt + bindsym l resize grow width 3 px or 3 ppt # back to normal: Enter or Escape or $mod+r bindsym Return mode "default" @@ -204,6 +203,11 @@ bar { } } +# Backlight control +bindsym XF86MonBrightnessUp exec --no-startup-id sudo light -A 5 +bindsym XF86MonBrightnessDown exec --no-startup-id sudo light -U 5 +bindsym XF86Search exec --no-startup-id suspend + # Autorun exec --no-startup-id feh --bg-scale ~/.config/i3/bg.jpg exec --no-startup-id xautorun diff --git a/kitty/kitty.conf b/kitty/kitty.conf index eca1926..509523f 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -1,10 +1,10 @@ include colors/base16/base16-gruvbox-dark-hard-256.conf -font_family Iosevka Term Medium +font_family Iosevka Term font_size 11 -bold_font Iosevka Term Heavy -italic_font Iosevka Term Medium Oblique -bold_italic_font Iosevka Term Heavy Oblique +bold_font Iosevka Term Medium +italic_font Iosevka Term Oblique +bold_italic_font Iosevka Term Medium Oblique adjust_line_height 95% tab_bar_style separator diff --git a/mutt/mailcap b/mutt/mailcap new file mode 100644 index 0000000..77da450 --- /dev/null +++ b/mutt/mailcap @@ -0,0 +1 @@ +text/html; elinks -dump ; copiousoutput; diff --git a/mutt/muttrc b/mutt/muttrc new file mode 100644 index 0000000..6a2a9dc --- /dev/null +++ b/mutt/muttrc @@ -0,0 +1,127 @@ +## General options +set header_cache = "~/.cache/mutt" +set message_cachedir = "~/.cache/mutt" +set imap_check_subscribed +set imap_keepalive = 300 +unset imap_passive +set mail_check = 60 +set mbox_type=Maildir + +# The default index_format is: +# '%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s' +# +# We replace the date field '%{%b %d}', giving: +set index_format='%4C %Z %<[y?%<[m?%<[d?%[%H:%M ]&%[%a %d]>&%[%b %d]>&%[%m/%y ]> %-15.15L (%?l?%4l&%4c?) %s' +# Test Date Range Format String Example +# -------------------------------------------- +# %[d Today %[%H:%M ] 12:34 +# %[m This month %[%a %d] Thu 12 +# %[y This year %[%b %d] Dec 10 +# — Older %[%m/%y ] 06/15 + +# Color if the attachment is autoviewed +color attach_headers brightgreen default "Autoview" +# Color only the brackets around the headers +color attach_headers brightyellow default "^\\[--" +color attach_headers brightyellow default "--]$" +# Color the mime type and the size +color attach_headers green default "Type: [a-z]+/[a-z0-9\-]+" +color attach_headers green default "Size: [0-9\.]+[KM]" +# Color GPGME signature checks +color attach_headers brightgreen default "Good signature from.*" +color attach_headers brightred default "Bad signature from.*" +color attach_headers brightred default "BAD signature from.*" +color attach_headers brightred default "Note: This key has expired!" +color attach_headers brightmagenta default "Problem signature from.*" +color attach_headers brightmagenta default "WARNING: This key is not certified with a trusted signature!" +color attach_headers brightmagenta default " There is no indication that the signature belongs to the owner." +color attach_headers brightmagenta default "can't handle these multiple signatures" +color attach_headers brightmagenta default "signature verification suppressed" +color attach_headers brightmagenta default "invalid node with packet of type" + +# Entire index line +color index white black '.*' +# Author name, %A %a %F %L %n +# Give the author column a dark grey background +color index_author default color234 '.*' +# Highlight a particular from (~f) +# color index_author brightyellow color234 '~fRay Charles' +# Message flags, %S %Z +# Highlight the flags for flagged (~F) emails +color index_flags default red '~F' +# Subject, %s +# Look for a particular subject (~s) +# color index_subject brightcyan default '~s\(closes #[0-9]+\)' +# Number of messages in a collapsed thread, %M +color index_collapsed default brightblue +# Date field +color index_date green default +# Message label, %y %Y +color index_label default brightgreen +# Message number, %C +color index_number red default +# Message size, %c %l +color index_size cyan default + +# The 'progress' feature provides clear visual feedback for +# slow tasks, such as indexing a large folder over the net. + +# Set the color of the progress bar +# White text on a red background +color progress white red + +# Limit view to current thread +bind index L limit-current-thread + +# The 'S' (skip-quoted) command scrolls the pager past the quoted text (usually +# indented with '> '. Setting 'skip_quoted_offset' leaves some lines of quoted +# text on screen for context. + +# Show three quoted lines before the reply +set skip_quoted_offset = 3 + +set new_mail_command="notify-send 'New e-mail' '%n new messages, %u unread.' &" + +## Keys +bind pager j next-line +bind pager k previous-line +bind attach,index,pager \CD next-page +bind attach,index,pager \CU previous-page +bind pager g top +bind pager G bottom +bind attach,index g first-entry +bind attach,index G last-entry +bind index,pager B sidebar-toggle-visible +bind index \Cg imap-fetch-mail + +bind index,pager \CK sidebar-prev +bind index,pager \CJ sidebar-next +bind index,pager \CO sidebar-open + +macro attach 'V' "cat >~/.cache/mutt/mail.html && qutebrowser file:///home/kressh/.cache/mutt/mail.html && rm ~/.cache/mutt/mail.html" +macro index 'c' '?^K=' + +# Etc +set mail_check = 30 +set move = no +set imap_keepalive = 900 +set sort = threads +set sort_browser = date +set sort_aux = reverse-last-date-received +set editor = "nvim" +set send_charset = "utf-8" + +set sidebar_visible = no +set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S" +set mail_check_stats + +set pager_index_lines = 10 + +set mailcap_path = ~/.config/mutt/mailcap +alternative_order text/plain text/html +auto_view text/html + +# GnuPG bootstrap +# source ~/.mutt/gpg.rc + +source ~/.config/mutt/mailboxes.muttrc