diff --git a/README.org b/README.org index cb89263..3617ea1 100644 --- a/README.org +++ b/README.org @@ -1,7 +1,207 @@ -#+title: Personal DWM Configuration with Polybar -#+author: Sravan Balaji -#+auto_tangle: t -#+startup: showeverything +#+TITLE: Personal DWM Configuration with Polybar +#+AUTHOR: Sravan Balaji +#+AUTO_TANGLE: t +#+STARTUP: showeverything + +* Table of Contents :TOC_3:noexport: +- [[#welcome][Welcome]] +- [[#dwm---dynamic-window-manager][dwm - dynamic window manager]] + - [[#requirements][Requirements]] + - [[#installation][Installation]] + - [[#running-dwm][Running dwm]] +- [[#dwm-flexipatch][dwm flexipatch]] + - [[#changelog][Changelog]] + - [[#patches-included][Patches Included]] + - [[#layouts-included][Layouts Included]] +- [[#patches][Patches]] + - [[#bar-modules][Bar Modules]] + - [[#awesome-bar][Awesome Bar]] + - [[#dwm-blocks][DWM Blocks]] + - [[#fancy-bar][Fancy Bar]] + - [[#flex-win-title][Flex Win Title]] + - [[#layout-menu][Layout Menu]] + - [[#layout-symbol][Layout Symbol]] + - [[#powerline][Powerline]] + - [[#tab-groups][Tab Groups]] + - [[#tag-grid][Tag Grid]] + - [[#status][Status]] + - [[#status-button][Status Button]] + - [[#status-cmd][Status CMD]] + - [[#status-2d][Status 2D]] + - [[#systray][Systray]] + - [[#tags][Tags]] + - [[#window-icon][Window Icon]] + - [[#window-title][Window Title]] + - [[#title-padding][Title Padding]] + - [[#bar-options][Bar Options]] + - [[#active-tag-indicator][Active Tag Indicator]] + - [[#alpha][Alpha]] + - [[#alternative-tags][Alternative Tags]] + - [[#alternative-tags-decoration][Alternative Tags Decoration]] + - [[#anybar][Anybar]] + - [[#border][Border]] + - [[#centered-window-name][Centered Window Name]] + - [[#client-indicator][Client Indicator]] + - [[#color-emoji][Color Emoji]] + - [[#dmenu-match-top][Dmenu Match Top]] + - [[#extra-status][Extra Status]] + - [[#ewmh-tags][EWMH Tags]] + - [[#height][Height]] + - [[#hide-vacant-tags][Hide Vacant Tags]] + - [[#holdbar][Holdbar]] + - [[#ignore-xft-errors-when-drawing-text][Ignore Xft Errors When Drawing Text]] + - [[#padding][Padding]] + - [[#pango][Pango]] + - [[#status-colors][Status Colors]] + - [[#status-padding][Status Padding]] + - [[#vt-colors][VT Colors]] + - [[#window-title-actions][Window Title Actions]] + - [[#other][Other]] + - [[#always-center][Always Center]] + - [[#aspect-resize][Aspect Resize]] + - [[#attach-above][Attach Above]] + - [[#attach-aside][Attach Aside]] + - [[#attach-below][Attach Below]] + - [[#attach-bottom][Attach Bottom]] + - [[#auto-start][Auto Start]] + - [[#auto-resize][Auto Resize]] + - [[#center][Center]] + - [[#center-transient][Center Transient]] + - [[#cfacts][CFacts]] + - [[#cmd-customize][CMD Customize]] + - [[#combo][Combo]] + - [[#cool-auto-start][Cool Auto Start]] + - [[#cycle-layouts][Cycle Layouts]] + - [[#decoration-hints][Decoration Hints]] + - [[#distribute-tags][Distribute Tags]] + - [[#drag-cfact][Drag CFact]] + - [[#drag-mfact][Drag MFact]] + - [[#dwmc][DWMC]] + - [[#empty-view][Empty View]] + - [[#extension-resize][Extension Resize]] + - [[#fake-fullscreen][Fake Fullscreen]] + - [[#fake-fullscreen-client][Fake Fullscreen Client]] + - [[#float-position][Float Position]] + - [[#focus-adjacent-tag][Focus Adjacent Tag]] + - [[#focus-direction][Focus Direction]] + - [[#focus-master][Focus Master]] + - [[#focus-on-click][Focus On Click]] + - [[#focus-urgent][Focus Urgent]] + - [[#focus-on-net-active][Focus On Net Active]] + - [[#fake-signals][Fake Signals]] + - [[#fullscreen][Fullscreen]] + - [[#in-place-rotate][In-Place Rotate]] + - [[#insets][Insets]] + - [[#ipc][IPC]] + - [[#is-permanent][Is Permanent]] + - [[#key-modes][Key Modes]] + - [[#kill-unselected][Kill Unselected]] + - [[#lg3d][LG3d]] + - [[#lose-fullscreen][Lose Fullscreen]] + - [[#maximize-floating-windows][Maximize Floating Windows]] + - [[#music-player-daemon][Music Player Daemon]] + - [[#monitor-rules][Monitor Rules]] + - [[#monocle-symbol][Monocle Symbol]] + - [[#move-place][Move Place]] + - [[#move-resize][Move Resize]] + - [[#move-stack][Move Stack]] + - [[#net-client-list-stacking][Net Client List Stacking]] + - [[#no-border][No Border]] + - [[#no-dmenu][No Dmenu]] + - [[#no-mod-buttons][No Mod Buttons]] + - [[#no-transparent-borders][No Transparent Borders]] + - [[#on-empty-keys][On Empty Keys]] + - [[#only-one-rule-match][Only One Rule Match]] + - [[#only-quit-on-empty][Only Quit On Empty]] + - [[#per-tag][Per Tag]] + - [[#place-mouse][Place Mouse]] + - [[#push][Push]] + - [[#re-organize-tags][Re-Organize Tags]] + - [[#resize-corners][Resize Corners]] + - [[#resize-point][Resize Point]] + - [[#restart-sig][Restart SIG]] + - [[#rio-draw][Rio Draw]] + - [[#rotate-stack][Rotate Stack]] + - [[#rounded-corners][Rounded Corners]] + - [[#save-floats][Save Floats]] + - [[#scratch-pads][Scratch Pads]] + - [[#selective-fake-fullscreen][Selective Fake Fullscreen]] + - [[#self-restart][Self Restart]] + - [[#send-monitor-keep-focus][Send Monitor Keep Focus]] + - [[#set-border-pixels][Set Border Pixels]] + - [[#shift-view][Shift View]] + - [[#size-hints][Size Hints]] + - [[#sort-screens][Sort Screens]] + - [[#spawn-cmd][Spawn CMD]] + - [[#stacker][Stacker]] + - [[#steam][Steam]] + - [[#sticky][Sticky]] + - [[#swallow][Swallow]] + - [[#swap-focus][Swap Focus]] + - [[#swap-tags][Swap Tags]] + - [[#switch-column-focus][Switch Column Focus]] + - [[#switch-tag][Switch Tag]] + - [[#tab][Tab]] + - [[#tag-all][Tag All]] + - [[#tag-all-monitor][Tag All Monitor]] + - [[#tag-into-stack][Tag Into Stack]] + - [[#tag-monitor-fix-fullscreen][Tag Monitor Fix Fullscreen]] + - [[#tag-other-monitor][Tag Other Monitor]] + - [[#tag-swap-monitor][Tag Swap Monitor]] + - [[#tap-resize][Tap Resize]] + - [[#toggle-fullscreen][Toggle Fullscreen]] + - [[#toggle-layout][Toggle Layout]] + - [[#toggle-tag][Toggle Tag]] + - [[#transfer][Transfer]] + - [[#unfloat-visible][Unfloat Visible]] + - [[#vanity-gaps][Vanity Gaps]] + - [[#view-on-tag][View On Tag]] + - [[#warp][Warp]] + - [[#window-role-rule][Window Role Rule]] + - [[#window-view][Window View]] + - [[#x-keyboard][X Keyboard]] + - [[#xrdb][XRDB]] + - [[#zoom-floating][Zoom Floating]] + - [[#zoom-swap][Zoom Swap]] + - [[#layouts][Layouts]] + - [[#bottomstack][Bottomstack]] + - [[#centered-master][Centered Master]] + - [[#columns][Columns]] + - [[#deck][Deck]] + - [[#fibonacci][Fibonacci]] + - [[#flextile][Flextile]] + - [[#grid][Grid]] + - [[#tile][Tile]] + - [[#monocle][Monocle]] +- [[#build-system-settings][Build System Settings]] + - [[#make-config][Make Config]] + - [[#makefile][Makefile]] +- [[#dwm-configuration][DWM Configuration]] + - [[#appearance][Appearance]] + - [[#indicators][Indicators]] + - [[#colors][Colors]] + - [[#define-colors][Define Colors]] + - [[#bar-flex-win-title][Bar Flex Win Title]] + - [[#bar-alpha][Bar Alpha]] + - [[#vt-colors-1][VT Colors]] + - [[#set-colors][Set Colors]] + - [[#powerline-1][Powerline]] + - [[#layout-menu-1][Layout Menu]] + - [[#autostart][Autostart]] + - [[#scratchpads][Scratchpads]] + - [[#tags-1][Tags]] + - [[#rules][Rules]] + - [[#window-rules][Window Rules]] + - [[#monitor--tag-rules][Monitor & Tag Rules]] + - [[#bar-rules][Bar Rules]] + - [[#layouts-1][Layouts]] + - [[#keybindings][Keybindings]] +- [[#status-bar][Status Bar]] + - [[#polybar][Polybar]] + - [[#general][General]] + - [[#bars][Bars]] + - [[#modules][Modules]] + - [[#launch-script][Launch Script]] * Welcome @@ -9,16 +209,16 @@ My personal configuration of dwm, written as an [[https://orgmode.org][Org Mode] Run the block below with ~C-c C-c~ to tangle code blocks to config file. -#+begin_src emacs-lisp :tangle no +#+BEGIN_SRC emacs-lisp :tangle no (org-mode-restart) (org-babel-tangle) -#+end_src +#+END_SRC After making changes, run the following in a terminal to recompile. -#+begin_src bash :tangle no +#+BEGIN_SRC bash :tangle no sudo make clean install -#+end_src +#+END_SRC * dwm - dynamic window manager @@ -34,35 +234,35 @@ Edit config.mk to match your local setup (dwm is installed into the /usr/local n Afterwards enter the following command to build and install dwm (if necessary as root): -#+begin_src bash :tangle no +#+BEGIN_SRC bash :tangle no make clean install -#+end_src +#+END_SRC ** Running dwm Add the following line to your .xinitrc to start dwm using startx: -#+begin_src bash :tangle no +#+BEGIN_SRC bash :tangle no exec dwm -#+end_src +#+END_SRC In order to connect dwm to a specific display, make sure that the DISPLAY environment variable is set correctly, e.g.: -#+begin_src bash :tangle no +#+BEGIN_SRC bash :tangle no DISPLAY=foo.bar:1 exec dwm -#+end_src +#+END_SRC (This will start dwm on display :1 of the host foo.bar.) In order to display status info in the bar, you can do something like this in your .xinitrc: -#+begin_src bash :tangle no +#+BEGIN_SRC bash :tangle no while xsetroot -name "`date` `uptime | sed 's/.*,//'`" do sleep 1 done & exec dwm -#+end_src +#+END_SRC * dwm flexipatch @@ -70,9 +270,9 @@ This dwm 6.2 (67d76bd, 2021-03-29) side project has a different take on dwm patc For example to include the ~alpha~ patch then you would only need to flip this setting from 0 to 1 in [[https://github.com/bakkeby/dwm-flexipatch/blob/master/patches.def.h][patches.h]]: -#+begin_src c :tangle no +#+BEGIN_SRC c :tangle no #define BAR_ALPHA_PATCH 1 -#+end_src +#+END_SRC So if you have ever been curious about trying out dwm, but have been discouraged by manual patching, then this may be a good starting point to see what a "fully fledged" dwm can look like. Want to try out the ~pertag~ patch? Just flip a config and recompile. Once you have found out what works for you and what doesn't then you should be in a better position to choose patches should you want to start patching from scratch. @@ -922,9 +1122,9 @@ Awesomebar takes precedence over fancybar. https://dwm.suckless.org/patches/awesomebar/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_AWESOMEBAR_PATCH 0 -#+end_src +#+END_SRC *** DWM Blocks @@ -936,9 +1136,9 @@ dwmblocks: https://github.com/torrinfail/dwmblocks https://dwm.suckless.org/patches/statuscmd/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_DWMBLOCKS_PATCH 0 -#+end_src +#+END_SRC **** SIGUSR1 @@ -958,9 +1158,9 @@ Patch: https://gist.github.com/danbyl/54f7c1d57fc6507242a95b71c3d8fdea https://dwm.suckless.org/patches/statuscmd/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_DWMBLOCKS_SIGUSR1_PATCH 0 -#+end_src +#+END_SRC *** Fancy Bar @@ -970,17 +1170,17 @@ Awesomebar takes precedence over fancybar. Fancybar takes precedence over the ce https://dwm.suckless.org/patches/fancybar/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_FANCYBAR_PATCH 0 -#+end_src +#+END_SRC *** Flex Win Title Being an evolution of the bartabgroups patch the flexwintitle patch specifically taps into the many layout options that flextile-deluxe offers to produce a window title section in the bar that is representative of what is shown on screen. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_FLEXWINTITLE_PATCH 0 -#+end_src +#+END_SRC *** Layout Menu @@ -993,17 +1193,17 @@ This patch adds a context menu for layout switching. https://dwm.suckless.org/patches/layoutmenu/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_LAYOUTMENU_PATCH 0 -#+end_src +#+END_SRC *** Layout Symbol Show layout symbol in bar -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_LTSYMBOL_PATCH 0 -#+end_src +#+END_SRC *** Powerline @@ -1012,25 +1212,25 @@ Show layout symbol in bar Adds powerline arrows for the status. This uses statuscolors logic for choosing colors for the powerline. As these markers are also control characters there is no explicit statuscmd support for this patch. Powerline separators are defined as: -#+begin_example +#+BEGIN_EXAMPLE |\xXX (creates a hard edge) <\xXX (creates a less than arrow) /\xXX (creates a diagonal line) -#+end_example +#+END_EXAMPLE Examples: -#+begin_example +#+BEGIN_EXAMPLE xsetroot -name "$(echo -e '<\x01a<\x02b<\x03c')" xsetroot -name "$(echo -e '/\x01d/\x02d/\x03f')" -#+end_example +#+END_EXAMPLE https://gitlab.com/udiboy1209-suckless/dwm/-/commit/071f5063e8ac4280666828179f92788d893eea40#4b1a539194be7467cefbda22f675a3b7c19ceca7 https://dwm.suckless.org/patches/statuscolors/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_POWERLINE_STATUS_PATCH 0 -#+end_src +#+END_SRC **** Powerline Tags @@ -1038,17 +1238,17 @@ Adds powerline arrows for the tags. https://gitlab.com/udiboy1209-suckless/dwm/-/commit/071f5063e8ac4280666828179f92788d893eea40#4b1a539194be7467cefbda22f675a3b7c19ceca7 -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_POWERLINE_TAGS_PATCH 0 -#+end_src +#+END_SRC **** Powerline Tags Slash Alters the tags powerline to use forward slash instead of arrows. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_POWERLINE_TAGS_SLASH_PATCH 0 -#+end_src +#+END_SRC *** Tab Groups @@ -1056,9 +1256,9 @@ This patch turns the titlebar area into a mfact-respecting tabbar showing each c https://dwm.suckless.org/patches/bartabgroups/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_TABGROUPS_PATCH 0 -#+end_src +#+END_SRC *** Tag Grid @@ -1066,17 +1266,17 @@ This patch adds an option to place tags in rows like in many other window manage https://dwm.suckless.org/patches/taggrid/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_TAGGRID_PATCH 0 -#+end_src +#+END_SRC *** Status Show status in bar -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_STATUS_PATCH 0 -#+end_src +#+END_SRC *** Status Button @@ -1084,9 +1284,9 @@ This patch adds a clickable button to the left hand side of the statusbar. https://dwm.suckless.org/patches/statusbutton/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_STATUSBUTTON_PATCH 0 -#+end_src +#+END_SRC *** Status CMD @@ -1094,9 +1294,9 @@ This patch adds the ability to execute shell commands based on the mouse button https://dwm.suckless.org/patches/statuscmd/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_STATUSCMD_PATCH 0 -#+end_src +#+END_SRC *** Status 2D @@ -1109,17 +1309,17 @@ This patch is incompatible with the extrabar patch. https://dwm.suckless.org/patches/status2d/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_STATUS2D_PATCH 0 -#+end_src +#+END_SRC **** No Alpha Supplementary patch should you want to disable alpha for the status2d section -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_STATUS2D_NO_ALPHA_PATCH 0 -#+end_src +#+END_SRC **** XRDB Term Colors @@ -1131,9 +1331,9 @@ E.g. ^B5^ would use color5 as the background color. https://dwm.suckless.org/patches/status2d/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_STATUS2D_XRDB_TERMCOLORS_PATCH 0 -#+end_src +#+END_SRC *** Systray @@ -1141,17 +1341,17 @@ The systray patch adds systray for the status bar. https://dwm.suckless.org/patches/systray/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_SYSTRAY_PATCH 0 -#+end_src +#+END_SRC *** Tags Show tag symbols in bar. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_TAGS_PATCH 0 -#+end_src +#+END_SRC *** Window Icon @@ -1171,9 +1371,9 @@ vectorize for better performance. https://github.com/AdamYuan/dwm-winicon https://dwm.suckless.org/patches/winicon -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_WINICON_PATCH 0 -#+end_src +#+END_SRC *** Window Title @@ -1181,9 +1381,9 @@ https://dwm.suckless.org/patches/winicon Show window title in bar. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_WINTITLE_PATCH 0 -#+end_src +#+END_SRC **** Floating @@ -1193,9 +1393,9 @@ This depends on code from the flexwintitle patch. Note that the configuration in config.def.h for this is merely an example. If combined with the corresponding hidden patch then these two will overlap unless the width of the modules are controlled. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_WINTITLE_FLOATING_PATCH 0 -#+end_src +#+END_SRC **** Hidden @@ -1205,18 +1405,18 @@ This depends on code from the flexwintitle patch. Note that the configuration in config.def.h for this is merely an example. If combined with the corresponding floating patch then these two will overlap unless the width of the modules are controlled. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_WINTITLE_HIDDEN_PATCH 0 -#+end_src +#+END_SRC *** Title Padding Title bar modules such as wintitle (default), fancybar and awesomebar do not by default add left and/or right padding as they take up the remaining space. These options allow you explicitly add padding should you need it. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_TITLE_RIGHT_PAD_PATCH 0 #define BAR_TITLE_LEFT_PAD_PATCH 0 -#+end_src +#+END_SRC ** Bar Options @@ -1230,9 +1430,9 @@ Set the tagindicatortype variable in config.h to INDICATOR_TOP_BAR to enable thi https://dwm.suckless.org/patches/activetagindicatorbar/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_ACTIVETAGINDICATORBAR_PATCH N/A -#+end_src +#+END_SRC **** Alternative @@ -1240,9 +1440,9 @@ Alternative patch to the activetagindicatorbar patch, adds the bar below the tag Set the tagindicatortype variable in config.h to INDICATOR_BOTTOM_BAR to enable this. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_ACTIVETAGINDICATORBAR_ALT1_PATCH N/A -#+end_src +#+END_SRC *** Alpha @@ -1252,9 +1452,9 @@ You need to uncomment the corresponding line in config.mk to use the -lXrender l https://dwm.suckless.org/patches/alpha/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_ALPHA_PATCH 0 -#+end_src +#+END_SRC *** Alternative Tags @@ -1262,9 +1462,9 @@ This patch introduces alternative tags which can be switched on the fly for the https://dwm.suckless.org/patches/alternativetags/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_ALTERNATIVE_TAGS_PATCH 0 -#+end_src +#+END_SRC *** Alternative Tags Decoration @@ -1272,9 +1472,9 @@ This patches provides the ability to use alternative text for tags which contain https://dwm.suckless.org/patches/alttagsdecoration/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_ALTTAGSDECORATION_PATCH 0 -#+end_src +#+END_SRC *** Anybar @@ -1288,25 +1488,25 @@ NB: Unless you want both anybar + dwm bar(s) then the recommendation is to disab https://dwm.suckless.org/patches/anybar/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_ANYBAR_PATCH 1 -#+end_src +#+END_SRC **** Top and Bottom Bars Anybar option to place the next bar depending on previous bar's position (top or bottom) -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_ANYBAR_TOP_AND_BOTTOM_BARS_PATCH 0 -#+end_src +#+END_SRC **** Manage Width Anybar option to let dwm manage the width of the bar. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_ANYBAR_MANAGE_WIDTH_PATCH 0 -#+end_src +#+END_SRC *** Border @@ -1314,9 +1514,9 @@ This patch adds a border around the status bar(s) just like the border of client https://codemadness.org/paste/dwm-border-bar.patch -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_BORDER_PATCH 0 -#+end_src +#+END_SRC *** Centered Window Name @@ -1326,9 +1526,9 @@ This is compatible with the wintitle, bartabgroups, flexwintitle and awesomebar https://dwm.suckless.org/patches/centeredwindowname/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_CENTEREDWINDOWNAME_PATCH 0 -#+end_src +#+END_SRC *** Client Indicator @@ -1338,9 +1538,9 @@ Set the tagindicatortype variable in config.h to INDICATOR_CLIENT_DOTS to enable https://dwm.suckless.org/patches/clientindicators/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_CLIENTINDICATOR_PATCH N/A -#+end_src +#+END_SRC *** Color Emoji @@ -1348,9 +1548,9 @@ This patch enables color emoji in dwm by removing a workaround for a BadLength e To enable this you will need an updated Xft library that can handle color glyphs otherwise dwm will crash on encountering such characters. Note that you will also need a font that provides color emojis for this to work. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_COLOR_EMOJI_PATCH 0 -#+end_src +#+END_SRC *** Dmenu Match Top @@ -1358,9 +1558,9 @@ Updates the position of dmenu to match that of the bar. I.e. if topbar is 0 then https://dwm.suckless.org/patches/dmenumatchtop -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_DMENUMATCHTOP_PATCH 0 -#+end_src +#+END_SRC *** Extra Status @@ -1368,9 +1568,9 @@ Originally this was the extrabar patch, but as the handling of extra bars is now https://dwm.suckless.org/patches/extrabar/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_EXTRASTATUS_PATCH 0 -#+end_src +#+END_SRC *** EWMH Tags @@ -1386,9 +1586,9 @@ https://github.com/bakkeby/dwm-flexipatch/issues/50 (_IS_FLOATING patch) https://dwm.suckless.org/patches/ewmhtags/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_EWMHTAGS_PATCH 1 -#+end_src +#+END_SRC *** Height @@ -1396,9 +1596,9 @@ Allows the bar height to be explicitly set rather than being derived from font. https://dwm.suckless.org/patches/bar_height/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_HEIGHT_PATCH 0 -#+end_src +#+END_SRC *** Hide Vacant Tags @@ -1406,9 +1606,9 @@ This patch prevents dwm from drawing tags with no clients (i.e. vacant) on the b https://dwm.suckless.org/patches/hide_vacant_tags/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_HIDEVACANTTAGS_PATCH 0 -#+end_src +#+END_SRC *** Holdbar @@ -1416,9 +1616,9 @@ With this patch dwm's built-in status bar is only shown when HOLDKEY is pressed http://dwm.suckless.org/patches/holdbar/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_HOLDBAR_PATCH 0 -#+end_src +#+END_SRC *** Ignore Xft Errors When Drawing Text @@ -1430,9 +1630,9 @@ https://groups.google.com/forum/m/#!topic/wmii/7bncCahYIww https://docs.google.com/viewer?a=v&pid=forums&srcid=MDAwODA2MTg0MDQyMjE0OTgzMzMBMDQ3ODQzODkyMTU3NTAyMTMxNTYBX2RUMVNtOUtDQUFKATAuMQEBdjI&authuser=0 -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_IGNORE_XFT_ERRORS_WHEN_DRAWING_TEXT_PATCH 0 -#+end_src +#+END_SRC *** Padding @@ -1440,9 +1640,9 @@ This patch adds vertical and horizontal space between the statusbar and the edge https://dwm.suckless.org/patches/barpadding/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_PADDING_PATCH 0 -#+end_src +#+END_SRC *** Pango @@ -1463,9 +1663,9 @@ https://developer.gnome.org/pygtk/stable/pango-markup-language.html https://lists.suckless.org/hackers/2004/17285.html https://dwm.suckless.org/patches/pango/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_PANGO_PATCH 0 -#+end_src +#+END_SRC *** Status Colors @@ -1477,9 +1677,9 @@ This patch is compatible with the statuscmd patch with the caveat that the first https://dwm.suckless.org/patches/statuscolors/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_STATUSCOLORS_PATCH 0 -#+end_src +#+END_SRC *** Status Padding @@ -1487,9 +1687,9 @@ This patch adds configuration options for horizontal and vertical padding in the https://dwm.suckless.org/patches/statuspadding/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_STATUSPADDING_PATCH 0 -#+end_src +#+END_SRC *** VT Colors This patch adds the ability for dwm to read colors from the linux virtual console. @@ -1500,9 +1700,9 @@ Essentially this way the colors you use in your regular tty is "mirrored" to dwm https://dwm.suckless.org/patches/vtcolors/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_VTCOLORS_PATCH 0 -#+end_src +#+END_SRC *** Window Title Actions @@ -1512,9 +1712,9 @@ Both awesomebar and bartabgroups patches depend on this patch and it will be aut https://github.com/bakkeby/patches/blob/master/dwm/dwm-barmodules-wintitleactions-6.2.diff -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BAR_WINTITLEACTIONS_PATCH BAR_AWESOMEBAR_PATCH || BAR_TABGROUPS_PATCH || BAR_FLEXWINTITLE_PATCH -#+end_src +#+END_SRC ** Other @@ -1524,9 +1724,9 @@ All floating windows are centered, like the center patch, but without a rule. Th https://dwm.suckless.org/patches/alwayscenter/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ALWAYSCENTER_PATCH 1 -#+end_src +#+END_SRC *** Aspect Resize @@ -1534,9 +1734,9 @@ This patch allows windows to be resized with its aspect ratio remaining constant https://dwm.suckless.org/patches/aspectresize/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ASPECTRESIZE_PATCH 1 -#+end_src +#+END_SRC *** Attach Above @@ -1546,9 +1746,9 @@ This patch takes precedence over ATTACHASIDE_PATCH. https://dwm.suckless.org/patches/attachabove/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ATTACHABOVE_PATCH 0 -#+end_src +#+END_SRC *** Attach Aside @@ -1558,9 +1758,9 @@ This patch takes precedence over ATTACHBELOW_PATCH. https://dwm.suckless.org/patches/attachaside/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ATTACHASIDE_PATCH 0 -#+end_src +#+END_SRC *** Attach Below @@ -1570,9 +1770,9 @@ This patch takes precedence over ATTACHBOTTOM_PATCH. https://dwm.suckless.org/patches/attachbelow/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ATTACHBELOW_PATCH 1 -#+end_src +#+END_SRC *** Attach Bottom @@ -1580,9 +1780,9 @@ This patch adds new clients at the bottom of the stack. https://dwm.suckless.org/patches/attachbottom/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ATTACHBOTTOM_PATCH 0 -#+end_src +#+END_SRC *** Auto Start @@ -1590,9 +1790,9 @@ This patch will make dwm run "~/.local/share/dwm/autostart_blocking.sh" and "~/. https://dwm.suckless.org/patches/autostart/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define AUTOSTART_PATCH 0 -#+end_src +#+END_SRC *** Auto Resize @@ -1600,9 +1800,9 @@ By default, windows that are not visible when requesting a resize/move will not https://dwm.suckless.org/patches/autoresize/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define AUTORESIZE_PATCH 1 -#+end_src +#+END_SRC *** Center @@ -1612,9 +1812,9 @@ This patch takes precedence over centeredwindowname, alwayscenter and fancybar p https://dwm.suckless.org/patches/center/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define CENTER_PATCH 0 -#+end_src +#+END_SRC *** Center Transient @@ -1626,17 +1826,17 @@ It should be noted that in dwm transient windows are not subject to normal clien This patch centers transient windows on the screen like the center patch does. Note that the 6.2 center patch piggy-backed on the updatewindowtype function to ensure that all dialog boxes were centered, transient or not. This function was removed in relation to adding wintype as a client rule filter, hence this no longer works out of the box. This patch restores previous behaviour with the center patch. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define CENTER_TRANSIENT_WINDOWS_PATCH 0 -#+end_src +#+END_SRC **** By Parent As above, except that the transient window is centered within the position of the parent window, rather than at the center of the screen. This takes precedence over the above patch. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define CENTER_TRANSIENT_WINDOWS_BY_PARENT_PATCH 0 -#+end_src +#+END_SRC *** CFacts @@ -1644,9 +1844,9 @@ This patch provides the ability to assign different weights to clients in their https://dwm.suckless.org/patches/cfacts/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define CFACTS_PATCH 1 -#+end_src +#+END_SRC *** CMD Customize @@ -1654,9 +1854,9 @@ This patch allows color attributes to be set through the command line. https://dwm.suckless.org/patches/cmdcustomize/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define CMDCUSTOMIZE_PATCH 0 -#+end_src +#+END_SRC *** Combo @@ -1664,9 +1864,9 @@ This patch tweaks the tagging interface so that you can select multiple tags for https://dwm.suckless.org/patches/combo/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define COMBO_PATCH 1 -#+end_src +#+END_SRC *** Cool Auto Start @@ -1674,9 +1874,9 @@ Allow dwm to execute commands from autostart array in your config.h file. When d https://dwm.suckless.org/patches/cool_autostart/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define COOL_AUTOSTART_PATCH 0 -#+end_src +#+END_SRC *** Cycle Layouts @@ -1684,9 +1884,9 @@ The cyclelayouts patch lets you cycle through all your layouts. https://dwm.suckless.org/patches/cyclelayouts/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define CYCLELAYOUTS_PATCH 1 -#+end_src +#+END_SRC *** Decoration Hints @@ -1696,9 +1896,9 @@ Not respecting this property leads to issues with applications that draw their o https://dwm.suckless.org/patches/decoration_hints/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define DECORATION_HINTS_PATCH 0 -#+end_src +#+END_SRC *** Distribute Tags @@ -1708,17 +1908,17 @@ It is a variant of the reorganizetags patch. https://dwm.suckless.org/patches/reorganizetags/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define DISTRIBUTETAGS_PATCH 0 -#+end_src +#+END_SRC *** Drag CFact Similarly to the dragmfact patch this allows you to click and drag clients to change the cfact to adjust the client's size in the stack. This patch depends on the cfacts patch. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define DRAGCFACT_PATCH 0 -#+end_src +#+END_SRC *** Drag MFact @@ -1728,9 +1928,9 @@ This patch can be a bit wonky with other layouts, but generally works. https://dwm.suckless.org/patches/dragmfact/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define DRAGMFACT_PATCH 0 -#+end_src +#+END_SRC *** DWMC @@ -1742,9 +1942,9 @@ To use this either copy the patch/dwmc shell script to somewhere in your path or http://dwm.suckless.org/patches/dwmc/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define DWMC_PATCH 1 -#+end_src +#+END_SRC *** Empty View @@ -1752,9 +1952,9 @@ This patch allows no tag at all to be selected. The result is that dwm will star https://dwm.suckless.org/patches/emptyview/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define EMPTYVIEW_PATCH 0 -#+end_src +#+END_SRC *** Extension Resize @@ -1762,9 +1962,9 @@ This patch allows the user to change size and placement of floating windows usin https://dwm.suckless.org/patches/exresize/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define EXRESIZE_PATCH 0 -#+end_src +#+END_SRC *** Fake Fullscreen @@ -1776,9 +1976,9 @@ This patch takes precedence over the fakefullscreen client patch below. https://dwm.suckless.org/patches/fakefullscreen/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FAKEFULLSCREEN_PATCH 0 -#+end_src +#+END_SRC *** Fake Fullscreen Client @@ -1788,9 +1988,9 @@ The "twist" with this patch is that fake fullscreen can be toggled on a per clie Also see the selectivefakefullscreen option that adds a rule option to enabled this on client startup. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FAKEFULLSCREEN_CLIENT_PATCH 0 -#+end_src +#+END_SRC *** Float Position @@ -1802,17 +2002,17 @@ The size and position can be specified using absolute, relative or fixed co-ordi https://github.com/bakkeby/patches/wiki/floatpos/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FLOATPOS_PATCH 0 -#+end_src +#+END_SRC **** Respect Gaps Add-on functionality for the above: make the float positions respect outer (vanity)gaps. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FLOATPOS_RESPECT_GAPS_PATCH 0 -#+end_src +#+END_SRC *** Focus Adjacent Tag @@ -1820,9 +2020,9 @@ This patch provides the ability to focus the tag on the immediate left or right http://dwm.suckless.org/patches/focusadjacenttag/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FOCUSADJACENTTAG_PATCH 0 -#+end_src +#+END_SRC *** Focus Direction @@ -1830,9 +2030,9 @@ Allows focusing on clients based on direction (up, down, left, right) instead of https://github.com/bakkeby/patches/wiki/focusdir/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FOCUSDIR_PATCH 0 -#+end_src +#+END_SRC *** Focus Master @@ -1840,9 +2040,9 @@ A simple patch that just puts focus back to the master client. https://dwm.suckless.org/patches/focusmaster/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FOCUSMASTER_PATCH 0 -#+end_src +#+END_SRC *** Focus On Click @@ -1850,9 +2050,9 @@ Switch focus only by mouse click and not sloppy (focus follows mouse pointer). https://dwm.suckless.org/patches/focusonclick/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FOCUSONCLICK_PATCH 0 -#+end_src +#+END_SRC *** Focus Urgent @@ -1864,9 +2064,9 @@ The urgent flag can be artificially set with the following xdotool command on an https://dwm.suckless.org/patches/focusurgent/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FOCUSURGENT_PATCH 0 -#+end_src +#+END_SRC *** Focus On Net Active @@ -1874,9 +2074,9 @@ By default, dwm responds to _NET_ACTIVE_WINDOW client messages by setting the ur https://dwm.suckless.org/patches/focusonnetactive/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FOCUSONNETACTIVE_PATCH 1 -#+end_src +#+END_SRC *** Fake Signals @@ -1886,9 +2086,9 @@ Also see the dwmc patch, which takes precedence over this patch. https://dwm.suckless.org/patches/fsignal/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FSIGNAL_PATCH 0 -#+end_src +#+END_SRC *** Fullscreen @@ -1896,9 +2096,9 @@ Applies the monocle layout with the focused client on top and hides the bar. Whe https://dwm.suckless.org/patches/fullscreen/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FULLSCREEN_PATCH 0 -#+end_src +#+END_SRC *** In-Place Rotate @@ -1906,9 +2106,9 @@ This patch provides a keybinding to rotate all clients in the currently selected https://dwm.suckless.org/patches/inplacerotate/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define INPLACEROTATE_PATCH 0 -#+end_src +#+END_SRC *** Insets @@ -1916,9 +2116,9 @@ This patch lets you define custom insets from each edge of the screen. One use c https://dwm.suckless.org/patches/insets/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define INSETS_PATCH 0 -#+end_src +#+END_SRC *** IPC @@ -1933,9 +2133,9 @@ https://github.com/mihirlad55/dwm-ipc https://dwm.suckless.org/patches/ipc/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define IPC_PATCH 1 -#+end_src +#+END_SRC *** Is Permanent @@ -1943,9 +2143,9 @@ Adds rule option for clients to avoid accidental termination by killclient for s https://dwm.suckless.org/patches/ispermanent/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ISPERMANENT_PATCH 0 -#+end_src +#+END_SRC *** Key Modes @@ -1953,9 +2153,9 @@ This patch adds key modes (like in vim or emacs) where chains of keyboard shortc https://dwm.suckless.org/patches/keymodes/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define KEYMODES_PATCH 0 -#+end_src +#+END_SRC *** Kill Unselected @@ -1963,9 +2163,9 @@ This patch adds a keybinding to kills all visible clients that are not selected. https://dwm.suckless.org/patches/killunsel/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define KILLUNSEL_PATCH 0 -#+end_src +#+END_SRC *** LG3d @@ -1973,9 +2173,9 @@ This changes the window manager name to LG3d instead of dwm as a workaround for Refer to the ISSUES secton of the dwm man page for more details. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define LG3D_PATCH 0 -#+end_src +#+END_SRC *** Lose Fullscreen @@ -1985,9 +2185,9 @@ It is also possible to spawn new windows (e.g. a terminal) that end up getting f https://github.com/bakkeby/patches/blob/master/dwm/dwm-losefullscreen-6.2.diff -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define LOSEFULLSCREEN_PATCH 1 -#+end_src +#+END_SRC *** Maximize Floating Windows @@ -1995,9 +2195,9 @@ This patch adds helper functions for maximizing, horizontally and vertically, fl https://dwm.suckless.org/patches/maximize/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define MAXIMIZE_PATCH 0 -#+end_src +#+END_SRC *** Music Player Daemon @@ -2010,9 +2210,9 @@ This patch depends on the following additional library: https://dwm.suckless.org/patches/mpdcontrol/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define MPDCONTROL_PATCH 0 -#+end_src +#+END_SRC *** Monitor Rules @@ -2020,9 +2220,9 @@ Adds rules per monitor, e.g. have default layouts per monitor. The use case for this is if the second monitor is vertical (i.e. rotated) then you may want to use a different default layout for this monitor than what is used for the main monitor. E.g. normal vertical split for main monitor and horizontal split for the second. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define MONITOR_RULES_PATCH 0 -#+end_src +#+END_SRC *** Monocle Symbol @@ -2030,9 +2230,9 @@ Always display the the monocle-symbol as defined in config.h if the monocle-layo https://dwm.suckless.org/patches/monoclesymbol/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define MONOCLESYMBOL_PATCH 0 -#+end_src +#+END_SRC *** Move Place @@ -2040,9 +2240,9 @@ Makes a window floating and 1/3rd the height and 1/3rd the width of the screen a https://dwm.suckless.org/patches/moveplace/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define MOVEPLACE_PATCH 0 -#+end_src +#+END_SRC *** Move Resize @@ -2050,9 +2250,9 @@ This patch allows you to move and resize dwm's clients using keyboard bindings. https://dwm.suckless.org/patches/moveresize/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define MOVERESIZE_PATCH 0 -#+end_src +#+END_SRC *** Move Stack @@ -2060,9 +2260,9 @@ This patch allows you to move clients around in the stack and swap them with the https://dwm.suckless.org/patches/movestack/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define MOVESTACK_PATCH 1 -#+end_src +#+END_SRC *** Net Client List Stacking @@ -2070,9 +2270,9 @@ Adds support for the _NET_CLIENT_LIST_STACKING atom, needed by certain applicati https://github.com/bakkeby/patches/wiki/netclientliststacking/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define NET_CLIENT_LIST_STACKING_PATCH 1 -#+end_src +#+END_SRC *** No Border @@ -2080,9 +2280,9 @@ Removes the border when there is only one window visible. https://dwm.suckless.org/patches/noborder/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define NOBORDER_PATCH 0 -#+end_src +#+END_SRC *** No Dmenu @@ -2090,9 +2290,9 @@ Enable modifying or removing dmenu in config.def.h which resulted previously in https://dwm.suckless.org/patches/nodmenu/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define NODMENU_PATCH 1 -#+end_src +#+END_SRC *** No Mod Buttons @@ -2106,9 +2306,9 @@ Example bindings: { ClkClientWin, 0, Button8, movemouse, {0} }, { ClkClientWin, 0, Button9, resizemouse, {0} }, -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define NO_MOD_BUTTONS_PATCH 0 -#+end_src +#+END_SRC *** No Transparent Borders @@ -2120,9 +2320,9 @@ https://github.com/szatanjl/dwm/commit/1529909466206016f2101457bbf37c67195714c8 https://dwm.suckless.org/patches/alpha/dwm-fixborders-6.2.diff -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define NO_TRANSPARENT_BORDERS_PATCH 1 -#+end_src +#+END_SRC *** On Empty Keys @@ -2132,17 +2332,17 @@ https://github.com/instantOS/instantWM/ https://github.com/bakkeby/dwm-flexipatch/issues/51 -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ON_EMPTY_KEYS_PATCH 0 -#+end_src +#+END_SRC *** Only One Rule Match Minor patch that prevents more than one rule being matched for a given client. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ONLY_ONE_RULE_MATCH_PATCH 0 -#+end_src +#+END_SRC *** Only Quit On Empty @@ -2152,9 +2352,9 @@ This is to prevent you accidentally losing all your work. https://dwm.suckless.org/patches/onlyquitonempty/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ONLYQUITONEMPTY_PATCH 0 -#+end_src +#+END_SRC *** Per Tag @@ -2164,9 +2364,9 @@ The pertag patch adds nmaster, mfacts and layouts per tag rather than per monito https://dwm.suckless.org/patches/pertag/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define PERTAG_PATCH 1 -#+end_src +#+END_SRC **** Vanity Gaps @@ -2174,17 +2374,17 @@ Option to store gaps on a per tag basis rather than on a per monitor basis. Depends on both pertag and vanitygaps patches being enabled. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define PERTAG_VANITYGAPS_PATCH 0 -#+end_src +#+END_SRC **** Bar This controls whether or not to also store bar position on a per tag basis, or leave it as one bar per monitor. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define PERTAGBAR_PATCH 0 -#+end_src +#+END_SRC *** Place Mouse @@ -2192,9 +2392,9 @@ This patch lets you change the position of a client in the stack using the mouse https://github.com/bakkeby/patches/wiki/placemouse -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define PLACEMOUSE_PATCH 1 -#+end_src +#+END_SRC *** Push @@ -2204,9 +2404,9 @@ This patch provides a way to move clients up and down inside the client list. https://dwm.suckless.org/patches/push/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define PUSH_PATCH 0 -#+end_src +#+END_SRC **** No Master @@ -2216,9 +2416,9 @@ This takes precedence over the push patch above. https://dwm.suckless.org/patches/push/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define PUSH_NO_MASTER_PATCH 0 -#+end_src +#+END_SRC *** Re-Organize Tags @@ -2230,9 +2430,9 @@ Clients on multiple tags will be treated as if they only were only on their left https://dwm.suckless.org/patches/reorganizetags/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define REORGANIZETAGS_PATCH 0 -#+end_src +#+END_SRC *** Resize Corners @@ -2240,9 +2440,9 @@ By default, windows only resize from the bottom right corner. With this patch th https://dwm.suckless.org/patches/resizecorners/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define RESIZECORNERS_PATCH 1 -#+end_src +#+END_SRC *** Resize Point @@ -2252,9 +2452,9 @@ This takes precedence over the resizecorners patch. https://github.com/bakkeby/patches/blob/master/dwm/dwm-resizepoint-6.2.diff -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define RESIZEPOINT_PATCH 0 -#+end_src +#+END_SRC *** Restart SIG @@ -2264,9 +2464,9 @@ Additionally dwm can quit cleanly by using kill -TERM dwmpid. https://dwm.suckless.org/patches/restartsig/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define RESTARTSIG_PATCH 1 -#+end_src +#+END_SRC *** Rio Draw @@ -2278,9 +2478,9 @@ This patch was backported from instantWM. https://github.com/bakkeby/patches/blob/master/dwm/dwm-riodraw-6.2.diff -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define RIODRAW_PATCH 0 -#+end_src +#+END_SRC *** Rotate Stack @@ -2288,9 +2488,9 @@ This patch let's you rotate through the stack using keyboard shortcuts. https://dwm.suckless.org/patches/rotatestack/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ROTATESTACK_PATCH 0 -#+end_src +#+END_SRC *** Rounded Corners @@ -2300,9 +2500,9 @@ You need to uncomment the corresponding line in config.mk to use the -lXext libr https://github.com/mitchweaver/suckless/blob/master/dwm/patches/mitch-06-rounded_corners-f04cac6d6e39cd9e3fc4fae526e3d1e8df5e34b2.patch -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ROUNDED_CORNERS_PATCH 0 -#+end_src +#+END_SRC *** Save Floats @@ -2310,9 +2510,9 @@ This patch saves size and position of every floating window before it is forced https://dwm.suckless.org/patches/save_floats/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SAVEFLOATS_PATCH 0 -#+end_src +#+END_SRC *** Scratch Pads @@ -2330,17 +2530,17 @@ https://lists.suckless.org/hackers/2004/17205.html https://dwm.suckless.org/patches/scratchpads/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SCRATCHPADS_PATCH 0 -#+end_src +#+END_SRC **** Keep Position And Size Minor alteration of the above allowing clients to keep their size and position when shown. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SCRATCHPADS_KEEP_POSITION_AND_SIZE_PATCH 0 -#+end_src +#+END_SRC **** Alternative @@ -2348,9 +2548,9 @@ This alternative patch enables a scratchpad feature in dwm similar to the scratc https://github.com/GasparVardanyan/dwm-scratchpad -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SCRATCHPAD_ALT_1_PATCH 0 -#+end_src +#+END_SRC *** Selective Fake Fullscreen @@ -2358,9 +2558,9 @@ As opposed to the original patch this only adds a rule option allowing fake full https://dwm.suckless.org/patches/selectivefakefullscreen/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SELECTIVEFAKEFULLSCREEN_PATCH 0 -#+end_src +#+END_SRC *** Self Restart @@ -2368,9 +2568,9 @@ Allows restarting dwm without the dependency of an external script. https://dwm.suckless.org/patches/selfrestart/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SELFRESTART_PATCH 0 -#+end_src +#+END_SRC *** Send Monitor Keep Focus @@ -2378,9 +2578,9 @@ This patch allow clients to keep focus when being sent to another monitor. https://github.com/bakkeby/patches/blob/master/dwm/dwm-sendmon_keepfocus-6.2.diff -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SENDMON_KEEPFOCUS_PATCH 0 -#+end_src +#+END_SRC *** Set Border Pixels @@ -2388,9 +2588,9 @@ This patch allows border pixels to be changed during runtime. https://dwm.suckless.org/patches/setborderpx/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SETBORDERPX_PATCH 0 -#+end_src +#+END_SRC *** Shift View @@ -2400,17 +2600,17 @@ This patch adds keybindings for left and right circular shift through tags. https://github.com/chau-bao-long/dotfiles/blob/master/suckless/dwm/shiftview.diff -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SHIFTVIEW_PATCH 0 -#+end_src +#+END_SRC **** Clients This variant of the shiftview patch adds left and right circular shift through tags, but skips tags where there are no clients. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SHIFTVIEW_CLIENTS_PATCH 0 -#+end_src +#+END_SRC *** Size Hints @@ -2424,9 +2624,9 @@ This version of the patch is honestly of limited utility since there are many cl https://dwm.suckless.org/patches/sizehints/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SIZEHINTS_PATCH 0 -#+end_src +#+END_SRC **** Ruled @@ -2434,9 +2634,9 @@ This patch makes dwm obey even "soft" sizehints for new clients. This ruled vers https://dwm.suckless.org/patches/sizehints/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SIZEHINTS_RULED_PATCH 0 -#+end_src +#+END_SRC *** Sort Screens @@ -2444,9 +2644,9 @@ In a multi-head setup monitor 0 is by default the primary screen, with the left https://www.mail-archive.com/hackers@suckless.org/msg09400.html -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SORTSCREENS_PATCH 1 -#+end_src +#+END_SRC *** Spawn CMD @@ -2454,9 +2654,9 @@ Spawns programs from currently focused client's working directory. https://dwm.suckless.org/patches/spawn_cwd/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SPAWNCMD_PATCH 0 -#+end_src +#+END_SRC *** Stacker @@ -2466,9 +2666,9 @@ Note that the default keybindings for this patch have been changed in dwm-flexip https://dwm.suckless.org/patches/stacker/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define STACKER_PATCH 0 -#+end_src +#+END_SRC *** Steam @@ -2478,9 +2678,9 @@ This patch works around this age-old issue by ignoring the x and y co-ordinates https://github.com/bakkeby/patches/wiki/steam -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define STEAM_PATCH 1 -#+end_src +#+END_SRC *** Sticky @@ -2488,9 +2688,9 @@ Adds toggleable keyboard shortcut to make a client 'sticky', i.e. visible on all https://dwm.suckless.org/patches/sticky/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define STICKY_PATCH 0 -#+end_src +#+END_SRC *** Swallow @@ -2507,9 +2707,9 @@ You need to uncomment the corresponding line in config.mk to use the above libra https://dwm.suckless.org/patches/swallow/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SWALLOW_PATCH 0 -#+end_src +#+END_SRC *** Swap Focus @@ -2517,9 +2717,9 @@ This patch depends on the pertag patch and makes it possible to switch focus wit https://dwm.suckless.org/patches/swapfocus/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SWAPFOCUS_PATCH 1 -#+end_src +#+END_SRC *** Swap Tags @@ -2527,9 +2727,9 @@ This patch allows swapping the contents of the currently selected tag with anoth https://dwm.suckless.org/patches/swaptags/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SWAPTAGS_PATCH 0 -#+end_src +#+END_SRC *** Switch Column Focus @@ -2537,9 +2737,9 @@ Switch focus between the master and stack columns using a single keybinding. https://dwm.suckless.org/patches/switchcol/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SWITCHCOL_PATCH 0 -#+end_src +#+END_SRC *** Switch Tag @@ -2558,9 +2758,9 @@ https://github.com/bakkeby/patches/blob/master/dwm/dwm-switchtag-6.2.diff Also see https://dwm.suckless.org/patches/switchtotag -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define SWITCHTAG_PATCH 0 -#+end_src +#+END_SRC *** Tab This patch transforms the monocle layout into a "tabbed" layout if more than one window is present on the monocle view. This patch has been added for demonstration purposes only and has limited compatibility with other patches. It will conflict space-wise with a second bar. @@ -2569,9 +2769,9 @@ Note that fancybar, awesomebar, bartabgroups and similar patches make the tab pa https://dwm.suckless.org/patches/tab/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TAB_PATCH 0 -#+end_src +#+END_SRC *** Tag All @@ -2579,9 +2779,9 @@ Adds keyboard shortcuts to move all (or only floating) windows from one tag to a https://dwm.suckless.org/patches/tagall/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TAGALL_PATCH 0 -#+end_src +#+END_SRC *** Tag All Monitor @@ -2589,9 +2789,9 @@ This patch allows you to move all visible windows on a monitor to an adjacent mo https://github.com/bakkeby/patches/blob/master/dwm/dwm-tagallmon-6.2.diff -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TAGALLMON_PATCH 0 -#+end_src +#+END_SRC *** Tag Into Stack @@ -2603,9 +2803,9 @@ The allmaster patch will cause all clients in the master area to be left alone. https://dwm.suckless.org/patches/tagintostack/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TAGINTOSTACK_ALLMASTER_PATCH 0 -#+end_src +#+END_SRC **** One Master @@ -2615,9 +2815,9 @@ The onemaster patch will cause the first client in the master area to be left al https://dwm.suckless.org/patches/tagintostack/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TAGINTOSTACK_ONEMASTER_PATCH 0 -#+end_src +#+END_SRC *** Tag Monitor Fix Fullscreen @@ -2625,9 +2825,9 @@ If you try to send a fullscreen window to an adjacent monitor using tagmon then https://github.com/bakkeby/patches/blob/master/dwm/dwm-tagmonfixfs-6.2.diff -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TAGMONFIXFS_PATCH 1 -#+end_src +#+END_SRC *** Tag Other Monitor @@ -2635,9 +2835,9 @@ Add functions and keybindings to tag a window to a desired tag on the next (righ https://dwm.suckless.org/patches/tagothermonitor/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TAGOTHERMONITOR_PATCH 1 -#+end_src +#+END_SRC *** Tag Swap Monitor @@ -2645,9 +2845,9 @@ This patch allows you to swap all visible windows on one monitor with those of a https://github.com/bakkeby/patches/blob/master/dwm/dwm-tagswapmon-6.2.diff -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TAGSWAPMON_PATCH 1 -#+end_src +#+END_SRC *** Tap Resize @@ -2655,9 +2855,9 @@ This patch can be useful to the touchpad users because it allows to resize windo https://dwm.suckless.org/patches/tapresize/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TAPRESIZE_PATCH 0 -#+end_src +#+END_SRC *** Toggle Fullscreen @@ -2665,9 +2865,9 @@ This patch allows you to toggle fullscreen on and off using a single shortcut ke https://github.com/bakkeby/patches/blob/master/dwm/dwm-togglefullscreen-6.2.diff -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TOGGLEFULLSCREEN_PATCH 1 -#+end_src +#+END_SRC *** Toggle Layout @@ -2678,9 +2878,9 @@ This allows you to use e.g. MOD+m to change to the monocle layout and use the sa https://github.com/bakkeby/patches/wiki/togglelayout -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TOGGLELAYOUT_PATCH 0 -#+end_src +#+END_SRC *** Toggle Tag @@ -2692,9 +2892,9 @@ Idea ref. https://www.reddit.com/r/suckless/comments/ik27vd/key_toggle_between_next_and_previous_tag_dwm/ https://github.com/bakkeby/patches/wiki/toggletag -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TOGGLETAG_PATCH 0 -#+end_src +#+END_SRC *** Transfer @@ -2704,9 +2904,9 @@ Lets you transfer the currently focused client between the master and stack area https://dwm.suckless.org/patches/transfer/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TRANSFER_PATCH 0 -#+end_src +#+END_SRC **** Transfer All @@ -2714,9 +2914,9 @@ Lets you transfer all clients between the master and stack area while increasing https://dwm.suckless.org/patches/transfer/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TRANSFER_ALL_PATCH 0 -#+end_src +#+END_SRC *** Unfloat Visible @@ -2726,9 +2926,9 @@ Optionally also applies a layout. https://dwm.suckless.org/patches/unfloatvisible/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define UNFLOATVISIBLE_PATCH 1 -#+end_src +#+END_SRC *** Vanity Gaps @@ -2740,9 +2940,9 @@ https://github.com/bakkeby/patches/blob/master/dwm/dwm-vanitygaps-6.2.diff https://github.com/bakkeby/patches/blob/master/dwm/dwm-cfacts-vanitygaps-6.2.diff -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define VANITYGAPS_PATCH 1 -#+end_src +#+END_SRC **** Monocle @@ -2750,9 +2950,9 @@ This patch adds outer gaps for the monocle layout. Most gaps patches tries to avoid gaps on the monocle layout, as it is often used as a fullscreen mode, hence this is enabled separately from the main vanitygaps patch. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define VANITYGAPS_MONOCLE_PATCH 0 -#+end_src +#+END_SRC *** View On Tag @@ -2760,9 +2960,9 @@ Follow a window to the tag it is being moved to. https://dwm.suckless.org/patches/viewontag/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define VIEWONTAG_PATCH 0 -#+end_src +#+END_SRC *** Warp @@ -2770,9 +2970,9 @@ This patch warps the mouse cursor to the center of the currently focused window https://dwm.suckless.org/patches/warp/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define WARP_PATCH 0 -#+end_src +#+END_SRC *** Window Role Rule @@ -2782,9 +2982,9 @@ This patch adds the role field to the rule configuration so that one can differe https://github.com/bakkeby/patches/blob/master/dwm/dwm-windowrolerule-6.2.diff -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define WINDOWROLERULE_PATCH 0 -#+end_src +#+END_SRC *** Window View @@ -2792,9 +2992,9 @@ The winview patch allows switching the view to that of a given client from the a http://dwm.suckless.org/patches/winview/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define WINVIEW_PATCH 0 -#+end_src +#+END_SRC *** X Keyboard @@ -2804,9 +3004,9 @@ It is recommended that you configure xkb before using this patch as described in https://dwm.suckless.org/patches/xkb/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define XKB_PATCH 0 -#+end_src +#+END_SRC *** XRDB @@ -2814,9 +3014,9 @@ Allows dwm to read colors from xrdb (.Xresources) during runtime. Compatible wit https://dwm.suckless.org/patches/xrdb/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define XRDB_PATCH 1 -#+end_src +#+END_SRC *** Zoom Floating @@ -2824,9 +3024,9 @@ Simple patch that allows floating windows to be zoomed into the master stack pos https://www.reddit.com/r/suckless/comments/ie5fe3/zoomfloating_my_own_simple_original_patch/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ZOOMFLOATING_PATCH 0 -#+end_src +#+END_SRC *** Zoom Swap @@ -2834,9 +3034,9 @@ The zoomswap patch allows a master and a stack window to swap places rather than https://dwm.suckless.org/patches/zoomswap/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define ZOOMSWAP_PATCH 0 -#+end_src +#+END_SRC ** Layouts @@ -2848,9 +3048,9 @@ Bottomstack layout. https://dwm.suckless.org/patches/bottomstack/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BSTACK_LAYOUT 0 -#+end_src +#+END_SRC **** Horizontal @@ -2858,9 +3058,9 @@ Bottomstack horizontal layout. https://dwm.suckless.org/patches/bottomstack/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define BSTACKHORIZ_LAYOUT 0 -#+end_src +#+END_SRC *** Centered Master @@ -2870,9 +3070,9 @@ Centered master layout. https://dwm.suckless.org/patches/centeredmaster/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define CENTEREDMASTER_LAYOUT 0 -#+end_src +#+END_SRC **** Floating @@ -2880,9 +3080,9 @@ Centered floating master layout. https://dwm.suckless.org/patches/centeredmaster/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define CENTEREDFLOATINGMASTER_LAYOUT 0 -#+end_src +#+END_SRC *** Columns @@ -2890,9 +3090,9 @@ Same as the default tile layout except clients in the master area are arranged i https://dwm.suckless.org/patches/columns/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define COLUMNS_LAYOUT 0 -#+end_src +#+END_SRC *** Deck @@ -2900,9 +3100,9 @@ Deck layout. https://dwm.suckless.org/patches/deck/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define DECK_LAYOUT 0 -#+end_src +#+END_SRC *** Fibonacci @@ -2912,9 +3112,9 @@ Fibonacci dwindle layout. https://dwm.suckless.org/patches/fibonacci/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FIBONACCI_DWINDLE_LAYOUT 0 -#+end_src +#+END_SRC **** Spiral @@ -2922,9 +3122,9 @@ Fibonacci spiral layout. https://dwm.suckless.org/patches/fibonacci/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FIBONACCI_SPIRAL_LAYOUT 0 -#+end_src +#+END_SRC *** Flextile @@ -2934,9 +3134,9 @@ A revamped, more flexible, and over-the-top version of the original flextile lay https://dwm.suckless.org/patches/flextile/ (original) -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define FLEXTILE_DELUXE_LAYOUT 0 -#+end_src +#+END_SRC *** Grid @@ -2946,9 +3146,9 @@ Gridmode (grid) layout. https://dwm.suckless.org/patches/gridmode/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define GRIDMODE_LAYOUT 1 -#+end_src +#+END_SRC **** Gapless @@ -2956,9 +3156,9 @@ Gappless grid layout. https://dwm.suckless.org/patches/gaplessgrid/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define GAPPLESSGRID_LAYOUT 0 -#+end_src +#+END_SRC **** Horizontal @@ -2966,9 +3166,9 @@ Horizontal grid (horizgrid) layout. https://dwm.suckless.org/patches/horizgrid/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define HORIZGRID_LAYOUT 0 -#+end_src +#+END_SRC **** N Row @@ -2976,9 +3176,9 @@ Grid layout where nmaster controls the number of rows. https://dwm.suckless.org/patches/nrowgrid/ -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define NROWGRID_LAYOUT 0 -#+end_src +#+END_SRC *** Tile @@ -2986,9 +3186,9 @@ The default tile layout. This can be optionally disabled in favour of other layouts. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define TILE_LAYOUT 1 -#+end_src +#+END_SRC *** Monocle @@ -2996,15 +3196,15 @@ Monocle layout (default). This can be optionally disabled in favour of other layouts. -#+begin_src c :tangle patches.def.h +#+BEGIN_SRC c :tangle patches.def.h #define MONOCLE_LAYOUT 1 -#+end_src +#+END_SRC * Build System Settings ** Make Config -#+begin_src makefile :tangle config.jk +#+BEGIN_SRC makefile :tangle config.jk # dwm version VERSION = 6.2 @@ -3071,11 +3271,11 @@ LDFLAGS = ${LIBS} # compiler and linker CC = cc -#+end_src +#+END_SRC ** Makefile -#+begin_src makefile :tangle Makefile +#+BEGIN_SRC makefile :tangle Makefile # dwm - dynamic window manager # See LICENSE file for copyright and license details. @@ -3151,38 +3351,38 @@ uninstall: ${DESTDIR}${MANPREFIX}/man1/dwm.1 .PHONY: all options clean dist install uninstall -#+end_src +#+END_SRC * DWM Configuration ** Appearance -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if ROUNDED_CORNERS_PATCH static const unsigned int borderpx = 0; /* border pixel of windows */ static const int corner_radius = 10; #else static const unsigned int borderpx = 2; /* border pixel of windows */ #endif // ROUNDED_CORNERS_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h static const unsigned int snap = 10; /* snap pixel */ -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if SWALLOW_PATCH static const int swallowfloating = 0; /* 1 means swallow floating windows by default */ #endif // SWALLOW_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if NO_MOD_BUTTONS_PATCH static int nomodbuttons = 1; /* allow client mouse button bindings that have no modifier */ #endif // NO_MOD_BUTTONS_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if VANITYGAPS_PATCH static const unsigned int gappih = 20; /* horiz inner gap between windows */ static const unsigned int gappiv = 20; /* vert inner gap between windows */ @@ -3190,38 +3390,38 @@ static const unsigned int gappoh = 30; /* horiz outer gap between windo static const unsigned int gappov = 30; /* vert outer gap between windows and screen edge */ static const int smartgaps_fact = 1; /* gap factor when there is only one client; 0 = no gaps, 3 = 3x outer gaps */ #endif // VANITYGAPS_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if AUTOSTART_PATCH static const char autostartblocksh[] = "autostart_blocking.sh"; static const char autostartsh[] = "autostart.sh"; static const char dwmdir[] = "dwm"; static const char localshare[] = ".local/share"; #endif // AUTOSTART_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_ANYBAR_PATCH static const int usealtbar = 1; /* 1 means use non-dwm status bar */ static const char *altbarclass = "Polybar"; /* Alternate bar class name */ static const char *altbarcmd = "/home/sravan/.config/dwm-flexipatch/polybar/launch.sh"; /* Alternate bar launch command */ #endif // BAR_ANYBAR_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_HOLDBAR_PATCH static const int showbar = 0; /* 0 means no bar */ #else static const int showbar = 1; /* 0 means no bar */ #endif // BAR_HOLDBAR_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h static const int topbar = 1; /* 0 means bottom bar */ -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if TAB_PATCH /* Display modes of the tab bar: never shown, always shown, shown only in */ /* monocle mode in the presence of several windows. */ @@ -3230,42 +3430,42 @@ enum showtab_modes { showtab_never, showtab_auto, showtab_nmodes, showtab_always static const int showtab = showtab_auto; /* Default tab bar show mode */ static const int toptab = False; /* False means bottom tab bar */ #endif // TAB_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_HEIGHT_PATCH static const int bar_height = 0; /* 0 means derive from font, >= 1 explicit height */ #endif // BAR_HEIGHT_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_PADDING_PATCH static const int vertpad = 10; /* vertical padding of bar */ static const int sidepad = 10; /* horizontal padding of bar */ #endif // BAR_PADDING_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_WINICON_PATCH #define ICONSIZE 20 /* icon size */ #define ICONSPACING 5 /* space between icon and title */ #endif // BAR_WINICON_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if FOCUSONCLICK_PATCH static const int focusonwheel = 0; #endif // FOCUSONCLICK_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if FLOATPOS_PATCH static int floatposgrid_x = 5; /* float grid columns */ static int floatposgrid_y = 5; /* float grid rows */ #endif // FLOATPOS_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if RIODRAW_PATCH static const char slopspawnstyle[] = "-t 0 -c 0.92,0.85,0.69,0.3 -o"; /* do NOT define -f (format) here */ static const char slopresizestyle[] = "-t 0 -c 0.92,0.85,0.69,0.3"; /* do NOT define -f (format) here */ @@ -3274,58 +3474,58 @@ static const int riodraw_borders = 0; /* 0 or 1, indicates whether the static const int riodraw_matchpid = 1; /* 0 or 1, indicates whether to match the PID of the client that was spawned with riospawn */ #endif // SWALLOW_PATCH #endif // RIODRAW_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_STATUSPADDING_PATCH static const int horizpadbar = 2; /* horizontal padding for statusbar */ static const int vertpadbar = 0; /* vertical padding for statusbar */ #endif // BAR_STATUSPADDING_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_STATUSBUTTON_PATCH static const char buttonbar[] = ""; #endif // BAR_STATUSBUTTON_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_SYSTRAY_PATCH static const unsigned int systrayspacing = 2; /* systray spacing */ static const int showsystray = 1; /* 0 means no systray */ #endif // BAR_SYSTRAY_PATCH -#+end_src +#+END_SRC ** Indicators See patch/bar_indicators.h for options -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h static int tagindicatortype = INDICATOR_TOP_LEFT_SQUARE; static int tiledindicatortype = INDICATOR_NONE; static int floatindicatortype = INDICATOR_TOP_LEFT_SQUARE; -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if FAKEFULLSCREEN_CLIENT_PATCH && !FAKEFULLSCREEN_PATCH static int fakefsindicatortype = INDICATOR_PLUS; static int floatfakefsindicatortype = INDICATOR_PLUS_AND_LARGER_SQUARE; #endif // FAKEFULLSCREEN_CLIENT_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if ONLYQUITONEMPTY_PATCH static const int quit_empty_window_count = 2; /* only allow dwm to quit if no windows are open, value here represents number of deamons */ #endif // ONLYQUITONEMPTY_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_EXTRASTATUS_PATCH static const char statussep = ';'; /* separator between status bars */ #endif // BAR_EXTRASTATUS_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_TABGROUPS_PATCH #if MONOCLE_LAYOUT static void (*bartabmonfns[])(Monitor *) = { monocle /* , customlayoutfn */ }; @@ -3333,34 +3533,34 @@ static void (*bartabmonfns[])(Monitor *) = { monocle /* , customlayoutfn */ }; static void (*bartabmonfns[])(Monitor *) = { NULL /* , customlayoutfn */ }; #endif // MONOCLE_LAYOUT #endif // BAR_TABGROUPS_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_PANGO_PATCH static const char font[] = "monospace 10"; #else static const char *fonts[] = { "monospace:size=10" }; #endif // BAR_PANGO_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h static const char dmenufont[] = "monospace:size=10"; -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h static char c000000[] = "#000000"; // placeholder value -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_FLEXWINTITLE_PATCH #endif // BAR_FLEXWINTITLE_PATCH -#+end_src +#+END_SRC ** Colors *** Define Colors -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h static char normfgcolor[] = "#F8F8F2"; static char normbgcolor[] = "#282A36"; static char normbordercolor[] = "#4D4D4D"; @@ -3400,11 +3600,11 @@ static char urgfgcolor[] = "#F8F8F2"; static char urgbgcolor[] = "#282A36"; static char urgbordercolor[] = "#FF5555"; static char urgfloatcolor[] = "#FF5555"; -#+end_src +#+END_SRC *** Bar Flex Win Title -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_FLEXWINTITLE_PATCH static char normTTBbgcolor[] = "#330000"; static char normLTRbgcolor[] = "#330033"; @@ -3440,11 +3640,11 @@ static char selDWDLbgcolor[] = "#005555"; static char selSPRLbgcolor[] = "#555500"; static char selfloatbgcolor[] = "#117799"; #endif // BAR_FLEXWINTITLE_PATCH -#+end_src +#+END_SRC *** Bar Alpha -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_ALPHA_PATCH static const unsigned int baralpha = 0xd0; static const unsigned int borderalpha = OPAQUE; @@ -3496,11 +3696,11 @@ static const unsigned int alphas[][3] = { #endif // BAR_FLEXWINTITLE_PATCH }; #endif // BAR_ALPHA_PATCH -#+end_src +#+END_SRC *** VT Colors -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_VTCOLORS_PATCH static const char title_bg_dark[] = "#303030"; static const char title_bg_light[] = "#fdfdfd"; @@ -3517,11 +3717,11 @@ static const int color_ptrs[][ColCount] = { [SchemeUrg] = { 7, 9, 9, 15 }, }; #endif // BAR_VTCOLORS_PATCH -#+end_src +#+END_SRC *** Set Colors -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h static char *colors[][ColCount] = { /* fg bg border float */ [SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor, normfloatcolor }, @@ -3569,11 +3769,11 @@ static char *colors[][ColCount] = { [SchemeFlexSelFloat] = { titleselfgcolor, selfloatbgcolor, selfloatbgcolor, c000000 }, #endif // BAR_FLEXWINTITLE_PATCH }; -#+end_src +#+END_SRC *** Powerline -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_POWERLINE_STATUS_PATCH static char *statuscolors[][ColCount] = { /* fg bg border float */ @@ -3588,30 +3788,30 @@ static char *statuscolors[][ColCount] = { [SchemeUrg] = { urgfgcolor, urgbgcolor, urgbordercolor, urgfloatcolor }, }; #endif // BAR_POWERLINE_STATUS_PATCH -#+end_src +#+END_SRC ** Layout Menu -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_LAYOUTMENU_PATCH static const char *layoutmenu_cmd = "layoutmenu.sh"; #endif -#+end_src +#+END_SRC ** Autostart -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if COOL_AUTOSTART_PATCH static const char *const autostart[] = { "st", NULL, NULL /* terminate */ }; #endif // COOL_AUTOSTART_PATCH -#+end_src +#+END_SRC ** Scratchpads -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if SCRATCHPADS_PATCH const char *spcmd1[] = {"st", "-n", "spterm", "-g", "120x34", NULL }; static Sp scratchpads[] = { @@ -3619,7 +3819,7 @@ static Sp scratchpads[] = { {"spterm", spcmd1}, }; #endif // SCRATCHPADS_PATCH -#+end_src +#+END_SRC ** Tags @@ -3627,7 +3827,7 @@ In a traditional dwm the number of tags in use can be changed simply by changing Examples: -#+begin_example +#+BEGIN_EXAMPLE 1) static char *tagicons[][NUMTAGS*2] = { [DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I" }, } @@ -3635,22 +3835,22 @@ Examples: 2) static char *tagicons[][1] = { [DEFAULT_TAGS] = { "•" }, } -#+end_example +#+END_EXAMPLE The first example would result in the tags on the first monitor to be 1 through 9, while the tags for the second monitor would be named A through I. A third monitor would start again at 1 through 9 while the tags on a fourth monitor would also be named A through I. Note the tags count of NUMTAGS*2 in the array initialiser which defines how many tag text / icon exists in the array. This can be changed to *3 to add separate icons for a third monitor. For the second example each tag would be represented as a bullet point. Both cases work the same from a technical standpoint - the icon index is derived from the tag index and the monitor index. If the icon index is is greater than the number of tag icons then it will wrap around until it an icon matches. Similarly if there are two tag icons then it would alternate between them. This works seamlessly with alternative tags and alttagsdecoration patches. -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h static char *tagicons[][NUMTAGS] = { /* [DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }, */ [DEFAULT_TAGS] = { " ₁", "龎 ₂", " ₃", " ₄", "爵 ₅", " ₆", " ₇", " ₈", " ₉" }, [ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I" }, [ALT_TAGS_DECORATION] = { "<1>", "<2>", "<3>", "<4>", "<5>", "<6>", "<7>", "<8>", "<9>" }, }; -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_TAGGRID_PATCH /* grid of tags */ #define SWITCHTAG_UP 1 << 0 @@ -3664,7 +3864,7 @@ static char *tagicons[][NUMTAGS] = { static const int tagrows = 2; #endif // BAR_TAGGRID_PATCH -#+end_src +#+END_SRC ** Rules @@ -3676,30 +3876,30 @@ There are two options when it comes to per-client rules: A traditional struct table looks like this: -#+begin_example +#+BEGIN_EXAMPLE // class instance title wintype tags mask isfloating monitor { "Gimp", NULL, NULL, NULL, 1 << 4, 0, -1 }, { "Firefox", NULL, NULL, NULL, 1 << 7, 0, -1 }, -#+end_example +#+END_EXAMPLE The RULE macro has the default values set for each field allowing you to only specify the values that are relevant for your rule, e.g. -#+begin_example +#+BEGIN_EXAMPLE RULE(.class = "Gimp", .tags = 1 << 4) RULE(.class = "Firefox", .tags = 1 << 7) -#+end_example +#+END_EXAMPLE Refer to the Rule struct definition for the list of available fields depending on the patches you enable. -#+begin_example +#+BEGIN_EXAMPLE xprop(1): WM_CLASS(STRING) = instance, class WM_NAME(STRING) = title WM_WINDOW_ROLE(STRING) = role _NET_WM_WINDOW_TYPE(ATOM) = wintype -#+end_example +#+END_EXAMPLE -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h static const Rule rules[] = { RULE(.wintype = WTYPE "DIALOG", .isfloating = 1) RULE(.wintype = WTYPE "UTILITY", .isfloating = 1) @@ -3731,11 +3931,11 @@ static const Rule rules[] = { RULE(.instance = "spterm", .tags = SPTAG(0), .isfloating = 1) #endif // SCRATCHPADS_PATCH }; -#+end_src +#+END_SRC *** Monitor & Tag Rules -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if MONITOR_RULES_PATCH #if PERTAG_PATCH static const MonitorRule monrules[] = { @@ -3751,9 +3951,9 @@ static const MonitorRule monrules[] = { }; #endif // PERTAG_PATCH #endif // MONITOR_RULES_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if INSETS_PATCH static const Inset default_inset = { .x = 0, @@ -3762,7 +3962,7 @@ static const Inset default_inset = { .h = 0, }; #endif // INSETS_PATCH -#+end_src +#+END_SRC *** Bar Rules @@ -3781,7 +3981,7 @@ widthfunc, drawfunc, clickfunc - providing bar module width, draw and click func name - does nothing, intended for visual clue and for logging / debugging -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h static const BarRule barrules[] = { /* monitor bar alignment widthfunc drawfunc clickfunc name */ { -2 }, @@ -3858,38 +4058,38 @@ static const BarRule barrules[] = { #endif // BAR_WINTITLE_FLOATING_PATCH #endif // BAR_FLEXWINTITLE_PATCH }; -#+end_src +#+END_SRC ** Layouts -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if FLEXTILE_DELUXE_LAYOUT static const int nstack = 0; /* number of clients in primary stack area */ #endif // FLEXTILE_DELUXE_LAYOUT -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */ -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if DECORATION_HINTS_PATCH static const int decorhints = 1; /* 1 means respect decoration hints */ #endif // DECORATION_HINTS_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if NROWGRID_LAYOUT #define FORCE_VSPLIT 1 #endif -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if TAPRESIZE_PATCH /* mouse scroll resize */ static const int scrollsensetivity = 30; /* 1 means resize window by 1 pixel for each scroll event */ @@ -3902,9 +4102,9 @@ static const int scrollargs[][2] = { { 0, -scrollsensetivity }, }; #endif // TAPRESIZE_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if FLEXTILE_DELUXE_LAYOUT static const Layout layouts[] = { /* symbol arrange function, { nmaster, nstack, layout, master axis, stack axis, secondary stack axis, symbol func } */ @@ -4019,9 +4219,9 @@ static const Layout layouts[] = { #endif }; #endif // FLEXTILE_DELUXE_LAYOUT -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if XKB_PATCH /* xkb frontend */ static const char *xkb_layouts[] = { @@ -4029,15 +4229,15 @@ static const char *xkb_layouts[] = { "ru", }; #endif // XKB_PATCH -#+end_src +#+END_SRC ** Keybindings -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #define MODKEY Mod4Mask -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if COMBO_PATCH && SWAPTAGS_PATCH && TAGOTHERMONITOR_PATCH #define TAGKEYS(KEY,TAG) \ { MODKEY, KEY, comboview, {.ui = 1 << TAG} }, \ @@ -4099,9 +4299,9 @@ static const char *xkb_layouts[] = { { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, #endif // COMBO_PATCH / SWAPTAGS_PATCH / TAGOTHERMONITOR_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if STACKER_PATCH #define STACKKEYS(MOD,ACTION) \ { MOD, XK_j, ACTION##stack, {.i = INC(+1) } }, \ @@ -4112,26 +4312,26 @@ static const char *xkb_layouts[] = { { MOD, XK_a, ACTION##stack, {.i = 2 } }, \ { MOD, XK_z, ACTION##stack, {.i = -1 } }, #endif // STACKER_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_HOLDBAR_PATCH #define HOLDKEY 0 // replace 0 with the keysym to activate holdbar #endif // BAR_HOLDBAR_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h /* helper for spawning shell commands in the pre dwm-5.0 fashion */ #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if !NODMENU_PATCH static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ #endif // NODMENU_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h static const char *dmenucmd[] = { "dmenu_run", #if !NODMENU_PATCH @@ -4166,9 +4366,9 @@ static const char *playerprevcmd[] = { "/home/sravan/.scripts/playerctl.sh static const char *flameshotcmd[] = { "flameshot", "gui", NULL }; static const char *forceclosewindowcmd[] = { "xkill", NULL }; static const char *trackpadtogglecmd[] = { "/home/sravan/.scripts/trackpad.sh", NULL }; -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if BAR_STATUSCMD_PATCH #if BAR_DWMBLOCKS_PATCH /* This defines the name of the executable that handles the bar (used for signalling purposes) */ @@ -4184,9 +4384,9 @@ static const StatusCmd statuscmds[] = { static const char *statuscmd[] = { "/bin/sh", "-c", NULL, NULL }; #endif // BAR_DWMBLOCKS_PATCH #endif // BAR_STATUSCMD_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if ON_EMPTY_KEYS_PATCH static const char* firefoxcmd[] = {"firefox", NULL}; static Key on_empty_keys[] = { @@ -4194,11 +4394,11 @@ static Key on_empty_keys[] = { { 0, XK_f, spawn, {.v = firefoxcmd } }, }; #endif // ON_EMPTY_KEYS_PATCH -#+end_src +#+END_SRC See [[https://cgit.freedesktop.org/xorg/proto/x11proto/tree/XF86keysym.h][X11 protocol header]] for list of key symbols. -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #include static Key keys[] = { /* modifier key function argument */ @@ -4655,9 +4855,9 @@ static Key keys[] = { TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) }; -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if KEYMODES_PATCH static Key cmdkeys[] = { /* modifier keys function argument */ @@ -4683,9 +4883,9 @@ static Command commands[] = { { {ShiftMask, 0, ShiftMask, 0}, {XK_period, XK_b, XK_n, XK_Return}, focusstack, {.i = -1} }, }; #endif // KEYMODES_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h /* button definitions */ #if STATUSBUTTON_PATCH /* click can be ClkButton, ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ @@ -4756,9 +4956,9 @@ static Button buttons[] = { { ClkTabBar, 0, Button1, focuswin, {0} }, #endif // TAB_PATCH }; -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if DWMC_PATCH /* signal definitions */ /* signum must be greater than 0 */ @@ -4930,9 +5130,9 @@ static Signal signals[] = { { 1, setlayout, {.v = 0} }, }; #endif // DWMC_PATCH -#+end_src +#+END_SRC -#+begin_src c :tangle config.def.h +#+BEGIN_SRC c :tangle config.def.h #if IPC_PATCH static const char *ipcsockpath = "/tmp/dwm.sock"; static IPCCommand ipccommands[] = { @@ -5096,7 +5296,7 @@ static IPCCommand ipccommands[] = { #endif // XRDB_PATCH }; #endif // IPC_PATCH -#+end_src +#+END_SRC * Status Bar ** Polybar @@ -5107,7 +5307,7 @@ To learn more about how to configure Polybar go to https://github.com/polybar/po **** Colors -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [colors] dark-gray = ${xrdb:background:#282A36} light-gray = ${xrdb:color8:#4D4D4D} @@ -5153,11 +5353,11 @@ cpu = ${self.blue} memory = ${self.red} filesystem = ${self.green} dunst-notification-status = ${self.yellow} -#+end_src +#+END_SRC **** Sizes -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [sizes] bar-height = ${xrdb:polybar.bar-height:25} module-margin = ${xrdb:polybar.module-margin:2} @@ -5165,7 +5365,7 @@ module-padding = ${xrdb:polybar.module-padding:2} tray-maxsize = ${xrdb:polybar.tray-maxsize:15} tray-scale = ${xrdb:polybar.tray-scale:1} maxlen = ${xrdb:polybar.maxlen:50} -#+end_src +#+END_SRC **** Intervals @@ -5176,7 +5376,7 @@ Define module update intervals in seconds. | 900 | 15 | 0.25 | | 86400 | 1440 | 24 | -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [intervals] cpu = 1 date = 1 @@ -5186,11 +5386,11 @@ memory = 1 media-playing = 1 dunst-notification-status = 1 kernel = 86400 -#+end_src +#+END_SRC **** Global Window Manager -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [global/wm] ; Adjust the _NET_WM_STRUT_PARTIAL top value ; Used for top aligned bars @@ -5199,11 +5399,11 @@ margin-bottom = 0 ; Adjust the _NET_WM_STRUT_PARTIAL bottom value ; Used for bottom aligned bars margin-top = 0 -#+end_src +#+END_SRC *** Bars -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [bar/mybar] ; Use either of the following command to list available outputs: ; If unspecified, the application will pick the first one it finds. @@ -5425,13 +5625,13 @@ enable-ipc = true ; - ns-resize : Up and down arrows, can be used to indicate scrolling cursor-click = pointer cursor-scroll = ns-resize -#+end_src +#+END_SRC *** Modules **** Power Menu -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [module/powermenu] type = custom/text content = " Menu" @@ -5452,11 +5652,11 @@ click-right = "/home/sravan/.scripts/control-center.sh --rofi" ; "scroll-(up|down)" will be executed using "/bin/sh -c $COMMAND" ; scroll-up = notify-send scroll up ; scroll-down = notify-send scroll down -#+end_src +#+END_SRC **** DWM -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [module/dwm] type = internal/dwm ; format = @@ -5548,13 +5748,13 @@ label-empty-foreground = ${colors.dwm-empty-foreground} label-empty-background = ${colors.dwm-empty-background} label-empty-underline = ${colors.dwm-empty-background} label-empty-padding = ${sizes.module-padding} -#+end_src +#+END_SRC **** Media Playing (Playerctl) ***** Module -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [module/media-playing] type = custom/script @@ -5611,11 +5811,11 @@ click-right = "/home/sravan/.scripts/playerctl.sh --change" ; "scroll-(up|down)" will be executed using "/bin/sh -c [command]" scroll-up = "/home/sravan/.scripts/playerctl.sh --next" scroll-down = "/home/sravan/.scripts/playerctl.sh --prev" -#+end_src +#+END_SRC ***** Script -#+begin_src shell :shebang #!/bin/bash :tangle polybar/scripts/get-media-playing.sh +#+BEGIN_SRC shell :shebang #!/bin/bash :tangle polybar/scripts/get-media-playing.sh mediaStatus=$(playerctl --player=playerctld metadata 2>&1) if [[ "$mediaStatus" == "No player could handle this command" ]]; then @@ -5633,11 +5833,11 @@ else echo "$status_icon $artist - $title" fi -#+end_src +#+END_SRC **** Date -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [module/date] type = internal/date @@ -5669,11 +5869,11 @@ label = " %date%" ; label-font = 3 label-foreground = ${colors.date} label-underline = ${colors.date} -#+end_src +#+END_SRC **** Time -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [module/time] type = internal/date @@ -5705,11 +5905,11 @@ label = " %time%" ; label-font = 3 label-foreground = ${colors.time} label-underline = ${colors.time} -#+end_src +#+END_SRC **** Kernel -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [module/kernel] type = custom/script @@ -5764,11 +5964,11 @@ label = %output% ; "scroll-(up|down)" will be executed using "/bin/sh -c [command]" ; scroll-up = echo scroll up %counter% ; scroll-down = echo scroll down %counter% -#+end_src +#+END_SRC **** CPU -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [module/cpu] type = internal/cpu @@ -5803,11 +6003,11 @@ ramp-coreload-5 = ▆ ramp-coreload-6 = ▇ ramp-coreload-7 = █ ramp-coreload-foreground = ${colors.cpu} -#+end_src +#+END_SRC **** Memory -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [module/memory] type = internal/memory @@ -5881,11 +6081,11 @@ ramp-free-5 = ▆ ramp-free-6 = ▇ ramp-free-7 = █ ramp-free-foreground = ${colors.memory} -#+end_src +#+END_SRC **** Filesystem -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [module/filesystem] type = internal/fs @@ -5935,13 +6135,13 @@ label-mounted-foreground = ${colors.filesystem} ; Default: %mountpoint% is not mounted label-unmounted = %mountpoint% is not mounted label-unmounted-foreground = ${colors.filesystem} -#+end_src +#+END_SRC **** Dunst Notification Status ***** Module -#+begin_src conf :tangle polybar/config.ini +#+BEGIN_SRC conf :tangle polybar/config.ini [module/dunst-notification-status] type = custom/script @@ -5998,11 +6198,11 @@ click-right = "/home/sravan/.scripts/dunst.sh --history" ; "scroll-(up|down)" will be executed using "/bin/sh -c [command]" ; scroll-up = ; scroll-down = -#+end_src +#+END_SRC ***** Script -#+begin_src shell :shebang #!/bin/bash :tangle polybar/scripts/dunst-notification-status.sh +#+BEGIN_SRC shell :shebang #!/bin/bash :tangle polybar/scripts/dunst-notification-status.sh # Check if dunst is running if pgrep -x "dunst" > /dev/null then @@ -6018,11 +6218,11 @@ else fi echo $status_icon -#+end_src +#+END_SRC *** Launch Script -#+begin_src shell :shebang #!/bin/bash :tangle polybar/launch.sh +#+BEGIN_SRC shell :shebang #!/bin/bash :tangle polybar/launch.sh BAR="mybar" CONFIG="~/.config/dwm-flexipatch/polybar/config.ini" NUM_MONITORS=0 @@ -6057,4 +6257,4 @@ else fi echo "$!" >>/tmp/polybar.pids -#+end_src +#+END_SRC