Re: Tips and Tricks from the Xfce Forum
Posted: Sat Jun 02, 2018 1:28 pm
Yeah, was just feeling ornery I guess.
Support for MX and antiX Linux distros
http://forum.mxlinux.org/
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.
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:
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"
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.
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.
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.
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