How to get that colorful 'ls' output dmz keeps on showing us

A lot of people keeps on sending me emails and asking how I get ls to look like this:
So I figured I'd write this down so I can direct them here instead. :-)
First of - I've made my LS_COLORS (dircolors, really) configuration public. It contains about 300 different filetypes as of this writing. It's grouped by ... uh, group. Music files, video, pictures, text documents etc. Follow the link for more information and installation instructions.
Second, I use ls++ - colorized ls on steroids. It can colorize files matching PATTERN, thus allowing you to also differentiate files missing an extension. It also calculates the relative mtimes - see the above screenshot.
See ls++(3) and ls++.conf(3) after installation for more information.
Last edited by dmz (2011-07-16 14:55:01)

Stalafin wrote:As I see it, ls++ by default acts more like $ ls -lh. Are you planning to extend ls++ to the full functionality of ls?
It's more like ls -hAlv --group-directories-first --time=ctime --time-style=+%s . :-)
I wont make any attempt to include every possible combination of ls options - if there's something special you're missing I can look at it though.
Stalafin wrote:Also, the default color you use for your terms is #121212 (for instance the background of the terms you took the screenshots of)? I am using #1e1e1e and especially the timestamp of files that haven't been changed for a long time are hardly visible :-( .
If you fire up  man ls++.conf you'll see what numbers corresponds to what element; for example, color index 4 is used for 'day'. So change the value of $c[4] in the config to any color you'd like.
Stalafin wrote:And on another note: I checked your Xresources: what is the definition the definition of all colors from 0 to 255 good for? Isn't one usually defining only 16?
Normally, yes. But I'm not too happy with the default colors, so I've changed some of them.
See colorcoke and my urxvt fork for more information.

Similar Messages

  • How to get default color of a selected row in a JLIst

    I have a JList that I am changing the font color for based on a certian situation so I created my own MyCellRenderer to do this. However, when I select an item in the list the row is no longer highlighted. I used the isSelected method to determine if a row was selected and then change the background color of that row. However, I would like the color to be the default color that you get when you select a row in a default JList. I can't seem to figure out how to get that color. How do I obtain what that color is? I found an example where you can get the default color for the background of a button and use that color so I would guess it is something similar to that. My code is below so I hope someone can tell me how to get that color that I want.
    Thanks...Chris
    class MyCellRenderer extends JLabel implements ListCellRenderer {
         public MyCellRenderer() {
              setOpaque(true);
         public Component getListCellRendererComponent(
             JList list,
             Object value,
             int index,
             boolean isSelected,
             boolean cellHasFocus)
             int index1 = value.toString().indexOf("-");
               String errors = value.toString().substring(index1 + 1, index1 + 6).trim();
             int numErrors = Integer.parseInt(errors);
               if (numErrors > 0)
                      setForeground(Color.red);
                      setBackground(Color.white);          
             else
                  setBackground(Color.white);
                  setForeground(Color.black);
             if(isSelected)
                  //ColorUIResource col = (ColorUIResource)UIManager.getDefaults().get("JButton.background");
                  ColorUIResource col = (ColorUIResource)UIManager.getDefaults().get("Button.background");
                  setBackground(col);
             setText(value.toString());
             return this;
    }

    Swing related questions should be posted in the Swing forum.
    I would like the color to be the default color that you get when you select a row in a default JList. I can't seem to figure out how to get that colorlist.getSelectionBackground();

  • How to get background color of controls ?

    Hello everyone.
    How to get background color of controls ?
    When we use AWT/Swing,
    we can get background color of component by using Component.getBackground()
    It is regret that I can not find any method for such a method in JavaFX.
    And how do we detect the change of background color of controls ?
    Best regards.

    Hi Tadashi,
    try this.
    @Override
    public void start(final Stage primaryStage) {
        primaryStage.setTitle("Test ChangeListener");
        Button btn = new Button();
        btn.setText("change background");
        btn.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent event) {
                primaryStage.getScene().setFill(Color.rgb(
                        (int)(Math.random() * 255),
                        (int)(Math.random() * 255),
                        (int)(Math.random() * 255)));
        StackPane root = new StackPane();
        root.getChildren().add(btn);
        primaryStage.setScene(new Scene(root, 300, 250));
        primaryStage.getScene().fillProperty().addListener(new ChangeListener<Paint>() {
            @Override
            public void changed(ObservableValue<? extends Paint> arg0, Paint arg1, Paint arg2) {
                System.out.println(
                        "old color: " + arg1.toString()
                        + ", new color: " + arg2.toString());
        btn.getOnAction().handle(null);
        primaryStage.show();
    }Peter

  • Can anyone help me change the DOB on my sons profile for his apple I'd so I can setup family sharing? I originally put both ids in my name. He is 19 do it keeps saying needs my permission but no instructions in how to get that done?

    Can anyone help me change the DOB on my sons profile for his apple I'd so I can setup family sharing? I originally put both ids in my name. He is 19 do it keeps saying needs my permission but no instructions in how to get that done? His phone was stollen once last month need to get this done ASAP to prevent future headaches. Ty

    You can not change the date of birth on the account. Apple makes that clear up front when the account is created.
    The only way to "fix" this is going to be for him to create a new account with the correct information. Any apps purchased with the old one will need to be re-purchased with the new account. They can not be transferred.

  • I have updated to maverick from mountain lion.initially my mac book pro was snow leopard.the multitrack touch pad swapping the page is not happening in finder,it is only working in safari.please help me how to get that swiping gesture in  finder

    i have updated to maverick from mountain lion.initially my mac book pro was snow leopard.the multitrack touch pad swapping the page to get back to previous page is not happening in finder,it is only working in safari.please help me how to get that swiping gesture in  finder

    Hi..
    I repled to you here >  https://discussions.apple.com/message/25598596#25598596
    Please do not start duplicate topics. It makes it that much harder to assist you.

  • The last version of Firefox would go to a choice box when a new screen came up. I can't figure out how to get that feature back in Firefox 4

    For example. When checking spam in Gmail.....if I ask to delete all spam mail.....the cursor would automatically go to the box that pops up asking for confirmation. I can't figure out how to get that feature back. Otherwise everything works great!

    I have the same problem getting into Mozilla. Occasionally it comes up when I click on it, but most times it does not. The hour glass stays on for a couple of seconds, then goes off.

  • I forgot the passcode to turn off restrictions. I have restored my iPad back to the factory settings and then synced it with the latest backup. The restrictions are still on and it is asking for the passcode. Can someone tell me how to get that off.

    I forgot the passcode to turn off restrictions. I have restored my iPad back to the factory settings and then synced it with the latest backup. The restrictions are still on and it is asking for the passcode. Can someone tell me how to get that off.

    The only option is to wipe the device clean and restore it to factory settings.  Hope you have a backup.
    Follow the instructions in  iOS: How to back up your data and set up your device as a new device http://support.apple.com/kb/HT4137 to restore the device to factory settings.
    Once you have setup the device as a new one, you can then sync it back with your iTunes account and all your music, apps, contacts and any other content sync'ed with iTunes will be loaded on the device. Any content that is stored only on the device and not sync'ed with iTunes, like app logins or data, will be lost during this process. Be forewarned that this is a long process and can take a couple of hours or more to complete. This can be painful, but it is necessarily so to prevent users from working around the security settings. After the restore is complete, you can setup a new Restrictions passcode. Make a note of the passcode to avoid this situation in future.
     Cheers, Tom

  • Hi, While installing XQuatrz-2.7.7, the installation blocks at the "destination" level. It asks how to install this soft, "Install for all users" is shadowed, but frozen: i cannot select anything and move on. Any idea how to get that fixed? Thanks!

    Hi,
    While installing XQuatrz-2.7.7, the installation blocks at the "destination" level. It asks how to install this soft, "Install for all users" is shadowed, but frozen: i cannot select anything and move on. Any idea how to get that fixed?
    Thanks!

    It says above 2 relevant and 1 correct answere available .............
    I'm new here so could anyone direct me to these answeres?

  • I am using the window xp and firefox 6. I see many videos on youtube. How I get that videos from the catch folder and where is it?

    I am using the window xp and firefox 6.
    I watch the youtube videos online.
    How I get that video from the catch folder and where that catch folder are situated in the window xp.

    ''How can I view or retrieve a video from Firefox's cache''
    To actually view/retrieve the file from the cache and its web address you can use
    the "Cache Viewer" extension 32.8KB
    * https://addons.mozilla.org/firefox/addon/cacheviewer/
    * http://dmcritchie.mvps.org/firefox/firefox.htm#cacheviewer
    For you to be able to view the cached file you would have had to have watched the entire file.
    The latest version of the extension is 0.7b available in all versions you would have to override compatibility by any of these methods
    * checking or pick up one of the xpi versions in the reader comments for Firefox 6.0
    * extensions.checkCompatibility.6.0 set to False
    *: http://kb.mozillazine.org/Extensions.checkCompatibility
    * or with an extension "Add-on Compatibility Reporter" (84.0 KB) seems preferred in this group
    *:https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    There are also extensions such as Video downloader 132.8 KB
    * Download YouTube Videos + Flash Video Downloader / Download-Helper
    *:https://addons.mozilla.org/firefox/addon/download-youtube-videos/
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem after you've tried several things.</small>

  • TS1424 I purchased an album and all but one song downloaded, I can't figure out how to get that last song to download??

    I purchased an album and all but one song downloaded, I can't figure out how to get that last song to download??

    Hello Kathie1970,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    http://support.apple.com/kb/ht1933
    Best of luck,
    Mario

  • I missed the intro email to iCloud and now can't access my I cloud. How do get that email?

    I missed the intro email to iCloud and now can't access my I cloud. How do get that email?

    See also http://www.apple.com/icloud/setup/ios.html

  • I am a Creative Cloud subscriber. Need latest version InDesign (CS7). How to get that update?

    I am a Creative Cloud subscriber. Need latest version InDesign (CS7). How to get that update?

    Open the Creative Cloud desktop app running in the task bar.  Be sure the Find New Apps section below is set to All Apps.

  • I began to purchase songs off iTunes, a prompt message appears whether you want to buy the song after the first click... I ticked the box to say I didn't want this warning again... But now I wish I had that - Anybody know how to get that message back???

    I began to purchase songs off iTunes, a prompt message appears whether you want to buy the song after the first click... I ticked the box to say I didn't want this warning again... But now I wish I had that - Anybody know how to get that warning/prompt message back???

    Sign-in to your iTunes Store account (Store menu > View my account).
    At the bottom of the Account Information page is a Reset box to click to reset all warnings for buying and downloading.  Click the "Done" button when you're finished.

  • How to get right color output whit export.

    Hello,
    Does anyone know how to get the same color/gamma output with export as in the original footage ?
    I noticed that when exporting a clip in h.264 or mp4 or quicktime h.264 or mp4, the colors get messed up, or the gamma I don't know really. You can try it yourself.
    Here's a link to a testscreen image in png format:
    http://joeljohnson.com/wp-content/uploads/2009/08/bbc-hd-test-card.png
    I use the standard "digital color measurement tool" app, provided with mac OS X to check what happens with the colors.
    The white, grey and black boxes in the left of the picture should be, Black 0%, Grey 20%, grey 40%, Grey 60%, Grey 80% and whie(100%). The red colorblocks inthe picture contain about 2,7% blue and 85% red.
    Whenever I import this file in Imovie, the grey scale colors are already a bit changed. About 2% or 4%.
    But what bothers me most is that the red blocks contain about 7% blue, 3 times as much as it supposed to contain.
    On export the color difference maintain when viewed in quicktime. When viewed in VLC, the grey boxes are displayed as meant to be, 0%, 20%, 40%, 60%, 80% and 100%. So this is probably the well known and discussed gamma shift. BUT the red boxes contain about 7% blue, even when viewed in VLC, why!!!! I can't live with that, I have a red car, but when viewed on video on my computer...it has a blue cast, it's not red, it gets slightly purple. Does anyone know how to solve this problem, and by the way, the other colors in the testscreen image are also shifted on import and export. It keeps me awake at night...Help me please.

    Hi,
    It is same for template.Double Click on the template.
    Then Go to Template TAB.
    Click to select the line type. If it showing a pencil type icon then click the pencil icon above .
    Other thing is given above.
    regards
    Sandipan
    Edited by: Sandipan Ghosh on Apr 2, 2008 4:16 PM

  • In ALV, how do u get alternate colors in output

    In ALV, how do u get alternate colors in output

    For a non OO ALV...
    TYPE-POOLS:  slis.
    DATA:   xfield    TYPE slis_t_fieldcat_alv,
    gs_layout TYPE slis_layout_alv.
    In your data structure you have tu put a field for the color, example:
    DATA: BEGIN OF xdata OCCURS 1.
    DATA:   ebeln          LIKE ekko-ebeln,
            name1          LIKE lfa1-name1,
            txz01          LIKE ekpo-txz01,
            color_line(4)  TYPE c,           " <==== this is the color line
    END OF xdata.
    You have create a form for the layout like this:
    FORM init_layout.
      gs_layout-info_fieldname = 'COLOR_LINE'. "<==the name of de field of the structure
    ENDFORM.
    Perform the init_layout in the initialization.
    Your call alv function, have to be like this:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_buffer_active         = 'X'
          i_callback_program      = 'YOUR_PROGRAM'
          i_callback_user_command = 'USER_COMMAND'
          is_layout                = gs_layout
          it_fieldcat              = xfield[]
        TABLES
          t_outtab                 = xdata
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.

Maybe you are looking for

  • Manual sync iPod

    Does anyone know how to change the settings on iTunes so that the iPod does not auto sync when I connect it, but change the settings whilst the iPod is not connected? I cannot seem to do it, but it seems ridiculous that you cannot do this! Please hel

  • Claim My Reward browser security error

     I experienced an issue today after printing with my Officejet Pro 8610. Immediately after printing a dialog window popped-up calling on me to Redeem your HP Reward! I read the dialog and chose to click the Claim My Reward button. After some processi

  • Change appearance of the inactive VI's windows

    Hello! I'm working on a software which calls different sub-VIs and they all open as new windows in front of the main one. The problem is that those windows are usually smaller than the parent VI and sometimes the amount of controls you see on the scr

  • Best way to add new post link

    What would be the best way to add a "new post" link on the main homepage that links to the appropriate blog page. Ideally, I'd like to put a small photo too. Is the only way to manually add it every time I update, or is there a better way? Thanks, Ji

  • How to install hard drive Macbook Pro 10.6.3

    I have a Macbook Pro Os X 10.6.3 Snow Leopard. I was told that I have a failed hard drive. It costs about $195 for repair at my local shop. I read that I can purchase my own hard drive from BestBuy and have geek squad to install it. The guy says it c