]> git.corax.cc Git - dwm/log
dwm
4 years agoRemove monocle layout cleanup
Matthias Kruk [Tue, 16 Mar 2021 10:16:57 +0000 (19:16 +0900)]
Remove monocle layout

I am not using the monocle layout. Hence, this commit removes it from
the code base.

4 years agoRemove systray
Matthias Kruk [Tue, 16 Mar 2021 08:39:40 +0000 (17:39 +0900)]
Remove systray

The systray is shown on only one screen, but the current implementation
cannot be easily adapted to show the systray on all screens. But since
the systray turns out not to be very important anyways, this commit
removes it altogether.

4 years agoRemove tiling layout
Matthias Kruk [Sun, 14 Mar 2021 23:01:55 +0000 (08:01 +0900)]
Remove tiling layout

The tiling layout is not used. This commit removes the tiling layout
and all associated functions and fields.

4 years agoSplit long lines
Matthias Kruk [Sat, 13 Mar 2021 05:35:23 +0000 (14:35 +0900)]
Split long lines

There are several lines in the source code that do not fit on a reasonably
sized screen. This commit breaks up all long lines so they fit within 95
columns.

4 years agoGive more meaningful names to global two-letter variables
Matthias Kruk [Sat, 13 Mar 2021 04:56:40 +0000 (13:56 +0900)]
Give more meaningful names to global two-letter variables

Without context, it's not obvious what sw or bl are supposed to mean.
This commit renames these variables so the meaning can be gleaned from
their names.

4 years agoRemove code to toggle systray and bar visibility
Matthias Kruk [Sat, 13 Mar 2021 04:24:59 +0000 (13:24 +0900)]
Remove code to toggle systray and bar visibility

There are functions to hide/unhide the bar and the systray, however
they are not bound to any keys and I do not need them. This commit
removes these functions and all related variables/fields.

4 years agoAdd struct rect type for the common (x, y, w, h) membership pattern
Matthias Kruk [Sat, 13 Mar 2021 02:31:34 +0000 (11:31 +0900)]
Add struct rect type for the common (x, y, w, h) membership pattern

Several types contain members for coordinates of a rectangle on the
screen. This commit adds the struct rect type to simplify this common
pattern.

4 years agoDon't hide structs and unions behind typedefs
Matthias Kruk [Sat, 13 Mar 2021 00:17:11 +0000 (09:17 +0900)]
Don't hide structs and unions behind typedefs

To make it more obvious, what kind of data one is dealing with, remove
typedefs that are hiding structs and unions.

4 years agoUse kernel-style indentation
Matthias Kruk [Fri, 12 Mar 2021 23:02:59 +0000 (08:02 +0900)]
Use kernel-style indentation

This changes the code to use kernel-style indentation. This makes the
source longer, but also improves readability, especially with regards
to nesting.

4 years agoStop the focus from following the pointer master
Matthias Kruk [Sun, 28 Feb 2021 22:17:46 +0000 (07:17 +0900)]
Stop the focus from following the pointer

The focus-following-the-pointer code and the pointer-following-the-focus
code sometimes negatively interact, causing dwm to keep cycling through
the clients of a tag. The behavior is not obviously reproduceable and
appears to be a bug in a different part of dwm. For the time being,
stop the focus from following the pointer.

4 years agoMake the pointer follow the focus
Matthias Kruk [Sun, 28 Feb 2021 06:04:46 +0000 (15:04 +0900)]
Make the pointer follow the focus

When the pointer moves to a different client, the focus follows the
pointer, putting the client under the pointer in focus. However, when
the focus is changed using the keyboard, the pointer remains over the
client that is now out-of-focus. If using multiple screens, or if a
client decides to hide the pointer because it is over a text input,
this can make it very annoying to figure out the pointer location.
This commit makes sure that the pointer follows the focus when it
moves to a different client.

4 years agoDraw the status bar on all screens
Matthias Kruk [Thu, 24 Dec 2020 13:19:34 +0000 (22:19 +0900)]
Draw the status bar on all screens

The status bar contains the clock and other information that should
be displayed on all screens. This commit makes sure it is drawn on
all screens, not just the selected one.

4 years agoDon't draw window titles in the status bar
Matthias Kruk [Thu, 24 Dec 2020 00:08:43 +0000 (09:08 +0900)]
Don't draw window titles in the status bar

Certain UTF-8 glyphs cause issues with underlying libraries, causing
dwm to crash. Websites such as Twitter will frequently include such
glyphs in their title, causing dwm to try to render them in the status
bar. This commit keeps dwm from displaying window titles in the status
bar.

5 years agobookshelf, bookstack: Make sure applysizehints() does not mess with client dimensions...
Matthias Kruk [Wed, 5 Aug 2020 06:56:08 +0000 (15:56 +0900)]
bookshelf, bookstack: Make sure applysizehints() does not mess with client dimensions, increase size of first window if the screen size can't be divided evenly

5 years agobookshelf, bookstack: Take the border into account when resizing clients
Matthias Kruk [Wed, 25 Mar 2020 00:25:14 +0000 (09:25 +0900)]
bookshelf, bookstack: Take the border into account when resizing clients

5 years agoConfiguration improvement
Matthias Kruk [Sat, 21 Mar 2020 05:54:29 +0000 (14:54 +0900)]
Configuration improvement
 - Make shortcuts more intuitive
 - Recover the good old X11-zap with the quit shortcut

Exclude unused functions from compilation

5 years agoAdd new layout options to default config and remove some mouse callbacks I don't...
Matthias Kruk [Thu, 19 Mar 2020 16:48:54 +0000 (01:48 +0900)]
Add new layout options to default config and remove some mouse callbacks I don't need

5 years agoAdd bookshelf and bookstack window layouts
Matthias Kruk [Thu, 19 Mar 2020 16:43:31 +0000 (01:43 +0900)]
Add bookshelf and bookstack window layouts

5 years agoAdd dwm-6.0 source with pango and systray patches, customize configuration
Matthias Kruk [Thu, 19 Mar 2020 15:32:52 +0000 (00:32 +0900)]
Add dwm-6.0 source with pango and systray patches, customize configuration