player is a small yet very powerfull mplayer wrapper script, I love mplayer but I really hated the fact that everytime you start mplayer it starts a new mplayer process, so besides window resizing/relocating I have to close old mplayer window to replace it with the new one. What about subtitles and edl files ?? the script will search the current folder (till depth 2) for any file that matches the same movie name (with .srt or .sub extension)
You should read the script source code to understand how it works
player
1 Comment »
A while ago I was tired of editing/commenting Window Managers in .xinitrc, So I decided to look for a way to start any Window Manager, switch between them using one command line, and also make sure that the command ’startx’ starts the last Window Manager used…
The idea goes like this, the real xinitrc file will be called something else (Personally I chose .Xinitrc), .xinitrc will be a symbolic link to .xinitrc-sessions/windowmanager, and .xinitrc-sessions/windowmanager is just a small file that goes like this:
#!/bin/sh
source $HOME/.Xinitrc
So when you call startx, .Xinitrc will be called, in .Xinitrc the Window Manager name will be concluded from the file which .xinitrc links to (in this case .xinitrc-sessions/windowmanager)
To make the task even easier, instead of creating .xinitrc-sessions/* and .xinitrc link, I created a small and simple bash script which will create all the required files/links needed to launch the Window Manager
example:
If I want to run fvwm, all I have to do is call:
$ xsession fvwm
I want to change to gnome, so
$ xsession gnome
and now, running:
$ startx
will launch gnome as it was the last Window Manager
Links:
.Xinitrc
xsession
No Comments »