LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 12-29-2013, 12:02 AM   #1
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Rep: Reputation: Disabled
Midnight Commander Themes


Hello. I've recently decided to try out midnight commander. I've never used it before but I like the idea of command line file management(aside from cp, mv, ls, rm, and whathaveyou). I'm having a rather frustrating problem though. I can't edit the colors. There seems to be pathetically little in the way of documentation on the internet regarding mc. I have no ~/.mc folder, but I do have a ~/.config/mc folder. Located in there is a default ini as well as a panels.ini. I created a .mc folder in my home directory and I've tried copying various themes from /usr/share/mc/skins to both ~/.config/mc as well as ~/.mc. I am not sure if it has anything to do with the fact that I'm running as root.

Yes yes I know running as root is highly unrecommended and I could break my system and blah blah blah. I've been running as root for quite awhile now and I'm not scared of breaking my system.

Anyway, I hope someone here has had the same problem as I, because I've searched google as well as Arch Linux forums, and there is no wiki on midnight commander in the ArchWiki. Thanks for reading.
 
Old 12-29-2013, 12:14 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by slack_ View Post
Yes yes I know running as root is highly unrecommended and I could break my system and blah blah blah. I've been running as root for quite awhile now and I'm not scared of breaking my system.
No one of us cares if you break your system because you think running as root is a good idea. But we care about being attacked from your system that is wide open to any script kiddie out there.

Anyways, to use a theme you have not only to copy it to your machine, but also choose the theme in mc's INI-file: https://kmandla.wordpress.com/2010/0...ght-commander/
 
Old 12-29-2013, 11:55 AM   #3
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
So there isn't a way to just modify the default.ini after copying it to ~/.mc/ini? Also sorry, didn't mean to come off as rude, I'm just used to people ignoring the point of the post and shouting reasons why running as root is a bad idea at me as if I didn't know. Thanks for replying.
 
Old 12-29-2013, 01:22 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by slack_ View Post
So there isn't a way to just modify the default.ini after copying it to ~/.mc/ini?
Yes, there is. I don't run mc (I prefer Ranger, another CLI file-manager), so I had to try what happens when you run the linked script. It does nothing more than replacing the (by default empty) line base-color= with the entries it finds in the theme file.
So a theme file that looks like this:
Code:
BASE_COLOR=gray,black                                                                                  
NORMAL=white,black                                                                                     
MENU=yellow,gray                                                                                       
VIEWUNDERLINE=black,green                                                                              
EDITNORMAL=white,black                                                                                 
EDITMARKED=black,white                                                                                 
MENUHOT=red,gray                                                                                       
DIRECTORY=yellow,gray                                                                                  
EXECUTABLE=brightgreen,gray                                                                            
DEVICE=magenta,gray                                                                                    
INPUT=yellow,gray                                                                                      
LINK=brightcyan,gray                                                                                   
STALLEDLINK=white,gray                                                                                 
REVERSE=brightmagenta,black                                                                            
SELECTED=black,brown                                                                                   
MARKED=black,lightgray                                                                                 
MARKSELECT=black,yellow
will look in the ini-file like this
Code:
base_color=gray,black:normal=white,black:selected=black,brown:marked=black,lightgray:markselect=black,yellow:errors=white,red:menu=yellow,gray:reverse=brightmagenta,black:dnormal=black,lightgray:dfocus=black,cyan:dhotnormal=blue,lightgray:dhotfocus=blue,cyan:viewunderline=black,green:menuhot=red,gray:menusel=white,black:menuhotsel=yellow,black:helpnormal=black,lightgray:helpitalic=red,lightgray:helpbold=blue,lightgray:helplink=black,cyan:helpslink=yellow,blue:gauge=white,black:input=yellow,gray:directory=yellow,gray:executable=brightgreen,gray:link=brightcyan,gray:stalelink=brightred,blue:device=magenta,gray:core=red,blue:special=black,blue:editnormal=white,black:editbold=yellow,blue:editmarked=black,white:errdhotnormal=yellow,red:errdhotfocus=yellow,lightgray
It seems that the script also inserts some default values if they are not present in the theme-file.
If you download the archive with script and theme-files and look at them they are pretty self explanatory.
 
Old 12-29-2013, 04:14 PM   #5
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
There's obviously a deeper problem here. I must have done something wrong when copying files, because I tried the script and no changes take effect. I've made sure mc isn't running either. I also tried a couple different themes. Not really getting why it's not working, and it's not like I'm getting an helpful errors to post here either. I'm willing to bet it's a simple and embarrasing mistake.

Last edited by slack_; 12-29-2013 at 04:16 PM.
 
Old 12-29-2013, 06:20 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Open the script and make sure that the variable MCINI points to the correct location (for example ~/.config/mc/ini), but you should get an error message if it does not.
Also, check that you run the script as the same user as you are running mc with.
 
1 members found this post helpful.
Old 12-29-2013, 09:25 PM   #7
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Open the script and make sure that the variable MCINI points to the correct location
That did it. Thanks a bunch.
 
  


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
midnight commander peterb Ubuntu 1 10-14-2010 09:22 AM
[SOLVED] Midnight-commander new2nagios Linux - Software 4 08-05-2009 10:55 AM
Midnight Commander help? masterross Linux - Software 3 01-22-2008 09:25 AM
Midnight Commander matombo Fedora 3 11-30-2005 12:41 PM
Midnight Commander XPediTioN Slackware 2 07-12-2003 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 06:27 PM.

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