Commits

Evan Gates  committed 2e5c77c

get rid of config.def.h

  • Participants
  • Parent commits b051045

Comments (0)

Files changed (1)

File config.def.h

-/*
- * This defines the command to run when you join a new channel or a new message
- * comes in. Use 'path' for the path to the channel's directory, 'channel' for
- * the channel name, 'out' for the out file and 'in' for the in fifo. If you
- * want to do something more complicated, write a script to put in your path and
- * execute (as with cw_color.sh), or hack away in here.
- *
- * These are just a few examples, and I trust that you can figure out how to do
- * other stuff. Of note, pcw decides when to run the command based on the
- * status of the last command it ran for a given 'path'. If the child is still
- * alive it will not run the command again (helpful for open terminals). This
- * does mean however that some ideas won't work out of the box, for instance
- * using urxvtc or screen. You should be able to add some static variables to
- * win_cmd() though and keep track for yourself. Just make sure to exit() if
- * you don't exec() as win_cmd() is being run as a child from pcw's fork()
- */
-
-void win_cmd(char *path, char *channel, char *out, char *in, char *nick)
-{
-	char prompt[32]; // sizeof(channel)
-	char *cmd[] = { "urxvt", "-title", path, "-e", "srw", "-p", prompt, "cw", out, in, NULL };
-
-	snprintf(prompt, sizeof(prompt), "%s> ", channel);
-
-	execvp(cmd[0], cmd);
-	err(1, "failed on execvp %s", cmd[0]);
-}
-
-
-/*
- * The default command
- * char *cmd[] = { "urxvt", "-title", path, "-e", "srw", "-p", prompt, "cw", out, in, NULL };
- *
- * Use this if for some reason you really don't want to use srw, it's not
- * necessary, but it makes everything much nicer, there's a reason, it's the
- * default...
- * char *cmd[] = { "urxvt", "-title", path, "-e", "cw", out, in, NULL };
- *
- * Use this if you want colors, bell on your nick, right aligned nicks, and
- * better line wrapping.  Place cw_color.sh somehwere in your path, and if you
- * want change the default NICK in it
- * char *cmd[] = { "urxvt", "-title", path, "-e", "srw", "-p", prompt, "cw_color.sh", "-i", out, "-o", in, "-n", nick, NULL };
- *
- * Use this if you want to use tabbed (http://tools.suckless.org/tabbed) so
- * that each new channel is it's own tab. Start tabbed with -d, then export the
- * window id as pcw_window_id, then start pcw. It would be fairly simple to do
- * all three steps in a script, have fun! (and you can add the color too if you
- * want)
- * char *cmd[] = { "urxvt", "-embed", getenv("pcw_window_id"), "-title", path, "-e", "srw", "-p", prompt, "cw", out, in, NULL };
- *
- * Try this command to write notifications to dzen. Clickin on a specific
- * notification in dzen will then spawn a terminal for you on that channel.
- * NOTE: alpha quality, more of a proof of concept, have fun with it
- * char *cmd[] = { "pcw_notify.sh", path, nick, NULL };
- */
-
-/* vim: set ts=4 sw=4 noexpandtab: */