Xfce

Subdomains
 

Easy remote access with Thunar

  • October 12, 2007
  • Mike Massonnet
Update: This is deprecated in favor of gvfs.

Networking support is a hot topic in Thunar, and the most probable answer to a user will be one of the many FUSE tools. For Samba you can use fusesmb. For fish protocol and the like you can use sshfs. The benefit of a FUSE tool is that your remote data is accessible as it were on your file system. This results in the fact that all your applications can access the data, and not only the applications that implement a special API. There is never a need for high privilege, so every user can mount remote data from machines where they already have access. To unmount a fuse file system use the command “fusermount -u /mount/point”.

Fusesmb

Here is a little usage example for fusesmb to show how easy it works.
% fusesmb samba
% ls samba
WORKGROUP MASSONNET
% ls samba/MASSONNET
M8T
% ls samba/MASSONNET/M8T
share music movies cdrom
And if the listed networks are empty or outdated run the fusesmb.cache command:
% fusesmb.cache samba

Sshfs(.sh)

As a prerequisite use an authentication with keys — there are tons of HOWTOs for that and I just picked up that one — otherwise you will be prompted for your password and this is a no-go for a Thunar custom action, unless you set up ssh-askpass…

Sshfs works as simple as “sshfs user@host: /mount/point” to mount the home directory from user on host. I arranged me a tricky Shell script to ease the mount even more. The script takes the hostname — the SSH server — and no further arguments. The hostname is also used as mount point, so you can basically have one directory with several sub-directories, each named after your remote hosts. If the mount point doesn't exist it is created on the fly.
% sshfs.sh /sshfs/m8t
% sshfs.sh /sshfs/someuser@funkyhost
% sshfs.sh myhost.mine.nu

Thunar's Custom Actions

Thanks to the custom actions in Thunar, you can implement a lot of features on your own. I use the sshfs wrapper script to mount remote hosts. See how easy it is to set the next custom action up:


The custom action simply calls “sshfs.sh %n” with the name of the directory. To unmount, you would create a custom action with the command “fusermount -u %f”.

Use Epiphany to set your xfdesktop background

  • July 25, 2007
  • Mike Massonnet
Hi ladies ang guys,

As of my blog entry auto-update-background-list-for-xfdesktop I used to tell how I update my background with a uniq file in the background list. That worked with a shell script that 1) took as argument an image file 2) updated the background list 3) and reloaded xfdesktop.

I updated that script and put it in my git (git.m8t.mine.nu). It can now take a remote file as argument. That combined with the web browser Epiphany, you can apply a background within the browser.

Download that script and make it executable inside your $PATH.

Now run Epiphany with the extensions then:
  1. go to Tools > Extension... and enable the Actions extension
  2. After the Actions are enabled go to Edit > Actions
  3. Press Add and create an action called "Update xfdesktop background"
  4. And set the command to "set-xfdesktop-image.sh"
  5. Check Images in the Applies to
  6. Click Add.

Now go to my wallpapers gallery, choose a wallpaper (click on it to get the fullsize), and right click it. You can apply it by choosing the item "Update xfdesktop background" in the context menu.


Have fun with my hack around xfdesktop,
Mike

Marihela Xfwm theme

  • May 24, 2007
  • Mike Massonnet
I relooked a little bit the Moheli theme with some ideas that throwed my head.


You can go to my gallery, the last screenshots are the most recents. Pick this one.

Dwarf GTK+ theme for Xfce

  • May 17, 2007
  • Mike Massonnet
I was using the Xfce-stellar theme for quite more than a week now. Today I renewed that theme by using the most recent features from the Xfce GTK+ engine like gradients and borders for menu items.

It was an easy hack since both the Xfce-stellar theme and the new default for Xfce are really clean. I mostly changed colors and some other misty stuff. I choosed the name Dwarf, coming from the White Dwarf, since it has a direct relation to Stellar. If you like the next screenshot you can download the theme here: Dwarf.tar.gz.



Edit: I have done some updates while I was travelling by train. There is a gallery with several screenshots and the tarball has been updated too.

Auto update the background list for Xfdestkop

  • November 20, 2006
  • Mike Massonnet
I have written a quick script to update the list of the images for the background in Xfdesktop.

#!/bin/sh
# Update the background.list so the new downloaded wallpapers are available
# to show up in Xfdesktop.
LIST=$HOME/.config/xfce4/desktop/background.list
echo "# xfce backdrop list" > $LIST
find $HOME/images/background/ -type f >> $LIST

Note: change in the last line the folder to the backgrounds.

This script can be either putted in an .zshrc file. Or better, if you use Xfce, save the script, under the name update-desktop-list.sh for example, to your personal bin folder (in my case $HOME/.local/bin) which is correctly set in the PATH, and run xfce4-autostart-editor. You can add the command update-desktop-list.sh.

Finally you have to set up Xfdesktop to use the list (located at $LIST) of backgrounds. Go to Settings > Desktop manager, and select the list as the file. If it doesn't exist run the script a first time.

Real-transparent Terminal (yet again)

  • November 11, 2006
  • Mike Massonnet
I have looked around the patch for gnome-terminal from Kristian Høgsberg and also the one for Terminal from Benny, and I managed to do the same for Terminal again since the vte libs have been modified, and support for real-transparency has been added. It was really simple, just init the rgba colormap, and call vte_terminal_set_opacity :) It requires version 0.13.3 or higher of vte.

Now someone could come with a good solution to integrate this nicely in Terminal. I think about a hidden option in ~/.config/Terminal/terminalrc, or even a slider.

Here is a first patch. It sets a hard-coded color for the alpha channel (0xDDDD).

Edit: And here comes a second patch which adds a hidden option for the opacity (ColorOpacity). It has to be in decimal, where 0xCCCC is 52428. Don't apply it over the first patch.

Edit 2: Benny commited changes to the trunk with support for real transparency, and a check for the version of libvte.

Screenshot Terminal

Xfce4 notes plugin

  • July 24, 2006
  • Mike Massonnet
First release of the Xfce4 notes plugin for Xfce 4.4. Homepage is here:
http://goodies.xfce.org/projects/panel-plugins/xfce4-notes-plugin

All the best,
Mike

One month without any message

  • July 20, 2006
  • Mike Massonnet
I was busy. And I'm still busy.

I'm coding a new xfce4-notes-plugin for the new panel (version 4.4). It is fun :) I already have access on the webpages and the svn (or I guess so, I'm working on a local subversion at the moment). Should be released at end of the week, actually when I will add the on_delete_page callback. It supports multiple notes and some options for the window aspect (always on top, stick, show in taskbar, show at startup).

Also, I was at RMLL2006, and there was a wet man searching the reception... it was p0llux! After one day I ran sick... because of the heat. I was lug around Vandoeuvre to get in a Pharmacy (thanks guys). I didn't assist any conference all the week :/

See you in the next post about the first release of xfce4-notes-plugin.

Theming is my actual pleasure

  • May 25, 2006
  • Mike Massonnet

Xfwm4

I did some theming around the original theme of Xfce 4.4.

All I wanted was the title bar to be a bit smaller. I managed to reduce it from 6 pixels. Then I simplified the buttons. The work was quite long with redundant actions, well it is what it is. Now I have my theme :)

I posted my modifications at Xfce-look.org.

ajaxMP

I also did a theme for ajaxMP a little time ago which is based on Xfce-dawn theme (which is my current theme moreover). ajaxMP is a web interface for Music Daemon Player. I already mentionned it in the post "My current apps".

I am also working on a web design in black for a french rap production. They have very good instrumentals and I am sure the CD they are producting will kick ass. However I prefer good old Pink Floyd at this time.

Cheers.

My current apps

  • May 17, 2006
  • Mike Massonnet
Hi,

I am gonna show you my more commons applications. This will include: desktop environment, email client, chat, music, browser, news aggregator, file manager and other thingies.

Desktop Environment


It is Xfce! No you didn't guess it? even with all my Xfce related links? :-) Well I like it. I am currently using the svn version which is gonna be the next stable release, version 4.4. This also means that the svn won't see new features which could broke the code before the release.

See here how to install from svn or get the 4.4Beta1. The Beta 1 will also be available in Debian/Sid as soon as some libs get out from the NEW state.

I have a moveable panel with worspace margins. If I am missing a workspace I just type ALT+Insert. At the opposite I type ALT+Delete ;) There are nice plugins for the panel. I am using the window list plugin to not feed my display with a large panel and buttons of applications on it. I have a clipboard manager for the default and primary clipboard. There is a box execution which does autocompletion and history: verve. There is also a systray box and clock plugins. Furthermore there are monitoring plugins for network (netload), system (systemload and cpugraph) and sound (xfce4-mixer).

Email Client


I am completely amazed with Sylpheed-Claws 2.2. It does the GNUPG signatures and encryptions. It supports filtering and, something new I learned from it, treatments on folders when you enter them, for instance it is very useful to move old emails into archives. It has a systray icon and I have setup a `playsound new_mail.ogg` when I get new emails. You can read the different parts (mime types) of an email just by clicking on buttons on the side (useful for HTML docs or attached patches). I like it, actually it is ass-kicking!

Chat (IRC, Jabber)


irssi and Gajim are my all and one at the moment.

irssi always fits into a screen, and if it is not running, this is my command line: screen -S irssi irssi, and next I will be able to detach, attach, reattach, multiple attach it in any Terminal I want. Recently I received a nice screenrc from omp. With this configuration I am able to see the numbers with names of the windows at the bottom (this rocks!). In irssi you can easily add a server or a channel to auto join, an alias or set the layout. Just type /help for this commands, or better, just type /help ;) My preferred theme is madcow.

Gajim is a very good client for Jabber. It supports avatars and tabbed window chat (you can detach them of course). The file transfer works fine. Its interface is fancy and simple. For creating or adding accounts it has a three steps wizard. Oh, and maybe the most interesting aspect, it uses dbus and has a gajim-remote python script so you can command it from your own scripts.

Web Browser


As a browser of today which supports CSS, HTML, Javascript, DOM, and all the latest stuff for the web, I use Firefox. It has some very useful extensions: CustomizeGoogle, Adblock, Gmail Notifier, NoScript, Add N Edit Cookies, Web Developer, Live HTTP Headers, del.icio.us, Parent folder.

Another nice graphic browser is the one from Gnome: Epiphany. Its engine is also Gecko. However it is slow in rendering big documents (like 20 pages).

Next comes Dillo. It is my first choice because it shows up very quickly and doesn't support CSS, so you just have to scroll to the text and read it black on white :) It supports bookmarks in a nice way.

Then comes the text browsers: links (it has a graphic mode in X11 as in frame-buffer) and lynx. links supports Javascript while lynx doesn't... that's a point enough for me to have both :o)

News Aggregator


Liferea is a nice shot. You can add virtual folders to match strings on the whole news. It is very nifty to filter out topics you want to read ;)

snownews is an alternative for console-addicted.

File Manager


I'm using Thunar for a while now. It is really nice for managing images and launching videos. I have some customized actions for file types and directories (i.e. for music folders, images, opening a Terminal or archives).

It supports: mouse gesture, thumbnails, multiple views (Icon, Tree and Compact), bulk renamer for simply rename multiple files, file alteration monitor (Gamin or FAM), plugins, ...

And everything goes faster ;)

Music


The last month I tried Rhythmbox from Gnome and I didn't ended up with it. I just don't remember exactly why but I think it was because of its interface and it was the first time I saw a player without "Stop" (you will understand later ;).

Next I tried Musid Player Daemon (MPD in short). It is very attractive. It is launched as a service at boot time just after I mount my LVM devices, and starts playing. YAY, you don't need Xorg! There are many clients for MPD. For example mpc is a command line tool, fantastic for scripts. Then there is ncmpc which is a ncurses interface to control your music. Next there is gmpc, it is a simple GTK+ interface with plugins like covers, lyrics or OSD. Finally you can have web based clients. I tried ajaxmp for a better experience. It supports drag'n'drop and all possible MPD stuff. A must when you are not working on your usual desktop environment :)

As of today, I'm using Quod Libet for less than a week ago. I tried it and directly understood that this is the Multimedia Music Media Player For Lot Of Music player I want :) I didn't use all of its possibilities and features yet but it manages a collection, just like Rhythmbox and MPD, shows covers, fetches lyrics, make notations, looks pretty good, has no "Stop" button (I'm used to it now:), does cool things like playing random albums, has a lot of views and has a lot of plugins. It is promising :) Its OSD just rocks bottom. I can flood IRC with `quodlibet --print-playing` . It is definitely the coolest music player I ever had.

Id3 tags can be edited rather with EasyTAG (MP3, MP2, MP4/AAC, FLAC, Ogg Vorbis, MusePack and Monkey's Audio files), Quod Libet (Ex Falso) or a plugin for Thunar.

For console-addicted I can list: mpg123, ogg123 and mp3blaster (OSS driver) which provides a nice id3 tag viewer tool: mp3tag. playsound from the libsdl-sound package is also fine.

Thingies (rather unclassed)


Here I am gonna list some useful tools very quickly just to name them and to conclude with a nice paragraph ;)

Evince and xpdf are cool pdf viewers. Stardict is a cool dictionnary. GNU people are cool, don't hit them with stupid questions, RTFM instead. A hacked Terminal is worth a try, personnaly I changed the alpha color value from #aaa to #ccc because this way I can read something. XMoto is a funny and simple game but Noiz2sa is a must game. lftp is a good ftp client which looks like a shell. gcolor2 is a cool color selector. mplayer, VLC and Totem are good video players. Vim is useful. K3B, Gnomebaker and Xfburn can all burn CDs and DVDs. Pan and tin are for USENET. The GIMP can do cool stuff while GQview is a nice image explorer. Devil's Pie is a good window matching utility. Inkscape can do some complete vector graphics. MOC is yet another good audio player for the console. htop is a nice process explorer.

In conclusion


As you can read I cover most of all my needs with Xfce4.4. I don't wan't a desktop dependant environment especially like GNOME or KDE. Both are making good stuff but I find them quite heavy.
If you are looking for a more lightweight environment I suggest you Openbox ;)