You are not logged in.
Pages: 1
how to do it?
yeah i know what you are going to say but im newb and one day someone will need same help, will do a search and will run them.
Last edited by Iason (2010-09-13 20:50:12)
Offline
There should be a full list of keyboard shortcuts in your config.h for DWM. Try Mod4+R (Mod4 is usually the 'Windows' key next to Alt) maybe, that's what it is for Awesome which is based on DWM.
Last edited by codycarey (2010-09-13 20:14:43)
Offline
mod4+R doesnt work
dmenu is already installed, i tried to open config.h with nano but it is empty (nano ~/config.h).
however, thanks for the fast answers.
Last edited by Iason (2010-09-13 20:19:56)
Offline
Do you have a ~/dwm/ or ~/.config/dwm/ directory?
Last edited by codycarey (2010-09-13 20:27:12)
Offline
How did you install dwm? abs, aur, pacman?
if you installed it from abs follow the wiki mentioned above and you will find the config.h file. Your config.h is empty because there is none in your home so you are creating a new file instead of opening the dwm's config.h .
cheers
Offline
I believe the default is Alt+p
Offline
I believe the default is Alt+p
Looks like saline is right. Here are the default key bindings if your using community/dwm
static Key keys[] = {
52 /* modifier key function argument */
53 { MODKEY, XK_p, spawn, {.v = dmenucmd } },
54 { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
55 { MODKEY, XK_b, togglebar, {0} },
56 { MODKEY, XK_j, focusstack, {.i = +1 } },
57 { MODKEY, XK_k, focusstack, {.i = -1 } },
58 { MODKEY, XK_h, setmfact, {.f = -0.05} },
59 { MODKEY, XK_l, setmfact, {.f = +0.05} },
60 { MODKEY, XK_Return, zoom, {0} },
61 { MODKEY, XK_Tab, view, {0} },
62 { MODKEY|ShiftMask, XK_c, killclient, {0} },
63 { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
64 { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
65 { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
66 { MODKEY, XK_space, setlayout, {0} },
67 { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
68 { MODKEY, XK_0, view, {.ui = ~0 } },
69 { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
70 { MODKEY, XK_comma, focusmon, {.i = -1 } },
71 { MODKEY, XK_period, focusmon, {.i = +1 } },
72 { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
73 { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
74 TAGKEYS( XK_1, 0)
75 TAGKEYS( XK_2, 1)
76 TAGKEYS( XK_3, 2)
77 TAGKEYS( XK_4, 3)
78 TAGKEYS( XK_5, 4)
79 TAGKEYS( XK_6, 5)
80 TAGKEYS( XK_7, 6)
81 TAGKEYS( XK_8, 7)
82 TAGKEYS( XK_9, 8)
83 { MODKEY|ShiftMask, XK_q, quit, {0} },
84 };
Offline
YES! Its ALT+P, thanks guys! SOLVED.
saline wrote:I believe the default is Alt+p
Looks like saline is right. Here are the default key bindings if your using community/dwm
static Key keys[] = { 52 /* modifier key function argument */ 53 { MODKEY, XK_p, spawn, {.v = dmenucmd } }, 54 { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, 55 { MODKEY, XK_b, togglebar, {0} }, 56 { MODKEY, XK_j, focusstack, {.i = +1 } }, 57 { MODKEY, XK_k, focusstack, {.i = -1 } }, 58 { MODKEY, XK_h, setmfact, {.f = -0.05} }, 59 { MODKEY, XK_l, setmfact, {.f = +0.05} }, 60 { MODKEY, XK_Return, zoom, {0} }, 61 { MODKEY, XK_Tab, view, {0} }, 62 { MODKEY|ShiftMask, XK_c, killclient, {0} }, 63 { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, 64 { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, 65 { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, 66 { MODKEY, XK_space, setlayout, {0} }, 67 { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, 68 { MODKEY, XK_0, view, {.ui = ~0 } }, 69 { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, 70 { MODKEY, XK_comma, focusmon, {.i = -1 } }, 71 { MODKEY, XK_period, focusmon, {.i = +1 } }, 72 { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, 73 { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, 74 TAGKEYS( XK_1, 0) 75 TAGKEYS( XK_2, 1) 76 TAGKEYS( XK_3, 2) 77 TAGKEYS( XK_4, 3) 78 TAGKEYS( XK_5, 4) 79 TAGKEYS( XK_6, 5) 80 TAGKEYS( XK_7, 6) 81 TAGKEYS( XK_8, 7) 82 TAGKEYS( XK_9, 8) 83 { MODKEY|ShiftMask, XK_q, quit, {0} }, 84 };
Offline
just a thought i dont know if is just me but everytime i see a [solve] solution like this i guess there will be new questions because someone give the answer to the OP but no how to get the answer. Anyway just a thought.
Offline
I just run the binary from a terminal, which is ctrl+alt+enter by default, I've it set to ctrl+win+enter because I use the alt key.
For example to run firefox I enter "firefox &" from bash. I leave that xterm on tag 9 because of debug messages and use it to open all programs which I sent to a tag with ctrl+win+[1-9]
Offline
Pages: 1