You are not logged in.

#1 2010-09-13 20:08:50

Iason
Member
From: Siatista-Kozani, Macedonia, GR
Registered: 2010-09-09
Posts: 17

[SOLVED] How to run programs in dwm?

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

#2 2010-09-13 20:11:42

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [SOLVED] How to run programs in dwm?

Wiki

Make sure dmenu is installed. Look in config.h for the default keybinding to launch dmenu.

Scott

Offline

#3 2010-09-13 20:13:15

codycarey
Member
Registered: 2009-08-21
Posts: 154

Re: [SOLVED] How to run programs in dwm?

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

#4 2010-09-13 20:18:29

Iason
Member
From: Siatista-Kozani, Macedonia, GR
Registered: 2010-09-09
Posts: 17

Re: [SOLVED] How to run programs in dwm?

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

#5 2010-09-13 20:26:31

codycarey
Member
Registered: 2009-08-21
Posts: 154

Re: [SOLVED] How to run programs in dwm?

Do you have a ~/dwm/ or ~/.config/dwm/ directory?

Last edited by codycarey (2010-09-13 20:27:12)

Offline

#6 2010-09-13 20:28:51

warenoso
Member
From: Brisbane
Registered: 2010-08-06
Posts: 76

Re: [SOLVED] How to run programs in dwm?

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

#7 2010-09-13 20:31:16

saline
Member
Registered: 2010-02-20
Posts: 86

Re: [SOLVED] How to run programs in dwm?

I believe the default is Alt+p

Offline

#8 2010-09-13 20:35:31

codycarey
Member
Registered: 2009-08-21
Posts: 154

Re: [SOLVED] How to run programs in dwm?

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

#9 2010-09-13 20:49:31

Iason
Member
From: Siatista-Kozani, Macedonia, GR
Registered: 2010-09-09
Posts: 17

Re: [SOLVED] How to run programs in dwm?

YES! Its ALT+P, thanks guys!  SOLVED.

codycarey wrote:
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

#10 2010-09-13 20:53:00

warenoso
Member
From: Brisbane
Registered: 2010-08-06
Posts: 76

Re: [SOLVED] How to run programs in dwm?

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

#11 2010-09-13 23:52:26

Slax
Member
Registered: 2010-08-11
Posts: 39

Re: [SOLVED] How to run programs in dwm?

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

Board footer

Powered by FluxBB