regexghost-dotfiles

My dotfiles and scripts
git clone git@git.regexghost.com/regexghost-dotfiles.git
Log | Files | Refs | README

commit 1dd6b7ecf12a5e04de3f6cafad6ba4b241f1a75f
parent 8023d82da1cad93faaa3db5a87194873cdc9ffd7
Author: regexghost <regexghost@protonmail.com>
Date:   Thu,  7 May 2026 14:10:11 +0100

nano settings and jwm themeing

Diffstat:
Adotfiles/.config/nano/markdown.nanorc | 59+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adotfiles/.config/nano/nanorc | 40++++++++++++++++++++++++++++++++++++++++
Ajwm/.config/jwm/jwmrc | 252+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Djwm/.jwmrc | 252-------------------------------------------------------------------------------
4 files changed, 351 insertions(+), 252 deletions(-)

diff --git a/dotfiles/.config/nano/markdown.nanorc b/dotfiles/.config/nano/markdown.nanorc @@ -0,0 +1,59 @@ +# Slightly modified version of: +# https://github.com/galenguyer/nano-syntax-highlighting + +syntax "Markdown" "\.(md|mkd|mkdn|markdown|mdx|mdown)$" + +# Tables (Github extension) +color blue ".*[ :]\|[ :].*" + +# quotes +color magenta start="^>" end="^$" +color magenta "^>.*" + +# Emphasis +color magenta "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)" + +# Strong emphasis +color brightblue "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)" + +# strike-through +color brightred "(^|[[:space:]])~~[^ ][^~]*~~" + +# horizontal rules +color brightmagenta "^(---+|===+|___+|\*\*\*+)\s*$" + +# headlines +color brightred "^# .*" +color brightyellow "^## .*" +color brightgreen "^### .*" +color brightcyan "^#### .*" +color brightmagenta "^##### .*" +color brightblue "^###### .*" + +# lists +color brightyellow "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. " + +# leading whitespace +color black "^[[:space:]]+" + +# misc +color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])" + +# links +color yellow "\[[^]]+\]" +color yellow "\[([^][]|\[[^]]*\])*\]\([^)]+\)" + +# images +color red "!\[[^][]*\](\([^)]+\)|\[[^]]+\])" + +# urls +color brightyellow "https?://[^ )>]+" + +# code +color blue "`[^`]*`|^ {4}[^-+*].*" +# code blocks +color blue start="^```[^$]" end="^```$" +color blue "^```$" + +## Trailing spaces +color ,blue "[[:space:]]+$" diff --git a/dotfiles/.config/nano/nanorc b/dotfiles/.config/nano/nanorc @@ -0,0 +1,40 @@ +include "~/.config/nano/markdown.nanorc" + +set afterends +set atblanks +set autoindent + +set historylog +# set indicator +set linenumbers +# set minibar +set mouse +set nohelp +set positionlog +set quickblank +set regexp +set smarthome +set softwrap +set speller "aspell -x -c" +set tabsize 4 +set trimblanks + +set titlecolor bold,black,lightwhite +set numbercolor lightblack + +bind ^H chopwordleft main +bind ^Q exit all +bind ^W exit all +bind ^S savefile main +bind ^F whereis all +bind ^G findnext all +bind ^D findprevious all +bind ^R replace main +bind ^X cut all +bind ^C copy main +bind ^V paste all +bind ^P location main +bind ^A mark main +bind ^J speller main +bind ^Z undo main +bind ^Y redo main diff --git a/jwm/.config/jwm/jwmrc b/jwm/.config/jwm/jwmrc @@ -0,0 +1,252 @@ +<?xml version="1.0"?> +<JWM> + + <!-- The root menu. --> + <RootMenu onroot="12"> + <Program icon="utilities-terminal" label="Terminal">st</Program> + <Menu icon="folder" label="Applications"> + <Program icon="sound" label="Audacious">audacious</Program> + <Program icon="calc" label="Calculator">xcalc</Program> + <Program icon="web-browser" label="Firefox">netsurf-gtk</Program> + <Program icon="image" label="Gimp">sxiv</Program> + <Program icon="email" label="Mail">claws-mail</Program> + <Program icon="system-file-manager" label="ROX">rox ~</Program> + </Menu> + <Menu icon="folder" label="Utilities"> + <Program icon="font" label="Fonts">xfontsel</Program> + <Program icon="info" label="Window Properties"> + xprop | xmessage -file - + </Program> + <Program icon="info" label="Window Information"> + xwininfo | xmessage -file - + </Program> + </Menu> + <Separator/> + <Program icon="lock" label="Lock"> + xscreensaver-command -lock + </Program> + <Separator/> + <Restart label="Restart" icon="reload"/> + <Exit label="Exit" confirm="true" icon="exit"/> + </RootMenu> + + <!-- Options for program groups. --> + <Group> + <Option>tiled</Option> + </Group> + <Group> + <Name>xterm</Name> + <Option>vmax</Option> + </Group> + <Group> + <Name>xclock</Name> + <Option>drag</Option> + <Option>notitle</Option> + </Group> + + <!-- Tray at the bottom. --> + <Tray x="0" y="0" autohide="off" delay="1000"> + + <TrayButton label="JWM">root:1</TrayButton> + <Spacer width="2"/> + <TrayButton label="_">showdesktop</TrayButton> + <Spacer width="2"/> + + <Pager labeled="true"/> + + <TaskList maxwidth="256"/> + + <Swallow width="32" height="32" name="xclock">xclock</Swallow> + + <Dock/> + <Clock format="%a, %b %d - %H:%M"><Button mask="123">exec:xclock</Button></Clock> + + </Tray> + + <!-- Visual Styles --> + <WindowStyle decorations="motif"> + <Font>Sans-12:bold</Font> + <Width>4</Width> + <Corner>0</Corner> + <Foreground>#FCE8C3</Foreground> + <Background>#1C1B19</Background> + <Opacity>1.0</Opacity> + <Active> + <Foreground>#FCE8C3</Foreground> + <Background>#519F50</Background> + <Opacity>1.0</Opacity> + </Active> + </WindowStyle> + <TrayStyle decorations="motif"> + <Font>Sans-12</Font> + <Background>#1C1B19</Background> + <Foreground>#FCE8C3</Foreground> + <Opacity>0.75</Opacity> + </TrayStyle> + <TaskListStyle list="desktop" group="true"> + <Font>Sans-12</Font> + <Active> + <Foreground>#FCE8C3</Foreground> + <Background>#519F50</Background> + </Active> + <Minimized> + <Foreground>#FCE8C3</Foreground> + <Background>#111111</Background> + </Minimized> + <Foreground>#FCE8C3</Foreground> + <Background>#333333</Background> + </TaskListStyle> + <PagerStyle> + <Foreground>#1C1B19</Foreground> + <Background>#333333</Background> + <Text>#FCE8C3</Text> + <Active> + <Foreground>#2C78BF</Foreground> + <Background>#004488</Background> + </Active> + </PagerStyle> + <MenuStyle decorations="motif"> + <Font>Sans-12</Font> + <Foreground>#FCE8C3</Foreground> + <Background>#333333</Background> + <Active> + <Foreground>#FCE8C3</Foreground> + <Background>#2C78BF</Background> + </Active> + <Opacity>0.85</Opacity> + </MenuStyle> + <PopupStyle> + <Font>Sans-12</Font> + <Foreground>#000000</Foreground> + <Background>#999999</Background> + </PopupStyle> + + <!-- Path where icons can be found. + IconPath can be listed multiple times to allow searching + for icons in multiple paths. + --> + <IconPath> + /usr/local/share/icons/Tango/scalable/actions + </IconPath> + <IconPath> + /usr/local/share/icons/Tango/scalable/apps + </IconPath> + <IconPath> + /usr/local/share/icons/Tango/scalable/places + </IconPath> + <IconPath> + /usr/local/share/icons/Tango/scalable/status + </IconPath> + <IconPath> + /usr/local/share/icons/Tango/scalable/mimetypes + </IconPath> + <IconPath> + /usr/local/share/jwm + </IconPath> + + <!-- Virtual Desktops --> + <!-- Desktop tags can be contained within Desktops for desktop names. --> + <Desktops width="6" height="1"> + <!-- Default background. Note that a Background tag can be + contained within a Desktop tag to give a specific background + for that desktop. + --> + <Background type="solid">#111111</Background> + </Desktops> + + <!-- Double click speed (in milliseconds) --> + <DoubleClickSpeed>400</DoubleClickSpeed> + + <!-- Double click delta (in pixels) --> + <DoubleClickDelta>2</DoubleClickDelta> + + <!-- The focus model (sloppy or click) --> + <FocusModel>click</FocusModel> + + <!-- The snap mode (none, screen, or border) --> + <SnapMode distance="10">border</SnapMode> + + <!-- The move mode (outline or opaque) --> + <MoveMode mask="4">opaque</MoveMode> + + <!-- The resize mode (outline or opaque) --> + <ResizeMode>opaque</ResizeMode> + + <!-- Key bindings --> + <Key key="Up">up</Key> + <Key key="Down">down</Key> + <Key key="Right">right</Key> + <Key key="Left">left</Key> + <Key key="h">left</Key> + <Key key="j">down</Key> + <Key key="k">up</Key> + <Key key="l">right</Key> + <Key key="Return">select</Key> + <Key key="Escape">escape</Key> + + <Key mask="A" key="Tab">nextstacked</Key> + <Key mask="4S" key="q">close</Key> + <Key mask="4" key="#">desktop#</Key> + <!-- <Key mask="A" key="F1">root:1</Key> --> + <!-- <Key mask="A" key="F2">window</Key> --> + <!-- <Key mask="A" key="F10">maximize</Key> --> + <!-- <Key mask="A" key="Right">rdesktop</Key> --> + <!-- <Key mask="A" key="Left">ldesktop</Key> --> + <!-- <Key mask="A" key="Up">udesktop</Key> --> + <!-- <Key mask="A" key="Down">ddesktop</Key> --> + + <Key mask="4" key="period">rdesktop</Key> + <Key mask="4" key="comma">ldesktop</Key> + <Key mask="4S" key="comma">sendl</Key> + <Key mask="4S" key="period">sendr</Key> + + <Key mask="4" key="Left">maxleft</Key> + <Key mask="4C" key="Left">maxtopleft</Key> + <Key mask="4" key="Right">maxright</Key> + <Key mask="4C" key="Right">maxbottomright</Key> + <Key mask="4" key="Up">maxtop</Key> + <Key mask="4C" key="Up">maxtopright</Key> + <Key mask="4" key="Down">maxbottom</Key> + <Key mask="4C" key="Down">maxbottomleft</Key> + + <Key mask="4" key="apostrophe">maximize</Key> + <Key mask="4" key="slash">minimize</Key> + + <Key mask="4" key="Return">exec:st</Key> + <Key mask="4" key="b">exec:st -t btop -e btop</Key> + + + <!-- Mouse bindings --> + <!-- <Mouse context="root" button="4">ldesktop</Mouse> --> + <!-- <Mouse context="root" button="5">rdesktop</Mouse> --> + + <Mouse context="title" button="1">move</Mouse> + <Mouse context="title" button="2">move</Mouse> + <Mouse context="title" button="3">window</Mouse> + <Mouse context="title" button="4">shade</Mouse> + <Mouse context="title" button="5">shade</Mouse> + <Mouse context="title" button="11">maximize</Mouse> + + <Mouse context="icon" button="1">window</Mouse> + <Mouse context="icon" button="2">move</Mouse> + <Mouse context="icon" button="3">window</Mouse> + <Mouse context="icon" button="4">shade</Mouse> + <Mouse context="icon" button="5">shade</Mouse> + + <Mouse context="border" button="1">resize</Mouse> + <Mouse context="border" button="2">move</Mouse> + <Mouse context="border" button="3">window</Mouse> + + <Mouse context="close" button="-1">close</Mouse> + <Mouse context="close" button="2">move</Mouse> + <Mouse context="close" button="-3">close</Mouse> + + <Mouse context="maximize" button="-1">maximize</Mouse> + <Mouse context="maximize" button="-2">maxv</Mouse> + <Mouse context="maximize" button="-3">maxh</Mouse> + + <Mouse context="minimize" button="-1">minimize</Mouse> + <Mouse context="minimize" button="2">move</Mouse> + <Mouse context="minimize" button="-3">shade</Mouse> + +</JWM> diff --git a/jwm/.jwmrc b/jwm/.jwmrc @@ -1,252 +0,0 @@ -<?xml version="1.0"?> -<JWM> - - <!-- The root menu. --> - <RootMenu onroot="12"> - <Program icon="utilities-terminal" label="Terminal">st</Program> - <Menu icon="folder" label="Applications"> - <Program icon="sound" label="Audacious">audacious</Program> - <Program icon="calc" label="Calculator">xcalc</Program> - <Program icon="web-browser" label="Firefox">netsurf-gtk</Program> - <Program icon="image" label="Gimp">sxiv</Program> - <Program icon="email" label="Mail">claws-mail</Program> - <Program icon="system-file-manager" label="ROX">rox ~</Program> - </Menu> - <Menu icon="folder" label="Utilities"> - <Program icon="font" label="Fonts">xfontsel</Program> - <Program icon="info" label="Window Properties"> - xprop | xmessage -file - - </Program> - <Program icon="info" label="Window Information"> - xwininfo | xmessage -file - - </Program> - </Menu> - <Separator/> - <Program icon="lock" label="Lock"> - xscreensaver-command -lock - </Program> - <Separator/> - <Restart label="Restart" icon="reload"/> - <Exit label="Exit" confirm="true" icon="exit"/> - </RootMenu> - - <!-- Options for program groups. --> - <Group> - <Option>tiled</Option> - </Group> - <Group> - <Name>xterm</Name> - <Option>vmax</Option> - </Group> - <Group> - <Name>xclock</Name> - <Option>drag</Option> - <Option>notitle</Option> - </Group> - - <!-- Tray at the bottom. --> - <Tray x="0" y="0" autohide="off" delay="1000"> - - <TrayButton label="JWM">root:1</TrayButton> - <Spacer width="2"/> - <TrayButton label="_">showdesktop</TrayButton> - <Spacer width="2"/> - - <Pager labeled="true"/> - - <TaskList maxwidth="256"/> - - <Swallow width="32" height="32" name="xclock">xclock</Swallow> - - <Dock/> - <Clock format="%a, %b %d - %H:%M"><Button mask="123">exec:xclock</Button></Clock> - - </Tray> - - <!-- Visual Styles --> - <WindowStyle decorations="motif"> - <Font>Sans-12:bold</Font> - <Width>4</Width> - <Corner>0</Corner> - <Foreground>#FFFFFF</Foreground> - <Background>#555555</Background> - <Opacity>1.0</Opacity> - <Active> - <Foreground>#FFFFFF</Foreground> - <Background>#0077CC</Background> - <Opacity>1.0</Opacity> - </Active> - </WindowStyle> - <TrayStyle decorations="motif"> - <Font>Sans-12</Font> - <Background>#333333</Background> - <Foreground>#FFFFFF</Foreground> - <Opacity>0.75</Opacity> - </TrayStyle> - <TaskListStyle list="all" group="true"> - <Font>Sans-12</Font> - <Active> - <Foreground>#FFFFFF</Foreground> - <Background>#555555</Background> - </Active> - <Minimized> - <Foreground>#FFFFFF</Foreground> - <Background>#111111</Background> - </Minimized> - <Foreground>#FFFFFF</Foreground> - <Background>#333333</Background> - </TaskListStyle> - <PagerStyle> - <Foreground>#555555</Foreground> - <Background>#333333</Background> - <Text>#FFFFFF</Text> - <Active> - <Foreground>#0077CC</Foreground> - <Background>#004488</Background> - </Active> - </PagerStyle> - <MenuStyle decorations="motif"> - <Font>Sans-12</Font> - <Foreground>#FFFFFF</Foreground> - <Background>#333333</Background> - <Active> - <Foreground>#FFFFFF</Foreground> - <Background>#0077CC</Background> - </Active> - <Opacity>0.85</Opacity> - </MenuStyle> - <PopupStyle> - <Font>Sans-12</Font> - <Foreground>#000000</Foreground> - <Background>#999999</Background> - </PopupStyle> - - <!-- Path where icons can be found. - IconPath can be listed multiple times to allow searching - for icons in multiple paths. - --> - <IconPath> - /usr/local/share/icons/Tango/scalable/actions - </IconPath> - <IconPath> - /usr/local/share/icons/Tango/scalable/apps - </IconPath> - <IconPath> - /usr/local/share/icons/Tango/scalable/places - </IconPath> - <IconPath> - /usr/local/share/icons/Tango/scalable/status - </IconPath> - <IconPath> - /usr/local/share/icons/Tango/scalable/mimetypes - </IconPath> - <IconPath> - /usr/local/share/jwm - </IconPath> - - <!-- Virtual Desktops --> - <!-- Desktop tags can be contained within Desktops for desktop names. --> - <Desktops width="6" height="1"> - <!-- Default background. Note that a Background tag can be - contained within a Desktop tag to give a specific background - for that desktop. - --> - <Background type="solid">#111111</Background> - </Desktops> - - <!-- Double click speed (in milliseconds) --> - <DoubleClickSpeed>400</DoubleClickSpeed> - - <!-- Double click delta (in pixels) --> - <DoubleClickDelta>2</DoubleClickDelta> - - <!-- The focus model (sloppy or click) --> - <FocusModel>sloppy</FocusModel> - - <!-- The snap mode (none, screen, or border) --> - <SnapMode distance="10">border</SnapMode> - - <!-- The move mode (outline or opaque) --> - <MoveMode mask="4">opaque</MoveMode> - - <!-- The resize mode (outline or opaque) --> - <ResizeMode>opaque</ResizeMode> - - <!-- Key bindings --> - <Key key="Up">up</Key> - <Key key="Down">down</Key> - <Key key="Right">right</Key> - <Key key="Left">left</Key> - <Key key="h">left</Key> - <Key key="j">down</Key> - <Key key="k">up</Key> - <Key key="l">right</Key> - <Key key="Return">select</Key> - <Key key="Escape">escape</Key> - - <Key mask="A" key="Tab">nextstacked</Key> - <Key mask="4S" key="q">close</Key> - <Key mask="4" key="#">desktop#</Key> - <!-- <Key mask="A" key="F1">root:1</Key> --> - <!-- <Key mask="A" key="F2">window</Key> --> - <!-- <Key mask="A" key="F10">maximize</Key> --> - <!-- <Key mask="A" key="Right">rdesktop</Key> --> - <!-- <Key mask="A" key="Left">ldesktop</Key> --> - <!-- <Key mask="A" key="Up">udesktop</Key> --> - <!-- <Key mask="A" key="Down">ddesktop</Key> --> - - <Key mask="4" key="period">rdesktop</Key> - <Key mask="4" key="comma">ldesktop</Key> - <Key mask="4S" key="comma">sendl</Key> - <Key mask="4S" key="period">sendr</Key> - - <Key mask="4" key="Left">maxleft</Key> - <Key mask="4A" key="Left">maxtopleft</Key> - <Key mask="4" key="Right">maxright</Key> - <Key mask="4A" key="Right">maxbottomright</Key> - <Key mask="4" key="Up">maxtop</Key> - <Key mask="4A" key="Up">maxtopright</Key> - <Key mask="4" key="Down">maxbottom</Key> - <Key mask="4A" key="Down">maxbottomleft</Key> - - <Key mask="4" key="apostrophe">maximize</Key> - <Key mask="4" key="slash">minimize</Key> - - <Key mask="4" key="Return">exec:st</Key> - <Key mask="4" key="b">exec:st -t btop -e btop</Key> - - - <!-- Mouse bindings --> - <!-- <Mouse context="root" button="4">ldesktop</Mouse> --> - <!-- <Mouse context="root" button="5">rdesktop</Mouse> --> - - <Mouse context="title" button="1">move</Mouse> - <Mouse context="title" button="2">move</Mouse> - <Mouse context="title" button="3">window</Mouse> - <Mouse context="title" button="4">shade</Mouse> - <Mouse context="title" button="5">shade</Mouse> - <Mouse context="title" button="11">maximize</Mouse> - - <Mouse context="icon" button="1">window</Mouse> - <Mouse context="icon" button="2">move</Mouse> - <Mouse context="icon" button="3">window</Mouse> - <Mouse context="icon" button="4">shade</Mouse> - <Mouse context="icon" button="5">shade</Mouse> - - <Mouse context="border" button="1">resize</Mouse> - <Mouse context="border" button="2">move</Mouse> - <Mouse context="border" button="3">window</Mouse> - - <Mouse context="close" button="-1">close</Mouse> - <Mouse context="close" button="2">move</Mouse> - <Mouse context="close" button="-3">close</Mouse> - - <Mouse context="maximize" button="-1">maximize</Mouse> - <Mouse context="maximize" button="-2">maxv</Mouse> - <Mouse context="maximize" button="-3">maxh</Mouse> - - <Mouse context="minimize" button="-1">minimize</Mouse> - <Mouse context="minimize" button="2">move</Mouse> - <Mouse context="minimize" button="-3">shade</Mouse> - -</JWM>