LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-06-2018, 06:11 AM   #1
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Rep: Reputation: Disabled
Rows and Columns Spacing in Thunar


Hi
I am using Thunar as file manager. Originally the rows and columns spacing of Thunar is not according to my preference. So, in order to increase the spacing I used following contents in ~/.gtkrc-2.0:
Code:
style "thunar-spaced-out-icons"
{
  ThunarIconView::column-spacing = 70
  ThunarIconView::row-spacing = 30
}
class "ThunarIconView" style "thunar-spaced-out-icons"
and it worked fine. However, after last upgrade the above settings stopped working. In order to fix it, I also created a ~/.gtkrc-3.0 file. But this has not solved the problem.
Kindly help me to fix this problem.
 
Old 07-06-2018, 07:35 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Aren't there bars on top you can drag to adjust the column size?
 
Old 07-06-2018, 12:19 PM   #3
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
Aren't there bars on top you can drag to adjust the column size?
No, there are no bars or GUI settings in Thunar to adjust columns or rows spacing.
 
Old 07-07-2018, 01:32 PM   #4
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
No help yet!
 
Old 07-07-2018, 09:04 PM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Quote:
No, there are no bars or GUI settings in Thunar to adjust columns or rows spacing.
Left mouse click and hold on the right vertical bar in the box holding the column name and then mouse drag to change the column width.
There is also the View -> Configure Columns... menu option to show the Column Sizing checkbox that can be cleared so that user defined column widths are used.
 
Old 07-07-2018, 09:15 PM   #6
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by AwesomeMachine View Post
Aren't there bars on top you can drag to adjust the column size?
Only when you're using "Detailed List" view.
 
Old 07-08-2018, 03:01 AM   #7
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
I do not use "Detailed List". I use "Icon" view.
 
Old 07-08-2018, 05:28 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by zetrotrack000 View Post
However, after last upgrade the above settings stopped working. In order to fix it, I also created a ~/.gtkrc-3.0 file. But this has not solved the problem.
i think thunar is using gtk3 now?
if that is the case, the old gtk2 syntax won't work anymore.
the new syntax is basically CSS, but themes have gotten much, much more complex...
try to find a new readymade fix, unless you are masochistic enough to tackle gtk3. i'm not.
 
Old 07-08-2018, 06:31 AM   #9
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
i think thunar is using gtk3 now?
if that is the case, the old gtk2 syntax won't work anymore.
the new syntax is basically CSS, but themes have gotten much, much more complex...
try to find a new readymade fix, unless you are masochistic enough to tackle gtk3. i'm not.
Thanks for pointing me to right direction. In order to achieve my goal, I need to edit ~/.config/gtk-3.0/settings.ini. There are plenty of examples on internet regarding gtk-theme, icon-theme, icon-size etc. but I am unable to find my particular settings (regarding column/row spacing).
I believe that I have to convert my .gtk-2.0 syntax to gtk-3.0. So I tried few things like:
Code:
gtk-ThunarIconView-column-spacing=70
gtk-ThunarIconView-row-spacing=30
But without any success. Kindly guide me for correct syntax. Thanks
 
Old 07-08-2018, 11:34 AM   #10
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by zetrotrack000 View Post
I do not use "Detailed List". I use "Icon" view.
I figured that. I switch back and forth depending on my needs at the time but prefer the Icon view. Not sure I can help but I am following this as I would like to know how to control this as well.
 
Old 07-08-2018, 11:29 PM   #11
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Problem solved.
Solution:
1. create a file ~/.config/gtk-3.0/gtk.css
2. paste following content in this file:
Code:
* {
-ThunarAbstractIconView-row-spacing: 70;
-ThunarAbstractIconView-column-spacing: 30;
}
3. Log off and login again.
Credit: ToZ (https://forum.xfce.org/viewtopic.php?pid=48909#p48909)
 
2 members found this post helpful.
Old 07-09-2018, 04:24 PM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
thanks for sharing the solution!
would you mind marking your thread SOLVED?
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Thunar - Increase Spacing Between Icons zetrotrack000 Linux - Newbie 9 11-12-2016 08:18 AM
[SOLVED] Converting a file with Rows and Columns to just Columns mphillips67 Linux - Newbie 14 03-05-2014 10:31 AM
[SOLVED] transposing rows to columns wilelucho Programming 6 03-29-2013 08:10 AM
[SOLVED] Creating columns from every 4 rows kbensch Linux - General 7 05-19-2012 11:35 AM
rows and columns digitalgravy Linux - General 2 03-16-2004 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:46 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