This article describes a very nice tip on how to switch between windows and linux using one command (or click
), I was tired of forgetting to stop grub to select windows and of searching on the internet if someone has already done this, so I’ve created the scripts myself.
Requirement:
- The scripts require a fully working GRUB installed on MBR of your hard disk.
- Your boot partition must be either ext2 or ext3.
On Linux::
Download the functions folder as well as the files colors and Go2windows, put all the files in the same folder, now if you do:
$ ./Go2windows
and confirm, your computer should reboot directly on windows.
On Windows:
Download all the contents of this folder also read very carefully this file before doing anything, now once you have installed all the required programs, if you double click Go2Linux, your windows should reboot in about 10 seconds directly into linux.
1 Comment »
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 »
Hello,
I was intending to re-open my blog for some time now, And I finally did today, I used the popular wordpress for it’s simplicity and of course k2 theme, I intend to write some articles about the tools (scripts) that I’ve recently made, and some of my configs…
Oh and by the way, my configs are here
Looking forward to my next post.
3 Comments »