ArchLabs Linux

Could you share your .Xresources file?

I’m trying to improve the Azote .Xresources toolbox. Since there seem to exist many ways to define colours, I’m afraid I might have not taken into account all of them. Especially I’d like to make sure if the code does not crash on some possible .Xresources content. It would be great if I could see your customized examples.

Here is mine:

! general settings

URxvt*termName:         rxvt-256color
URxvt*iconFile: /usr/share/icons/Papirus/64x64/apps/terminal.svg

!#include </home/dobbie/.xrdb/mono>


URxvt.intensityStyles:  true
URxvt.font:                       xft:SF Mono:size=5:antialias=true,\
                                  xft:Noto Sans Devanagari,\
                                  xft:Font Awesome 5 Free,\
                                  xft:Font Awesome 5 Free Solid,\
                                  xft:Font Awesome 5 Brands
URxvt*letterSpace: 0

URxvt.saveLines:        8192
URxvt.geometry:         125x35
URxvt*scrollTtyOutput:    false
URxvt*scrollWithBuffer:   true
URxvt*scrollTtyKeypress:  true
URxvt.scrollBar:          false
URxvt.internalBorder:     30
URxvt.cursorBlink:        false
URxvt.cursorUnderline:    true
URxvt*skipBuiltinGlyphs:    false

URxvt.clipboard.autocopy: true
URxvt.keysym.M-c: perl:clipboard:copy
URxvt.keysym.M-v: perl:clipboard:paste

URxvt.perl-ext-common:  resize-font,ibeamcursor,leavecursor,clipboard
URxvt.iso14755: false
URxvt.iso14755_52: false
URxvt.keysym.C-minus:     resize-font:smaller
URxvt.keysym.C-equal:     resize-font:bigger
URxvt.keysym.C-0:      	  resize-font:reset
URxvt.keysym.C-question:  resize-font:show

! appearance
!URxvt*depth:            32
!URxvt*background:      rgba:0000/0000/0000/AAAA
!URxvt*background:      [90]#1F2326
!URxvt*background:       [100]#eceff4
!URxvt*foreground: 		                #c0b18b
!URxvt.underlineColor:   #4682B4
!URxvt.highlightColor:   #4682B4
!URxvt.throughColor:     Blue
!URxvt*cursorColor:      131920
!URxvt*cursorColor2:     Black
!URxvt*scrollBar:        false
!URxvt*scrollBar_right:  false
!URxvt*internalBorder:   0
!URxvt*externalBorder:   0

!URxvt.colorIT:      #87af5f
!URxvt.colorBD:      #d7d7d7
!URxvt.colorUL:      #87afd7

! special
*.foreground:   #9b9081
*.background:   #191919
*.cursorColor:  #9b9081

! black
*.color0:       #353535
*.color8:       #5f5f5f

! red
*.color1:       #744b40
*.color9:       #785850

! green
*.color2:       #6d6137
*.color10:      #6f6749

! yellow
*.color3:       #765636
*.color11:      #776049

! blue
*.color4:       #61564b
*.color12:      #696057

! magenta
*.color5:       #6b4a49
*.color13:      #6f5a59

! cyan
*.color6:       #435861
*.color14:      #525f66

! white
*.color7:       #b3b3b3
*.color15:      #cdcdcd


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

! ------------------------------------------------------------------------------
! ROFI Details
! ------------------------------------------------------------------------------
!rofi.modi: drun,window

!rofi.fullscreen: true
!rofi.color-enabled: true
!rofi.color-window: argb:00141414, #00141414,         #abb2bf
!rofi.color-normal: argb:f2141414, #c0cadf, argb:f2141414, argb:f2141414, #61afef
!rofi.color-urgent: argb:00141414, #cc6666, argb:e54b5160, argb:00141414, #61afef
!rofi.color-active: argb:f2141414, #65acff, argb:f2141414, argb:00141414, #61afef
!rofi.font: San Francisco Display Regular 8
!rofi.eh: 1
!rofi.separator-style: line
!rofi.sidebar-mode: true
!rofi.hide-scrollbar: true
!rofi.lines: 15
rofi.width: 25
!rofi.line-margin: 15
!rofi.bw: 2
!rofi.auto-select: false
!rofi.fuzzy: true
!rofi.scroll-method: 1
!rofi.window-format: {t}
!rofi.columns: 2

rofi.fullscreen: false
rofi.separator-style: dash
rofi.hide-scrollbar: true
rofi.padding: 50
! rofi.eh: 1
rofi.bw: 0
rofi.lines: 5
! rofi.line-margin: 15
rofi.line-padding: 10
!rofi.location: 4
rofi.font: SF Pro Display Regular 7
! rofi.show-icons: true
! rofi.levenshtein-sort: true
! rofi.sidebar-mode: true
! rofi.auto-select: true
rofi.columns: 1

! Window		'background'	'border'	'separator'
rofi.color-window:	#E6141414,	#C6C6C6,	#cdcdcd

! State			'bg',		'fg',		'altbg',	'hlbg',		'hlfg'
rofi.color-normal:	#00000000,	#a4a4a4,	#00000000,	#00000000,	#A56B5B
rofi.color-active:	#00000000,	#ffdfd6,	#00000000,	#00000000,	#ffdfd6
rofi.color-urgent:	#00000000,	#ffdfd6,	#00000000,	#00000000,	#ffdfd6

!--------------------------------------------
! Custom DPI
!--------------------------------------------
!Xft.dpi: 144
Xft.dpi: 161
Xft.autohint: 0
Xft.lcdfilter:  lcddefault
Xft.hintstyle:  hintslight
Xft.hinting: 	true
Xft.antialias: 1
Xft.rgba: rgb
rofi.dpi: 192

Xcursor.size: 32

1 Like

Found 25 definitions and didn’t crash. :smiley: Thanks! @Dobbie03

1 Like

Happy to hear that!

1 Like
! #include ".config/urxvt/themes/solarized-dark"
! #include ".config/urxvt/themes/gruvbox"
#include ".config/urxvt/themes/default"
#include ".config/urxvt/colors"
#include ".config/urxvt/urxvt"
#include ".config/xterm/xterm"

Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.autohint: true
Xft.hintstyle: hintfull
Xft.lcdfilter: lcdfilter

It was getting messy so I choose to separate things.

1 Like

This is a kind of information, too: no colour definitions inside, all included from external files. :slight_smile:

Yes my friend but I’m pretty sure not too much people configure like this, for example /.config/urxvt/colors

*.color0:        blk
*.color1:        red
*.color2:        grn
*.color3:        ylw
*.color4:        blu
*.color5:        mag
*.color6:        cyn
*.color7:        wht
*.color8:        blk2
*.color9:        red2
*.color10:       grn2
*.color11:       ylw2
*.color12:       blu2
*.color13:       mag2
*.color14:       cyn2
*.color15:       wht2

and /.config/urxvt/themes/default

! default
#define fg        #CCA397
#define bg        #1A2833
#define curs      #997A72

! black
#define blk       #1A2833
#define blk2      #6C7480
! red
#define red       #966791
#define red2      #5A70B3
! green
#define grn       #345066
#define grn2      #5CB7A7
! yellow
#define ylw       #CCA397
#define ylw2      #D9ADA1
! blue
#define blu       #4E7899
#define blu2      #4E7899
! magenta
#define mag       #5B8CB3
#define mag2      #5B8CB3
! cyan
#define cyn       #68A0CC
#define cyn2      #00EFFF
! white
#define wht       #D9ADA1
#define wht2      #75B4E6

So you can change themes easy all include terminal (urxvt & xterm) and bar (polybar, blocks…) if you refer to .Xresources file in your configs of course, reload every thing with a script and that’s it. :wink:

I do something similar but with xdg.

❯ cat .Xresources
Xft.dpi: 220

2 Likes
! $OpenBSD: dot.Xdefaults,v 1.3 2014/07/10 10:22:59 jasper Exp $
XTerm*loginShell:true
XTerm*vt100.allowBoldFonts: false
XTerm*vt100.cursorUnderLine: true
XTerm*vt100.cursorColor: #00ff00
XTerm*vt100.cursorBlink: true
XTerm*vt100.faceName: mono:bold:size=10
XTerm*vt100.scrollBar: false

XTerm*vt100.foreground: #bfbfbf
XTerm*vt100.background: #111111
XTerm*vt100.color0      #000000
XTerm*vt100.color8:     #808080
XTerm*vt100.color1:     #705050
XTerm*vt100.color9:     #dca3a3
XTerm*vt100.color2:     #60b48a
XTerm*vt100.color10:    #c3bf9f
XTerm*vt100.color3:     #dfaf8f
XTerm*vt100.color11:    #f0dfaf
XTerm*vt100.color4:     #506070
XTerm*vt100.color12:    #94bff3
XTerm*vt100.color5:     #dc8cc3
XTerm*vt100.color13:    #ec93d3
XTerm*vt100.color6:             #8cd0d3
XTerm*vt100.color14:            #93e0e3
XTerm*vt100.color7:             #dcdccc
XTerm*vt100.color15:            #eeeeee
1 Like