Category Archives: GNOME

Gmail Icons

Warning: I got the base design from a Google+ website. I’m not sure if these are tradmarked logos and if Google in that case if they will have a problem with them. If they do, they will be removed.

I was hoping to use this for a Gmail notification icon but it didn’t turn out that way. I saw the Gmail icon but I couldn’t find it in scalable form, so I rebuilt it. Turned out pretty good. It’s under the CC license so be free to use it, however if you like to use it in a program please ask me and give attribution. Download.

Gmail (Red)

Gmail (Blue)

Gmail (Grayscale)

Gmail – Unread (Symbolic)

Gmail – Read (Symbolic)

gedit to Geany

I’ve decided lately to switch from gedit to Geany as the default editor. I had done this before and really liked it (I didn’t want to set it up again because I didn’t remember all the settings I had changed). Geany is more religious how it handles text and I can’t really define it better than that. All I remember is that there were some odd quirks when I adjusted to gedit like selecting text; also Geany just runs beautiful, real light. Geany is a actually an IDE (an integrated development environment) so it’s more than a text editor but it can be pruned down to feel like a basic text editor and it just runs very very nice.

Settings

To get Geany to behave and feel like gedit a number of setting changes will need to be made. To make changes open up the preferences (Edit > Preferences) and change these settings in the Tabs:

General : Startup

  • Uncheck: Load virtual terminal support

General : Miscellaneous

  • Check: Always wrap search

Interface : Interface

  • Uncheck: Show sidebar
  • DropDwn: Font size for Editor: Same as system

Interface : Toolbar : Customize Toolbar Button

  • Removed: Revert, Close
  • Added: Undo and Redo
  • Removed: Back and Forward Location (Unknown use)
  • Removed: Compile, Execute, and Build
  • Removed: Color Chooser
  • Removed: Goto, Jump to (Using Ctrl + L instead)
  • Removed: Quit

Editor : Features

  • Check: Line Wrapping
  • Uncheck: Code folding (I like to see all the text)
  • Check: Newline strips trailing spaces (I find it hard remembering empty spaces)
  • Set: Line breaking column to 80 (Good for readability, more oft use)

Editor : Indentation

  • Set: Width 2 (Two space tabs break up content well without learing the eye overly)
  • Type: Spaces (Spaces translate look as expected)

Editor : Display

  • Uncheck: Show line numbers (Don’t often need to know)
  • Uncheck: Show markers margin
  • Set: Long line marker > Column to 80
  • Set: Long line marker > Color to #98A8B6

Files

  • Check: Strip trailing spaces and tabs # For a consistent, expected feel
  • Check: Replace tabs by space

After setting these preferences remove the Message Pane by unchecking View > Show Message Window.

Automatic Save

gedit has a useful feature in one of its’ options of being able to autosave files at certain intervals. To get the same functionality in Geany do:

Tools > Plugin Manager

  • Check: Save Actions
  • Select: Preferences
  • Check: Auto Save: Enable & Save all open files
  • Check: Backup Copy: Enable

Geany as Default Text Editor

xdg-mime default geany.desktop $(grep MimeType /usr/share/applications/geany.desktop | sed 's/MimeType=//' | sed 's/;/ /g')

Use Generic Text Editor Icon

Ubuntus’ icon theme has a generic text editor icon that gets tied to gedit. To be able to use it with Geany do:

cp /usr/share/applications/geany.desktop ~/.local/share/applications/
sed -i 's/^Icon=.*$/Icon=accessories-text-editor/g' ~/.local/share/applications/geany.desktop
sed -i 's/=Geany/=Text Editor/g' ~/.local/share/applications/geany.desktop
nautilus ~/.local/share/applications/

From nautilus, drag geany.desktop to Launcher

Change Colorscheme

Note: To get colorscheme support to work properly it may be necessary to install the latest version of Geany. If I understand correctly this is part the development (a.k.a. master?)‘ branch. Nightly builds for various systems can be found here.

Colorscheme support in Geany is still rudimentary. Thankfully a fellow named codebrain has done a lot of the work and it is easy. Much appreciate the work codebrain, thank you.

gny_cnf_dir=~/.config/geany															# define config dir
[ ! -d $gny_cnf_dir ] && mkdir $gny_cnf_dir             # create config dir
cd $gny_cnf_dir
[ -d $gny_cnf_dir/colorschemes ] && \
mv $gny_cnf_dir/colorschemes{,_$(date +%F-%R)}          # backup original
git clone git://github.com/codebrainz/geany-themes.git  # get repository
mv $gny_cnf_dir/geany-themes $gny_cdf_dir/colorschemes

To Do

  • Remove line wrap arrows? – I learned how to do this before from a developer and lost it; afraid to ask again.

Firefox 3 Quick Review and Setup Guide

After a few library dependency checks and a Firefox beta 5 build later, my update is 1.0 final, six day later and… phew! It’s good though since I haven’t touched my system with an update for six months.

Those that are regular viewers of this blog know that I’m a regular Epiphany user. Firefox 2 is a good browser but on my older laptop, I just found it too sluggish and resource greedy. Epiphany took alot of the fat that is the Firefox 2 frontend and put it in a lightweight GTK interface. Firefox 3 beta 5 would really need a good show for me to replace it, and it did and more. This is more of a setup guide than a review though I tossed in some pretty pictures. I’ll let the viewers decided how good Firefox 3 is.

Setting fonts

A good way to setup fonts is to use the css font value “medium” tag. The default font size set in the browser will reflect this value. I like to look at an array of font sizes to get an understanding of what font size to set. Take a look at these css samples to get a good idea of font and minimum font sizes to set.

For LCDs below 100 dpi I pretty much forget about setting a serif font. Serif fonts have many details and just aren’t easily readable unless there are enough dpi available.

Preferred Applications

I prefer to open new windows in tabs. As long as this is set in Firefox and the Preffered Applications control panel is set to use Firefox’s default, other applications opening a web page in Firefox will also use a new tab. I prefer to have the behavior of all new tabs open in the same manner though – in the background. This can be done in “about:config”(type in location bar), use the filter to find “browser.tabs.loadDivertedInBackground” and set this to true.

“about:config” yarn. I thought was pretty funny. :)

Epiphany Bookmarks Import

Firefox 3 won’t understand Epiphany’s bookmark file if imported directly. Therefore the rdf (bookmarks.rdf in ~/.gnome2/epiphany/) file will need to be converted. Thankfully the good people at Epiphany have created a translator.

Then I had select Bookmarks > Organize Bookmarks in the menu and then click the import-button. It may take a minute for the information to enter the database and may even need a restart before the bookmarks are recognized.

New Bookmarks and Location Bar

It’s going to be interesting to see just what people think of Firefox’s new location/bookmark/tag bar. The folks at Firefox are calling it the “Amazing Bar” and it is pretty cool. The tagging feature of Firefox three looks like it would be beneficial though I have no idea how to use it. I also like this idea of quick bookmarks:

Firefox 3 Quick Review and Setup Guide

Clicking the star on the right side of the location bar will bookmark the site. Unfortunately, the bookmark will not show up in the drop-down Bookmarks Menu, it’s put in a different category and isn’t seen unless the bookmarks are reorganized. I wonder if Firefox 3 is complicating bookmarking by adding this extra level.

Already a few posts I have seen had say that they don’t like the expanded all-in-one location bar. No problem and easy enough to disable: in “about:config” preference name “browser.urlbar.maxRichResults”. Also an original location bar plugin is available.

GTK Scrolling… Held back a year

Firefox developers did a good deed and implemented a scrolling system into Firefox. Mousewheel scrolling can be adjusted in “about:config”. First flip “mousewheel.withnokey.sysnumlines” to false and then tell “mousewheel.withnokey.numlines” how many lines to scroll with each click.

Prefetching

I turn fetching off because it uses fewer resources. Flip “network.prefetch-next” to false.

Final Thoughts

“Parting is such sweet sorrow”
– Shakespeare Romeo And Juliet Act 2, scene 2, 176–185

Bye-bye Epiphany, at least for… now. Sounds funny but I’m going to miss it. Epiphany is a good browser but in almost every area Firefox 3 bests it. Firefox 3 looks to be a heck of a browser: it’s fast, uses less resources, and I do like it location bar function. Though, I am going to miss Epiphany’s integrated location bar/search bar. Why there are different bars for location and search I’m just not sure. Otherwise, I think I’m good for awhile.

  • + fast, and light
  • + very very compatible on all the websites I tested
  • + location location location – location bar rocks
  • – bookmark layout
  • ? Is addons.mozilla.org run my the president of Firefox’s nephew?
  • Related Links

Using Feh as the Default Picture Browser

Using Feh as the Default Picture BrowserI schmoozed yesterday about Feh being a very proficient picture browser for a lightweight desktop. Feh though is twiggy and needs some lovin’ to work well on the desktop.

Feh’s functions are used from the command line, there is no desktop entry for it. Feh can be specified as the default browser in the typical Gnome/XFCE fashion, by right-clicking on the file, then Properties, then what application to open Feh with. Feh will not show up in the preferred application dialog so select “custom command” and enter feh manually. For example feh and the settings I use:

feh --auto-zoom --geometry 500x375 --sort filename --fontpath /usr/share/fonts/consolas --menu-font CANDARA/9

This uses feh’s auto zoom mode which zooms the image’s size to fit the window. To view the picture’s normal size just middle click on it. Double clicking though will only open feh in single-browser mode so I guess we’re kinda screwed. Not really. :) We can build a bash script to use through nautilus as the next best thing.

#!/bin/bash

feh --auto-zoom --geometry 500x375 --sort filename --fontpath /usr/share/fonts/consolas --menu-font CANDARA/9 *.[p,j,g][n,p,i][g,f]

Put the script in ~/.gnome2/nautilus-scripts/ and now right clicking and selecting the script will load Feh in browser-mode.

The action is similiar for Thunar (XFCE’s file manager). In Thunar select Edit then Custom Actions. Thunar has some built in script abilities. So the above line can just be pasted in. That’s it enjoy Feh.

Gnome to abandon GTK+ framework for QT

Gnome to abandon GTK+ framework for QTNote: The following is an April Fool’s day joke and as some people pointed out – a bad one :) . Don’t break your headband or get mad at your grandparents.

Gnome announced today it it will be abandoning it’s application framework GTK+ in favor of QT, sources inside Gnome say. “The incredible reliability and robustness of QT” has been admired by Gnome developers for years one developer told me, “and we can’t see not leveraging that for the benefit of our users.” Discussions in #gnome have been heated at best as developers point out that the “browse as root button” in KDE has no similar equivalent in Gnome and the entire task bar can be made transparent in KDE while not all parts of the panel can be in Gnome. Other developers have been upset that GTK+ apps don’t display enough options or don’t use enough screen real estate.

All Gnome applications will be ported to QT as soon as “reasonably possibly” quotes Gnome’s ice cream man. “while other GTK+ heavy apps may be abandoned” to their QT brethren. How long will the transition take? Vincent says, “All in all most GTK+ apps will be ported by Gnome 2.24, with a few stragglers left behind.” The reason for the quick transition? “Most Gnome developers have been thinking about this for years and have already begun the process.” So good news for desktop users in Linux in the near future.

Lightweight Linux – A Look at Fbpanel.

As I’ve been working on my desktop, I’ve been steadiy decreasing my use of Gnome applications. Gnome is still a lighter-weight desktop, heck I’m using it on a 300MHz laptop, but some items are less responsive than I’d like.

I’ve wrote before about replacing Gnome’s Nautilus file-browser with XFCE’s Thunar and about a Gnome Terminal Replacement. I’ve thought about going to a full fluxbox setup but am pretty picky about the ergonomics and fung-shui-ness of my desktop which Gnome is particularly good at.

Fbpanel is a basic lightweight panel. I decided to try fbpanel not because I didn’t like or had inherant disastisfaction with Gnome panel but because of my dissatisfaction with the Gnome Menu Bar.

Lightweight Linux - A Look at Fbpanel

Fbpanel does have a configure control panel but some parts will still need to be put in by hand:

cp /usr/share/fbpanel/default ~/.fbpanel/

And edit to taste.

Fbpanel has support for launchers, hiding applications, notification area, and it’s own menu. To replace gnome-panel with fbpanel gnome-session will need to release gnome-panel, and notification apps will need to be restarted.

gnome-session-remove gnome-panel && fbpanel && zim && nm-applet --sm-disable

Putting this in the ~/.xinitrc should do the job to have Gnome start this way.

Fbpanel is really well written (in C nonetheless) and responds that way. In fact, gnome-panel was written on fbpanel. Memory footprints though aren’t dramatically different with gnome-panel using 5.3MB and fbpanel 4.9. The really beautiful part of fbpanel is its menu which perfectly responsive and by far the best I’ve seen of any Linux menu yet.

Another Look at Gnome Menu Bar Alternatives

Header

After reading a post yesterday that talked about replacing the Gnome’s built-in menu applet, I began thinking why not try out the replacements for my lead-weighted Gnome Menu Bar. One of the few expectancies I have of Gnome or any other UI is to respond nearly instantly to menu selections, and to have all common selections in one interface. Gnome Menu Bar has a hiccup to it so I’d thought I’d take a look at what else is being developed.

Reading Johan’s Blog it’s pointed out that there are really only two alternatives to Gnome’s Menu Bar: slab from Novell/Suse (aka Gnome Main Menu) and Gimmie, but there is also a third: Ubuntu System Panel.

Gimmie

Gimmie reminds me alot of an application called dragthing way back on Mac OS:

To install for Gentoo users, Gimmie has an ebuild that’s handy to build Gimmie with. Those that don’t want the extaraneous crud that comes with Gentoo’s gnome-python-desktop, emerging “gnome-python-desktop --nodeps -1” isn’t a problem. Gimmie installed fine after adding four or five dependencies.

Gimmie can be used as a panel applet or a separate dock, but the dock I found obstructive and too big so I’m just covering the panel applet.

Gimmie comes by default colored like a Miami night club, “Hello ladies.” But I’m glad there’s an option to not always have it on. They still hover green, blue, pink… but no big deal I guess.

The People and Library tabs contain contacts and the documents most often used. I didn’t look into these very much as I have my own way of organizing ppl and files but they seem like they can be pretty handy.

The Programs tab is what I would most use Gimmie for and it’s categorized conviently like Gnome Menu Bar.

The Linux tab contains everything else, control panels, places, devices and media.

Gimmie has about everything I need and is fast though not as fast as I would like as the rollover effects hang a bit.

  • + quick responsive
  • + nice variation of features
  • – rollover slight drag
  • – big big
  • ? “Linux Tab”?
  • ? Tomboy Notes support?

Slab a.k.a Gnome Main Menu

Suse’s custom Gnome menu has an ebuild for it too. I downloaded the ebuild (and all the patches), and updated 02-configure.in-remove-gtk-doc.patch which was outdated.

Gnome Main Menu feels like a trimmed down version of Gimmie and works exactly as it was designed to do: a lighter replacement for Gnome’s Menu Bar. It does take the same load time though (5 to 10 seconds) but once it does it’s nice and responsive. Gnome Main Menu has no applications setup by default – favorites must be added manually. I was hoping applications would get added by the frequency they are used but no luck. So I added my favorites and found that its really nice to be able to start these applications as quickly as I did. Despite this feature being really useful it also becomes a crutch as any applications that are not favorites had to be opened through launching a second window. Gnome Main Menu also creates a folder called Documents in my home directory. Not good. I have my own way of organizing my documents so this didn’t make me happy.

GMM is good in the basics. I like GMM’s hover buttons that give one click behavior over Gimmies double click one. Also, GMM has no preferences which surprisingly didn’t’ disturb me at all as it was well configured.

  • + Light, fast, mean and trim.
  • + easy to learn and use
  • – big size
  • – Document folder – oh boy.

Ubuntu System Panel

I haven’t tried USP but some people really like it. I’ll refer you to makeuseof for the review.

Conclusion

If I were to choose between the two, it would depend on my situation. Gimmie could be useful to beginners who could be sedated by finding most of what they need in the menu while GMM just works nice for basic (8-10) app users that don’t need the frills and likes the speed.

For now though… I’m sticking with Gnome’s Menu Bar. Though it doesn’t preload the menu and sometimes loses the cached icons its still the quickest way I can get to all the apps I need.

Quick Tip: Gnome Menu Bar has a built-in delay when sliding over categories. Add to or create a ~/.gtkrc-2.0 file and add:

vim ~/.gtkrc-2.0
gtk-menu-popup-delay = 0"| tee -a .gtkrc-2.0

for a lower menu delay (does cause a harmless gtk warning)

Quick Tip – Gnome Color Chooser – Color Chart

Gnome Color Chooser - Color ChartI wrote about configuring the Gnome Color Chooser last week and got my fixing eyes and fingers more into it. The degree to how customizable the Gnome desktop is really incredible if not a bit overbearing. So, I’ve made a reference chart too help me in the future to quicken the process.

For customizing, I use freakcode’s Si Pack here – customizations may vary depending on the theme used.

gnome-color-chooser-color-chart.png

Matched Colors

To carry the theme, these are the colors I matched.

In the Normal section:

I matched the hover fg to Entry hover fg.

In the Entry Fields section:

I matched selected bg to Normal selected fg, selected fg and alt.
selected fg to Normal hover bg.

The alt selected bg matches Normal hover fg.

And the disabled bg also matches the Normal disabled bg.

Sidenote

I’m testing vimpress to write and publish this post. I’ve been studying
this week on vim and this is all very very interesting.

Follow

Get every new post delivered to your Inbox.

Join 57 other followers