Peppermint OS Community Forum

Resources => User Submitted Tutorials => Topic started by: Dan on August 04, 2015, 05:31:18 pm

Title: Change Your Default Cursor Theme
Post by: Dan on August 04, 2015, 05:31:18 pm
Hi everyone! I realize that I'm new here; therefore, I hope it's okay for me to submit this short tutorial.   :-\

I realize that some may not be a fan of Oxygen Cursors, but they're my favorite cursor to use. You may have noticed that if you add an additional cursor theme to your OS and set it as your cursor, it won't show up on some screens/windows...it will revert back to the DMZ cursor.

In order to fix this, you'll need to set your new cursor as the default cursor. It's very easy to do and only takes a couple of minutes or so. Be aware, I'm giving instructions for changing the cursor to an Oxygen Cursor...if you have a different cursor preference, you'll need to know what that cursor's theme is called for this to work. For example, I'm using the Oxygen Cursor Theme, but when I enter the theme name below, it's only oxy-

1.  Pull up the Synaptic Package Manager and search for oxygen cursor theme, then install it. (There is also an oxygen cursor theme extra which provides many more colors to choose from. Install it too if you'd like)

2. After it has finished installing, go to your menu...in Preferences, click on Customize Look and Feel. Click on Mouse Cursor, and click the oxygen cursor that you'd like to use, then click Apply.

(http://www.weebly.com/uploads/1/3/7/0/13707080/7907580.png?816)


Now it's time to set your new cursor as the default cursor so that it will appear on all screens and windows...

3.  Pull up your terminal, and enter the following command...

Code: [Select]
sudo gedit /usr/share/icons/default/index.theme

4.  After entering that command and your password, you'll be presented with the following window...

(http://www.weebly.com/uploads/1/3/7/0/13707080/8181369.png?818)


5.  All you need to do is...(next to Inherits=) replace DMZ-White with oxy-white...as shown below...

(http://www.weebly.com/uploads/1/3/7/0/13707080/6772795.png?818)


6.  After you have made the changes, close the window and tell it to save the changes. After you restart your computer, your oxygen cursor will now be the default cursor...visible on every screen/window.

Special Notes:
If you want to change it back, just follow the steps and put DMZ-White back again.
I use the Oxygen White cursor, so I entered oxy-white. If you choose another color, just enter oxy-your color's name.
I use all small letters when entering oxy-white. Whether it will work if you capitalize a letter...I'm not sure.
The theme name is oxy-   so make sure to enter oxy- and not oxygen-

Hope this helps!  ;)
Title: Re: Change Your Default Cursor Theme
Post by: AndyInMokum on August 04, 2015, 06:08:28 pm
Nice one Dan, it works well.  It's nice to see Synaptic being used for a change of pace  ;).  Thanks for your contribution  8)!!
Title: Re: Change Your Default Cursor Theme
Post by: configX on August 04, 2015, 08:08:28 pm
If you don't mind using the command line, running the following works as well:

Code: [Select]
sudo update-alternatives --config x-cursor-theme
Title: Re: Change Your Default Cursor Theme
Post by: Dan on August 04, 2015, 08:25:45 pm
Nice one Dan, it works well.  It's nice to see Synaptic being used for a change of pace  ;).  Thanks for your contribution  8)!!

Thanks AndyInMokum.

If you don't mind using the command line, running the following works as well:

Code: [Select]
sudo update-alternatives --config x-cursor-theme

Wow...that's alot quicker. Why have I never seen this before?   :o   :D  Quite some time ago, it took me a lot of searching and trial and error to come up with the instructions that I gave, but I never ran across that method before.

Thanks for the tip!

Title: Re: Change Your Default Cursor Theme
Post by: configX on August 04, 2015, 09:04:59 pm
No problem! I like finding little one-liners like that.
Title: Re: Change Your Default Cursor Theme
Post by: Dan on August 05, 2015, 02:05:32 pm
If you don't mind using the command line, running the following works as well:

Code: [Select]
sudo update-alternatives --config x-cursor-theme

I tried this method on a new install...unfortunately, the cursor still changes back to the DMZ cursor on some windows and screens. Still, that was a great tip/shortcut. Thanks again!
Title: Re: Change Your Default Cursor Theme
Post by: configX on August 05, 2015, 02:11:50 pm
That's strange because I thought it changes the same exact file that you edited in gedit. Perhaps you would need to restart X or logout for the change to kick in. Also, open the file in gedit and verify if it was updated with the command.
Title: Re: Change Your Default Cursor Theme
Post by: Dan on August 05, 2015, 03:54:14 pm
That's strange because I thought it changes the same exact file that you edited in gedit. Perhaps you would need to restart X or logout for the change to kick in. Also, open the file in gedit and verify if it was updated with the command.

You know...I may have forgotten something. I'm pushing 50, and my memory isn't what it used to be!  ;D

On the new install, I installed the cursors through the terminal. I think that after that, I immediately entered the command that you gave. If that's what I did, then I didn't set the Oxygen Cursor on the Customize Look and Feel screen...which means it would have still been set for DMZ White.

I do know that I checked the file afterwards, and it did indeed change the file. I also tried the logging out/in and rebooting...so I must have simply forgotten to set the cursor with Customize Look and Feel. Sorry for the confusion I caused.
Title: Re: Change Your Default Cursor Theme
Post by: configX on August 05, 2015, 04:07:03 pm
No need to apologize, it happens to the best of us.  :)
Title: Re: Change Your Default Cursor Theme
Post by: AndyInMokum on August 05, 2015, 04:19:24 pm
That's strange because I thought it changes the same exact file that you edited in gedit. Perhaps you would need to restart X or logout for the change to kick in. Also, open the file in gedit and verify if it was updated with the command.

You know...I may have forgotten something. I'm pushing 50, and my memory isn't what it used to be!  ;D

On the new install, I installed the cursors through the terminal. I think that after that, I immediately entered the command that you gave. If that's what I did, then I didn't set the Oxygen Cursor on the Customize Look and Feel screen...which means it would have still been set for DMZ White.

I do know that I checked the file afterwards, and it did indeed change the file. I also tried the logging out/in and rebooting...so I must have simply forgotten to set the cursor with Customize Look and Feel. Sorry for the confusion I caused.
I know how you feel mate  ;D!!
Title: Re: Change Your Default Cursor Theme
Post by: Dan on August 05, 2015, 05:11:41 pm
If you don't mind using the command line, running the following works as well:

Code: [Select]
sudo update-alternatives --config x-cursor-theme

To settle my curiosity, I went in and set everything back to DMZ White...made sure I did everything right, and this worked great...and much faster than the method I gave. In fact, this method is really much better, because you don't have to know what to type in as your cursor theme in the index.theme file...it does it for you. So it'll be much easier for someone who wants to make some other type of cursor as their default cursor.

configX, I'm tempted to go find all of your posts and "applaud" them all just for this one tip!  :D


I know how you feel mate  ;D!!

Oy!  :-X
Title: Re: Change Your Default Cursor Theme
Post by: configX on August 05, 2015, 07:45:11 pm
Lol, that's not necessary, sir. I'm just relaying things that others have taught me over the years.  :)

If you'd prefer to use a GUI then you can install galternatives
Code: [Select]
sudo apt install galternatives
It'll show up as "Alternatives Configurator" under the System Tools sub menu.

It has a bug when used in LXDE and thus Peppermint so before you use it, run the following command to create a symlink. You only need to do this once for a fresh install.
Code: [Select]
sudo ln -s /usr/bin/update-alternatives /usr/sbin/
When you open it, it'll look like this...

(http://i.imgur.com/4YhTBlC.png)
Title: Re: Change Your Default Cursor Theme
Post by: Dan on August 05, 2015, 09:53:07 pm
Well, I certainly appreciate your willingness to help. I've been using Linux for 5 years now, and I'm still learning. I've had to fight and claw for what little knowledge I do have.  :D

Where I live, if you mention Linux to people...they think you're talking about a shopping mall in Atlanta, Georgia.  :D

What little I've learned, I've learned on my own. Still, I love it! I learned more over the last year than the previous 4 years combined, because I built my own OS based on Debian Testing. I don't want to give the wrong impression...I didn't build it from the ground up; I used a program that had all of the back-end stuff already built in.  Still, it required me to learn a lot, and I'm pleased with the finished OS. I've been using it for quite a while now without any issues. I discovered Peppermint 5 about a year ago and put it on a 10 year old laptop, and it's performed flawlessly ever since. I also have Peppermint 6 on an old HP desktop (it came with WIndows XP)...works flawlessly. The new install that I mentioned above was putting Peppermint 6 as a dual-boot on my laptop that has the OS that I built...again...flawless.

Anyway...I've rambled on too much. Thanks again for your help. I might install G Alternatives just for the fun of it.  ;)
Title: Re: Change Your Default Cursor Theme
Post by: AndyInMokum on August 06, 2015, 02:47:10 am

Where I live, if you mention Linux to people...they think you're talking about a shopping mall in Atlanta, Georgia.  :D
It's the same here in Amsterdam, where Mac is king.  You mention Linux here and most people think you're talking about a new fabric softener  :D.
Quote
...I built my own OS based on Debian Testing.
Kudos  ;)!
Title: Re: Change Your Default Cursor Theme
Post by: Dan on August 06, 2015, 10:29:46 am
Fabric softener!  :D :D :D
Title: Re: Change Your Default Cursor Theme
Post by: 10i on August 06, 2015, 12:41:07 pm
Thanks Dan, works great  :)

Now I have a red cursor to match my Peppermint OS
Title: Re: Change Your Default Cursor Theme
Post by: Dan on August 06, 2015, 04:55:08 pm
Thanks Dan, works great  :)

Now I have a red cursor to match my Peppermint OS

Glad it worked for you! By the way, I like your blog!
Title: Re: Change Your Default Cursor Theme
Post by: 10i on August 07, 2015, 12:54:29 am
Happy to hear it, it started as a way for me to document what I have done for when I need to reinstall and grew from there.

Sent from my GT-I9190 using Tapatalk