starting from scratch
This commit is contained in:
commit
e5b09d26cf
11
.gitignore
vendored
Normal file
11
.gitignore
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# Ignore everything
|
||||||
|
*
|
||||||
|
# But not these files...
|
||||||
|
!.gitignore
|
||||||
|
!bash/**
|
||||||
|
!tmux/*
|
||||||
|
!scripts/*
|
||||||
|
!nano/*
|
||||||
|
!x11/**
|
||||||
|
#directory catchall
|
||||||
|
!*/
|
6
bash/bash_profile
Executable file
6
bash/bash_profile
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
export BASH_SILENCE_DEPRECATION_WARNING=1
|
||||||
|
|
||||||
|
BASHRC_D=~/.config/bash/bashrc.d
|
||||||
|
[[ -r ${BASHRC_D}/bootstrap ]] && . ${BASHRC_D}/bootstrap
|
||||||
|
|
||||||
|
. $XDG_CONFIG_HOME/bash/sandboxes/sandbox.sh
|
2
bash/rc.d/001-xdg.sh
Normal file
2
bash/rc.d/001-xdg.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
export XDG_CONFIG_HOME=$HOME/.config
|
||||||
|
export XDG_DATA=$HOME/.local
|
2663
bash/rc.d/003-git-completion.sh
Executable file
2663
bash/rc.d/003-git-completion.sh
Executable file
File diff suppressed because it is too large
Load Diff
7
bash/rc.d/005-history.sh
Executable file
7
bash/rc.d/005-history.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
# Bash History
|
||||||
|
shopt -s histappend
|
||||||
|
export HISTSIZE=100000
|
||||||
|
export HISTFILESIZE=10000000
|
||||||
|
export HISTCONTROL=ignoreboth
|
||||||
|
export PROMPT_COMMAND="history -a; history -n"
|
||||||
|
export HISTIGNORE="ls:ll:cd:pwd:bg:fg:history"
|
7
bash/rc.d/006-go.sh
Normal file
7
bash/rc.d/006-go.sh
Normal 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:$GOBIN
|
5
bash/rc.d/007-plan9.sh
Executable file
5
bash/rc.d/007-plan9.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
export PLAN9=/usr/local/plan9
|
||||||
|
export PATH="$PATH:$PLAN9/bin"
|
||||||
|
|
||||||
|
# acme visible clicks
|
||||||
|
export visibleclicks=1
|
5
bash/rc.d/008-alias.sh
Normal file
5
bash/rc.d/008-alias.sh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
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"
|
||||||
|
|
||||||
|
alias drone-local="drone exec --branch $(git branch 2>/dev/null | sed -n '/^\*/s/^\* //p') --trusted"
|
3
bash/rc.d/010-starship.sh
Normal file
3
bash/rc.d/010-starship.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export SPACESHIP_HOST_SHOW=always
|
||||||
|
export SPACESHIP_USER_SHOW=always
|
||||||
|
eval "$(starship init bash)"
|
2
bash/setup.sh
Normal file
2
bash/setup.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
echo "source .config/bash/bash_profile" >> ~/.bashrc
|
||||||
|
echo "source .config/bash/bash_profile" >> ~/.bash_profile
|
1
nano/nanorc
Executable file
1
nano/nanorc
Executable file
|
@ -0,0 +1 @@
|
||||||
|
#set historylog
set multibuffer
#set smooth
#set suspend
set tabsize 2
#set boldtext
#set matchbrackets
#set mouse
include "/usr/local/share/nano/go.nanorc"
syntax "nanorc" "\.?nanorc$"
color brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
color brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|speller|suspend|tabsize|tabstospaces|tempfile|view|whitespace|wordbounds)\>"
color green "^[[:space:]]*(set|unset|include|syntax|header)\>"
color yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
color magenta "^[[:space:]]*i?color\>" "\<(start|end)="
color white ""(\\.|[^"])*""
color brightblue "^[[:space:]]*#.*$"
color cyan "^[[:space:]]*##.*$"
syntax "Java source" "\.java$"
icolor green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
icolor red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>"
icolor cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>"
icolor red ""[^\"]*""
icolor yellow "\<(true|false|null)\>"
icolor blue "//.*"
icolor blue start="/\*" end="\*/"
icolor brightblue start="/\*\*" end="\*/"
icolor brightgreen,green " +$"
syntax "patch" "\.(patch|diff)$"
icolor brightgreen "^\+.*"
icolor green "^\+\+\+.*"
icolor brightblue "^ .*"
icolor brightred "^-.*"
icolor red "^---.*"
icolor brightyellow "^@@.*"
icolor magenta "^diff.*"
syntax "HTML" "\.html$"
icolor blue start="<" end=">"
icolor red "&[^; ]*;"
syntax "HTML" "\.xml$"
icolor blue start="<" end=">"
icolor red "&[^; ]*;"
## Go Syntax Highlighting
##
syntax "go" "\.go$"
## Types n stuff
color green "\<((u)?int(8|16|32|64)?|float(32|64)|byte|string|interface|nil|bool|true|false)\>"
color green "\<(package|import|const|var|type|struct|func)\>"
color brightyellow "\<(for|range|if|else|case|default|switch)\>"
color magenta "\<(continue|break|return)\>"
## Strings
color brightyellow "".*""
color brightyellow "'.'"
## Comment highlighting
color brightblue "//.*"
color brightblue start="/\*" end="\*/"
## Trailing whitespace
color ,green "[[:space:]]+$"
|
7
scripts/acct.sh
Executable file
7
scripts/acct.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash -eo pipefail
|
||||||
|
|
||||||
|
ACCT=`whoami`
|
||||||
|
# change default shell back to bash
|
||||||
|
chsh -s /bin/bash $ACCT
|
||||||
|
# Generate keypair for use with github
|
||||||
|
ssh-keygen -o -a 100 -t ed25519 -f $HOME/.ssh/id_ed25519 -C "colin@jchenry.me"
|
5
scripts/brew-setup.sh
Normal file
5
scripts/brew-setup.sh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash -eo pipefail
|
||||||
|
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
|
brew tap Homebrew/bundle
|
||||||
|
mas signin colin@jchenry.me
|
||||||
|
brew bundle --file ../Brewfile
|
131
scripts/macos-defaults.sh
Executable file
131
scripts/macos-defaults.sh
Executable file
|
@ -0,0 +1,131 @@
|
||||||
|
#!/usr/bin/env bash -eo pipefail
|
||||||
|
|
||||||
|
# Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
|
||||||
|
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
|
||||||
|
|
||||||
|
# Automatically quit printer app once the print jobs complete
|
||||||
|
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
|
||||||
|
|
||||||
|
# Disable smart dashes as they’re annoying when typing code
|
||||||
|
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
|
||||||
|
|
||||||
|
# Require password immediately after sleep or screen saver begins
|
||||||
|
defaults write com.apple.screensaver askForPassword -int 1
|
||||||
|
defaults write com.apple.screensaver askForPasswordDelay -int 0
|
||||||
|
|
||||||
|
# Finder: Set bottom right hot corner to start screensaver
|
||||||
|
defaults write com.apple.dock "wvous-br-corner" int 5;
|
||||||
|
defaults write com.apple.dock "wvous-br-modifier" -int 0;
|
||||||
|
|
||||||
|
# Trackpad: disable launchpad pinch with thumb and three fingers
|
||||||
|
defaults write com.apple.dock showLaunchpadGestureEnabled -int 0
|
||||||
|
|
||||||
|
# Finder: Avoid creating .DS_Store files on network volumes (!!!!!!)
|
||||||
|
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
|
||||||
|
|
||||||
|
# Finder: Show hidden files
|
||||||
|
defaults write com.apple.finder AppleShowAllFiles YES
|
||||||
|
|
||||||
|
# Finder: Column view as default
|
||||||
|
defaults write com.apple.finder FXPreferredViewStyle -string "clmv"
|
||||||
|
|
||||||
|
# Finder: Show status bar
|
||||||
|
defaults write com.apple.finder ShowStatusBar -bool true
|
||||||
|
|
||||||
|
# Finder: Expand save panel by default
|
||||||
|
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
|
||||||
|
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
|
||||||
|
|
||||||
|
# Finder: Automatically open a new Finder window when a volume is mounted
|
||||||
|
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
|
||||||
|
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
|
||||||
|
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
|
||||||
|
|
||||||
|
# Finder: When performing a search, search the current folder by default
|
||||||
|
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
|
||||||
|
|
||||||
|
# Finder: Expand the following File Info panes:
|
||||||
|
# “General”, “Open with”, and “Sharing & Permissions”
|
||||||
|
defaults write com.apple.finder FXInfoPanesExpanded -dict \
|
||||||
|
General -bool true \
|
||||||
|
OpenWith -bool true \
|
||||||
|
Privileges -bool true
|
||||||
|
|
||||||
|
# Finder: Avoid creating .DS_Store files on network volumes (!!!!!!)
|
||||||
|
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
|
||||||
|
|
||||||
|
# Finder: Autohide Dock
|
||||||
|
defaults write com.apple.dock autohide -int 1
|
||||||
|
defaults write com.apple.Dock autohide-delay -float 0
|
||||||
|
|
||||||
|
# Finder: Remove all default apps
|
||||||
|
defaults delete com.apple.dock "persistent-apps"
|
||||||
|
|
||||||
|
# Menu bar: Set date and time format e.g. Sun 11 Aug 16:55
|
||||||
|
defaults write com.apple.menuextra.clock DateFormat -string "HH:mm"
|
||||||
|
|
||||||
|
# Messages.app: Disable smart quotes as it’s annoying for messages that contain code
|
||||||
|
defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false
|
||||||
|
|
||||||
|
# Photos: Prevent Photos from opening automatically when devices are plugged in
|
||||||
|
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
|
||||||
|
|
||||||
|
# Preview: Don't remember open files
|
||||||
|
defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false
|
||||||
|
|
||||||
|
# Safari: Privacy: don’t send search queries to Apple
|
||||||
|
defaults write com.apple.Safari UniversalSearchEnabled -bool false
|
||||||
|
defaults write com.apple.Safari SuppressSearchSuggestions -bool true
|
||||||
|
|
||||||
|
# Safari: Show the full URL in the address bar (note: this still hides the scheme)
|
||||||
|
defaults write com.apple.Safari ShowFullURLInSmartSearchField -bool true
|
||||||
|
|
||||||
|
# Safari: Set Safari’s home page to `about:blank` for faster loading
|
||||||
|
defaults write com.apple.Safari HomePage -string "about:blank"
|
||||||
|
|
||||||
|
|
||||||
|
# Safari: Prevent Safari from opening ‘safe’ files automatically after downloading
|
||||||
|
defaults write com.apple.Safari AutoOpenSafeDownloads -bool false
|
||||||
|
|
||||||
|
# Safari: Enable the Develop menu and the Web Inspector in Safari
|
||||||
|
defaults write com.apple.Safari IncludeDevelopMenu -bool true
|
||||||
|
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
|
||||||
|
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true
|
||||||
|
|
||||||
|
# Safari: Enable Safari’s debug menu
|
||||||
|
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
|
||||||
|
|
||||||
|
# Safari: Add a context menu item for showing the Web Inspector in web views
|
||||||
|
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
|
||||||
|
|
||||||
|
# Text Edit: Use plain text mode for new TextEdit documents
|
||||||
|
defaults write com.apple.TextEdit RichText -int 0
|
||||||
|
|
||||||
|
# Text Edit: Open and save files as UTF-8 in TextEdit
|
||||||
|
defaults write com.apple.TextEdit PlainTextEncoding -int 4
|
||||||
|
defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4
|
||||||
|
|
||||||
|
# Time Machine: Don't ask to use every drive for Time Machine
|
||||||
|
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
|
||||||
|
|
||||||
|
# Terminal.app: Only use UTF-8 in Terminal
|
||||||
|
defaults write com.apple.terminal StringEncodings -array 4
|
||||||
|
# Terminal.app: set default prodile to Pro
|
||||||
|
defaults write com.apple.terminal "Default Window Settings" -string "Pro";
|
||||||
|
|
||||||
|
# Activity Monitor: Visualize CPU usage in the Activity Monitor Dock icon
|
||||||
|
defaults write com.apple.ActivityMonitor IconType -int 5
|
||||||
|
|
||||||
|
# Activity Monitor: Sort Activity Monitor results by CPU usage
|
||||||
|
defaults write com.apple.ActivityMonitor SortColumn -string "CPUUsage"
|
||||||
|
defaults write com.apple.ActivityMonitor SortDirection -int 0
|
||||||
|
|
||||||
|
# Kill affected applications
|
||||||
|
for app in \
|
||||||
|
Dock \
|
||||||
|
Finder \
|
||||||
|
Safari \
|
||||||
|
SystemUIServer \
|
||||||
|
; do killall "$app" >/dev/null 2>&1
|
||||||
|
done
|
||||||
|
|
1
tmux/setup.sh
Normal file
1
tmux/setup.sh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
git submodule add https://github.com/tmux-plugins/tpm $XDG_CONFIG_HOME/tmux/plugins/tpm
|
20
tmux/tmux.conf
Normal file
20
tmux/tmux.conf
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
unbind C-b
|
||||||
|
set -g prefix C-a
|
||||||
|
|
||||||
|
unbind r
|
||||||
|
bind r source-file ~/.config/tmux/tmux.conf
|
||||||
|
|
||||||
|
bind h split-window -v
|
||||||
|
bind v split-window -h
|
||||||
|
|
||||||
|
# set -g mouse on
|
||||||
|
|
||||||
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
|
||||||
|
set -g @plugin 'dracula/tmux'
|
||||||
|
set -g @dracula-show-powerline true
|
||||||
|
set -g @dracula-show-left-icon session
|
||||||
|
set -g @dracula-plugins "cpu-usage ram-usage"
|
||||||
|
|
||||||
|
run '~/.config/tmux/plugins/tpm/tpm'
|
8
x11/twm/icons/chromium.xbm
Executable file
8
x11/twm/icons/chromium.xbm
Executable 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
4
x11/twm/icons/close.xbm
Executable 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
4
x11/twm/icons/maximize.xbm
Executable 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
4
x11/twm/icons/maximize2.xbm
Executable 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
4
x11/twm/icons/minimize.xbm
Executable 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
4
x11/twm/icons/minimize2.xbm
Executable 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
5
x11/twm/icons/refresh.xbm
Executable 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
5
x11/twm/icons/resize.xbm
Executable 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
4
x11/twm/icons/resize2.xbm
Executable 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
BIN
x11/twm/reduxbg.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
170
x11/twmrc
Executable file
170
x11/twmrc
Executable 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
31
x11/xdm/Xresources_custom
Executable 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
24
x11/xdm/Xsetup_custom
Executable 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
14
x11/xdm/Xstartup_custom
Executable 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
3
x11/xdm/xdm-config.patch
Executable 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
10
x11/xsessionrc
Executable 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
|
Loading…
Reference in New Issue
Block a user