[script] Right click open map in Nexuiz with Gnome (Ubuntu)
|
04-14-2009, 01:28 PM
(This post was last modified: 04-14-2009 05:43 PM by -z-.)
Post: #1
|
|||
|
|||
[script] Right click open map in Nexuiz with Gnome (Ubuntu)
Last night fabzor had asked me a question about opening maps with Nexuiz via a script... eventually it got out that he wanted to be able to right click a pk3 or bsp and load it with Nexuiz.
Inspire your neighbor, they'll inspire you back.I whipped up the following and thought I'd share it with you all: Open up the terminal and type the following to create the script that's going to run off the right click, and give it executable permissions. Code: cd "$HOME/.gnome2/nautilus-scripts" && touch "Open Nexuiz Map" && chmod +x "Open Nexuiz Map" && gedit "Open Nexuiz Map" & Your text editor will pop up. Paste the following code and set the variables to match your settings. Code: #!/bin/bash In your terminal again, open your Nexuiz data directory: Code: nautilus ~/.nexuiz/data Now right click a map >> scripts >> Open Nexuiz Map You can also right click open bsp's in your ~/.nexuiz/data/maps folder :) For your commandline junkies, you can add a little alias as a convenience: Code: gedit $HOME/.bashrc Add the following (with your path) to the bottom your your bashrc): Code: alias nexmap='"/home/tyler/.gnome2/nautilus-scripts/Open Nexuiz Map"' Save and close, type: Code: bash Code: cd ~/.nexuiz/data [url=http://maps.nexuizninjaz.com]maps.nn[/url] | [url=http://pics.nexuizninjaz.com]pics.nn[/url] | [url=http://chat.nexuizninjaz.com]chat.nn[/url] | [url=http://toolz.nexuizninjaz.com/cvar]2.5 cvar browser[/url] |
|||
« Next Oldest | Next Newest »
|