Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Howto: dwm configuration and installation
Re: Howto: dwm configuration and installation
Try installing the package `libxft-dev'
See this thread for more details: http://crunchbang.org/forums/viewtopic.php?id=22523, particularly the posts by Unia.
OR - perhaps try using the pango patch which has a few more features instead of the xft patch
(from what I've read - I've never used either of them)
http://dwm.suckless.org/patches/pango
See this thread for more details: http://crunchbang.org/forums/viewtopic.php?id=22523, particularly the posts by Unia.
OR - perhaps try using the pango patch which has a few more features instead of the xft patch
(from what I've read - I've never used either of them)
http://dwm.suckless.org/patches/pango
-
- Posts: 7
- Joined: 2014-06-14 04:23
Re: Howto: dwm configuration and installation
Thanks, I have installed pango (need some libpango dependencies) and I can apply ttf for the topbar. But the tabbar i had patched before is blank without title name. Pango and tab seem to be conflict patches.
Re: Howto: dwm configuration and installation
You could always try `tabbed'
http://tools.suckless.org/tabbed/
rather than patching dwm if the patches are giving you problems
http://tools.suckless.org/tabbed/
rather than patching dwm if the patches are giving you problems
Re: Howto: dwm configuration and installation
Can we post any other issues/problems/requests here? Or is this thread just for initial dwm configuration?
There is no Minimize feature because the concept of Workspaces is altered. So "tabs" are used instead. I was wondering if there was a way to hide windows instead? The reason is to expose the background.
Is it just me or does Debian rock??
There is no Minimize feature because the concept of Workspaces is altered. So "tabs" are used instead. I was wondering if there was a way to hide windows instead? The reason is to expose the background.
Is it just me or does Debian rock??
Re: Howto: dwm configuration and installation
Why not...DebbyIan wrote:Can we post any other issues/problems/requests here? Or is this thread just for initial dwm configuration?
Well, that kind of defeats the purpose of a tiling wm, doesn't it?There is no Minimize feature because the concept of Workspaces is altered. So "tabs" are used instead. I was wondering if there was a way to hide windows instead? The reason is to expose the background.
You can just view a tag that has no windows attached to it; then all you will see is the root window (i.e. the background)
Re: Howto: dwm configuration and installation
Just a blank tag. I suppose it can be done but it's not very elegant.
I was hoping to expose the root window on any given tag and not have to specifically go to a specific tag.
I was hoping to expose the root window on any given tag and not have to specifically go to a specific tag.
Re: Howto: dwm configuration and installation
Whatever tag{s} you choose to view, if there are no windows attached to that tag{s} then you see the root window.
You don't have to go to a specific tag.
Remember: tags != workspaces - they are a bit more, well, 'dynamic' than that.
You don't have to go to a specific tag.
Remember: tags != workspaces - they are a bit more, well, 'dynamic' than that.
Re: Howto: dwm configuration and installation
Hope I'm not trolling. What the heck..
All my tags have windows attached. Dynamism could be bit more dynamic.
Well I suppose I should set up tag N + 1 and then use that.
All my tags have windows attached. Dynamism could be bit more dynamic.
Well I suppose I should set up tag N + 1 and then use that.
Re: Howto: dwm configuration and installation
DebbyIan wrote:All my tags have windows attached. Dynamism could be bit more dynamic.
What is it exactly you want to do, anyway? Do you just want to be able to temporarily hide all your windows away?
Re: Howto: dwm configuration and installation
I've simply run out of tags.
I suppose I could have a tag called "0" but oh no, Modkey + 0 is assigned to composite of all tags.
I've simply run out of the 9 tags. If you think about it, if you have one or two distinct apps per tag then 9 tags isn't nearly enough.
I suppose I could have a tag called "0" but oh no, Modkey + 0 is assigned to composite of all tags.
I've simply run out of the 9 tags. If you think about it, if you have one or two distinct apps per tag then 9 tags isn't nearly enough.
Re: Howto: dwm configuration and installation
Crikey...
I use two tags: basically "those on screen" and "those off screen", then shuffle my windows around as needed (I obviously don't use as many different programs as you though)
If you want more tags, just add them and attach them to other keys, e.g. Modkey + !, Modkey + ;, Modkey + .
I use two tags: basically "those on screen" and "those off screen", then shuffle my windows around as needed (I obviously don't use as many different programs as you though)
If you want more tags, just add them and attach them to other keys, e.g. Modkey + !, Modkey + ;, Modkey + .
Re: Howto: dwm configuration and installation
dwm-6.1
Modkey + enter does not open xterm .. damned ! where do I f*ck up ?
In config.h:
please .. 
Modkey + enter does not open xterm .. damned ! where do I f*ck up ?
In config.h:
Code: Select all
/* key definitions */
#define MODKEY Mod4Mask
Code: Select all
/* commands */
static const char *termcmd[] = { "xterm", NULL };
Code: Select all
static Key keys[] = {
{ MODKEY, XK_Return, spawn, { .v = termcmd } },
there's no business like .. your own business ..
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Howto: dwm configuration and installation
Probably best to post the entire config.h
What is the output of `make`?
What is the output of `make`?
deadbang
Re: Howto: dwm configuration and installation
config.h
Code: Select all
1 /* See LICENSE file for copyright and license details. */
2
3 /* appearance */
4 static const char *fonts[] = {
5 "terminus:size=10"
6 };
7 static const char dmenufont[] = "terminus:size=10";
8 static const char normbordercolor[] = "#444444";
9 static const char normbgcolor[] = "#000000";
10 static const char normfgcolor[] = "#bbbbbb";
11 static const char selbordercolor[] = "#005577";
12 static const char selbgcolor[] = "#000000";
13 static const char selfgcolor[] = "#eeeeee";
14 static const unsigned int borderpx = 2; /* border pixel of windows */
15 static const unsigned int snap = 32; /* snap pixel */
16 static const int showbar = 0; /* 0 means no bar */
17 static const int topbar = 1; /* 0 means bottom bar */
18
19 /* tagging */
20 static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
21
22 static const Rule rules[] = {
23 /* xprop(1):
24 * WM_CLASS(STRING) = instance, class
25 * WM_NAME(STRING) = title
26 */
27 /* class instance title tags mask isfloating monitor */
28 { "Gimp", NULL, NULL, 0, 1, -1 },
29 { "Firefox", NULL, NULL, 1 << 8, 0, -1 },
30 };
31
32 /* layout(s) */
33 static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
34 static const int nmaster = 1; /* number of clients in master area */
35 static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */
36
37 static const Layout layouts[] = {
38 /* symbol arrange function */
39 { "[]=", tile }, /* first entry is default */
40 { "><>", NULL }, /* no layout function means floating behavior */
41 { "[M]", monocle },
42 };
43
44 /* key definitions */
45 #define MODKEY Mod4Mask
46 #define TAGKEYS(KEY,TAG) \
47 { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
48 { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
49 { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
50 { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
51
52 /* helper for spawning shell commands in the pre dwm-5.0 fashion */
53 #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
54
55 /* commands */
56 static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
57 static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "- nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
58 static const char *termcmd[] = { "xterm", NULL };
59
60 static Key keys[] = {
61 /* modifier key function argument */
62 { MODKEY, XK_p, spawn, {.v = dmenucmd } },
63 { MODKEY, XK_Return, spawn, {.v = termcmd } },
64 { MODKEY, XK_b, togglebar, {0} },
65 { MODKEY, XK_j, focusstack, {.i = +1 } },
66 { MODKEY, XK_k, focusstack, {.i = -1 } },
67 { MODKEY, XK_i, incnmaster, {.i = +1 } },
68 { MODKEY, XK_d, incnmaster, {.i = -1 } },
69 { MODKEY, XK_h, setmfact, {.f = -0.05} },
70 { MODKEY, XK_l, setmfact, {.f = +0.05} },
71 { MODKEY|ShiftMask, XK_Return, zoom, {0} },
72 { MODKEY, XK_Tab, view, {0} },
73 { MODKEY|ShiftMask, XK_c, killclient, {0} },
74 { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
75 { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
76 { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
77 { MODKEY, XK_space, setlayout, {0} },
78 { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
79 { MODKEY, XK_0, view, {.ui = ~0 } },
80 { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
81 { MODKEY, XK_comma, focusmon, {.i = -1 } },
82 { MODKEY, XK_period, focusmon, {.i = +1 } },
83 { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
84 { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
85 TAGKEYS( XK_1, 0)
86 TAGKEYS( XK_2, 1)
87 TAGKEYS( XK_3, 2)
88 TAGKEYS( XK_4, 3)
89 TAGKEYS( XK_5, 4)
90 TAGKEYS( XK_6, 5)
91 TAGKEYS( XK_7, 6)
92 TAGKEYS( XK_8, 7)
93 TAGKEYS( XK_9, 8)
94 { MODKEY|ShiftMask, XK_q, quit, {0} },
95 };
96
97 /* button definitions */
98 /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
99 static Button buttons[] = {
100 /* click event mask button function argument */
101 { ClkLtSymbol, 0, Button1, setlayout, {0} },
102 { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
103 { ClkWinTitle, 0, Button2, zoom, {0} },
104 { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
105 { ClkClientWin, MODKEY, Button1, movemouse, {0} },
106 { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
107 { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
108 { ClkTagBar, 0, Button1, view, {0} },
109 { ClkTagBar, 0, Button3, toggleview, {0} },
110 { ClkTagBar, MODKEY, Button1, tag, {0} },
111 { ClkTagBar, MODKEY, Button3, toggletag, {0} },
112 };
113
there's no business like .. your own business ..
Re: Howto: dwm configuration and installation
make clean install
Code: Select all
[root@debian: dwm ] make clean install
cleaning
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION="6.1" -DXINERAMA
LDFLAGS = -s -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft
CC = cc
CC drw.c
CC dwm.c
CC util.c
CC -o dwm
installing executable file to /usr/local/bin
installing manual page to /usr/local/share/man/man1
[root@debian: dwm ]
there's no business like .. your own business ..
Re: Howto: dwm configuration and installation
Rest of the keybinds work .... ^M+p .. xterm .. opens my xterm ..
there's no business like .. your own business ..
Re: Howto: dwm configuration and installation
.. and some more info:
Code: Select all
[fvb@debian: ~ ] cat /etc/debian_version
stretch/sid
Code: Select all
[fvb@debian: ~ ] uname -a
Linux debian 4.3.0-1-686-pae #1 SMP Debian 4.3.5-1 (2016-02-06) i686 GNU/Linux
[fvb@debian: ~ ]
there's no business like .. your own business ..
Re: Howto: dwm configuration and installation
Hmm, everything looks ok to me.
A couple of tests to try:
- does the keybind for 'zoom' work? (MOD + Shift + Return, Line 71 in your config.h)
- does the mousebind for 'termcmd' work? (Button 2 on status text, Line 104)
A couple of tests to try:
- does the keybind for 'zoom' work? (MOD + Shift + Return, Line 71 in your config.h)
- does the mousebind for 'termcmd' work? (Button 2 on status text, Line 104)
Re: Howto: dwm configuration and installation
No .. doesn't do anythingLoomx wrote:Hmm, everything looks ok to me.
A couple of tests to try:
- does the keybind for 'zoom' work? (MOD + Shift + Return, Line 71 in your config.h)
- does the mousebind for 'termcmd' work? (Button 2 on status text, Line 104)
there's no business like .. your own business ..
Re: Howto: dwm configuration and installation
Neither one works?
1. If the 'zoom' keybind doesn't work, a common factor with your original issue would be the use of the Return key.
If you run `xev' in a terminal then press the Return key, what keycode does it give? e.g. "Return" or "Enter" or similar
2. If this one doesn't work, that would indicate something wrong with the 'termcmd' command, but it looks ok. Does it work if you bind it to another keybind, e.g. Mod-s ?
(Are you sure you were clicking mouse button 2, i.e. the middle mouse button, on the statusbar text, i.e. the window title?)
1. If the 'zoom' keybind doesn't work, a common factor with your original issue would be the use of the Return key.
If you run `xev' in a terminal then press the Return key, what keycode does it give? e.g. "Return" or "Enter" or similar
2. If this one doesn't work, that would indicate something wrong with the 'termcmd' command, but it looks ok. Does it work if you bind it to another keybind, e.g. Mod-s ?
(Are you sure you were clicking mouse button 2, i.e. the middle mouse button, on the statusbar text, i.e. the window title?)