summaryrefslogtreecommitdiffstats
path: root/config.def.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-03-05patch: swallowHEADmasterMalfurious1-4/+5
This patch adds "window swallowing" to dwm as known from Plan 9's windowing system rio. Clients marked with isterminal in config.h swallow a window opened by any child process, e.g. running xclock in a terminal. Closing the xclock window restores the terminal window in the current position. This patch helps users spawning a lot of graphical programs from their command line by avoiding cluttering the screen with many unusable terminals. Being deep down in a directory hierarchy just does not make the use of dmenu feasible. Dependencies * libxcb * Xlib-libxcb * xcb-res These dependencies are needed due to the use of the latest revision of the X Resource Extension which is unsupported in vanilla Xlib. Notes: * The window swallowing functionality requires dwm to walk the process tree, which is an inherently OS-specific task. Only Linux and FreeBSD are supported at this time. Please contact one of the authors if you would like to help expand the list of supported operating systems. * Only terminals created by local processes can swallow windows, and only windows created by local processes can be swallowed.
2024-03-05patch: fakefullscreenMalfurious1-1/+1
Only allow clients to "fullscreen" into space currently given to them. As an example, this will allow you to view a fullscreen video in your browser on one half of the screen, while having the other half available for other tasks.
2024-03-05patch: scratchpadzMalfurious1-2/+8
This patch enables the use of multiple pre-assigned scratchpad terminals. This patch uses reserved tags for stowing scratchpads, these are the tagmasks just beyond those defined for normal use. DWM's rule system is used to handle spawning scratchpad windows. We use one rule per scratchpad to define what SPTAG it belongs to, whether it is floating, an instance identifier, and what program to exec in st (your shell by default). Keybinds should be setup to call togglescratch with a pointer to the rule struct which defines the scratchpad. The togglescratch function uses the information in the rule to craft an st command line to spawn. However, if some client is already open on the rule's tagmask, it will just act like toggleview(tagmask). Normal clients may be opened while viewing scratchpads, they are always excluded from scratchpad tags. This patch is inspired by the "scratchpad" and "scratchpads" patches from suckless.org.
2024-03-05patch: resetlayoutMalfurious1-0/+1
Resets the layout and mfact if there is only one client visible. This applies cleanly to vanilla dwm, but is mostly only useful alongside the pertag patch, since otherwise all layouts and mfacts will be reset. You can also set a binding to trigger this on demand, see the new call to resetlayout in config.def.h. This patch also resets nmaster to its default value as well.
2024-03-05patch: pushMalfurious1-0/+2
pushup and pushdown provide a way to move clients inside the clients list.
2024-03-05patch: philcollins (full columns)Malfurious1-0/+2
Layout adapted from centerfloatingmaster to simply tile all clients horizontally across the screen, without respect to mfact or nmaster.
2024-03-05patch: gridmodeMalfurious1-0/+2
This patch adds an extra layout mode to dwm called grid in which the windows are arranged in a grid of equal sizes. It comes in very handy, especially with tools that operate on multiple windows at once; e.g. Cluster SSH. The patch would look a lot uglier without Jukka Salmi's constant help. Thanks Jukka :-)
2024-03-05patch: elitMalfurious1-0/+2
elit is an inversion of the default tiling layout with the following characteristics: - master area is on the right - master windows are taken from the bottom of the stack (nmaster of them) - new clients spawn on the top of the stack and therefore appear at the top of the slave stacking area on the left - mfact controls the middle division point (motion is consistent with default layout) In effect, elit will keep specific client windows pinned in place on the right, allowing the use of a dynamic stack on the left. I've found this useful to use on a secondary monitor for opening and closing short-lived terminals without affecting the geometry of a web browser window, which can reserve the full height of the display.
2024-03-05patch: columnsMalfurious1-0/+2
This patch adds an extra layout to dwm called col in which the windows in the master area are arranged in colums of equal size. The number of columns is always nmaster + 1, and the last column is a stack of leftover windows just like the normal tile layout. It effectively acts like the default tiling mode, except provides for vertical instead of horizontal master windows.
2024-03-05patch: centeredmasterMalfurious1-0/+2
centeredmaster centers the nmaster area on screen, using mfact * monitor width & height, with the stacked windows distributed to the left and right. It can be selected with [Alt]+[u]. With one and two clients in master respectively this results in: +------------------------------+ +------------------------------+ |+--------++--------++--------+| |+--------++--------++--------+| || || || || || || || || || || || || || || M1 || || || || || || || || || || || S2 || M || S1 || || |+--------+| || || || || || || |+--------+| || || || || || || || || || || || || || || || M2 || || || || || || || || || || |+--------++--------++--------+| |+--------++--------++--------+| +------------------------------+ +------------------------------+ This layout can be useful on large screens, where monocle or htile might be either too large or forcing the user to type in a corner of the screen. It allows for instance to center the editor while being able to keep an eye on background processes (logs, tests, ...).
2024-03-05patch: holdbarMalfurious1-2/+5
dwm's built-in status bar is now only shown when HOLDKEY is pressed. In addition the bar will now overlay the display. This will work regardless of the topbar setting. This is meant to be used with the bar off by default. None of the togglebar code has been removed, although you might want to remove the togglebar binding in your config.def.h. The holdbar-modkey patch (this) is a variant where holdbar is only active when the bar is toggled off and the holdkey can be the same as the modkey. This reverts commit 8657affa2a61 ("drawbar: Don't expend effort drawing bar if it is occluded"). When holdbar is applied, its effect prevents the bar from ever being drawn. Only a black rectangle appears when the key is held. This patch allows HOLDKEY to also be used in place of MODKEY for sending keystrokes to dwm while simultaneously peeking at the statusbar.
2024-03-05patch: barlayoutMalfurious1-0/+1
This is an overhaul of the statusbar appearance, inspired by a combination of the patches: rearrangebar, taglabels, hide-vacant-tags, and statusallmons. The bar layout (from left to right) is now just tag labels, status, and the layout symbol. However, tag labels are generally larger than usual and contain the name of the leading client on each tag. The format of these new labels is controlled by a new option in config.h. The layout symbol is moved all the way to the far right, per rearrangebar, however the center area is left clear for the tag labels to grow into. statusallmons and hide-vacant-tags work exactly as normal, but are implemented from scratch in this patch to avoid conflicts. This patch addresses some oversights by the others in the buttonpress() function for handling clicks on the statusbar. The logic is updated to correctly handle the new location of the status and ltsymbol. Tag labels are stored in the Monitor struct (instead of the original patch's global variable) so tag clicks can be handled correctly on multimonitor. This patch is updated to identify any hidden clients opened by the scratchpadz patch.
2024-03-05patch: alphaMalfurious1-0/+7
Allow dwm to have translucent bars, while keeping all the text on it opaque, just like the alpha-patch for st. Fix transparent borders ----------------------- By default dwm might make windows' borders transparent when using composit window manager (e.g. xcompmgr, picom). Alpha patch allows to make borders opaque. If all you want is to make borders opaque, you don't care about statusbar opacity and/or have problems applying alpha patch, then you might use fixborders patch instead.
2024-03-05config: Add keybinds for splitting mfact into thirdsMalfurious1-0/+2
2024-03-05config: Set colorsMalfurious1-3/+3
2024-03-05config: Add browser keybindsMalfurious1-0/+4
2024-03-05config: Add slock keybindsMalfurious1-0/+4
2024-03-05config: Map 0 to a tenth tagMalfurious1-3/+2
2024-03-05config: Set mfact to 50%Malfurious1-1/+1
2024-03-05config: Remap killclient bindingMalfurious1-1/+1
2024-03-05config: Remove client rulesMalfurious1-2/+1
2024-03-05config: Remove unwanted default bindingsMalfurious1-8/+0
2022-10-28Revert "Remove dmenumon variable"Hiltjo Posthuma1-1/+2
This reverts commit c2b748e7931e5f28984efc236f9b1a212dbc65e8. Revert back this change. It seems to not be an edge-case anymore since multiple users have asked about this new behaviour now.
2022-08-28Remove dmenumon variableStein1-2/+1
Reasoning: Since 2011 dmenu has been capable of working out which monitor currently has focus in a Xinerama setup, making the use of the -m flag more or less redundant. This is easily demonstrated by using dmenu in any other window manager. There used to be a nodmenu patch that provided these changes: https://git.suckless.org/sites/commit/ed68e3629de4ef2ca2d3f8893a79fb570b4c0cbc.html but this was removed on the basis that it was very easy to work out and apply manually if needed. The proposal here is to remove this dependency from dwm. The mechanism of the dmenumon variable could be provided via a patch if need be. The edge case scenario that dmenu does not handle on its own, and the effect of removing this mechanism, is that if the user trigger focusmon via keybindings to change focus to another monitor that has no clients, then dmenu will open on the monitor containing the window with input focus (or the monitor with the mouse cursor if no windows have input focus). If this edge case is important to cover then this can be addressed by setting input focus to selmon->barwin in the focus function if there is no client to give focus to (rather than giving focus back to the root window).
2022-08-19config.def.h: make keys and buttons constNRK1-2/+2
pretty much all other variables are declared as const when they're not modified.
2021-07-14Add a configuration option for fullscreen lockingQuentin Rameau1-0/+1
Some people are annoyed to have this new behaviour forced for some application which use fake fullscreen.
2018-05-25config.def.h: ClkTagBar missing from commentHiltjo Posthuma1-1/+1
by Christopher Drelich <cd@cdrakka.com> Patch was mangled on the ML, also adjusted the order to be the same as the enum in dwm.c
2017-03-28cleanupMarkus Teich1-1/+1
- unify multi-line expression alignment style. - unify multi-line function call alignment style. - simplify client moving on monitor count decrease. - clarify comment for focusin(). - remove old confusing comment about input focus fix in focusmon(). The explanation is already in the old commit message, so no need to keep it in the code. - remove old comment describing even older state of the code in focus(). - unify comment style. - break up some long lines. - fix some typos and grammar.
2016-12-05applied Markus' decouple color-scheme patchAnselm R Garbe1-1/+1
2016-06-28config.def.h: style improvement, use color Scheme enumHiltjo Posthuma1-4/+4
2016-06-26import new drw from libsl and minor fixes.Markus Teich1-11/+13
- better scaling for occupied tag squares. - draw statusline first to omitt some complicated calculations.
2015-11-08unboolificationHiltjo Posthuma1-7/+7
2015-11-08separate program-specific c99 bool and X11Hiltjo Posthuma1-5/+5
True, False are X11-specific (int), make sure to use c99 stdbool for program-specific things.
2015-10-20config.h: use common default font, pass Xft font name to dmenuHiltjo Posthuma1-4/+2
dmenu uses Xft now (soon to be released).
2015-03-13Add Xft and follback-fonts support to graphics libEric Pruitt1-2/+7
2013-08-02applied improved version of Martti Kühne's dmenu/multi monitor approach ↵Anselm R Garbe1-1/+2
from dwm, no dmenuspawn required
2013-07-20do not take our font declaration as default for stAnselm R Garbe1-1/+1
2013-05-02include font argument for st by defaultAnselm R Garbe1-1/+1
2013-05-01use st as default terminal from now onAnselm R Garbe1-1/+1
2012-11-18reverting to plain X11 fonts in order to implement draw.c defaultanselm@garbe.us1-1/+1
2012-11-02incorporating Xft instead of cairo, cairo provides far too many optionsanselm@garbe.us1-1/+1
2012-01-22added 20h's clarificationanselm@garbe.us1-0/+4
2011-11-06new default colour schemeConnor Lane Smith1-6/+6
2011-10-25apply nmaster patchConnor Lane Smith1-0/+3
2010-05-27applied Sylvain Laurent's EWMH fullscreen state patch, simplified his patch ↵anselm@garbe.us1-1/+1
a bit
2009-09-15applied Tony Lainson's config.def.h patchAnselm R Garbe1-3/+2
2009-07-09extended rule to apply monitors if set up accordinglyAnselm R Garbe1-3/+3
2009-07-09removed monsyms, uselessAnselm R Garbe1-3/+0
2009-07-09restricting number of mons by length of monsymsAnselm R Garbe1-1/+1
2009-07-08introducing const where it might make some senseAnselm R Garbe1-9/+8