Commit graph

1888 commits

Author SHA1 Message Date
Luke Smith
d6dfa585fc
don't necessarily restart dwmblocks 2020-04-26 11:18:07 -04:00
Luke Smith
cbc2657c0f
gitignore 2020-04-26 11:17:38 -04:00
Luke Smith
a7d35a3a2b
big binds change 2020-04-26 11:16:15 -04:00
Luke Smith
87fac622d8
Merge pull request #42 from AlexSyssoyev/patch-1
Change bg address on xcompmgr toggle
2020-04-25 18:41:48 -04:00
Alexei Syssoyev
2ae2873772
Change bg address on xcompmgr toggle 2020-04-25 18:41:05 -03: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
Luke Smith
f14d957787
Merge pull request #36 from jlaw/patch-1
fix: Typo; -sb assigned the wrong color
2020-04-17 18:21:47 -04:00
Jackson Law
da11cd9176
fix: Typo; -sb assigned the wrong color 2020-04-17 14:38:36 -07:00
Luke Smith
f9a72ad45f
readme updates 2020-04-14 21:38:57 -04:00
Luke Smith
b004c08c26
old junk rmd 2020-04-14 21:22:35 -04:00
Luke Smith
9025265545
swallow patch 2020-04-14 21:20:23 -04:00
Luke Smith
dc2cfafa7e
Merge branch 'kronikpillow-master' 2020-04-14 20:51:11 -04:00
Luke Smith
73463070d7
Merge branch 'master' of https://github.com/kronikpillow/dwm into kronikpillow-master 2020-04-14 20:49:10 -04:00
Luke Smith
3e587d111d
bindings and documentation cleanup 2020-04-14 20:36:59 -04:00
Luke Smith
3ab70a3c61
sysact to replace system binds 2020-04-14 18:44:09 -04:00
Luke Smith
d6760a401e
dwmc removed 2020-04-14 18:22:30 -04:00
Luke Smith
e41336f785
pamixer for quicker audio commands 2020-04-14 17:42:07 -04:00
Luke Smith
be9abae0f8
lol 2020-04-14 08:26:16 -04:00
KronikPillow
707881dd36 updated vanitygaps with latest fixes from original author 2020-04-14 13:11:34 +02:00
Luke Smith
ad82ceb532
Merge branch 'master' of git://git.suckless.org/dwm 2020-04-13 20:50:28 -04:00
Luke Smith
722768ad1e
dox on monitor commands 2020-04-13 20:47:34 -04:00
Luke Smith
f21a7bbcd0
arrows to tag or focus monitors 2020-04-13 20:41:38 -04:00
Luke Smith
870085aede
use pidof 2020-04-13 20:31:01 -04:00
Luke Smith
c3592e0405
suppress if no dwmblocks to kill 2020-04-13 20:30:11 -04:00
Luke Smith
6184f47410
removing barpadding patch 2020-04-13 20:29:51 -04:00
Luke Smith
614ec28533
readme fixes/switches 2020-04-13 11:53:16 -04:00
Luke Smith
87a5a39b38
scroll through on tags 2020-04-13 11:10:41 -04:00
Luke Smith
2ff3f79035
vanitygaps patch/fix and new & reorganized layouts 2020-04-13 08:45:27 -04:00
Luke Smith
c49135e882
note on statusbar clickability 2020-04-13 08:43:50 -04:00
Luke Smith
0c7644eebc
clickable statuscmd patch with dwmblocks 2020-04-13 00:10:51 -04:00
Luke Smith
ab0a4aea8a
updates to restart/quit cmds 2020-04-13 00:04:47 -04:00
Luke Smith
216113411c
colorscheme notes 2020-04-11 09:26:42 -04:00
Luke Smith
79facc6e26
startup rmd 2020-04-10 21:54:59 -04:00
Luke Smith
4435aad841
kill -HUP pid to restart, also mod+R 2020-04-10 18:50:44 -04:00
Luke Smith
0c7a69973f
pulse documentation changes 2020-04-09 17:14:00 -04:00
Luke Smith
a1cff81cea
Merge branch 'master' of github.com:LukeSmithxyz/dwm 2020-04-09 16:55:14 -04:00
Luke Smith
2f392464b1
only show active tags 2020-04-09 16:54:57 -04:00
Luke Smith
6cb092d8f2
start startup script if it exists 2020-04-09 16:53:54 -04:00
Luke Smith
a28d4c3bb4
mod+c for calculator 2020-04-09 16:51:43 -04:00
Luke Smith
7d0c12152f
hardcoding audio system 2020-04-09 16:51:33 -04:00
Luke Smith
f924768acd
Merge pull request #27 from NikkiSatmaka/NikkiSatmaka
add xf86brightness up and down
2020-04-04 07:40:51 -04:00
Nikki Satmaka
e7eecb4dfe
add xf86brightness up and down
add xf86brightness up and down using xbacklight
2020-04-04 16:14:38 +07: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
Luke Smith
c90bb87766
Merge branch 'master' of github.com:LukeSmithxyz/dwm 2020-04-01 20:37:57 -04:00
Luke Smith
e258228064
Merge pull request #24 from jonmed/fix-readme-typo
Fix libxft-bgra name in README
2020-04-01 20:37:14 -04:00
Jonatas Medeiros
d7aedf79f2 Fix libxft-bgra name in README 2020-04-01 21:07:18 -03:00
Luke Smith
055a205098
renamed to webcam 2020-03-31 20:37:50 -04:00