|
|
slmingol posted this in tips & tricks on March 28th, 2012, @ 9:13 am
Background
I’m always forgetting GNOME & Nautilus keyboard shortcuts so this is a list of some of the more common ones that I’ve used in the past.
Solution
Here’s the lists. I’ve tried to organize the shortcuts first by whether they’re GNOME related or Nautilus. I’ve also tried to break them down into a sub groups based on similar functions, such as, file management, selecting, etc.
GNOME
Desktop Keyboard Shortcuts:
| Alt + F1 | → Open Applications Menu (Pulldown) | | Alt + F2 | → Run Application Dialog | | Alt + F9 | → Minimize Active Window | | Alt + Tab | → Rotate Current Window Focus | | Ctrl+Alt + D | → minimize all windows |
Virtual Desktop Shortcuts:
| Ctrl+Alt + L Arrow | → Move Virtual Desktop Left | | Ctrl+Alt + R Arrow | → Move Virtual Desktop Right | | Ctrl+Alt+Shift + L Arrow | → Move Current Application Left | | Ctrl+Alt+Shift + R Arrow | → Move Current Application Right |
Logging Out and Restarting:
| Ctrl+Alt + L | → Lock Screen | | Ctrl+Alt + Del | → Log Out/Reboot System | | Ctrl+Alt + Backspace | → Restart Gnome/XWindows (careful) |
Nautilus
File Management:
| Alt + ENTER | → File/Folder Properties | | Ctrl + H | → Show Hidden Files | | Shift+Ctrl + N | → Create New Folder | | F2 | → Rename File | | Ctrl + 1 | → Toggle View As Icons | | Ctrl + 2 | → Toggle View As List | | Shift + Right Arrow | → Open Directory (List View) | | Shift + Left Arrow | → Close Directory (List View) | | Shift + Del | → Delete without moving to Trash |
Selecting:
…. Continue reading → [one-liner]: GNOME & Nautilus Keyboard Shortcuts »»
slmingol posted this in tips & tricks on September 13th, 2011, @ 8:23 pm
Background
I recently ran into this problem where I was presented by Fedora’s package manager with a dialog box that had its OK/Cancel buttons being displayed off screen. This solution doesn’t necessarily fix this problem, but does give you a way to work around it.

- partially off desktop

- partially off desktop (closeup)
Solution
The solution is pretty straightforward. Within GNOME there is a keyboard/mouse binding that allows you to grab a window and move it with the mouse off the screen. Normally when grabbing a window by its title bar you’re limited to only moving it within the physical space of the desktop.
By pressing the Alt key you’re able to grab a window anywhere and move it anywhere completely ignoring the physical boundary limitations of the desktop. While holding down the Alt key your cursor will turn into a small hand which you can then use to move the focussed window. Therefore you can make windows positioned 1/2 on the desktop and 1/2 off, for example.
NOTE: For further details regarding my one-liner blog posts, check out my one-liner style guide primer.
slmingol posted this in tips & tricks on April 12th, 2011, @ 10:35 am
Background
Quick tip on deleting file associations within GNOME. REMINDER: a file association allows for double clicking a certain kind of file and having it automatically launch a specific application.
Solution
First you’ll need to navigate in Nautilus to a file that’s got the particular association you’re trying to delete. Next you’ll need to select the file and right click on it.
 File's Properites
Next you’ll want to select the Open With tab in the properties dialog. Then select the association you want to remove and and click the Remove button. NOTE: If you’re trying to delete the default association, you’ll need to make something else the default, prior to deleting it.
 Open With Tab
NOTE: For further details regarding my one-liner blog posts, check out my one-liner style guide primer.
slmingol posted this in tips & tricks on April 11th, 2011, @ 7:13 pm
Background
I’ve been using a password management program called jpasswords which is written in Java. It’s deployed as a single jar file (jpws-deluxe-0-5-0.jar) for example. Normally I would just run it from a shell but wondered how to make it run just by double clicking on the jar file itself from GNOME.
Solution
APPROACH #1
Now one way would be to roll a shell script similar to this and make it executable. At which point you could make a quick launching icon that simply called the shell script.
1
2
3
4
| #!/bin/bash
# jpasswords.sh
/usr/bin/java -jar /home/saml/passwds/jpws-deluxe-0-5-0.jar |
But I didn’t feel like making a single shell script for every scenario. I was looking for a way to blanket associate any jar file with /usr/bin/java. Turns out that it’s actually very simple.
APPROACH #2
Right clicking on a jar file from Nautilus….select the “Open With Other Application…” item.
 jpasswords .jar
Then in the “Use a custom command” area type the following: /usr/bin/java -jar.
 file association dialog
NOTE: For further details regarding my one-liner blog posts, check out my one-liner style guide primer.
slmingol posted this in tips & tricks on January 25th, 2011, @ 10:00 am
Background
Have you ever wanted to minimize a window from a script, or make another window fullscreen from the command line? Or maybe get a list of all the windows that are currently open on all your virtual desktops, from a shell? Then the tool you’ve been looking for is wmctrl.
Solution
For those that are die hard command line users, wmctrl is a power users tool which can be used to accomplish a variety of tasks, that most would think are only achievable with a mouse.
wmctrl is a UNIX/Linux command line tool to interact with an EWMH/NetWM compatible X Window Manager.
The tool provides command line access to almost all the features defined in the EWMH specification. It can be used, for example, to get information about the window manager, to get a detailed list of desktops and managed windows, to switch and resize desktops, to make windows full-screen, always-above or sticky, and to activate, close, move, resize, maximize and minimize them.
Example Use Cases
- 1: List all desktops managed by WM
1
2
3
4
5
6
7
8
9
10
11
12
| % wmctrl -d
0 - DG: 5760x900 VP: 0,0 WA: 0,25 1440x826 Workspace 1
1 - DG: 5760x900 VP: 0,0 WA: 0,25 1440x826
2 * DG: 5760x900 VP: 0,0 WA: 0,25 1440x826 N/A
3 - DG: 5760x900 VP: 0,0 WA: 0,25 1440x826 N/A
# NOTES: col1 = desktop #
# col2 = active desktop (has a *)
# DG: = Desktop Geometry
# VP: = Viewport Position
# WA: = Workarea Geometry
# The last column is the name, if any is set, for the desktop |
- 2: List All Windows (includes process id + geometry)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| % wmctrl -l -p -G
0x05005bfe -1 0 360 688 1080 212 grinchy N/A
0x07000084 0 4776 256 168 1182 690 grinchy Inbox - Mozilla Thunderbird
0x06201afe 2 8578 0 98 1440 801 grinchy Untitled 1 - OpenOffice.org Writer
0x00c00003 -1 2040 0 0 1440 25 grinchy Top Panel
0x00c00028 -1 2040 0 1702 1440 49 grinchy Bottom Panel
0x06001118 2 2859 978 100 947 397 grinchy saml@grinchy:~
0x0643835b -1 6571 0 98 1440 801 grinchy Edit Post ‹ Lâmôlabs — WordPress - Mozilla Firefox
# NOTES: col1 = the window identity as a hexadecimal integer
# col2 = -1 - sticky window, # - desktop window belongs to
# col3 = process id
# col4-7 = geometry (x-offset, y-offset, width and height)
# col8 = machine name (i.e. grinchy)
# col9 = title of window |
- 3: List All Windows (same as above without the process id & geometries)
1
2
3
4
| % wmctrl -l
0x05005bfe -1 grinchy N/A
0x07000084 0 grinchy Inbox - Mozilla Thunderbird
... |
- 4: Activate a Window by name
- 5: Toggle fullscreen on active window
1
| % wmctrl -r :ACTIVE: -b toggle,fullscreen |
1
2
3
4
5
6
7
8
9
10
11
| # list all windows
% wmctrl -l
0x06001118 2 grinchy saml@grinchy:~
0x06006673 2 grinchy saml@grinchy:/home
# close a window
% wmctrl -F -c 'saml@grinchy:/home'
# check that windows closed
% wmctrl -l
0x06001118 2 grinchy saml@grinchy:~ |
Useful Links
slmingol posted this in tips & tricks on January 17th, 2011, @ 10:00 am
Background
In previous versions of Fedora the Nautilus icon would typically appear under the menu Applications -> System Tools.
 pre Fedora 14
However looking in the same location in Fedora 14, nor anywhere else, I couldn’t find an icon to launch Nautilus. Here’s “one way” to get the icon back.
Solution
Now I could just go and add the icon manually to my top panel, however I was curious if there was a more “standard” way to add it back in. The following approach seemed like a pretty easy/consistent way to do just that, with the added benefit of getting a useful tool installed that would allow me to manage my Gnome Applications menu. The tool? Alacarte.
Here’s the description right out of Alacarte’s RPM:
Summary : Menu editor for the GNOME desktop
Description :
Alacarte is a graphical menu editor that lets you edit, add, and delete
menu entries. It follows the freedesktop.org menu specification and
should work with any desktop environment that uses this specification.
I found Alacarte was available in the standard Fedora yum repo, so it’s easy to install.
Once installed a new item, called Main Menu, will be added under your System -> Preferences menu.
 ss of Main Menu
Launching Main Menu brings up the following dialog box. NOTE: This is the tool Alacarte.
 ss of Main Menu
From Main Menu’s dialog box, you’ll want to select “Other” on the left hand pane, this will reveal on the right hand pane items to add to your pull down menu. Select “File Manager” and then close the dialog box. NOTE: File Manager IS Nautilus.
 ss Main Menu with Nautilus
Now Nautilus should show up in your Applications pull down under the “Other” menu.
 ss of Nautilus
NOTE: For further details regarding my one-liner blog posts, check out my one-liner style guide primer.
|