LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-26-2014, 03:27 PM   #1
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Rep: Reputation: Disabled
Custom Colors for CLI


Hello, I've been reevaluating my current desktop theme and I find myself rather stifled by certain cli programs. Programs such as mocp and whatnot tend to only use a very small amount of colors. Ugly ones usually. Yet somehow other people seem to overcome this problem. Is there such thing as a mocp that uses more then just 8 colors? For example:

http://jwcxz.com/other/mocp/moc.png

That color scheme seems impossible, yet it is obviously not. How does one achieve this?
 
Old 02-26-2014, 04:02 PM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
To some degree it will depend upon what terminal emulator you as using, since some new fancy ones (Gnome Terminal, Konsole) have their own theme settings.

Traditionally, however, something like rxvt or unicode-rxvt looks at ~/.Xdefaults for its colour scheme and so on.

Here is what I have in mine. It's a sort of Tango-ish muted earth tone thing:

Code:
! to match gnome-terminal "Linux console" scheme
! foreground/background
URxvt*background: [90]#000000
URxvt*depth: 32
URxvt*foreground: #ffffff
! black
URxvt.color0  : #000000
URxvt.color8  : #555555
! red
URxvt.color1  : #AA0000
URxvt.color9  : #FF5555
! green
URxvt.color2  : #00AA00
URxvt.color10 : #55FF55
! yellow
URxvt.color3  : #AA5500
URxvt.color11 : #FFFF55
! blue
URxvt.color4  : #0000AA
URxvt.color12 : #5555FF
! magenta
URxvt.color5  : #AA00AA
URxvt.color13 : #FF55FF
! cyan
URxvt.color6  : #00AAAA
URxvt.color14 : #55FFFF
! white
URxvt.color7  : #AAAAAA
URxvt.color15 : #FFFFFF

! to change font size, do so here then run
! xrdb -merge .Xdefaults
! then restart urxvt
URxvt*font: xft:Monospace:pixelsize=12

URxvt*boldFont: xft:Monospace:pixelsize=12
URxvt*letterSpace: -1
URxvt.perl-ext-common : default,tabbed
!URxvt.perl-ext-common : default,matcher
URxvt.urlLauncher     : firefox
URxvt.matcher.button  : 1

! scrollbar style - rxvt (default), plain (most compact), next, or xterm
URxvt.scrollstyle: plain
URxvt.scrollBar_right: True
URxvt.iconFile:    /usr/share/icons/gnome/256x256/apps/terminal.png
URxvt.keysym.C-Delete:  perl:matcher:last
URxvt.keysym.M-Delete:  perl:matcher:list

URxvt.colorUL: #4682B4

!TABS
!Shift+ down new tab
!Shift+ left go to left tab
!Shift+ right go to right tab
!Ctrl+ left move tab to the left
!Ctrl+ right move tab to the right
!Ctrl+D: close tab
URxvt.tabbed.tabbar-fg: 2
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-fg:    3
URxvt.tabbed.tab-bg:    0
Hope that helps.
 
Old 02-26-2014, 04:06 PM   #3
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
Indeed. But how does one apply those to something like mocp. The picture of someone's mocp that I posted seems to have multiple different custom colors. If I wanted to use a custom color in mocp, I could most certainly set my urxvt font color to whatever color I wanted, and then set the mocp color to default, which would make it use my custom urxvt font color. However that still doesn't explain how one would get multiple custom colors..
 
Old 02-26-2014, 07:08 PM   #4
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Sorry I thought you were asking about terminal colours.

According to the documentation on the homepage of moc itself:


Code:
Themes
--------------------------------------------------------------------------------

Yes, there are themes, because people wanted them. :)

Themes can change all colors and only colors. Example theme file with a
exhausting description is included (themes/example_theme), it is the
default MOC appearance.

Theme files should be placed in ~/.moc/themes/ or $(datadir)/moc/themes/
(eg. /usr/local/share/moc/themes) directory, and can be selected
with the Theme configuration options or the -T command line option (see the man
page and the example configuration file).

Please send me themes you have created.
 
Old 02-26-2014, 09:14 PM   #5
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
No, I know you can make your own moc themes. I have my own moc theme. The thing is, it only supports eight different colors. The colors in the picture in my first post are not part of those eight colors. Somehow, the person managed to turn those regular colors into custom colors. His green seems to be a sort of chartreuse, yet in his config file it undoubtedly says "green" in those fields, because those are the only color names that mocp understands. I want to know how he does this. There seems to be literally zero information on the web about it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Midnight Commander Custom Interface Colors LXer Syndicated Linux News 0 12-29-2013 10:03 PM
custom background and colors for rhgb steveheflin Linux - Kernel 2 06-11-2011 10:58 AM
[SOLVED] Linux CLI through Putty, do colors signify anything? anon091 Linux - Newbie 9 01-14-2010 12:49 PM
Strange Colors in CLI? carlosinfl Linux - General 2 03-22-2007 09:53 AM
Changing text colors in OpenOffice.org to custom html (hex) aldimeneira Linux - Software 0 08-24-2006 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration