Commit graph

1755 commits

Author SHA1 Message Date
Jonathan Hodgson
73ba8c61bf Pushing dwm changes 2024-02-15 11:20:43 +00:00
Jonathan Hodgson
3deebe7302 Adds screenshot bindings to f10
On my new laptop, I have decided to keep the f keys as f keys which
requires hitting the fn key to get additional functions such as
play/pause etc. I did this because I often found myself hitting mute
(for example) by mistake. However, I don't use f10 for anything else so
rather than pushing fn+f10 (prt sc on my keyboard), I just want to push
f10. The shift / ctrl modifiers were implemented.
2022-02-03 10:47:02 +00:00
Jonathan Hodgson
42d54181e2 Add act on last keyboard shortcuts 2022-02-03 10:11:01 +00:00
Jonathan Hodgson
cb0a34b6b8 Merge branch 'master' of ssh://git.jonathanh.co.uk:2222/jab2870/dwm 2021-08-17 12:42:15 +01:00
Jonathan Hodgson
2a06bfb40a Adds screenrecord 2021-08-17 12:42:12 +01:00
Jonathan Hodgson
2718671c22 Makes pause button play / pause 2021-08-16 08:56:38 +01:00
Jonathan Hodgson
730577a008 Adds win+left or win+right to switch tag
This involved the patch from here:

https://lists.suckless.org/dev/1104/7590.html

I use this on the pinephone with win+left and win+right bound to a swipe
left or right on the bottom edge of the screen
2021-04-05 09:26:18 +01:00
Jonathan Hodgson
3dbeed51c5 Makes a double tap of the power button toggle the keyboard 2021-03-31 21:22:11 +01:00
Jonathan Hodgson
6866a4a4ea Changes functionality of power button
A single push will turn off the screen

A double push or a push and hold will open the power menu, allowing you
to turn off, restart, logout or suspend (CRUST)
2021-02-25 14:57:02 +00:00
Jonathan Hodgson
47ffe2fbdb Fixes keybindings for power button 2021-02-22 22:06:13 +00:00
Jonathan Hodgson
3b11aab6f2 Makes double press of power button bring up power menu 2021-02-22 21:58:43 +00:00
Jonathan Hodgson
c0a50b817c Applies the multikey patch
This allows me to have the same key do different things based on the
number of times it is pushed.

This is going to be useful on the pinephone so I can have double click
or click and hold on the limited number of physical buttons
2021-02-22 21:53:08 +00:00
Jonathan Hodgson
449d90b2e3 Adds power menu and removes unused binding 2021-02-10 21:28:36 +00:00
Jonathan Hodgson
e11fb64dad Changes onboard to svkbd 2021-02-10 21:24:23 +00:00
Jonathan Hodgson
2824ffb4cf Run launcher shell script instead of rofi
This shell script currently just picks between rofi and dmenu although
may do more later on
2021-02-07 20:56:02 +00:00
Jonathan Hodgson
88ac289837 Adds the ability to have an on screen keyboard
I'm going to be using dwm on my new pinephone and need the ability to
type.

Almost all the code for this has come from minego:
https://github.com/minego/dwm-customized
2021-02-03 22:33:24 +00:00
Jonathan Hodgson
ed39b70a71 Makes make clean delete my config.h file
I do this because I keep my configuration in config.def.h and version
control it
2021-02-03 20:25:01 +00:00
Jonathan Hodgson
61524d71fa Adds brightness keys, fixes noswallow and adds rule 2021-02-03 20:23:52 +00:00
Jonathan Hodgson
63846be876 Applys warp patch 2020-12-17 14:26:40 +00:00
Jonathan Hodgson
dec48cd212 Merge remote-tracking branch 'upstream/master' 2020-11-05 13:32:44 +00: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
Jonathan Hodgson
81eeb44259 DWM changes 2020-03-11 13:00:14 +00:00
Jonathan Hodgson
acfb6dfbd4 Configure gaps and change browser on mod+c shortcut 2019-12-23 13:21:48 +00:00
Jonathan Hodgson
1c0418f5de Merge branch 'uselessgaps' 2019-12-08 19:15:51 +00:00
Jonathan Hodgson
8ca2033e86 Adds gaps patch 2019-12-08 19:15:42 +00:00
Jonathan Hodgson
5dad96c1c0 Adds some shortcuts 2019-12-08 19:14:25 +00:00
Jonathan Hodgson
d474bfcbc6 Adds surf and battery shortcuts 2019-09-30 18:33:37 +01:00
Jonathan Hodgson
9a24bc1ede Adds youtube and unicode rofi scripts 2019-08-02 19:31:59 +01:00
Jonathan Hodgson
71b5f7ce6a Merge branch 'master' of github.com:Jab2870/dwm 2019-07-30 11:59:35 +01:00
Jonathan Hodgson
3e3e59aaea Adds some application shortcuts 2019-07-30 11:56:03 +01:00
Jonathan Hodgson
e72ceef4ef Change font 2019-07-22 17:20:31 +01:00
Jonathan Hodgson
902b0c87a8 Makes thundirbird always open on tag 9 2019-06-14 13:51:45 +01:00
Jonathan Hodgson
27e95ed9e2 Makes terminal swallow applications opened from it 2019-06-12 09:32:36 +01:00
Jonathan Hodgson
33553f8c57 Merge branch 'swallow' 2019-06-11 14:26:57 +01:00
Jonathan Hodgson
7004f485f5 Adds swallow patch 2019-06-11 14:23:57 +01:00
Jonathan Hodgson
a83a15527c Makes attach below a variable int 2019-06-11 14:19:42 +01:00
Jonathan Hodgson
046b66b1d6 Fix typo 2019-06-02 17:48:06 +01:00
Jonathan Hodgson
8134bb17f5 Merge branch 'attachbelow' 2019-06-02 15:16:30 +01:00
Jonathan Hodgson
362b95a5b9 Allows attach below to be toggled 2019-06-02 15:11:57 +01:00
Jonathan Hodgson
a047e3721c Merge branch 'master' of github.com:Jab2870/dwm 2019-05-29 19:50:46 +01:00
Jonathan Hodgson
e6218d57b8 Adds shortcut for fibonachi layout 2019-05-29 19:40:39 +01:00
Jonathan Hodgson
3b046cc298 Merge branch 'fibonacci' 2019-05-28 17:03:37 +01:00
Jonathan Hodgson
8c445b5368 Applies the fibonachi patch 2019-05-28 17:01:46 +01:00