From bb16f1b86c32d13df7be7245a871c4f191b7e5d4 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 11 Jan 2017 19:16:39 +0100 Subject: Stowify repo --- system/.Xresources | 106 ++++++++++++++++++++++++++++++++++ system/.bash_aliases | 10 ++++ system/.bash_logout | 7 +++ system/.bashrc | 134 +++++++++++++++++++++++++++++++++++++++++++ system/.inputrc | 9 +++ system/.profile | 21 +++++++ system/.xinitrc | 4 ++ system/.xsessionrc | 29 ++++++++++ system/Xresources.symlink | 106 ---------------------------------- system/bash_aliases.symlink | 10 ---- system/bash_logout.symlink | 7 --- system/bashrc.symlink | 134 ------------------------------------------- system/i3status.conf.symlink | 53 ----------------- system/inputrc.symlink | 9 --- system/profile.symlink | 21 ------- system/xinitrc.symlink | 4 -- system/xsessionrc.symlink | 29 ---------- 17 files changed, 320 insertions(+), 373 deletions(-) create mode 100644 system/.Xresources create mode 100644 system/.bash_aliases create mode 100644 system/.bash_logout create mode 100644 system/.bashrc create mode 100644 system/.inputrc create mode 100644 system/.profile create mode 100644 system/.xinitrc create mode 100644 system/.xsessionrc delete mode 100644 system/Xresources.symlink delete mode 100644 system/bash_aliases.symlink delete mode 100644 system/bash_logout.symlink delete mode 100644 system/bashrc.symlink delete mode 100644 system/i3status.conf.symlink delete mode 100644 system/inputrc.symlink delete mode 100644 system/profile.symlink delete mode 100644 system/xinitrc.symlink delete mode 100644 system/xsessionrc.symlink (limited to 'system') diff --git a/system/.Xresources b/system/.Xresources new file mode 100644 index 0000000..801f715 --- /dev/null +++ b/system/.Xresources @@ -0,0 +1,106 @@ +XTerm*faceName: DejaVu Sans Mono +XTerm*faceSize: 9 +XTerm*selectToClipboard: true +XTerm*dynamicColors: on +UXTerm*faceName: DejaVu Sans Mono +UXTerm*faceSize: 9 +UXTerm*selectToClipboard: true +UXTerm*dynamicColors: on + +! Solarized color scheme for the X Window System +! +! http://ethanschoonover.com/solarized + +! Common + +#define S_yellow #b58900 +#define S_orange #cb4b16 +#define S_red #dc322f +#define S_magenta #d33682 +#define S_violet #6c71c4 +#define S_blue #268bd2 +#define S_cyan #2aa198 +#define S_green #859900 + + +! Dark + +#define S_base03 #002b36 +#define S_base02 #073642 +#define S_base01 #586e75 +#define S_base00 #657b83 +#define S_base0 #839496 +#define S_base1 #93a1a1 +#define S_base2 #eee8d5 +#define S_base3 #fdf6e3 + + +! Light + +! #define S_base03 #fdf6e3 +! #define S_base02 #eee8d5 +! #define S_base01 #93a1a1 +! #define S_base00 #839496 +! #define S_base0 #657b83 +! #define S_base1 #586e75 +! #define S_base2 #073642 +! #define S_base3 #002b36 + + +! To only apply colors to your terminal, for example, prefix +! the color assignment statement with its name. Example: +! +! URxvt*background: S_base03 + +UXTerm*background: S_base03 +UXTerm*foreground: S_base0 +UXTerm*fading: 40 +UXTerm*fadeColor: S_base03 +UXTerm*cursorColor: S_base1 +UXTerm*pointerColorBackground: S_base01 +UXTerm*pointerColorForeground: S_base1 + +UXTerm*color0: S_base02 +UXTerm*color1: S_red +UXTerm*color2: S_green +UXTerm*color3: S_yellow +UXTerm*color4: S_blue +UXTerm*color5: S_magenta +UXTerm*color6: S_cyan +UXTerm*color7: S_base2 +UXTerm*color9: S_orange +UXTerm*color8: S_base03 +UXTerm*color10: S_base01 +UXTerm*color11: S_base00 +UXTerm*color12: S_base0 +UXTerm*color13: S_violet +UXTerm*color14: S_base1 +UXTerm*color15: S_base3 + +XTerm*background: S_base03 +XTerm*foreground: S_base0 +XTerm*fading: 40 +XTerm*fadeColor: S_base03 +XTerm*cursorColor: S_base1 +XTerm*pointerColorBackground: S_base01 +XTerm*pointerColorForeground: S_base1 + +XTerm*color0: S_base02 +XTerm*color1: S_red +XTerm*color2: S_green +XTerm*color3: S_yellow +XTerm*color4: S_blue +XTerm*color5: S_magenta +XTerm*color6: S_cyan +XTerm*color7: S_base2 +XTerm*color9: S_orange +XTerm*color8: S_base03 +XTerm*color10: S_base01 +XTerm*color11: S_base00 +XTerm*color12: S_base0 +XTerm*color13: S_violet +XTerm*color14: S_base1 +XTerm*color15: S_base3 + +Xcursor.size: 16 + diff --git a/system/.bash_aliases b/system/.bash_aliases new file mode 100644 index 0000000..db48f37 --- /dev/null +++ b/system/.bash_aliases @@ -0,0 +1,10 @@ +alias batstat='upower -i /org/freedesktop/UPower/devices/DisplayDevice' +alias iclean="iclean -nr -nt" +alias :q="exit" +alias grade="cd ./\$(grep -l 'Needs Grading' s*/s*.txt | sort -R | cut -d'/' -f1 | head -1) && for f in *.pdf; do evince \"\$f\" & PID=\$!; done; vim -c \"set tw=79 spell spelllang=nl\" s*.txt && kill \"\$PID\" && cd .." +alias synctop="watch -n1 grep -e Dirty: -e Writeback: /proc/meminfo" +alias iclean="docker run --rm -it --tmpfs /tmp:exec,size=1024k -v ~/.iclean_history:/home/.iclean_history -v ~/.iclean_template:/home/.iclean_template camilstaps/iclean" +alias gcc-6.2='docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app gcc:6.2 gcc' +alias gcc-5.4='docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app gcc:5.4 gcc' +alias gcc-4.9='docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app gcc:4.9 gcc' +alias ghci='/usr/bin/ghci -fhistory-size=1000' diff --git a/system/.bash_logout b/system/.bash_logout new file mode 100644 index 0000000..de4f5f7 --- /dev/null +++ b/system/.bash_logout @@ -0,0 +1,7 @@ +# ~/.bash_logout: executed by bash(1) when login shell exits. + +# when leaving the console clear the screen to increase privacy + +if [ "$SHLVL" = 1 ]; then + [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q +fi diff --git a/system/.bashrc b/system/.bashrc new file mode 100644 index 0000000..6ec738e --- /dev/null +++ b/system/.bashrc @@ -0,0 +1,134 @@ +# ~/.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 +case $- in + *i*) ;; + *) return;; +esac + +# don't put duplicate lines or lines starting with space in the history. +# See bash(1) for more options +HISTCONTROL=ignoreboth + +# 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 + +# If set, the pattern "**" used in a pathname expansion context will +# match all files and zero or more directories and subdirectories. +#shopt -s globstar + +# 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 + +# set a fancy prompt (non-color, unless we know we "want" color) +case "$TERM" in + xterm-color) color_prompt=yes;; +esac + +# uncomment for a colored prompt, if the terminal has the capability; turned +# off by default to not distract the user: the focus in a terminal window +# should be on the output of commands, not on the prompt +#force_color_prompt=yes + +if [ -n "$force_color_prompt" ]; then + if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then + # We have color support; assume it's compliant with Ecma-48 + # (ISO/IEC-6429). (Lack of such support is extremely rare, and such + # a case would tend to support setf rather than setaf.) + color_prompt=yes + else + color_prompt= + fi +fi + +if [ "$color_prompt" = yes ]; then + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' +else + PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' +fi +unset color_prompt force_color_prompt + +# If this is an xterm set the title to user@host:dir +case "$TERM" in +xterm*|rxvt*) + PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" + ;; +*) + ;; +esac + +# 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 --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 + +# colored GCC warnings and errors +#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' + +# some more ls aliases +#alias ll='ls -l' +#alias la='ls -A' +#alias l='ls -CF' + +# 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 ! shopt -oq posix; then + if [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion + elif [ -f /etc/bash_completion ]; then + . /etc/bash_completion + fi +fi + +[ -f ~/.fzf.bash ] && source ~/.fzf.bash + +# Path abbreviations like Vim, see http://unix.stackexchange.com/a/26885/37050 +PROMPT_COMMAND='pwd2=$(if [ "$PWD" != "$HOME" ]; then sed "s:\([^/]\{1,2\}\)[^/]*/:\1/:g" <<<$PWD; else echo "~";fi)' +export PS1='\u@\h:$pwd2\$ ' + +GPG_TTY=$(tty) +export GPG_TTY + + +PATH="/home/camil/perl5/bin${PATH+:}${PATH}"; export PATH; +PERL5LIB="/home/camil/perl5/lib/perl5${PERL5LIB+:}${PERL5LIB}"; export PERL5LIB; +PERL_LOCAL_LIB_ROOT="/home/camil/perl5${PERL_LOCAL_LIB_ROOT+:}${PERL_LOCAL_LIB_ROOT}"; export PERL_LOCAL_LIB_ROOT; +PERL_MB_OPT="--install_base \"/home/camil/perl5\""; export PERL_MB_OPT; +PERL_MM_OPT="INSTALL_BASE=/home/camil/perl5"; export PERL_MM_OPT; + +source ~/.profile + +verse 2>/dev/null && echo + diff --git a/system/.inputrc b/system/.inputrc new file mode 100644 index 0000000..6449edb --- /dev/null +++ b/system/.inputrc @@ -0,0 +1,9 @@ +set completion-ignore-case on + +"\e[1;5C": forward-word +"\e[1;5D": backward-word + +"\e[A": history-search-backward +"\e[B": history-search-forward + +"\e[Z": menu-complete diff --git a/system/.profile b/system/.profile new file mode 100644 index 0000000..5ef7aaa --- /dev/null +++ b/system/.profile @@ -0,0 +1,21 @@ +export CLEAN_HOME=/opt/clean +export CLEANLIB=$CLEAN_HOME/exe +export PATH="$CLEAN_HOME/bin:$CLEAN_LIB:$HOME/bin.local:$HOME/bin:$HOME/.cabal/bin:$HOME/.composer/vendor/bin:./bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH:/usr/local/texlive/2016/bin/x86_64-linux:/opt/microchip/xc16/v1.26/bin:/opt/microchip/xc8/v1.37/bin" +export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH" +export SUDO_ASKPASS=~/bin/askpass +export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=gasp -Dsun.java2d.opengl=true' +export HISTTIMEFORMAT="%Y-%m-%d %T " + +cpmq() { + res="$(cpm $@)" + echo "$res" | grep -i 'Error' >/dev/null + if [ $? -eq 0 ]; then + echo "$res" | grep -i '^\|Error\|Warning' + return -1 + else + echo "$res" | grep --color=never -i 'Finished making.' + return 0 + fi +} + +shopt -s globstar diff --git a/system/.xinitrc b/system/.xinitrc new file mode 100644 index 0000000..e0eddfc --- /dev/null +++ b/system/.xinitrc @@ -0,0 +1,4 @@ +setxkbmap -layout us -variant intl + +exec xmonad + diff --git a/system/.xsessionrc b/system/.xsessionrc new file mode 100644 index 0000000..5b20582 --- /dev/null +++ b/system/.xsessionrc @@ -0,0 +1,29 @@ +# Dropbox +dropbox start & + +# GNOME to provide default programs +export DE='gnome' + +# GNOME settings daemon +nohup gnome-settings-daemon -r & >/dev/null + +# Background image +setbg & + +# GPG agent +envfile="$HOME/.gnupg/gpg-agent.env" +if [[ -e "$envfile" ]] && kill -0 $(grep GPG_AGENT_INFO "$envfile" | cut -d: -f 2) 2>/dev/null; then + eval "$(cat "$envfile")" +else + eval "$(gpg-agent --daemon --enable-ssh-support --write-env-file "$envfile")" +fi +export GPG_AGENT_INFO # the env file does not contain the export statement +export SSH_AUTH_SOCK # enable gpg-agent for ssh + +xrdb ~/.Xresources + +setxkbmap "us(intl),us(dvorak-intl),ru(phonetic),il(biblicalSIL)" -option grp:shift_caps_toggle + +# WM +exec /etc/alternatives/x-window-manager + diff --git a/system/Xresources.symlink b/system/Xresources.symlink deleted file mode 100644 index 801f715..0000000 --- a/system/Xresources.symlink +++ /dev/null @@ -1,106 +0,0 @@ -XTerm*faceName: DejaVu Sans Mono -XTerm*faceSize: 9 -XTerm*selectToClipboard: true -XTerm*dynamicColors: on -UXTerm*faceName: DejaVu Sans Mono -UXTerm*faceSize: 9 -UXTerm*selectToClipboard: true -UXTerm*dynamicColors: on - -! Solarized color scheme for the X Window System -! -! http://ethanschoonover.com/solarized - -! Common - -#define S_yellow #b58900 -#define S_orange #cb4b16 -#define S_red #dc322f -#define S_magenta #d33682 -#define S_violet #6c71c4 -#define S_blue #268bd2 -#define S_cyan #2aa198 -#define S_green #859900 - - -! Dark - -#define S_base03 #002b36 -#define S_base02 #073642 -#define S_base01 #586e75 -#define S_base00 #657b83 -#define S_base0 #839496 -#define S_base1 #93a1a1 -#define S_base2 #eee8d5 -#define S_base3 #fdf6e3 - - -! Light - -! #define S_base03 #fdf6e3 -! #define S_base02 #eee8d5 -! #define S_base01 #93a1a1 -! #define S_base00 #839496 -! #define S_base0 #657b83 -! #define S_base1 #586e75 -! #define S_base2 #073642 -! #define S_base3 #002b36 - - -! To only apply colors to your terminal, for example, prefix -! the color assignment statement with its name. Example: -! -! URxvt*background: S_base03 - -UXTerm*background: S_base03 -UXTerm*foreground: S_base0 -UXTerm*fading: 40 -UXTerm*fadeColor: S_base03 -UXTerm*cursorColor: S_base1 -UXTerm*pointerColorBackground: S_base01 -UXTerm*pointerColorForeground: S_base1 - -UXTerm*color0: S_base02 -UXTerm*color1: S_red -UXTerm*color2: S_green -UXTerm*color3: S_yellow -UXTerm*color4: S_blue -UXTerm*color5: S_magenta -UXTerm*color6: S_cyan -UXTerm*color7: S_base2 -UXTerm*color9: S_orange -UXTerm*color8: S_base03 -UXTerm*color10: S_base01 -UXTerm*color11: S_base00 -UXTerm*color12: S_base0 -UXTerm*color13: S_violet -UXTerm*color14: S_base1 -UXTerm*color15: S_base3 - -XTerm*background: S_base03 -XTerm*foreground: S_base0 -XTerm*fading: 40 -XTerm*fadeColor: S_base03 -XTerm*cursorColor: S_base1 -XTerm*pointerColorBackground: S_base01 -XTerm*pointerColorForeground: S_base1 - -XTerm*color0: S_base02 -XTerm*color1: S_red -XTerm*color2: S_green -XTerm*color3: S_yellow -XTerm*color4: S_blue -XTerm*color5: S_magenta -XTerm*color6: S_cyan -XTerm*color7: S_base2 -XTerm*color9: S_orange -XTerm*color8: S_base03 -XTerm*color10: S_base01 -XTerm*color11: S_base00 -XTerm*color12: S_base0 -XTerm*color13: S_violet -XTerm*color14: S_base1 -XTerm*color15: S_base3 - -Xcursor.size: 16 - diff --git a/system/bash_aliases.symlink b/system/bash_aliases.symlink deleted file mode 100644 index db48f37..0000000 --- a/system/bash_aliases.symlink +++ /dev/null @@ -1,10 +0,0 @@ -alias batstat='upower -i /org/freedesktop/UPower/devices/DisplayDevice' -alias iclean="iclean -nr -nt" -alias :q="exit" -alias grade="cd ./\$(grep -l 'Needs Grading' s*/s*.txt | sort -R | cut -d'/' -f1 | head -1) && for f in *.pdf; do evince \"\$f\" & PID=\$!; done; vim -c \"set tw=79 spell spelllang=nl\" s*.txt && kill \"\$PID\" && cd .." -alias synctop="watch -n1 grep -e Dirty: -e Writeback: /proc/meminfo" -alias iclean="docker run --rm -it --tmpfs /tmp:exec,size=1024k -v ~/.iclean_history:/home/.iclean_history -v ~/.iclean_template:/home/.iclean_template camilstaps/iclean" -alias gcc-6.2='docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app gcc:6.2 gcc' -alias gcc-5.4='docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app gcc:5.4 gcc' -alias gcc-4.9='docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app gcc:4.9 gcc' -alias ghci='/usr/bin/ghci -fhistory-size=1000' diff --git a/system/bash_logout.symlink b/system/bash_logout.symlink deleted file mode 100644 index de4f5f7..0000000 --- a/system/bash_logout.symlink +++ /dev/null @@ -1,7 +0,0 @@ -# ~/.bash_logout: executed by bash(1) when login shell exits. - -# when leaving the console clear the screen to increase privacy - -if [ "$SHLVL" = 1 ]; then - [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q -fi diff --git a/system/bashrc.symlink b/system/bashrc.symlink deleted file mode 100644 index 6ec738e..0000000 --- a/system/bashrc.symlink +++ /dev/null @@ -1,134 +0,0 @@ -# ~/.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 -case $- in - *i*) ;; - *) return;; -esac - -# don't put duplicate lines or lines starting with space in the history. -# See bash(1) for more options -HISTCONTROL=ignoreboth - -# 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 - -# If set, the pattern "**" used in a pathname expansion context will -# match all files and zero or more directories and subdirectories. -#shopt -s globstar - -# 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 - -# set a fancy prompt (non-color, unless we know we "want" color) -case "$TERM" in - xterm-color) color_prompt=yes;; -esac - -# uncomment for a colored prompt, if the terminal has the capability; turned -# off by default to not distract the user: the focus in a terminal window -# should be on the output of commands, not on the prompt -#force_color_prompt=yes - -if [ -n "$force_color_prompt" ]; then - if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then - # We have color support; assume it's compliant with Ecma-48 - # (ISO/IEC-6429). (Lack of such support is extremely rare, and such - # a case would tend to support setf rather than setaf.) - color_prompt=yes - else - color_prompt= - fi -fi - -if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' -else - PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' -fi -unset color_prompt force_color_prompt - -# If this is an xterm set the title to user@host:dir -case "$TERM" in -xterm*|rxvt*) - PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" - ;; -*) - ;; -esac - -# 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 --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 - -# colored GCC warnings and errors -#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' - -# some more ls aliases -#alias ll='ls -l' -#alias la='ls -A' -#alias l='ls -CF' - -# 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 ! shopt -oq posix; then - if [ -f /usr/share/bash-completion/bash_completion ]; then - . /usr/share/bash-completion/bash_completion - elif [ -f /etc/bash_completion ]; then - . /etc/bash_completion - fi -fi - -[ -f ~/.fzf.bash ] && source ~/.fzf.bash - -# Path abbreviations like Vim, see http://unix.stackexchange.com/a/26885/37050 -PROMPT_COMMAND='pwd2=$(if [ "$PWD" != "$HOME" ]; then sed "s:\([^/]\{1,2\}\)[^/]*/:\1/:g" <<<$PWD; else echo "~";fi)' -export PS1='\u@\h:$pwd2\$ ' - -GPG_TTY=$(tty) -export GPG_TTY - - -PATH="/home/camil/perl5/bin${PATH+:}${PATH}"; export PATH; -PERL5LIB="/home/camil/perl5/lib/perl5${PERL5LIB+:}${PERL5LIB}"; export PERL5LIB; -PERL_LOCAL_LIB_ROOT="/home/camil/perl5${PERL_LOCAL_LIB_ROOT+:}${PERL_LOCAL_LIB_ROOT}"; export PERL_LOCAL_LIB_ROOT; -PERL_MB_OPT="--install_base \"/home/camil/perl5\""; export PERL_MB_OPT; -PERL_MM_OPT="INSTALL_BASE=/home/camil/perl5"; export PERL_MM_OPT; - -source ~/.profile - -verse 2>/dev/null && echo - diff --git a/system/i3status.conf.symlink b/system/i3status.conf.symlink deleted file mode 100644 index 67710fb..0000000 --- a/system/i3status.conf.symlink +++ /dev/null @@ -1,53 +0,0 @@ -general { - colors = true - interval = 5 - output_format = "i3bar" -} - -order += "cmd nowplaying" -order += "volume master" -order += "wireless wlan0" -order += "battery 0" -order += "cpu_usage" -order += "load" -order += "tztime local" - -volume master { - format = "♪: %volume" - format_muted = "♪: muted (%volume)" - device = "default" - mixer = "Master" - mixer_idx = 0 -} - -cmd nowplaying { - cmd = "cmus-remote -Q | grep '^tag \\(artist\\|album\\|title\\) ' | sort | cut -d' ' -f 3- | tr '\\n' '\t' | awk 'BEGIN { FS = \"\\t\" } ; { print \"♪: \" $3 \" (\" $1 \", \" $2 \")\" }'; echo -n ' '" -} - -wireless wlan0 { - format_up = "%essid: %quality, %bitrate (%ip)" - format_down = "wlan0 down" -} - -battery 0 { - format = "%status %percentage %remaining %consumption" - hide_seconds = true - status_chr = "⚇" - status_bat = "⚡" - status_full = "☻" - low_threshold = 30 - threshold_type = "percentage" -} - -cpu_usage { - format = "⚙️ %usage" -} - -load { - max_threshold = "0.7" -} - -tztime local { - format = "%a %b %-d, %I:%M %p" -} - diff --git a/system/inputrc.symlink b/system/inputrc.symlink deleted file mode 100644 index 6449edb..0000000 --- a/system/inputrc.symlink +++ /dev/null @@ -1,9 +0,0 @@ -set completion-ignore-case on - -"\e[1;5C": forward-word -"\e[1;5D": backward-word - -"\e[A": history-search-backward -"\e[B": history-search-forward - -"\e[Z": menu-complete diff --git a/system/profile.symlink b/system/profile.symlink deleted file mode 100644 index 5ef7aaa..0000000 --- a/system/profile.symlink +++ /dev/null @@ -1,21 +0,0 @@ -export CLEAN_HOME=/opt/clean -export CLEANLIB=$CLEAN_HOME/exe -export PATH="$CLEAN_HOME/bin:$CLEAN_LIB:$HOME/bin.local:$HOME/bin:$HOME/.cabal/bin:$HOME/.composer/vendor/bin:./bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH:/usr/local/texlive/2016/bin/x86_64-linux:/opt/microchip/xc16/v1.26/bin:/opt/microchip/xc8/v1.37/bin" -export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH" -export SUDO_ASKPASS=~/bin/askpass -export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=gasp -Dsun.java2d.opengl=true' -export HISTTIMEFORMAT="%Y-%m-%d %T " - -cpmq() { - res="$(cpm $@)" - echo "$res" | grep -i 'Error' >/dev/null - if [ $? -eq 0 ]; then - echo "$res" | grep -i '^\|Error\|Warning' - return -1 - else - echo "$res" | grep --color=never -i 'Finished making.' - return 0 - fi -} - -shopt -s globstar diff --git a/system/xinitrc.symlink b/system/xinitrc.symlink deleted file mode 100644 index e0eddfc..0000000 --- a/system/xinitrc.symlink +++ /dev/null @@ -1,4 +0,0 @@ -setxkbmap -layout us -variant intl - -exec xmonad - diff --git a/system/xsessionrc.symlink b/system/xsessionrc.symlink deleted file mode 100644 index 5b20582..0000000 --- a/system/xsessionrc.symlink +++ /dev/null @@ -1,29 +0,0 @@ -# Dropbox -dropbox start & - -# GNOME to provide default programs -export DE='gnome' - -# GNOME settings daemon -nohup gnome-settings-daemon -r & >/dev/null - -# Background image -setbg & - -# GPG agent -envfile="$HOME/.gnupg/gpg-agent.env" -if [[ -e "$envfile" ]] && kill -0 $(grep GPG_AGENT_INFO "$envfile" | cut -d: -f 2) 2>/dev/null; then - eval "$(cat "$envfile")" -else - eval "$(gpg-agent --daemon --enable-ssh-support --write-env-file "$envfile")" -fi -export GPG_AGENT_INFO # the env file does not contain the export statement -export SSH_AUTH_SOCK # enable gpg-agent for ssh - -xrdb ~/.Xresources - -setxkbmap "us(intl),us(dvorak-intl),ru(phonetic),il(biblicalSIL)" -option grp:shift_caps_toggle - -# WM -exec /etc/alternatives/x-window-manager - -- cgit v1.2.3