Xresources
Table of Contents
Wayland
It was recommended to assign Xresources from ~/.Xdefaults
for Wayland. I just symlinked ~/.Xdefaults
to my ~/.Xresources
. Only issue I've run into is Vim complains it doesn't have the CBack color. Something to look into later, TODO.
Listing 1: ~/.Xresources
Xcursor.size: 16 Xcursor.theme: DMZ-White !clickable urls *VT100*translations: #override Meta <Btn1Up>: exec-formatted("x-www-browser '%t'", PRIMARY) XTerm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48 !XTerm*faceName: DejaVu Sans Mono:style=Regular:size=8:antialias=true !XTerm*faceName: Fira Code:style=Regular:size=8:antialias=true XTerm*faceName: Hack:style=Regular:size=8:antialias=true XTerm*scrollBar: true XTerm*rightScrollBar: true XTerm*scrollkey: true XTerm*scrollTtyOutput: false XTerm*metaSendsEscape: true XTerm*saveLines: 5000 !URxvt*font: xft:Fira Code:style=Regular:size=8:antialias=true, xft:DejaVu Sans Mono:style=Book:size=8:antialias=true URxvt*font: xft:Hack:style=Regular:size=8:antialias=true URxvt*fading: 10 URxvt*scrollBar: true URxvt*scrollBar_right: true URxvt*scrollTtyKeypress: true URxvt*scrollTtyOutput: false URxvt*meta8: false URxvt*saveLines: 5000 !adjust font spacing in URxvt !URxvt.letterSpace: -1 URxvt.perl-ext-common: new-window,config-reload URxvt.keysym.C-grave: perl:new-window URxvt.urlLauncher: /usr/bin/xdg-open !runtime resizeable fonts URxvt.keysym.C-1: command:\033]710;xft:Hack:style=Regular:size=7:antialias=true\007 URxvt.keysym.C-2: command:\033]710;xft:Hack:style=Regular:size=10:antialias=true\007 URxvt.keysym.C-3: command:\033]710;xft:Hack:style=Regular:size=12:antialias=true\007 URxvt.keysym.C-4: command:\033]710;xft:Hack:style=Regular:size=14:antialias=true\007 URxvt.keysym.C-5: command:\033]710;xft:Hack:style=Regular:size=16:antialias=true\007 URxvt.keysym.C-6: command:\033]710;xft:Hack:style=Regular:size=18:antialias=true\007 URxvt.keysym.C-7: command:\033]710;xft:Hack:style=Regular:size=20:antialias=true\007 URxvt.keysym.C-8: command:\033]710;xft:Hack:style=Regular:size=26:antialias=true\007 URxvt.keysym.C-9: command:\033]710;xft:Hack:style=Regular:size=30:antialias=true\007 URxvt.keysym.C-0: command:\033]710;xft:Hack:style=Regular:size=8:antialias=true\007 ! my monokai #define Cback #1B1D1E #define Cfore #E8E8E2 #define Ccursor #E8E8E2 #define Hlight #E8E8E2 #define C0 #333333 #define C1 #C4265E #define C2 #2AD043 #define C3 #FA9429 #define C4 #6A7EC8 #define C5 #8C6BC8 #define C6 #56ADBC #define C7 #E3E3DD #define C8 #666666 #define C9 #F92672 #define C10 #63DE5D #define C11 #FFBA68 #define C12 #819AFF #define C13 #AE81FF #define C14 #66D9EF #define C15 #E8E8E2 !! Colors redone for all apps *background: Cback *foreground: Cfore *fading: 40 *fadeColor: C8 *cursorColor: Ccursor *highlight: Hlight *color0: C0 *color1: C1 *color2: C2 *color3: C3 *color4: C4 *color5: C5 *color6: C6 *color7: C7 *color8: C8 *color9: C9 *color10: C10 *color11: C11 *color12: C12 *color13: C13 *color14: C14 *color15: C15 !! XTerm ignores *settings, define it specifically XTerm*background: Cback XTerm*foreground: Cfore XTerm*fading: 40 XTerm*fadeColor: C8 XTerm*cursorColor: Ccursor XTerm*highlight: Hlight XTerm*color0: C0 XTerm*color1: C1 XTerm*color2: C2 XTerm*color3: C3 XTerm*color4: C4 XTerm*color5: C5 XTerm*color6: C6 XTerm*color7: C7 XTerm*color8: C8 XTerm*color9: C9 XTerm*color10: C10 XTerm*color11: C11 XTerm*color12: C12 XTerm*color13: C13 XTerm*color14: C14 XTerm*color15: C15 ! xscreensaver --------------------------------------------------------------- xscreensaver.Dialog.headingFont: -*-clean-bold-r-*-*-12-*-*-*-*-*-*-* xscreensaver.Dialog.bodyFont: -*-clean-medium-r-*-*-12-*-*-*-*-*-*-* xscreensaver.Dialog.labelFont: -*-clean-medium-r-*-*-12-*-*-*-*-*-*-* xscreensaver.Dialog.unameFont: -*-clean-medium-r-*-*-12-*-*-*-*-*-*-* xscreensaver.Dialog.buttonFont: -*-clean-bold-r-*-*-12-*-*-*-*-*-*-* xscreensaver.Dialog.dateFont: -*-clean-medium-r-*-*-12-*-*-*-*-*-*-* xscreensaver.passwd.passwdFont: -*-clean-bold-r-*-*-12-*-*-*-*-*-*-* xscreensaver.Dialog.foreground: Cfore xscreensaver.Dialog.background: Cback xscreensaver.Dialog.topShadowColor: C8 xscreensaver.Dialog.bottomShadowColor: C8 xscreensaver.Dialog.Button.foreground: Cfore xscreensaver.Dialog.*.background: Cback xscreensaver.Dialog.text.foreground: Cfore xscreensaver.Dialog.text.background: Cback xscreensaver.Dialog.internalBorderWidth: 1 xscreensaver.Dialog.borderWidth: 1 xscreensaver.Dialog.shadowThickness: 1 xscreensaver.passwd.thermometer.foreground: C5 xscreensaver.passwd.thermometer.background: Cback xscreensaver.passwd.thermometer.width: 4 xscreensaver.dateFormat: %I:%M:%S %Y-%m-%d xscreensaver*passwd.asterisks: false ! Version 6.0+ xscreensaver-auth.?.Dialog.headingFont: -*-clean-bold-r-*-*-12-*-*-*-*-*-*-* xscreensaver-auth.?.Dialog.bodyFont: -*-clean-medium-r-*-*-12-*-*-*-*-*-*-* xscreensaver-auth.?.Dialog.labelFont: -*-clean-medium-r-*-*-12-*-*-*-*-*-*-* xscreensaver-auth.?.Dialog.unameFont: -*-clean-medium-r-*-*-12-*-*-*-*-*-*-* xscreensaver-auth.?.Dialog.buttonFont: -*-clean-bold-r-*-*-12-*-*-*-*-*-*-* xscreensaver-auth.?.Dialog.dateFont: -*-clean-medium-r-*-*-12-*-*-*-*-*-*-* xscreensaver-auth.?.passwd.passwdFont: -*-clean-bold-r-*-*-12-*-*-*-*-*-*-* xscreensaver-auth.?.Dialog.foreground: Cfore xscreensaver-auth.?.Dialog.background: Cback xscreensaver-auth.?.Dialog.topShadowColor: C8 xscreensaver-auth.?.Dialog.bottomShadowColor: C8 xscreensaver-auth.?.Dialog.Button.foreground: Cfore xscreensaver-auth.?.Dialog.*.background: Cback xscreensaver-auth.?.Dialog.text.foreground: Cfore xscreensaver-auth.?.Dialog.text.background: Cback xscreensaver-auth.?.Dialog.internalBorderWidth: 1 xscreensaver-auth.?.Dialog.borderWidth: 1 xscreensaver-auth.?.Dialog.shadowThickness: 1 xscreensaver-auth.?.passwd.thermometer.foreground: C5 xscreensaver-auth.?.passwd.thermometer.background: Cback xscreensaver-auth.?.passwd.thermometer.width: 4 xscreensaver-auth.?.dateFormat: %I:%M:%S %Y-%m-%d xscreensaver-auth.?.passwd.asterisks: false ! Machine specific config ! final line to override normal settings #include ".Xresources.local"
Machine specific settings (using yadm alternates)
Listing 2: ~/.Xresources.local##o.Linux,h.delta
! Different font sizes for high dpi screen XTerm*faceName: Hack:style=Regular:size=12:antialias=true URxvt*font: xft:Hack:style=Regular:size=12:antialias=true URxvt.keysym.C-0: command:\033]710;xft:Hack:style=Regular:size=12:antialias=true\007
Listing 3: ~/.Xresources.local##o.Linux,h.freedom
! Different font sizes for high dpi screen XTerm*faceName: Hack:style=Regular:size=9:antialias=true URxvt*font: xft:Hack:style=Regular:size=9:antialias=true URxvt.keysym.C-0: command:\033]710;xft:Hack:style=Regular:size=9:antialias=true\007