genericize terminal

This commit is contained in:
Barak Michener 2013-04-22 16:59:06 -04:00
parent 5cfc43c70d
commit 662478f09d
3 changed files with 11 additions and 2 deletions

View file

@ -51,7 +51,7 @@ beautiful.init(confdir .. "/btheme/theme.lua")
naughty.config.default_preset.font = "Inconsolata 14"
-- This is used later as the default terminal and editor to run.
terminal = "gnome-terminal"
terminal = "run_terminal"
editor = os.getenv("EDITOR") or "vim"
editor_cmd = terminal .. " -e " .. editor

@ -1 +1 @@
Subproject commit 4c7e649efba289df0e7e8bb9abfa37f95b28f8ed
Subproject commit 618d884562f2b99fa62e3fb90e3531bf17396efa

9
bin/run_terminal Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
if [ -n "`which gnome-terminal`" ]; then
gnome-terminal
elif [ -n "`which urxvt`" ]; then
urxvt
else
xterm
fi