about summary refs log tree commit diff stats
path: root/dwm.1
Commit message (Expand)AuthorAgeFilesLines
* updated dwm(1)Anselm R Garbe2008-03-121-24/+24
* new stuffAnselm R Garbe2008-03-061-2/+5
* implemented the stuff as I discussed on dwm@Anselm R Garbe2008-03-051-9/+6
* renamed maximise to monocle again.Anselm R Garbe2008-03-051-11/+2
* renamed monocle into maxmise, documented the keybindings in dwm(1)anselm@anselm12008-03-041-12/+19
* simplified Mod-mAnselm R. Garbe2007-12-091-1/+1
* implemented reapply for re-applying the tagging rules during runtime, Mod-rAnselm R. Garbe2007-12-081-0/+3
* added Mod1-Tab description to dwm.1Anselm R. Garbe2007-10-101-0/+3
* fixed man pageAnselm R. Garbe2007-09-301-1/+1
* applied Peter Hartlich's togglemax patch to allow toggling tiled clients to m...Anselm R. Garbe2007-09-181-1/+1
* made all stuff non-static - so you can choose wether to use dwm the static or...arg@suckless.org2007-09-171-1/+1
* Mod1-Button2 on a floating but not-fixed client will make it tiled againAnselm R. Garbe2007-09-161-1/+1
* now tiled windows can be resized/moved, their floating state will be toggled ...Anselm R. Garbe2007-09-161-2/+2
* prepared 4.4.1 bugfix and minor feature enhancement release 4.4.1Anselm R. Garbe2007-08-261-1/+1
* removed VRATIO, NMASTER, inc*(), renamed HRATIO into MASTER, see mailinglist ...Anselm R. Garbe2007-08-101-17/+5
* applied Jukka's dwm.1 patchAnselm R. Garbe2007-08-051-6/+6
* changed shortcuts as described on the mailinglist, added sanity checks for ra...Anselm R. Garbe2007-08-051-6/+12
* added new Mod1-b functionality to dwm(1)Anselm R. Garbe2007-05-151-0/+3
* added the GTK Save-As bug report to BUGS section of dwm(1)Anselm R. Garbe2007-05-141-0/+8
* Escape -s in dwm.1Anselm R. Garbe2007-02-261-25/+25
* replacing Mod1-i with Mod1-Shift-j, Mod1-d with Mod1-Shift-kAnselm R. Garbe2007-02-231-6/+6
* well I agree to several people claiming h/j/k/l is the better default than Ta...Anselm R. Garbe2007-02-231-5/+5
* renamed untiled into floating, keeping tiled instead of tiling (afaik tiled s...Anselm R. Garbe2007-02-221-11/+11
* hahaha, untiled and non-untiled sounded really cumbersomeAnselm R. Garbe2007-02-221-1/+1
* renamed versatile into untiledAnselm R. Garbe2007-02-221-19/+19
* restoring default keybindings as Sander complainedAnselm R. Garbe2007-02-221-4/+4
* removed button4/5-bindings for incnmaster on mode label - that is misleadingAnselm R. Garbe2007-02-221-6/+0
* fixed order of key bindings described in dwm.1Anselm R. Garbe2007-02-221-5/+5
* reusing drawsquare for client title, empty square before title means versatil...Anselm R. Garbe2007-02-221-4/+5
* dwm draws a small caret before the client title if it's a versatile clientAnselm R. Garbe2007-02-221-5/+6
* several changes, made togglemax extern and separated it from zoom() - moved z...Anselm R. Garbe2007-02-221-6/+9
* renames swim[ming] into versatileAnselm R. Garbe2007-02-191-10/+10
* renamed floating into swimming (this does not clash with C naming conventions...Anselm R. Garbe2007-02-191-10/+10
* introduced Layout structAnselm R. Garbe2007-02-191-19/+19
* bugfix of bugfix (thx to Sander)Anselm R. Garbe2007-02-121-1/+1
* fixed a bugAnselm R. Garbe2007-02-121-1/+1
* during writing 2wm.1 I noticed some bugs in dwm.1Anselm R. Garbe2007-02-121-3/+3
* regarding to http://plan9.bell-labs.com/sources/contrib/rsc/man.ps the BUGS s...Anselm R. Garbe2007-01-261-2/+2
* renamed CAVEATS into BUGSAnselm R. Garbe2007-01-261-1/+1
* moved BORDERPX to config.*.hAnselm R. Garbe2007-01-171-1/+1
* removed client title barAnselm R. Garbe2007-01-141-1/+0
* added Button{4,5} description to dwm.1Anselm R. Garbe2007-01-101-0/+6
* small grammar fix of dwm.1Anselm R. Garbe2007-01-071-2/+2
* changed a term in dwm.1Anselm R. Garbe2007-01-071-1/+1
* removed the term clients from dwm.1Anselm R. Garbe2007-01-051-3/+3
* changed shortcuts to M-i and M-dAnselm R. Garbe2007-01-051-2/+2
* changed plus key to MODKEY-Shift-plus (US-layout restrictions ;)Anselm R. Garbe2007-01-051-1/+1
* added MODKEY-{plus,minus} shortcuts (increasing/decreasing master clients)Anselm R. Garbe2007-01-051-0/+6
* applied Sanders patch 2.7arg@mig292006-12-131-3/+3
* fixed man page, status bar displays EOF instead of "broken pipe"arg@mig292006-12-131-1/+1
/span>(JABBER_DISCONNECTED); } void cmd_bookmark_shows_message_when_disconnecting(void **state) { test_with_connection_status(JABBER_DISCONNECTING); } void cmd_bookmark_shows_message_when_connecting(void **state) { test_with_connection_status(JABBER_CONNECTING); } void cmd_bookmark_shows_message_when_started(void **state) { test_with_connection_status(JABBER_STARTED); } void cmd_bookmark_shows_message_when_undefined(void **state) { test_with_connection_status(JABBER_UNDEFINED); } void cmd_bookmark_shows_usage_when_no_args(void **state) { CommandHelp *help = malloc(sizeof(CommandHelp)); help->usage = "some usage"; gchar *args[] = { NULL }; ProfWin window; window.type = WIN_CONSOLE; will_return(jabber_get_connection_status, JABBER_CONNECTED); expect_cons_show("Usage: some usage"); gboolean result = cmd_bookmark(&window, args, *help); assert_true(result); free(help); } static void _free_bookmark(Bookmark *bookmark) { free(bookmark->jid); free(bookmark->nick); free(bookmark); } static gboolean _cmp_bookmark(Bookmark *bm1, Bookmark *bm2) { if (strcmp(bm1->jid, bm2->jid) != 0) { return FALSE; } if (strcmp(bm1->nick, bm2->nick) != 0) { return FALSE; } if (bm1->autojoin != bm2->autojoin) { return FALSE; } return TRUE; } void cmd_bookmark_list_shows_bookmarks(void **state) { CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "list", NULL }; GList *bookmarks = NULL; ProfWin window; window.type = WIN_CONSOLE; Bookmark *bm1 = malloc(sizeof(Bookmark)); bm1->jid = strdup("room1@conf.org"); bm1->nick = strdup("bob"); bm1->autojoin = FALSE; Bookmark *bm2 = malloc(sizeof(Bookmark)); bm2->jid = strdup("room2@conf.org"); bm2->nick = strdup("steve"); bm2->autojoin = TRUE; Bookmark *bm3 = malloc(sizeof(Bookmark)); bm3->jid = strdup("room3@conf.org"); bm3->nick = strdup("dave"); bm3->autojoin = TRUE; Bookmark *bm4 = malloc(sizeof(Bookmark)); bm4->jid = strdup("room4@conf.org"); bm4->nick = strdup("james"); bm4->autojoin = FALSE; Bookmark *bm5 = malloc(sizeof(Bookmark)); bm5->jid = strdup("room5@conf.org"); bm5->nick = strdup("mike"); bm5->autojoin = FALSE; bookmarks = g_list_append(bookmarks, bm1); bookmarks = g_list_append(bookmarks, bm2); bookmarks = g_list_append(bookmarks, bm3); bookmarks = g_list_append(bookmarks, bm4); bookmarks = g_list_append(bookmarks, bm5); will_return(jabber_get_connection_status, JABBER_CONNECTED); will_return(bookmark_get_list, bookmarks); // TODO - Custom list compare glist_set_cmp((GCompareFunc)_cmp_bookmark); expect_any(cons_show_bookmarks, list); gboolean result = cmd_bookmark(&window, args, *help); assert_true(result); free(help); g_list_free_full(bookmarks, (GDestroyNotify)_free_bookmark); } void cmd_bookmark_add_shows_message_when_invalid_jid(void **state) { char *jid = "room"; CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "add", jid, NULL }; ProfWin window; window.type = WIN_CONSOLE; will_return(jabber_get_connection_status, JABBER_CONNECTED); expect_cons_show("Can't add bookmark with JID 'room'; should be 'room@domain.tld'"); gboolean result = cmd_bookmark(&window, args, *help); assert_true(result); free(help); } void cmd_bookmark_add_adds_bookmark_with_jid(void **state) { char *jid = "room@conf.server"; CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "add", jid, NULL }; ProfWin window; window.type = WIN_CONSOLE; will_return(jabber_get_connection_status, JABBER_CONNECTED); expect_string(bookmark_add, jid, jid); expect_any(bookmark_add, nick); expect_any(bookmark_add, password); expect_any(bookmark_add, autojoin_str); will_return(bookmark_add, TRUE); expect_cons_show("Bookmark added for room@conf.server."); gboolean result = cmd_bookmark(&window, args, *help); assert_true(result); free(help); } void cmd_bookmark_add_adds_bookmark_with_jid_nick(void **state) { char *jid = "room@conf.server"; char *nick = "bob"; CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "add", jid, "nick", nick, NULL }; ProfWin window; window.type = WIN_CONSOLE; will_return(jabber_get_connection_status, JABBER_CONNECTED); expect_string(bookmark_add, jid, jid); expect_string(bookmark_add, nick, nick); expect_any(bookmark_add, password); expect_any(bookmark_add, autojoin_str); will_return(bookmark_add, TRUE); expect_cons_show("Bookmark added for room@conf.server."); gboolean result = cmd_bookmark(&window, args, *help); assert_true(result); free(help); } void cmd_bookmark_add_adds_bookmark_with_jid_autojoin(void **state) { char *jid = "room@conf.server"; CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "add", jid, "autojoin", "on", NULL }; ProfWin window; window.type = WIN_CONSOLE; will_return(jabber_get_connection_status, JABBER_CONNECTED); expect_string(bookmark_add, jid, jid); expect_any(bookmark_add, nick); expect_any(bookmark_add, password); expect_string(bookmark_add, autojoin_str, "on"); will_return(bookmark_add, TRUE); expect_cons_show("Bookmark added for room@conf.server."); gboolean result = cmd_bookmark(&window, args, *help); assert_true(result); free(help); } void cmd_bookmark_add_adds_bookmark_with_jid_nick_autojoin(void **state) { char *jid = "room@conf.server"; char *nick = "bob"; CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "add", jid, "nick", nick, "autojoin", "on", NULL }; ProfWin window; window.type = WIN_CONSOLE; will_return(jabber_get_connection_status, JABBER_CONNECTED); expect_string(bookmark_add, jid, jid); expect_string(bookmark_add, nick, nick); expect_any(bookmark_add, password); expect_string(bookmark_add, autojoin_str, "on"); will_return(bookmark_add, TRUE); expect_cons_show("Bookmark added for room@conf.server."); gboolean result = cmd_bookmark(&window, args, *help); assert_true(result); free(help); } void cmd_bookmark_remove_removes_bookmark(void **state) { char *jid = "room@conf.server"; CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "remove", jid, NULL }; ProfWin window; window.type = WIN_CONSOLE; will_return(jabber_get_connection_status, JABBER_CONNECTED); expect_string(bookmark_remove, jid, jid); will_return(bookmark_remove, TRUE); expect_cons_show("Bookmark removed for room@conf.server."); gboolean result = cmd_bookmark(&window, args, *help); assert_true(result); free(help); } void cmd_bookmark_remove_shows_message_when_no_bookmark(void **state) { char *jid = "room@conf.server"; CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "remove", jid, NULL }; ProfWin window; window.type = WIN_CONSOLE; will_return(jabber_get_connection_status, JABBER_CONNECTED); expect_any(bookmark_remove, jid); will_return(bookmark_remove, FALSE); expect_cons_show("No bookmark exists for room@conf.server."); gboolean result = cmd_bookmark(&window, args, *help); assert_true(result); free(help); }