Author Topic: Sorting files by case in Nemo.  (Read 2825 times)

Offline Amaz

  • Newly Subscribed
  • *
  • Posts: 7
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Sorting files by case in Nemo.
« on: June 01, 2015, 02:05:59 am »
After lurking around in the forums for a while, necessity has finally driven me to make a post!
Before I get started, I want to thank everyone here for making a awesome distro!

Yesterday, I upgraded to Peppermint 6 (which is really great!) and I have been trying to get Nemo to sort files by case, so uppercase folders come before the lowercase ones. I was able to do this in the old file manager by unchecking the option "Ignore file case" button in the view menu. However, I have had a look around for an option similar to that in the menus and preferences of Nemo, but I have been unsuccessful in finding one... Is it possible to sort files like this in Nemo?
Edit: I just enabled hidden files, and found that they are shown after the non hidden files... Is it possible to display them before the non hidden files, like in the old file manager?

Also, is it possible to change the background of the lock screen?

Thanks!
« Last Edit: June 01, 2015, 02:53:37 am by Amaz »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Sorting files by case in Nemo.
« Reply #1 on: June 01, 2015, 03:53:20 am »
Still looking into the nemo sort order / collation thing ....



But here's how to change the i3lock background image

First the image you're going to use as the i3lock background MUST be a .png, and you'll want its dimensions to be the same size as your current desktop resolution (ie. i3lock will NOT scale/zoom the image)

OK, open a terminal and run:
Code: [Select]
sudo gedit /usr/lib/peppermint/adjustments/lxlockfind the section that reads
Code: [Select]
elif which i3lock >/dev/null; then
    i3lock -i /usr/share/peppermint/images/i3lock-bg.png -t -n
and change it to
Code: [Select]
elif which i3lock >/dev/null; then
    i3lock -i /path/to/your/image.png -n
SAVE the file and exit gedit .. now run:
Code: [Select]
sudo /usr/lib/linuxmint/mintSystem/mint-adjust.pyand now  test the lockscreen.

Notes
a) be sure to replace "/path/to/your/image.png" with the ACTUAL path to your png.
and
b) be sure to remove the "-t" option as that tells i3lock to tile the image.
« Last Edit: June 02, 2015, 04:02:05 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Amaz

  • Newly Subscribed
  • *
  • Posts: 7
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: Sorting files by case in Nemo.
« Reply #2 on: June 01, 2015, 05:58:13 am »
Thank you very much! That's brilliant!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Sorting files by case in Nemo.
« Reply #3 on: June 01, 2015, 06:31:35 am »
You're welcome :)

If I haven't found an answer to the sort order thing in say a week, give this topic a bump ;)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2395
  • Karma: 633
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Sorting files by case in Nemo.
« Reply #4 on: June 01, 2015, 07:37:59 am »
Hi,

this reply is mostly directed to PCNetSpec --> I suppose you have already looked at the possibilities using dconf-editor where nothing beyond simply 'name' is offered (i.e. no case sensitivity option appears). Unless it is an undocumented option.  To test this I tried using Name in place of name for the default-sort-order but got an error: "The provided value is outside of the valid range" ... the same resulted using various other possible options that "sounded" reasonable such as name-ignore-case or ignore-case or case-sensitive or name-case-sensitive ...  :(

Thought you might like to know, in case you have been too busy to try out such stuff ...

Regards,

-- Slim
Respect science, respect nature, respect each other.

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Sorting files by case in Nemo.
« Reply #5 on: June 01, 2015, 08:17:09 am »
Yeah I'd had a quick looksee at gsettings .. I'm now wondering if anything can be done system wide with sommat like
LC_COLLATE="?"
in
/etc/default/locale
« Last Edit: June 01, 2015, 12:38:42 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Amaz

  • Newly Subscribed
  • *
  • Posts: 7
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: Sorting files by case in Nemo.
« Reply #6 on: June 01, 2015, 01:30:09 pm »
Yeah I'd had a quick looksee at gsettings .. I'm now wondering if anything can be done system wide with sommat like
LC_COLLATE="?"
in
/etc/default/locale
I had a quick google around, and found that C should do the trick. So, I added the line LC_COLLATE="C", and files now appear uppercase first! Thanks so much!  :)

However, the problem with the hidden files still remains, so any help with that would be greatly appreciated!

Once again, thanks for your help!

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2395
  • Karma: 633
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Sorting files by case in Nemo.
« Reply #7 on: June 01, 2015, 08:47:35 pm »
Hi Amaz,

Nice work! Thanks!!

Regards,

-- Slim
Respect science, respect nature, respect each other.

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline Amaz

  • Newly Subscribed
  • *
  • Posts: 7
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: Sorting files by case in Nemo.
« Reply #8 on: June 02, 2015, 01:42:16 am »
Going back to the topic of the background of the lock screen:

It works perfectly when the computer remains on, but when I reboot the computer it seems to reset and go back to the default background. I'm not sure if you've got any ideas why this happens?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Sorting files by case in Nemo.
« Reply #9 on: June 02, 2015, 03:57:22 am »
Ahh .. sorry, forgot about that, run:
Code: [Select]
sudo gedit /usr/lib/peppermint/adjustments/lxlockand make the same edits as above, then run:
Code: [Select]
sudo /usr/lib/linuxmint/mintSystem/mint-adjust.pytest i3lock, and if it works .. test it survives a reboot

[EDIT]

I've modified the original instructions above to reflect this.
« Last Edit: June 02, 2015, 04:03:55 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Amaz

  • Newly Subscribed
  • *
  • Posts: 7
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: Sorting files by case in Nemo.
« Reply #10 on: June 02, 2015, 04:47:45 am »
That works very nicely, thanks!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Sorting files by case in Nemo.
« Reply #11 on: June 02, 2015, 04:58:09 am »
You're welcome :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Amaz

  • Newly Subscribed
  • *
  • Posts: 7
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: Sorting files by case in Nemo.
« Reply #12 on: June 08, 2015, 08:05:37 am »
Well, a week has gone by (doesn't time fly!) and I'm wondering if anyone has had any luck with the sorting files in Nemo so that hidden folders/files are displayed before normal ones...

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Sorting files by case in Nemo.
« Reply #13 on: June 08, 2015, 08:42:03 am »
If there is a way, I can't find it.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Amaz

  • Newly Subscribed
  • *
  • Posts: 7
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: Sorting files by case in Nemo.
« Reply #14 on: June 08, 2015, 01:17:05 pm »
Okay, thanks for your help!
I'm going to ask on the Linux Mint forums and see if I can get any help there... I'll be sure to post any help I get here!