Commit Graph

278 Commits

Author SHA1 Message Date
bakkeby
2cf37aa492 status2d: rawstext may not exist if neither statuscmd nor the extrabar patch is used 2020-07-24 11:15:44 +02:00
bakkeby
56ad78e7d2 Adding link to flextile-deluxe wiki page 2020-07-23 19:41:18 +02:00
bakkeby
d7a7ac67ee barmodules: removing tags padding 2020-07-20 11:58:21 +02:00
bakkeby
2065014161 BAR_TITLE_RIGHT_PAD --> BAR_TITLE_RIGHT_PAD_PATCH 2020-07-19 19:30:02 +02:00
bakkeby
d0c077a102 Removing unnecessary .h file 2020-07-19 19:29:10 +02:00
bakkeby
023aa218e4 Adding powerline patch 2020-07-19 16:57:30 +02:00
bakkeby
23c0e9450f hidevacanttags: width and buttonpress fix 2020-07-19 09:38:06 +02:00
bakkeby
6961418d63 Extrabar --> extrastatus 2020-07-18 21:12:30 +02:00
bakkeby
250fbbd2c7 holdbar: changes for new bar 2020-07-18 18:59:03 +02:00
bakkeby
664484d572 Refinement 2020-07-18 13:03:30 +02:00
bakkeby
ad09397ad9 status2d: hide click_status2d if dwmblocks is used 2020-07-15 17:15:35 +02:00
bakkeby
06c4122e07 Movestack can cause dwm to crash if there are no selections on the monitor 2020-07-15 17:14:29 +02:00
bakkeby
e780c5078f taggrid: fix for invalid highlighting for the last tag when columns have an uneven number of clients 2020-07-15 17:14:14 +02:00
bakkeby
aa70728d00 Adding BarWidthArg, BarDrawArg, BarClickArg to keep the method signatures static 2020-07-15 14:10:47 +02:00
bakkeby
f2da4d20d9 Further bar renaming 2020-07-15 09:26:16 +02:00
bakkeby
903b32ac8b Major refactoring in preparation for bar modules 2020-07-15 08:57:30 +02:00
bakkeby
1584a32063 flextile deluxe: fixed dual stack bug 2020-07-09 16:04:04 +02:00
bakkeby
ccb275b984 Extrabar alignment, buttonclicks and other improvements 2020-07-07 17:25:48 +02:00
bakkeby
ab488abc11 Extrabar compatibility improvements 2020-07-05 21:53:36 +02:00
bakkeby
f58c699dbb Fix for dwm randomly crashing when the first systray application starts
The crash error was:

dwm: fatal error: request code=12, error code=11
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  12 (X_ConfigureWindow)
  Serial number of failed request:  3333
  Current serial number in output stream:  3338

This was backtracked to function updatesystray where XConfigureWindow was
called with large negative X positions (e.g. -836585). The large number
coming from the width of the systray icon.

w += i->w;

The systray icon width is set through the updatesystrayicongeom function
and this is called by resizerequest, clientmessage and propertynotify.

The height and width would appear to come from the X window attributes and
sometimes have random values (e.g. height 32708 and width 1369918222).

updatesystrayicongeom restricts the height of the icon to that of the bar,
but did not have any restictions on the icon width. This fix limits the
icon width to that of the bar height if it is greater than twice the bar
height, leaving room for systray icons that are slightly wider than they
are tall.
2020-07-05 13:20:28 +02:00
bakkeby
8120e0b858 Fixed a dwmblocks / statuscmd / systray compatibility issue where button clicks would be misaligned if systray pinning is used and systray is on another monitor 2020-07-01 16:16:19 +02:00
bakkeby
8c07458f11 holdbar: toggle bar improvements 2020-06-30 10:15:36 +02:00
bakkeby
347e6ace91 dragmfact: Tweaks for fixed horizontal split 2020-06-29 11:03:25 +02:00
bakkeby
c14a51524b Adding cursor icons for resizecorners, resizepoint, dragmfact and dragcfact 2020-06-25 11:56:41 +02:00
bakkeby
af30c7a735 floatpos: allow controls in floating mode 2020-06-23 12:11:01 +02:00
bakkeby
9ae251791d floatpos: correction 2020-06-23 11:55:55 +02:00
bakkeby
6c2d1518ab floatpos: refactoring 2020-06-23 10:15:37 +02:00
bakkeby
aecfff3a00 floatpos: correcting defaults 2020-06-22 17:53:33 +02:00
bakkeby
6a683c729e Adding floatpos patch. 2020-06-21 15:33:29 +02:00
bakkeby
8645b2ce35 Minor style correction 2020-06-21 09:10:25 +02:00
bakkeby
62cca4897b Tidy following tagothermonitor merge 2020-06-21 09:07:51 +02:00
matt
6aca089661 Adding tagothermonitor patch 2020-06-19 23:18:50 +02:00
bakkeby
5e0a9c49f8 Adding sizehints patch 2020-06-15 21:01:05 +02:00
bakkeby
f315188728 Autostart: Make autostart conform to XDG Base Directory specification (upgrade) 2020-06-14 19:56:52 +02:00
bakkeby
8c4eaccf16 Adding pango patch (ref. #10)
Text from original patch:

Using pango markup for status text

Use a single font. Removed some code utf8 code from drw.
Created for pango 1.44. Older versions might not have getter
for font height, ascent + descent can be used instead.
All texts are rendered with pango but only status is with
markup. Increased stext size (in case a lot of markup is used).
MIN/MAX is already defined (didn't redefine them).
2020-06-11 16:44:43 +02:00
bakkeby
45247a14bc Fix infinite loop in attachbelow patch 2020-06-10 10:48:50 +02:00
bakkeby
a713e73a37 shiftviewclients: compatibility changes for scratchpads and scratchpad_alt_1 patches 2020-06-05 11:24:07 +02:00
bakkeby
6321b52a30 Renamed SCRATCHPAD_PATCH --> SCRATCHPADS_PATCH to match the naming of the suckless patches as the multiple scratchpads patch has its own location now 2020-06-05 11:23:22 +02:00
bakkeby
09a5fc9097 scratchpad_alt: Style change 2020-06-05 11:23:02 +02:00
bakkeby
bad53d2cc4 Upgrading Gaspar Vardanyan's scratchpad patch to the 20200510 version.
https://github.com/GasparVardanyan/dwm-scratchpad/blob/master/dwm-scratchpad-20200510-f09418b.diff
2020-06-05 09:43:27 +02:00
bakkeby
fbb1537da6 Removing debug line 2020-06-05 09:00:05 +02:00
bakkeby
d7814e3a3e dwmc: Adding external control to set gaps 2020-06-04 20:29:16 +02:00
bakkeby
2b332f7199 Expanding Xresources options to include the warn colours in relation to the statuscolors patch 2020-06-03 17:29:25 +02:00
Stein Gunnar Bakkeby
8c419b0d7a Expanding on dwmc options 2020-06-02 11:11:59 +02:00
bakkeby
4db0cd6443 An idea to remember to add keymodes patch files 2020-06-02 10:18:17 +02:00
bakkeby
af96d4c358 Adding keymodes patch 2020-05-31 15:14:29 +02:00
bakkeby
e7ea06a0c2 status2d: Minor protection against crashes due to invalid x and y values 2020-05-31 15:14:07 +02:00
bakkeby
2e30bddc16 Fixing status2d and statuscmd / dwmblocks compatibility issues.
Text width calculations when using status2d strings resulted in
statuscmd button placement calculations to be way off. Fixed by
introducing a separate function status2dtextlength to get an
approximate correct text width.
2020-05-27 21:04:22 +02:00
bakkeby
e79aec52c2 Adding status2d patch 2020-05-26 20:53:53 +02:00
bakkeby
fc8434abd1 Adding moveplace patch 2020-05-21 19:58:11 +02:00
bakkeby
2cb3e697e4 Adding moveresize patch as per #25 2020-05-21 18:55:47 +02:00
bakkeby
df118dc046 Switchtag patch, lose switchtag feature for client if the client is moved to another tag 2020-05-20 16:43:09 +02:00
bakkeby
57ef22eaba [dwm][patch] setborderpx reset floating windows to previous size 2020-05-20 15:11:33 +02:00
bakkeby
29a06f83a0 [dwm][patch] setborderpx minor code style changes 2020-05-13 13:25:06 +02:00
bakkeby
5cfaf8357b [dwm][setborderpx] allow borderpixel changes in floating layout and for floating clients 2020-05-13 13:17:12 +02:00
bakkeby
1c6412802e Getting rid of practically unused nbottom variable 2020-05-13 09:41:44 +02:00
bakkeby
0b429b4994 Fibonacci updates 2020-05-10 17:11:05 +02:00
bakkeby
ac4c5081c5 Horizgrid pixel perfect updates 2020-05-10 17:09:41 +02:00
bakkeby
443795e3c9 Gridmode pixel perfect updates 2020-05-10 10:42:47 +02:00
bakkeby
174e3260d2 Gappless grid pixel perfect updates 2020-05-10 10:40:47 +02:00
bakkeby
1508d9f274 Fibonacci pixel perfect updates 2020-05-10 10:31:11 +02:00
bakkeby
c65315d52f Improved fibonacci layout (pixel perfect) 2020-05-08 18:54:39 +02:00
bakkeby
511fda0088 Removing unnecessary variable when both statuscmd and dwmblocks is used 2020-05-07 21:44:17 +02:00
bakkeby
1a4b3632d1 Removing redundant lastbutton variable when both statuscmd and dwmblocks patches are enabled 2020-05-05 19:59:21 +02:00
bakkeby
a6c2fe5668 Adding shiftviewclients files 2020-05-05 19:54:02 +02:00
bakkeby
91291ceb9f Removing redundant statuscmds logic when both statuscmd and dwmblocks patches are applied 2020-05-05 19:50:28 +02:00
bakkeby
75d5f1e0c5 Adding shiftview patch 2020-05-03 16:09:05 +02:00
bakkeby
f028377c98 Adding dwmblocks patch 2020-05-02 14:58:23 +02:00
bakkeby
b837899f7a Adding option to be able to reverse cycle through flextile-deluxe layouts 2020-05-01 16:45:25 +02:00
bakkeby
0a0222d929 Pertag flextile-deluxe needlessly tied to monitor rules patch 2020-05-01 14:14:38 +02:00
bakkeby
c56773c0a0 Missing variable for dragmfact without vanitygaps patch 2020-04-30 18:09:47 +02:00
bakkeby
69a9fe607a Changes to make fibonacci layout arrangement pixel perfect 2020-04-28 16:56:51 +02:00
bakkeby
8aa7a8dafb Changes to make gapplessgrid layout arrangement pixel perfect 2020-04-28 16:34:44 +02:00
bakkeby
904cc5962f No real reason for using Bool here, we use ints everywhere else 2020-04-26 16:46:10 +02:00
bakkeby
a84f1b01d2 Adding fix for attachbottom patch 2020-04-22 20:04:09 +02:00
bakkeby
ec32a28380 [dwm][PATCH] statuscolors, fix status text width computation
This is an updated version of the statuscolors patch that fixes the
computation of the text width. The previous version of the patch
inculded all the byte codes that are used to select the color schemes
when computing the width, obaining a width that is larger than the real
width. This patch fixes that by adding up the widths of the individual
chunks, separated by the codes that select the color schemes.
2020-04-16 20:22:23 +02:00
bakkeby
f9a001dee7 [dwm][PATCH] Multiple scratchpads
This patch enables multiple scratchpads, each with one assigned window.
This enables the same scratchpad workflow that you have in i3.

Scratchpads are implemented as special tags, whose mask does not
apply to new spawned windows. To assign a window to a scratchpad you
have to set up a rule, as you do with regular tags.

Windows tagged with scratchpad tags can be set floating or not in the
rules array. Most users would probably want them floating (i3 style),
but having them tiled does also perfectly work and might fit better the
DWM approach. In case they are set floating, the patch moves them to the
center of the screen whenever the are shown. The patch can easily be
modified to make this last feature configurable in the rules array (see
the center patch).

The togglescratch function, borrowed from the previous scratchpad patch
and slightly modified, can be used to spawn a registered scratchpad
process or toggle its view. This function looks for a window tagged on
the selected scratchpad. If it is found its view is toggled. If it is
not found the corresponding registered command is spawned. The
config.def.h shows three examples of its use to spawn a terminal in the
first scratchpad tag, a second terminal running ranger on the second
scratchpad tag and the keepassxc application to manage passwords on a
third scratchpad tag.

If you prefer to spawn your scratchpad applications from the startup
script, you might opt for binding keys to toggleview instead, as
scratchpads are just special tags (you may even extend the TAGKEYS macro
to generalize the key bindings).
2020-04-16 16:39:22 +02:00
bakkeby
525dc0d107 Adding statuscmd patch ref. #23 2020-04-13 15:01:08 +02:00
bakkeby
692affcff7 dragcfact and dragmfact improvements 2020-03-31 11:07:24 +02:00
bakkeby
a560b9cb53 Adding rounded corners patch 2020-03-31 10:21:45 +02:00
bakkeby
f2673fec53 [dwm][patch] holdbar: fixed flickering caused by repeated key events 2020-03-29 12:57:07 +02:00
bakkeby
7094852845 Making flextile gridmode pixel perfect 2020-03-29 10:50:07 +02:00
bakkeby
1bd0871daf Adding two new variants of gappless grid to flextile as well as making horizgrid pixel perfect 2020-03-28 21:28:17 +01:00
bakkeby
e9e32d28c7 Adding revamped dragmfact patch ref. #19 2020-03-27 20:46:54 +01:00
bakkeby
cf2e0c1d70 dragcfact - if the window is floating, then fall back to resizing the window rather than doing nothing, #19 2020-03-25 15:23:14 +01:00
bakkeby
32d3d2b7c3 Adding dragcfact patch, ref. #19 2020-03-25 15:15:47 +01:00
bakkeby
d17a306a94 Removing workaround to ensure that floating master stays on top, ref. #20 2020-03-24 10:17:09 +01:00
bakkeby
becbb9bfbf Removing unwanted and forgotten debug line ref. #20 2020-03-23 19:03:02 +01:00
bakkeby
52db51175b Bug failing to close the last window using the centered floating master layout, ref. #20 2020-03-23 16:18:18 +01:00
bakkeby
ceed6813d3 Styling 2020-03-23 16:15:40 +01:00
bakkeby
7bc3cf765e Adding stacker patch as requested ref. #17 2020-03-23 12:15:50 +01:00
bakkeby
39df3ca2ec Replacing SchemeSel background for systray with that of SchemeNorm 2020-03-22 19:39:08 +01:00
bakkeby
9344ff61dd Alternative fix which is more in line with the original diff, ref. #18 2020-03-22 11:09:47 +01:00
bakkeby
f401a51fa8 Fix broken client when using systray without the alpha patch, ref. #18 2020-03-22 10:55:43 +01:00
bakkeby
9bc39c02b2 Fixing bugs in relation to #12 2020-03-21 14:23:27 +01:00
bakkeby
873b856428 FAKEFULLSCREEN_PATCH takes precedence over the FAKEFULLSCREEN_CLIENT_PATCH, ref. #13 2020-03-20 16:45:20 +01:00
bakkeby
2541d38d2c Rewording slave --> stack 2020-03-20 16:18:58 +01:00
bakkeby
8047fe257b Layouts - re-distributing remaining pixels after even split to address #12 2020-03-20 15:20:07 +01:00
bakkeby
143f94cbc2 Fix for 0 nmaster for tile layout 2020-03-07 17:50:06 +01:00
bakkeby
58ab50845d Adding option to enable gaps for monocle layout, ref. issue #11 2020-03-07 17:03:19 +01:00
bakkeby
e75decf7de Pertag togglegaps change ref. issue #11 2020-03-07 12:44:42 +01:00
bakkeby
4b45c6071f Adding vtcolors patch 2020-02-11 18:31:11 +01:00
bakkeby
90a848d608 Adding swaptags patch 2020-02-11 11:27:39 +01:00
bakkeby
8cb609fa1e Fix for systray flickering ref. #9 2020-02-09 15:17:05 +01:00
bakkeby
ed20fd9c61 Feature request to add alternative scratchpad patch by Gaspar Vardanyan ref. #8 2020-02-09 14:55:40 +01:00
bakkeby
ecd64a9769 Fix systray position when barpadding patch is enabled, ref. #9 2020-02-09 13:04:28 +01:00
bakkeby
6de03c1735 Adding transferall patch 2020-02-02 11:55:19 +01:00
bakkeby
4ddfdab30e Adding fsignal patch and moved dwmc signal settings to config.def.h 2020-02-02 11:41:34 +01:00
bakkeby
8392323938 Fix for undefined reference to getgaps when using only nrowgrid layout with vanitygaps 2020-01-30 11:43:47 +01:00
bakkeby
4405df28bd Fix for undefined reference to getgaps when using only centeredmaster layout 2020-01-30 09:47:26 +01:00
bakkeby
d644c89c74 Added shiftview patch 2020-01-29 14:22:24 +01:00
bakkeby
347ac5146c Correcting warnings ref. #4 2020-01-29 13:32:53 +01:00
bakkeby
5e75da8dd1 Adding swapfocus patch 2020-01-29 11:31:52 +01:00
bakkeby
84b0361b65 Adding transfer patch 2020-01-26 15:32:14 +01:00
bakkeby
fa6e3d9500 Holdbar compatibility with barpadding, extrabar and statuspadding. 2020-01-24 20:41:08 +01:00
bakkeby
83a7b16a86 Adding inplacerotate patch 2020-01-17 09:54:23 +01:00
bakkeby
bf4fdc6484 Fixes for missleading variable? #2 2020-01-15 13:23:51 +01:00
bakkeby
3b175a5387 Adding improvement to the fakefullscreenclient exiting out of proper fullscreen into tiled fullscreen 2019-11-22 09:21:56 +01:00
bakkeby
9b85650c1d Adding fakefullscreeenclient patch 2019-11-21 12:23:38 +01:00
bakkeby
5fa724da0d Tidying style 2019-11-21 12:09:05 +01:00
bakkeby
42b66d4b29 Addressed some conflicts between CMDCUSTOMIZE and NODMENU patches as well as between EXRESIZE and MAXIMIZE patches 2019-11-04 15:17:19 +01:00
bakkeby
2112ea927f Adding exresize patch 2019-10-24 13:00:05 +02:00
bakkeby
3726d8d1ea Adding swallow patch 2019-10-24 09:33:20 +02:00
bakkeby
3279c8747a Adding note about flexipatch-finalizer 2019-10-16 10:28:16 +02:00
bakkeby
2eb8bcdf15 Adding scratchpad patch 2019-10-10 23:33:04 +02:00
bakkeby
ed1c509df3 Adding mdpcontrol patch 2019-10-10 23:09:07 +02:00
bakkeby
703e9da110 Correction when only using col layout + cfacts 2019-10-09 09:29:52 +02:00
bakkeby
b32fe221b6 Adding columns layout 2019-10-08 22:57:21 +02:00
bakkeby
83242012da Fixed minor cross-compatibility issues for combo, holdbar, leftlayout, hidevacanttags, taggrid and activetagindicatorbar 2019-10-08 00:54:06 +02:00
bakkeby
ca8638128f Adding dwmc patch 2019-10-07 23:34:23 +02:00
bakkeby
2612060419 Adding sortscreens patch 2019-10-07 22:56:53 +02:00
bakkeby
132ceee073 Added statusallmons patch, fixed minor cross-compatibility issues for killunsel, fullscreen, noborder, tagintostack patches 2019-10-06 23:43:51 +02:00
bakkeby
ac4269a4f2 Adding cmdcustomize patch 2019-10-05 23:56:43 +02:00
bakkeby
15a4c58924 Adding taggrid patch 2019-10-05 23:28:50 +02:00
bakkeby
b6928ab1fb Adding killunsel patch 2019-10-05 22:55:46 +02:00
bakkeby
a25d00eb00 Adding tagall patch 2019-10-04 23:56:00 +02:00
bakkeby
e0a21f0869 Adding movestack patch 2019-10-04 23:13:55 +02:00
bakkeby
8c768b21e1 Adding monoclesymbol patch 2019-10-04 22:51:42 +02:00
bakkeby
2de0c0e307 Adding maximize patch 2019-10-04 22:46:47 +02:00
bakkeby
853c64fbb7 Adding switchcol patch 2019-10-04 00:20:47 +02:00
bakkeby
40000bba1c Adding quitonlyonempty patch and made monocle layout position configurable for fullscreen and warp patches 2019-10-03 22:58:58 +02:00
bakkeby
9ebd9c8397 Adding focusurgent patch 2019-10-03 00:10:08 +02:00
bakkeby
1f21ed72d1 Adding focusadjacenttag patch 2019-10-02 23:57:25 +02:00
bakkeby
0a23ed6efd Adding restartsig and emptyview patches 2019-10-02 23:22:04 +02:00
bakkeby
37b1b54ab9 Adding fullscreen, holdbar and unfloatvisible patches 2019-10-02 00:03:21 +02:00
bakkeby
009819e186 Replaced flextile with flextile-deluxe, refactored monitor rules to support predetermined layouts per tag 2019-09-30 23:52:51 +02:00
bakkeby
dc5d77e95f Adding urgentborder patch 2019-09-16 00:13:03 +02:00
bakkeby
f60b0b5121 Adding winview patch 2019-09-15 23:36:05 +02:00
bakkeby
f8f67508d8 Adding xrdb patch 2019-09-15 22:45:22 +02:00
bakkeby
30e0a3b5e4 Adding sticky and warp patches 2019-09-15 00:46:00 +02:00