dracula / xresources

🧛🏻‍♂️ Dark theme for Xresources (xterm, (u)rxvt, and other X11 applications)
https://draculatheme.com/xresources
MIT License
90 stars 19 forks source link

Install instruction might not work if `.Xresources` contains `*customization: -color` #8

Open phil-blain opened 2 years ago

phil-blain commented 2 years ago

If your .Xresources contains line

 *customization: -color

then X11 apps will load their default settings from /etc/X11/app-defaults/$APP-color instead of /etc/X11/app-defaults/$APP(at least that's where the defaults are on Ubuntu).

On Ubuntu also, /etc/X11/app-defaults/XTerm-color contains the following lines:

! These are the 8 ANSI colors and their bright equivalents.  Depending on
! other resource settings, xterm may use the bright colors when displaying
! bold text (see the boldColors resource).
*VT100*color0: black
*VT100*color1: red3
*VT100*color2: green3
*VT100*color3: yellow3
*VT100*color4: blue2
*VT100*color5: magenta3
*VT100*color6: cyan3
*VT100*color7: gray90
*VT100*color8: gray50
*VT100*color9: red
*VT100*color10: green
*VT100*color11: yellow
*VT100*color12: rgb:5c/5c/ff
*VT100*color13: magenta
*VT100*color14: cyan
*VT100*color15: white

Xterm favors these Xterm.VT100.color[0-9]* settings over the generic *.color[0-9]* settings, so the Dracula settings set in .Xresources as per the installation instructions do not work.

Suggestion: also set the VT100 settings in the .Xresources file, like this:

! Dracula Xresources palette
! For all apps
*.foreground: #F8F8F2
*.background: #282A36
*.color0:     #000000
*.color8:     #4D4D4D
*.color1:     #FF5555
*.color9:     #FF6E67
*.color2:     #50FA7B
*.color10:    #5AF78E
*.color3:     #F1FA8C
*.color11:    #F4F99D
*.color4:     #BD93F9
*.color12:    #CAA9FA
*.color5:     #FF79C6
*.color13:    #FF92D0
*.color6:     #8BE9FD
*.color14:    #9AEDFE
*.color7:     #BFBFBF
*.color15:    #E6E6E6
! For XTerm and friends
*.VT100.foreground: #F8F8F2
*.VT100.background: #282A36
*.VT100.color0:     #000000
*.VT100.color8:     #4D4D4D
*.VT100.color1:     #FF5555
*.VT100.color9:     #FF6E67
*.VT100.color2:     #50FA7B
*.VT100.color10:    #5AF78E
*.VT100.color3:     #F1FA8C
*.VT100.color11:    #F4F99D
*.VT100.color4:     #BD93F9
*.VT100.color12:    #CAA9FA
*.VT100.color5:     #FF79C6
*.VT100.color13:    #FF92D0
*.VT100.color6:     #8BE9FD
*.VT100.color14:    #9AEDFE
*.VT100.color7:     #BFBFBF
*.VT100.color15:    #E6E6E6
bakrtech commented 1 year ago

Hey i made these changes but it is not working