You are not logged in.
Now that I have both a netbook and a desktop, I was wondering if it is possible to write a single .xinitrc that supports both of them, depending on the hostname of the machine it was running on? Something along the lines of:
HOST=`hostname`
if $HOST = "netbook" then
xterm -title Netbook -geometry 80x22+10+10 &
evilwm -nosoliddrag
or else
xterm -title Desktop -geometry 120x45+10+10 &
evilwm -nosoliddrag
end if
(Note: not real code)
I'm hoping to keep the dotfile on both machines in sync, and I would prefer to have just one .xinitrc if possible. Does xinit support this?
Thanks!
Offline
As it's just a bash script, it should.
Offline
I'll give it a try then. Looking through my home directory, .xinitrc is really the only dotfile I have that is machine specific. Now I just have to decide on a syncing method.
Offline