You are not logged in.

#26 2015-11-12 06:34:02

fog
Member
From: Athens, Greece
Registered: 2015-10-28
Posts: 112
Website

Re: .Xresources / .Xdefaults Thread

nore wrote:

I'm a fan of Rhowaldt's palleter-script, which extracts a palette from an image by Imagemagick. It can be found at least in fog's blog:
https://irenegr.wordpress.com/2013/11/0 … -you-like/
(It's in greek but you can easily spot and copypaste the code.)

Thanks @nore smile
The original script is here. Mine is a customized version for terminator. My terminal choise then and now.
I like to play with terminal.sexy too. You can import color schemes in various formats, export them and try a number of presets in scheme browser (some of them are from gutterslod and dkeg).

screenshot2015-11-1208-05-28.png


Toshiba Satellite P50-C-17C (i7-6700HQ/12GB/1TB + 128GB/GeForce GTX 950M/FHD)
Where there's a shell, there is a way.
github || photos || blog || dArt

Offline

#27 2015-11-12 12:06:09

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: .Xresources / .Xdefaults Thread

@gako, I just started learning Bash.That's why I couldn't fathom some of the cryptic sign in this script. However, when run this script, I get an error, saying:

line 7: unexpected EOF while looking for matching `"'
line 10: syntax error: unexpected end of file

Last edited by tranjeeshan (2015-11-12 12:06:43)


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#28 2015-11-12 14:41:16

gako
Member
Registered: 2015-10-02
Posts: 241

Re: .Xresources / .Xdefaults Thread

loll sorry I did a real bad copy paste job from nano. I edited the post and that should work now.
It lists different filetypes/devices, etc. in the current xcolor scheme, pretty useful imo.

URxvt.background:   #36352e
URxvt.foreground:   #eae5ca
URxvt.cursorColor:  #eae5ca

! black
URxvt.color0:       #414037
URxvt.color8:       #515044

! red
URxvt.color1:       #605f50
URxvt.color9:       #737260

! green
URxvt.color2:       #807e6a
URxvt.color10:      #908e77

! yellow
URxvt.color3:       #a09e84
URxvt.color11:      #b8b597

! blue
URxvt.color4:       #c5c1a1
URxvt.color12:      #cecaa8

! magenta
URxvt.color5:       #d5d1ae
URxvt.color13:      #dedab6

! cyan
URxvt.color6:       #e5e1bc
URxvt.color14:      #efeac4

! white
URxvt.color7:       #f6f1c9
URxvt.color15:      #fef9cf

Offline

#29 2015-11-12 15:25:41

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: .Xresources / .Xdefaults Thread

Looks great, @gako!


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#30 2015-12-22 19:37:08

gako
Member
Registered: 2015-10-02
Posts: 241

Re: .Xresources / .Xdefaults Thread

If htop can look good in all of it's colors I feel satisfied
2015-12-22-142942_1332x588_scrot.th.png

! railroad URxvt

URxvt.foreground:   #dddcbb
URxvt.background:   #1b1911
URxvt.cursorColor:  #dddcbb

! black
URxvt.color0:       #8c4325
URxvt.color8:       #8c3e1e
! red
URxvt.color1:       #8c7a25
URxvt.color9:       #8c791e
! green
URxvt.color2:       #8c6525
URxvt.color10:      #8c621d
! yellow
URxvt.color3:       #c4ae5b
URxvt.color11:      #c4ad54
! blue
URxvt.color4:       #45402c
URxvt.color12:      #977856
! magenta
URxvt.color5:       #c4935b
URxvt.color13:      #c4935b
! cyan
URxvt.color6:       #b9b57a
URxvt.color14:      #dbab60
! white
URxvt.color7:       #c6c5a7
URxvt.color15:      #dddcbb

! railroad xcolor
*foreground:   #dddcbb
*background:   #1b1911
*cursorColor:  #dddcbb

! black
*color0:       #8c4325
*color8:       #8c3e1e
! red
*color1:       #8c7a25
*color9:       #8c791e
! green
*color2:       #8c6525
*color10:      #8c621d
! yellow
*color3:       #c4ae5b
*color11:      #c4ad54
! blue
*color4:       #45402c
*color12:      #977856
! magenta
*color5:       #c4935b
*color13:      #c4935b
! cyan
*color6:       #b9b57a
*color14:      #dbab60
! white
*color7:       #c6c5a7
*color15:      #dddcbb

Offline

#31 2015-12-22 22:00:14

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,057

Re: .Xresources / .Xdefaults Thread

^ That's purdy tongue

Offline

#32 2015-12-25 17:50:04

Nili
Member
From: $HOME/♫♪
Registered: 2015-09-30
Posts: 1,020
Website

Re: .Xresources / .Xdefaults Thread

I'm still using franksn colors, so thanks to him for sharing, so i'm doing here too...
713.png

URxvt*highlightColor:           #9a875f
URxvt*highlightTextColor:       #917154
URxvt*cursorColor:              #9c7650
URxvt*pointerColor:             #515e6f
URxvt*pointerColor2:            #9c7650
URxvt*colorBD:                  #9c7650
URxvt*colorUL:                  #585858
URxvt*underlineColor:           #566776

*background: #141314
*foreground: #8A745C

!black
*color0:    #141314
*color8:    #46423b

!red
*color1:    #70473a
*color9:    #916255

!green
*color2:    #534d35
*color10:   #858167

!yellow
*color3:    #9c7650
!*color3:    #9c7650
*color11:   #ad8650

!blue
*color4:    #473e38
*color12:   #75715e

!magenta
*color5:    #543b3b
*color13:   #6b5d51

!cyan
*color6:    #5F4444
*color14:   #585858

!white
*color7:    #9a875f
*color15:   #917154

Devuan // CWM
Fedora // GNOME

Offline

#33 2015-12-28 23:38:29

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: .Xresources / .Xdefaults Thread

Perhaps a silly question, but if I don't have the ~./xresources file can I edit the /etc/X11/Xresources/x11-common file and have it perform the same function as the more user specific ~./xresources?


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#34 2015-12-28 23:51:41

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: .Xresources / .Xdefaults Thread

Horizon_Brave wrote:

if I don't have the ~./xresources file can I edit the /etc/X11/Xresources/x11-common file and have it perform the same function as the more user specific ~./xresources?

Try it and see.

To view the currently loaded resources, use:

xrdb -query -all

“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#35 2015-12-29 01:07:48

ohnonot
...again
Registered: 2015-09-29
Posts: 5,568

Re: .Xresources / .Xdefaults Thread

Horizonbrave, why don't you just create ~/.Xresources (notice the capital X)?


Give to COVAX! Here or here. (explanation)
My Repos: notabug | framagit

Offline

#36 2015-12-30 06:18:57

gako
Member
Registered: 2015-10-02
Posts: 241

Re: .Xresources / .Xdefaults Thread

Horizon_Brave wrote:

Perhaps a silly question, but if I don't have the ~./xresources file can I edit the /etc/X11/Xresources/x11-common file and have it perform the same function as the more user specific ~./xresources?

It looks like /etc/Xsession sets SYSRESOURCES=/etc/X11/Xresources
which is read by /etc/X11/Xsession.d/30x11-common_xresources which tells xrdb to load
anything in /etc/X11/Xresources/ directory so you don't have to edit  /etc/X11/Xresources/x11-common
but simply place resource file in that directory and it'll be read. (making sure of course to remove any xrdb * in ~/.xsession | ~/.xinitrc)
This doesn't work for me if it's named as a hidden ,Xresources but you could name it Xresources or pizza
You can name them whatever it seems.

Head_on_a_Stick wrote:
xrdb -query -all

Well look at that and all this time I've been using appres command.
Thx, I wonder how different the two are.

Last edited by gako (2015-12-30 06:21:03)

Offline

#37 2015-12-30 11:21:04

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: .Xresources / .Xdefaults Thread

gako wrote:

Well look at that and all this time I've been using appres command.
Thx, I wonder how different the two are.

Well, appres(1) will show the resources seen by *any* application so it will also show, for example, ~/.Xdefaults settings as well.

On my system, I have ~/.Xdefaults but no ~/.Xresources (urxvt parses the former automatically so I don't need `xrdb -merge` in my startup script) so i get no output from `xrdb`:

$ xrdb -query -all
$ appres
*color5:	#dc8cc3
*color1:	#705050
*color13:	#ec93d3
*color9:	#dca3a3
*color6:	#8cd0d3
*color2:	#60b48a
*color14:	#93e0e3
*foreground:	#bfbfbf
*color10:	#c3bf9f
*color3:	#dfaf8f
*background:	#000000
*color7:	#dcdccc
*color11:	#f0dfaf
*cursorColor:	#00ff00
*color15:	#eeeeee
*color4:	#506070
*color0:	#000000
*color12:	#94bff3
*color8:	#808080

I didn't know about appres(1) -- thanks!
smile

EDIT: And here's the whole set, what a great command:

$ appres URxvt
URxvt.matcher.button:	3
URxvt.font:	-*-blockzone-medium-r-*-*-*-*-*-*-c-0-iso10646-*
URxvt.colorUL:	#ffffff
URxvt.skipBuiltinGlyphs:	true
URxvt.boldFont:	-*-blockzone-medium-r-*-*-*-*-*-*-c-0-iso10646-*
URxvt.cursorUnderline:	true
URxvt.perl-ext-common:	default,matcher
URxvt.scrollBar:	false
URxvt.saveLines:	65535
URxvt.imLocale:	en_GB.UTF-8
URxvt.cursorBlink:	true
URxvt.url-launcher:	/usr/local/bin/chrome
URxvt.fading:	25
URxvt.pointerBlank:	true
URxvt.colorBD:	#ffffff
URxvt.utmpInhibit:	true
*color5:	#dc8cc3
*color1:	#705050
*color13:	#ec93d3
*color9:	#dca3a3
*color6:	#8cd0d3
*color2:	#60b48a
*color14:	#93e0e3
*foreground:	#bfbfbf
*color10:	#c3bf9f
*color3:	#dfaf8f
*background:	#000000
*color7:	#dcdccc
*color11:	#f0dfaf
*cursorColor:	#00ff00
*color15:	#eeeeee
*color4:	#506070
*color0:	#000000
*color12:	#94bff3
*color8:	#808080

“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#38 2015-12-30 19:00:50

gako
Member
Registered: 2015-10-02
Posts: 241

Re: .Xresources / .Xdefaults Thread

Head_on_a_Stick wrote:

And here's the whole set, what a great command:

I feel like I find a new X gem every other day.
appres comes with x11-utils so kinda safe to assume most Debian users have it

/usr/bin/xlsfonts
/usr/bin/xev
/usr/bin/appres
/usr/bin/viewres
/usr/bin/xlsatoms
/usr/bin/xmessage
/usr/bin/xvinfo
/usr/bin/xfd
/usr/bin/xkill
/usr/bin/editres
/usr/bin/xdriinfo
/usr/bin/xlsclients
/usr/bin/xwininfo
/usr/bin/luit
/usr/bin/xprop
/usr/bin/listres
/usr/bin/xdpyinfo
/usr/bin/xfontsel

I've been using appres for finding user color scheme and applying to other themes/scripts

Offline

#39 2015-12-30 19:59:15

ohnonot
...again
Registered: 2015-09-29
Posts: 5,568

Re: .Xresources / .Xdefaults Thread

gako wrote:

appres comes with x11-utils so kinda safe to assume most Debian users have it

not on arch linux!
their X server is extremely stripped down.
i think it makes sense; so many people use it only as the basis for a completely different graphical environment.

but that's why i keep busy here, and find out about gems like these...


Give to COVAX! Here or here. (explanation)
My Repos: notabug | framagit

Offline

#40 2017-02-12 12:18:20

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: .Xresources / .Xdefaults Thread

I have grown fond of the green-on-black colourscheme used by terminator, here it is for better terminals:

2017-02-12-121659_627x297_scrot.th.png

! special
*.foreground:   #00dd00
*.background:   [85]#000000
*.cursorColor:  #00ff00

! black
*.color0:       #000000
*.color8:       #888888

! red
*.color1:       #cc0000
*.color9:       #cc0000

! green
*.color2:       #4e9a06
*.color10:      #4e9a06

! yellow
*.color3:       #c4a000
*.color11:      #c4a000

! blue
*.color4:       #3465a4
*.color12:      #3465a4

! magenta
*.color5:       #75507b
*.color13:      #75507b

! cyan
*.color6:       #06989a
*.color14:      #06989a

! white
*.color7:       #d3d7cf
*.color15:      #d3d7df

http://terminal.sexy/#AAAAAN0AREREzAAAT … B7Bpia09ff

Last edited by Head_on_a_Stick (2017-02-12 12:21:47)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#41 2017-02-14 10:18:51

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: .Xresources / .Xdefaults Thread

^If I would like to try the "green on black" terminator, where exactly do I paste that code in .Xresources? At the end there are some URxvt.color0 to 15 lines - tried to simply replace them, but it did not seem to work.

Offline

#42 2017-02-14 12:09:14

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: .Xresources / .Xdefaults Thread

martix wrote:

^If I would like to try the "green on black" terminator, where exactly do I paste that code in .Xresources? At the end there are some URxvt.color0 to 15 lines - tried to simply replace them, but it did not seem to work.

Look at the Preferences -> Profiles -> Colors section of Terminator (r-click menu). There are many installed colour schemes you can use, or you can create your own using a palette.

https://wiki.archlinux.org/index.php/Terminator

man terminator_config

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#43 2017-02-14 12:14:53

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: .Xresources / .Xdefaults Thread

Thank you damo! Actually never used that preferences menu before. That's a whole new world...

Offline

#44 2017-05-15 06:10:54

Dobbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 1,968
Website

Re: .Xresources / .Xdefaults Thread

Hey Chaps, this is my colour scheme.  It is one I borrowed from terminal.sexy

! special
*.foreground:   #9b9081
*.background:   #181b20
*.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

I like my Metal like my coffee.......Black!

Offline

#45 2017-07-06 20:05:09

Nili
Member
From: $HOME/♫♪
Registered: 2015-09-30
Posts: 1,020
Website

Re: .Xresources / .Xdefaults Thread

4Rq40H1.png

! --- backgroud colors ---
*background:                    #eff0f1
*foreground:                    #9B9CBC
! --- standard colors ---
! black
*color0:                        #0D151D
*color8:                        #525863
! red
*color1:                        #87404f
*color9:                        #AA5063
! green
*color2:                        #74934e
*color10:                       #8DAE65
! yellow
*color3:                        #cd9359
*color11:                       #D9AD81
! blue
*color4:                        #615772
*color12:                       #786D8D
! magenta
*color5:                        #783e57
*color13:                       #9B5070
! cyan
*color6:                        #554757
*color14:                       #715E73
! white
*color7:                        #c0a79a
*color15:                       #D4C3BA
! --- special colors ---
*highlightColor:                #D98181
*highlightTextColor:            #1B212C
*cursorColor:                   #934D74
*pointerColor:                  #cd9359
*pointerColor2:                 #74934e
*colorBD:                       #695a8c
*colorUL:                       #9B5070
*underlineColor:                #783e57

Based on dkeg's urban palette with little modification for white background.


Devuan // CWM
Fedora // GNOME

Offline

Board footer

Powered by FluxBB