Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ofarges-dwm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FARGES Olivier
ofarges-dwm
Commits
ce846e94
Commit
ce846e94
authored
19 years ago
by
Anselm R. Garbe
Browse files
Options
Downloads
Patches
Plain Diff
added xlock command (I need it regularly)
parent
0a638a4c
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
client.c
+10
-20
10 additions, 20 deletions
client.c
dev.c
+4
-1
4 additions, 1 deletion
dev.c
dwm.h
+2
-1
2 additions, 1 deletion
dwm.h
dwm.html
+3
-3
3 additions, 3 deletions
dwm.html
with
19 additions
and
25 deletions
client.c
+
10
−
20
View file @
ce846e94
...
...
@@ -11,9 +11,7 @@
#include
"dwm.h"
static
void
floating
(
void
);
static
void
tiling
(
void
);
static
void
(
*
arrange
)(
void
)
=
floating
;
static
void
(
*
arrange
)(
void
*
)
=
floating
;
void
max
(
void
*
aux
)
...
...
@@ -24,27 +22,30 @@ max(void *aux)
stack
->
y
=
sy
;
stack
->
w
=
sw
-
2
*
stack
->
border
;
stack
->
h
=
sh
-
2
*
stack
->
border
;
craise
(
stack
);
resize
(
stack
);
discard_events
(
EnterWindowMask
);
}
static
void
floating
(
void
)
void
floating
(
void
*
aux
)
{
Client
*
c
;
arrange
=
floating
;
for
(
c
=
stack
;
c
;
c
=
c
->
snext
)
resize
(
c
);
discard_events
(
EnterWindowMask
);
}
static
void
tiling
(
void
)
void
tiling
(
void
*
aux
)
{
Client
*
c
;
int
n
,
cols
,
rows
,
gw
,
gh
,
i
,
j
;
float
rt
,
fd
;
arrange
=
tiling
;
if
(
!
clients
)
return
;
for
(
n
=
0
,
c
=
clients
;
c
;
c
=
c
->
next
,
n
++
);
...
...
@@ -75,17 +76,6 @@ tiling(void)
discard_events
(
EnterWindowMask
);
}
void
toggle
(
void
*
aux
)
{
if
(
arrange
==
floating
)
arrange
=
tiling
;
else
arrange
=
floating
;
arrange
();
}
void
sel
(
void
*
aux
)
{
...
...
@@ -280,7 +270,7 @@ manage(Window w, XWindowAttributes *wa)
GrabModeAsync
,
GrabModeSync
,
None
,
None
);
XGrabButton
(
dpy
,
Button3
,
Mod1Mask
,
c
->
win
,
False
,
ButtonPressMask
,
GrabModeAsync
,
GrabModeSync
,
None
,
None
);
arrange
();
arrange
(
NULL
);
XWarpPointer
(
dpy
,
None
,
c
->
win
,
0
,
0
,
0
,
0
,
c
->
w
/
2
,
c
->
h
/
2
);
focus
(
c
);
}
...
...
@@ -400,7 +390,7 @@ unmanage(Client *c)
XFlush
(
dpy
);
XSetErrorHandler
(
error_handler
);
XUngrabServer
(
dpy
);
arrange
();
arrange
(
NULL
);
if
(
stack
)
focus
(
stack
);
}
...
...
This diff is collapsed.
Click to expand it.
dev.c
+
4
−
1
View file @
ce846e94
...
...
@@ -17,13 +17,16 @@ const char *term[] = {
"-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*"
,
NULL
};
const
char
*
browse
[]
=
{
"firefox"
,
NULL
};
const
char
*
xlock
[]
=
{
"xlock"
,
NULL
};
static
Key
key
[]
=
{
{
Mod1Mask
,
XK_Return
,
(
void
(
*
)(
void
*
))
spawn
,
term
},
{
Mod1Mask
,
XK_w
,
(
void
(
*
)(
void
*
))
spawn
,
browse
},
{
Mod1Mask
,
XK_l
,
(
void
(
*
)(
void
*
))
spawn
,
xlock
},
{
Mod1Mask
,
XK_k
,
sel
,
"prev"
},
{
Mod1Mask
,
XK_j
,
sel
,
"next"
},
{
Mod1Mask
,
XK_space
,
toggle
,
NULL
},
{
Mod1Mask
,
XK_t
,
tiling
,
NULL
},
{
Mod1Mask
,
XK_f
,
tiling
,
NULL
},
{
Mod1Mask
,
XK_m
,
max
,
NULL
},
{
Mod1Mask
|
ShiftMask
,
XK_c
,
ckill
,
NULL
},
{
Mod1Mask
|
ShiftMask
,
XK_q
,
quit
,
NULL
},
...
...
This diff is collapsed.
Click to expand it.
dwm.h
+
2
−
1
View file @
ce846e94
...
...
@@ -100,7 +100,8 @@ extern void lower(Client *c);
extern
void
ckill
(
void
*
aux
);
extern
void
sel
(
void
*
aux
);
extern
void
max
(
void
*
aux
);
extern
void
toggle
(
void
*
aux
);
extern
void
floating
(
void
*
aux
);
extern
void
tiling
(
void
*
aux
);
extern
void
gravitate
(
Client
*
c
,
Bool
invert
);
/* draw.c */
...
...
This diff is collapsed.
Click to expand it.
dwm.html
+
3
−
3
View file @
ce846e94
...
...
@@ -59,9 +59,9 @@
</li>
<li>
garbeam
<b>
does not
</b>
want any feedback to dwm. If you ask for support,
feature requests or if you report bugs, they will be
<b>
ignored
</b>
with a high chance. dwm is only intended to fit garbeam
'
s needs
,
h
owever you are free to download and distribute/relicense it, with the
feature requests
,
or if you report bugs, they will be
<b>
ignored
</b>
with a high chance. dwm is only intended to fit garbeams needs
.
H
owever you are free to download and distribute/relicense it, with the
conditions of the
<a
href=
"http://wmii.de/cgi-bin/hgwebdir.cgi/dwm?f=f10eb1139362;file=LICENSE;style=raw"
>
MIT/X Consortium license
</a>
.
</li>
</ul>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment