Welcome!
Forum users- Please read this before asking for help, and don't forget to add Quick System Info to help requests!
- Please follow the Forum Rules
Current releases
--MX-21 release info here
--Migration information to MX-21 here
--antiX-21 (Grup Yorum) release info here
Important information
--If in starting your system it boots to an unwanted Desktop, right click desktop, then select leave and logout. At the
login screen there is a session chooser at the top of the screen.
News
-- MX Linux on social media: here
-- New Forum Features, Marking Solved and Referencing a User: here
Tips and Tricks from the Xfce Forum
Re: Tips and Tricks from the Xfce Forum
Yeah, was just feeling ornery I guess.
Production: 5.10, MX-21 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-21 Fluxbox and Windows 10.
Personal: Lenovo X1 Carbon with MX-21 Fluxbox and Windows 10.
Re: Tips and Tricks from the Xfce Forum
The "Now right-click those drives under DEVICES in the left pane and uncheck them" step has me stumped. Mind you I needed to change to view the side pane as shortcuts, rather than as a tree, as I usually have it set to.Order partitions in Thunar
Normally Thunar reorders partitions with each login. Here is a trick to get it how you would like it (from user Paul1149):
Go to each internal drive, and from the right pane or address bar drag it into the PLACES list.
Drag them into your desired order.
Now right-click those drives under DEVICES in the left pane and uncheck them.
They will disappear, giving their vertical space back, and you will be left with a tidy list of devices in the order you want.
Open, open in a new tab, open in a new window or unmount appear to be the only right-click options available here.
I do like this one and expect I'll test it out next:
Adjust spacing of Thunar columns
The text inside the columns of Thunar is often jammed up against the right column edge. ToZ looked at the code and found that this snippet will fix it. Create a new file ~/.gtkrc-2.0 and paste in the code below. Then log out and back in to see the effect.
----------
style "my-details-view"
{
GtkTreeView::horizontal-separator = 20
}
widget_class "*ThunarDetailsView*" style "my-details-view"
----------
You can vary the value (10, 15, ,etc.) to suit your tastes.
Center a window using the keyboard
You can center a window using a keyboard with this script:
Inspiron 15 5000-5593- (i7-1065G7) MX 19.2 AHS/MX-21//W10 - Lenovo ThinkCentre A58 4GBRAM (64-bit), MX-21/MX19/antiX19/Mint 19
Re: Tips and Tricks from the Xfce Forum
For: Adjust spacing of Thunar columns
"The text inside the columns of Thunar is often jammed up against the right column edge. ToZ looked at the code and found that this snippet will fix it. Create a new file ~/.gtkrc-2.0 and paste in the code below. Then log out and back in to see the effect."
this worked fine, although I note that I already had a .gtkrc-2.0 file present.
I simply opened with FeatherPad and hit return twice to paste the code as below:
The first line, include ".local/share/mx-tweak-data/whisker-tweak.rc", was already there, for reference.
Not being very familiar with hidden user setting files but seeing how the added code resembles HTML cellpadding=, align= and the like, this seemed quite simple (I did back up the original .gtkrc-2.0 file of course, lest my efforts went wrong).
I will stay with the 'padded' look shown below for a while.

....turns off Show Hidden Files now....
"The text inside the columns of Thunar is often jammed up against the right column edge. ToZ looked at the code and found that this snippet will fix it. Create a new file ~/.gtkrc-2.0 and paste in the code below. Then log out and back in to see the effect."
this worked fine, although I note that I already had a .gtkrc-2.0 file present.
I simply opened with FeatherPad and hit return twice to paste the code as below:
Code: Select all
include ".local/share/mx-tweak-data/whisker-tweak.rc"
style "my-details-view"
{
GtkTreeView::horizontal-separator = 20
}
widget_class "*ThunarDetailsView*" style "my-details-view"
Not being very familiar with hidden user setting files but seeing how the added code resembles HTML cellpadding=, align= and the like, this seemed quite simple (I did back up the original .gtkrc-2.0 file of course, lest my efforts went wrong).
I will stay with the 'padded' look shown below for a while.

....turns off Show Hidden Files now....
You do not have the required permissions to view the files attached to this post.
Inspiron 15 5000-5593- (i7-1065G7) MX 19.2 AHS/MX-21//W10 - Lenovo ThinkCentre A58 4GBRAM (64-bit), MX-21/MX19/antiX19/Mint 19
Re: Tips and Tricks from the Xfce Forum
Added this, also the padding one from Alt.rich wrote: ↑Sat Jun 02, 2018 10:21 am My favorite thing I got from there I detailed in this post: viewtopic.php?f=23&t=45293
Basically, the ability to refresh the clock after suspend. Idk how many people actually use the native panel clock though, in pre 4.13 panel there's a bug that makes it tricky to set the timezone. The workaround by the way is to edit the clock panel item properties by opening the panel preferences dialog from the menu and going to panel items instead of just right clicking on the clock item itself in the panel.
Production: 5.10, MX-21 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-21 Fluxbox and Windows 10.
Personal: Lenovo X1 Carbon with MX-21 Fluxbox and Windows 10.
Re: Tips and Tricks from the Xfce Forum
I can't see how that works now, either. Will remove if no one can do it.The "Now right-click those drives under DEVICES in the left pane and uncheck them" step has me stumped. Mind you I needed to change to view the side pane as shortcuts, rather than as a tree, as I usually have it set to.
Open, open in a new tab, open in a new window or unmount appear to be the only right-click options available here.
Production: 5.10, MX-21 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-21 Fluxbox and Windows 10.
Personal: Lenovo X1 Carbon with MX-21 Fluxbox and Windows 10.
- dolphin_oracle
- Developer
- Posts: 22709
- Joined: Sun Dec 16, 2007 1:17 pm
Re: Tips and Tricks from the Xfce Forum
you actually need to right click in an open space in the drives area to get the hidden menu.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-21
FYI: mx "test" repo is not the same thing as debian testing repo.
lenovo ThinkPad X1 Extreme Gen 4 - MX-21
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: Tips and Tricks from the Xfce Forum
Oh--in the space to the right of the word Drives works for me.
th
th
Production: 5.10, MX-21 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-21 Fluxbox and Windows 10.
Personal: Lenovo X1 Carbon with MX-21 Fluxbox and Windows 10.
Re: Tips and Tricks from the Xfce Forum
Cheers also. In effect it removes Device listings and shows partitions listed under Places, but in the order a user has added them.
This works well for those who prefer the left pane as View-Shortcuts, but does not allow for these to be displayed in a -Tree view. So ultimately, Device listings cannot be rearranged per user preference. This is still a good tip for those preferring a shortcut view, just not for those users relying on a tree view Thunar.
This works well for those who prefer the left pane as View-Shortcuts, but does not allow for these to be displayed in a -Tree view. So ultimately, Device listings cannot be rearranged per user preference. This is still a good tip for those preferring a shortcut view, just not for those users relying on a tree view Thunar.
Inspiron 15 5000-5593- (i7-1065G7) MX 19.2 AHS/MX-21//W10 - Lenovo ThinkCentre A58 4GBRAM (64-bit), MX-21/MX19/antiX19/Mint 19
Re: Tips and Tricks from the Xfce Forum
Thank you Jerry ... interesting tricks.Jerry3904 wrote: ↑Wed Apr 19, 2017 6:43 am Did you know that we keep a running list created from interesting and useful posts on the Xfce Forum?
https://mxlinux.org/wiki/xfce/xfce-comm ... eful-stuff
The one I just put up there is a neat script that centers a window and can be assigned to a keystroke.
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19_x64 & antiX19_x32
Re: Center a window using the keyboard
While the script may have worked in the past, it now does not. There may have been issues (e.g., "smart quotes") when the script was copied into the post. In the process of debugging it for my own use, I found a number of things in the script and rewrote it (based on the script posted by Jerry3904). I assigned it to the Right Win key.
Here it is:
Here it is:
Code: Select all
#!/bin/bash
# Based on the script by Jerry3904
IFS='x'; read screenWidth screenHeight < <(xdpyinfo | grep dimensions | grep -o '[0-9x]*' | head -n1)
winId=`xdotool getactivewindow`
width=$(xdotool getwindowgeometry -shell $winId | head -4 | tail -1 | sed 's/[^0-9]*//')
height=$(xdotool getwindowgeometry -shell $winId | head -5 | tail -1 | sed 's/[^0-9]*//')
newPosX=$((screenWidth/2-width/2))
newPosY=$((screenHeight/2-height/2))
xdotool windowmove $winId $newPosX $newPosY