commit 2ad84d106476382f22ac61d2d7320755af1eaf16
parent 6e82734c2ebc0d97bc68fb80f7367efefb6d0385
Author: C. Beau Hilton <cbeauhilton@gmail.com>
Date: Mon, 11 Jan 2021 16:50:13 -0600
site update
Diffstat:
M | config.h | | | 88 | ++++++++++++++++++++++++++++++------------------------------------------------- |
M | larbs.mom | | | 5 | ++--- |
2 files changed, 35 insertions(+), 58 deletions(-)
diff --git a/config.h b/config.h
@@ -1,13 +1,13 @@
/* See LICENSE file for copyright and license details. */
/* appearance */
-static const unsigned int borderpx = 2; /*[> border pixel of windows <]*/
+static const unsigned int borderpx = 1; /*[> border pixel of windows <]*/
static const unsigned int snap = 32; /* snap pixel */
static const unsigned int gappih = 20; /* horiz inner gap between windows */
static const unsigned int gappiv = 10; /* vert inner gap between windows */
static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */
static const unsigned int gappov = 30; /* vert outer gap between windows and screen edge */
-static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */
+static const int smartgaps = 1; /* 1 means no outer gap when there is only one window */
static const int showbar = 0; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "IBM Plex Mono:pixelsize=12:antialias=true:autohint=true", "JoyPixels:pixelsize=10:antialias=true:autohint=true" };
@@ -34,7 +34,7 @@ static const Rule rules[] = {
*/
/* class instance title tags mask isfloating isterminal noswallow monitor */
{ "Gimp", NULL, NULL, 1 << 8, 0, 0, 0, -1 },
- { "kitty", NULL, NULL, 0, 0, 1, 0, -1 },
+ { "kitty", NULL, NULL, 0, 0, 1, 0, -1 },
};
/* layout(s) */
@@ -71,11 +71,6 @@ static const Layout layouts[] = {
#define STACKKEYS(MOD,ACTION) \
{ MOD, XK_j, ACTION##stack, {.i = INC(+1) } }, \
{ MOD, XK_k, ACTION##stack, {.i = INC(-1) } }, \
- /* { MOD, XK_grave, ACTION##stack, {.i = PREVSEL } }, \ */
- /* { MOD, XK_q, ACTION##stack, {.i = 0 } }, \ */
- /* { MOD, XK_a, ACTION##stack, {.i = 1 } }, \ */
- /* { MOD, XK_z, ACTION##stack, {.i = 2 } }, \ */
- /* { MOD, XK_x, ACTION##stack, {.i = -1 } }, */
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
@@ -85,7 +80,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
static const char *termcmd[] = { "kitty", NULL };
static const char scratchpadname[] = "scratchpad";
-static const char *scratchpadcmd[] = { "kitty", "-t", scratchpadname, "-g", "120x34", NULL };
+static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL };
#include <X11/XF86keysym.h>
#include "shiftview.c"
@@ -111,7 +106,7 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_minus, spawn, SHCMD("pamixer --allow-boost -d 15; kill -44 $(pidof dwmblocks)") },
{ MODKEY, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 5; kill -44 $(pidof dwmblocks)") },
{ MODKEY|ShiftMask, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 15; kill -44 $(pidof dwmblocks)") },
- { MODKEY, XK_BackSpace, spawn, SHCMD("sysact") },
+ { MODKEY, XK_BackSpace, spawn, SHCMD("dmenushutdown") },
/* { MODKEY|ShiftMask, XK_BackSpace, spawn, SHCMD("") }, */
{ MODKEY, XK_Tab, view, {0} },
@@ -122,7 +117,7 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_w, spawn, SHCMD("$TERMINAL -e sudo nmtui") },
{ MODKEY, XK_e, spawn, SHCMD("$TERMINAL -e neomutt ; pkill -RTMIN+12 dwmblocks; rmdir ~/.abook") },
{ MODKEY|ShiftMask, XK_e, spawn, SHCMD("tutorialvids") },
- { MODKEY, XK_r, spawn, SHCMD("$TERMINAL -e nnn -e") },
+ { MODKEY, XK_r, spawn, SHCMD("$TERMINAL -e nnn -e -P p") },
/* { MODKEY|ShiftMask, XK_r, quit, {1} }, */
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[1]} },
@@ -155,8 +150,9 @@ static Key keys[] = {
{ MODKEY, XK_g, shiftview, { .i = -1 } },
/* { MODKEY|ShiftMask, XK_g, spawn, SHCMD("") }, */
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
- /* J and K are automatically bound above in STACKEYS */
+ /* J and K are automatically bound above in STACKKEYS */
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
+ { MODKEY|ShiftMask, XK_l, spawn, SHCMD("slock & xset dpms force off; mpc pause; pauseallmpv") },
{ MODKEY, XK_semicolon, shiftview, { .i = 1 } },
/* { MODKEY|ShiftMask, XK_semicolon, shiftview, SHCMD("") }, */
/* { MODKEY, XK_apostrophe, spawn, SHCMD("") }, */
@@ -174,7 +170,7 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_v, spawn, SHCMD("{ killall xcompmgr || setsid xcompmgr & } ; xwallpaper --zoom ~/.config/wall.png") },
{ MODKEY, XK_b, togglebar, {0} },
/* { MODKEY|ShiftMask, XK_b, spawn, SHCMD("") }, */
- { MODKEY, XK_n, spawn, SHCMD("$TERMINAL -e nnn -e") },
+ { MODKEY, XK_n, spawn, SHCMD("$TERMINAL -e nnn -e -P p") },
{ MODKEY|ShiftMask, XK_n, spawn, SHCMD("$TERMINAL -e newsboat; pkill -RTMIN+6 dwmblocks") },
/* { MODKEY|ShiftMask, XK_n, spawn, SHCMD("") }, */
{ MODKEY, XK_m, spawn, SHCMD("$TERMINAL -e ncmpcpp") },
@@ -191,7 +187,7 @@ static Key keys[] = {
{ MODKEY, XK_Page_Up, shiftview, { .i = -1 } },
{ MODKEY, XK_Page_Down, shiftview, { .i = 1 } },
- { MODKEY, XK_Insert, spawn, SHCMD("notify-send \"📋 Clipboard contents:\" \"$(xclip -o -selection clipboard)\"") },
+ { MODKEY, XK_Insert, spawn, SHCMD("notify-send \"📋\" \"$(xclip -o -selection clipboard)\"") },
{ MODKEY, XK_F1, spawn, SHCMD("groff -mom /usr/local/share/dwm/larbs.mom -Tpdf | zathura -") },
{ MODKEY, XK_F2, quit, {1} },
@@ -218,48 +214,30 @@ static Key keys[] = {
{ 0, XF86XK_AudioMute, spawn, SHCMD("pamixer -t; kill -44 $(pidof dwmblocks)") },
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pamixer --allow-boost -i 3; kill -44 $(pidof dwmblocks)") },
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pamixer --allow-boost -d 3; kill -44 $(pidof dwmblocks)") },
- { 0, XF86XK_AudioPrev, spawn, SHCMD("mpc prev") },
- { 0, XF86XK_AudioNext, spawn, SHCMD("mpc next") },
- { 0, XF86XK_AudioPause, spawn, SHCMD("mpc pause") },
- { 0, XF86XK_AudioPlay, spawn, SHCMD("mpc play") },
- { 0, XF86XK_AudioStop, spawn, SHCMD("mpc stop") },
- { 0, XF86XK_AudioRewind, spawn, SHCMD("mpc seek -10") },
- { 0, XF86XK_AudioForward, spawn, SHCMD("mpc seek +10") },
- { 0, XF86XK_AudioMedia, spawn, SHCMD("$TERMINAL -e ncmpcpp") },
- { 0, XF86XK_PowerOff, spawn, SHCMD("[ \"$(printf \"No\\nYes\" | dmenu -i -nb darkred -sb red -sf white -nf gray -p \"Shutdown computer?\")\" = Yes ] && sudo -A shutdown -h now") },
- { 0, XF86XK_Calculator, spawn, SHCMD("$TERMINAL -e bc -l") },
- { 0, XF86XK_Sleep, spawn, SHCMD("sudo -A zzz") },
- { 0, XF86XK_WWW, spawn, SHCMD("$BROWSER") },
- { 0, XF86XK_DOS, spawn, SHCMD("$TERMINAL") },
- { 0, XF86XK_ScreenSaver, spawn, SHCMD("slock & xset dpms force off; mpc pause; pauseallmpv") },
- { 0, XF86XK_TaskPane, spawn, SHCMD("$TERMINAL -e htop") },
- { 0, XF86XK_Mail, spawn, SHCMD("$TERMINAL -e neomutt ; pkill -RTMIN+12 dwmblocks") },
- { 0, XF86XK_MyComputer, spawn, SHCMD("$TERMINAL -e nnn /") },
+ /* { 0, XF86XK_AudioPrev, spawn, SHCMD("mpc prev") }, */
+ /* { 0, XF86XK_AudioNext, spawn, SHCMD("mpc next") }, */
+ /* { 0, XF86XK_AudioPause, spawn, SHCMD("mpc pause") }, */
+ /* { 0, XF86XK_AudioPlay, spawn, SHCMD("mpc play") }, */
+ /* { 0, XF86XK_AudioStop, spawn, SHCMD("mpc stop") }, */
+ /* { 0, XF86XK_AudioRewind, spawn, SHCMD("mpc seek -10") }, */
+ /* { 0, XF86XK_AudioForward, spawn, SHCMD("mpc seek +10") }, */
+ /* { 0, XF86XK_AudioMedia, spawn, SHCMD("$TERMINAL -e ncmpcpp") }, */
+ /* { 0, XF86XK_PowerOff, spawn, SHCMD("[ \"$(printf \"No\\nYes\" | dmenu -i -nb darkred -sb red -sf white -nf gray -p \"Shutdown computer?\")\" = Yes ] && sudo -A shutdown -h now") }, */
+ /* { 0, XF86XK_Calculator, spawn, SHCMD("$TERMINAL -e bc -l") }, */
+ /* { 0, XF86XK_Sleep, spawn, SHCMD("sudo -A zzz") }, */
+ /* { 0, XF86XK_WWW, spawn, SHCMD("$BROWSER") }, */
+ /* { 0, XF86XK_DOS, spawn, SHCMD("$TERMINAL") }, */
+ /* { 0, XF86XK_ScreenSaver, spawn, SHCMD("slock & xset dpms force off; mpc pause; pauseallmpv") }, */
+ /* { 0, XF86XK_TaskPane, spawn, SHCMD("$TERMINAL -e htop") }, */
+ /* { 0, XF86XK_Mail, spawn, SHCMD("$TERMINAL -e neomutt ; pkill -RTMIN+12 dwmblocks") }, */
+ /* { 0, XF86XK_MyComputer, spawn, SHCMD("$TERMINAL -e nnn /") }, */
/* { 0, XF86XK_Battery, spawn, SHCMD("") }, */
- { 0, XF86XK_Launch1, spawn, SHCMD("xset dpms force off") },
- { 0, XF86XK_TouchpadToggle, spawn, SHCMD("(synclient | grep 'TouchpadOff.*1' && synclient TouchpadOff=0) || synclient TouchpadOff=1") },
- { 0, XF86XK_TouchpadOff, spawn, SHCMD("synclient TouchpadOff=1") },
- { 0, XF86XK_TouchpadOn, spawn, SHCMD("synclient TouchpadOff=0") },
- { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("xbacklight -inc 15") },
- { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("xbacklight -dec 15") },
-
- /* { MODKEY|Mod4Mask, XK_h, incrgaps, {.i = +1 } }, */
- /* { MODKEY|Mod4Mask, XK_l, incrgaps, {.i = -1 } }, */
- /* { MODKEY|Mod4Mask|ShiftMask, XK_h, incrogaps, {.i = +1 } }, */
- /* { MODKEY|Mod4Mask|ShiftMask, XK_l, incrogaps, {.i = -1 } }, */
- /* { MODKEY|Mod4Mask|ControlMask, XK_h, incrigaps, {.i = +1 } }, */
- /* { MODKEY|Mod4Mask|ControlMask, XK_l, incrigaps, {.i = -1 } }, */
- /* { MODKEY|Mod4Mask|ShiftMask, XK_0, defaultgaps, {0} }, */
- /* { MODKEY, XK_y, incrihgaps, {.i = +1 } }, */
- /* { MODKEY, XK_o, incrihgaps, {.i = -1 } }, */
- /* { MODKEY|ControlMask, XK_y, incrivgaps, {.i = +1 } }, */
- /* { MODKEY|ControlMask, XK_o, incrivgaps, {.i = -1 } }, */
- /* { MODKEY|Mod4Mask, XK_y, incrohgaps, {.i = +1 } }, */
- /* { MODKEY|Mod4Mask, XK_o, incrohgaps, {.i = -1 } }, */
- /* { MODKEY|ShiftMask, XK_y, incrovgaps, {.i = +1 } }, */
- /* { MODKEY|ShiftMask, XK_o, incrovgaps, {.i = -1 } }, */
-
-
+ /* { 0, XF86XK_Launch1, spawn, SHCMD("xset dpms force off") }, */
+ /* { 0, XF86XK_TouchpadToggle, spawn, SHCMD("(synclient | grep 'TouchpadOff.*1' && synclient TouchpadOff=0) || synclient TouchpadOff=1") }, */
+ /* { 0, XF86XK_TouchpadOff, spawn, SHCMD("synclient TouchpadOff=1") }, */
+ /* { 0, XF86XK_TouchpadOn, spawn, SHCMD("synclient TouchpadOff=0") }, */
+ /* { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("xbacklight -inc 15") }, */
+ /* { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("xbacklight -dec 15") }, */
};
/* button definitions */
diff --git a/larbs.mom b/larbs.mom
@@ -3,14 +3,13 @@
.SHIFT_LIST 10p
..
.PARA_SPACE 1m
-.TITLE "\s+(10A Friendly Guide to LARBS!\s0"
-.AUTHOR "\s+5Luke Smith\s0"
+.TITLE "\s+(10System Guide\s0"
+.AUTHOR "\s+5cbh\s0"
.DOCTYPE DEFAULT
.COPYSTYLE FINAL
.PRINTSTYLE TYPESET
.PT_SIZE 12
.START
-Use vim keys (\f(CWh/j/k/l\fP) to navigate this document.
Pressing \f(CWs\fP will fit it to window width (\f(CWa\fP to revert).
\f(CWK\fP and \f(CWJ\fP zoom in and out.
\f(CWSuper+f\fP to toggle fullscreen.