Xresources

~/.Xresources

Rina Kawakita 2018. 10. 14. 22:44
~/.Xresources
! vim:ft=cfg:foldmethod=marker
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! .Xresource
!!
!! rxvt-unicode (urxvt) --version: 9.22
!! XTerm(331)
!! rofi --version: 1.5.1-dirty (tags/1.5.1)
!! Save it as ~/.Xresource to use it.
!!
!! by nietz (last updated 2018.03.01)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! Base16 color scheme {{{
!#include </home/nietz/.termcolors/synthwave>
!#include </home/nietz/.termcolors/urban>
!#include </home/nietz/.termcolors/designr>
#include </home/nietz/.termcolors/aoa>
! }}}

! XFT Font Rendering {{{
Xft.dpi:                96
Xft.autohint:           false
Xft.lcdfilter:          lcddefault
Xft.hintstyle:          hintslight
Xft.hinting:            true
Xft.antialias:          true
Xft.rgba:               rgb
!Xft.rgba:              none
! }}}

! Cursor {{{
Xcursor.theme:                  RingO
Xcursor.size:                   32
! }}}

! Xterm {{{
! Allow sixel graphics. (Try: "convert -colors 16 foo.jpg sixel:-").
xterm*decTerminalID:            vt340

! Allow lsix to read the terminal window size (op #14)
xterm*allowWindowOps:           False
xterm*disallowedWindowOps:      1,2,3,4,5,6,7,8,9,11,13,18,19,20,21,GetSelection,SetSelection,SetWinLines,SetXprop

xterm*BorderWidth:              25
xterm*colorMode:true
xterm*transparent:true
xterm*shading:50
xterm*scrollBar:false
xterm*fade: 60
!xterm*font: 9x15
!xterm*font: 8x13
xterm*saveLines:4500
xterm*geometry:85x30
xterm*truetintingType:True
! }}}

! Urxvt Default Setting {{{
URxvt.termName:                 rxvt-unicode
URxvt.imLocale:                 en_US.UTF-8
!URxvt.imLocale:                 ko_KR.EUC-KR
URxvt.preeditType:              OnTheSpot,None

!-- Scrollback position
! do not scroll with output
URxvt*scrollTtyOutput:          false
! scroll in relation to buffer (with mouse scroll or Shift+Page Up)
URxvt*scrollWithBuffer:         true
! scroll back to the bottom on keypress
URxvt*scrollTtyKeypress:        true

!-- Scrollback buffer in secondary screen
URxvt.secondaryScreen:          1
URxvt.secondaryScroll:          0
! Need in AUR as rxvt-unicode-better-wheel-scrolling
!URxvt.secondaryWheel:          1

!-- Font declaration methods
!! test : $ printf '\e]710;%s\007' "xft:Terminus:pixelsize=12"

!URxvt.font:                    xft:dejavu sans mono:pixelsize=12,xft:NanumGothicCoding:pixelsize=14
!URxvt.boldFont:                xft:dejavu sans mono:bold:pixelsize=12,xft:NanumGothicCoding:bold:pixelsize=14
!URxvt*font:                    xft:Fantasque Sans Mono:pixelsize=14,xft:NanumGothicCoding:pixelsize=14
!URxvt*font:                    xft:inconsolata-g:pixelsize=12,xft:NanumGothicCoding:pixelsize=14
!URxvt*font:                    xft:mplus Nerd Font:pixelsize=12,xft:NanumGothicCoding:pixelsize=14

URxvt.font:                     xft:DejaVuSansMono Nerd Font Mono:style=Book:pixelsize=12,xft:NanumGothicCoding:pixelsize=14
URxvt.boldfont:                 xft:DejaVuSansMono Nerd Font Mono:style=Bold:pixelsize=12,xft:NanumGothicCoding:pixelsize=14
URxvt.italicFont:               xft:DejaVuSansMono Nerd Font Mono:style=Oblique:pixelsize=12,xft:NanumGothicCoding:pixelsize=14
URxvt.boldItalicFont:           xft:DejaVuSansMono Nerd Font Mono:style=Bold Oblique:pixelsize=12,xft:NanumGothicCoding:pixelsize=14

!URxvt.font:                     xft:Hack:pixelsize=13:antialias=false,xft:NanumGothicCoding:pixelsize=14:antialias=false,-*-unifont-*-*-*-*-*-*-*-*-*-*-*-*
!URxvt.boldFont:                 xft:Hack:bold:pixelsize=13:antialias=false,xft:NanumGothicCoding:bold:pixelsize=14:antialias=false,-*-unifont-*-*-*-*-*-*-*-*-*-*-*-*
!URxvt.italicFont:               xft:Hack:pixelsize=13:italic:antialias=false,xft:NanumGothicCoding:pixelsize=14:italic:antialias=false,-*-unifont-*-*-*-*-*-*-*-*-*-*-*-*
!URxvt.boldItalicFont:           xft:Hack:bold:italic:pixelsize=13:antialias=false,xft:NanumGothicCoding:bold:italic:pixelsize=14:antialias=false,-*-unifont-*-*-*-*-*-*-*-*-*-*-*-*

URxvt.depth:                    32
URxvt.skipBuiltinGlyphs:        false
URxvt.lineSpace:                0
URxvt.letterSpace:              -1
!URxvt.letterSpace:              0
URxvt.saveLines:                2000
URxvt.utmpInhibit:              true

URxvt.iso14755:                 false
URxvt.iso14755_52:              false

URxvt.geometry:                 65x17
URxvt.scrollBar:                false
URxvt.loginShell:               true
URxvt.internalBorder:           16
URxvt.pointerBlank:             true
URxvt.cursorBlink:              true
URxvt.cursorUnderline:          true
URxvt.boldMode:                 false
URxvt.borderLess:               false

URxvt.buffered:                 false
! if want "true transparent" inheritPixmap false, tintColor uncomment
!URxvt.inheritPixmap:            true
URxvt.inheritPixmap:            false
URxvt.transparent:              true
! URxvt*shading: 0 to 99 darkens, 101 to 200 lightens : 110/20
URxvt.shading:                  110
URxvt.fade:                     20
!URxvt.fadeColor:                #312e39
!URxvt.tintColor:                #312e39
URxvt.dynamicColors:            off

URxvt.urgentOnBell:             true
URxvt.visualBell:               false

URxvt.iconFile:                 /usr/share/icons/Clarity/scalable/apps/terminal.svg
! }}}

! Urxvt Extensions {{{
!-- Perl extensions : $ urxvtperl
!# https://linux.die.net/man/1/urxvt-extensions
!# https://github.com/muennich/urxvt-perls
URxvt.perl-ext-common:          default,matcher,keyboard-select,url-select,clipboard,confirm-paste,searchable-scrollback\<C-S\>,resize-font,bell-command
!URxvt.perl-ext-common:          default,matcher,keyboard-select,url-select,clipboard,vtwheel,confirm-paste,searchable-scrollback\<C-S\>
URxvt.keysym.M-Escape:          perl:keyboard-select:activate
URxvt.keysym.M-s:               perl:keyboard-select:search
URxvt.keysym.M-u:               perl:url-select:select_next
URxvt.keysym.M-C-c:             perl:clipboard:copy
URxvt.keysym.M-v:               perl:clipboard:paste
URxvt.keysym.M-C-v:             perl:clipboard:paste_escaped
URxvt.clipboard.autocopy:       true
URxvt.clipboard.copycmd:        xclip -i -selection clipboard
URxvt.clipboard.pastecmd:       xclip -o -selection clipboard
! Yankable URLs (no mouse) : extension matcher
URxvt.url-select.launcher:      /usr/bin/qutebrowser
! Clickable URLs : extension url-select
URxvt.url-launcher:             /usr/bin/qutebrowser
URxvt.url-select.underline:     true
URxvt.matcher.button:           1
URxvt.matcher.pattern.1:        \\bwww\\.[\\w-]+\\.[\\w./?&@#-]*[\\w/-]
URxvt.matcher.pattern.2:        \\B(/\\S+?):(\\d+)(?=:|$)
URxvt.keysym.C-Delete:          perl:matcher:last
URxvt.keysym.M-Delete:          perl:matcher:list
URxvt.matcher.rend.0:           Uline Bold fg7
!# keyboard-select
!Use Meta-Escape to activate selection mode, then use the following keys:
!h/j/k/l:    Move cursor left/down/up/right (also with arrow keys)
!g/G/0/^/$/H/M/L/f/F/;/,/w/W/b/B/e/E: More vi-like cursor movement keys
!'/'/?:      Start forward/backward search
!n/N:        Repeat last search, N: in reverse direction
!Ctrl-f/b:   Scroll down/up one screen
!Ctrl-d/u:   Scroll down/up half a screen
!v/V/Ctrl-v: Toggle normal/linewise/blockwise selection
!y/Return:   Copy selection to primary buffer, Return: quit afterwards
!Y:          Copy selected lines to primary buffer or cursor line and quit
!q/Escape:   Quit keyboard selection mode
!
!# url-select
!j/k:      Select next downward/upward URL (also with arrow keys)
!g/G:      Select first/last URL (also with home/end key)
!o/Return: Open selected URL in browser, Return: deactivate afterwards
!y:        Copy (yank) selected URL and deactivate selection mode
!q/Escape: Deactivate URL selection mode


!# resize-font : https://github.com/simmel/urxvt-resize-font
! And re-bind some keymappings (if you want, below are the defaults):
URxvt.keysym.C-minus:          resize-font:smaller
URxvt.keysym.C-plus:           resize-font:bigger
!URxvt.keysym.C-Down:            resize-font:smaller
!URxvt.keysym.C-Up:              resize-font:bigger
URxvt.keysym.C-equal:           resize-font:reset
URxvt.keysym.C-question:        resize-font:show
!URxvt.keysym.Control-Up:        \033[1;5A
!URxvt.keysym.Control-Down:      \033[1;5B
!URxvt.keysym.Control-Left:      \033[1;5D
!URxvt.keysym.Control-Right:     \033[1;5C 
!URxvt.keysym.Shift-Up:          command:\033]720;1\007
!URxvt.keysym.Shift-Down:        command:\033]721;1\007
!URxvt.resize-font.smaller:      C-Down
!URxvt.resize-font.bigger:       C-Up

!# Bell Command
URxvt.bell-command:             paplay /usr/share/sounds/freedesktop/stereo/complete.oga
!URxvt.bell-command:             notify-send "rxvt-unicode: bell!"
! }}}

! special colors {{{
*highlightColor:                #C88746
*highlightTextColor:            #18171C
*cursorColor:                   #39303B
*pointerColor:                  #615772
*pointerColor2:                 #C88746
*colorBD:                       #e7e7e7
*colorUL:                       #783e57
*underlineColor:                #28202B

!*background:                    #18171C
*background:                    #312e39
*foreground:                    #B6A4AA

! --- standard colors ---
! black
*color0:                        #18171C
*color8:                        #4f4b58

! red
*color1:                        #652F3B
*color9:                        #87404f

! green
*color2:                        #504E2A
*color10:                       #726F3C

! yellow
*color3:                        #A96E32
*color11:                       #C88746

! blue
*color4:                        #484054
*color12:                       #615772

! magenta
*color5:                        #582D3F
*color13:                       #783e57

! cyan
*color6:                        #39303B
*color14:                       #554757

! white
*color7:                        #A6A6A6
*color15:                       #BFBFBF
! }}}

! URxvt Colors {{{
URxvt*highlightColor:                #C88746
URxvt*highlightTextColor:            #18171C
URxvt*pointerColor:                  #615772
URxvt*pointerColor2:                 #C88746
URxvt*colorIT:                       wht 
URxvt*colorBD:                       wht 
URxvt*colorUL:                       mag
URxvt*underlineColor:                red

URxvt*background:  bg
!urxvt*background:  rgba:0000/0000/0000/0000
!urxvt*background:  rgba:0000/0000/0200/c800
URxvt.background:  rgba:3100/2e00/3900/ee00
!URxvt.background:  rgba:3100/2e00/3900/0000
!URxvt.background:  rgba:3100/2e00/3900/c800
!URxvt.background:  [97]#312e39
URxvt*foreground:  fg
!URxvt*cursorColor:  cyn
URxvt*cursorColor: mag 

URxvt*color0:      blk
URxvt*color8:      bblk
URxvt*color1:      red
URxvt*color9:      bred
URxvt*color2:      grn
URxvt*color10:     bgrn
URxvt*color3:      ylw
URxvt*color11:     bylw
URxvt*color4:      blu
URxvt*color12:     bblu
URxvt*color5:      mag
URxvt*color13:     bmag
URxvt*color6:      cyn
URxvt*color14:     bcyn
URxvt*color7:      wht
URxvt*color15:     bwht
! }}}

! xcalc {{{
xcalc*geometry: 210x275
xcalc.ti.bevel.background: #111111
xcalc.ti.bevel.screen.background: #000000
xcalc.ti.bevel.screen.DEG.background: #000000
xcalc.ti.bevel.screen.DEG.foreground: LightSeaGreen
xcalc.ti.bevel.screen.GRAD.background: #000000
xcalc.ti.bevel.screen.GRAD.foreground: LightSeaGreen
xcalc.ti.bevel.screen.RAD.background: #000000
xcalc.ti.bevel.screen.RAD.foreground: LightSeaGreen
xcalc.ti.bevel.screen.INV.background: #000000
xcalc.ti.bevel.screen.INV.foreground: Red
xcalc.ti.bevel.screen.LCD.background: #000000
xcalc.ti.bevel.screen.LCD.foreground: LightSeaGreen
xcalc.ti.bevel.screen.LCD.shadowWidth: 0
xcalc.ti.bevel.screen.M.background: #000000
xcalc.ti.bevel.screen.M.foreground: LightSeaGreen
xcalc.ti.bevel.screen.P.background: #000000
xcalc.ti.bevel.screen.P.foreground: Yellow
xcalc.ti.Command.foreground: White
xcalc.ti.Command.background: #777777
xcalc.ti.button3.label: SQRT
XCalc*ti.button3.font: -*-verdana-medium-r-normal--11-*-*-*-*-*-*-*
xcalc.ti.button5.background: Orange3
xcalc.ti.button19.background: #611161
xcalc.ti.button18.background: #611161
xcalc.ti.button20.background: #611111
xcalc.ti.button25.background: #722222
xcalc.ti.button30.background: #833333
xcalc.ti.button35.background: #944444
xcalc.ti.button40.background: #a55555
xcalc.ti.button22.background: #222262
xcalc.ti.button23.background: #222262
xcalc.ti.button24.background: #222272
xcalc.ti.button27.background: #333373
xcalc.ti.button28.background: #333373
xcalc.ti.button29.background: #333373
xcalc.ti.button32.background: #444484
xcalc.ti.button33.background: #444484
xcalc.ti.button34.background: #444484
xcalc.ti.button37.background: #555595
xcalc.ti.button38.background: #555595
xcalc.ti.button39.background: #555595
XCalc*Cursor:                 hand2
XCalc*ShapeStyle:             rectangle
XCalc*Font: -*-verdana-medium-r-normal--11-*-*-*-*-*-*-*
XCalc*bevel.screen.LCD.Font: -*-verdana-bold-r-normal--12-*-*-*-*-*-*-*
! }}}

! Rofi theme {{{
! https://davedavenport.github.io/rofi/
! https://davedavenport.github.io/rofi/manpage.html
! https://github.com/DaveDavenport/rofi/wiki/rofi-manpage
rofi.color-enabled  : true
rofi.bw             : 8
rofi.font           : Hack Bold 12
rofi.eh             : 1
rofi.line-margin    : 3
rofi.separator-style: solid
rofi.hide-scrollbar : false
rofi.scrollbar-width: 16
rofi.fake-transparency:  true

!! Layout
rofi.lines:             12
rofi.column:            2
rofi.width:             40
rofi.location:          0
rofi.fixed-num-lines:   true
rofi.padding:           32
rofi.fullscreen:        false
rofi.sidebar-mode:      true
rofi.lazy-filter-limit: 5000
rofi.show-icons:        true

rofi.matching       : normal

!! THEMING
! Synthwave color
!                    'bg',    'border','separator'
rofi.color-window   : #312e39, #312e39, #c0a79a
! State:             'bg',    'fg',    'bgalt', 'hlbg',  'hlfg'
rofi.color-normal   : #312e39, #c0a79a, #312e39, #783e57, #ffffff
rofi.color-urgent   : #33303b, #c0a79a, #33303b, #615772, #ffffff
rofi.color-active   : #783e57, #c0a79a, #783e57, #615772, #ffffff

rofi.modi: window,run,ssh
rofi.key-run: SuperL+p

rofi.terminal:          urxvt
!rofi.run-shell-command: /usr/bin/termite -e '{cmd}'
rofi.ssh-client:        ssh
!rofi.ssh-command:       {terminal} -e "{ssh-client} {host}"
!
!rofi.theme: ~/.cache/wal/colors-rofi-dark.rasi
! }}}

! binge theme {{{
! https://gist.github.com/phleagol/abf1247b242e628722381719ff9b6736
binge.font:            xft:Terminus-16
binge.italicFont:      xft:Terminus-16
binge.boldFont:        xft:Terminus-bold-16
binge.boldItalicFont:  xft:Terminus-bold-16

binge.internalBorder:  20
binge.geometry:        95x12
binge.letterSpace:     2
binge.lineSpace:       4

!  background color everywhere
!binge.background:           gray9

!!  0 black, 1 red, 2 green, 3 yellow, 4 blue, 5 magenta, 6 cyan, 7 white

! black - background color
!binge.color0:               gray9
!binge.color8:               gray9
binge.color0:               rgba:3100/2e00/3900/ee00
binge.color8:               rgba:3100/2e00/3900/ee00


! red   - color of labels in statusbar
!binge.color1:               #E6A52E
!binge.color9:               #E6A52E
binge.color1:               ylw
binge.color9:               ylw

! green - torrent status == stopped
!binge.color2:               gray50
!binge.color10:              gray50
binge.color2:               grn
binge.color10:              grn

! blue  - torrent status == seeding
!binge.color4:               #569CBF
!binge.color12:              #569CBF
binge.color4:               blu
binge.color12:              blu

! cyan  - torrent status == downloading
!binge.color6:               #AADAF2
!binge.color14:              #AADAF2
binge.color6:               cyn
binge.color14:              cyn

! yellow - text values in statusbar
!binge.color3:               gray85
!binge.color11:              gray85
binge.color3:               wht 
binge.color11:              wht

! magenta - vline and hline dividers
!binge.color5:               gray40
!binge.color13:              gray40
binge.color5:               blu
binge.color13:              blu
! }}}

~/.termcolors/aoa

! -- Title:     aoa
! -- Author:    originally based on dkegs urban
! -- Created:   2016
! -- by nietz

#define bg      [97]#312e39
!#define bg     #312e39
#define blk     #33303b
#define fg      #c0a79a
#define bblk    #4f4b58
#define red     #87404f
#define bred    #87404f
#define grn     #71949a
#define bgrn    #71949a
#define ylw     #ae835a
#define bylw    #ae835a
#define blu     #615772
#define bblu    #615772
#define mag     #783e57
#define bmag    #783e57
#define cyn     #554757
#define bcyn    #554757
#define wht     #c0a79a
#define bwht    #c0a79a