Commit Graph

1772 Commits

Author SHA1 Message Date
f20074cd72 Add bt-menu shortcut 2021-09-27 22:25:58 +02:00
Hiltjo Posthuma
a786211d6c Revert "Improve speed of drw_text when provided with large strings"
This reverts commit 716233534b.

It causes issues with truncation of characters when the text does not fit and
so on.  The patch should be reworked and properly tested.
2021-08-20 23:09:48 +02:00
Miles Alan
716233534b Improve speed of drw_text when provided with large strings
Calculates len & ew in drw_font_getexts loop by incrementing instead of
decrementing; as such avoids proportional increase in time spent in loop
based on provided strings size.
2021-08-09 18:25:19 +02:00
Quentin Rameau
138b405f0c Add a configuration option for fullscreen locking
Some people are annoyed to have this new behaviour forced for some
application which use fake fullscreen.
2021-07-14 11:26:37 +02:00
cedafa274c Add configuration for more jetbrains apps 2021-07-07 01:54:34 +02:00
24c27ad415 Add ignoretransient to default config 2021-07-07 01:52:21 +02:00
Wilfried SUGNIAUX
9d11cd7d18 DWM 6.2:
-Making a Workaround patch for WebStorm:
do not care about property notification saying that a second window is transient to the first webstorm window

(cherry picked from commit f47c3c83257eed490c6aaf876fbb67b2ddb8b62c)
2021-07-07 01:51:11 +02:00
d2b23e176d Change command to run when clicked on statusbar 2021-07-07 01:43:01 +02:00
7a3a2c3cc1 Fix gapps in column mode 2021-07-07 01:04:04 +02:00
c4ccdce0b6 Change colors 2021-07-07 00:51:47 +02:00
Chris Down
67d76bdc68 Do not allow focus to drift from fullscreen client via focusstack()
It generally doesn't make much sense to allow focusstack() to navigate
away from the selected fullscreen client, as you can't even see which
client you're selecting behind it.

I have had this up for a while on the wiki as a separate patch[0], but
it seems reasonable to avoid this behaviour in dwm mainline, since I'm
struggling to think of any reason to navigate away from a fullscreen
client other than a mistake.

0: https://dwm.suckless.org/patches/alwaysfullscreen/
2021-03-29 19:16:27 +02:00
40701c6c58 Add pause action 2021-01-21 17:40:25 +01:00
Przemysław Grondek
216c8b8e11 Colors change 2021-01-21 10:19:17 +01:00
Przemysław Grondek
f6e8d58514 Update some programs configuration 2021-01-21 10:16:30 +01:00
057ce85595 Update config 2020-12-02 12:21:59 +01:00
Przemysław Grondek
6699479e62 Add media keys 2020-10-29 14:30:37 +01:00
Przemysław Grondek
5d027b08f3 Bind printscreen key to screenshot command 2020-08-26 16:54:06 +02:00
Ian Remmler
61bb8b2241 Fix x coordinate calculation in buttonpress. 2020-08-21 16:13:22 +02:00
Przemysław Grondek
82aa4b8325 Add config for Xephyr and Xnest 2020-08-03 10:29:10 +02:00
Hiltjo Posthuma
bb2e7222ba dwm.1: fix wrong text in man page 2020-07-08 18:05:50 +02:00
pgrondek
17555f86d1 Update config 2020-07-02 11:41:26 +02:00
Alex Flierl
54d641ef3f Fix memory leaks in drw
The function drw_fontset_free in drw.c was never called.

(cherry picked from commit f04cac6d6e)
2020-06-29 01:24:56 +02:00
pgrondek
b774677b0a Hide vacant tags
https://dwm.suckless.org/patches/hide_vacant_tags/
2020-06-16 01:43:25 +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
pgrondek
ed637dac70 Add window swallowing
https://dwm.suckless.org/patches/swallow/
2020-06-08 20:30:45 +02:00
pgrondek
a0d0d123a7 Fix bottom gapp in stac 2020-06-01 01:35:59 +02:00
pgrondek
d5b301e51c Make gapps work with column layout 2020-06-01 01:31:44 +02:00
pgrondek
7ba333192a Change shortcuts for IDE's 2020-06-01 00:57:38 +02:00
pgrondek
f490c2d1b2 Show firefox pip window on all tags 2020-06-01 00:55:43 +02:00
pgrondek
2ded22419e Revert "Revert "Add columns layout""
This reverts commit 03d28aa963.
2020-05-29 23:24:11 +02:00
pgrondek
03d28aa963 Revert "Add columns layout"
This reverts commit acdf610fda.
2020-05-29 12:20:24 +02:00
pgrondek
5eee770269 Update gitignore 2020-05-29 11:34:31 +02:00
pgrondek
9023b15621 Add config for locking 2020-05-29 11:34:17 +02:00
pgrondek
acdf610fda Add columns layout
https://dwm.suckless.org/patches/columns/
2020-05-29 11:24:01 +02:00
pgrondek
a5e4455d7a Attachside patch
https://dwm.suckless.org/patches/attachaside/
2020-05-29 11:18:11 +02:00
pgrondek
dbe98ebfe0 Add fullgaps 2020-05-29 11:02:22 +02:00
pgrondek
44ba63274f Add system tray
Original author: Jan Christoph Ebersbach <jceb@e-jc.de>, inspired by http://code.google.com/p/dwm-plus
 URL: http://dwm.suckless.org/patches/systray
 dwm 6.2 port by Igor Gevka <igor.gevka@gmail.com>
2020-05-29 00:48:46 +02:00
pgrondek
47ac88e9d8 Change config 2020-05-29 00:39:28 +02:00
pgrondek
ebab2ceefd Add gitignore 2020-05-29 00:35:06 +02:00
pgrondek
77c044d4cf Some configuration 2020-05-29 00:35:06 +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
Klemens Nanni
f40f86fa87 Pledge on OpenBSD 2018-05-25 11:49:30 +02:00