This commit is contained in:
Colin Henry 2021-08-22 20:49:43 -07:00
parent 14dc21eb09
commit d0253b4dab
37 changed files with 3116 additions and 16 deletions

BIN
.DS_Store vendored

Binary file not shown.

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.DS_Store
mono/httplistener

View File

@ -1,6 +1,6 @@
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
#tap "homebrew/bundle"
#tap "homebrew/cask"
#tap "homebrew/core"
brew "docker"
brew "drone-cli"
brew "git"
@ -40,7 +40,6 @@ mas "GarageBand", id: 682658836
mas "iMovie", id: 408981434
mas "Keynote", id: 409183694
mas "My Net", id: 931314293
mas "NordVPN IKE", id: 1116599239
mas "Numbers", id: 409203825
mas "Pages", id: 409201541
mas "Parcel", id: 639968404

View File

@ -1,10 +1,12 @@
if [ -z "$PS1" ]; then
return
fi
export BASH_SILENCE_DEPRECATION_WARNING=1
export PS1='${c_user}\u${c_reset}@${c_user}\h${c_reset}:${c_path}\w${c_reset}$(git_prompt)\n\$ '
BASHRC_D=~/.config/bashrc.d
[[ -r ${BASHRC_D}/bootstrap ]] && . ${BASHRC_D}/bootstrap
export PS1='${c_user}\u${c_reset}@${c_user}\h${c_reset}:${c_path}\w${c_reset}$(git_prompt)\n\$ '
export XDG_CONFIG_HOME=$HOME/.config
export XDG_DATA=$HOME/.local
@ -22,7 +24,8 @@ export XDG_DATA=$HOME/.local
export FLUTTER=/usr/local/flutter
#export PATH="$PATH:$XDG_DATA/bin:/usr/local/sbin:$PLAN9/bin:$FLUTTER/bin"
export PATH="$PATH:$XDG_DATA/bin"
#:/usr/local/sbin:$PLAN9/bin:$FLUTTER/bin"

5
bashrc.d/000-ps1.sh Normal file
View File

@ -0,0 +1,5 @@
if [ -z "$PS1" ]; then
return
fi
export PS1='${c_user}\u${c_reset}@${c_user}\h${c_reset}:${c_path}\w${c_reset}$(git_prompt)\n\$ '

2
bashrc.d/001-xdg.sh Normal file
View File

@ -0,0 +1,2 @@
export XDG_CONFIG_HOME=$HOME/.config
export XDG_DATA=$HOME/.local

33
bashrc.d/002-git-prompt.sh Executable file
View File

@ -0,0 +1,33 @@
# Configure colors, if available.
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
c_reset=`tput sgr0`
c_user=`tput setaf 8`
c_path=`tput setaf 8`
c_git_clean=`tput setaf 2`
c_git_dirty=`tput setaf 1`
else
c_reset=
c_user=
c_git_cleancleann_path=
c_git_clean=
c_git_dirty=
fi
# Function to assemble the Git parsingart of our prompt.
git_prompt ()
{
if ! git rev-parse --git-dir > /dev/null 2>&1; then
return 0
fi
git_branch=$(git branch 2>/dev/null | sed -n '/^\*/s/^\* //p')
if git diff --quiet 2>/dev/null >&2; then
git_color="$c_git_clean"
else
git_color="$c_git_dirty"
fi
echo "[$git_color$git_branch${c_reset}]"
}
function tabc() {
NAME=$1; if [ -z "$NAME" ]; then NAME="Default"; fi
osascript -e "tell application \"Terminal\" to set current settings of front window to settings set \"$NAME\""
}

2663
bashrc.d/003-git-completion.sh Executable file

File diff suppressed because it is too large Load Diff

7
bashrc.d/006-go.sh Normal file
View File

@ -0,0 +1,7 @@
#Golang environment
export GOPATH=$XDG_DATA
export GOROOT=/usr/local/go
export GOBIN=$XDG_DATA/bin
export GO111MODULE=on
export GOPRIVATE=github.com/jchenry
export PATH=$PATH:$GOROOT/bin

3
bashrc.d/alias.sh Normal file
View File

@ -0,0 +1,3 @@
alias build-targets="make -rpn | sed -n -e '/^$/ { n ; /^[^ .#][^ ]*:/p ; }' | egrep --color '^[^ ]*:'"
alias ebg="tr 'A-Za-z' 'N-ZA-Mn-za-m'"
alias tmux="tmux -f "$XDG_CONFIG_HOME"/tmux/tmux.conf"

4
bashrc.d/bootstrap Normal file
View File

@ -0,0 +1,4 @@
for file in ${BASHRC_D}/*.sh; do
[[ -r $file ]] && . $file
done
unset file

View File

@ -1,4 +1,4 @@
{
"optOut": false,
"lastUpdateCheck": 1592185592957
"lastUpdateCheck": 1621186621702
}

9
gatsby/config.json Normal file
View File

@ -0,0 +1,9 @@
{
"telemetry": {
"machineId": "0ea97bef-c42f-466e-89a1-cec6ec7c773c",
"enabled": true
},
"cli": {
"packageManager": "npm"
}
}

View File

@ -1,8 +1,6 @@
[hub]
protocol = https
[core]
excludesfile = /opt/boxen/config/git/gitignore
[user]
@ -18,5 +16,3 @@ excludesfile = /opt/boxen/config/git/gitignore
path = /Applications/kdiff3.app/Contents/MacOS/kdiff3
[http]
sslverify = true
[url "git@github.com:"]
insteadOf = https://github.com/

25
git/update_git_repos.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "Pulling in latest changes for all repositories..."
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
echo "";
echo "** "$i+" **";
# We have to go to the .git parent directory to call the pull command
cd "$i";
cd ..;
# finally pull
git pull origin;
# lets get back to the CUR_DIR
cd $CUR_DIR
done
echo "Complete!"

26
htop/htoprc Normal file
View File

@ -0,0 +1,26 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
fields=0 17 18 38 39 2 46 47 49 1
sort_key=47
sort_direction=1
hide_threads=0
hide_kernel_threads=1
hide_userland_threads=0
shadow_other_users=0
show_thread_names=0
show_program_path=1
highlight_base_name=0
highlight_megabytes=1
highlight_threads=1
tree_view=0
header_margin=1
detailed_cpu_time=0
cpu_count_from_zero=0
update_process_names=0
account_guest_in_cpu_meter=0
color_scheme=6
delay=15
left_meters=CPU LeftCPUs2 RightCPUs2
left_meter_modes=1 1 1
right_meters=Memory Swap Tasks LoadAverage Uptime Clock Battery
right_meter_modes=1 1 2 2 2 2 2

View File

@ -22,4 +22,4 @@ set-option -g status-justify "centre"
# Fix LSOpenURLsWithRole() error on OS X. Requires reattach-to-user-namespace
# to be installed.
set-option -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL"
#set-option -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL"

8
x11/twm/icons/chromium.xbm Executable file
View File

@ -0,0 +1,8 @@
#define chromium_width 15
#define chromium_height 15
#define chromium_x_hot 7
#define chromium_y_hot 7
static unsigned char chromium_bits[] = {
0xf0, 0x07, 0x88, 0x08, 0x04, 0x11, 0x02, 0x21, 0x81, 0x40, 0xc1, 0x41,
0x21, 0x42, 0x21, 0x42, 0x21, 0x42, 0xe1, 0x47, 0x11, 0x44, 0x1a, 0x28,
0x0c, 0x18, 0x08, 0x08, 0xf0, 0x07};

4
x11/twm/icons/close.xbm Executable file
View File

@ -0,0 +1,4 @@
#define close_width 7
#define close_height 7
static unsigned char close_bits[] = {
0x41, 0x22, 0x14, 0x08, 0x14, 0x22, 0x41, };

4
x11/twm/icons/maximize.xbm Executable file
View File

@ -0,0 +1,4 @@
#define maximize_width 7
#define maximize_height 7
static unsigned char maximize_bits[] = {
0x7f, 0x7f, 0x41, 0x41, 0x41, 0x41, 0x7f, };

4
x11/twm/icons/maximize2.xbm Executable file
View File

@ -0,0 +1,4 @@
#define /home/jchenry/.twm/icons/maximize2.xbm_width 7
#define /home/jchenry/.twm/icons/maximize2.xbm_height 7
static unsigned char /home/jchenry/.twm/icons/maximize2.xbm_bits[] = {
0x08, 0x08, 0x08, 0x7f, 0x08, 0x08, 0x08};

4
x11/twm/icons/minimize.xbm Executable file
View File

@ -0,0 +1,4 @@
#define minimize_width 7
#define minimize_height 7
static unsigned char minimize_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x7f, };

4
x11/twm/icons/minimize2.xbm Executable file
View File

@ -0,0 +1,4 @@
#define /home/jchenry/.twm/icons/minimize2.xbm_width 7
#define /home/jchenry/.twm/icons/minimize2.xbm_height 7
static unsigned char /home/jchenry/.twm/icons/minimize2.xbm_bits[] = {
0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00};

5
x11/twm/icons/refresh.xbm Executable file
View File

@ -0,0 +1,5 @@
#define refresh_width 9
#define refresh_height 9
static unsigned char refresh_bits[] = {
0x10, 0x00, 0x38, 0x00, 0x10, 0x00, 0x92, 0x00, 0xff, 0x01, 0x92, 0x00,
0x10, 0x00, 0x38, 0x00, 0x10, 0x00, };

5
x11/twm/icons/resize.xbm Executable file
View File

@ -0,0 +1,5 @@
#define resize_width 9
#define resize_height 7
static unsigned char resize_bits[] = {
0xfe, 0x01, 0xfe, 0x01, 0x02, 0x01, 0x3f, 0x01, 0x21, 0x01, 0x21, 0x01,
0xff, 0x01, };

4
x11/twm/icons/resize2.xbm Executable file
View File

@ -0,0 +1,4 @@
#define /home/jchenry/.twm/icons/resize2.xbm_width 7
#define /home/jchenry/.twm/icons/resize2.xbm_height 7
static unsigned char /home/jchenry/.twm/icons/resize2.xbm_bits[] = {
0x78, 0x60, 0x50, 0x49, 0x05, 0x03, 0x0f};

BIN
x11/twm/reduxbg.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

170
x11/twmrc Executable file
View File

@ -0,0 +1,170 @@
#Icon Manager
ShowIconManager
IconifyByUnmapping
NoGrabServer
RestartPreviousState
DecorateTransients
NoDefaults
# Fonts
TitleFont "-adobe-helvetica-medium-r-normal--*-80-*-*-*-*-*-*"
#ResizeFont "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*"
MenuFont "-adobe-helvetica-medium-r-normal--*-80-*-*-*-*-*-*"
#IconFont "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
IconManagerFont "-adobe-helvetica-medium-r-normal--*-80-*-*-*"
NoTitle {
"xclock"
"xload"
"xbiff"
"TWM Icon Manager"
}
IconManagerDontShow {
"xclock"
"xload"
"xbiff"
}
Icons {
"chromium" "chromium.xbm"
}
Color {
BorderColor "#303639"
DefaultBackground "White"
DefaultForeground "Black"
TitleBackground "Firebrick"
TitleForeground "White"
MenuTitleBackground "Firebrick"
MenuTitleForeground "White"
MenuBackground "#FFFFFF"
MenuForeground "#303639"
MenuShadowColor "#303639"
MenuBorderColor "#303639"
}
# xv ~/.twm/walls/reduxbg.jpg -root -quit
# Settings effecting window borders etc ------------------------------------------
BorderWidth 1 # Number of pixels for border around entire window
FramePadding 1 # Number of pixels between titlebar buttons & frame
TitleButtonBorderWidth 0 # Number of pixels for button border
TitlePadding 2 # Number of pixels around title buttons
ButtonIndent 0 # Larger seems to squash buttons together
MenuBorderWidth 1 # Number of pixels for menu border
NoMenuShadows # No shadow behind the menu
# Title bar buttons
IconDirectory "/home/jchenry/.twm/icons" # Directory for non default icons
LeftTitleButton "close.xbm"=f.delete
LeftTitleButton "minimize2.xbm"=f.iconify
LeftTitleButton "maximize2.xbm"=f.fullzoom
RightTitleButton "resize2.xbm"=f.resize
# -------------------------------------------------------------------------------
# Mouse settings and Window beahviours ------------------------------------------
#
# Button1=left, Button2=middle, Button3=right, m=alt, c=ctrl, s=shift
# The root window actions i.e. clicking on the backgound
Button1 = : root : f.menu "RootMenu"
Button2 = : root : f.menu "TWMWindows"
Button3 = : root : f.menu "System"
# Left click the window title to lower / raise + gain focus or move
Movedelta 1
Button1 = : title : f.function "raise-lower-move"
Function "raise-lower-move" { f.move f.raiselower }
# Middle click the window title for options for individual windows
Button2 = : title|frame : f.menu "WindowMenu"
# Right click window title to resize the window by mousing beyond frame
Button3 = : title|frame : f.resize
# Hold alt key and left click to move entire window
Button1 = m : window : f.move
# Hold shift key and right click / move to resize. Best near edges than centre.
Button3 = s : window : f.resize
# Hold Alt and Tab cycles through windows bringing up focus
Function "winup" { f.circleup }
"Tab" = m : root|window|frame|title : f.function "winup"
# Hold Alt plus left click window title to maximize window vertically
Button1 = m : title|frame : f.zoom
# Hold Alt plus right click window title to maximize window horizontally
Button3 = m : title|frame : f.horizoom
Button1 = : icon : f.iconify
Button1 = : iconmgr : f.iconify
DefaultFunction f.nop
# -------------------------------------------------------------------------------
#
# And a menus with the usual things
#
menu "RootMenu"
{
"Twm" f.title
#"" f.nop
#"terminal" f.exec "xterm -sl 255 -bg black -fg white &"
#"terminal" f.exec "st&"
"browser" f.exec "chromium&"
"code" f.exec "code&"
"notes" f.exec "tusk&"
"music" f.exec "spotify -name Spotify&"
"chat" f.exec "slack&"
}
menu "System" {
"X Windows" f.title
"Kill" f.destroy
"Delete" f.delete
"" f.nop
"Show Iconmgr" f.showiconmgr
"Hide Iconmgr" f.hideiconmgr
"" f.nop
"Lock" f.exec "slock&"
"Redraw" f.refresh
"Restart" f.restart
"Quit" f.menu "quit"
}
menu "quit" {
"Really Quit?" f.title
"No" f.nop
"Yes" f.quit
}
#Button1 = : root : f.menu "TwmWindows"
#Button1 = m : window | icon : f.function "move-or-lower"
#Button2 = m : window | icon : f.iconify
#Button3 = m : window | icon : f.function "move-or-raise"
#Button1 = : title : f.function "move-or-raise"
#Button2 = : title : f.raiselower
#Button1 = : icon : f.function "move-or-iconify"
#Button2 = : icon : f.iconify
#Button1 = : iconmgr : f.iconify
#Button2 = : iconmgr : f.iconify

31
x11/xdm/Xresources_custom Executable file
View File

@ -0,0 +1,31 @@
xlogin.Login.greeting:
xlogin.Login.unsecureGreeting:
xlogin.Login.fail: Fail.
xlogin.Login.changePasswdMessage: Change.
xlogin.Login.namePrompt: Username:
xlogin.Login.passwdPrompt: Password:
xlogin.Login.echoPasswd: true
xlogin.Login.background: black
xlogin.Login.foreground: white
xlogin.Login.failColor: #cccccc
xlogin.Login.inpColor: black
xlogin.Login.promptColor: #aaaaaa
xlogin.Login.face: courier:size=13:style=Bold
xlogin.Login.failFace: courier:size=13:style=Bold
xlogin.Login.promptFace: courier:size=13:style=Normal
xlogin.Login.greetFace: courier:size=13
xlogin.Login.width: 400
Xmessage*geometry: 170x30-0-0
Xmessage*background: black
Xmessage*foreground: #aaaaaa
Xmessage*Font: -adobe-courier-medium-r-normal--*-100-*-*-*-*-*-*
Xmessage*borderWidth: 0
Xmessage*message.scrollVertical: Never
Xmessage*message.scrollHorizontal: Never
Xmessage*message*background: black
Xmessage*Text*background: white
Xmessage*Text*foreground: #aaaaaa
Xmessage*Text.borderColor: black
Xmessage*Text.borderWidth: 0
Xmessage*Text*font: -adobe-courier-medium-r-normal--*-100-*-*-*-*-*-*

24
x11/xdm/Xsetup_custom Executable file
View File

@ -0,0 +1,24 @@
#!/bin/sh
#
# This script is run as root before showing login widget.
#--- set a fullscreen black in background
xsetroot -solid black
#--- set Shutdown/Reboot buttons
(
xmessage -buttons Shutdown:20,Reboot:21 "" ;
case $? in
20)
TERM=linux openvt -c 1 -f /usr/bin/clear
exec openvt -c 1 -f -s -- /sbin/shutdown -hP now
;;
21)
TERM=linux openvt -c 1 -f /usr/bin/clear
exec openvt -c 1 -f -s /sbin/reboot
;;
*)
echo "Xmessage closed on $(date)"
;;
esac
) &

14
x11/xdm/Xstartup_custom Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
#
# This script is run as root after the user logs in. If this script exits with
# a return code other than 0, the user's session will not be started.
# terminate xmessage
killall xmessage
# set the X background to plain black
xsetroot -solid black
if [ -x /etc/X11/xdm/Xstartup ]; then
/etc/X11/xdm/Xstartup
fi

3
x11/xdm/xdm-config.patch Executable file
View File

@ -0,0 +1,3 @@
DisplayManager._0.setup: /etc/X11/xdm/Xsetup_custom
DisplayManager._0.startup: /etc/X11/xdm/Xstartup_custom
DisplayManager._0.resources: /etc/X11/xdm/Xresources_custom

10
x11/xsessionrc Executable file
View File

@ -0,0 +1,10 @@
xsetroot -gray
feh --bg-tile ~/.twm/reduxbg.jpg
xclock -digital -brief -geometry 60x30-0+0&
xload -nolabel -geometry 60x30-0+31&
#xbiff -geometry 60x60-0+62&
twm
exit
#/usr/local/bin/st&
#/usr/local/bin/dwm

9
zim/notebooks.list Normal file
View File

@ -0,0 +1,9 @@
[NotebookList]
Default=
1=~/Notebooks/Notes
[Notebook 1]
uri=~/Notebooks/Notes
name=Notes
interwiki=None
icon=None

20
zim/preferences.conf Normal file
View File

@ -0,0 +1,20 @@
[General]
plugins=["pageindex","pathbar","insertsymbol","printtobrowser","versioncontrol"]
plugins_list_version=0.70
[PageIndexPlugin]
pane=left_pane
autoexpand=True
autocollapse=True
[PathBarPlugin]
[InsertSymbolPlugin]
[PrintToBrowserPlugin]
[VersionControlPlugin]
autosave=False
autosave_at_interval=False
autosave_interval=10