1723 Commits

Author SHA1 Message Date
Marco Thomas
8c0c1111ce Fix 2021-07-06 18:16:44 +02:00
Marco Thomas
0dd3ed8617 Remove keybinds 2021-07-06 18:16:12 +02:00
Marco Thomas
29610542e7 Mv apps 2021-07-06 14:53:59 +02:00
Marco Thomas
c8646c7ca2 Change screenshot tool 2021-07-06 01:45:24 +02:00
Marco Thomas
0f78a2b1ee Fix dwm for laptop 2021-07-05 19:53:59 +02:00
Marco Thomas
5be1ad5496 Adjust font size 2021-06-07 14:14:45 +02:00
Marco Thomas
f5b36fadea Disable resize hints 2021-06-01 16:50:32 +02:00
Marco Thomas
d371835c7a Add emacsdaemon 2021-05-31 13:57:06 +02:00
Marco Thomas
bd659c8d6e Add Telegram bind 2021-05-28 12:50:20 +02:00
Marco Thomas
6ac3f640f9 Clean Config 2021-05-28 12:48:13 +02:00
Marco Thomas
92ab3937a7 Add patch 2021-05-25 10:47:21 +02:00
Marco Thomas
87c1d514a6 gruvbox light 2021-05-25 10:46:48 +02:00
Marco Thomas
113dab9588 Update bordersize 2021-05-20 12:01:21 +02:00
Marco Thomas
152fe1ed3b Add zathura bind 2021-05-16 11:51:46 +02:00
Marco Thomas
d571a59f69 Add emacs spawn bind 2021-05-16 10:25:57 +02:00
Marco Thomas
7658815545 Add Float keybind 2021-04-28 12:00:55 +02:00
Marco Thomas
81294f2a3b Remove binary 2021-04-16 10:17:24 +02:00
Marco Thomas
9a245b3865 Cleanup 2021-04-14 09:47:56 +02:00
Marco Thomas
acf9869e10 Add lock 2021-04-12 12:42:38 +02:00
Marco Thomas
268987d102 Add filemanager bind 2021-04-06 11:52:44 +02:00
Marco Thomas
9421349d8e Remove bind for quitting 2021-04-04 12:42:37 +02:00
Marco Thomas
d28ec5817a Update to nord theme 2021-03-28 19:42:27 +02:00
Marco Thomas
a096c02817 Remove keybind 2021-03-28 18:09:45 +02:00
Marco Thomas
ff345d3b17 Add Icon font 2021-03-28 01:19:34 +01:00
Marco Thomas
071a788dbb Update mouse keybinds 2021-03-27 18:54:04 +01:00
Marco Thomas
88764e6cce Add Japanese tags 2021-03-27 14:42:41 +01:00
Marco Thomas
32bb9a7b23 Update Keybinds 2021-03-27 12:41:02 +01:00
Marco Thomas
e7c0964f3f Add gaps patch 2021-03-27 01:14:06 +01:00
Marco Thomas
53c0544cb3 Update binds 2021-03-27 01:00:40 +01:00
Marco Thomas
6a591a9d03 Improve monocle bind 2021-03-26 14:09:51 +01:00
Marco Thomas
239501165e Improve master node keybinds 2021-03-26 14:07:08 +01:00
Marco Thomas
7fb8885260 Add more keybinds 2021-03-26 13:46:47 +01:00
Marco Thomas
f848e07a48 Adjust float bindings 2021-03-26 13:35:54 +01:00
Marco Thomas
7b0166fdf0 Cleanup config 2021-03-26 12:22:27 +01:00
Marco Thomas
20b9dd4a6c Add attachasideandbelow and keybinds 2021-03-26 12:01:12 +01:00
Marco Thomas
5c321e4410 Add swallow patch 2021-03-26 11:39:28 +01:00
Marco Thomas
511fdab1c3 Add patches 2021-03-26 00:53:04 +01:00
Marco Thomas
87e66a3ce9 Add own keybinds 2021-03-25 20:36:17 +01:00
Ian Remmler
61bb8b2241 Fix x coordinate calculation in buttonpress. 2020-08-21 16:13:22 +02:00
Hiltjo Posthuma
bb2e7222ba dwm.1: fix wrong text in man page 2020-07-08 18:05:50 +02:00
Alex Flierl
f04cac6d6e Fix memory leaks in drw
The function drw_fontset_free in drw.c was never called.
2020-06-11 18:32:21 +02:00
bakkeby
f09418bbb6 dwm crashes when opening 50+ clients (tile layout)
Many users new to dwm find themselves caught out by being kicked out to the login manager (dwm crashing) when they open 50+ clients for demonstration purposes. The number of clients reported varies depending on the resolution of the monitor.

The cause of this is due to how the default tile layout calculates the height of the next client based on the position of the previous client. Because clients have a minimum size the (ty) position can exceed that of the window height, resulting in (m->wh - ty) becoming negative. The negative height stored as an unsigned int results in a very large height ultimately resulting in dwm crashing.

This patch adds safeguards to prevent the ty and my positions from exceeding that of the window height.
2020-04-25 13:31:02 +02:00
Chris Down
ed3ab6b4fc drawbar: Don't shadow sw global
This jarred me a bit while reading the code, since "sw" usually refers
to the global screen geometry, but in drawbar() only it refers to
text-related geometry. Renaming it makes it more obvious that these are
not related.
2020-04-22 20:33:39 +02:00
Chris Down
f087d20e6e getatomprop: Add forward declaration
No functional changes, but for every other function we have a forward
declaration here. getatomprop should be no exception.
2020-04-22 20:33:26 +02:00
Chris Down
a8e9513783 setmfact: Unify bounds for compile-time and runtime mfact
There are two places that mfact can be set:

- In the mfact global, which is defined at compile time and passed
  into m->mfact during monitor setup. No bounds checks are performed,
  but the comment alongside it says that valid values are [0.05..0.95]:

      static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */

- By setmfact, which adjusts m->mfact at runtime. It also does some
  minimum and maximum bounds checks, allowing [0.1..0.9]. Values outside
  of that range are ignored, and mfact is not adjusted.

These different thresholds mean that one cannot setmfact 0.95 or 0.05,
despite the comment above that lists the legal range for mfact.

Clarify this by enforcing the same bounds in setmfact at runtime as
those listed for mfact at compile time.
2020-04-20 17:56:41 +02:00
Hiltjo Posthuma
c82db690cc config.mk: fix POSIX_C_SOURCE macro for feature test for snprintf()
The feature test was incorrect:
_POSIX_C_SOURCE=2

"The value 2 or greater additionally exposes definitions for POSIX.2-1992."
http://man7.org/linux/man-pages/man7/feature_test_macros.7.html

A higher value is needed (atleast 1995):
https://pubs.opengroup.org/onlinepubs/9699919799/functions/snprintf.html

FreeBSD feature test macro:
on
https://github.com/freebsd/freebsd/blob/master/include/stdio.h line 297

This was already fixed in dmenu.

This fixes a warning on FreeBSD, reported by Plasmoduck on IRC, thanks.
2020-04-03 15:36:32 +02:00
Anselm R Garbe
cb3f58ad06 Prepare 6.2 release. 2019-02-02 04:50:42 -08:00
Hiltjo Posthuma
b69c870a30 pledge: add rpath promise for the ugly Xft font fallback 2018-06-02 17:15:42 +02:00
Hiltjo Posthuma
e78b4a9207 Makefile: just show the compiler output
Don't be fancy and just show the actual output so debugging is simpler.
2018-06-02 17:10:28 +02:00
Klemens Nanni
3cd4023fb3 Do not strip at link stage
Building with debug symbols is worthless unless LDFLAGS are manually
adjusted as well.
2018-06-02 16:56:10 +02:00