@@ -0,0 +1,26 @@ | |||
# enable color support of ls and also add handy aliases | |||
if [ -x /usr/bin/dircolors ]; then | |||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | |||
alias ls='ls -CF --color=auto' | |||
alias dir='dir --color=auto' | |||
alias vdir='vdir --color=auto' | |||
alias grep='grep --color=auto' | |||
alias fgrep='fgrep --color=auto' | |||
alias egrep='egrep --color=auto' | |||
fi | |||
# some more ls aliases | |||
alias ll='ls -alF' | |||
alias la='ls -A' | |||
alias l='ls -CF' | |||
# Add an "alert" alias for long running commands. Use like so: | |||
# sleep 10; alert | |||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' | |||
# Make emacs more less shitty | |||
alias e='emacs -nw' | |||
#heuh, smacs | |||
alias smacs='sudo emacs -nw' |
@@ -0,0 +1,132 @@ | |||
# ~/.bashrc: executed by bash(1) for non-login shells. | |||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |||
# for examples | |||
# If not running interactively, don't do anything | |||
[ -z "$PS1" ] && return | |||
# don't put duplicate lines in the history. See bash(1) for more options | |||
# ... or force ignoredups and ignorespace | |||
HISTCONTROL=ignoredups:ignorespace | |||
# append to the history file, don't overwrite it | |||
shopt -s histappend | |||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |||
HISTSIZE=1000 | |||
HISTFILESIZE=2000 | |||
# check the window size after each command and, if necessary, | |||
# update the values of LINES and COLUMNS. | |||
shopt -s checkwinsize | |||
# make less more friendly for non-text input files, see lesspipe(1) | |||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" | |||
# set variable identifying the chroot you work in (used in the prompt below) | |||
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then | |||
debian_chroot=$(cat /etc/debian_chroot) | |||
fi | |||
# Alias definitions. | |||
# You may want to put all your additions into a separate file like | |||
# ~/.bash_aliases, instead of adding them here directly. | |||
# See /usr/share/doc/bash-doc/examples in the bash-doc package. | |||
if [ -f ~/.bash_aliases ]; then | |||
. ~/.bash_aliases | |||
fi | |||
# enable programmable completion features (you don't need to enable | |||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile | |||
# sources /etc/bash.bashrc). | |||
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then | |||
. /etc/bash_completion | |||
fi | |||
# interface | |||
# ANSI CODES - SEPARATE MULTIPLE VALUES WITH ; | |||
# | |||
# 0 reset 4 underline | |||
# 1 bold 7 inverse | |||
# | |||
# FG BG COLOR FG BG COLOR | |||
# 30 40 black 34 44 blue | |||
# 31 41 red 35 45 magenta | |||
# 32 42 green 36 46 cyan | |||
# 33 43 yellow 37 47 white | |||
if [[ ! "${prompt_colors[@]}" ]]; then | |||
prompt_colors=( | |||
"0;37" # information color | |||
"1;30" # bracket color | |||
"31" # error color | |||
"1;36" # git color | |||
) | |||
if [[ "$SSH_TTY" ]]; then | |||
# connected via ssh | |||
prompt_colors[1]="1;32" | |||
elif [[ "$USER" == "root" ]]; then | |||
# logged in as root | |||
prompt_colors[1]="1;31" | |||
fi | |||
fi | |||
# Inside a prompt function, run this alias to setup local $c0-$c9 color vars. | |||
alias prompt_getcolors='prompt_colors[9]=; local i; for i in ${!prompt_colors[@]}; do local c$i="\[\e[0;${prompt_colors[$i]}m\]"; done' | |||
# Git status. | |||
function prompt_git() { | |||
prompt_getcolors | |||
local status output flags | |||
status="$(git status 2>/dev/null)" | |||
[[ $? != 0 ]] && return; | |||
output="$(echo "$status" | awk '/# Initial commit/ {print "(init)"}')" | |||
[[ "$output" ]] || output="$(echo "$status" | awk '/# On branch/ {print $4}')" | |||
[[ "$output" ]] || output="$(git branch | perl -ne '/^\* (.*)/ && print $1')" | |||
flags="$( | |||
echo "$status" | awk 'BEGIN {r=""} \ | |||
/Changes to be committed:/ {r=r "+"}\ | |||
/Changes not staged for commit:/ {r=r "!"}\ | |||
/Untracked files:/ {r=r "?"}\ | |||
END {print r}' | |||
)" | |||
if [[ "$flags" ]]; then | |||
output="$output$c1:$c3$flags" | |||
fi | |||
echo "$c1-$c3$output$c1$c9" | |||
} | |||
function prompt_command() { | |||
local exit_code=$? | |||
local pad=`printf "%03d" $exit_code` | |||
# If the first command in the stack is prompt_command, no command was run. | |||
# Set exit_code to 0 and reset the stack. | |||
[[ "${prompt_stack[0]}" == "prompt_command" ]] && exit_code=0 | |||
prompt_stack=() | |||
# Manually load z here, after $? is checked, to keep $? from being clobbered. | |||
[[ "$(type -t _z)" ]] && _z --add "$(pwd -P 2>/dev/null)" 2>/dev/null | |||
# While the simple_prompt environment var is set, disable the awesome prompt. | |||
[[ "$simple_prompt" ]] && PS1='\n$ ' && return | |||
prompt_getcolors | |||
PS1="\n" | |||
# misc: [cmd#] | |||
#PS1="$PS1$c1[$c0#\#$c1]$c9" | |||
# name: user@host:path | |||
PS1="$PS1$c1[$c0$pad$c1|$c0\w$c1]$c9" | |||
# git: [branch:flags] | |||
PS1="$PS1$(prompt_git)" | |||
if [[ "$USER" == "root" ]]; then | |||
PS1="$PS1$c1 #\[\033[0;37m\] " | |||
else | |||
PS1="$PS1$c1 \$\[\033[0;37m\] " | |||
fi | |||
# Update the title with location | |||
echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007" | |||
} | |||
PROMPT_COMMAND='prompt_command' |
@@ -0,0 +1 @@ | |||
set colored-stats on |
@@ -1,10 +1,16 @@ | |||
; Young .emacs for the powerful | |||
(custom-set-variables | |||
;; custom-set-variables was added by Custom. | |||
;; If you edit it by hand, you could mess it up, so be careful. | |||
;; Your init file should contain only one such instance. | |||
;; If there is more than one, they won't work right. | |||
'(custom-enabled-themes (quote (wombat))) | |||
'(inhibit-startup-screen t) | |||
'(make-backup-files nil) | |||
'(menu-bar-mode nil) | |||
'(scroll-bar-mode nil) | |||
'(tool-bar-mode nil) | |||
'(menu-bar-mode nil) | |||
'(tooltip-mode nil)) | |||
(add-to-list 'load-path "~/.emacs.d/") | |||
@@ -14,19 +20,33 @@ | |||
(require 'multiple-cursors) | |||
(global-set-key (kbd "C-c d") 'mc/edit-lines) | |||
(global-set-key (kbd "C-c x") 'mc/mark-all-like-this) | |||
(global-set-key (kbd "C-c n") 'mc/mark-next-like-this) | |||
(global-set-key (kbd "C-c p") 'mc/mark-previous-like-this) | |||
(global-set-key (kbd "M-n") 'mc/mark-next-like-this) | |||
(global-set-key (kbd "M-p") 'mc/mark-previous-like-this) | |||
(add-to-list 'load-path "go-mode-load.el" t) | |||
(require 'go-mode-load) | |||
(require 'autopair) | |||
(autopair-global-mode) | |||
;; keybind yo | |||
(global-set-key (kbd "C-c {") 'enlarge-window-horizontally) | |||
(global-set-key (kbd "C-c }") 'shrink-window-horizontally) | |||
(global-set-key (kbd "M-[") 'enlarge-window-horizontally) | |||
(global-set-key (kbd "M-]") 'shrink-window-horizontally) | |||
;; make whitespace-mode use just basic coloring | |||
(setq whitespace-style (quote (spaces tabs space-mark tab-mark))) | |||
(global-set-key (kbd "C-c w") 'whitespace-mode) | |||
(setq-default c-basic-offset 8 | |||
tab-width 8 | |||
indent-tabs-mode t) | |||
(global-whitespace-mode 1) | |||
(custom-set-faces | |||
;; custom-set-faces was added by Custom. | |||
;; If you edit it by hand, you could mess it up, so be careful. | |||
;; Your init file should contain only one such instance. | |||
;; If there is more than one, they won't work right. | |||
'(default ((t (:family "Terminus" :foundry "xos4" :slant normal :weight normal :height 90 :width normal))))) |
@@ -3,6 +3,12 @@ | |||
(setq mc/cmds-to-run-for-all | |||
'( | |||
autopair-insert-opening | |||
autopair-newline | |||
autopair-skip-close-maybe | |||
c-electric-delete-forward | |||
c-indent-line-or-region | |||
indent-for-tab-command | |||
kill-region | |||
undefined | |||
)) |
@@ -0,0 +1,2 @@ | |||
/home/paul/.i3/config | |||
/home/paul/.i3/#config# |
@@ -0,0 +1,4 @@ | |||
/home/paul/.i3/config | |||
/home/paul/.i3/#config# | |||
/home/paul/.i3status.conf | |||
/home/paul/#.i3status.conf# |
@@ -0,0 +1,2 @@ | |||
/home/paul/Desktop/c-nake/nake.c | |||
/home/paul/Desktop/c-nake/#nake.c# |
@@ -0,0 +1,2 @@ | |||
/home/paul/desktop/pnbp/src/build.py | |||
/home/paul/desktop/pnbp/src/#build.py# |
@@ -0,0 +1,2 @@ | |||
/home/paul/.i3/config | |||
/home/paul/.i3/#config# |
@@ -0,0 +1,2 @@ | |||
/home/paul/Desktop/c-nake/nake.c | |||
/home/paul/Desktop/c-nake/#nake.c# |
@@ -0,0 +1,96 @@ | |||
;;; go-mode-load.el --- automatically extracted autoloads | |||
;;; Commentary: | |||
;; To install go-mode, add the following lines to your .emacs file: | |||
;; (add-to-list 'load-path "PATH CONTAINING go-mode-load.el" t) | |||
;; (require 'go-mode-load) | |||
;; | |||
;; After this, go-mode will be used for files ending in '.go'. | |||
;; | |||
;; To compile go-mode from the command line, run the following | |||
;; emacs -batch -f batch-byte-compile go-mode.el | |||
;; | |||
;; See go-mode.el for documentation. | |||
;; | |||
;; To update this file, evaluate the following form | |||
;; (let ((generated-autoload-file buffer-file-name)) (update-file-autoloads "go-mode.el")) | |||
;;; Code: | |||
;;;### (autoloads (go-download-play godoc gofmt-before-save go-mode) | |||
;;;;;; "go-mode" "go-mode.el" (20767 50749)) | |||
;;; Generated autoloads from go-mode.el | |||
(autoload 'go-mode "go-mode" "\ | |||
Major mode for editing Go source text. | |||
This mode provides (not just) basic editing capabilities for | |||
working with Go code. It offers almost complete syntax | |||
highlighting, indentation that is almost identical to gofmt, | |||
proper parsing of the buffer content to allow features such as | |||
navigation by function, manipulation of comments or detection of | |||
strings. | |||
Additionally to these core features, it offers various features to | |||
help with writing Go code. You can directly run buffer content | |||
through gofmt, read godoc documentation from within Emacs, modify | |||
and clean up the list of package imports or interact with the | |||
Playground (uploading and downloading pastes). | |||
The following extra functions are defined: | |||
- `gofmt' | |||
- `godoc' | |||
- `go-import-add' | |||
- `go-remove-unused-imports' | |||
- `go-goto-imports' | |||
- `go-play-buffer' and `go-play-region' | |||
- `go-download-play' | |||
If you want to automatically run `gofmt' before saving a file, | |||
add the following hook to your emacs configuration: | |||
\(add-hook 'before-save-hook 'gofmt-before-save) | |||
If you're looking for even more integration with Go, namely | |||
on-the-fly syntax checking, auto-completion and snippets, it is | |||
recommended to look at goflymake | |||
\(https://github.com/dougm/goflymake), gocode | |||
\(https://github.com/nsf/gocode) and yasnippet-go | |||
\(https://github.com/dominikh/yasnippet-go) | |||
\(fn)" t nil) | |||
(add-to-list 'auto-mode-alist (cons "\\.go\\'" 'go-mode)) | |||
(autoload 'gofmt-before-save "go-mode" "\ | |||
Add this to .emacs to run gofmt on the current buffer when saving: | |||
(add-hook 'before-save-hook 'gofmt-before-save). | |||
Note that this will cause go-mode to get loaded the first time | |||
you save any file, kind of defeating the point of autoloading. | |||
\(fn)" t nil) | |||
(autoload 'godoc "go-mode" "\ | |||
Show go documentation for a query, much like M-x man. | |||
\(fn QUERY)" t nil) | |||
(autoload 'go-download-play "go-mode" "\ | |||
Downloads a paste from the playground and inserts it in a Go | |||
buffer. Tries to look for a URL at point. | |||
\(fn URL)" t nil) | |||
;;;*** | |||
(provide 'go-mode-load) | |||
;; Local Variables: | |||
;; version-control: never | |||
;; no-byte-compile: t | |||
;; no-update-autoloads: t | |||
;; coding: utf-8 | |||
;; End: | |||
;;; go-mode-load.el ends here |
@@ -0,0 +1,19 @@ | |||
background no | |||
out_to_console yes | |||
out_to_x no | |||
update_interval 1 | |||
total_run_times 0 | |||
short_units yes | |||
pad_percents 3 | |||
override_utf8_locale yes | |||
TEXT | |||
,[\ | |||
{"full_text": " ▲ [${upspeed}] ", "color":"\#ff0000"},\ | |||
{"full_text": " ▼ [${downspeed}] ", "color":"\#00fff2"},\ | |||
{"full_text": " || [$membar] ", "color":"\#B58900"},\ | |||
{"full_text": " ■ [$cpubar] ", "color":"\#00A9B5"},\ | |||
{"full_text": " ≈ [$processes] ","color":"\#33CC99"},\ | |||
{"full_text": " [${time %I:%m}] ","color": "\#2fdc57"}\ | |||
] |
@@ -4,34 +4,42 @@ | |||
# Should you change your keyboard layout somewhen, delete | |||
# this file and re-run i3-config-wizard(1). | |||
# | |||
# i3 config file (v4) | |||
# | |||
# Please see http://i3wm.org/docs/userguide.html for a complete reference! | |||
set $mod Mod4 | |||
exec gnome-settings-daemon | |||
exec ~/.dropbox-dist/dropboxd | |||
exec xfsettingsd | |||
exec compton --backend glx --vsync opengl-swc --paint-on-overlay | |||
exec feh --bg-tile ~/pictures/dimension.png | |||
exec feh --bg-scale ~/pictures/313131.png | |||
# hide dem borders | |||
hide_edge_borders both | |||
# hide dem titles | |||
for_window [class="^.*"] border pixel 0 | |||
for_window [class="^.*"] border pixel 1 | |||
for_window [title="^float$"] floating enable | |||
for_window [title="^float$"] border pixel 3 | |||
# class border backgr. text indicator | |||
client.focused #303031 #303031 #B7B7B7 #31392F | |||
client.focused_inactive #303031 #303031 #B7B7B7 #676767 | |||
client.unfocused #303031 #303031 #404041 #515151 | |||
client.urgent #471A19 #521414 #ffffff #900000 | |||
#colors | |||
set $background #EEEEEE | |||
set $back-inact #313131 | |||
set $back-urgen #FFEEEE | |||
set $border #EEEEEE | |||
set $bor-in #313131 | |||
set $bor-ur #313131 | |||
set $text #313131 | |||
set $t-in #EEEEEE | |||
set $t-ur #B00011 | |||
# class border background text indicator | |||
client.focused $border $background $text #31392F | |||
client.focused_inactive $bor-in $back-inact $t-in #676767 | |||
client.unfocused $bor-in $back-inact $t-in #515151 | |||
client.urgent $bor-ur $back-urgen $t-ur #900000 | |||
# font for window titles. ISO 10646 = Unicode | |||
#apt-get install xfonts-terminus | |||
@@ -52,6 +60,8 @@ bindsym $mod+d exec dmenu_run | |||
bindsym $mod+shift+d exec i3-dmenu-desktop | |||
bindsym $mod+g exec slingshot-launcher | |||
# change focus | |||
bindsym $mod+b focus left | |||
bindsym $mod+n focus down | |||
@@ -83,7 +93,7 @@ bindsym $mod+h split h | |||
bindsym $mod+v split v | |||
# enter fullscreen mode for the focused container | |||
bindsym $mod+Shfit+f fullscreen | |||
bindsym $mod+Shfit+z fullscreen | |||
# change container layout (stacked, tabbed, default) | |||
bindsym $mod+s layout stacking | |||
@@ -176,15 +186,15 @@ bindsym $mod+r mode "resize" | |||
# Start i3bar to display a workspace bar (plus the system information i3status | |||
# finds out, if available) | |||
bar { | |||
output DFP2 | |||
status_command i3status | |||
status_command conky-i3bar | |||
tray_output none | |||
colors { | |||
background #131313 | |||
statusline #B7B7B7 | |||
focused_workspace #303031 #303031 #D78A0C | |||
active_workspace #303031 #303031 #9A9A9A | |||
inactive_workspace #303031 #303031 #9A9A9A | |||
urgent_workspace #303031 #303031 #FF0000 | |||
background $back-inact | |||
statusline $text | |||
#border #back #text | |||
focused_workspace $border $background $text | |||
active_workspace $border $background $text | |||
inactive_workspace $bor-in $back-inact $t-in | |||
urgent_workspace $bor-ur $back-urgen $t-ur | |||
} | |||
} |
@@ -0,0 +1,13 @@ | |||
#!/bin/sh | |||
# Send the header so that i3bar knows we want to use JSON: | |||
echo '{"version":1}' | |||
# Begin the endless array. | |||
echo '[' | |||
# We send an empty first array of blocks to make the loop simpler: | |||
echo '[]' | |||
# Now send blocks with information forever: | |||
exec conky -c $HOME/.conkyrc |