how to move search bar in panel to the bottom? SOLVED

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
freshtamatic
Level 3
Level 3
Posts: 162
Joined: Tue Sep 04, 2018 2:13 pm

how to move search bar in panel to the bottom? SOLVED

Post by freshtamatic »

I've moved my panel to the top. The search bar is still on top of the icons, is there a way to move it to the bottom under the icons?
I'm on Cinnamon latest edition.
Last edited by freshtamatic on Thu Jul 16, 2020 6:36 am, edited 1 time in total.
User avatar
spamegg
Level 4
Level 4
Posts: 391
Joined: Mon Oct 28, 2019 2:34 am

Re: how to move search bar in panel to the bottom?

Post by spamegg »

You would have to manually edit the cinnamon.css file for your currently selected theme. Let's say it's Mint-Y-Dark. Then it's something like

Code: Select all

sudo xed /usr/share/themes/Mint-Y-Dark/cinnamon/cinnamon.css
I did some light editing of this file to change colors etc. but I never did any functional changes to the code. It's very easy to break your Cinnamon if you do something wrong. I'm not an expert so maybe someone else can help. In any case you should always back-up the file you want to edit first.
User avatar
smurphos
Level 17
Level 17
Posts: 7332
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: how to move search bar in panel to the bottom?

Post by smurphos »

freshtamatic wrote:
Tue Jul 14, 2020 3:07 pm
I've moved my panel to the top. The search bar is still on top of the icons, is there a way to move it to the bottom under the icons?
I'm on Cinnamon latest edition.
Can you clarify which search bar you are talking about - the menu search bar?
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
smurphos
Level 17
Level 17
Posts: 7332
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: how to move search bar in panel to the bottom?

Post by smurphos »

spamegg wrote:
Tue Jul 14, 2020 11:58 pm
You would have to manually edit the cinnamon.css file for your currently selected theme. Let's say it's Mint-Y-Dark. Then it's something like

Code: Select all

sudo xed /usr/share/themes/Mint-Y-Dark/cinnamon/cinnamon.css
I did some light editing of this file to change colors etc. but I never did any functional changes to the code. It's very easy to break your Cinnamon if you do something wrong. I'm not an expert so maybe someone else can help. In any case you should always back-up the file you want to edit first.
It's not set by the theme. Also sudo xed is not recommended. The user will end up with root owned config files in their home.

Code: Select all

xed admin:///path/to/some/file
is fine as is

Code: Select all

sudo -H xed /path/to/some/file
Last edited by smurphos on Wed Jul 15, 2020 5:38 am, edited 1 time in total.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
freshtamatic
Level 3
Level 3
Posts: 162
Joined: Tue Sep 04, 2018 2:13 pm

Re: how to move search bar in panel to the bottom?

Post by freshtamatic »

The menu bar has a search function, that's the one I am talking about.
It sounds too complicates I'll leave it as is.
Thank you.
User avatar
spamegg
Level 4
Level 4
Posts: 391
Joined: Mon Oct 28, 2019 2:34 am

Re: how to move search bar in panel to the bottom?

Post by spamegg »

Didn't know that. Thanks smurphos
User avatar
smurphos
Level 17
Level 17
Posts: 7332
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: how to move search bar in panel to the bottom?

Post by smurphos »

freshtamatic wrote:
Wed Jul 15, 2020 4:55 am
The menu bar has a search function, that's the one I am talking about.
It sounds too complicates I'll leave it as is.
Thank you.
It's not that complicated. Two options

1) Use a different menu that allows you to choose the position of the search entry in it's config.

Right click on the panel > Applets > Download > Refresh Cache if necessary and select and install Cinnamenu
Then go back to the Manage tab and add Cinnamenu to the panel. Right click the new icon > Configure. You'll see one of the many config options is Session Buttons location - the search bar moves with them. If you decide Cinnamenu is for you, right click the stock menu > Remove 'menu', then invoke Panel Edit Mode to move Cinnamenu into it's place.

Cinnamenu's list view with session buttons at bottom
Image

Cinnamenu's grid view with session buttons at bottom
Image

2) Tweak the stock menu to move the search bar to the bottom.

First make a local copy of the stock menu.

Code: Select all

cp -r /usr/share/cinnamon/applets/menu@cinnamon.org ~/.local/share/cinnamon/applets
Open the relevant file in a text editor

Code: Select all

xed ~/.local/share/cinnamon/applets/menu@cinnamon.org/applet.js
Find these lines (if you turn on line numbers in Xed it's lines 2445 and 2446)

Code: Select all

        rightPane.add_actor(this.searchBox);
        rightPane.add_actor(this.categoriesApplicationsBox.actor);
Reverse the order so it looks like this

Code: Select all

        rightPane.add_actor(this.categoriesApplicationsBox.actor);
        rightPane.add_actor(this.searchBox);
Save the file. Ctrl-Alt-Esc to reload Cinnamon

Tweaked stock menu
Image
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
freshtamatic
Level 3
Level 3
Posts: 162
Joined: Tue Sep 04, 2018 2:13 pm

Re: how to move search bar in panel to the bottom?

Post by freshtamatic »

Thanks for the solutions!
Post Reply

Return to “Newbie Questions”