Skip to content

Commit

Permalink
Add dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
willowiscool committed Dec 23, 2018
0 parents commit 29daa21
Show file tree
Hide file tree
Showing 15 changed files with 1,837 additions and 0 deletions.
85 changes: 85 additions & 0 deletions .bashrc
@@ -0,0 +1,85 @@
# Sample .bashrc for SuSE Linux
# Copyright (c) SuSE GmbH Nuernberg

# There are 3 different types of shells in bash: the login shell, normal shell
# and interactive shell. Login shells read ~/.profile and interactive shells
# read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all
# settings made here will also take effect in a login shell.
#
# NOTE: It is recommended to make language settings in ~/.profile rather than
# here, since multilingual X sessions would not work properly if LANG is over-
# ridden in every subshell.

test -s ~/.alias && . ~/.alias || true
#victor

# Set add my bin and goprograms built bin to the path
export PATH="$PATH:/home/victor/bin:/home/victor/programs/goprograms/bin"
# Because xbacklight is a bitch
alias enableBrightness="sudo chmod 666 /sys/class/backlight/intel_backlight/brightness"
# dab <o/
alias dabux="neofetch --ascii ~/dabux --ascii_colors 6 0 2"
# Set the path that Go builds into and installs into
export GOPATH="/home/victor/programs/goprograms"
# Make an alias for going to my go dir
alias cdgo="cd ~/programs/goprograms/src/v"
# Make an alias for discord
alias discord="chromium --app=https://discordapp.com/channels/@me"
# Make a command for showing what image is in my clipboard
alias imgpaste="xclip -selection clipboard -t image/png -o | feh -"
# Make infinite history
export HISTSIZE=
export HISTFILESIZE=

# Change tty colors
if [ "$TERM" = "linux" ]; then
echo -en "\e]P0000000"
echo -en "\e]P1d54e53"
echo -en "\e]P2b9ca4a"
echo -en "\e]P3e7c547"
echo -en "\e]P47aa6da"
echo -en "\e]P5c397d8"
echo -en "\e]P670c0b1"
echo -en "\e]P7ffffff"
echo -en "\e]P8000000"
echo -en "\e]P9d54e53"
echo -en "\e]PAb9ca4a"
echo -en "\e]PBe7c547"
echo -en "\e]PC7aa6da"
echo -en "\e]PDc397d8"
echo -en "\e]PE70c0b1"
echo -en "\e]PFffffff"
: << 'END'
Railscast setup I found online
echo -en "\e]P0232323" #black
echo -en "\e]P82B2B2B" #darkgrey
echo -en "\e]P1D75F5F" #darkred
echo -en "\e]P9E33636" #red
echo -en "\e]P287AF5F" #darkgreen
echo -en "\e]PA98E34D" #green
echo -en "\e]P3D7AF87" #brown
echo -en "\e]PBFFD75F" #yellow
echo -en "\e]P48787AF" #darkblue
echo -en "\e]PC7373C9" #blue
echo -en "\e]P5BD53A5" #darkmagenta
echo -en "\e]PDD633B2" #magenta
echo -en "\e]P65FAFAF" #darkcyan
echo -en "\e]PE44C9C9" #cyan
echo -en "\e]P7E5E5E5" #lightgrey
echo -en "\e]PFFFFFFF" #white
END
clear #for background artifacting
fi

# Returns a red [!] if there's an uncommited/untracked file
git_status() {
[ "$(git status --porcelain 2>/dev/null)" != "" ] && echo -ne " \e[1;31m[!]\e[m"
}
# Sets PS1 to [victor => foldername] [!] $ (the [!] comes from the previous lines)
PS1="[\[\e[1;34m\]\u\[\e[m\] => \[\e[1;32m\]\W\[\e[m\]\$(git_status)] $ "
# makes ls colorful
alias ls="ls --color=auto"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
5 changes: 5 additions & 0 deletions .capslockToEsc
@@ -0,0 +1,5 @@
! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
10 changes: 10 additions & 0 deletions .compton.conf
@@ -0,0 +1,10 @@
backend = "glx";
blur-background = true;
blur-background-frame = false;
blur-kern = "11,11,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
blur-method = "kawase";
blur-strength = 200;
blur-background-fixed = false;
opacity-rule = [
"80:class_g = 'Gedit'"
]
48 changes: 48 additions & 0 deletions .config/micro/settings.json
@@ -0,0 +1,48 @@
{
"autoclose": true,
"autoindent": true,
"autosave": false,
"basename": false,
"colorcolumn": 0,
"colorscheme": "simple",
"cursorline": true,
"eofnewline": false,
"fastdirty": true,
"fileformat": "unix",
"ftoptions": true,
"hidehelp": false,
"ignorecase": false,
"indentchar": " ",
"infobar": true,
"keepautoindent": false,
"keymenu": false,
"linter": true,
"literate": true,
"matchbrace": false,
"matchbraceleft": false,
"mouse": true,
"pluginchannels": [
"https://raw.githubusercontent.com/micro-editor/plugin-channel/master/channel.json"
],
"pluginrepos": [],
"rmtrailingws": false,
"ruler": true,
"savecursor": false,
"savehistory": true,
"saveundo": false,
"scrollbar": false,
"scrollmargin": 3,
"scrollspeed": 2,
"smartpaste": true,
"softwrap": true,
"splitbottom": true,
"splitright": true,
"statusline": true,
"sucmd": "sudo",
"syntax": true,
"tabmovement": false,
"tabsize": 4,
"tabstospaces": false,
"termtitle": false,
"useprimary": true
}
Binary file added .config/openbox/.autostart.un~
Binary file not shown.
4 changes: 4 additions & 0 deletions .config/openbox/autostart
@@ -0,0 +1,4 @@
feh --bg-scale ~/background_pixel.png
compton --config ~/.compton.conf -b
redshift -l manual -l 40.6:-73.9 &
xmodmap ~/.capslockToEsc

0 comments on commit 29daa21

Please sign in to comment.