├── .gitignore ├── README.md ├── deploy-mloskot.sh ├── etc └── README └── home └── mloskot ├── .Xresources.gaja ├── .Xresources.mloskot ├── .Xresources.solarized ├── .aliases ├── .bash_logout ├── .bash_profile ├── .bashrc ├── .bashrc.brzuchol ├── .config ├── Terminal │ ├── terminalrc │ ├── terminalrc.mloskot │ ├── terminalrc.mloskot.solarized │ ├── terminalrc.solarized.dark │ └── terminalrc.solarized.light ├── gtk-3.0 │ └── settings.ini ├── i3.browar │ └── config ├── i3.dog │ └── config ├── i3.gaja │ └── config ├── i3.vb │ └── config ├── i3status.browar │ └── config ├── i3status.dog │ ├── config │ └── config.printmem ├── i3status.gaja │ └── config ├── i3status.vb │ └── config ├── i3status │ ├── config │ └── config.printmem ├── openbox │ ├── autostart │ ├── menu.xml │ └── rc.xml ├── pacaur │ └── config ├── surfraw │ └── conf ├── tint2 │ ├── tint2rc │ └── tint2rc.original ├── user-dirs.dirs ├── user-dirs.locale ├── volumeicon.vb │ └── volumeicon └── volumeicon │ └── volumeicon ├── .conkyrc ├── .fehbg ├── .gemrc ├── .gitconfig ├── .gitignore_global ├── .gtkrc-2.0 ├── .kde4 └── share │ └── config │ └── krusaderrc ├── .mcabber └── mcabberrc ├── .packer.conf ├── .profile ├── .ssh └── config ├── .vim ├── .VimballRecord ├── after │ └── ftplugin │ │ ├── cmake.vim │ │ └── m4.vim ├── autoload │ ├── cmakecomplete.vim │ ├── cmakecomplete.vim.orig │ ├── fuf.vim │ ├── fuf │ │ ├── bookmarkdir.vim │ │ ├── bookmarkfile.vim │ │ ├── buffer.vim │ │ ├── buffertag.vim │ │ ├── callbackfile.vim │ │ ├── callbackitem.vim │ │ ├── changelist.vim │ │ ├── coveragefile.vim │ │ ├── dir.vim │ │ ├── file.vim │ │ ├── givencmd.vim │ │ ├── givendir.vim │ │ ├── givenfile.vim │ │ ├── help.vim │ │ ├── jumplist.vim │ │ ├── line.vim │ │ ├── mrucmd.vim │ │ ├── mrufile.vim │ │ ├── quickfix.vim │ │ ├── tag.vim │ │ └── taggedfile.vim │ ├── pathogen.vim │ ├── rainbow_parentheses.vim │ ├── togglebg.vim │ └── vst │ │ ├── default.css │ │ ├── lightblue.css │ │ ├── myhtmlvst.vim │ │ ├── s5ui │ │ ├── blank.gif │ │ ├── framing.css │ │ ├── iepngfix.htc │ │ ├── opera.css │ │ ├── outline.css │ │ ├── pretty.css │ │ ├── print.css │ │ ├── s5-core.css │ │ ├── slides.css │ │ └── slides.js │ │ └── vst.vim ├── bin │ └── cc_args.py ├── bitmaps │ └── togglebg.png ├── colors │ ├── Monokai.vim │ ├── Sunburst.vim │ ├── adrian.vim │ ├── asu1dark.vim │ ├── bensday.vim │ ├── candycode.vim │ ├── desert.vim │ ├── herald.vim │ ├── kalt.vim │ ├── molokai.vim │ ├── moria.vim │ ├── mustang.vim │ ├── solarized.vim │ ├── vitamins.vim │ ├── vividchalk.vim │ └── wombat.vim ├── compiler │ └── fpc.vim ├── doc │ ├── ack.txt │ ├── alternate.txt │ ├── clang_complete.txt │ ├── fuf.txt │ ├── taglist.txt │ ├── vst-s5.txt │ └── vst.txt ├── filetype.vim ├── indent │ ├── html.vim │ └── javascript.vim ├── plugin │ ├── a.vim │ ├── ack.vim │ ├── clang │ │ ├── __init__.py │ │ ├── cindex.py │ │ └── enumerations.py │ ├── clang_complete.vim │ ├── cmake.vim │ ├── codepad.vim │ ├── jam.vim │ ├── libclang.py │ ├── matchit.txt │ ├── matchit.vim │ ├── rainbow_parentheses.vim │ ├── snippets │ │ ├── __init__.py │ │ ├── clang_complete.py │ │ ├── dummy.py │ │ └── ultisnips.py │ ├── tabbar.vim │ ├── taglist.vim │ └── vstplugin.vim └── syntax │ └── jquery.vim ├── .vimrc ├── .wallpapers ├── 231-blue-dotted-pattern-1920x1200-minimalistic-wallpaper.png ├── archlinux-blue-1440x900.png ├── archlinux-dark-grey-honey-comb-on-blue.jpg ├── archlinux-hamfindik.png ├── vim-shortcuts-dark.png └── vim-shortcuts-green.png ├── .wgetrc ├── .xinitrc.i3 ├── .xinitrc.openbox ├── .zsh ├── prompt.zsh └── prompts │ └── prompt_adam2mloskot_setup ├── .zshenv ├── .zshrc ├── android └── .androidrc ├── bin ├── build-qt-creator.sh ├── build-qt.sh ├── clean-qt-sidecars.sh ├── git-changelog-by-tags.sh ├── kdev.sh ├── keep.sh ├── mlacpiinfo.sh ├── mlbrzuchol.sh ├── mlcpa.sh ├── mlfan.sh ├── mlgeany.sh ├── mlmake.sh ├── mlscreenshot.sh ├── mlsfshell.sh ├── mltmux.brzuchol.sh ├── mlusbhdd.sh ├── mlvimi3.sh ├── n2utilus ├── qt-dev-env.sh ├── qtc-testing.sh ├── qtc.sh ├── s2naptic ├── show_power_save.sh ├── skype ├── tempinfo.sh ├── thinkfan_levels.sh ├── updatemirrorlist.sh └── wifi ├── boost ├── boost-build.jam ├── user-config.jam └── user-config.jam.windows ├── emacs ├── .emacs ├── .emacs.d │ ├── .gitignore │ └── custom.el ├── README ├── alex-ott-emacs-configs │ ├── .gitignore │ └── rc │ │ ├── emacs-rc-cedet.el │ │ └── emacs-rc-cmake.el ├── cedet │ └── .gitignore ├── emacs-starter-kit │ └── .gitignore └── my-ede-projects │ └── liblas.el ├── gdb └── .gdbinit ├── hg └── .hgrc ├── icc └── Monitor_8-27-2008_1.icc ├── mplayer └── .mplayer │ └── config └── signature.txt /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.log 3 | *.pyc 4 | *.swp 5 | .netrwhist 6 | log-* 7 | logfile 8 | home/mloskot/.config/gtk-3.0/bookmarks 9 | home/mloskot/.vim/bundle/ 10 | home/mloskot/.vim/doc/tags 11 | home/mloskot/bin/ack 12 | home/mloskot/bin/b2 13 | home/mloskot/bin/bjam 14 | home/mloskot/bin/quickbook 15 | home/mloskot/bin/packer 16 | home/mloskot/bin/doxygen_xml2qbk 17 | home/mloskot/bin/piavpn.sh 18 | home/mloskot/bin/python 19 | home/mloskot/bin/ssh-askpass 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Linux Setup 2 | 3 | > [!IMPORTANT] 4 | > I've been mostly working in hybrid environments for which I maintain my configs in https://github.com/mloskot/dotfiles repository. 5 | > I no longer use plain Arch on my computers and this repo has not received updates for very long time. 6 | > It's gone archived mode. 7 | 8 | https://github.com/mloskot/linux-config 9 | 10 | Collection of user dotfiles and system configuration files for 11 | my Linux systems based on Arch Linux, Debian and Ubuntu. 12 | 13 | I use this bundle to configure: 14 | * Arch Linxu on Lenovo ThinkPad T400 and Asus Eee PC 901 15 | * Ubuntu on Lenovo Thinkpad W700 16 | * Debian on remote VPS 17 | 18 | Originally developed for Arch Linux: https://github.com/mloskot/archlinux-config 19 | 20 | ## Systems 21 | 22 | ### Arch Linux 23 | 24 | *TODO* 25 | 26 | ### Ubuntu 27 | 28 | *TODO* 29 | 30 | ### Debian 31 | 32 | *TODO* 33 | 34 | ## Directories 35 | 36 | * `/etc` - system-wide configuration 37 | * `/home/mloskot` - user-specific dotfiles dedicated for mloskot user 38 | 39 | ## Deployment 40 | 41 | ### System-wide configuration: 42 | 43 | *TODO* 44 | 45 | ### User-specific configuration: 46 | 47 | * Clone the project, typically into `$HOME/.dotfiles`. 48 | * Inspect header of `$HOME/.dotfiles/deploy-mloskot.sh` script for configuration options. 49 | * Deploy: 50 | 51 | ```shell 52 | $ cd $HOME/.dotfiles 53 | $ ./deploy-mloskot.sh 54 | ``` 55 | * Review the log genererated to `stdout`. 56 | 57 | ## Author 58 | 59 | [Mateusz Loskot](http://mateusz.loskot.net) (mateusz at loskot dot net) 60 | 61 | ## License 62 | 63 | I hereby grant free use of the files included under archlinux-config project, and release it to the public domain. 64 | If your jurisdiction does not recognize the concept of public domain, choose the MIT License. 65 | -------------------------------------------------------------------------------- /deploy-mloskot.sh: -------------------------------------------------------------------------------- 1 | # 2 | # dotfiles-mloskot.sh - deploys dotfiles for non-root mloskot user 3 | # 4 | # Mateusz Loskot 5 | # 6 | # The dotfiles are used in Arch Linux setup on my workstation. 7 | # 8 | # Configuration 9 | DOTFILES=${PWD}/home/mloskot 10 | OVERWRITE=1 11 | # 12 | # Functions 13 | # 14 | usage() 15 | { 16 | echo "archlinux-config deployment by Mateusz Loskot " 17 | echo "" 18 | echo "Usage:" 19 | echo "$0 TARGET" 20 | echo " TARGET Name of target machine: browar, dog, gaja or vb" 21 | echo "" 22 | echo "Git repository at https://github.com/mloskot/archlinux-config" 23 | } 24 | 25 | function make_symlink() 26 | { 27 | T=${1} 28 | L=${2} 29 | if [ ! -f "${T}" -a ! -d "${T}" ]; then 30 | echo "Target ${T} does not exist - skipping" 31 | return 1 32 | fi 33 | 34 | if [ -f "${L}" ]; then 35 | echo "Regular file ${L} already exists - overwriting" 36 | [ ${OVERWRITE} -eq 1 ] && rm ${L} 37 | elif [ -L "${L}" ]; then 38 | echo "Symlink ${L} already exists - overwriting" 39 | [ ${OVERWRITE} -eq 1 ] && rm ${L} 40 | fi 41 | 42 | ln -s ${T} ${L} 43 | echo "Symlink ${L} created" 44 | return $? 45 | } 46 | 47 | function deploy_file() 48 | { 49 | T=${1} 50 | L=${2} 51 | if [ -z "${L}" ]; then 52 | L=${T} # target renaming or relative path 53 | fi 54 | 55 | LINK_TARGET=${DOTFILES}/${T} 56 | LINK_NAME=${HOME}/${L} 57 | echo "Deploying ${LINK_TARGET} to ${LINK_NAME}" 58 | 59 | LINK_DIR=`dirname ${LINK_NAME}` 60 | if [ ! -d ${LINK_DIR} ]; then 61 | echo "Creating directory ${LINK_DIR}" 62 | mkdir -p ${LINK_DIR} 63 | fi 64 | 65 | make_symlink ${LINK_TARGET} ${LINK_NAME} 66 | if [ $? -ne 0 ]; then 67 | echo "Something went wrong - giving up" 68 | exit 1 69 | fi 70 | 71 | echo 72 | } 73 | 74 | # Main script 75 | 76 | if [ ! -d "${DOTFILES}" ]; then 77 | echo "Cannot find dotfiles location" 78 | exit 1 79 | fi 80 | 81 | while true; do 82 | case "$1" in 83 | browar) TARGET=browar; break;; 84 | dog) TARGET=dog; break;; 85 | gaja) TARGET=gaja; break;; 86 | vb) TARGET=vb; break;; 87 | 88 | *) usage; exit 0;; 89 | esac 90 | shift 91 | done 92 | 93 | echo "Deploying '${TARGET}' dotfiles from ${DOTFILES} to ${HOME}" 94 | echo 95 | # ~/bin 96 | deploy_file bin 97 | # shell 98 | deploy_file .profile 99 | deploy_file .aliases 100 | deploy_file .bash_profile 101 | deploy_file .bashrc 102 | deploy_file .zshenv 103 | deploy_file .zshrc 104 | deploy_file .zsh 105 | # Vim 106 | deploy_file .vim 107 | deploy_file .vimrc 108 | # Git 109 | deploy_file .gitconfig 110 | deploy_file .gitignore_global 111 | # X 112 | deploy_file .xinitrc.i3 .xinitrc 113 | #deploy_file .Xresources 114 | #deploy_file .Xresources .Xdefaults 115 | # XDG 116 | deploy_file .config/user-dirs.dirs 117 | deploy_file .config/user-dirs.locale 118 | # i3wm 119 | deploy_file .config/i3.${TARGET} .config/i3 120 | deploy_file .config/i3status.${TARGET} .config/i3status 121 | # GTK+ 2.x 122 | deploy_file .gtkrc-2.0 123 | # ~/.config 124 | deploy_file .config/gtk-3.0 125 | deploy_file .config/openbox 126 | deploy_file .config/volumeicon.${TARGET} .config/volumeicon 127 | deploy_file .config/tint2 128 | deploy_file .config/Terminal 129 | # KDE 130 | deploy_file .kde4/share/config/krusaderrc 131 | # Misc 132 | deploy_file .conkyrc 133 | deploy_file .fehbg 134 | deploy_file .gemrc 135 | deploy_file .mcabber 136 | deploy_file .packer.conf 137 | deploy_file .config/pacaur 138 | deploy_file .wallpapers 139 | deploy_file .wgetrc 140 | deploy_file signature.txt 141 | -------------------------------------------------------------------------------- /etc/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/etc/README -------------------------------------------------------------------------------- /home/mloskot/.Xresources.gaja: -------------------------------------------------------------------------------- 1 | ! Xft settings --------------------------------------------------------------- 2 | 3 | Xft.dpi: 96 4 | Xft.antialias: true 5 | Xft.rgba: rgb 6 | Xft.hinting: true 7 | Xft.hintstyle: hintslight 8 | 9 | !------------------------------------------------------------------------------- 10 | ! 11 | ! U R X V T - Settings 12 | ! 13 | urxvt*geometry: 100x25 14 | urxvt*font: xft:Terminus:pixelsize=14 15 | urxvt.realBold: True 16 | urxvt.inheritPixmap: True 17 | urxvt.background: #000000 18 | urxvt.foreground: #ffffff 19 | urxvt.scrollBar: False 20 | urxvt.internalBorder: 3 21 | urxvt.externalBorder: 0 22 | urxvt.tintColor: #663333 23 | urxvt.saveLines: 10000 24 | urxvt.jumpScroll: true 25 | urxvt.multiScroll: true 26 | urxvt*perl-ext-common: default 27 | urxvt.urlLauncher: firefox -new-tab 28 | -------------------------------------------------------------------------------- /home/mloskot/.Xresources.mloskot: -------------------------------------------------------------------------------- 1 | ! Xft settings --------------------------------------------------------------- 2 | 3 | Xft.dpi: 96 4 | Xft.antialias: true 5 | Xft.rgba: rgb 6 | Xft.hinting: true 7 | Xft.hintstyle: hintslight 8 | 9 | !------------------------------------------------------------------------------- 10 | ! 11 | ! U R X V T - Settings 12 | ! 13 | urxvt*geometry: 100x25 14 | urxvt*font: xft:Terminus:pixelsize=14 15 | urxvt*transparent: true 16 | urxvt*shading: 30 17 | urxvt.realBold: True 18 | !urxvt.inheritPixmap: false 19 | !urxvt.background: #000000 20 | urxvt.foreground: #ffffff 21 | urxvt.scrollBar: False 22 | urxvt.internalBorder: 3 23 | urxvt.externalBorder: 0 24 | !urxvt.tintColor: #663333 25 | urxvt.saveLines: 10000 26 | urxvt.jumpScroll: true 27 | urxvt.multiScroll: true 28 | URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select 29 | URxvt.url-select.launcher: /usr/bin/firefox -new-tab 30 | URxvt.url-select.underline: true 31 | URxvt.keysym.M-u: perl:url-select:select_next 32 | URxvt.keysym.M-Escape: perl:keyboard-select:activate 33 | URxvt.keysym.M-s: perl:keyboard-select:search 34 | -------------------------------------------------------------------------------- /home/mloskot/.Xresources.solarized: -------------------------------------------------------------------------------- 1 | !! drop in Solarized colorscheme for Xresources/Xdefaults 2 | 3 | !!SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B RGB HSB 4 | !!--------- ------- ---- ------- ----------- ---------- ----------- ----------- 5 | !!base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21 6 | !!base02 #073642 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26 7 | !!base01 #586e75 10/7 brgreen 240 #585858 45 -07 -07 88 110 117 194 25 46 8 | !!base00 #657b83 11/7 bryellow 241 #626262 50 -07 -07 101 123 131 195 23 51 9 | !!base0 #839496 12/6 brblue 244 #808080 60 -06 -03 131 148 150 186 13 59 10 | !!base1 #93a1a1 14/4 brcyan 245 #8a8a8a 65 -05 -02 147 161 161 180 9 63 11 | !!base2 #eee8d5 7/7 white 254 #e4e4e4 92 -00 10 238 232 213 44 11 93 12 | !!base3 #fdf6e3 15/7 brwhite 230 #ffffd7 97 00 10 253 246 227 44 10 99 13 | !!yellow #b58900 3/3 yellow 136 #af8700 60 10 65 181 137 0 45 100 71 14 | !!orange #cb4b16 9/3 brred 166 #d75f00 50 50 55 203 75 22 18 89 80 15 | !!red #dc322f 1/1 red 160 #d70000 50 65 45 220 50 47 1 79 86 16 | !!magenta #d33682 5/5 magenta 125 #af005f 50 65 -05 211 54 130 331 74 83 17 | !!violet #6c71c4 13/5 brmagenta 61 #5f5faf 50 15 -45 108 113 196 237 45 77 18 | !!blue #268bd2 4/4 blue 33 #0087ff 55 -10 -45 38 139 210 205 82 82 19 | !!cyan #2aa198 6/6 cyan 37 #00afaf 60 -35 -05 42 161 152 175 74 63 20 | !!green #859900 2/2 green 64 #5f8700 60 -20 65 133 153 0 68 100 60 21 | 22 | #define S_base03 #002b36 23 | #define S_base02 #073642 24 | #define S_base01 #586e75 25 | #define S_base00 #657b83 26 | #define S_base0 #839496 27 | #define S_base1 #93a1a1 28 | #define S_base2 #eee8d5 29 | #define S_base3 #fdf6e3 30 | #define S_yellow #b58900 31 | #define S_orange #cb4b16 32 | #define S_red #dc322f 33 | #define S_magenta #d33682 34 | #define S_violet #6c71c4 35 | #define S_blue #268bd2 36 | #define S_cyan #2aa198 37 | #define S_green #859900 38 | 39 | *background: S_base03 40 | *foreground: S_base00 41 | *fading: 40 42 | *fadeColor: S_base03 43 | *cursorColor: S_base1 44 | *pointerColorBackground:S_base01 45 | *pointerColorForeground:S_base1 46 | 47 | !! black dark/light 48 | *color0: S_base02 49 | *color8: S_base03 50 | 51 | !! red dark/light 52 | *color1: S_red 53 | *color9: S_orange 54 | 55 | !! green dark/light 56 | *color2: S_green 57 | *color10: S_base01 58 | 59 | !! yellow dark/light 60 | *color3: S_yellow 61 | *color11: S_base00 62 | 63 | !! blue dark/light 64 | *color4: S_blue 65 | *color12: S_base0 66 | 67 | !! magenta dark/light 68 | *color5: S_magenta 69 | *color13: S_violet 70 | 71 | !! cyan dark/light 72 | *color6: S_cyan 73 | *color14: S_base1 74 | 75 | !! white dark/light 76 | *color7: S_base2 77 | *color15: S_base3 78 | -------------------------------------------------------------------------------- /home/mloskot/.aliases: -------------------------------------------------------------------------------- 1 | # 2 | # ~/.bash_aliases 3 | # 4 | # Part of https://github.com/mloskot/archlinux-config 5 | # Mateusz Loskot 6 | # 7 | alias l='ls -CF' 8 | alias la='ls -A' 9 | alias ll='ls -l' 10 | alias ls='ls --color=auto' 11 | alias lsal='ls -al --color' 12 | alias dir='dir --color=auto' 13 | alias vdir='vdir --color=auto' 14 | GREP_OPTIONS="--color=auto" 15 | alias grep="/usr/bin/grep $GREP_OPTIONS" 16 | alias egrep='/usr/bin/egrep $GREP_OPTIONS' 17 | alias fgrep='/usr/bin/fgrep $GREP_OPTIONS' 18 | unset GREP_OPTIONS 19 | alias gits='git status' 20 | alias gitd='git diff' 21 | # packer 22 | alias pa="packer -S --auronly" 23 | alias pann="packer -S --auronly --noconfirm --noedit" 24 | alias payu="packer -Syu --auronly" 25 | # sql*plus 26 | alias rlrman="rlwrap rman" 27 | alias rlsqlplus="rlwrap sqlplus" 28 | # GnuPG 29 | alias clipenc="xsel|gpg -ear mateusz@loskot.net|xsel -b" 30 | alias clipdec="xsel -b|gpg -d|xsel -b && xsel -b" 31 | # Skype 32 | #alias skype='LD_PRELOAD=/usr/libxx/libv4l/v4l1compat.so skype' 33 | # Bash Batch Image Processing Scripts 34 | # http://sourceforge.net/projects/bbips/ 35 | alias bbapcom='bash ~/.bbips/bbapcom' 36 | alias bbatxt='bash ~/.bbips/bbatxt' 37 | alias bbborder='bash ~/.bbips/bbborder' 38 | alias bbcolorize='bash ~/.bbips/bbcolorize' 39 | alias bbcopy='bash ~/.bbips/bbcopy' 40 | alias bbhelp='bash ~/.bbips/bbhelp' 41 | alias bbindex='bash ~/.bbips/bbindex' 42 | alias bbnormalize='bash ~/.bbips/bbnormalize' 43 | alias bbpaint='bash ~/.bbips/bbpaint' 44 | alias bbflip='bash ~/.bbips/bbflip' 45 | alias bbflop='bash ~/.bbips/bbflop' 46 | alias bbgamma='bash ~/.bbips/bbgamma' 47 | alias bbgrayscale='bash ~/.bbips/bbgrayscale' 48 | alias bbgzip='bash ~/.bbips/bbgzip' 49 | alias bbrecom='bash ~/.bbips/bbrecom' 50 | alias bbresize='bash ~/.bbips/bbresize' 51 | alias bbrotate='bash ~/.bbips/bbrotate' 52 | alias bbsepia='bash ~/.bbips/bbsepia' 53 | alias bbsolarize='bash ~/.bbips/bbsolarize' 54 | alias bbwrcom='bash ~/.bbips/bbwrcom' 55 | alias bbrename='bash ~/.bbips/bbrename' 56 | alias bbshot='bash ~/.bbips/bbshot' 57 | alias bbgallery='bash ~/.bbips/bbgallery' 58 | -------------------------------------------------------------------------------- /home/mloskot/.bash_logout: -------------------------------------------------------------------------------- 1 | # ~/.bash_logout: executed by bash(1) when login shell exits. 2 | 3 | # when leaving the console clear the screen to increase privacy 4 | 5 | if [ "$SHLVL" = 1 ]; then 6 | [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q 7 | fi 8 | -------------------------------------------------------------------------------- /home/mloskot/.bash_profile: -------------------------------------------------------------------------------- 1 | # 2 | # ~/.bash_profile 3 | # 4 | 5 | [[ -f ~/.bashrc ]] && . ~/.bashrc 6 | if type ssh-agent >/dev/null 2>&1; then 7 | eval $(ssh-agent) 8 | fi 9 | [[ -f ~/.ssh/id_rsa ]] && ssh-add ~/.ssh/id_rsa 10 | [[ -f ~/.ssh/id_rsa.gh ]] && ssh-add ~/.ssh/id_rsa.gh 11 | [[ -f ~/.ssh/id_rsa.brzuchol ]] && ssh-add ~/.ssh/id_rsa.brzuchol 12 | -------------------------------------------------------------------------------- /home/mloskot/.bashrc.brzuchol: -------------------------------------------------------------------------------- 1 | # ~/.bashrc: executed by bash(1) for non-login shells. 2 | # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) 3 | # for examples 4 | 5 | # If not running interactively, don't do anything 6 | [ -z "$PS1" ] && return 7 | 8 | # don't put duplicate lines in the history. See bash(1) for more options 9 | # don't overwrite GNU Midnight Commander's setting of `ignorespace'. 10 | HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups 11 | # ... or force ignoredups and ignorespace 12 | HISTCONTROL=ignoreboth 13 | 14 | # append to the history file, don't overwrite it 15 | shopt -s histappend 16 | 17 | # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) 18 | 19 | # check the window size after each command and, if necessary, 20 | # update the values of LINES and COLUMNS. 21 | shopt -s checkwinsize 22 | 23 | # make less more friendly for non-text input files, see lesspipe(1) 24 | #[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" 25 | 26 | # set variable identifying the chroot you work in (used in the prompt below) 27 | if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then 28 | debian_chroot=$(cat /etc/debian_chroot) 29 | fi 30 | 31 | # set a fancy prompt (non-color, unless we know we "want" color) 32 | case "$TERM" in 33 | xterm-color) color_prompt=yes;; 34 | esac 35 | 36 | # uncomment for a colored prompt, if the terminal has the capability; turned 37 | # off by default to not distract the user: the focus in a terminal window 38 | # should be on the output of commands, not on the prompt 39 | force_color_prompt=yes 40 | 41 | if [ -n "$force_color_prompt" ]; then 42 | if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then 43 | # We have color support; assume it's compliant with Ecma-48 44 | # (ISO/IEC-6429). (Lack of such support is extremely rare, and such 45 | # a case would tend to support setf rather than setaf.) 46 | color_prompt=yes 47 | else 48 | color_prompt= 49 | fi 50 | fi 51 | 52 | if [ "$color_prompt" = yes ]; then 53 | PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' 54 | else 55 | PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' 56 | fi 57 | unset color_prompt force_color_prompt 58 | 59 | # If this is an xterm set the title to user@host:dir 60 | case "$TERM" in 61 | xterm*|rxvt*) 62 | PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" 63 | ;; 64 | *) 65 | ;; 66 | esac 67 | 68 | # enable color support of ls and also add handy aliases 69 | if [ -x /usr/bin/dircolors ]; then 70 | test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" 71 | alias ls='ls --color=auto' 72 | #alias dir='dir --color=auto' 73 | #alias vdir='vdir --color=auto' 74 | 75 | #alias grep='grep --color=auto' 76 | #alias fgrep='fgrep --color=auto' 77 | #alias egrep='egrep --color=auto' 78 | fi 79 | 80 | # some more ls aliases 81 | #alias ll='ls -l' 82 | #alias la='ls -A' 83 | #alias l='ls -CF' 84 | 85 | # Alias definitions. 86 | # You may want to put all your additions into a separate file like 87 | # ~/.bash_aliases, instead of adding them here directly. 88 | # See /usr/share/doc/bash-doc/examples in the bash-doc package. 89 | 90 | if [ -f ~/.bash_aliases ]; then 91 | . ~/.bash_aliases 92 | fi 93 | 94 | # enable programmable completion features (you don't need to enable 95 | # this, if it's already enabled in /etc/bash.bashrc and /etc/profile 96 | # sources /etc/bash.bashrc). 97 | if [ -f /etc/bash_completion ] && ! shopt -oq posix; then 98 | . /etc/bash_completion 99 | fi 100 | 101 | # {{{ Git 102 | if [[ $PS1 && -f /usr/share/git/git-prompt.sh ]]; then 103 | source /usr/share/git/git-prompt.sh 104 | 105 | export GIT_PS1_SHOWDIRTYSTATE=1 106 | export GIT_PS1_SHOWSTASHSTATE=1 107 | export GIT_PS1_SHOWUNTRACKEDFILES=1 108 | 109 | if ${use_color} ; then 110 | PS1='\[\e[1;92m\]\u\[\e[m\] \[\e[1;94m\]\W\[\e[m\] \[\e[1;91m\]$(__git_ps1 "(%s)")\[\e[m\]\[\e[1;92m\]\$\[\e[m\] \[\e[0;37m\]' 111 | else 112 | PS1='\u \W $(__git_ps1 "(%s)")\$ ' 113 | fi 114 | fi 115 | # }} 116 | 117 | 118 | -------------------------------------------------------------------------------- /home/mloskot/.config/Terminal/terminalrc: -------------------------------------------------------------------------------- 1 | [Configuration] 2 | FontName=Terminus 10 3 | MiscAlwaysShowTabs=FALSE 4 | MiscBell=FALSE 5 | MiscBordersDefault=FALSE 6 | MiscCursorBlinks=FALSE 7 | MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK 8 | MiscDefaultGeometry=80x24 9 | MiscInheritGeometry=FALSE 10 | MiscMenubarDefault=FALSE 11 | MiscMouseAutohide=FALSE 12 | MiscToolbarsDefault=FALSE 13 | MiscConfirmClose=TRUE 14 | MiscCycleTabs=TRUE 15 | MiscTabCloseButtons=TRUE 16 | MiscTabCloseMiddleClick=TRUE 17 | MiscTabPosition=GTK_POS_TOP 18 | MiscHighlightUrls=TRUE 19 | ScrollingBar=TERMINAL_SCROLLBAR_NONE 20 | ScrollingLines=9999 21 | 22 | -------------------------------------------------------------------------------- /home/mloskot/.config/Terminal/terminalrc.mloskot: -------------------------------------------------------------------------------- 1 | [Configuration] 2 | FontName=Terminus 10 3 | MiscAlwaysShowTabs=FALSE 4 | MiscBell=FALSE 5 | MiscBordersDefault=FALSE 6 | MiscCursorBlinks=FALSE 7 | MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK 8 | MiscDefaultGeometry=80x24 9 | MiscInheritGeometry=FALSE 10 | MiscMenubarDefault=FALSE 11 | MiscMouseAutohide=FALSE 12 | MiscToolbarsDefault=FALSE 13 | MiscConfirmClose=TRUE 14 | MiscCycleTabs=TRUE 15 | MiscTabCloseButtons=TRUE 16 | MiscTabCloseMiddleClick=TRUE 17 | MiscTabPosition=GTK_POS_TOP 18 | MiscHighlightUrls=TRUE 19 | ScrollingBar=TERMINAL_SCROLLBAR_NONE 20 | ScrollingLines=9999 21 | 22 | -------------------------------------------------------------------------------- /home/mloskot/.config/Terminal/terminalrc.mloskot.solarized: -------------------------------------------------------------------------------- 1 | [Configuration] 2 | FontName=Terminus 10 3 | MiscAlwaysShowTabs=FALSE 4 | MiscBell=FALSE 5 | MiscBordersDefault=TRUE 6 | MiscCursorBlinks=FALSE 7 | MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK 8 | MiscDefaultGeometry=80x24 9 | MiscInheritGeometry=FALSE 10 | MiscMenubarDefault=FALSE 11 | MiscMouseAutohide=FALSE 12 | MiscToolbarsDefault=FALSE 13 | MiscConfirmClose=TRUE 14 | MiscCycleTabs=TRUE 15 | MiscTabCloseButtons=TRUE 16 | MiscTabCloseMiddleClick=TRUE 17 | MiscTabPosition=GTK_POS_TOP 18 | MiscHighlightUrls=TRUE 19 | ScrollingBar=TERMINAL_SCROLLBAR_NONE 20 | ScrollingLines=9999 21 | ColorCursor=#9393a1a1a1a1 22 | ColorForeground=#FDFDF6F6E3E3 23 | ColorBackground=#00002B2B3636 24 | ColorPalette1=#070736364242 25 | ColorPalette2=#dcdc32322f2f 26 | ColorPalette3=#858599990000 27 | ColorPalette4=#b5b589890000 28 | ColorPalette5=#26268ae0d2d2 29 | ColorPalette6=#d3d336368282 30 | ColorPalette7=#eeeee8e8d5d5 31 | ColorPalette8=#58586e6e7575 32 | ColorPalette9=#00002b2b3636 33 | ColorPalette10=#cbcb4b4b1616 34 | ColorPalette11=#2a2aa1a19898 35 | ColorPalette12=#65657bfb8383 36 | ColorPalette13=#838394949696 37 | ColorPalette14=#6c6c7171c4c4 38 | ColorPalette15=#9393a1a1a1a1 39 | ColorPalette16=#fdfdf6f6e3e3 40 | 41 | -------------------------------------------------------------------------------- /home/mloskot/.config/Terminal/terminalrc.solarized.dark: -------------------------------------------------------------------------------- 1 | [Configuration] 2 | FontName=Terminus 10 3 | MiscAlwaysShowTabs=FALSE 4 | MiscBell=FALSE 5 | MiscBordersDefault=FALSE 6 | MiscCursorBlinks=FALSE 7 | MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK 8 | MiscDefaultGeometry=80x24 9 | MiscInheritGeometry=FALSE 10 | MiscMenubarDefault=FALSE 11 | MiscMouseAutohide=FALSE 12 | MiscToolbarsDefault=FALSE 13 | MiscConfirmClose=TRUE 14 | MiscCycleTabs=TRUE 15 | MiscTabCloseButtons=TRUE 16 | MiscTabCloseMiddleClick=TRUE 17 | MiscTabPosition=GTK_POS_TOP 18 | MiscHighlightUrls=TRUE 19 | ScrollingBar=TERMINAL_SCROLLBAR_NONE 20 | ScrollingLines=9999 21 | # Solarized colors 22 | ColorCursor=#9393a1a1a1a1 23 | ColorForeground=#FDFDF6F6E3E3 24 | ColorBackground=#00002B2B3636 25 | ColorPalette1=#070736364242 26 | ColorPalette2=#dcdc32322f2f 27 | ColorPalette3=#858599990000 28 | ColorPalette4=#b5b589890000 29 | ColorPalette5=#26268ae0d2d2 30 | ColorPalette6=#d3d336368282 31 | ColorPalette7=#eeeee8e8d5d5 32 | ColorPalette8=#58586e6e7575 33 | ColorPalette9=#00002b2b3636 34 | ColorPalette10=#cbcb4b4b1616 35 | ColorPalette11=#2a2aa1a19898 36 | ColorPalette12=#65657bfb8383 37 | ColorPalette13=#838394949696 38 | ColorPalette14=#6c6c7171c4c4 39 | ColorPalette15=#9393a1a1a1a1 40 | ColorPalette16=#fdfdf6f6e3e3 41 | -------------------------------------------------------------------------------- /home/mloskot/.config/Terminal/terminalrc.solarized.light: -------------------------------------------------------------------------------- 1 | [Configuration] 2 | FontName=Terminus 10 3 | MiscAlwaysShowTabs=FALSE 4 | MiscBell=FALSE 5 | MiscBordersDefault=FALSE 6 | MiscCursorBlinks=FALSE 7 | MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK 8 | MiscDefaultGeometry=80x24 9 | MiscInheritGeometry=FALSE 10 | MiscMenubarDefault=FALSE 11 | MiscMouseAutohide=FALSE 12 | MiscToolbarsDefault=FALSE 13 | MiscConfirmClose=TRUE 14 | MiscCycleTabs=TRUE 15 | MiscTabCloseButtons=TRUE 16 | MiscTabCloseMiddleClick=TRUE 17 | MiscTabPosition=GTK_POS_TOP 18 | MiscHighlightUrls=TRUE 19 | ScrollingBar=TERMINAL_SCROLLBAR_NONE 20 | ScrollingLines=9999 21 | # Solarized colors 22 | ColorCursor=#9393a1a1a1a1 23 | ColorForeground=#00002B2B3636 24 | ColorBackground=#fdfdf6f6e3e3 25 | ColorPalette1=#070736364242 26 | ColorPalette2=#dcdc32322f2f 27 | ColorPalette3=#858599990000 28 | ColorPalette4=#b5b589890000 29 | ColorPalette5=#26268ae0d2d2 30 | ColorPalette6=#d3d336368282 31 | ColorPalette7=#2a2aa1a19898 32 | ColorPalette8=#eeeee8e8d5d5 33 | ColorPalette9=#00002b2b3636 34 | ColorPalette10=#cbcb4b4b1616 35 | ColorPalette11=#65657bfb8383 36 | ColorPalette12=#58586e6e7575 37 | ColorPalette13=#9393a1a1a1a1 38 | ColorPalette14=#6c6c7171c4c4 39 | ColorPalette15=#838394949696 40 | ColorPalette16=#fdfdf6f6e3e3 41 | -------------------------------------------------------------------------------- /home/mloskot/.config/gtk-3.0/settings.ini: -------------------------------------------------------------------------------- 1 | # 2 | # .config/gtk-3.0/settings.ini 3 | # 4 | # Part of https://github.com/mloskot/archlinux-config 5 | # Mateusz Loskot 6 | # 7 | # Source: https://github.com/iv597/dotz 8 | # 9 | [Settings] 10 | gtk-theme-name = Adwaita 11 | gtk-fallback-icon-theme = gnome 12 | gtk-toolbar-style = GTK_TOOLBAR_ICONS 13 | gtk-toolbar-icon-size = GTK_ICON_SIZE_SMALL_TOOLBAR 14 | -------------------------------------------------------------------------------- /home/mloskot/.config/i3status.browar/config: -------------------------------------------------------------------------------- 1 | # i3status config file (v4) - ~/.config/i3status/config or ~/.i3status.conf 2 | # 3 | # Please see http://i3wm.org/i3status/manpage.html for a complete reference! 4 | # 5 | # Author: Mateusz Loskot 6 | # 7 | general { 8 | colors = true 9 | #color_good = "#00FF00" 10 | #color_degraded = "#FFFF00" 11 | #color_bad = "#FF0000" 12 | interval = 5 13 | } 14 | 15 | order += "wireless wlp1s0" 16 | order += "disk /" 17 | order += "disk /mnt/sd" 18 | order += "cpu_usage" 19 | order += "cpu_temperature 0" 20 | order += "load" 21 | order += "battery 0" 22 | order += "time" 23 | order += "volume master" 24 | 25 | wireless wlp1s0 { 26 | format_up = "W: %essid @ %ip (Q: %quality)" 27 | format_down = "W: down" 28 | } 29 | 30 | ethernet eth0 { 31 | # if you use %speed, i3status requires root privileges 32 | format_up = "E: %ip (%speed)" 33 | format_down = "E: down" 34 | } 35 | 36 | cpu_usage { 37 | format = "C: %usage" 38 | } 39 | 40 | cpu_temperature 0 { 41 | format = "T: %degrees °C" 42 | } 43 | 44 | disk / { 45 | format = "%used/%total" 46 | } 47 | 48 | disk "/mnt/sd" { 49 | format = "%used/%total" 50 | } 51 | 52 | 53 | time { 54 | format = "%H:%M:%S" 55 | } 56 | 57 | load { 58 | format = "L: %1min" 59 | } 60 | 61 | battery 0 { 62 | format = "%status %percentage %remaining (%consumption)" 63 | } 64 | 65 | volume master { 66 | format = "♪: %volume " 67 | device = "default" 68 | mixer = "Master" 69 | mixer_idx = 0 70 | } 71 | -------------------------------------------------------------------------------- /home/mloskot/.config/i3status.dog/config: -------------------------------------------------------------------------------- 1 | # i3status config file (v4) - ~/.config/i3status/config or ~/.i3status.conf 2 | # 3 | # Please see http://i3wm.org/i3status/manpage.html for a complete reference! 4 | # 5 | # Author: Mateusz Loskot 6 | # 7 | general { 8 | colors = true 9 | #color_good = "#00FF00" 10 | #color_degraded = "#FFFF00" 11 | #color_bad = "#FF0000" 12 | interval = 5 13 | } 14 | 15 | order += "wireless wlp3s0" 16 | order += "disk /" 17 | order += "disk /home" 18 | order += "cpu_usage" 19 | order += "cpu_temperature 0" 20 | order += "load" 21 | order += "battery 0" 22 | order += "time" 23 | order += "volume master" 24 | 25 | wireless wlp3s0 { 26 | format_up = "W: %essid @ %ip (Q: %quality)" 27 | format_down = "W: down" 28 | } 29 | 30 | ethernet eth0 { 31 | # if you use %speed, i3status requires root privileges 32 | format_up = "E: %ip (%speed)" 33 | format_down = "E: down" 34 | } 35 | 36 | cpu_usage { 37 | format = "CPU U: %usage" 38 | } 39 | 40 | cpu_temperature 0 { 41 | format = "CPU T: %degrees °C" 42 | } 43 | 44 | disk / { 45 | format = "sda1: %used/%total" 46 | } 47 | 48 | disk "/home" { 49 | format = "sda3: %used/%total" 50 | } 51 | 52 | 53 | time { 54 | format = "D: %Y-%m-%d T: %H:%M:%S" 55 | } 56 | 57 | load { 58 | format = "L: %1min" 59 | } 60 | 61 | battery 0 { 62 | format = "%status %percentage %remaining (%consumption)" 63 | } 64 | 65 | volume master { 66 | format = "♪: %volume " 67 | device = "default" 68 | mixer = "Master" 69 | mixer_idx = 0 70 | } 71 | -------------------------------------------------------------------------------- /home/mloskot/.config/i3status.dog/config.printmem: -------------------------------------------------------------------------------- 1 | # i3status config file (v4) - ~/.config/i3status/config or ~/.i3status.conf 2 | # 3 | # Please see http://i3wm.org/i3status/manpage.html for a complete reference! 4 | # 5 | # Author: Mateusz Loskot 6 | # 7 | general { 8 | colors = true 9 | interval = 5 10 | } 11 | 12 | order += "wireless wlan0" 13 | #order += "ethernet eth0" 14 | #order += "memory RAM" 15 | #order += "memory SWAP" 16 | order += "disk /" 17 | order += "disk /home" 18 | order += "cpu_usage" 19 | order += "cpu_temperature 0" 20 | order += "load" 21 | order += "battery 0" 22 | order += "time" 23 | order += "volume master" 24 | 25 | wireless wlan0 { 26 | format_up = "WLAN: (%quality @ %essid) IP: %ip" 27 | format_down = "W: down" 28 | } 29 | 30 | ethernet eth0 { 31 | # if you use %speed, i3status requires root privileges 32 | format_up = "ETH: %ip (%speed)" 33 | format_down = "ETH: down" 34 | } 35 | 36 | battery 0 { 37 | format = "%status: %percentage %remaining" 38 | #last_full_capacity = true 39 | } 40 | 41 | memory "RAM" { 42 | format = "RAM: %free" 43 | } 44 | 45 | memory SWAP { 46 | format = "SWP: %swapfree" 47 | } 48 | 49 | cpu_usage { 50 | format = "CPU U: %usage" 51 | } 52 | 53 | cpu_temperature 0 { 54 | format = "CPU T: %degrees °C" 55 | } 56 | 57 | time { 58 | format = "%Y-%m-%d %H:%M:%S" 59 | } 60 | 61 | load { 62 | format = "L: %1min" 63 | } 64 | 65 | disk / { 66 | format = "sda1: %used/%total" 67 | } 68 | 69 | disk "/home" { 70 | format = "sda3: %used/%total" 71 | } 72 | 73 | volume master { 74 | format = "♪: %volume " 75 | device = "default" 76 | mixer = "Master" 77 | mixer_idx = 0 78 | } 79 | -------------------------------------------------------------------------------- /home/mloskot/.config/i3status.gaja/config: -------------------------------------------------------------------------------- 1 | # i3status config file (v4) - ~/.config/i3status/config or ~/.i3status.conf 2 | # 3 | # Please see http://i3wm.org/i3status/manpage.html for a complete reference! 4 | # 5 | # Author: Mateusz Loskot 6 | # 7 | general { 8 | colors = true 9 | #color_good = "#00FF00" 10 | #color_degraded = "#FFFF00" 11 | #color_bad = "#FF0000" 12 | interval = 5 13 | } 14 | 15 | order += "wireless wlp3s0" 16 | order += "disk /" 17 | order += "disk /data" 18 | order += "disk /home" 19 | order += "cpu_usage" 20 | order += "cpu_temperature 0" 21 | order += "load" 22 | order += "battery 0" 23 | order += "time" 24 | order += "volume master" 25 | 26 | wireless wlp3s0 { 27 | format_up = "W: %essid @ %ip (Q: %quality)" 28 | format_down = "W: down" 29 | } 30 | 31 | ethernet enp0s25 { 32 | # if you use %speed, i3status requires root privileges 33 | format_up = "E: %ip (%speed)" 34 | format_down = "E: down" 35 | } 36 | 37 | cpu_usage { 38 | format = "C: %usage" 39 | } 40 | 41 | cpu_temperature 0 { 42 | format = "T: %degrees °C" 43 | } 44 | 45 | disk / { 46 | format = "sda1: %used/%total" 47 | } 48 | 49 | disk "/data" { 50 | format = "sda3: %used/%total" 51 | } 52 | 53 | disk "/home" { 54 | format = "sdb1: %used/%total" 55 | } 56 | 57 | time { 58 | format = "%Y-%m-%d %H:%M:%S" 59 | } 60 | 61 | load { 62 | format = "L: %1min" 63 | } 64 | 65 | battery 0 { 66 | format = "%status %percentage %remaining (%consumption)" 67 | } 68 | 69 | volume master { 70 | format = "♪: %volume " 71 | device = "default" 72 | mixer = "Master" 73 | mixer_idx = 0 74 | } 75 | -------------------------------------------------------------------------------- /home/mloskot/.config/i3status.vb/config: -------------------------------------------------------------------------------- 1 | # i3status configuration file. 2 | # see "man i3status" for documentation. 3 | 4 | # It is important that this file is edited as UTF-8. 5 | # The following line should contain a sharp s: 6 | # ß 7 | # If the above line is not correctly displayed, fix your editor first! 8 | 9 | general { 10 | colors = true 11 | interval = 5 12 | } 13 | 14 | order += "ethernet eth0" 15 | order += "ethernet enp0s3" 16 | order += "disk /" 17 | order += "cpu_usage" 18 | order += "load" 19 | order += "tztime local" 20 | 21 | ethernet eth0 { 22 | format_up = "eth0: %ip (%speed)" 23 | format_down = "eth0: down" 24 | } 25 | ethernet enp0s3 { 26 | format_up = "enp0s3: %ip (%speed)" 27 | format_down = "enp0s3: down" 28 | } 29 | 30 | disk "/" { 31 | format = "/dev/sda1: %free" 32 | } 33 | cpu_usage { 34 | format = "CPU U: %usage" 35 | } 36 | 37 | load { 38 | format = "%1min" 39 | } 40 | 41 | tztime local { 42 | format = "%Y-%m-%d %H:%M:%S" 43 | } 44 | -------------------------------------------------------------------------------- /home/mloskot/.config/i3status/config: -------------------------------------------------------------------------------- 1 | # i3status config file (v4) - ~/.config/i3status/config or ~/.i3status.conf 2 | # 3 | # Please see http://i3wm.org/i3status/manpage.html for a complete reference! 4 | # 5 | # Author: Mateusz Loskot 6 | # 7 | general { 8 | colors = true 9 | #color_good = "#00FF00" 10 | #color_degraded = "#FFFF00" 11 | #color_bad = "#FF0000" 12 | interval = 5 13 | } 14 | 15 | order += "wireless wlp3s0" 16 | order += "disk /" 17 | order += "disk /home" 18 | order += "cpu_usage" 19 | order += "cpu_temperature 0" 20 | order += "load" 21 | order += "battery 0" 22 | order += "time" 23 | order += "volume master" 24 | 25 | wireless wlp3s0 { 26 | format_up = "W: %essid @ %ip (Q: %quality)" 27 | format_down = "W: down" 28 | } 29 | 30 | ethernet eth0 { 31 | # if you use %speed, i3status requires root privileges 32 | format_up = "E: %ip (%speed)" 33 | format_down = "E: down" 34 | } 35 | 36 | cpu_usage { 37 | format = "CPU U: %usage" 38 | } 39 | 40 | cpu_temperature 0 { 41 | format = "CPU T: %degrees °C" 42 | } 43 | 44 | disk / { 45 | format = "sda1: %used/%total" 46 | } 47 | 48 | disk "/home" { 49 | format = "sda3: %used/%total" 50 | } 51 | 52 | 53 | time { 54 | format = "D: %Y-%m-%d T: %H:%M:%S" 55 | } 56 | 57 | load { 58 | format = "L: %1min" 59 | } 60 | 61 | battery 0 { 62 | format = "%status %percentage %remaining (%consumption)" 63 | } 64 | 65 | volume master { 66 | format = "♪: %volume " 67 | device = "default" 68 | mixer = "Master" 69 | mixer_idx = 0 70 | } 71 | -------------------------------------------------------------------------------- /home/mloskot/.config/i3status/config.printmem: -------------------------------------------------------------------------------- 1 | # i3status config file (v4) - ~/.config/i3status/config or ~/.i3status.conf 2 | # 3 | # Please see http://i3wm.org/i3status/manpage.html for a complete reference! 4 | # 5 | # Author: Mateusz Loskot 6 | # 7 | general { 8 | colors = true 9 | interval = 5 10 | } 11 | 12 | order += "wireless wlan0" 13 | #order += "ethernet eth0" 14 | #order += "memory RAM" 15 | #order += "memory SWAP" 16 | order += "disk /" 17 | order += "disk /home" 18 | order += "cpu_usage" 19 | order += "cpu_temperature 0" 20 | order += "load" 21 | order += "battery 0" 22 | order += "time" 23 | order += "volume master" 24 | 25 | wireless wlan0 { 26 | format_up = "WLAN: (%quality @ %essid) IP: %ip" 27 | format_down = "W: down" 28 | } 29 | 30 | ethernet eth0 { 31 | # if you use %speed, i3status requires root privileges 32 | format_up = "ETH: %ip (%speed)" 33 | format_down = "ETH: down" 34 | } 35 | 36 | battery 0 { 37 | format = "%status: %percentage %remaining" 38 | #last_full_capacity = true 39 | } 40 | 41 | memory "RAM" { 42 | format = "RAM: %free" 43 | } 44 | 45 | memory SWAP { 46 | format = "SWP: %swapfree" 47 | } 48 | 49 | cpu_usage { 50 | format = "CPU U: %usage" 51 | } 52 | 53 | cpu_temperature 0 { 54 | format = "CPU T: %degrees °C" 55 | } 56 | 57 | time { 58 | format = "%Y-%m-%d %H:%M:%S" 59 | } 60 | 61 | load { 62 | format = "L: %1min" 63 | } 64 | 65 | disk / { 66 | format = "sda1: %used/%total" 67 | } 68 | 69 | disk "/home" { 70 | format = "sda3: %used/%total" 71 | } 72 | 73 | volume master { 74 | format = "♪: %volume " 75 | device = "default" 76 | mixer = "Master" 77 | mixer_idx = 0 78 | } 79 | -------------------------------------------------------------------------------- /home/mloskot/.config/openbox/autostart: -------------------------------------------------------------------------------- 1 | # 2 | # These things are run when an Openbox X Session is started. 3 | # You may place a similar script in $HOME/.config/openbox/autostart 4 | # to run user-specific things. 5 | # 6 | 7 | # If you want to use GNOME config tools... 8 | # 9 | #if test -x /usr/lib/openbox/gnome-settings-daemon >/dev/null; then 10 | # /usr/lib/openbox/gnome-settings-daemon & 11 | #elif which gnome-settings-daemon >/dev/null 2>&1; then 12 | # gnome-settings-daemon & 13 | #fi 14 | 15 | # If you want to use XFCE config tools... 16 | # 17 | #xfce-mcs-manager & 18 | 19 | # Taskbar 20 | tint2 & 21 | # Conky system monitor 22 | conky -q & 23 | # Volume control 24 | volumeicon -b & 25 | # Restore the last wallpaper used in nitrogen 26 | nitrogen --restore & 27 | # Thunar's file manager 28 | thunar --daemon & 29 | -------------------------------------------------------------------------------- /home/mloskot/.config/pacaur/config: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 4 | # ~/.config/pacaur/config 5 | # 6 | 7 | # The following options are commented out with their default values listed. 8 | # If you wish to use different values, uncomment and update the values. 9 | # The Color and VerbosePkgLists options can be enabled in /etc/pacman.conf. 10 | #builddir="${BUILDDIR:-$tmpdir}" # build directory 11 | editor="${EDITOR:-vim}" # PKGBUILD editor 12 | #editpkgbuild=true # edit PKGBUILD script 13 | #editinstall=true # edit install script 14 | #fallback=true # pacman fallback to the AUR 15 | #clean=true # clean up after package install 16 | #cleandevel=true # clean up devel package 17 | #sortbyvotes=true # sort search results by votes 18 | #sudoloop=false # prevent sudo timeout 19 | -------------------------------------------------------------------------------- /home/mloskot/.config/surfraw/conf: -------------------------------------------------------------------------------- 1 | # Surfraw - Shell Users' Revolutionary Front Against the World Wide Web 2 | SURFRAW_text_browser=/usr/bin/w3m 3 | SURFRAW_graphical=0 4 | -------------------------------------------------------------------------------- /home/mloskot/.config/tint2/tint2rc: -------------------------------------------------------------------------------- 1 | # Tint2 config file 2 | # Generated by tintwizard (http://code.google.com/p/tintwizard/) 3 | # For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure 4 | 5 | # Background definitions 6 | # ID 1 7 | rounded = 7 8 | border_width = 2 9 | background_color = #000000 60 10 | border_color = #FFFFFF 16 11 | 12 | # ID 2 13 | rounded = 5 14 | border_width = 0 15 | background_color = #FFFFFF 40 16 | border_color = #FFFFFF 48 17 | 18 | # ID 3 19 | rounded = 5 20 | border_width = 0 21 | background_color = #FFFFFF 16 22 | border_color = #FFFFFF 68 23 | 24 | # Panel 25 | panel_monitor = all 26 | panel_position = bottom center horizontal 27 | panel_size = 94% 30 28 | panel_margin = 0 0 29 | panel_padding = 7 0 7 30 | panel_dock = 0 31 | wm_menu = 0 32 | panel_layer = top 33 | panel_background_id = 1 34 | 35 | # Panel Autohide 36 | autohide = 0 37 | autohide_show_timeout = 0.3 38 | autohide_hide_timeout = 2 39 | autohide_height = 2 40 | strut_policy = follow_size 41 | 42 | # Taskbar 43 | taskbar_mode = single_desktop 44 | taskbar_padding = 2 3 2 45 | taskbar_background_id = 0 46 | taskbar_active_background_id = 0 47 | 48 | # Tasks 49 | urgent_nb_of_blink = 8 50 | task_icon = 1 51 | task_text = 1 52 | task_centered = 1 53 | task_maximum_size = 140 35 54 | task_padding = 6 2 55 | task_background_id = 3 56 | task_active_background_id = 2 57 | task_urgent_background_id = 2 58 | task_iconified_background_id = 3 59 | 60 | # Task Icons 61 | task_icon_asb = 70 0 0 62 | task_active_icon_asb = 100 0 0 63 | task_urgent_icon_asb = 100 0 0 64 | task_iconified_icon_asb = 70 0 0 65 | 66 | # Fonts 67 | task_font = sans 7 68 | task_font_color = #FFFFFF 68 69 | task_active_font_color = #FFFFFF 83 70 | task_urgent_font_color = #FFFFFF 83 71 | task_iconified_font_color = #FFFFFF 68 72 | font_shadow = 0 73 | 74 | # System Tray 75 | systray = 1 76 | systray_padding = 0 4 5 77 | systray_sort = ascending 78 | systray_background_id = 0 79 | systray_icon_size = 16 80 | systray_icon_asb = 70 0 0 81 | 82 | # Clock 83 | time1_format = %H:%M 84 | time1_font = sans 8 85 | time2_format = %A %d %B 86 | time2_font = sans 6 87 | clock_font_color = #FFFFFF 74 88 | clock_padding = 1 0 89 | clock_background_id = 0 90 | clock_rclick_command = orage 91 | 92 | # Tooltips 93 | tooltip = 0 94 | tooltip_padding = 2 2 95 | tooltip_show_timeout = 0.7 96 | tooltip_hide_timeout = 0.3 97 | tooltip_background_id = 1 98 | tooltip_font = sans 10 99 | tooltip_font_color = #000000 80 100 | 101 | # Mouse 102 | mouse_middle = none 103 | mouse_right = close 104 | mouse_scroll_up = toggle 105 | mouse_scroll_down = iconify 106 | 107 | # Battery 108 | battery = 0 109 | battery_low_status = 10 110 | battery_low_cmd = notify-send "battery low" 111 | battery_hide = 98 112 | bat1_font = sans 8 113 | bat2_font = sans 6 114 | battery_font_color = #FFFFFF 74 115 | battery_padding = 1 0 116 | battery_background_id = 0 117 | 118 | # End of config -------------------------------------------------------------------------------- /home/mloskot/.config/tint2/tint2rc.original: -------------------------------------------------------------------------------- 1 | # Tint2 config file 2 | # Generated by tintwizard (http://code.google.com/p/tintwizard/) 3 | # For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure 4 | 5 | # Background definitions 6 | # ID 1 7 | rounded = 7 8 | border_width = 2 9 | background_color = #000000 60 10 | border_color = #FFFFFF 16 11 | 12 | # ID 2 13 | rounded = 5 14 | border_width = 0 15 | background_color = #FFFFFF 40 16 | border_color = #FFFFFF 48 17 | 18 | # ID 3 19 | rounded = 5 20 | border_width = 0 21 | background_color = #FFFFFF 16 22 | border_color = #FFFFFF 68 23 | 24 | # Panel 25 | panel_monitor = all 26 | panel_position = bottom center horizontal 27 | panel_size = 94% 30 28 | panel_margin = 0 0 29 | panel_padding = 7 0 7 30 | panel_dock = 0 31 | wm_menu = 0 32 | panel_layer = top 33 | panel_background_id = 1 34 | 35 | # Panel Autohide 36 | autohide = 0 37 | autohide_show_timeout = 0.3 38 | autohide_hide_timeout = 2 39 | autohide_height = 2 40 | strut_policy = follow_size 41 | 42 | # Taskbar 43 | taskbar_mode = single_desktop 44 | taskbar_padding = 2 3 2 45 | taskbar_background_id = 0 46 | taskbar_active_background_id = 0 47 | 48 | # Tasks 49 | urgent_nb_of_blink = 8 50 | task_icon = 1 51 | task_text = 1 52 | task_centered = 1 53 | task_maximum_size = 140 35 54 | task_padding = 6 2 55 | task_background_id = 3 56 | task_active_background_id = 2 57 | task_urgent_background_id = 2 58 | task_iconified_background_id = 3 59 | 60 | # Task Icons 61 | task_icon_asb = 70 0 0 62 | task_active_icon_asb = 100 0 0 63 | task_urgent_icon_asb = 100 0 0 64 | task_iconified_icon_asb = 70 0 0 65 | 66 | # Fonts 67 | task_font = sans 7 68 | task_font_color = #FFFFFF 68 69 | task_active_font_color = #FFFFFF 83 70 | task_urgent_font_color = #FFFFFF 83 71 | task_iconified_font_color = #FFFFFF 68 72 | font_shadow = 0 73 | 74 | # System Tray 75 | systray = 1 76 | systray_padding = 0 4 5 77 | systray_sort = ascending 78 | systray_background_id = 0 79 | systray_icon_size = 16 80 | systray_icon_asb = 70 0 0 81 | 82 | # Clock 83 | time1_format = %H:%M 84 | time1_font = sans 8 85 | time2_format = %A %d %B 86 | time2_font = sans 6 87 | clock_font_color = #FFFFFF 74 88 | clock_padding = 1 0 89 | clock_background_id = 0 90 | clock_rclick_command = orage 91 | 92 | # Tooltips 93 | tooltip = 0 94 | tooltip_padding = 2 2 95 | tooltip_show_timeout = 0.7 96 | tooltip_hide_timeout = 0.3 97 | tooltip_background_id = 1 98 | tooltip_font = sans 10 99 | tooltip_font_color = #000000 80 100 | 101 | # Mouse 102 | mouse_middle = none 103 | mouse_right = close 104 | mouse_scroll_up = toggle 105 | mouse_scroll_down = iconify 106 | 107 | # Battery 108 | battery = 0 109 | battery_low_status = 10 110 | battery_low_cmd = notify-send "battery low" 111 | battery_hide = 98 112 | bat1_font = sans 8 113 | bat2_font = sans 6 114 | battery_font_color = #FFFFFF 74 115 | battery_padding = 1 0 116 | battery_background_id = 0 117 | 118 | # End of config -------------------------------------------------------------------------------- /home/mloskot/.config/user-dirs.dirs: -------------------------------------------------------------------------------- 1 | # This file is written by xdg-user-dirs-update 2 | # If you want to change or add directories, just edit the line you're 3 | # interested in. All local changes will be retained on the next run 4 | # Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped 5 | # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an 6 | # absolute path. No other format is supported. 7 | # 8 | XDG_DESKTOP_DIR="$HOME/Desktop" 9 | XDG_DOWNLOAD_DIR="$HOME/Downloads" 10 | XDG_TEMPLATES_DIR="$HOME/Templates" 11 | XDG_PUBLICSHARE_DIR="$HOME/Public" 12 | XDG_DOCUMENTS_DIR="$HOME/Documents" 13 | XDG_MUSIC_DIR="$HOME/Music" 14 | XDG_PICTURES_DIR="$HOME/Pictures" 15 | XDG_VIDEOS_DIR="$HOME/Videos" 16 | -------------------------------------------------------------------------------- /home/mloskot/.config/user-dirs.locale: -------------------------------------------------------------------------------- 1 | en_US -------------------------------------------------------------------------------- /home/mloskot/.config/volumeicon.vb/volumeicon: -------------------------------------------------------------------------------- 1 | [Alsa] 2 | card=Intel 82801AA-ICH 3 | channel=Master 4 | 5 | [Notification] 6 | show_notification=false 7 | notification_type=0 8 | 9 | [StatusIcon] 10 | stepsize=5 11 | onclick=xterm -e 'alsamixer' 12 | theme=Blue Bar 13 | use_panel_specific_icons=false 14 | lmb_slider=true 15 | mmb_mute=true 16 | use_horizontal_slider=false 17 | show_sound_level=true 18 | use_transparent_background=false 19 | 20 | [Hotkeys] 21 | up_enabled=true 22 | down_enabled=true 23 | mute_enabled=true 24 | up=XF86AudioRaiseVolume 25 | down=XF86AudioLowerVolume 26 | mute=XF86AudioMute 27 | -------------------------------------------------------------------------------- /home/mloskot/.config/volumeicon/volumeicon: -------------------------------------------------------------------------------- 1 | [StatusIcon] 2 | stepsize=5 3 | lmb_slider=true 4 | mmb_mute=true 5 | use_horizontal_slider=false 6 | show_sound_level=true 7 | onclick=xterm -e 'alsamixer' 8 | theme=Blue Bar 9 | 10 | [Hotkeys] 11 | up_enabled=true 12 | down_enabled=true 13 | mute_enabled=true 14 | up=XF86AudioRaiseVolume 15 | down=XF86AudioLowerVolume 16 | mute=XF86AudioMute 17 | 18 | [Alsa] 19 | card=default 20 | -------------------------------------------------------------------------------- /home/mloskot/.conkyrc: -------------------------------------------------------------------------------- 1 | background yes 2 | use_xft yes 3 | xftfont monospace:size=9 4 | xftalpha 1 5 | update_interval 1.0 6 | total_run_times 0 7 | own_window yes 8 | own_window_transparent yes 9 | own_window_type desktop 10 | own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 11 | own_window_colour black 12 | double_buffer yes 13 | minimum_size 1 1 14 | maximum_width 240 15 | draw_shades no 16 | draw_outline no 17 | draw_borders no 18 | draw_graph_borders no 19 | default_color gray 20 | default_shade_color 000000 21 | default_outline_color d9d7d6 22 | alignment tl 23 | gap_x 12 24 | gap_y 50 25 | no_buffers yes 26 | uppercase no 27 | cpu_avg_samples 2 28 | override_utf8_locale no 29 | color1 red 30 | color2 gray 31 | ############################################## 32 | # Output 33 | ############################################## 34 | TEXT 35 | CPU: ${cpubar cpu0} 36 | RAM: $membar 37 | 38 | ${font sans-serif:bold:size=8}SYSTEM ${hr 2} 39 | ${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine 40 | Host:$alignr$nodename 41 | Uptime:$alignr$uptime 42 | 43 | ${font sans-serif:bold:size=8}TOP PROCESSES ${hr 2} 44 | ${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} % 45 | ${top_mem name 2}${alignr}${top mem 2} % 46 | $font${top_mem name 3}${alignr}${top mem 3} % 47 | $font${top_mem name 4}${alignr}${top mem 4} % 48 | 49 | ${font sans-serif:bold:size=8}SHORTCUT KEYS ${hr 2} 50 | ${font sans-serif:normal:size=8}Alt+F2$alignr Run Dialog 51 | Alt+F3$alignr Dmenu 52 | Super+space$alignr Main Menu 53 | Super+t$alignr Terminal 54 | Super+f$alignr File Manager 55 | Super+e$alignr Editor 56 | Super+m$alignr Media Player 57 | Super+w$alignr Web Browser 58 | Super+q$alignr Force Quit 59 | Super+g$alignr Character Map 60 | Super+l$alignr Lock 61 | Super+u$alignr System Upgrade 62 | Super+r$alignr Read the DOC 63 | Super+x$alignr Tiling Keybinds 64 | -------------------------------------------------------------------------------- /home/mloskot/.fehbg: -------------------------------------------------------------------------------- 1 | feh --bg-scale '/home/mloskot/.wallpapers/231-blue-dotted-pattern-1920x1200-minimalistic-wallpaper.png' 2 | -------------------------------------------------------------------------------- /home/mloskot/.gemrc: -------------------------------------------------------------------------------- 1 | # 2 | # ~/.gemrc - RubyGems configuration file 3 | # 4 | # Part of https://github.com/mloskot/archlinux-config 5 | # Mateusz Loskot 6 | # 7 | # Read about the gemrc format at http://docs.rubygems.org/read/chapter/11 8 | # 9 | # --user-install is used to install to $HOME/.gem/ by default 10 | # since we want to separate 11 | # pacman installed gems and gem installed gems 12 | # :update_sources: true 13 | # gemhome: /home/username/gems 14 | gempath: 15 | - /home/mloskot/.gems 16 | gem: --user-install --no-ri --no-rdoc 17 | :verbose: true 18 | :benchmark: false 19 | :backtrace: false 20 | :bulk_threshold: 1000 21 | :sources: 22 | - http://gems.rubyforge.org 23 | - http://gems.github.com 24 | -------------------------------------------------------------------------------- /home/mloskot/.gitconfig: -------------------------------------------------------------------------------- 1 | [user] 2 | name = Mateusz Łoskot 3 | email = mateusz@loskot.net 4 | signingkey = BB2AC1F2 5 | [color] 6 | branch = auto 7 | diff = auto 8 | status = auto 9 | ui = auto 10 | [core] 11 | excludesfile = /home/mloskot/.gitignore_global 12 | editor = gvim --nofork 13 | autocrlf = input 14 | pager = less -FRSX 15 | [alias] 16 | # commands shorcuts 17 | st = status 18 | ci = commit 19 | br = branch 20 | co = checkout 21 | df = diff 22 | dc = diff --cached 23 | gf = flow 24 | # log aliases 25 | lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit 26 | lol = log --graph --decorate --pretty=oneline --abbrev-commit 27 | lola = log --graph --decorate --pretty=oneline --abbrev-commit --all 28 | ls = ls-files 29 | # generate GitHub repository changelog in Markdown 30 | # usage: git first_tag last_tag github_user github_repo 31 | ghclm = !sh -c 'git log $1...$2 --pretty=format:\"* [view](http://github.com/$3/$4/commit/%H) - %s\"' - 32 | # show files ignored by git: 33 | ign = ls-files -o -i --exclude-standard 34 | [github] 35 | user = mloskot 36 | [push] 37 | default = simple 38 | [status] 39 | showuntrackedfiles = all 40 | [rerere] 41 | enabled = true 42 | autoupdate = true 43 | [rebase] 44 | stat = true 45 | -------------------------------------------------------------------------------- /home/mloskot/.gitignore_global: -------------------------------------------------------------------------------- 1 | # 2 | # ~/.gitignore - global git ignore file 3 | # 4 | #.* 5 | !.gitignore 6 | *~ 7 | *.c~ 8 | *.cpp~ 9 | *.swp 10 | 11 | # Object files 12 | *.o 13 | *.lo 14 | *.slo 15 | 16 | # Libraries 17 | *.lib 18 | 19 | # Shared objects (inc. Windows DLLs) 20 | *.so 21 | *.dll 22 | 23 | # Executables 24 | *.exe 25 | *.out 26 | 27 | # Compiled Static libraries 28 | *.la 29 | *.lai 30 | 31 | # CMake 32 | CMakeCache.txt 33 | CMakeFiles 34 | cmake_install.cmake 35 | 36 | # KDE 37 | .directory 38 | *.kdev4 39 | 40 | # Build directories 41 | _build 42 | _build.* 43 | -------------------------------------------------------------------------------- /home/mloskot/.gtkrc-2.0: -------------------------------------------------------------------------------- 1 | # 2 | # ~/.gtkrc-2.0 3 | # 4 | # Part of https://github.com/mloskot/archlinux-config 5 | # Mateusz Loskot 6 | # 7 | gtk-theme-name = "Clearlooks" 8 | gtk-icon-theme-name = "Tango" 9 | gtk-font-name = "Sans 8" 10 | gtk-toolbar-style = GTK_TOOLBAR_ICONS 11 | gtk-toolbar-icon-size = GTK_ICON_SIZE_SMALL_TOOLBAR 12 | -------------------------------------------------------------------------------- /home/mloskot/.kde4/share/config/krusaderrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/.kde4/share/config/krusaderrc -------------------------------------------------------------------------------- /home/mloskot/.packer.conf: -------------------------------------------------------------------------------- 1 | # 2 | # ~/.packer.conf - user-specific configuration file for packer 3 | # 4 | #-- Cache directory: location used as working directory by packer 5 | PACKER_CACHEDIR="$HOME/.packer" 6 | #-- Keep build directory as persistent cache of built packages 7 | PACKER_KEEP_CACHE=true 8 | -------------------------------------------------------------------------------- /home/mloskot/.profile: -------------------------------------------------------------------------------- 1 | # 2 | # ~/.profile - executed by the command interpreter for login shells 3 | # 4 | # Part of https://github.com/mloskot/archlinux-config 5 | # Mateusz Loskot 6 | # 7 | # This file is not read by bash(1), if ~/.bash_profile or 8 | # ~/.bash_login exists. 9 | # see /usr/share/doc/bash/examples/startup-files for examples. 10 | # the files are located in the bash-doc package. 11 | echo "Sourcing ${HOME}/.profile..." 12 | 13 | # the default umask is set in /etc/profile; for setting the umask 14 | # for ssh logins, install and configure the libpam-umask package. 15 | #umask 022 16 | 17 | # setting TERM based on COLORTERM 18 | case $COLORTERM in 19 | xfce4-terminal) export TERM=xterm-color ;; # this is XFCE Terminal 20 | gnome-terminal) export TERM=xterm-color ;; # this is gnome-terminal 21 | wterm-xpm) export TERM=xterm ;; # this is wterm 22 | Eterm) export TERM=Eterm ;; # this is Eterm 23 | 1) export TERM=xterm-color ;; # this is lxterminal, konsole, yakuake, uxterm, Mac OSX terminal, putty ... 24 | esac 25 | 26 | # if running bash 27 | if [ -n "$BASH_VERSION" ]; then 28 | # include .bashrc if it exists 29 | if [ -f "$HOME/.bashrc" ]; then 30 | . "$HOME/.bashrc" 31 | fi 32 | fi 33 | -------------------------------------------------------------------------------- /home/mloskot/.ssh/config: -------------------------------------------------------------------------------- 1 | Host github.com 2 | IdentityFile ~/.ssh/id_rsa 3 | User mloskot 4 | 5 | Host bitbucket.org 6 | IdentityFile ~/.ssh/id_rsa.bitbucket 7 | User mloskot 8 | 9 | Host bazaar.launchpad.net 10 | IdentityFile ~/.ssh/id_rsa.launchpad 11 | User mloskot 12 | 13 | Host gitorious.org 14 | IdentityFile ~/.ssh/id_rsa.gitorious 15 | User mloskot 16 | 17 | Host codereview.qt-project.org 18 | IdentityFile ~/.ssh/id_rsa.codereview.qt-project 19 | Port 29418 20 | User mloskot 21 | 22 | -------------------------------------------------------------------------------- /home/mloskot/.vim/.VimballRecord: -------------------------------------------------------------------------------- 1 | clang_complete.vmb: call delete('/home/mloskot/.vim/bin/cc_args.py')|call delete('/home/mloskot/.vim/doc/clang_complete.txt')|call delete('/home/mloskot/.vim/plugin/clang/__init__.py')|call delete('/home/mloskot/.vim/plugin/clang/cindex.py')|call delete('/home/mloskot/.vim/plugin/clang/enumerations.py')|call delete('/home/mloskot/.vim/plugin/clang_complete.vim')|call delete('/home/mloskot/.vim/plugin/libclang.py')|call delete('/home/mloskot/.vim/plugin/snippets/__init__.py')|call delete('/home/mloskot/.vim/plugin/snippets/clang_complete.py')|call delete('/home/mloskot/.vim/plugin/snippets/dummy.py')|call delete('/home/mloskot/.vim/plugin/snippets/ultisnips.py') 2 | -------------------------------------------------------------------------------- /home/mloskot/.vim/after/ftplugin/cmake.vim: -------------------------------------------------------------------------------- 1 | setlocal textwidth=80 "wrap lines longer than this length 2 | setlocal tabstop=2 "tabs stops every 2 characters 3 | setlocal softtabstop=2 4 | setlocal shiftwidth=2 "size of a tab 5 | setlocal expandtab "tabs to spaces 6 | -------------------------------------------------------------------------------- /home/mloskot/.vim/after/ftplugin/m4.vim: -------------------------------------------------------------------------------- 1 | setlocal textwidth=80 "wrap lines longer than this length 2 | colorscheme bensday 3 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/cmakecomplete.vim.orig: -------------------------------------------------------------------------------- 1 | " Description: Omni completion for CMake 2 | " Maintainer: Richard Quirk richard.quirk at gmail.com 3 | " License: Apache License 2.0 4 | " 5 | " To install this, copy the contents of this file to 6 | " $HOME/.vim/autoload/cmakecomplete.vim 7 | " and add the following line to your .vimrc file 8 | " autocmd FileType cmake set omnifunc=cmakecomplete#Complete 9 | " (uncommented, of course!) 10 | " Then in a CMakeLists.txt file, use C-X C-O to autocomplete cmake 11 | " keywords with the corresponding info shown in the info buffer. 12 | 13 | " this is the list of potential completions 14 | let s:cmake_items = [] 15 | let s:cmake_properties = [] 16 | let s:cmake_modules = [] 17 | 18 | function cmakecomplete#AddWord(word, info, list, ignore_case) 19 | " strip the leading spaces, add the info 20 | call add(a:list, {'word': substitute(a:word, '^\W\+', '', 'g'), 21 | \ 'icase': a:ignore_case, 22 | \ 'info': a:info}) 23 | endfunction 24 | 25 | function cmakecomplete#Init(help, list, ignore_case) 26 | " parse the help to get completions 27 | let output = system('cmake --help-' . a:help) 28 | let word = '' 29 | let info = '' 30 | let re = '^\W\W[a-zA-Z_]\+$' 31 | if !a:ignore_case 32 | let re = '^\W\W[A-Z_]\+$' 33 | endif 34 | for c in split(output, '\n') 35 | " CMake commands start with 2 blanks and then a lowercase letter 36 | if c =~ re 37 | if word != '' 38 | call cmakecomplete#AddWord(word, info, a:list, a:ignore_case) 39 | endif 40 | let info = c . "\n" 41 | let word = c 42 | else 43 | " if we have a command, then the rest is the help 44 | if word != '' 45 | " End of the help is marked with line of dashes 46 | " But only after getting at least one command 47 | if c =~ '^-\+$' 48 | continue 49 | endif 50 | let info = info . c . "\n" 51 | endif 52 | endif 53 | endfor 54 | " add the last command to the list 55 | if word != '' 56 | call cmakecomplete#AddWord(word, info, a:list, a:ignore_case) 57 | endif 58 | endfunction 59 | 60 | function! cmakecomplete#InComment() 61 | return match(synIDattr(synID(line("."), col(".")-1, 1), "name"), '\= 0 62 | endfunction 63 | 64 | function! cmakecomplete#InFunction(line) 65 | let current_method = matchstr(a:line, '.*([^)]*$') 66 | if current_method != '' 67 | return 1 68 | endif 69 | return 0 70 | endfunction 71 | 72 | function! cmakecomplete#InInclude(line) 73 | let current_method = matchstr(tolower(a:line), 'include([^)]*$') 74 | if current_method != '' 75 | return 1 76 | endif 77 | return 0 78 | endfunction 79 | 80 | function! cmakecomplete#Complete(findstart, base) 81 | if a:findstart == 1 82 | let s:cmakeNoComplete = 0 83 | " first time, wants to know where the word starts 84 | if cmakecomplete#InComment() 85 | let s:cmakeNoComplete = 1 86 | return -1 87 | endif 88 | let line = getline('.') 89 | let start = col('.') - 1 90 | while start > 0 && line[start - 1] =~ '[a-zA-Z_]' 91 | let start -= 1 92 | endwhile 93 | let s:compl_context = line[0:col('.')-2] 94 | return start 95 | endif 96 | if exists("s:compl_context") 97 | let line = s:compl_context 98 | unlet! s:compl_context 99 | else 100 | let line = a:base 101 | endif 102 | 103 | if s:cmakeNoComplete 104 | return [] 105 | endif 106 | 107 | let res = [] 108 | let list = s:cmake_items 109 | let match = '^' . tolower(a:base) 110 | if cmakecomplete#InInclude(line) 111 | " return modules 112 | let match = '^' . a:base 113 | let list = s:cmake_modules 114 | elseif cmakecomplete#InFunction(line) 115 | " return completion variables 116 | let match = '^' . a:base 117 | let list = s:cmake_properties 118 | endif 119 | " return the completion words 120 | for m in list 121 | if m['word'] =~ match 122 | call add(res, m) 123 | endif 124 | endfor 125 | " problem here: always returns lower case 126 | return res 127 | endfunction 128 | call cmakecomplete#Init('commands', s:cmake_items, 1) 129 | call cmakecomplete#Init('properties', s:cmake_properties, 0) 130 | call cmakecomplete#Init('modules', s:cmake_modules, 1) 131 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/fuf/bookmarkdir.vim: -------------------------------------------------------------------------------- 1 | "============================================================================= 2 | " Copyright (c) 2010 Takeshi NISHIDA 3 | " 4 | "============================================================================= 5 | " LOAD GUARD {{{1 6 | 7 | if !l9#guardScriptLoading(expand(':p'), 0, 0, []) 8 | finish 9 | endif 10 | 11 | " }}}1 12 | "============================================================================= 13 | " GLOBAL FUNCTIONS {{{1 14 | 15 | " 16 | function fuf#bookmarkdir#createHandler(base) 17 | return a:base.concretize(copy(s:handler)) 18 | endfunction 19 | 20 | " 21 | function fuf#bookmarkdir#getSwitchOrder() 22 | return g:fuf_bookmarkdir_switchOrder 23 | endfunction 24 | 25 | " 26 | function fuf#bookmarkdir#getEditableDataNames() 27 | return ['items'] 28 | endfunction 29 | 30 | " 31 | function fuf#bookmarkdir#renewCache() 32 | endfunction 33 | 34 | " 35 | function fuf#bookmarkdir#requiresOnCommandPre() 36 | return 0 37 | endfunction 38 | 39 | " 40 | function fuf#bookmarkdir#onInit() 41 | call fuf#defineLaunchCommand('FufBookmarkDir', s:MODE_NAME, '""', []) 42 | command! -bang -narg=? FufBookmarkDirAdd call s:bookmark() 43 | endfunction 44 | 45 | " }}}1 46 | "============================================================================= 47 | " LOCAL FUNCTIONS/VARIABLES {{{1 48 | 49 | let s:MODE_NAME = expand(':t:r') 50 | let s:OPEN_TYPE_DELETE = -1 51 | 52 | " 53 | function s:bookmark(word) 54 | let item = { 55 | \ 'time' : localtime(), 56 | \ } 57 | 58 | let item.path = l9#inputHl('Question', '[fuf] Directory to bookmark:', 59 | \ fnamemodify(getcwd(), ':p:~'), 'dir') 60 | if item.path !~ '\S' 61 | call fuf#echoWarning('Canceled') 62 | return 63 | endif 64 | let item.word = l9#inputHl('Question', '[fuf] Bookmark as:', 65 | \ fnamemodify(getcwd(), ':p:~')) 66 | if item.word !~ '\S' 67 | call fuf#echoWarning('Canceled') 68 | return 69 | endif 70 | let items = fuf#loadDataFile(s:MODE_NAME, 'items') 71 | call insert(items, item) 72 | call fuf#saveDataFile(s:MODE_NAME, 'items', items) 73 | endfunction 74 | 75 | " 76 | function s:findItem(items, word) 77 | for item in a:items 78 | if item.word ==# a:word 79 | return item 80 | endif 81 | endfor 82 | return {} 83 | endfunction 84 | 85 | " }}}1 86 | "============================================================================= 87 | " s:handler {{{1 88 | 89 | let s:handler = {} 90 | 91 | " 92 | function s:handler.getModeName() 93 | return s:MODE_NAME 94 | endfunction 95 | 96 | " 97 | function s:handler.getPrompt() 98 | return fuf#formatPrompt(g:fuf_bookmarkdir_prompt, self.partialMatching, '') 99 | endfunction 100 | 101 | " 102 | function s:handler.getPreviewHeight() 103 | return 0 104 | endfunction 105 | 106 | " 107 | function s:handler.isOpenable(enteredPattern) 108 | return 1 109 | endfunction 110 | 111 | " 112 | function s:handler.makePatternSet(patternBase) 113 | return fuf#makePatternSet(a:patternBase, 's:interpretPrimaryPatternForNonPath', 114 | \ self.partialMatching) 115 | endfunction 116 | 117 | " 118 | function s:handler.makePreviewLines(word, count) 119 | return [] 120 | endfunction 121 | 122 | " 123 | function s:handler.getCompleteItems(patternPrimary) 124 | return self.items 125 | endfunction 126 | 127 | " 128 | function s:handler.onOpen(word, mode) 129 | if a:mode ==# s:OPEN_TYPE_DELETE 130 | let items = fuf#loadDataFile(s:MODE_NAME, 'items') 131 | call filter(items, 'v:val.word !=# a:word') 132 | call fuf#saveDataFile(s:MODE_NAME, 'items', items) 133 | let self.reservedMode = self.getModeName() 134 | return 135 | else 136 | let item = s:findItem(fuf#loadDataFile(s:MODE_NAME, 'items'), a:word) 137 | if !empty(item) 138 | execute ':cd ' . fnameescape(item.path) 139 | endif 140 | endif 141 | endfunction 142 | 143 | " 144 | function s:handler.onModeEnterPre() 145 | endfunction 146 | 147 | " 148 | function s:handler.onModeEnterPost() 149 | call fuf#defineKeyMappingInHandler(g:fuf_bookmarkdir_keyDelete, 150 | \ 'onCr(' . s:OPEN_TYPE_DELETE . ')') 151 | let self.items = fuf#loadDataFile(s:MODE_NAME, 'items') 152 | call map(self.items, 'fuf#makeNonPathItem(v:val.word, strftime(g:fuf_timeFormat, v:val.time))') 153 | call fuf#mapToSetSerialIndex(self.items, 1) 154 | call map(self.items, 'fuf#setAbbrWithFormattedWord(v:val, 1)') 155 | endfunction 156 | 157 | " 158 | function s:handler.onModeLeavePost(opened) 159 | endfunction 160 | 161 | " }}}1 162 | "============================================================================= 163 | " vim: set fdm=marker: 164 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/fuf/callbackfile.vim: -------------------------------------------------------------------------------- 1 | "============================================================================= 2 | " Copyright (c) 2007-2010 Takeshi NISHIDA 3 | " 4 | "============================================================================= 5 | " LOAD GUARD {{{1 6 | 7 | if !l9#guardScriptLoading(expand(':p'), 0, 0, []) 8 | finish 9 | endif 10 | 11 | " }}}1 12 | "============================================================================= 13 | " GLOBAL FUNCTIONS {{{1 14 | 15 | " 16 | function fuf#callbackfile#createHandler(base) 17 | return a:base.concretize(copy(s:handler)) 18 | endfunction 19 | 20 | " 21 | function fuf#callbackfile#getSwitchOrder() 22 | return -1 23 | endfunction 24 | 25 | " 26 | function fuf#callbackfile#getEditableDataNames() 27 | return [] 28 | endfunction 29 | 30 | " 31 | function fuf#callbackfile#renewCache() 32 | let s:cache = {} 33 | endfunction 34 | 35 | " 36 | function fuf#callbackfile#requiresOnCommandPre() 37 | return 0 38 | endfunction 39 | 40 | " 41 | function fuf#callbackfile#onInit() 42 | endfunction 43 | 44 | " 45 | function fuf#callbackfile#launch(initialPattern, partialMatching, prompt, exclude, listener) 46 | let s:prompt = (empty(a:prompt) ? '>' : a:prompt) 47 | let s:exclude = a:exclude 48 | let s:listener = a:listener 49 | call fuf#launch(s:MODE_NAME, a:initialPattern, a:partialMatching) 50 | endfunction 51 | 52 | " }}}1 53 | "============================================================================= 54 | " LOCAL FUNCTIONS/VARIABLES {{{1 55 | 56 | let s:MODE_NAME = expand(':t:r') 57 | 58 | " 59 | function s:enumItems(dir) 60 | let key = getcwd() . g:fuf_ignoreCase . s:exclude . "\n" . a:dir 61 | if !exists('s:cache[key]') 62 | let s:cache[key] = fuf#enumExpandedDirsEntries(a:dir, s:exclude) 63 | if isdirectory(a:dir) 64 | call insert(s:cache[key], fuf#makePathItem(a:dir . '.', '', 0)) 65 | endif 66 | call fuf#mapToSetSerialIndex(s:cache[key], 1) 67 | call fuf#mapToSetAbbrWithSnippedWordAsPath(s:cache[key]) 68 | endif 69 | return s:cache[key] 70 | endfunction 71 | 72 | " }}}1 73 | "============================================================================= 74 | " s:handler {{{1 75 | 76 | let s:handler = {} 77 | 78 | " 79 | function s:handler.getModeName() 80 | return s:MODE_NAME 81 | endfunction 82 | 83 | " 84 | function s:handler.getPrompt() 85 | return fuf#formatPrompt(s:prompt, self.partialMatching, '') 86 | endfunction 87 | 88 | " 89 | function s:handler.getPreviewHeight() 90 | return g:fuf_previewHeight 91 | endfunction 92 | 93 | " 94 | function s:handler.isOpenable(enteredPattern) 95 | return a:enteredPattern =~# '[^/\\]$' 96 | endfunction 97 | 98 | " 99 | function s:handler.makePatternSet(patternBase) 100 | return fuf#makePatternSet(a:patternBase, 's:interpretPrimaryPatternForPathTail', 101 | \ self.partialMatching) 102 | endfunction 103 | 104 | " 105 | function s:handler.makePreviewLines(word, count) 106 | return fuf#makePreviewLinesForFile(a:word, a:count, self.getPreviewHeight()) 107 | endfunction 108 | 109 | " 110 | function s:handler.getCompleteItems(patternPrimary) 111 | let items = copy(s:enumItems(fuf#splitPath(a:patternPrimary).head)) 112 | return filter(items, 'bufnr("^" . v:val.word . "$") != self.bufNrPrev') 113 | endfunction 114 | 115 | " 116 | function s:handler.onOpen(word, mode) 117 | call s:listener.onComplete(a:word, a:mode) 118 | endfunction 119 | 120 | " 121 | function s:handler.onModeEnterPre() 122 | endfunction 123 | 124 | " 125 | function s:handler.onModeEnterPost() 126 | endfunction 127 | 128 | " 129 | function s:handler.onModeLeavePost(opened) 130 | if !a:opened && exists('s:listener.onAbort()') 131 | call s:listener.onAbort() 132 | endif 133 | endfunction 134 | 135 | " }}}1 136 | "============================================================================= 137 | " vim: set fdm=marker: 138 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/fuf/callbackitem.vim: -------------------------------------------------------------------------------- 1 | "============================================================================= 2 | " Copyright (c) 2007-2010 Takeshi NISHIDA 3 | " 4 | "============================================================================= 5 | " LOAD GUARD {{{1 6 | 7 | if !l9#guardScriptLoading(expand(':p'), 0, 0, []) 8 | finish 9 | endif 10 | 11 | " }}}1 12 | "============================================================================= 13 | " GLOBAL FUNCTIONS {{{1 14 | 15 | " 16 | function fuf#callbackitem#createHandler(base) 17 | return a:base.concretize(copy(s:handler)) 18 | endfunction 19 | 20 | " 21 | function fuf#callbackitem#getSwitchOrder() 22 | return -1 23 | endfunction 24 | 25 | " 26 | function fuf#callbackitem#getEditableDataNames() 27 | return [] 28 | endfunction 29 | 30 | " 31 | function fuf#callbackitem#renewCache() 32 | endfunction 33 | 34 | " 35 | function fuf#callbackitem#requiresOnCommandPre() 36 | return 0 37 | endfunction 38 | 39 | " 40 | function fuf#callbackitem#onInit() 41 | endfunction 42 | 43 | " 44 | function fuf#callbackitem#launch(initialPattern, partialMatching, prompt, listener, items, forPath) 45 | let s:prompt = (empty(a:prompt) ? '>' : a:prompt) 46 | let s:listener = a:listener 47 | let s:forPath = a:forPath 48 | let s:items = copy(a:items) 49 | if s:forPath 50 | call map(s:items, 'fuf#makePathItem(v:val, "", 1)') 51 | call fuf#mapToSetSerialIndex(s:items, 1) 52 | call fuf#mapToSetAbbrWithSnippedWordAsPath(s:items) 53 | else 54 | call map(s:items, 'fuf#makeNonPathItem(v:val, "")') 55 | call fuf#mapToSetSerialIndex(s:items, 1) 56 | call map(s:items, 'fuf#setAbbrWithFormattedWord(v:val, 1)') 57 | endif 58 | call fuf#launch(s:MODE_NAME, a:initialPattern, a:partialMatching) 59 | endfunction 60 | 61 | " }}}1 62 | "============================================================================= 63 | " LOCAL FUNCTIONS/VARIABLES {{{1 64 | 65 | let s:MODE_NAME = expand(':t:r') 66 | 67 | " }}}1 68 | "============================================================================= 69 | " s:handler {{{1 70 | 71 | let s:handler = {} 72 | 73 | " 74 | function s:handler.getModeName() 75 | return s:MODE_NAME 76 | endfunction 77 | 78 | " 79 | function s:handler.getPrompt() 80 | return fuf#formatPrompt(s:prompt, self.partialMatching, '') 81 | endfunction 82 | 83 | " 84 | function s:handler.getPreviewHeight() 85 | if s:forPath 86 | return g:fuf_previewHeight 87 | endif 88 | return 0 89 | endfunction 90 | 91 | " 92 | function s:handler.isOpenable(enteredPattern) 93 | return 1 94 | endfunction 95 | 96 | " 97 | function s:handler.makePatternSet(patternBase) 98 | let parser = (s:forPath 99 | \ ? 's:interpretPrimaryPatternForPath' 100 | \ : 's:interpretPrimaryPatternForNonPath') 101 | return fuf#makePatternSet(a:patternBase, parser, self.partialMatching) 102 | endfunction 103 | 104 | " 105 | function s:handler.makePreviewLines(word, count) 106 | if s:forPath 107 | return fuf#makePreviewLinesForFile(a:word, a:count, self.getPreviewHeight()) 108 | endif 109 | return [] 110 | endfunction 111 | 112 | " 113 | function s:handler.getCompleteItems(patternPrimary) 114 | return s:items 115 | endfunction 116 | 117 | " 118 | function s:handler.onOpen(word, mode) 119 | call s:listener.onComplete(a:word, a:mode) 120 | endfunction 121 | 122 | " 123 | function s:handler.onModeEnterPre() 124 | endfunction 125 | 126 | " 127 | function s:handler.onModeEnterPost() 128 | endfunction 129 | 130 | " 131 | function s:handler.onModeLeavePost(opened) 132 | if !a:opened && exists('s:listener.onAbort()') 133 | call s:listener.onAbort() 134 | endif 135 | endfunction 136 | 137 | " }}}1 138 | "============================================================================= 139 | " vim: set fdm=marker: 140 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/fuf/changelist.vim: -------------------------------------------------------------------------------- 1 | "============================================================================= 2 | " Copyright (c) 2007-2010 Takeshi NISHIDA 3 | " 4 | "============================================================================= 5 | " LOAD GUARD {{{1 6 | 7 | if !l9#guardScriptLoading(expand(':p'), 0, 0, []) 8 | finish 9 | endif 10 | 11 | " }}}1 12 | "============================================================================= 13 | " GLOBAL FUNCTIONS {{{1 14 | 15 | " 16 | function fuf#changelist#createHandler(base) 17 | return a:base.concretize(copy(s:handler)) 18 | endfunction 19 | 20 | " 21 | function fuf#changelist#getSwitchOrder() 22 | return g:fuf_changelist_switchOrder 23 | endfunction 24 | 25 | " 26 | function fuf#changelist#getEditableDataNames() 27 | return [] 28 | endfunction 29 | 30 | " 31 | function fuf#changelist#renewCache() 32 | endfunction 33 | 34 | " 35 | function fuf#changelist#requiresOnCommandPre() 36 | return 0 37 | endfunction 38 | 39 | " 40 | function fuf#changelist#onInit() 41 | call fuf#defineLaunchCommand('FufChangeList', s:MODE_NAME, '""', []) 42 | endfunction 43 | 44 | " }}}1 45 | "============================================================================= 46 | " LOCAL FUNCTIONS/VARIABLES {{{1 47 | 48 | let s:MODE_NAME = expand(':t:r') 49 | 50 | " 51 | function s:getChangesLines() 52 | redir => result 53 | :silent changes 54 | redir END 55 | return split(result, "\n") 56 | endfunction 57 | 58 | " 59 | function s:parseChangesLine(line) 60 | " return matchlist(a:line, '^\(.\)\s\+\(\d\+\)\s\(.*\)$') 61 | let elements = matchlist(a:line, '\v^(.)\s*(\d+)\s+(\d+)\s+(\d+)\s*(.*)$') 62 | if empty(elements) 63 | return {} 64 | endif 65 | return { 66 | \ 'prefix': elements[1], 67 | \ 'count' : elements[2], 68 | \ 'lnum' : elements[3], 69 | \ 'text' : printf('|%d:%d|%s', elements[3], elements[4], elements[5]), 70 | \ } 71 | endfunction 72 | 73 | " 74 | function s:makeItem(line) 75 | let parsed = s:parseChangesLine(a:line) 76 | if empty(parsed) 77 | return {} 78 | endif 79 | let item = fuf#makeNonPathItem(parsed.text, '') 80 | let item.abbrPrefix = parsed.prefix 81 | let item.lnum = parsed.lnum 82 | return item 83 | endfunction 84 | 85 | " }}}1 86 | "============================================================================= 87 | " s:handler {{{1 88 | 89 | let s:handler = {} 90 | 91 | " 92 | function s:handler.getModeName() 93 | return s:MODE_NAME 94 | endfunction 95 | 96 | " 97 | function s:handler.getPrompt() 98 | return fuf#formatPrompt(g:fuf_changelist_prompt, self.partialMatching, '') 99 | endfunction 100 | 101 | " 102 | function s:handler.getPreviewHeight() 103 | return g:fuf_previewHeight 104 | endfunction 105 | 106 | " 107 | function s:handler.isOpenable(enteredPattern) 108 | return 1 109 | endfunction 110 | 111 | " 112 | function s:handler.makePatternSet(patternBase) 113 | return fuf#makePatternSet(a:patternBase, 's:interpretPrimaryPatternForNonPath', 114 | \ self.partialMatching) 115 | endfunction 116 | 117 | " 118 | function s:handler.makePreviewLines(word, count) 119 | let items = filter(copy(self.items), 'v:val.word ==# a:word') 120 | if empty(items) 121 | return [] 122 | endif 123 | let lines = fuf#getFileLines(self.bufNrPrev) 124 | return fuf#makePreviewLinesAround( 125 | \ lines, [items[0].lnum - 1], a:count, self.getPreviewHeight()) 126 | endfunction 127 | 128 | " 129 | function s:handler.getCompleteItems(patternPrimary) 130 | return self.items 131 | endfunction 132 | 133 | " 134 | function s:handler.onOpen(word, mode) 135 | call fuf#prejump(a:mode) 136 | let older = 0 137 | for line in reverse(s:getChangesLines()) 138 | if stridx(line, '>') == 0 139 | let older = 1 140 | endif 141 | let parsed = s:parseChangesLine(line) 142 | if !empty(parsed) && parsed.text ==# a:word 143 | if parsed.count != 0 144 | execute 'normal! ' . parsed.count . (older ? 'g;' : 'g,') . 'zvzz' 145 | endif 146 | break 147 | endif 148 | endfor 149 | endfunction 150 | 151 | " 152 | function s:handler.onModeEnterPre() 153 | let self.items = s:getChangesLines() 154 | endfunction 155 | 156 | " 157 | function s:handler.onModeEnterPost() 158 | call map(self.items, 's:makeItem(v:val)') 159 | call filter(self.items, '!empty(v:val)') 160 | call reverse(self.items) 161 | call fuf#mapToSetSerialIndex(self.items, 1) 162 | call map(self.items, 'fuf#setAbbrWithFormattedWord(v:val, 1)') 163 | endfunction 164 | 165 | " 166 | function s:handler.onModeLeavePost(opened) 167 | endfunction 168 | 169 | " }}}1 170 | "============================================================================= 171 | " vim: set fdm=marker: 172 | 173 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/fuf/dir.vim: -------------------------------------------------------------------------------- 1 | "============================================================================= 2 | " Copyright (c) 2007-2010 Takeshi NISHIDA 3 | " 4 | "============================================================================= 5 | " LOAD GUARD {{{1 6 | 7 | if !l9#guardScriptLoading(expand(':p'), 0, 0, []) 8 | finish 9 | endif 10 | 11 | " }}}1 12 | "============================================================================= 13 | " GLOBAL FUNCTIONS {{{1 14 | 15 | " 16 | function fuf#dir#createHandler(base) 17 | return a:base.concretize(copy(s:handler)) 18 | endfunction 19 | 20 | " 21 | function fuf#dir#getSwitchOrder() 22 | return g:fuf_dir_switchOrder 23 | endfunction 24 | 25 | " 26 | function fuf#dir#getEditableDataNames() 27 | return [] 28 | endfunction 29 | 30 | " 31 | function fuf#dir#renewCache() 32 | let s:cache = {} 33 | endfunction 34 | 35 | " 36 | function fuf#dir#requiresOnCommandPre() 37 | return 0 38 | endfunction 39 | 40 | " 41 | function fuf#dir#onInit() 42 | call fuf#defineLaunchCommand('FufDir' , s:MODE_NAME, '""', []) 43 | call fuf#defineLaunchCommand('FufDirWithFullCwd' , s:MODE_NAME, 'fnamemodify(getcwd(), '':p'')', []) 44 | call fuf#defineLaunchCommand('FufDirWithCurrentBufferDir', s:MODE_NAME, 'expand(''%:~:.'')[:-1-len(expand(''%:~:.:t''))]', []) 45 | endfunction 46 | 47 | " }}}1 48 | "============================================================================= 49 | " LOCAL FUNCTIONS/VARIABLES {{{1 50 | 51 | let s:MODE_NAME = expand(':t:r') 52 | 53 | " 54 | function s:enumItems(dir) 55 | let key = getcwd() . g:fuf_ignoreCase . g:fuf_dir_exclude . "\n" . a:dir 56 | if !exists('s:cache[key]') 57 | let s:cache[key] = fuf#enumExpandedDirsEntries(a:dir, g:fuf_dir_exclude) 58 | call filter(s:cache[key], 'v:val.word =~# ''[/\\]$''') 59 | if isdirectory(a:dir) 60 | call insert(s:cache[key], fuf#makePathItem(a:dir . '.', '', 0)) 61 | endif 62 | call fuf#mapToSetSerialIndex(s:cache[key], 1) 63 | call fuf#mapToSetAbbrWithSnippedWordAsPath(s:cache[key]) 64 | endif 65 | return s:cache[key] 66 | endfunction 67 | 68 | " }}}1 69 | "============================================================================= 70 | " s:handler {{{1 71 | 72 | let s:handler = {} 73 | 74 | " 75 | function s:handler.getModeName() 76 | return s:MODE_NAME 77 | endfunction 78 | 79 | " 80 | function s:handler.getPrompt() 81 | return fuf#formatPrompt(g:fuf_dir_prompt, self.partialMatching, '') 82 | endfunction 83 | 84 | " 85 | function s:handler.getPreviewHeight() 86 | return g:fuf_previewHeight 87 | endfunction 88 | 89 | " 90 | function s:handler.isOpenable(enteredPattern) 91 | return a:enteredPattern =~# '[^/\\]$' 92 | endfunction 93 | 94 | " 95 | function s:handler.makePatternSet(patternBase) 96 | return fuf#makePatternSet(a:patternBase, 's:interpretPrimaryPatternForPathTail', 97 | \ self.partialMatching) 98 | endfunction 99 | 100 | " 101 | function s:handler.makePreviewLines(word, count) 102 | return fuf#makePreviewLinesAround( 103 | \ fuf#glob(fnamemodify(a:word, ':p') . '*'), 104 | \ [], a:count, self.getPreviewHeight()) 105 | return 106 | endfunction 107 | 108 | " 109 | function s:handler.getCompleteItems(patternPrimary) 110 | return s:enumItems(fuf#splitPath(a:patternPrimary).head) 111 | endfunction 112 | 113 | " 114 | function s:handler.onOpen(word, mode) 115 | execute ':cd ' . fnameescape(a:word) 116 | endfunction 117 | 118 | " 119 | function s:handler.onModeEnterPre() 120 | endfunction 121 | 122 | " 123 | function s:handler.onModeEnterPost() 124 | endfunction 125 | 126 | " 127 | function s:handler.onModeLeavePost(opened) 128 | endfunction 129 | 130 | " }}}1 131 | "============================================================================= 132 | " vim: set fdm=marker: 133 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/fuf/file.vim: -------------------------------------------------------------------------------- 1 | "============================================================================= 2 | " Copyright (c) 2007-2010 Takeshi NISHIDA 3 | " 4 | "============================================================================= 5 | " LOAD GUARD {{{1 6 | 7 | if !l9#guardScriptLoading(expand(':p'), 0, 0, []) 8 | finish 9 | endif 10 | 11 | " }}}1 12 | "============================================================================= 13 | " GLOBAL FUNCTIONS {{{1 14 | 15 | " 16 | function fuf#file#createHandler(base) 17 | return a:base.concretize(copy(s:handler)) 18 | endfunction 19 | 20 | " 21 | function fuf#file#getSwitchOrder() 22 | return g:fuf_file_switchOrder 23 | endfunction 24 | 25 | " 26 | function fuf#file#getEditableDataNames() 27 | return [] 28 | endfunction 29 | 30 | " 31 | function fuf#file#renewCache() 32 | let s:cache = {} 33 | endfunction 34 | 35 | " 36 | function fuf#file#requiresOnCommandPre() 37 | return 0 38 | endfunction 39 | 40 | " 41 | function fuf#file#onInit() 42 | call fuf#defineLaunchCommand('FufFile' , s:MODE_NAME, '""', []) 43 | call fuf#defineLaunchCommand('FufFileWithFullCwd' , s:MODE_NAME, 'fnamemodify(getcwd(), '':p'')', []) 44 | call fuf#defineLaunchCommand('FufFileWithCurrentBufferDir', s:MODE_NAME, 'expand(''%:~:.'')[:-1-len(expand(''%:~:.:t''))]', []) 45 | endfunction 46 | 47 | " }}}1 48 | "============================================================================= 49 | " LOCAL FUNCTIONS/VARIABLES {{{1 50 | 51 | let s:MODE_NAME = expand(':t:r') 52 | 53 | " 54 | function s:enumItems(dir) 55 | let key = join([getcwd(), g:fuf_ignoreCase, g:fuf_file_exclude, a:dir], "\n") 56 | if !exists('s:cache[key]') 57 | let s:cache[key] = fuf#enumExpandedDirsEntries(a:dir, g:fuf_file_exclude) 58 | call fuf#mapToSetSerialIndex(s:cache[key], 1) 59 | call fuf#mapToSetAbbrWithSnippedWordAsPath(s:cache[key]) 60 | endif 61 | return s:cache[key] 62 | endfunction 63 | 64 | " 65 | function s:enumNonCurrentItems(dir, bufNrPrev, cache) 66 | let key = a:dir . 'AVOIDING EMPTY KEY' 67 | if !exists('a:cache[key]') 68 | " NOTE: Comparing filenames is faster than bufnr('^' . fname . '$') 69 | let bufNamePrev = bufname(a:bufNrPrev) 70 | let a:cache[key] = 71 | \ filter(copy(s:enumItems(a:dir)), 'v:val.word !=# bufNamePrev') 72 | endif 73 | return a:cache[key] 74 | endfunction 75 | 76 | " }}}1 77 | "============================================================================= 78 | " s:handler {{{1 79 | 80 | let s:handler = {} 81 | 82 | " 83 | function s:handler.getModeName() 84 | return s:MODE_NAME 85 | endfunction 86 | 87 | " 88 | function s:handler.getPrompt() 89 | return fuf#formatPrompt(g:fuf_file_prompt, self.partialMatching, '') 90 | endfunction 91 | 92 | " 93 | function s:handler.getPreviewHeight() 94 | return g:fuf_previewHeight 95 | endfunction 96 | 97 | " 98 | function s:handler.isOpenable(enteredPattern) 99 | return a:enteredPattern =~# '[^/\\]$' 100 | endfunction 101 | 102 | " 103 | function s:handler.makePatternSet(patternBase) 104 | return fuf#makePatternSet(a:patternBase, 's:interpretPrimaryPatternForPathTail', 105 | \ self.partialMatching) 106 | endfunction 107 | 108 | " 109 | function s:handler.makePreviewLines(word, count) 110 | return fuf#makePreviewLinesForFile(a:word, a:count, self.getPreviewHeight()) 111 | endfunction 112 | 113 | " 114 | function s:handler.getCompleteItems(patternPrimary) 115 | return s:enumNonCurrentItems( 116 | \ fuf#splitPath(a:patternPrimary).head, self.bufNrPrev, self.cache) 117 | endfunction 118 | 119 | " 120 | function s:handler.onOpen(word, mode) 121 | call fuf#openFile(a:word, a:mode, g:fuf_reuseWindow) 122 | endfunction 123 | 124 | " 125 | function s:handler.onModeEnterPre() 126 | endfunction 127 | 128 | " 129 | function s:handler.onModeEnterPost() 130 | let self.cache = {} 131 | endfunction 132 | 133 | " 134 | function s:handler.onModeLeavePost(opened) 135 | endfunction 136 | 137 | " }}}1 138 | "============================================================================= 139 | " vim: set fdm=marker: 140 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/fuf/givencmd.vim: -------------------------------------------------------------------------------- 1 | "============================================================================= 2 | " Copyright (c) 2007-2010 Takeshi NISHIDA 3 | " 4 | "============================================================================= 5 | " LOAD GUARD {{{1 6 | 7 | if !l9#guardScriptLoading(expand(':p'), 0, 0, []) 8 | finish 9 | endif 10 | 11 | " }}}1 12 | "============================================================================= 13 | " GLOBAL FUNCTIONS {{{1 14 | 15 | " 16 | function fuf#givencmd#createHandler(base) 17 | return a:base.concretize(copy(s:handler)) 18 | endfunction 19 | 20 | " 21 | function fuf#givencmd#getSwitchOrder() 22 | return -1 23 | endfunction 24 | 25 | " 26 | function fuf#givencmd#getEditableDataNames() 27 | return [] 28 | endfunction 29 | 30 | " 31 | function fuf#givencmd#renewCache() 32 | endfunction 33 | 34 | " 35 | function fuf#givencmd#requiresOnCommandPre() 36 | return 0 37 | endfunction 38 | 39 | " 40 | function fuf#givencmd#onInit() 41 | endfunction 42 | 43 | " 44 | function fuf#givencmd#launch(initialPattern, partialMatching, prompt, items) 45 | let s:prompt = (empty(a:prompt) ? '>' : a:prompt) 46 | let s:items = copy(a:items) 47 | call map(s:items, 'fuf#makeNonPathItem(v:val, "")') 48 | call fuf#mapToSetSerialIndex(s:items, 1) 49 | call map(s:items, 'fuf#setAbbrWithFormattedWord(v:val, 1)') 50 | call fuf#launch(s:MODE_NAME, a:initialPattern, a:partialMatching) 51 | endfunction 52 | 53 | " }}}1 54 | "============================================================================= 55 | " LOCAL FUNCTIONS/VARIABLES {{{1 56 | 57 | let s:MODE_NAME = expand(':t:r') 58 | 59 | " }}}1 60 | "============================================================================= 61 | " s:handler {{{1 62 | 63 | let s:handler = {} 64 | 65 | " 66 | function s:handler.getModeName() 67 | return s:MODE_NAME 68 | endfunction 69 | 70 | " 71 | function s:handler.getPrompt() 72 | return fuf#formatPrompt(s:prompt, self.partialMatching, '') 73 | endfunction 74 | 75 | " 76 | function s:handler.getPreviewHeight() 77 | return 0 78 | endfunction 79 | 80 | " 81 | function s:handler.isOpenable(enteredPattern) 82 | return 1 83 | endfunction 84 | 85 | " 86 | function s:handler.makePatternSet(patternBase) 87 | return fuf#makePatternSet(a:patternBase, 's:interpretPrimaryPatternForNonPath', 88 | \ self.partialMatching) 89 | endfunction 90 | 91 | " 92 | function s:handler.makePreviewLines(word, count) 93 | return [] 94 | endfunction 95 | 96 | " 97 | function s:handler.getCompleteItems(patternPrimary) 98 | return s:items 99 | endfunction 100 | 101 | " 102 | function s:handler.onOpen(word, mode) 103 | if a:word[0] =~# '[:/?]' 104 | call histadd(a:word[0], a:word[1:]) 105 | endif 106 | call feedkeys(a:word . "\", 'n') 107 | endfunction 108 | 109 | " 110 | function s:handler.onModeEnterPre() 111 | endfunction 112 | 113 | " 114 | function s:handler.onModeEnterPost() 115 | endfunction 116 | 117 | " 118 | function s:handler.onModeLeavePost(opened) 119 | endfunction 120 | 121 | " }}}1 122 | "============================================================================= 123 | " vim: set fdm=marker: 124 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/fuf/givendir.vim: -------------------------------------------------------------------------------- 1 | "============================================================================= 2 | " Copyright (c) 2007-2010 Takeshi NISHIDA 3 | " 4 | "============================================================================= 5 | " LOAD GUARD {{{1 6 | 7 | if !l9#guardScriptLoading(expand(':p'), 0, 0, []) 8 | finish 9 | endif 10 | 11 | " }}}1 12 | "============================================================================= 13 | " GLOBAL FUNCTIONS {{{1 14 | 15 | " 16 | function fuf#givendir#createHandler(base) 17 | return a:base.concretize(copy(s:handler)) 18 | endfunction 19 | 20 | " 21 | function fuf#givendir#getSwitchOrder() 22 | return -1 23 | endfunction 24 | 25 | " 26 | function fuf#givendir#getEditableDataNames() 27 | return [] 28 | endfunction 29 | 30 | " 31 | function fuf#givendir#renewCache() 32 | endfunction 33 | 34 | " 35 | function fuf#givendir#requiresOnCommandPre() 36 | return 0 37 | endfunction 38 | 39 | " 40 | function fuf#givendir#onInit() 41 | endfunction 42 | 43 | " 44 | function fuf#givendir#launch(initialPattern, partialMatching, prompt, items) 45 | let s:prompt = (empty(a:prompt) ? '>' : a:prompt) 46 | let s:items = map(copy(a:items), 'substitute(v:val, ''[/\\]\?$'', "", "")') 47 | let s:items = map(s:items, 'fuf#makePathItem(v:val, "", 0)') 48 | call fuf#mapToSetSerialIndex(s:items, 1) 49 | call fuf#mapToSetAbbrWithSnippedWordAsPath(s:items) 50 | call fuf#launch(s:MODE_NAME, a:initialPattern, a:partialMatching) 51 | endfunction 52 | 53 | " }}}1 54 | "============================================================================= 55 | " LOCAL FUNCTIONS/VARIABLES {{{1 56 | 57 | let s:MODE_NAME = expand(':t:r') 58 | 59 | " }}}1 60 | "============================================================================= 61 | " s:handler {{{1 62 | 63 | let s:handler = {} 64 | 65 | " 66 | function s:handler.getModeName() 67 | return s:MODE_NAME 68 | endfunction 69 | 70 | " 71 | function s:handler.getPrompt() 72 | return fuf#formatPrompt(s:prompt, self.partialMatching, '') 73 | endfunction 74 | 75 | " 76 | function s:handler.getPreviewHeight() 77 | return g:fuf_previewHeight 78 | endfunction 79 | 80 | " 81 | function s:handler.isOpenable(enteredPattern) 82 | return 1 83 | endfunction 84 | 85 | " 86 | function s:handler.makePatternSet(patternBase) 87 | return fuf#makePatternSet(a:patternBase, 's:interpretPrimaryPatternForPath', 88 | \ self.partialMatching) 89 | endfunction 90 | 91 | " 92 | function s:handler.makePreviewLines(word, count) 93 | return fuf#makePreviewLinesAround( 94 | \ fuf#glob(fnamemodify(a:word, ':p') . '*'), 95 | \ [], a:count, self.getPreviewHeight()) 96 | return 97 | endfunction 98 | 99 | " 100 | function s:handler.getCompleteItems(patternPrimary) 101 | return s:items 102 | endfunction 103 | 104 | " 105 | function s:handler.onOpen(word, mode) 106 | execute ':cd ' . fnameescape(a:word) 107 | endfunction 108 | 109 | " 110 | function s:handler.onModeEnterPre() 111 | endfunction 112 | 113 | " 114 | function s:handler.onModeEnterPost() 115 | endfunction 116 | 117 | " 118 | function s:handler.onModeLeavePost(opened) 119 | endfunction 120 | 121 | " }}}1 122 | "============================================================================= 123 | " vim: set fdm=marker: 124 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/fuf/givenfile.vim: -------------------------------------------------------------------------------- 1 | "============================================================================= 2 | " Copyright (c) 2007-2010 Takeshi NISHIDA 3 | " 4 | "============================================================================= 5 | " LOAD GUARD {{{1 6 | 7 | if !l9#guardScriptLoading(expand(':p'), 0, 0, []) 8 | finish 9 | endif 10 | 11 | " }}}1 12 | "============================================================================= 13 | " GLOBAL FUNCTIONS {{{1 14 | 15 | " 16 | function fuf#givenfile#createHandler(base) 17 | return a:base.concretize(copy(s:handler)) 18 | endfunction 19 | 20 | " 21 | function fuf#givenfile#getSwitchOrder() 22 | return -1 23 | endfunction 24 | 25 | " 26 | function fuf#givenfile#getEditableDataNames() 27 | return [] 28 | endfunction 29 | 30 | " 31 | function fuf#givenfile#renewCache() 32 | endfunction 33 | 34 | " 35 | function fuf#givenfile#requiresOnCommandPre() 36 | return 0 37 | endfunction 38 | 39 | " 40 | function fuf#givenfile#onInit() 41 | endfunction 42 | 43 | " 44 | function fuf#givenfile#launch(initialPattern, partialMatching, prompt, items) 45 | let s:prompt = (empty(a:prompt) ? '>' : a:prompt) 46 | let s:items = map(copy(a:items), 'fuf#makePathItem(v:val, "", 0)') 47 | call fuf#mapToSetSerialIndex(s:items, 1) 48 | call map(s:items, 'fuf#setAbbrWithFormattedWord(v:val, 1)') 49 | call fuf#launch(s:MODE_NAME, a:initialPattern, a:partialMatching) 50 | endfunction 51 | 52 | 53 | " }}}1 54 | "============================================================================= 55 | " LOCAL FUNCTIONS/VARIABLES {{{1 56 | 57 | let s:MODE_NAME = expand(':t:r') 58 | 59 | " }}}1 60 | "============================================================================= 61 | " s:handler {{{1 62 | 63 | let s:handler = {} 64 | 65 | " 66 | function s:handler.getModeName() 67 | return s:MODE_NAME 68 | endfunction 69 | 70 | " 71 | function s:handler.getPrompt() 72 | return fuf#formatPrompt(s:prompt, self.partialMatching, '') 73 | endfunction 74 | 75 | " 76 | function s:handler.getPreviewHeight() 77 | return g:fuf_previewHeight 78 | endfunction 79 | 80 | " 81 | function s:handler.isOpenable(enteredPattern) 82 | return 1 83 | endfunction 84 | 85 | " 86 | function s:handler.makePatternSet(patternBase) 87 | return fuf#makePatternSet(a:patternBase, 's:interpretPrimaryPatternForPath', 88 | \ self.partialMatching) 89 | endfunction 90 | 91 | " 92 | function s:handler.makePreviewLines(word, count) 93 | return fuf#makePreviewLinesForFile(a:word, a:count, self.getPreviewHeight()) 94 | endfunction 95 | 96 | " 97 | function s:handler.getCompleteItems(patternPrimary) 98 | return s:items 99 | endfunction 100 | 101 | " 102 | function s:handler.onOpen(word, mode) 103 | call fuf#openFile(a:word, a:mode, g:fuf_reuseWindow) 104 | endfunction 105 | 106 | 107 | " 108 | function s:handler.onModeEnterPre() 109 | endfunction 110 | 111 | " 112 | function s:handler.onModeEnterPost() 113 | endfunction 114 | 115 | " 116 | function s:handler.onModeLeavePost(opened) 117 | endfunction 118 | 119 | " }}}1 120 | "============================================================================= 121 | " vim: set fdm=marker: 122 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/fuf/line.vim: -------------------------------------------------------------------------------- 1 | "============================================================================= 2 | " Copyright (c) 2007-2010 Takeshi NISHIDA 3 | " 4 | "============================================================================= 5 | " LOAD GUARD {{{1 6 | 7 | if !l9#guardScriptLoading(expand(':p'), 0, 0, []) 8 | finish 9 | endif 10 | 11 | " }}}1 12 | "============================================================================= 13 | " GLOBAL FUNCTIONS {{{1 14 | 15 | " 16 | function fuf#line#createHandler(base) 17 | return a:base.concretize(copy(s:handler)) 18 | endfunction 19 | 20 | " 21 | function fuf#line#getSwitchOrder() 22 | return g:fuf_line_switchOrder 23 | endfunction 24 | 25 | " 26 | function fuf#line#getEditableDataNames() 27 | return [] 28 | endfunction 29 | 30 | " 31 | function fuf#line#renewCache() 32 | endfunction 33 | 34 | " 35 | function fuf#line#requiresOnCommandPre() 36 | return 0 37 | endfunction 38 | 39 | " 40 | function fuf#line#onInit() 41 | call fuf#defineLaunchCommand('FufLine', s:MODE_NAME, '""', []) 42 | endfunction 43 | 44 | " }}}1 45 | "============================================================================= 46 | " LOCAL FUNCTIONS/VARIABLES {{{1 47 | 48 | let s:MODE_NAME = expand(':t:r') 49 | let s:OPEN_TYPE_DELETE = -1 50 | 51 | " }}}1 52 | "============================================================================= 53 | " s:handler {{{1 54 | 55 | let s:handler = {} 56 | 57 | " 58 | function s:handler.getModeName() 59 | return s:MODE_NAME 60 | endfunction 61 | 62 | " 63 | function s:handler.getPrompt() 64 | return fuf#formatPrompt(g:fuf_line_prompt, self.partialMatching, '') 65 | endfunction 66 | 67 | " 68 | function s:handler.getPreviewHeight() 69 | return g:fuf_previewHeight 70 | endfunction 71 | 72 | " 73 | function s:handler.isOpenable(enteredPattern) 74 | return 1 75 | endfunction 76 | 77 | " 78 | function s:handler.makePatternSet(patternBase) 79 | return fuf#makePatternSet(a:patternBase, 's:interpretPrimaryPatternForNonPath', 80 | \ self.partialMatching) 81 | endfunction 82 | 83 | " 84 | function s:handler.makePreviewLines(word, count) 85 | let items = filter(copy(self.items), 'v:val.word ==# a:word') 86 | if empty(items) 87 | return [] 88 | endif 89 | let lines = fuf#getFileLines(self.bufNrPrev) 90 | return fuf#makePreviewLinesAround( 91 | \ lines, [items[0].index - 1], a:count, self.getPreviewHeight()) 92 | endfunction 93 | 94 | " 95 | function s:handler.getCompleteItems(patternPrimary) 96 | return self.items 97 | endfunction 98 | 99 | " 100 | function s:handler.onOpen(word, mode) 101 | call fuf#prejump(a:mode) 102 | call filter(self.items, 'v:val.word ==# a:word') 103 | if empty(self.items) 104 | return 105 | execute 'cc ' . self.items[0].index 106 | endif 107 | call cursor(self.items[0].index, 0) 108 | normal! zvzz 109 | endfunction 110 | 111 | " 112 | function s:handler.onModeEnterPre() 113 | endfunction 114 | 115 | " 116 | function s:handler.onModeEnterPost() 117 | let tab = repeat(' ', getbufvar(self.bufNrPrev, '&tabstop')) 118 | let self.items = getbufline(self.bufNrPrev, 1, '$') 119 | let lnumFormat = '%' . len(string(len(self.items) + 1)) . 'd|' 120 | for i in range(len(self.items)) 121 | let self.items[i] = printf(lnumFormat, i + 1) 122 | \ . substitute(self.items[i], "\t", tab, 'g') 123 | endfor 124 | call map(self.items, 'fuf#makeNonPathItem(v:val, "")') 125 | call fuf#mapToSetSerialIndex(self.items, 1) 126 | call map(self.items, 'fuf#setAbbrWithFormattedWord(v:val, 0)') 127 | endfunction 128 | 129 | " 130 | function s:handler.onModeLeavePost(opened) 131 | endfunction 132 | 133 | " }}}1 134 | "============================================================================= 135 | " vim: set fdm=marker: 136 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/fuf/mrucmd.vim: -------------------------------------------------------------------------------- 1 | "============================================================================= 2 | " Copyright (c) 2007-2010 Takeshi NISHIDA 3 | " 4 | "============================================================================= 5 | " LOAD GUARD {{{1 6 | 7 | if !l9#guardScriptLoading(expand(':p'), 0, 0, []) 8 | finish 9 | endif 10 | 11 | " }}}1 12 | "============================================================================= 13 | " GLOBAL FUNCTIONS {{{1 14 | 15 | " 16 | function fuf#mrucmd#createHandler(base) 17 | return a:base.concretize(copy(s:handler)) 18 | endfunction 19 | 20 | " 21 | function fuf#mrucmd#getSwitchOrder() 22 | return g:fuf_mrucmd_switchOrder 23 | endfunction 24 | 25 | " 26 | function fuf#mrucmd#getEditableDataNames() 27 | return ['items'] 28 | endfunction 29 | 30 | " 31 | function fuf#mrucmd#renewCache() 32 | endfunction 33 | 34 | " 35 | function fuf#mrucmd#requiresOnCommandPre() 36 | return 1 37 | endfunction 38 | 39 | " 40 | function fuf#mrucmd#onInit() 41 | call fuf#defineLaunchCommand('FufMruCmd', s:MODE_NAME, '""', []) 42 | endfunction 43 | 44 | " 45 | function fuf#mrucmd#onCommandPre(cmd) 46 | if getcmdtype() =~# '^[:/?]' 47 | call s:updateInfo(a:cmd) 48 | endif 49 | endfunction 50 | 51 | 52 | " }}}1 53 | "============================================================================= 54 | " LOCAL FUNCTIONS/VARIABLES {{{1 55 | 56 | let s:MODE_NAME = expand(':t:r') 57 | 58 | " 59 | function s:updateInfo(cmd) 60 | let items = fuf#loadDataFile(s:MODE_NAME, 'items') 61 | let items = fuf#updateMruList( 62 | \ items, { 'word' : a:cmd, 'time' : localtime() }, 63 | \ g:fuf_mrucmd_maxItem, g:fuf_mrucmd_exclude) 64 | call fuf#saveDataFile(s:MODE_NAME, 'items', items) 65 | endfunction 66 | 67 | " }}}1 68 | "============================================================================= 69 | " s:handler {{{1 70 | 71 | let s:handler = {} 72 | 73 | " 74 | function s:handler.getModeName() 75 | return s:MODE_NAME 76 | endfunction 77 | 78 | " 79 | function s:handler.getPrompt() 80 | return fuf#formatPrompt(g:fuf_mrucmd_prompt, self.partialMatching, '') 81 | endfunction 82 | 83 | " 84 | function s:handler.getPreviewHeight() 85 | return 0 86 | endfunction 87 | 88 | " 89 | function s:handler.isOpenable(enteredPattern) 90 | return 1 91 | endfunction 92 | 93 | " 94 | function s:handler.makePatternSet(patternBase) 95 | return fuf#makePatternSet(a:patternBase, 's:interpretPrimaryPatternForNonPath', 96 | \ self.partialMatching) 97 | endfunction 98 | 99 | " 100 | function s:handler.makePreviewLines(word, count) 101 | return [] 102 | endfunction 103 | 104 | " 105 | function s:handler.getCompleteItems(patternPrimary) 106 | return self.items 107 | endfunction 108 | 109 | " 110 | function s:handler.onOpen(word, mode) 111 | call s:updateInfo(a:word) 112 | call histadd(a:word[0], a:word[1:]) 113 | call feedkeys(a:word . "\", 'n') 114 | endfunction 115 | 116 | " 117 | function s:handler.onModeEnterPre() 118 | endfunction 119 | 120 | " 121 | function s:handler.onModeEnterPost() 122 | let self.items = fuf#loadDataFile(s:MODE_NAME, 'items') 123 | call map(self.items, 'fuf#makeNonPathItem(v:val.word, strftime(g:fuf_timeFormat, v:val.time))') 124 | call fuf#mapToSetSerialIndex(self.items, 1) 125 | call map(self.items, 'fuf#setAbbrWithFormattedWord(v:val, 1)') 126 | endfunction 127 | 128 | " 129 | function s:handler.onModeLeavePost(opened) 130 | endfunction 131 | 132 | " }}}1 133 | "============================================================================= 134 | " vim: set fdm=marker: 135 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/fuf/quickfix.vim: -------------------------------------------------------------------------------- 1 | "============================================================================= 2 | " Copyright (c) 2007-2010 Takeshi NISHIDA 3 | " 4 | "============================================================================= 5 | " LOAD GUARD {{{1 6 | 7 | if !l9#guardScriptLoading(expand(':p'), 0, 0, []) 8 | finish 9 | endif 10 | 11 | " }}}1 12 | "============================================================================= 13 | " GLOBAL FUNCTIONS {{{1 14 | 15 | " 16 | function fuf#quickfix#createHandler(base) 17 | return a:base.concretize(copy(s:handler)) 18 | endfunction 19 | 20 | " 21 | function fuf#quickfix#getSwitchOrder() 22 | return g:fuf_quickfix_switchOrder 23 | endfunction 24 | 25 | " 26 | function fuf#quickfix#getEditableDataNames() 27 | return [] 28 | endfunction 29 | 30 | " 31 | function fuf#quickfix#renewCache() 32 | endfunction 33 | 34 | " 35 | function fuf#quickfix#requiresOnCommandPre() 36 | return 0 37 | endfunction 38 | 39 | " 40 | function fuf#quickfix#onInit() 41 | call fuf#defineLaunchCommand('FufQuickfix', s:MODE_NAME, '""', []) 42 | endfunction 43 | 44 | " }}}1 45 | "============================================================================= 46 | " LOCAL FUNCTIONS/VARIABLES {{{1 47 | 48 | let s:MODE_NAME = expand(':t:r') 49 | 50 | " 51 | function s:getJumpsLines() 52 | redir => result 53 | :silent jumps 54 | redir END 55 | return split(result, "\n") 56 | endfunction 57 | 58 | " 59 | function s:parseJumpsLine(line) 60 | return matchlist(a:line, '^\(.\)\s\+\(\d\+\)\s\(.*\)$') 61 | endfunction 62 | 63 | " 64 | function s:makeItem(qfItem) 65 | if !a:qfItem.valid 66 | return {} 67 | endif 68 | let item = fuf#makeNonPathItem( 69 | \ printf('%s|%d:%d|%s', bufname(a:qfItem.bufnr), a:qfItem.lnum, 70 | \ a:qfItem.col, matchstr(a:qfItem.text, '\s*\zs.*\S')) 71 | \ , '') 72 | let item.bufnr = a:qfItem.bufnr 73 | let item.lnum = a:qfItem.lnum 74 | return item 75 | endfunction 76 | 77 | " }}}1 78 | "============================================================================= 79 | " s:handler {{{1 80 | 81 | let s:handler = {} 82 | 83 | " 84 | function s:handler.getModeName() 85 | return s:MODE_NAME 86 | endfunction 87 | 88 | " 89 | function s:handler.getPrompt() 90 | return fuf#formatPrompt(g:fuf_quickfix_prompt, self.partialMatching, '') 91 | endfunction 92 | 93 | " 94 | function s:handler.getPreviewHeight() 95 | return g:fuf_previewHeight 96 | endfunction 97 | 98 | " 99 | function s:handler.isOpenable(enteredPattern) 100 | return 1 101 | endfunction 102 | 103 | " 104 | function s:handler.makePatternSet(patternBase) 105 | return fuf#makePatternSet(a:patternBase, 's:interpretPrimaryPatternForNonPath', 106 | \ self.partialMatching) 107 | endfunction 108 | 109 | " 110 | function s:handler.makePreviewLines(word, count) 111 | let items = filter(copy(self.items), 'v:val.word ==# a:word') 112 | if empty(items) 113 | return [] 114 | endif 115 | let lines = fuf#getFileLines(items[0].bufnr) 116 | return fuf#makePreviewLinesAround( 117 | \ lines, [items[0].lnum - 1], a:count, self.getPreviewHeight()) 118 | endfunction 119 | 120 | " 121 | function s:handler.getCompleteItems(patternPrimary) 122 | return self.items 123 | endfunction 124 | 125 | " 126 | function s:handler.onOpen(word, mode) 127 | call fuf#prejump(a:mode) 128 | call filter(self.items, 'v:val.word ==# a:word') 129 | if !empty(self.items) 130 | execute 'cc ' . self.items[0].index 131 | endif 132 | endfunction 133 | 134 | " 135 | function s:handler.onModeEnterPre() 136 | endfunction 137 | 138 | " 139 | function s:handler.onModeEnterPost() 140 | let self.items = getqflist() 141 | call map(self.items, 's:makeItem(v:val)') 142 | call fuf#mapToSetSerialIndex(self.items, 1) 143 | call filter(self.items, 'exists("v:val.word")') 144 | call map(self.items, 'fuf#setAbbrWithFormattedWord(v:val, 1)') 145 | endfunction 146 | 147 | " 148 | function s:handler.onModeLeavePost(opened) 149 | endfunction 150 | 151 | " }}}1 152 | "============================================================================= 153 | " vim: set fdm=marker: 154 | 155 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/rainbow_parentheses.vim: -------------------------------------------------------------------------------- 1 | "============================================================================== 2 | " Description: Rainbow colors for parentheses, based on rainbow_parenthsis.vim 3 | " by Martin Krischik and others. 4 | " 2011-10-12: Use less code. Leave room for deeper levels. 5 | "============================================================================== 6 | 7 | let s:pairs = [ 8 | \ ['brown', 'RoyalBlue3'], 9 | \ ['Darkblue', 'SeaGreen3'], 10 | \ ['darkgray', 'DarkOrchid3'], 11 | \ ['darkgreen', 'firebrick3'], 12 | \ ['darkcyan', 'RoyalBlue3'], 13 | \ ['darkred', 'SeaGreen3'], 14 | \ ['darkmagenta', 'DarkOrchid3'], 15 | \ ['brown', 'firebrick3'], 16 | \ ['gray', 'RoyalBlue3'], 17 | \ ['black', 'SeaGreen3'], 18 | \ ['darkmagenta', 'DarkOrchid3'], 19 | \ ['Darkblue', 'firebrick3'], 20 | \ ['darkgreen', 'RoyalBlue3'], 21 | \ ['darkcyan', 'SeaGreen3'], 22 | \ ['darkred', 'DarkOrchid3'], 23 | \ ['red', 'firebrick3'], 24 | \ ] 25 | let s:pairs = exists('g:rbpt_colorpairs') ? g:rbpt_colorpairs : s:pairs 26 | let s:max = exists('g:rbpt_max') ? g:rbpt_max : max([len(s:pairs), 16]) 27 | let s:loadtgl = exists('g:rbpt_loadcmd_toggle') ? g:rbpt_loadcmd_toggle : 0 28 | let s:types = [['(',')'],['\[','\]'],['{','}'],['<','>']] 29 | 30 | func! s:extend() 31 | if s:max > len(s:pairs) 32 | cal extend(s:pairs, s:pairs) 33 | cal s:extend() 34 | elseif s:max < len(s:pairs) 35 | cal remove(s:pairs, s:max, -1) 36 | endif 37 | endfunc 38 | cal s:extend() 39 | 40 | func! rainbow_parentheses#activate() 41 | let [id, s:active] = [1, 1] 42 | for [ctermfg, guifg] in s:pairs 43 | exe 'hi default level'.id.'c ctermfg='.ctermfg.' guifg='.guifg 44 | let id += 1 45 | endfor 46 | endfunc 47 | 48 | func! rainbow_parentheses#clear() 49 | for each in range(1, s:max) 50 | exe 'hi clear level'.each.'c' 51 | endfor 52 | let s:active = 0 53 | endfunc 54 | 55 | func! rainbow_parentheses#toggle() 56 | if !exists('s:active') 57 | cal rainbow_parentheses#load(0) 58 | endif 59 | let afunc = exists('s:active') && s:active ? 'clear' : 'activate' 60 | cal call('rainbow_parentheses#'.afunc, []) 61 | endfunc 62 | 63 | func! rainbow_parentheses#toggleall() 64 | if !exists('s:active') 65 | cal rainbow_parentheses#load(0) 66 | cal rainbow_parentheses#load(1) 67 | cal rainbow_parentheses#load(2) 68 | endif 69 | if exists('s:active') && s:active 70 | cal rainbow_parentheses#clear() 71 | else 72 | cal rainbow_parentheses#activate() 73 | endif 74 | endfunc 75 | 76 | func! s:cluster() 77 | let levels = join(map(range(1, s:max), '"level".v:val'), ',') 78 | exe 'sy cluster rainbow_parentheses contains=@TOP'.levels.',NoInParens' 79 | endfunc 80 | cal s:cluster() 81 | 82 | func! rainbow_parentheses#load(...) 83 | let [level, grp, type] = ['', '', s:types[a:1]] 84 | let alllvls = map(range(1, s:max), '"level".v:val') 85 | if !exists('b:loaded') 86 | let b:loaded = [0,0,0,0] 87 | endif 88 | let b:loaded[a:1] = s:loadtgl && b:loaded[a:1] ? 0 : 1 89 | for each in range(1, s:max) 90 | let region = 'level'. each .(b:loaded[a:1] ? '' : 'none') 91 | let grp = b:loaded[a:1] ? 'level'.each.'c' : 'Normal' 92 | let cmd = 'sy region %s matchgroup=%s start=/%s/ end=/%s/ contains=TOP,%s,NoInParens' 93 | exe printf(cmd, region, grp, type[0], type[1], join(alllvls, ',')) 94 | cal remove(alllvls, 0) 95 | endfor 96 | endfunc 97 | 98 | " vim:ts=2:sw=2:sts=2 99 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/togglebg.vim: -------------------------------------------------------------------------------- 1 | " Toggle Background 2 | " Modified: 2011 Apr 29 3 | " Maintainer: Ethan Schoonover 4 | " License: OSI approved MIT license 5 | 6 | if exists("g:loaded_togglebg") 7 | finish 8 | endif 9 | let g:loaded_togglebg = 1 10 | 11 | " noremap is a bit misleading here if you are unused to vim mapping. 12 | " in fact, there is remapping, but only of script locally defined remaps, in 13 | " this case TogBG. The 42 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/vst/s5ui/opera.css: -------------------------------------------------------------------------------- 1 | /* DO NOT CHANGE THESE unless you really want to break Opera Show */ 2 | .slide { 3 | visibility: visible !important; 4 | position: static !important; 5 | page-break-before: always; 6 | } 7 | #slide0 {page-break-before: avoid;} 8 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/vst/s5ui/outline.css: -------------------------------------------------------------------------------- 1 | /* don't change this unless you want the layout stuff to show up in the outline view! */ 2 | 3 | .layout div, #footer *, #controlForm * {display: none;} 4 | #footer, #controls, #controlForm, #navLinks, #toggle { 5 | display: block; visibility: visible; margin: 0; padding: 0;} 6 | #toggle {float: right; padding: 0.5em;} 7 | html>body #toggle {position: fixed; top: 0; right: 0;} 8 | 9 | /* making the outline look pretty-ish */ 10 | 11 | #slide0 h1, #slide0 h2, #slide0 h3, #slide0 h4 {border: none; margin: 0;} 12 | #slide0 h1 {padding-top: 1.5em;} 13 | .slide h1 {margin: 1.5em 0 0; padding-top: 0.25em; 14 | border-top: 1px solid #888; border-bottom: 1px solid #AAA;} 15 | #toggle {border: 1px solid; border-width: 0 0 1px 1px; background: #FFF;} 16 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/vst/s5ui/pretty.css: -------------------------------------------------------------------------------- 1 | /* Following are the presentation styles -- edit away! */ 2 | 3 | body {background: #FFF url(bodybg.gif) -16px 0 no-repeat; color: #000; font-size: 2em;} 4 | :link, :visited {text-decoration: none; color: #00C;} 5 | #controls :active {color: #88A !important;} 6 | #controls :focus {outline: 1px dotted #227;} 7 | h1, h2, h3, h4 {font-size: 100%; margin: 0; padding: 0; font-weight: inherit;} 8 | ul, pre {margin: 0; line-height: 1em;} 9 | html, body {margin: 0; padding: 0;} 10 | 11 | blockquote, q {font-style: italic;} 12 | blockquote {padding: 0 2em 0.5em; margin: 0 1.5em 0.5em; text-align: center; font-size: 1em;} 13 | blockquote p {margin: 0;} 14 | blockquote i {font-style: normal;} 15 | blockquote b {display: block; margin-top: 0.5em; font-weight: normal; font-size: smaller; font-style: normal;} 16 | blockquote b i {font-style: italic;} 17 | 18 | kbd {font-weight: bold; font-size: 1em;} 19 | sup {font-size: smaller; line-height: 1px;} 20 | 21 | .slide code {padding: 2px 0.25em; font-weight: bold; color: #533;} 22 | .slide code.bad, code del {color: red;} 23 | .slide code.old {color: silver;} 24 | .slide pre {padding: 0; margin: 0.25em 0 0.5em 0.5em; color: #533; font-size: 90%;} 25 | .slide pre code {display: block;} 26 | .slide ul {margin-left: 5%; margin-right: 7%; list-style: disc;} 27 | .slide li {margin-top: 0.75em; margin-right: 0;} 28 | .slide ul ul {line-height: 1;} 29 | .slide ul ul li {margin: .2em; font-size: 85%; list-style: square;} 30 | .slide img.leader {display: block; margin: 0 auto;} 31 | 32 | div#header, div#footer {background: #005; color: #AAB; 33 | font-family: Verdana, Helvetica, sans-serif;} 34 | div#header {background: #005 url(bodybg.gif) -16px 0 no-repeat; 35 | line-height: 1px;} 36 | div#footer {font-size: 0.5em; font-weight: bold; padding: 1em 0;} 37 | #footer h1, #footer h2 {display: block; padding: 0 1em;} 38 | #footer h2 {font-style: italic;} 39 | 40 | div.long {font-size: 0.75em;} 41 | .slide h1 {position: absolute; top: 0.7em; left: 87px; z-index: 1; 42 | margin: 0; padding: 0.3em 0 0 50px; white-space: nowrap; 43 | font: bold 150%/1em Helvetica, sans-serif; text-transform: capitalize; 44 | color: #DDE; background: #005;} 45 | .slide h3 {font-size: 130%;} 46 | h1 abbr {font-variant: small-caps;} 47 | 48 | div#controls {position: absolute; left: 50%; bottom: 0; 49 | width: 50%; 50 | text-align: right; font: bold 0.9em Verdana, Helvetica, sans-serif;} 51 | html>body div#controls {position: fixed; padding: 0 0 1em 0; 52 | top: auto;} 53 | div#controls form {position: absolute; bottom: 0; right: 0; width: 100%; 54 | margin: 0; padding: 0;} 55 | #controls #navLinks a {padding: 0; margin: 0 0.5em; 56 | background: #005; border: none; color: #779; 57 | cursor: pointer;} 58 | #controls #navList {height: 1em;} 59 | #controls #navList #jumplist {position: absolute; bottom: 0; right: 0; background: #DDD; color: #227;} 60 | 61 | #currentSlide {text-align: center; font-size: 0.5em; color: #449;} 62 | 63 | #slide0 {padding-top: 3.5em; font-size: 90%;} 64 | #slide0 h1 {position: static; margin: 1em 0 0; padding: 0; 65 | font: bold 2em Helvetica, sans-serif; white-space: normal; 66 | color: #000; background: transparent;} 67 | #slide0 h2 {font: bold italic 1em Helvetica, sans-serif; margin: 0.25em;} 68 | #slide0 h3 {margin-top: 1.5em; font-size: 1.5em;} 69 | #slide0 h4 {margin-top: 0; font-size: 1em;} 70 | 71 | ul.urls {list-style: none; display: inline; margin: 0;} 72 | .urls li {display: inline; margin: 0;} 73 | .note {display: none;} 74 | .external {border-bottom: 1px dotted gray;} 75 | html>body .external {border-bottom: none;} 76 | .external:after {content: " \274F"; font-size: smaller; color: #77B;} 77 | 78 | .incremental, .incremental *, .incremental *:after {color: #DDE; visibility: visible;} 79 | img.incremental {visibility: hidden;} 80 | .slide .current {color: #B02;} 81 | 82 | 83 | /* diagnostics 84 | 85 | li:after {content: " [" attr(class) "]"; color: #F88;} 86 | */ -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/vst/s5ui/print.css: -------------------------------------------------------------------------------- 1 | /* The following rule is necessary to have all slides appear in print! DO NOT REMOVE IT! */ .slide, ul {page-break-inside: avoid; visibility: visible !important;} h1 {page-break-after: avoid;} body {font-size: 12pt; background: white;} * {color: black;} #slide0 h1 {font-size: 200%; border: none; margin: 0.5em 0 0.25em;} #slide0 h3 {margin: 0; padding: 0;} #slide0 h4 {margin: 0 0 0.5em; padding: 0;} #slide0 {margin-bottom: 3em;} h1 {border-top: 2pt solid gray; border-bottom: 1px dotted silver;} .extra {background: transparent !important;} div.extra, pre.extra, .example {font-size: 10pt; color: #333;} ul.extra a {font-weight: bold;} p.example {display: none;} #header {display: none;} #footer h1 {margin: 0; border-bottom: 1px solid; color: gray; font-style: italic;} #footer h2, #controls {display: none;} /* The following rule keeps the layout stuff out of print. Remove at your own risk! */ .layout, .layout * {display: none !important;} -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/vst/s5ui/s5-core.css: -------------------------------------------------------------------------------- 1 | /* Do not edit or override these styles! The system will likely break if you do. */ 2 | 3 | div#header, div#footer, div#controls, .slide {position: absolute;} 4 | html>body div#header, html>body div#footer, 5 | html>body div#controls, html>body .slide {position: fixed;} 6 | .handout {display: none;} 7 | .layout {display: block;} 8 | .slide, .hideme, .incremental {visibility: hidden;} 9 | #slide0 {visibility: visible;} 10 | -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/vst/s5ui/slides.css: -------------------------------------------------------------------------------- 1 | @import url(s5-core.css); /* required to make the slide show run at all */ 2 | @import url(framing.css); /* sets basic placement and size of slide components */ 3 | @import url(pretty.css); /* stuff that makes the slides look better than blah */ -------------------------------------------------------------------------------- /home/mloskot/.vim/autoload/vst/vst.vim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/.vim/autoload/vst/vst.vim -------------------------------------------------------------------------------- /home/mloskot/.vim/bin/cc_args.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #-*- coding: utf-8 -*- 3 | 4 | import sys 5 | 6 | CONFIG_NAME = ".clang_complete" 7 | 8 | def readConfiguration(): 9 | try: 10 | f = open(CONFIG_NAME, "r") 11 | except IOError: 12 | return [] 13 | 14 | result = [] 15 | for line in f.readlines(): 16 | strippedLine = line.strip() 17 | if strippedLine: 18 | result.append(strippedLine) 19 | f.close() 20 | return result 21 | 22 | def writeConfiguration(lines): 23 | f = open(CONFIG_NAME, "w") 24 | f.writelines(lines) 25 | f.close() 26 | 27 | def parseArguments(arguments): 28 | nextIsInclude = False 29 | nextIsDefine = False 30 | nextIsIncludeFile = False 31 | 32 | includes = [] 33 | defines = [] 34 | include_file = [] 35 | options = [] 36 | 37 | for arg in arguments: 38 | if nextIsInclude: 39 | includes += [arg] 40 | nextIsInclude = False 41 | elif nextIsDefine: 42 | defines += [arg] 43 | nextIsDefine = False 44 | elif nextIsIncludeFile: 45 | include_file += [arg] 46 | nextIsIncludeFile = False 47 | elif arg == "-I": 48 | nextIsInclude = True 49 | elif arg == "-D": 50 | nextIsDefine = True 51 | elif arg[:2] == "-I": 52 | includes += [arg[2:]] 53 | elif arg[:2] == "-D": 54 | defines += [arg[2:]] 55 | elif arg == "-include": 56 | nextIsIncludeFile = True 57 | elif arg.startswith('-std='): 58 | options.append(arg) 59 | elif arg.startswith('-W'): 60 | options.append(arg) 61 | 62 | result = list(map(lambda x: "-I" + x, includes)) 63 | result.extend(map(lambda x: "-D" + x, defines)) 64 | result.extend(map(lambda x: "-include " + x, include_file)) 65 | result.extend(options) 66 | 67 | return result 68 | 69 | def mergeLists(base, new): 70 | result = list(base) 71 | for newLine in new: 72 | if newLine not in result: 73 | result.append(newLine) 74 | return result 75 | 76 | configuration = readConfiguration() 77 | args = parseArguments(sys.argv) 78 | result = mergeLists(configuration, args) 79 | writeConfiguration(map(lambda x: x + "\n", result)) 80 | 81 | 82 | import subprocess 83 | proc = subprocess.Popen(sys.argv[1:]) 84 | ret = proc.wait() 85 | 86 | if ret is None: 87 | sys.exit(1) 88 | sys.exit(ret) 89 | 90 | # vim: set ts=2 sts=2 sw=2 expandtab : 91 | -------------------------------------------------------------------------------- /home/mloskot/.vim/bitmaps/togglebg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/.vim/bitmaps/togglebg.png -------------------------------------------------------------------------------- /home/mloskot/.vim/colors/adrian.vim: -------------------------------------------------------------------------------- 1 | " Vim colorscheme file 2 | " Maintainer: Adrian Nagle 3 | " Last Change: 2001-09-25 07:48:15 Mountain Daylight Time 4 | " URL: http://www.naglenet.org/vim/syntax/adrian.vim 5 | " MAIN URL: http://www.naglenet.org/vim 6 | 7 | " This is my custom syntax file to override the defaults provided with Vim. 8 | " This file should be located in $HOME/vimfiles/colors. 9 | 10 | " This file should automatically be sourced by $RUNTIMEPATH. 11 | 12 | " NOTE(S): 13 | " *(1) 14 | " The color definitions assumes and is intended for a black or dark 15 | " background. 16 | 17 | " *(2) 18 | " This file is specifically in Unix style EOL format so that I can simply 19 | " copy this file between Windows and Unix systems. VIM can source files in 20 | " with the UNIX EOL format (only instead of for DOS) in any 21 | " operating system if the 'fileformats' is not empty and there is no 22 | " just before the on the first line. See ':help :source_crnl' and 23 | " ':help fileformats'. 24 | " 25 | " *(3) 26 | " Move this file to adrian.vim for vim6.0aw. 27 | " 28 | 29 | 30 | 31 | hi clear 32 | set background=dark 33 | if exists("syntax_on") 34 | syntax reset 35 | endif 36 | let g:colors_name = "adrian" 37 | 38 | " Normal is for the normal (unhighlighted) text and background. 39 | " NonText is below the last line (~ lines). 40 | highlight Normal guibg=Black guifg=Green 41 | highlight Cursor guibg=Grey70 guifg=White 42 | highlight NonText guibg=Grey80 43 | highlight StatusLine gui=bold guibg=DarkGrey guifg=Orange 44 | highlight StatusLineNC guibg=DarkGrey guifg=Orange 45 | 46 | highlight Comment term=bold ctermfg=LightGrey guifg=#d1ddff 47 | highlight Constant term=underline ctermfg=White guifg=#ffa0a0 48 | "highlight Number term=underline ctermfg=Yellow guifg=Yellow 49 | highlight Identifier term=underline ctermfg=Cyan guifg=#40ffff 50 | highlight Statement term=bold ctermfg=Yellow gui=bold guifg=#ffff60 51 | highlight PreProc term=underline ctermfg=Blue guifg=#ff4500 52 | highlight Type term=underline ctermfg=DarkGrey gui=bold guifg=#7d96ff 53 | highlight Special term=bold ctermfg=Magenta guifg=Orange 54 | highlight Ignore ctermfg=black guifg=bg 55 | highlight Error ctermfg=White ctermbg=Red guifg=White guibg=Red 56 | highlight Todo ctermfg=Blue ctermbg=Yellow guifg=Blue guibg=Yellow 57 | 58 | " Change the highlight of search matches (for use with :set hls). 59 | highlight Search ctermfg=Black ctermbg=Yellow guifg=Black guibg=Yellow 60 | 61 | " Change the highlight of visual highlight. 62 | highlight Visual cterm=NONE ctermfg=Black ctermbg=LightGrey gui=NONE guifg=Black guibg=Grey70 63 | 64 | highlight Float ctermfg=Blue guifg=#88AAEE 65 | highlight Exception ctermfg=Red ctermbg=White guifg=Red guibg=White 66 | highlight Typedef ctermfg=White ctermbg=Blue gui=bold guifg=White guibg=Blue 67 | highlight SpecialChar ctermfg=Black ctermbg=White guifg=Black guibg=White 68 | highlight Delimiter ctermfg=White ctermbg=Black guifg=White guibg=Black 69 | highlight SpecialComment ctermfg=Black ctermbg=Green guifg=Black guibg=Green 70 | 71 | " Common groups that link to default highlighting. 72 | " You can specify other highlighting easily. 73 | highlight link String Constant 74 | highlight link Character Constant 75 | highlight link Number Constant 76 | highlight link Boolean Statement 77 | "highlight link Float Number 78 | highlight link Function Identifier 79 | highlight link Conditional Type 80 | highlight link Repeat Type 81 | highlight link Label Type 82 | highlight link Operator Type 83 | highlight link Keyword Type 84 | "highlight link Exception Type 85 | highlight link Include PreProc 86 | highlight link Define PreProc 87 | highlight link Macro PreProc 88 | highlight link PreCondit PreProc 89 | highlight link StorageClass Type 90 | highlight link Structure Type 91 | "highlight link Typedef Type 92 | "highlight link SpecialChar Special 93 | highlight link Tag Special 94 | "highlight link Delimiter Special 95 | "highlight link SpecialComment Special 96 | highlight link Debug Special 97 | 98 | -------------------------------------------------------------------------------- /home/mloskot/.vim/colors/asu1dark.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Maintainer: A. Sinan Unur 3 | " Last Change: 2001/10/04 4 | 5 | " Dark color scheme 6 | 7 | set background=dark 8 | hi clear 9 | if exists("syntax_on") 10 | syntax reset 11 | endif 12 | let g:colors_name="asu1dark" 13 | 14 | " Console Color Scheme 15 | hi Normal term=NONE cterm=NONE ctermfg=LightGray ctermbg=Black 16 | hi NonText term=NONE cterm=NONE ctermfg=Brown ctermbg=Black 17 | hi Function term=NONE cterm=NONE ctermfg=DarkCyan ctermbg=Black 18 | hi Statement term=BOLD cterm=BOLD ctermfg=DarkBlue ctermbg=Black 19 | hi Special term=NONE cterm=NONE ctermfg=DarkGreen ctermbg=Black 20 | hi SpecialChar term=NONE cterm=NONE ctermfg=Cyan ctermbg=Black 21 | hi Constant term=NONE cterm=NONE ctermfg=Blue ctermbg=Black 22 | hi Comment term=NONE cterm=NONE ctermfg=DarkGray ctermbg=Black 23 | hi Preproc term=NONE cterm=NONE ctermfg=DarkGreen ctermbg=Black 24 | hi Type term=NONE cterm=NONE ctermfg=DarkMagenta ctermbg=Black 25 | hi Identifier term=NONE cterm=NONE ctermfg=Cyan ctermbg=Black 26 | hi StatusLine term=BOLD cterm=NONE ctermfg=Yellow ctermbg=DarkBlue 27 | hi StatusLineNC term=NONE cterm=NONE ctermfg=Black ctermbg=Gray 28 | hi Visual term=NONE cterm=NONE ctermfg=White ctermbg=DarkCyan 29 | hi Search term=NONE cterm=NONE ctermbg=Yellow ctermfg=DarkBlue 30 | hi VertSplit term=NONE cterm=NONE ctermfg=Black ctermbg=Gray 31 | hi Directory term=NONE cterm=NONE ctermfg=Green ctermbg=Black 32 | hi WarningMsg term=NONE cterm=NONE ctermfg=Blue ctermbg=Yellow 33 | hi Error term=NONE cterm=NONE ctermfg=DarkRed ctermbg=Gray 34 | hi Cursor ctermfg=Black ctermbg=Cyan 35 | hi LineNr term=NONE cterm=NONE ctermfg=Red ctermbg=Black 36 | 37 | " GUI Color Scheme 38 | hi Normal gui=NONE guifg=White guibg=#110022 39 | hi NonText gui=NONE guifg=#ff9999 guibg=#444444 40 | hi Function gui=NONE guifg=#7788ff guibg=#110022 41 | hi Statement gui=BOLD guifg=Yellow guibg=#110022 42 | hi Special gui=NONE guifg=Cyan guibg=#110022 43 | hi Constant gui=NONE guifg=#ff9900 guibg=#110022 44 | hi Comment gui=NONE guifg=#99cc99 guibg=#110022 45 | hi Preproc gui=NONE guifg=#33ff66 guibg=#110022 46 | hi Type gui=NONE guifg=#ff5577 guibg=#110022 47 | hi Identifier gui=NONE guifg=Cyan guibg=#110022 48 | hi StatusLine gui=BOLD guifg=White guibg=#336600 49 | hi StatusLineNC gui=NONE guifg=Black guibg=#cccccc 50 | hi Visual gui=NONE guifg=White guibg=#00aa33 51 | hi Search gui=BOLD guibg=Yellow guifg=DarkBlue 52 | hi VertSplit gui=NONE guifg=White guibg=#666666 53 | hi Directory gui=NONE guifg=Green guibg=#110022 54 | hi WarningMsg gui=STANDOUT guifg=#0000cc guibg=Yellow 55 | hi Error gui=NONE guifg=White guibg=Red 56 | hi Cursor guifg=White guibg=#00ff33 57 | hi LineNr gui=NONE guifg=#cccccc guibg=#334444 58 | hi ModeMsg gui=NONE guifg=Blue guibg=White 59 | hi Question gui=NONE guifg=#66ff99 guibg=#110022 60 | -------------------------------------------------------------------------------- /home/mloskot/.vim/colors/bensday.vim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/.vim/colors/bensday.vim -------------------------------------------------------------------------------- /home/mloskot/.vim/colors/desert.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Maintainer: Hans Fugal 3 | " Last Change: $Date: 2003/06/02 19:28:15 $ 4 | " URL: http://hans.fugal.net/vim/colors/desert.vim 5 | 6 | " cool help screens 7 | " :he group-name 8 | " :he highlight-groups 9 | " :he cterm-colors 10 | 11 | set background=dark 12 | if version > 580 13 | " no guarantees for version 5.8 and below, but this makes it stop 14 | " complaining 15 | hi clear 16 | if exists("syntax_on") 17 | syntax reset 18 | endif 19 | endif 20 | let g:colors_name="desert" 21 | 22 | hi Normal guifg=White guibg=grey20 23 | 24 | " highlight groups 25 | hi Cursor guibg=khaki guifg=slategrey 26 | "hi CursorIM 27 | "hi Directory 28 | "hi DiffAdd 29 | "hi DiffChange 30 | "hi DiffDelete 31 | "hi DiffText 32 | "hi ErrorMsg 33 | hi VertSplit guibg=#c2bfa5 guifg=grey50 gui=none 34 | hi Folded guibg=grey30 guifg=gold 35 | hi FoldColumn guibg=grey30 guifg=tan 36 | hi IncSearch guifg=slategrey guibg=khaki 37 | "hi LineNr 38 | hi ModeMsg guifg=goldenrod 39 | hi MoreMsg guifg=SeaGreen 40 | hi NonText guifg=LightBlue guibg=grey30 41 | hi Question guifg=springgreen 42 | hi Search guibg=peru guifg=wheat 43 | hi SpecialKey guifg=yellowgreen 44 | hi StatusLine guibg=#c2bfa5 guifg=black gui=none 45 | hi StatusLineNC guibg=#c2bfa5 guifg=grey50 gui=none 46 | hi Title guifg=indianred 47 | hi Visual gui=none guifg=khaki guibg=olivedrab 48 | "hi VisualNOS 49 | hi WarningMsg guifg=salmon 50 | "hi WildMenu 51 | "hi Menu 52 | "hi Scrollbar 53 | "hi Tooltip 54 | 55 | " syntax highlighting groups 56 | hi Comment guifg=SkyBlue 57 | hi Constant guifg=#ffa0a0 58 | hi Identifier guifg=palegreen 59 | hi Statement guifg=khaki 60 | hi PreProc guifg=indianred 61 | hi Type guifg=darkkhaki 62 | hi Special guifg=navajowhite 63 | "hi Underlined 64 | hi Ignore guifg=grey40 65 | "hi Error 66 | hi Todo guifg=orangered guibg=yellow2 67 | 68 | " color terminal definitions 69 | hi SpecialKey ctermfg=darkgreen 70 | hi NonText cterm=bold ctermfg=darkblue 71 | hi Directory ctermfg=darkcyan 72 | hi ErrorMsg cterm=bold ctermfg=7 ctermbg=1 73 | hi IncSearch cterm=NONE ctermfg=yellow ctermbg=green 74 | hi Search cterm=NONE ctermfg=grey ctermbg=blue 75 | hi MoreMsg ctermfg=darkgreen 76 | hi ModeMsg cterm=NONE ctermfg=brown 77 | hi LineNr ctermfg=3 78 | hi Question ctermfg=green 79 | hi StatusLine cterm=bold,reverse 80 | hi StatusLineNC cterm=reverse 81 | hi VertSplit cterm=reverse 82 | hi Title ctermfg=5 83 | hi Visual cterm=reverse 84 | hi VisualNOS cterm=bold,underline 85 | hi WarningMsg ctermfg=1 86 | hi WildMenu ctermfg=0 ctermbg=3 87 | hi Folded ctermfg=darkgrey ctermbg=NONE 88 | hi FoldColumn ctermfg=darkgrey ctermbg=NONE 89 | hi DiffAdd ctermbg=4 90 | hi DiffChange ctermbg=5 91 | hi DiffDelete cterm=bold ctermfg=4 ctermbg=6 92 | hi DiffText cterm=bold ctermbg=1 93 | hi Comment ctermfg=darkcyan 94 | hi Constant ctermfg=brown 95 | hi Special ctermfg=5 96 | hi Identifier ctermfg=6 97 | hi Statement ctermfg=3 98 | hi PreProc ctermfg=5 99 | hi Type ctermfg=2 100 | hi Underlined cterm=underline ctermfg=5 101 | hi Ignore ctermfg=darkgrey 102 | hi Error cterm=bold ctermfg=7 ctermbg=1 103 | 104 | 105 | "vim: sw=4 106 | -------------------------------------------------------------------------------- /home/mloskot/.vim/colors/mustang.vim: -------------------------------------------------------------------------------- 1 | " Maintainer: Henrique C. Alves (hcarvalhoalves@gmail.com) 2 | " Version: 1.0 3 | " Last Change: September 25 2008 4 | 5 | set background=dark 6 | 7 | hi clear 8 | 9 | if exists("syntax_on") 10 | syntax reset 11 | endif 12 | 13 | let colors_name = "mustang" 14 | 15 | " Vim >= 7.0 specific colors 16 | if version >= 700 17 | hi CursorLine guibg=#2d2d2d ctermbg=236 18 | hi ColorColumn guibg=#2d2d2d ctermbg=236 19 | hi CursorColumn guibg=#2D2D2D ctermbg=236 20 | hi MatchParen guifg=#d0ffc0 guibg=#2f2f2f gui=bold ctermfg=157 ctermbg=237 cterm=bold 21 | hi Pmenu guifg=#ffffff guibg=#444444 ctermfg=255 ctermbg=238 22 | hi PmenuSel guifg=#000000 guibg=#b1d631 ctermfg=0 ctermbg=148 23 | endif 24 | 25 | " General colors 26 | hi Cursor guifg=NONE guibg=#626262 gui=none ctermbg=241 27 | hi Normal guifg=#e2e2e5 guibg=#202020 gui=none ctermfg=253 ctermbg=234 28 | hi NonText guifg=#808080 guibg=#202020 gui=none ctermfg=244 ctermbg=235 29 | hi LineNr guifg=#808080 guibg=#000000 gui=none ctermfg=244 ctermbg=232 30 | hi StatusLine guifg=#d3d3d5 guibg=#444444 gui=italic ctermfg=253 ctermbg=238 cterm=italic 31 | hi StatusLineNC guifg=#939395 guibg=#444444 gui=none ctermfg=246 ctermbg=238 32 | hi VertSplit guifg=#444444 guibg=#444444 gui=none ctermfg=238 ctermbg=238 33 | hi Folded guibg=#202020 guifg=#808080 gui=none ctermbg=4 ctermfg=248 34 | hi Title guifg=#f6f3e8 guibg=NONE gui=bold ctermfg=254 cterm=bold 35 | hi Visual guifg=#faf4c6 guibg=#3c414c gui=none ctermfg=254 ctermbg=4 36 | hi SpecialKey guifg=#808080 guibg=#202020 gui=none ctermfg=244 ctermbg=236 37 | 38 | " Syntax highlighting 39 | hi Comment guifg=#606060 gui=italic ctermfg=244 40 | hi Todo guifg=#8f8f8f gui=italic ctermfg=245 41 | hi Boolean guifg=#b1d631 gui=none ctermfg=148 42 | hi String guifg=#b1d631 gui=italic ctermfg=148 43 | hi Identifier guifg=#b1d631 gui=none ctermfg=148 44 | hi Function guifg=#ffffff gui=bold ctermfg=255 45 | hi Type guifg=#7e8aa2 gui=none ctermfg=103 46 | hi Statement guifg=#7e8aa2 gui=none ctermfg=103 47 | hi Keyword guifg=#ff9800 gui=none ctermfg=208 48 | hi Constant guifg=#ff9800 gui=none ctermfg=208 49 | hi Number guifg=#ff9800 gui=none ctermfg=208 50 | hi Special guifg=#ff9800 gui=none ctermfg=208 51 | hi PreProc guifg=#faf4c6 gui=none ctermfg=230 52 | hi Todo guifg=#000000 guibg=#e6ea50 gui=italic 53 | 54 | " Code-specific colors 55 | hi pythonOperator guifg=#7e8aa2 gui=none ctermfg=103 56 | 57 | " Cursor Colors 58 | hi Cursor guifg=#000000 guibg=#F35FBC 59 | hi iCursor guifg=#000000 guibg=#FDFF00 60 | hi vCursor guifg=#000000 guibg=#AAF412 61 | -------------------------------------------------------------------------------- /home/mloskot/.vim/colors/vitamins.vim: -------------------------------------------------------------------------------- 1 | " Maintainer: Henrique C. Alves (hcarvalhoalves@gmail.com) 2 | " Version: 1.1 3 | " Last Change: September 23 2008 4 | 5 | set background=dark 6 | 7 | hi clear 8 | 9 | if exists("syntax_on") 10 | syntax reset 11 | endif 12 | 13 | let colors_name = "vitamins" 14 | 15 | " Vim >= 7.0 specific colors 16 | if version >= 700 17 | hi CursorLine guibg=#2d2d2d ctermbg=236 18 | hi ColorColumn guibg=#2d2d2d ctermbg=236 19 | hi CursorColumn guibg=#2d2d2d ctermbg=236 20 | hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=bold ctermbg=59 21 | hi Pmenu guifg=#f6f3e8 guibg=#444444 ctermbg=242 22 | hi PmenuSel guifg=#000000 guibg=#cdd129 ctermfg=0 ctermbg=184 23 | endif 24 | 25 | " General colors 26 | hi Cursor guifg=NONE guibg=#656565 gui=none ctermbg=0x241 27 | hi Normal guifg=#f6f3f0 guibg=#212121 gui=none ctermfg=254 ctermbg=235 28 | hi NonText guifg=#808080 guibg=#212121 gui=none ctermfg=242 ctermbg=237 29 | hi LineNr guifg=#5c5a4f guibg=#000000 gui=none ctermfg=239 ctermbg=232 30 | hi StatusLine guifg=#f6f3e8 guibg=#444444 gui=italic 31 | hi StatusLineNC guifg=#857b6f guibg=#444444 gui=none 32 | hi VertSplit guifg=#777777 guibg=#212121 gui=none 33 | hi Folded guibg=#212121 guifg=#777777 gui=none 34 | hi Title guifg=#f6f3e8 guibg=NONE gui=bold 35 | hi Visual guifg=#ffffd7 guibg=#444444 gui=none ctermfg=186 ctermbg=238 36 | hi SpecialKey guifg=#808080 guibg=#212121 gui=none 37 | 38 | " Syntax highlighting 39 | hi Comment guifg=#aaaaaa gui=italic ctermfg=244 40 | hi Todo guifg=#8f8f8f gui=italic ctermfg=245 41 | hi Constant guifg=#acf0f2 gui=none ctermfg=159 42 | hi String guifg=#ff5d28 gui=italic ctermfg=202 43 | hi Identifier guifg=#ff5d28 gui=none ctermfg=202 44 | hi Function guifg=#cdd129 gui=none ctermfg=184 45 | hi Type guifg=#cdd129 gui=none ctermfg=184 46 | hi Statement guifg=#af5f5f gui=none ctermfg=131 47 | hi Keyword guifg=#cdd129 gui=none ctermfg=184 48 | hi PreProc guifg=#ede39e gui=none ctermfg=187 49 | hi Number guifg=#ede39e gui=none ctermfg=187 50 | hi Special guifg=#acf0f2 gui=none ctermfg=159 51 | 52 | " Cursor Colors 53 | hi Cursor guifg=#000000 guibg=#AAF412 54 | hi iCursor guifg=#000000 guibg=#FDFF00 55 | hi vCursor guifg=#000000 guibg=#FDFF00 56 | -------------------------------------------------------------------------------- /home/mloskot/.vim/colors/wombat.vim: -------------------------------------------------------------------------------- 1 | " Maintainer: Lars H. Nielsen (dengmao@gmail.com) 2 | " Last Change: January 22 2007 3 | 4 | set background=dark 5 | 6 | hi clear 7 | 8 | if exists("syntax_on") 9 | syntax reset 10 | endif 11 | 12 | let colors_name = "wombat" 13 | 14 | 15 | " Vim >= 7.0 specific colors 16 | if version >= 700 17 | hi CursorLine guibg=#2d2d2d 18 | hi CursorColumn guibg=#2d2d2d 19 | hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=bold 20 | hi Pmenu guifg=#f6f3e8 guibg=#444444 21 | hi PmenuSel guifg=#000000 guibg=#cae682 22 | endif 23 | 24 | " General colors 25 | hi Cursor guifg=NONE guibg=#656565 gui=none 26 | hi Normal guifg=#f6f3e8 guibg=#242424 gui=none 27 | hi NonText guifg=#808080 guibg=#303030 gui=none 28 | hi LineNr guifg=#857b6f guibg=#000000 gui=none 29 | hi StatusLine guifg=#f6f3e8 guibg=#444444 gui=italic 30 | hi StatusLineNC guifg=#857b6f guibg=#444444 gui=none 31 | hi VertSplit guifg=#444444 guibg=#444444 gui=none 32 | hi Folded guibg=#384048 guifg=#a0a8b0 gui=none 33 | hi Title guifg=#f6f3e8 guibg=NONE gui=bold 34 | hi Visual guifg=#f6f3e8 guibg=#444444 gui=none 35 | hi SpecialKey guifg=#808080 guibg=#343434 gui=none 36 | 37 | " Syntax highlighting 38 | hi Comment guifg=#99968b gui=italic 39 | hi Todo guifg=#8f8f8f gui=italic 40 | hi Constant guifg=#e5786d gui=none 41 | hi String guifg=#95e454 gui=italic 42 | hi Identifier guifg=#cae682 gui=none 43 | hi Function guifg=#cae682 gui=none 44 | hi Type guifg=#cae682 gui=none 45 | hi Statement guifg=#8ac6f2 gui=none 46 | hi Keyword guifg=#8ac6f2 gui=none 47 | hi PreProc guifg=#e5786d gui=none 48 | hi Number guifg=#e5786d gui=none 49 | hi Special guifg=#e7f6da gui=none 50 | 51 | 52 | -------------------------------------------------------------------------------- /home/mloskot/.vim/compiler/fpc.vim: -------------------------------------------------------------------------------- 1 | " Vim compiler file 2 | " Compiler: FPC 2.1 3 | " Maintainer: Jaroslaw Blasiok 4 | " Last Change: 2005 October 07 5 | 6 | if exists("current_compiler") 7 | finish 8 | endif 9 | let current_compiler = "fpc" 10 | 11 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 12 | command -nargs=* CompilerSet setlocal 13 | endif 14 | 15 | " NOTE: compiler must be runned with -vb to write whole source path, not only file 16 | " name. 17 | CompilerSet makeprg=fpc\ -v0\ -vb\ -l-\ % 18 | CompilerSet errorformat=%f(%l\\,%c)\ %m 19 | -------------------------------------------------------------------------------- /home/mloskot/.vim/doc/ack.txt: -------------------------------------------------------------------------------- 1 | *ack.txt* Plugin that integrates ack with Vim 2 | 3 | ============================================================================== 4 | Author: Antoine Imbert *ack-author* 5 | License: Same terms as Vim itself (see |license|) 6 | 7 | ============================================================================== 8 | INTRODUCTION *ack* 9 | 10 | This plugin is a front for the Perl module App::Ack. Ack can be used as a 11 | replacement for grep. This plugin will allow you to run ack from vim, and 12 | shows the results in a split window. 13 | 14 | :Ack[!] [options] {pattern} [{directory}] *:Ack* 15 | 16 | Search recursively in {directory} (which defaults to the current 17 | directory) for the {pattern}. Behaves just like the |:grep| command, but 18 | will open the |Quickfix| window for you. If [!] is not given the first 19 | error is jumped to. 20 | 21 | :AckAdd [options] {pattern} [{directory}] *:AckAdd* 22 | 23 | Just like |:Ack|, but instead of making a new list, the matches are 24 | appended to the current |quickfix| list. 25 | 26 | :AckFromSearch [{directory}] *:AckFromSearch* 27 | 28 | Just like |:Ack| but the pattern is from previous search. 29 | 30 | :LAck [options] {pattern} [{directory}] *:LAck* 31 | 32 | Just like |:Ack| but instead of the |quickfix| list, matches are placed in 33 | the current |location-list|. 34 | 35 | :LAckAdd [options] {pattern} [{directory}] *:LAckAdd* 36 | 37 | Just like |:AckAdd| but instead of the |quickfix| list, matches are added 38 | to the current |location-list| 39 | 40 | :AckFile [options] {pattern} [{directory}] *:AckFile* 41 | 42 | Search recursively in {directory} (which defaults to the current 43 | directory) for filenames matching the {pattern}. Behaves just like the 44 | |:grep| command, but will open the |Quickfix| window for you. 45 | 46 | :AckHelp[!] [options] {pattern} *:AckHelp* 47 | 48 | Search vim documentation files for the {pattern}. Behaves just like the 49 | |:Ack| command, but searches only vim documentation .txt files 50 | 51 | :LAckHelp [options] {pattern} *:LAckHelp* 52 | 53 | Just like |:AckHelp| but instead of the |quickfix| list, matches are placed 54 | in the current |location-list|. 55 | 56 | Files containing the search term will be listed in the split window, along 57 | with the line number of the occurrence, once for each occurrence. on 58 | a line in this window will open the file, and place the cursor on the matching 59 | line. 60 | 61 | See http://betterthangrep.com/ for more information. 62 | 63 | ============================================================================== 64 | MAPPINGS *ack-mappings* 65 | 66 | The following keyboard shortcuts are available in the quickfix window: 67 | 68 | o open file (same as enter). 69 | 70 | go preview file (open but maintain focus on ack.vim results). 71 | 72 | t open in a new tab. 73 | 74 | T open in new tab silently. 75 | 76 | h open in horizontal split. 77 | 78 | H open in horizontal split silently. 79 | 80 | v open in vertical split. 81 | 82 | gv open in vertical split silently. 83 | 84 | q close the quickfix window. 85 | -------------------------------------------------------------------------------- /home/mloskot/.vim/doc/vst-s5.txt: -------------------------------------------------------------------------------- 1 | .. This is a comment 2 | .. Use ":Vst s5" to generate the HTML for this document 3 | 4 | ============================================ 5 | Vim reStructured Text 6 | ============================================ 7 | 8 | :Title: Vim reStructured Text - A Quick Introduction 9 | :Author: George V. Reilly 10 | :Date: 2006/05/12 11 | 12 | 13 | What is VST? 14 | ============ 15 | 16 | `VST `_ is an easy way to produce: 17 | 18 | * HTML 19 | * S5 Slides, like this document 20 | * LaTeX and PDF 21 | 22 | from `reStructured text `_: plain text 23 | with minimal markup. 24 | 25 | The powerful `Vim `_ editor is used to prepare the 26 | material. 27 | 28 | Please read the _`source` of these slides to see how the effects used herein are 29 | achieved. 30 | 31 | 32 | Simple markup 33 | ============= 34 | 35 | + Bulleted Lists 36 | + Numeric lists (nested) 37 | 38 | #. **Bold** text 39 | 2. *Italics* text 40 | #. ``typewriter`` text 41 | 42 | + Subscripts, H\ :sub:`2`\ O. 43 | + Replacement -- |VST| -- of text. 44 | 45 | 46 | Blockquotes 47 | =========== 48 | 49 | You can embed blockquotes inside your text:: 50 | 51 | Simple markup 52 | ============== 53 | 54 | + Bulleted Lists 55 | + Numeric lists (nested) 56 | 57 | #. **Bold** text 58 | 2. *Italics* text 59 | #. ``typewriter`` text 60 | 61 | + Replacement -- |VST| -- of text. 62 | 63 | is most of the text of the previous slide. 64 | 65 | 66 | Links 67 | ===== 68 | 69 | VST supports a variety of hyperlink notations. 70 | 71 | * Starting points: `What is VST?`_ 72 | * `External links`_ 73 | * Internal links, such as `source`_ 74 | * Standalone links, http://www.vim.org 75 | * `Embedded URIs `_ 76 | 77 | The full effect of these links cannot be seen in the S5 slides. 78 | Regenerate with ``:Vst`` instead. 79 | 80 | .. _External links: http://skawina.eu.org/mikolaj/vst.html#lexternal-links 81 | 82 | 83 | Images 84 | ====== 85 | 86 | .. image:: http://www.vim.org/images/vim_header.gif 87 | :title: Vim 88 | :target: http://www.vim.org/ 89 | 90 | .. tip:: You can apply a variety of attributes to images. 91 | 92 | If you need really fine control, you may need to use ``.. raw:: html`` 93 | 94 | 95 | Simple Tables 96 | ============= 97 | 98 | 99 | == == == == == == == 100 | su mo tu we th fr sa 101 | == == == == == == == 102 | 1 103 | 2 3 4 5 6 7 8 104 | 9 10 11 12 13 14 15 105 | 16 17 18 19 20 21 22 106 | 23 24 25 26 27 28 29 107 | 30 31 108 | == == == == == == == 109 | 110 | 111 | Rich Tables 112 | =========== 113 | 114 | +---------------------+----------------+------------------+ 115 | | Cells are | by bar with | | | 116 | | separated | spaces around | | 117 | +---------------------+----------------+------------------+ 118 | | *You* may use | markup, | included. | 119 | | **inline** | links_ | | 120 | +---------------------+----------------+------------------+ 121 | | You can use various | - like lists | VST will | 122 | | types of structure | | interpret them. | 123 | | elements:: | + various | | 124 | | | | Even paragraphs. | 125 | | Welcome to world | - embedded | | 126 | | of preformatted | - one into | 1. And | 127 | | text. | other | 2. not | 128 | +---------------------+----------------+------------------+ 129 | | Text may span across several | | 130 | | columns. Cell can be also empty -> | | 131 | +---------------------+----------------+------------------+ 132 | 133 | 134 | Conclusion 135 | ========== 136 | 137 | VST is an easy way to produce marked-up documents with easy-to-read source, in 138 | Vim. 139 | 140 | This slideshow displays only a few features of VST. Be sure to read the 141 | `manual `_. 142 | 143 | .. |VST| replace:: Vim reStructured Text 144 | 145 | .. vim:set tw=78 ai fo+=n fo-=l ft=rst: 146 | -------------------------------------------------------------------------------- /home/mloskot/.vim/doc/vst.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/.vim/doc/vst.txt -------------------------------------------------------------------------------- /home/mloskot/.vim/filetype.vim: -------------------------------------------------------------------------------- 1 | " ~/.vim/filetype.vim 2 | " Mateusz Loskot 3 | " 4 | if exists("did_load_filetypes") 5 | finish 6 | endif 7 | 8 | " jam detection 9 | augroup filetypedetect 10 | au! BufRead,BufNewFile Jamroot setfiletype jam 11 | augroup END 12 | -------------------------------------------------------------------------------- /home/mloskot/.vim/plugin/ack.vim: -------------------------------------------------------------------------------- 1 | " NOTE: You must, of course, install the ack script 2 | " in your path. 3 | " On Debian / Ubuntu: 4 | " sudo apt-get install ack-grep 5 | " With MacPorts: 6 | " sudo port install p5-app-ack 7 | " With Homebrew: 8 | " brew install ack 9 | 10 | " Location of the ack utility 11 | if !exists("g:ackprg") 12 | let s:ackcommand = executable('ack-grep') ? 'ack-grep' : 'ack' 13 | let g:ackprg=s:ackcommand." -H --nocolor --nogroup --column" 14 | endif 15 | 16 | if !exists("g:ack_apply_qmappings") 17 | let g:ack_apply_qmappings = !exists("g:ack_qhandler") 18 | endif 19 | 20 | if !exists("g:ack_apply_lmappings") 21 | let g:ack_apply_lmappings = !exists("g:ack_lhandler") 22 | endif 23 | 24 | if !exists("g:ack_qhandler") 25 | let g:ack_qhandler="botright copen" 26 | endif 27 | 28 | if !exists("g:ack_lhandler") 29 | let g:ack_lhandler="botright lopen" 30 | endif 31 | 32 | function! s:Ack(cmd, args) 33 | redraw 34 | echo "Searching ..." 35 | 36 | " If no pattern is provided, search for the word under the cursor 37 | if empty(a:args) 38 | let l:grepargs = expand("") 39 | else 40 | let l:grepargs = a:args . join(a:000, ' ') 41 | end 42 | 43 | " Format, used to manage column jump 44 | if a:cmd =~# '-g$' 45 | let g:ackformat="%f" 46 | else 47 | let g:ackformat="%f:%l:%c:%m" 48 | end 49 | 50 | let grepprg_bak=&grepprg 51 | let grepformat_bak=&grepformat 52 | try 53 | let &grepprg=g:ackprg 54 | let &grepformat=g:ackformat 55 | silent execute a:cmd . " " . escape(l:grepargs, '|') 56 | finally 57 | let &grepprg=grepprg_bak 58 | let &grepformat=grepformat_bak 59 | endtry 60 | 61 | if a:cmd =~# '^l' 62 | exe g:ack_lhandler 63 | let l:apply_mappings = g:ack_apply_lmappings 64 | else 65 | exe g:ack_qhandler 66 | let l:apply_mappings = g:ack_apply_qmappings 67 | endif 68 | 69 | if l:apply_mappings 70 | exec "nnoremap q :ccl" 71 | exec "nnoremap t T" 72 | exec "nnoremap T TgT" 73 | exec "nnoremap o " 74 | exec "nnoremap go " 75 | exec "nnoremap h K" 76 | exec "nnoremap H Kb" 77 | exec "nnoremap v HbJt" 78 | exec "nnoremap gv HbJ" 79 | endif 80 | 81 | " If highlighting is on, highlight the search keyword. 82 | if exists("g:ackhighlight") 83 | let @/=a:args 84 | set hlsearch 85 | end 86 | 87 | redraw! 88 | endfunction 89 | 90 | function! s:AckFromSearch(cmd, args) 91 | let search = getreg('/') 92 | " translate vim regular expression to perl regular expression. 93 | let search = substitute(search,'\(\\<\|\\>\)','\\b','g') 94 | call s:Ack(a:cmd, '"' . search .'" '. a:args) 95 | endfunction 96 | 97 | function! s:GetDocLocations() 98 | let dp = '' 99 | for p in split(&rtp,',') 100 | let p = p.'/doc/' 101 | if isdirectory(p) 102 | let dp = p.'*.txt '.dp 103 | endif 104 | endfor 105 | return dp 106 | endfunction 107 | 108 | function! s:AckHelp(cmd,args) 109 | let args = a:args.' '.s:GetDocLocations() 110 | call s:Ack(a:cmd,args) 111 | endfunction 112 | 113 | command! -bang -nargs=* -complete=file Ack call s:Ack('grep',) 114 | command! -bang -nargs=* -complete=file AckAdd call s:Ack('grepadd', ) 115 | command! -bang -nargs=* -complete=file AckFromSearch call s:AckFromSearch('grep', ) 116 | command! -bang -nargs=* -complete=file LAck call s:Ack('lgrep', ) 117 | command! -bang -nargs=* -complete=file LAckAdd call s:Ack('lgrepadd', ) 118 | command! -bang -nargs=* -complete=file AckFile call s:Ack('grep -g', ) 119 | command! -bang -nargs=* -complete=help AckHelp call s:AckHelp('grep',) 120 | command! -bang -nargs=* -complete=help LAckHelp call s:AckHelp('lgrep',) 121 | -------------------------------------------------------------------------------- /home/mloskot/.vim/plugin/clang/__init__.py: -------------------------------------------------------------------------------- 1 | #===- __init__.py - Clang Python Bindings --------------------*- python -*--===# 2 | # 3 | # The LLVM Compiler Infrastructure 4 | # 5 | # This file is distributed under the University of Illinois Open Source 6 | # License. See LICENSE.TXT for details. 7 | # 8 | #===------------------------------------------------------------------------===# 9 | 10 | r""" 11 | Clang Library Bindings 12 | ====================== 13 | 14 | This package provides access to the Clang compiler and libraries. 15 | 16 | The available modules are: 17 | 18 | cindex 19 | 20 | Bindings for the Clang indexing library. 21 | """ 22 | 23 | __all__ = ['cindex'] 24 | 25 | -------------------------------------------------------------------------------- /home/mloskot/.vim/plugin/clang/enumerations.py: -------------------------------------------------------------------------------- 1 | #===- enumerations.py - Python Enumerations ------------------*- python -*--===# 2 | # 3 | # The LLVM Compiler Infrastructure 4 | # 5 | # This file is distributed under the University of Illinois Open Source 6 | # License. See LICENSE.TXT for details. 7 | # 8 | #===------------------------------------------------------------------------===# 9 | 10 | """ 11 | Clang Enumerations 12 | ================== 13 | 14 | This module provides static definitions of enumerations that exist in libclang. 15 | 16 | Enumerations are typically defined as a list of tuples. The exported values are 17 | typically munged into other types or classes at module load time. 18 | 19 | All enumerations are centrally defined in this file so they are all grouped 20 | together and easier to audit. And, maybe even one day this file will be 21 | automatically generated by scanning the libclang headers! 22 | """ 23 | 24 | # Maps to CXTokenKind. Note that libclang maintains a separate set of token 25 | # enumerations from the C++ API. 26 | TokenKinds = [ 27 | ('PUNCTUATION', 0), 28 | ('KEYWORD', 1), 29 | ('IDENTIFIER', 2), 30 | ('LITERAL', 3), 31 | ('COMMENT', 4), 32 | ] 33 | 34 | __all__ = ['TokenKinds'] 35 | -------------------------------------------------------------------------------- /home/mloskot/.vim/plugin/cmake.vim: -------------------------------------------------------------------------------- 1 | " Description: CMake bootstrap plugin 2 | " Maintainer: Richard Quirk richard.quirk at gmail.com 3 | " License: Apache License 2.0 4 | " 5 | " To install cmake completion, copy the contents of this file to 6 | " $HOME/.vim/plugin/cmake.vim 7 | " And the associated autoload file to: 8 | " $HOME/.vim/autoload/cmakecomplete.vim 9 | " 10 | " The CMakeHelp command shows full help, or can be filtered by command 11 | 12 | """ 13 | " Copyright 2009 Richard Quirk 14 | " 15 | " Licensed under the Apache License, Version 2.0 (the "License"); you may not 16 | " use this file except in compliance with the License. You may obtain a copy of 17 | " the License at http://www.apache.org/licenses/LICENSE-2.0 18 | " 19 | " Unless required by applicable law or agreed to in writing, software 20 | " distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 21 | " WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 22 | " License for the specific language governing permissions and limitations under 23 | " the License. 24 | """ 25 | command -nargs=* -complete=customlist,cmakecomplete#HelpComplete CMakeHelp call cmakecomplete#Help() 26 | autocmd FileType cmake set omnifunc=cmakecomplete#Complete 27 | -------------------------------------------------------------------------------- /home/mloskot/.vim/plugin/codepad.vim: -------------------------------------------------------------------------------- 1 | " Vim global plugin that provides access to the codepad.org pastebin. 2 | " Requires +python support. 3 | " 4 | " Customized for project paste at http://osgeo.codepad.org 5 | " by Mateusz Loskot 6 | " 7 | " Add this to your ~/.vim/plugin/ directory. Then you can use 8 | " 9 | " :CPPaste 10 | " to send the current buffer to codepad.org and open your pasted code 11 | " in your webbrowser. 12 | " 13 | " :CPRun 14 | " to send the current buffer to codepad.org, execute it on their server, 15 | " and open both the pasted source and the program output in your browser. 16 | " 17 | " The correct filetype is automatically detected from the 'filetype' variable. 18 | " 19 | " Version: 1.3 (OSGeo) 20 | " Last Change: 24 Oct 2009 21 | " Maintainer: Nicolas Weber 22 | " Customizer: Mateusz Loskot 23 | 24 | 25 | if has('python') 26 | command! CPPaste python codepadPaste() 27 | command! CPRun python codepadRun() 28 | else 29 | command! CPPaste echo 'Only avaliable with +python support.' 30 | command! CPRun echo 'Only avaliable with +python support.' 31 | endif 32 | 33 | if has('python') 34 | python << EOF 35 | def codepadLang(vimLang): 36 | filetypeMap = { 37 | 'c':'C', 38 | 'cpp':'C++', 39 | 'd':'D', 40 | 'haskell':'Haskell', 41 | 'lua':'Lua', 42 | 'ocaml':'Ocaml', 43 | 'php':'PHP', 44 | 'perl':'Perl', 45 | 'python':'Python', 46 | 'ruby':'Ruby', 47 | 'scheme':'Scheme', 48 | 'tcl':'Tcl' 49 | } 50 | return filetypeMap.get(vimLang, 'Plain Text') 51 | 52 | def codepadGet(run): 53 | import urllib 54 | import vim 55 | 56 | url = 'http://codepad.org' 57 | data = { 58 | 'code':'\n'.join(vim.current.buffer), 59 | 'lang':codepadLang(vim.eval('&filetype')), 60 | 'submit':'Submit', 61 | 'project':'osgeo' 62 | } 63 | if run: 64 | data['run'] = True 65 | 66 | response = urllib.urlopen(url, urllib.urlencode(data)) 67 | return response.geturl() 68 | 69 | def codepadPaste(): 70 | url = codepadGet(run=False) 71 | import vim 72 | vim.command("call setreg('+', '%s')" % url) 73 | vim.command("call setreg('*', '%s')" % url) 74 | import webbrowser 75 | webbrowser.open(url) 76 | 77 | def codepadRun(): 78 | url = codepadGet(run=True) 79 | import vim 80 | vim.command("call setreg('+', '%s')" % url) 81 | vim.command("call setreg('*', '%s')" % url) 82 | import webbrowser 83 | webbrowser.open(url) 84 | EOF 85 | endif 86 | -------------------------------------------------------------------------------- /home/mloskot/.vim/plugin/jam.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: Jam (specifically boost jam) 3 | " Maintainer: Markus Peloquin 4 | " URL: http://www.cs.wisc.edu/~markus 5 | " Last Change: 2009-02-24 6 | " 7 | " Giving credit where credit is due, I based this off of the version by 8 | " Matt Armstrong (see his message here): 9 | " http://maillist.perforce.com/pipermail/jamming/2000-February/000857.html 10 | " Also, I seriously hope somebody takes this and makes it better, because I 11 | " am absolutely clueless about both jam and vim syntax files. I only needed 12 | " enough to make my text look pretty. 13 | " 14 | " To install, I put it in ~/.vim/syntax and put the following to 15 | " ~/.vim/filetype.vim: 16 | " 17 | " if exists("did_load_filetypes") 18 | " finish 19 | " endif 20 | " 21 | " " jam detection 22 | " augroup filetypedetect 23 | " au! BufRead,BufNewFile Jamroot setfiletype jam 24 | " augroup END 25 | 26 | 27 | " Remove any old syntax stuff hanging around 28 | sy clear 29 | 30 | sy case match 31 | 32 | sy keyword jamCond if else for switch 33 | sy keyword jamLabel case default 34 | sy keyword jamKey actions all in include local module on rule 35 | sy keyword jamAction bind existing import ignore piecemeal quietly rule 36 | sy keyword jamAction together updated 37 | 38 | " Builtin rules 39 | sy keyword jamBuiltin ALWAYS BACKTRACE CALLER_MODULE DELETE_MODULE 40 | sy keyword jamBuiltin DEPENDS ECHO EXIT EXPORT FAIL_EXPECTED GLOB 41 | sy keyword jamBuiltin IMPORT INCLUDES ISFILE LEAVES LOCATE MATCH NOCARE 42 | sy keyword jamBuiltin NOTFILE NOUPDATE RMOLD RULENAMES SEARCH SHELL 43 | sy keyword jamBuiltin TEMPORARY VARNAMES UPDATE W32_GETREG 44 | sy keyword jamBuiltin W32_GETREGNAMES 45 | 46 | " Jambase rules 47 | sy keyword jamRule As Bulk Cc C++ Chmod Clean FDefines File Fincludes 48 | sy keyword jamRule Fortran FQuote GenFile HardLink HdrRule InstallBin 49 | sy keyword jamRule InstallLib InstallMan InstallShell Lex Library 50 | sy keyword jamRule LibraryFromObjects Link LinkLibraries Main 51 | sy keyword jamRule MainFromObjects MakeLocate MkDir Object ObjectC++Flags 52 | sy keyword jamRule ObjectCcFlags ObjectDefines ObjectHdrs Objects RmTemps 53 | sy keyword jamRule Setuid SoftLink SubDir SubDirC++Flags SubDirCcFlags 54 | sy keyword jamRule SubDirHdrs SubInclude Shell Undefines UserObject Yacc 55 | 56 | " Jambase pseudotargets 57 | sy keyword jamPseudo alias build-project clean dirs exe file install lib 58 | sy keyword jamPseudo obj shell uninstall use-project using 59 | 60 | 61 | " Variables 62 | " $(XX), where XX contains no " character 63 | sy match jamVar '\$([^)"]*)' 64 | " $XX where XX does not start with a ( and contains no space, ", or \ 65 | sy match jamVar '\$[^( \t"\\][^ \t"\\]*' 66 | " (a feature) 67 | sy match jamVar '<[^>]*>' 68 | 69 | 70 | " Strings 71 | " (there are no special escapes like \x01 or \n) 72 | sy match jamStringSpecial "\\." contained 73 | sy cluster jamStringElement contains=jamStringSpecial,jamVar 74 | sy region jamString matchgroup=jamStringStartEnd start='"' end='"' contains=@jamStringElement 75 | 76 | 77 | " Comments 78 | " (only comments [by bjam standards] if they follow whitespace) 79 | sy match jamComment "\([ \t]\|^\)#.*" contains=jamTodo,jamVar,jamString 80 | sy keyword jamTodo TODO FIXME XXX contained 81 | 82 | 83 | " Errors 84 | " semicolons can't be preceded or followed by anything but whitespace 85 | sy match jamSemiError "[^ \t];"hs=s+1 86 | sy match jamSemiError ";[^ \t]"he=e-1 87 | " colons must either have whitespace on both sides (separating clauses of 88 | " rules) or on neither side (e.g. release:NDEBUG) 89 | sy match jamColonError "[^ \t]:[ \t]"hs=s+2 90 | sy match jamColonError "[ \t]:[^ \t]"he=e-2 91 | 92 | 93 | if !exists("did_jamstyle_syntax_inits") 94 | let did_jamstyle_syntax_inits = 1 95 | 96 | hi link jamSemiError jamError 97 | hi link jamColonError jamError 98 | 99 | hi link jamCond Conditional 100 | hi link jamLabel Label 101 | hi link jamKey Keyword 102 | hi link jamAction Keyword 103 | hi link jamBuiltin Keyword 104 | 105 | hi link jamRule Keyword 106 | hi link jamPseudo Keyword 107 | 108 | hi link jamVar Identifier 109 | 110 | hi link jamString String 111 | hi link jamStringSpecial Special 112 | 113 | hi link jamComment Comment 114 | hi link jamTodo Todo 115 | 116 | hi link jamError Error 117 | endif 118 | 119 | let b:current_syntax = "jamstyle" 120 | -------------------------------------------------------------------------------- /home/mloskot/.vim/plugin/rainbow_parentheses.vim: -------------------------------------------------------------------------------- 1 | "============================================================================== 2 | " Description: Rainbow colors for parentheses, based on rainbow_parenthsis.vim 3 | " by Martin Krischik and others. 4 | "============================================================================== 5 | " GetLatestVimScripts: 3772 1 :AutoInstall: rainbow_parentheses.zip 6 | 7 | com! RainbowParenthesesToggle cal rainbow_parentheses#toggle() 8 | com! RainbowParenthesesToggleAll cal rainbow_parentheses#toggleall() 9 | com! RainbowParenthesesActivate cal rainbow_parentheses#activate() 10 | com! RainbowParenthesesLoadRound cal rainbow_parentheses#load(0) 11 | com! RainbowParenthesesLoadSquare cal rainbow_parentheses#load(1) 12 | com! RainbowParenthesesLoadBraces cal rainbow_parentheses#load(2) 13 | com! RainbowParenthesesLoadChevrons cal rainbow_parentheses#load(3) 14 | -------------------------------------------------------------------------------- /home/mloskot/.vim/plugin/snippets/__init__.py: -------------------------------------------------------------------------------- 1 | __all__ = ['clang_complete', 'ultisnips', 'dummy'] 2 | -------------------------------------------------------------------------------- /home/mloskot/.vim/plugin/snippets/clang_complete.py: -------------------------------------------------------------------------------- 1 | import re 2 | import vim 3 | 4 | def snippetsInit(): 5 | vim.command("noremap :python updateSnips()") 6 | vim.command("snoremap :python updateSnips()") 7 | if int(vim.eval("g:clang_conceal_snippets")) == 1: 8 | vim.command("syntax match placeHolder /\$`[^`]*`/ contains=placeHolderMark") 9 | vim.command("syntax match placeHolderMark contained /\$`/ conceal") 10 | vim.command("syntax match placeHolderMark contained /`/ conceal") 11 | 12 | # The two following function are performance sensitive, do _nothing_ 13 | # more that the strict necessary. 14 | 15 | def snippetsFormatPlaceHolder(word): 16 | return "$`%s`" % word 17 | 18 | def snippetsAddSnippet(fullname, word, abbr): 19 | return word 20 | 21 | r = re.compile('\$`[^`]*`') 22 | 23 | def snippetsTrigger(): 24 | if r.search(vim.current.line) is None: 25 | return 26 | vim.command('call feedkeys("\^\")') 27 | 28 | def snippetsReset(): 29 | pass 30 | 31 | def updateSnips(): 32 | line = vim.current.line 33 | row, col = vim.current.window.cursor 34 | 35 | result = r.search(line, col) 36 | if result is None: 37 | result = r.search(line) 38 | if result is None: 39 | vim.command('call feedkeys("\", "n")') 40 | return 41 | 42 | start, end = result.span() 43 | vim.current.window.cursor = row, start 44 | isInclusive = vim.eval("&selection") == "inclusive" 45 | vim.command('call feedkeys("\v%dl\", "n")' % (end - start - isInclusive)) 46 | 47 | # vim: set ts=2 sts=2 sw=2 expandtab : 48 | -------------------------------------------------------------------------------- /home/mloskot/.vim/plugin/snippets/dummy.py: -------------------------------------------------------------------------------- 1 | def snippetsInit(): 2 | pass 3 | 4 | def snippetsFormatPlaceHolder(word): 5 | return '' 6 | 7 | def snippetsAddSnippet(fullname, word, abbr): 8 | return abbr 9 | 10 | def snippetsTrigger(): 11 | pass 12 | 13 | def snippetsReset(): 14 | pass 15 | 16 | # vim: set ts=2 sts=2 sw=2 expandtab : 17 | -------------------------------------------------------------------------------- /home/mloskot/.vim/plugin/snippets/ultisnips.py: -------------------------------------------------------------------------------- 1 | import vim 2 | import re 3 | from UltiSnips import UltiSnips_Manager 4 | 5 | def snippetsInit(): 6 | global ultisnips_idx 7 | ultisnips_idx = 0 8 | UltiSnips_Manager.add_buffer_filetypes('%s.clang_complete' % vim.eval('&filetype')) 9 | 10 | def snippetsFormatPlaceHolder(word): 11 | # Better way to do that? 12 | global ultisnips_idx 13 | ultisnips_idx += 1 14 | return '${%d:%s}' % (ultisnips_idx, word) 15 | 16 | def snippetsAddSnippet(fullname, word, abbr): 17 | global ultisnips_idx 18 | ultisnips_idx = 0 19 | UltiSnips_Manager.add_snippet(fullname, word, fullname, "i", "clang_complete") 20 | return fullname 21 | 22 | def snippetsTrigger(): 23 | print vim.current.line 24 | UltiSnips_Manager.expand() 25 | 26 | def snippetsReset(): 27 | UltiSnips_Manager.clear_snippets(ft="clang_complete") 28 | 29 | # vim: set ts=2 sts=2 sw=2 expandtab : 30 | -------------------------------------------------------------------------------- /home/mloskot/.vim/plugin/tabbar.vim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/.vim/plugin/tabbar.vim -------------------------------------------------------------------------------- /home/mloskot/.vim/plugin/vstplugin.vim: -------------------------------------------------------------------------------- 1 | " Vim reStructured Text 2 | " (c) Mikolaj Machowski 2006 3 | " Author: Mikolaj Machowski ( mikmach AT wp DOT pl ) 4 | " Last Change: 4 Nov 2006 5 | " Version: 1.4 6 | " License: 7 | " Copyright (C) 2006 Mikolaj Machowski 8 | " 9 | " This script is free software; you can redistribute it and/or 10 | " modify it under the terms of the GNU Library General Public 11 | " License as published by the Free Software Foundation; either 12 | " version 2 of the License, or (at your option) any later version. 13 | " 14 | " This library is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 | " Library General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU Library General Public License 20 | " along with this library; see the file COPYING.LIB. If not, write to 21 | " the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 22 | " Boston, MA 02110-1301, USA. 23 | " 24 | " VST requires Vim7 25 | if v:version < 700 26 | finish 27 | endif 28 | 29 | " Command :Vst 30 | command! -range=% -nargs=? -complete=custom,VST_Args Vst call vst#vst#VST_Export(, , ) 31 | command! -range=% -nargs=? -complete=custom,VST_Args Vsti call vst#vst#VST_InstantWrapper(, , ) 32 | command! -range=% -nargs=? -complete=custom,VST_Args Vstm call VST_Menus() 33 | 34 | " VST_Args: Command line completion for :Vst command {{{ 35 | function! VST_Args(A, C, P) 36 | let args = "html,tex,latex,pdf,toc,head,fold,link,slink,rep,srep,preproc,help,rest" 37 | return substitute(args, ',', '\n', 'g') 38 | endfunction 39 | " }}} 40 | " Menus {{{ 41 | function! VST_Menus() 42 | if has("gui_running") 43 | menu VreST.Export\ to\ HTML :Vst html 44 | menu VreST.Export\ to\ LaTeX :Vst tex 45 | menu VreST.Export\ to\ PDF :Vst pdf 46 | menu VreST.Export\ to\ reST :Vst rest 47 | menu VreST.Fold :Vst fold 48 | menu VreST.Headers :Vst head 49 | menu VreST.TOC :Vst toc 50 | menu VreST.Help :Vst help 51 | inoremenu VreST.Export\ to\ HTML :Vst html 52 | inoremenu VreST.Export\ to\ LaTeX :Vst tex 53 | inoremenu VreST.Export\ to\ PDF :Vst pdf 54 | inoremenu VreST.Export\ to\ reST :Vst rest 55 | inoremenu VreST.Fold :Vst fold 56 | inoremenu VreST.Headers :Vst head 57 | inoremenu VreST.TOC :Vst toc 58 | inoremenu VreST.Help :Vst help 59 | endif 60 | endfunction 61 | if exists("g:vst_showmenu") && g:vst_load_menus != 0 62 | call VST_Menus() 63 | endif 64 | " }}} 65 | " Load auxiliary mappings: 66 | call vst#vst#VST_AuxiliaryMappings() 67 | 68 | " vim:fdm=marker:ff=unix:noet:ts=4:sw=4:nowrap 69 | -------------------------------------------------------------------------------- /home/mloskot/.wallpapers/231-blue-dotted-pattern-1920x1200-minimalistic-wallpaper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/.wallpapers/231-blue-dotted-pattern-1920x1200-minimalistic-wallpaper.png -------------------------------------------------------------------------------- /home/mloskot/.wallpapers/archlinux-blue-1440x900.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/.wallpapers/archlinux-blue-1440x900.png -------------------------------------------------------------------------------- /home/mloskot/.wallpapers/archlinux-dark-grey-honey-comb-on-blue.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/.wallpapers/archlinux-dark-grey-honey-comb-on-blue.jpg -------------------------------------------------------------------------------- /home/mloskot/.wallpapers/archlinux-hamfindik.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/.wallpapers/archlinux-hamfindik.png -------------------------------------------------------------------------------- /home/mloskot/.wallpapers/vim-shortcuts-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/.wallpapers/vim-shortcuts-dark.png -------------------------------------------------------------------------------- /home/mloskot/.wallpapers/vim-shortcuts-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/.wallpapers/vim-shortcuts-green.png -------------------------------------------------------------------------------- /home/mloskot/.wgetrc: -------------------------------------------------------------------------------- 1 | # http://stefanwienert.net/blog/2012/07/18/wget-and-downloading-from-sourceforge-dot-dot-dot/ 2 | trust_server_names = on 3 | content-disposition = on 4 | -------------------------------------------------------------------------------- /home/mloskot/.xinitrc.i3: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # ~/.xinitrc.i3 4 | # 5 | # Mateusz Loskot 6 | # 7 | if [ -d /etc/X11/xinit/xinitrc.d ]; then 8 | for f in /etc/X11/xinit/xinitrc.d/*; do 9 | [ -x "$f" ] && . "$f" 10 | done 11 | unset f 12 | fi 13 | 14 | # Disable DPMS turning off the screen 15 | xset -dpms 16 | xset s off 17 | 18 | # Make the beep quieter, shorter, and a nicer pitch. I tend to set 440 Hz, 50ms 19 | #xset b 50 440 50 20 | # Disable bell 21 | #xset -b 22 | 23 | # Enable zapping (C-A- kills X) 24 | setxkbmap -option terminate:ctrl_alt_bksp pl 25 | 26 | # Enforce correct locales from the beginning 27 | unset LC_COLLATE 28 | 29 | # Use XToolkit in java applications 30 | export AWT_TOOLKIT=XToolkit 31 | 32 | # Set background color or wallpaper 33 | if type feh >/dev/null 2>&1; then 34 | sh ~/.fehbg & 35 | else 36 | xsetroot -solid "#333333" 37 | fi 38 | 39 | # Enable core dumps in case something goes wrong 40 | ulimit -c unlimited 41 | 42 | # Start the VirtualBox X Window System guest services 43 | VBoxClient-all & 44 | 45 | # Start i3 and log 46 | I3_CONFIG_HOME=${HOME}/.config/i3 47 | # Uncomment to log debugging info 48 | #LOGFILE=${I3_CONFIG_HOME}/log-$(date +'%F-%k-%M-%S') 49 | if [ ! -z "$LOGFILE" ]; then 50 | echo "i3 starting at $(date)" > ${LOGFILE} 51 | exec /usr/bin/i3 -V -d all >> ${LOGFILE} 52 | echo "i3 started at $(date)" > ${LOGFILE} 53 | else 54 | exec /usr/bin/i3 55 | fi 56 | -------------------------------------------------------------------------------- /home/mloskot/.xinitrc.openbox: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # ~/.xinitrc.openbox 4 | # 5 | # Mateusz Loskot 6 | # 7 | if [ -d /etc/X11/xinit/xinitrc.d ]; then 8 | for f in /etc/X11/xinit/xinitrc.d/*; do 9 | [ -x "$f" ] && . "$f" 10 | done 11 | unset f 12 | fi 13 | 14 | exec ck-launch-session dbus-launch openbox-session 15 | -------------------------------------------------------------------------------- /home/mloskot/.zsh/prompt.zsh: -------------------------------------------------------------------------------- 1 | #!/bin/zsh 2 | # 3 | # ~/.zsh/prompt.zsh - prompt theme configuration for Zsh 4 | # 5 | # Based on https://gist.github.com/joshdick/4415470 6 | # Part of https://github.com/mloskot/archlinux-config 7 | # Mateusz Loskot 8 | # 9 | (( ${+functions[promptinit]} )) || \ 10 | { fpath=(~/.zsh/prompts $fpath); autoload -Uz promptinit && promptinit } 11 | prompt adam2mloskot 12 | 13 | # Adapted from code found at . 14 | 15 | setopt prompt_subst 16 | autoload -U colors && colors # Enable colors in prompt 17 | 18 | # Modify the colors and symbols in these variables as desired. 19 | GIT_PROMPT_SYMBOL="%{$fg[blue]%}±" 20 | GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$reset_color%}" 21 | GIT_PROMPT_SUFFIX="%{$fg[green]%}]%{$reset_color%}" 22 | GIT_PROMPT_AHEAD="%{$fg[red]%}ANUM%{$reset_color%}" 23 | GIT_PROMPT_BEHIND="%{$fg[cyan]%}BNUM%{$reset_color%}" 24 | GIT_PROMPT_MERGING="%{$fg_bold[magenta]%}⚡︎%{$reset_color%}" 25 | GIT_PROMPT_UNTRACKED="%{$fg_bold[red]%}●%{$reset_color%}" 26 | GIT_PROMPT_MODIFIED="%{$fg_bold[yellow]%}●%{$reset_color%}" 27 | GIT_PROMPT_STAGED="%{$fg_bold[green]%}●%{$reset_color%}" 28 | 29 | # Show Git branch/tag, or name-rev if on detached head 30 | parse_git_branch() { 31 | (git symbolic-ref -q HEAD || git name-rev --name-only --no-undefined --always HEAD) 2> /dev/null 32 | } 33 | 34 | # Show different symbols as appropriate for various Git repository states 35 | parse_git_state() { 36 | 37 | # Compose this value via multiple conditional appends. 38 | local GIT_STATE="" 39 | 40 | local NUM_AHEAD="$(git log --oneline @{u}.. 2> /dev/null | wc -l | tr -d ' ')" 41 | if [ "$NUM_AHEAD" -gt 0 ]; then 42 | GIT_STATE=$GIT_STATE${GIT_PROMPT_AHEAD//NUM/$NUM_AHEAD} 43 | fi 44 | 45 | local NUM_BEHIND="$(git log --oneline ..@{u} 2> /dev/null | wc -l | tr -d ' ')" 46 | if [ "$NUM_BEHIND" -gt 0 ]; then 47 | GIT_STATE=$GIT_STATE${GIT_PROMPT_BEHIND//NUM/$NUM_BEHIND} 48 | fi 49 | 50 | local GIT_DIR="$(git rev-parse --git-dir 2> /dev/null)" 51 | if [ -n $GIT_DIR ] && test -r $GIT_DIR/MERGE_HEAD; then 52 | GIT_STATE=$GIT_STATE$GIT_PROMPT_MERGING 53 | fi 54 | 55 | if [[ -n $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then 56 | GIT_STATE=$GIT_STATE$GIT_PROMPT_UNTRACKED 57 | fi 58 | 59 | if ! git diff --quiet 2> /dev/null; then 60 | GIT_STATE=$GIT_STATE$GIT_PROMPT_MODIFIED 61 | fi 62 | 63 | if ! git diff --cached --quiet 2> /dev/null; then 64 | GIT_STATE=$GIT_STATE$GIT_PROMPT_STAGED 65 | fi 66 | 67 | if [[ -n $GIT_STATE ]]; then 68 | echo "$GIT_PROMPT_PREFIX$GIT_STATE$GIT_PROMPT_SUFFIX" 69 | fi 70 | 71 | } 72 | 73 | # If inside a Git repository, print its branch and state 74 | git_prompt_string() { 75 | local git_where="$(parse_git_branch)" 76 | [ -n "$git_where" ] && echo "$GIT_PROMPT_SYMBOL$(parse_git_state)$GIT_PROMPT_PREFIX%{$fg[yellow]%}${git_where#(refs/heads/|tags/)}$GIT_PROMPT_SUFFIX" 77 | } 78 | 79 | # Set the right-hand prompt 80 | RPS1='$(git_prompt_string)' 81 | 82 | -------------------------------------------------------------------------------- /home/mloskot/.zshenv: -------------------------------------------------------------------------------- 1 | # Allow disabling of entire environment suite 2 | #[ -n "$INHERIT_ENV" ] && echo "Disabling ~/.zshenv" && return 0 3 | #[[ -o interactive ]] && echo "Sourcing ~/.zshenv" 4 | 5 | # NOTE: Disabled PATH settings due to Arch behaviour, see comment in ~/.zshrc 6 | #typeset -U path 7 | #path=(~/bin ~/.cabal/bin $path) 8 | #if [[ -d ~/.gem/ruby/ ]] && ls ~/.gem/ruby/ >/dev/null 2>&1; then 9 | # for dir in ~/.gem/ruby/*; do 10 | # if [[ -d $dir/bin ]]; then 11 | # path+=($dir/bin) 12 | # fi 13 | # done 14 | #fi 15 | #typeset -U path 16 | # TODO: http://zsh.sourceforge.net/Contrib/startup/users/debbiep/dot.zshenv 17 | # Remove entries that don't exist on this system. Just for sanity's 18 | # sake more than anything. 19 | # rationalize-path path 20 | 21 | # Set TERM based on COLORTERM 22 | case $COLORTERM in 23 | xfce4-terminal) export TERM=xterm-color ;; # this is XFCE Terminal 24 | gnome-terminal) export TERM=xterm-color ;; # this is gnome-terminal 25 | wterm-xpm) export TERM=xterm ;; # this is wterm 26 | Eterm) export TERM=Eterm ;; # this is Eterm 27 | 1) export TERM=xterm-color ;; # this is lxterminal, konsole, yakuake, uxterm, Mac OSX terminal, putty ... 28 | esac 29 | 30 | # Editor 31 | if which vim &> /dev/null; then 32 | if [[ -z $DISPLAY ]] then 33 | export EDITOR="vim" 34 | else 35 | export EDITOR="gvim --nofork" 36 | fi 37 | export VIMRELEASE="$(print ${${$(vim --version)[5]}:gs/.//})" 38 | elif which vi &> /dev/null; then 39 | export EDITOR="vi" 40 | fi 41 | export VISUAL=$EDITOR 42 | 43 | export SVN_EDITOR="$EDITOR" 44 | 45 | # Browser 46 | export WWW_HOME=http://google.com 47 | if [[ -z $DISPLAY ]] then 48 | export BROWSER=elinks 49 | else 50 | export BROWSER=firefox 51 | fi 52 | -------------------------------------------------------------------------------- /home/mloskot/.zshrc: -------------------------------------------------------------------------------- 1 | # 2 | # ~/.zshrc - startup file for Zsh 3 | # 4 | # Part of https://github.com/mloskot/archlinux-config 5 | # Mateusz Loskot 6 | # 7 | for zshf in `ls $HOME/.zsh`; do 8 | source "$HOME/.zsh/$zshf" 9 | done 10 | HISTFILE=~/.histfile 11 | HISTSIZE=1000 12 | SAVEHIST=1000 13 | setopt autocd 14 | unsetopt beep 15 | bindkey -e 16 | 17 | zmodload zsh/complist 18 | autoload -Uz colors && colors 19 | 20 | autoload -Uz compinit && compinit 21 | 22 | # Navigation completion with arrow keys? 23 | # zstyle ':completion:*' menu select 24 | # zstyle ':completion::complete:*:git:*' ignored-patterns directories files 25 | 26 | setopt completealiases # complete commandline switches 27 | 28 | 29 | # http://chneukirchen.org/blog/archive/2007/03/switching-to-zsh.html 30 | # I don’t want it to think // means anything special, though: 31 | zstyle ':completion:*' squeeze-slashes true 32 | 33 | # colors in completion 34 | #eval "$(dircolors -b)" 35 | eval $(dircolors) 36 | zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} 37 | 38 | 39 | zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} 40 | zstyle ':completion:*' list-colors '' 41 | 42 | emulate sh -c 'source ~/.aliases' 43 | [ -f ~/.travis/travis.sh ] && emulate sh -c 'source ~/.travis/travis.sh' 44 | 45 | # NOTE: This PATH setting is repeated from ~/.zshenv due to Arch Linux behaviour: 46 | # "Users should take note that /etc/profile sets the $PATH variable which 47 | # will overwrite any $PATH variable set in ~/.zshenv" 48 | # https://wiki.archlinux.org/index.php/Zsh 49 | # 50 | typeset -U path 51 | path=(~/bin ~/.cabal/bin $path) 52 | if [[ -d ~/.gem/ruby/ ]] && ls ~/.gem/ruby/ >/dev/null 2>&1; then 53 | for dir in ~/.gem/ruby/*; do 54 | if [[ -d $dir/bin ]]; then 55 | path+=($dir/bin) 56 | fi 57 | done 58 | fi 59 | # TODO: http://zsh.sourceforge.net/Contrib/startup/users/debbiep/dot.zshenv 60 | # Remove entries that don't exist on this system. Just for sanity's 61 | # sake more than anything. 62 | # rationalize-path path 63 | 64 | -------------------------------------------------------------------------------- /home/mloskot/android/.androidrc: -------------------------------------------------------------------------------- 1 | # ~/.androidrc 2 | 3 | # set Eclipse/Android environment 4 | ANDROID_SDK_STARTER=/opt/google/android/android-sdk-linux_x86 5 | export PATH=${PATH}:${ANDROID_SDK_STARTER}/tools 6 | -------------------------------------------------------------------------------- /home/mloskot/bin/build-qt-creator.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | source ${HOME}/bin/qt-dev-env.sh 3 | date > LOG 4 | ${QT5_GIT}/qtbase/bin/qmake -r ${QTC_GIT} && make -j4 5 | date >> LOG 6 | -------------------------------------------------------------------------------- /home/mloskot/bin/build-qt.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | date > LOG 3 | ./configure -developer-build -opensource -nomake examples -nomake tests -confirm-license && \ 4 | make -j 4 5 | date >> LOG 6 | -------------------------------------------------------------------------------- /home/mloskot/bin/clean-qt-sidecars.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | find . -name '*.qtcreator.*' -o -name '*.user*'|xargs rm 3 | -------------------------------------------------------------------------------- /home/mloskot/bin/git-changelog-by-tags.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Author:Andrey Nikishaev, Gunnar Lindholm 3 | # http://stackoverflow.com/a/9884424/151641 4 | echo "CHANGELOG" 5 | echo ---------------------- 6 | git for-each-ref --sort='*authordate' --format='%(tag)' refs/tags |tac |grep -v '^$' | while read TAG ; do 7 | echo 8 | if [ $NEXT ];then 9 | echo [$NEXT] 10 | else 11 | echo "[Current]" 12 | fi 13 | GIT_PAGER=cat git log --no-merges --format=" * %s" $TAG..$NEXT 14 | NEXT=$TAG 15 | done 16 | FIRST=$(git tag -l | head -1) 17 | echo 18 | echo [$FIRST] 19 | GIT_PAGER=cat git log --no-merges --format=" * %s" $FIRST 20 | -------------------------------------------------------------------------------- /home/mloskot/bin/kdev.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | kdevelop -ps 3 | -------------------------------------------------------------------------------- /home/mloskot/bin/keep.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | /usr/bin/chromium --app-id=hmjkmjkepdijhoojdojkdfohbdgmmhki --profile-directory=Default 3 | -------------------------------------------------------------------------------- /home/mloskot/bin/mlacpiinfo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "---acpi -V------------------------" 3 | acpi -V 4 | echo "---cat fan------------------------" 5 | cat /proc/acpi/ibm/fan 6 | echo "---cat thermal--------------------" 7 | cat /proc/acpi/ibm/thermal 8 | echo "---hddtemp------------------------" 9 | sudo hddtemp /dev/sda 10 | -------------------------------------------------------------------------------- /home/mloskot/bin/mlbrzuchol.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # mlbrzuchol.sh - mounts sshfs directory from brzuchol server 4 | # 5 | # fstab-enabled 6 | MOUNT_POINT=/mnt/brzuchol/mloskot 7 | sshfs -o idmap=user $USER@brzuchol.loskot.net: ${MOUNT_POINT} && \ 8 | mc ${HOME} ${MOUNT_POINT} && fusermount -u ${MOUNT_POINT} 9 | -------------------------------------------------------------------------------- /home/mloskot/bin/mlcpa.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # BROKEN - SRC/DST DIRs SEEMS MESSED 3 | CMD=`which parallel` 4 | if [ ! -x "$CMD" ]; then 5 | echo "parallel not found" 6 | exit 1 7 | fi 8 | 9 | if [ ! -d "$1" ]; then 10 | echo "$1 does not exist" 11 | exit 1 12 | fi 13 | 14 | "$CMD" --no-notice -j4 cp -a {} "$1/*" ::: "$2" 15 | -------------------------------------------------------------------------------- /home/mloskot/bin/mlfan.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Part of https://github.com/mloskot/archlinux-config 4 | # Mateusz Loskot 5 | # 6 | # Original version by Mikito Takada 7 | # http://blog.mixu.net/2012/01/19/how-to-thinkpad_acpi-and-fan-control-on-arch/ 8 | # 9 | function fan() { 10 | # sensors 11 | echo level $@ | sudo tee /proc/acpi/ibm/fan 12 | } 13 | 14 | fan $@ 15 | -------------------------------------------------------------------------------- /home/mloskot/bin/mlgeany.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | geany --no-plugins --no-session --no-terminal --no-msgwin $* & 3 | -------------------------------------------------------------------------------- /home/mloskot/bin/mlmake.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # make and colormake selector 4 | # 5 | 6 | colormake $* || make $* || { 7 | echo >&2 "*** Neither colormake nor make found. Aborting."; 8 | exit 1; 9 | } 10 | -------------------------------------------------------------------------------- /home/mloskot/bin/mlscreenshot.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # mlscreenshot.sh - takes screenshot, nicely integrates with i3wm 4 | # 5 | # Uses: 6 | # - scrot - simple screenshot utility 7 | # - viewnior - lightweight and fast image viewer 8 | # 9 | # Originally based on screenshot.sh by Radek (at) fastlinux (dot) eu 10 | # 11 | # Take screenshot to specified directory in user home 12 | # directory and show it thrue image editor 13 | # Modified: 28.10.2011 : mseed : http://www.fastlinux.eu 14 | # 15 | SHOTER=`which scrot` 16 | VIEWER=`which viewnior` 17 | SAVETO="${HOME}/tmp" 18 | 19 | if [ ! -x "${SHOTER}" ]; then 20 | echo "${SHOTER} is missing" 21 | exit 1 22 | fi 23 | 24 | if [ ! -x "${VIEWER}" ]; then 25 | echo "${VIEWER} is missing" 26 | exit 1 27 | fi 28 | 29 | if [ ! -d "${SAVETO}" ] ; then 30 | mkdir ${SAVETO} 31 | fi 32 | 33 | # scrot expression used below: 34 | # $f image path/filename (ignored when used in the filename) 35 | ${SHOTER} "screenshot-%Y%m%d%H%M%S.png" -e 'mv $f '$SAVETO'/; '$VIEWER' '$SAVETO'/$f' 36 | -------------------------------------------------------------------------------- /home/mloskot/bin/mlsfshell.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # mlsfshell.sh - connect to SF.net shell for given project 4 | # 5 | function usage() { 6 | s=`basename $0` 7 | echo "Usage: ${s} " 8 | exit 1 9 | } 10 | [[ $# -eq 0 ]] && usage 11 | [[ -z ${1} ]] && usage 12 | SSF="shell.sourceforge.net" 13 | USR=mloskot 14 | echo "Connecting to ${1} at ${SSF} as ${USR}" 15 | ssh -t mloskot,${1}@${SSF} create 16 | -------------------------------------------------------------------------------- /home/mloskot/bin/mltmux.brzuchol.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | tmux new-session -d -s 0 3 | tmux new-window -t 0:0 -n 'root' 4 | tmux new-window -t 0:1 -n 'home' 5 | tmux new-window -t 0:2 -n 'code' 6 | tmux new-window -t 0:3 -n 'oracle' 7 | tmux new-window -t 0:4 -n 'db2' 8 | tmux select-window -t 0:0 9 | tmux -2 attach-session -t 0 10 | -------------------------------------------------------------------------------- /home/mloskot/bin/mlusbhdd.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # usbhdd.sh - mount or umount external USB hard drive 4 | # 5 | DEV=$2 6 | MNT=$3 7 | function usage() { 8 | s=`basename $0` 9 | echo "Usage: ${s} " 10 | exit 1 11 | } 12 | function mount() { 13 | echo "mount -o uid=mloskot,gid=users,fmask=113,dmask=002 $DEV $MNT" 14 | sudo mount -o uid=mloskot,gid=users,fmask=113,dmask=002 $DEV $MNT 15 | } 16 | function umount() { 17 | echo "umount $DEV" 18 | sudo umount $DEV 19 | } 20 | [[ $# -eq 0 ]] && usage 21 | if [ "$1" = "m" ]; then 22 | mount 23 | elif [ "$1"="u" ]; then 24 | umount 25 | else 26 | usage 27 | fi 28 | -------------------------------------------------------------------------------- /home/mloskot/bin/mlvimi3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if [ -z $DISPLAY ]; then 3 | vim ${HOME}/.config/i3/config 4 | else 5 | gvim ${HOME}/.config/i3/config 6 | fi 7 | -------------------------------------------------------------------------------- /home/mloskot/bin/n2utilus: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | nautilus --no-desktop & 3 | -------------------------------------------------------------------------------- /home/mloskot/bin/qt-dev-env.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | QT_DEV=${HOME}/dev/qt 3 | QT5_GIT=${QT_DEV}/qt5.git 4 | QTC_GIT=${QT_DEV}/qt-creator.git 5 | -------------------------------------------------------------------------------- /home/mloskot/bin/qtc-testing.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Launches Qt Creator for plugins testing and debugging. 3 | # This executable and arguments are also used in the Run Configuration 4 | # of a plugin project. 5 | source ${HOME}/bin/qt-dev-env.sh 6 | XQTC=${QTC_GIT}/_build.testing 7 | ${XQTC}/bin/qtcreator -style gtk -color red -settingspath ${XQTC}/.config 8 | -------------------------------------------------------------------------------- /home/mloskot/bin/qtc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Launches Qt Creator for regular use as IDE 3 | source ${HOME}/bin/qt-dev-env.sh 4 | XQTC=${QTC_GIT}/_build 5 | ${XQTC}/bin/qtcreator -style gtk 6 | -------------------------------------------------------------------------------- /home/mloskot/bin/s2naptic: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | gksudo synaptic & 3 | -------------------------------------------------------------------------------- /home/mloskot/bin/show_power_save.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | function show_power_settings () 3 | { 4 | sudo bash -c ' 5 | for i in `find /sys/devices -name "bMaxPower"`; 6 | do 7 | for ii in `find $i -type f`; 8 | do 9 | bd=`dirname $ii`; 10 | busnum=`cat $bd/busnum`; 11 | devnum=`cat $bd/devnum`; 12 | title=`lsusb -s $busnum:$devnum`; 13 | echo -e "\n\n+++ $title\n -$bd\n -$ii"; 14 | for ff in `find $bd/power -type f ! -empty 2>/dev/null`; 15 | do 16 | v=`cat $ff 2>/dev/null|tr -d "\n"`; 17 | [[ ${#v} -gt 0 ]] && echo -e " `basename $ff`=$v"; 18 | v=; 19 | done | sort -g; 20 | done; 21 | done; 22 | echo -e "\n\n\n+++ Kernel Modules\n"; 23 | for m in `command lspci -k|sed -n "/in use:/s,^.*: ,,p"|sort -u`; 24 | do 25 | echo "+ $m"; 26 | systool -v -m $m 2> /dev/null | sed -n "/Parameters:/,/^$/p"; 27 | done 28 | '; 29 | } 30 | -------------------------------------------------------------------------------- /home/mloskot/bin/skype: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | LIBDIR="/usr/lib32" 4 | 5 | if [[ -e "$LIBDIR/libv4l/v4l2convert.so" ]]; then 6 | export LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}$LIBDIR/libv4l/v4l2convert.so" 7 | fi 8 | 9 | if [[ -e "/usr/share/skype/lib/libQtWebKit.so.4" ]]; then 10 | export LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}/usr/share/skype/lib/libQtWebKit.so.4" 11 | fi 12 | 13 | PULSE_LATENCY_MSEC=30 exec "$LIBDIR/skype/skype" "$@" 14 | -------------------------------------------------------------------------------- /home/mloskot/bin/tempinfo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Stefan Huber 4 | # Displays some temperature info 5 | 6 | 7 | if [ -e /proc/acpi/ibm ] 8 | then 9 | info=`cat /proc/acpi/ibm/thermal | sed "s/^.*://" ` 10 | 11 | #1 ??, THM0, strongly reacts on heat at the cooling gills. reacts on cpu 12 | #2 DVD: reacts on heat at the dvd drive 13 | #3 express card: 31°C REACTS ON HEAT ON PC-CARD SLOT 14 | #4 agp, gets active when switched to discrete graphics, reacts on load 15 | #5 disappears when bat0 is plugged off --> ~50°C always 16 | #6 thinkwiki thinks this is for bat1 17 | #7 disappears when bat0 is plugged off --> ~val of bat temp through smapi 18 | #8 thinkwiki thinks this is for bat1 19 | #9 hdd: 33°C REACTS ON HEAD AT THE HARD DISC AREA 20 | #10 igp, reacts on gtkperf 21 | #11 heatsink? slowly reacts on heat at cooling gill. slowly reacts on cpu 22 | 23 | cpusocket=`echo $info | awk ' { print $1 } '` 24 | dvd=`echo $info | awk ' { print $2 } '` 25 | excard=`echo $info | awk ' { print $3 } '` 26 | atigpu=`echo $info | awk ' { print $4 } '` 27 | hdd=`echo $info | awk ' { print $9 } '` 28 | intelgpu=`echo $info | awk ' { print $10 } '` 29 | heatsink=`echo $info | awk ' { print $11 } '` 30 | 31 | #No equivalent in $info!! Reacts more directly to load than thm0. Due 32 | #to acpi info, this is cpu. 33 | cpu=`cat /proc/acpi/thermal_zone/THM1/temperature | awk ' { print $2 } '` 34 | 35 | echo -n "cpu:$cpu°C cpus:$cpusocket°C" 36 | 37 | if [ $intelgpu != "-1" ]; then 38 | echo -n " igp:$intelgpu°C" 39 | fi 40 | 41 | if [ $atigpu != "-1" ]; then 42 | echo -n " agp:$atigpu°C" 43 | fi 44 | 45 | echo "" 46 | echo "hs:$heatsink°C ec:$excard°C hdd:$hdd°C dvd:$dvd°C" 47 | else 48 | mb=`cat /proc/acpi/thermal_zone/THM0/temperature | awk ' { print $2 } '` 49 | cpu=`cat /proc/acpi/thermal_zone/THM1/temperature | awk ' { print $2 } '` 50 | 51 | echo "cpu: $cpu°C mb: $mb°C" 52 | fi 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /home/mloskot/bin/thinkfan_levels.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | for i in 0 1 2 3 4 5 6 7; 3 | do 4 | echo "level $i" > /proc/acpi/ibm/fan 5 | echo "level $i..." 6 | sleep 6 7 | cat /proc/acpi/ibm/fan | egrep "^speed" 8 | echo 9 | done 10 | -------------------------------------------------------------------------------- /home/mloskot/bin/updatemirrorlist.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | [ "$UID" != 0 ] && su=sudo 4 | 5 | country='GB' 6 | url="http://www.archlinux.org/mirrorlist/?country=$country&protocol=ftp&protocol=http&ip_version=4&use_mirror_status=on" 7 | 8 | tmpfile=$(mktemp --suffix=-mirrorlist) 9 | 10 | # Get latest mirror list and save to tmpfile 11 | wget -qO- "$url" | sed 's/^#Server/Server/g' > "$tmpfile" 12 | 13 | # Backup and replace current mirrorlist file 14 | { echo " Backing up the original mirrorlist..." 15 | $su mv -i /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.updatemirrorlist.backup; } && 16 | { echo " Rotating the new list into place..." 17 | $su mv -i "$tmpfile" /etc/pacman.d/mirrorlist; } 18 | -------------------------------------------------------------------------------- /home/mloskot/bin/wifi: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # WIFI: announcement and discussion here: https://bbs.archlinux.org/viewtopic.php?id=143098 3 | 4 | # COLOR SETTINGS (0-255): 5 | # Uncomment one, or create your own. 6 | COL_TFRAME=247; COL_TTEXT=241; COL_H1=12; COL_H2=226; COL_WARN=196 #Bright (grey,blue,yellow) 7 | #COL_TFRAME=22; COL_TTEXT=115; COL_H1=90; COL_H2=94; COL_WARN=196 #Dark (green,magenta,orange) 8 | 9 | # DHCP choose dhcpcd or dhclient, only the former has been tested by the script author 10 | DHCP=dhcpcd 11 | 12 | # Set new passphrase if provided: 13 | if [[ $1 == new ]]; then 14 | [[ -z $2 ]] && echo "required ssid missing" && exit 15 | [[ -z $3 ]] && echo "required passphrase missing" && exit 16 | sudo /bin/bash -c "wpa_passphrase \"$2\" \"$3\" >> /etc/wpa_supplicant/wpa_supplicant.conf" 17 | fi 18 | 19 | # Get current BSSID to highlight it in the list 20 | CUR_BSSID=`iwconfig wlan0 | awk '/Access Point:/ {print $6}'` 21 | 22 | # Create temp file for network listing 23 | TMPFILE=`mktemp --tmpdir=/tmp wifilistXXX` 24 | 25 | # bring up wlan0, scan, and parse output with awk for display: 26 | # Also saves needed scan output into tempfile 27 | clear 28 | sudo ip link set wlan0 up 29 | sudo iwlist wlan0 scan | awk ' 30 | BEGIN { 31 | print " \033[4;38;5;'$COL_TFRAME'm \033[0m" 32 | print " \033[4;38;5;'$COL_TFRAME'm\033(0aaaaaaaaaaaaa\033(B SCANNING NETWORKS... \033(0aaaaaaaaaaaaa\033(B\033[0m" 33 | print " \033[4;38;5;'$COL_TFRAME'm* # BSSID % ESSID \033[0m" 34 | } 35 | /^[ \t]*Cell / { 36 | NUM=$2; BSSID=$5; 37 | getline; getline; getline; 38 | gsub(/[ \t]*Quality=/,"",$1); 39 | QUALITY=$1 * 100 / 70; 40 | getline; 41 | gsub(/key:/,"",$2); 42 | ENCRYPTION=$2; 43 | getline; 44 | gsub(/[ \t]*ESSID:/,"",$1);gsub(/"/,"",$0); 45 | ESSID=$0; 46 | 47 | if (match(BSSID,"'$CUR_BSSID'")) { 48 | printf " \033[38;5;'$COL_H1'm»" 49 | } else { 50 | printf " " 51 | } 52 | 53 | if (match(ENCRYPTION,"off")) { 54 | printf "\033[38;5;'$COL_H2'm%2d\033[38;5;'$COL_TTEXT'm %s \033[38;5;'$COL_H2'm%d%%\033[38;5;'$COL_H1'm %s\033[0m\n", NUM, BSSID, QUALITY, ESSID; 55 | } else { 56 | printf "\033[38;5;'$COL_H2'm%2d\033[38;5;'$COL_TTEXT'm %s \033[38;5;'$COL_H2'm%d%%\033[38;5;'$COL_WARN'm %s\033[0m\n", NUM, BSSID, QUALITY, ESSID; 57 | } 58 | printf "%s\t%s\t%s\n", NUM, ENCRYPTION, ESSID >> "'$TMPFILE'" 59 | } 60 | END { 61 | print " \033[4;38;5;'$COL_TFRAME'm\033(0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\033(B\033[0m" 62 | } 63 | ' 64 | 65 | # prompt for network selection - exit (do nothing) if no selecion is made: 66 | echo 67 | echo -e " \033[38;5;'$COL_H1'mSelect a network number:\033[0m" 68 | read -p " » " NUM 69 | if [[ -z $NUM ]]; then rm $TMPFILE; exit; fi 70 | 71 | # get data for selection from tempfile and delete tempfile: 72 | ESSID=`awk -F'\t' '/^0?'$NUM' / {print substr($0,index($0,$3))}' $TMPFILE` 73 | ENCRYPT=`awk -F'\t' '/^0?'$NUM' / {print $2}' $TMPFILE` 74 | rm $TMPFILE 75 | 76 | 77 | # if wpa_supplicant is already running, kill it 78 | if [[ -n `pgrep wpa_supplicant` ]]; then 79 | sudo killall wpa_supplicant > /dev/null 2>&1 80 | sleep 0.25 81 | fi 82 | # if unsecure, associate with essid. If secure, use wpa_supplicant: 83 | if [[ "$ENCRYPT" == off ]]; then 84 | sudo iwconfig wlan0 essid "$ESSID" 85 | else 86 | #check if configured: 87 | [[ ! `grep "$ESSID" /etc/wpa_supplicant/wpa_supplicant.conf` ]] && 88 | echo -e "\033[38;5;'$COL_WARN'm ERROR:\033[0m$ESSID has not been set up yet\n Try: $0 new \"$ESSID\" " && exit 89 | sudo wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 90 | fi 91 | 92 | # if dhcpcd is already running, kill it. 93 | if [[ -n `pgrep $DHCP` ]]; then 94 | sudo killall $DHCP >/dev/null 2>&1 95 | sleep 0.25 96 | fi 97 | # call dhcpcd 98 | sudo $DHCP wlan0 2>&1 | awk ' 99 | BEGIN { 100 | print " \033[4;38;5;'$COL_TFRAME'm \033[0m" 101 | print " \033[4;38;5;'$COL_TFRAME'm\033(0aaaaaaaaaaaaaa\033(B CALLING DHCPCD... \033(0aaaaaaaaaaaaaaa\033(B\033[0;38;5;'$COL_TTEXT'm" 102 | } 103 | // { 104 | gsub(/dhcpcd\[[0-9]*\]: /,"",$0); gsub(/wlan0: /,"",$0); 105 | gsub(/([0-9]+\.[0-9]+\.[0-9]+.[0-9]+)/,"\033[38;5;'$COL_H2'm&\033[38;5;'$COL_TTEXT'm",$0); 106 | gsub(/( [0-9]+[^\.])/,"\033[38;5;'$COL_H1'm&\033[38;5;'$COL_TTEXT'm",$0); 107 | if (match($0,/dhcpcd already running/)) { 108 | print " \033[38;5;'$COL_WARN'mERROR: \033[38;5;'$COL_TTEXT'mdhcpcd already running" 109 | print " \033[38;5;'$COL_H2'mretrying dhcpcd" 110 | exit 1 111 | } else { 112 | print " \033[38;5;'$COL_H1'm»\033[38;5;'$COL_TTEXT'm", $0; 113 | } 114 | } 115 | END { 116 | print " \033[4;38;5;'$COL_TFRAME'm\033(0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\033(B\033[0m\n" 117 | } 118 | ' 119 | 120 | -------------------------------------------------------------------------------- /home/mloskot/boost/boost-build.jam: -------------------------------------------------------------------------------- 1 | boost-build /home/mloskot/dev/boost/_svn/trunk/tools/build/v2 ; 2 | -------------------------------------------------------------------------------- /home/mloskot/boost/user-config.jam: -------------------------------------------------------------------------------- 1 | # Copyright 2011 Mateusz Loskot 2 | # Boost.Build configuration for Linux machine 3 | 4 | # Copyright 2003, 2005 Douglas Gregor 5 | # Copyright 2004 John Maddock 6 | # Copyright 2002, 2003, 2004, 2007 Vladimir Prus 7 | # Distributed under the Boost Software License, Version 1.0. 8 | # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) 9 | 10 | # This file is used to configure your Boost.Build installation. You can modify 11 | # this file in place, or you can place it in a permanent location so that it 12 | # does not get overwritten should you get a new version of Boost.Build. See: 13 | # 14 | # http://boost.org/boost-build2/doc/html/bbv2/reference.html#bbv2.reference.init 15 | # 16 | # for documentation about possible permanent locations. 17 | 18 | # This file specifies which toolsets (C++ compilers), libraries, and other 19 | # tools are available. Often, you should be able to just uncomment existing 20 | # example lines and adjust them to taste. The complete list of supported tools, 21 | # and configuration instructions can be found at: 22 | # 23 | # http://boost.org/boost-build2/doc/html/bbv2/reference/tools.html 24 | # 25 | 26 | # This file uses Jam language syntax to describe available tools. Mostly, 27 | # there are 'using' lines, that contain the name of the used tools, and 28 | # parameters to pass to those tools -- where paremeters are separated by 29 | # semicolons. Important syntax notes: 30 | # 31 | # - Both ':' and ';' must be separated from other tokens by whitespace 32 | # - The '\' symbol is a quote character, so when specifying Windows paths you 33 | # should use '/' or '\\' instead. 34 | # 35 | # More details about the syntax can be found at: 36 | # 37 | # http://boost.org/boost-build2/doc/html/bbv2/advanced.html#bbv2.advanced.jam_language 38 | # 39 | 40 | use-project boost : /home/mloskot/dev/boost/_svn/trunk ; 41 | 42 | # ------------------ 43 | # clang configuration. 44 | # ------------------ 45 | 46 | # Configure clang (default version). 47 | using clang ; 48 | 49 | # Configure specific clang version, giving alternative name to use. 50 | #using clang 51 | # : # version 52 | # 3.3 53 | # : # compiler 54 | # clang++ 55 | # : # options 56 | # -fPIC 57 | # -Wno-mismatched-tags 58 | # -Wno-unused-variable 59 | # # Workaround 60 | # -I/usr/include/x86_64-linux-gnu 61 | # ; 62 | 63 | # ------------------ 64 | # GCC configuration. 65 | # ------------------ 66 | 67 | # Configure gcc (default version). 68 | #using gcc ; 69 | 70 | # Configure specific gcc version, giving alternative name to use. 71 | # using gcc : 3.2 : g++-3.2 ; 72 | 73 | # ----------------- 74 | # QT configuration. 75 | # ----------------- 76 | 77 | # Configure assuming QTDIR gives the installation prefix. 78 | # using qt ; 79 | 80 | # Configure with an explicit installation prefix. 81 | # using qt : /usr/opt/qt ; 82 | 83 | # --------------------- 84 | # Python configuration. 85 | # --------------------- 86 | 87 | # Configure specific Python version. 88 | using python 89 | : 3.3 90 | : /usr/bin/python3 91 | : /usr/include/python3.3m 92 | : /usr/lib 93 | ; 94 | 95 | # ------------------------ 96 | # BoostBook configuration. 97 | # ------------------------ 98 | using xsltproc ; 99 | 100 | using boostbook 101 | : /usr/share/xml/docbook/stylesheet/nwalsh 102 | : /usr/share/xml/docbook/schema/dtd/4.2 103 | ; 104 | 105 | using fop 106 | : /usr/bin/fop 107 | : /usr/lib/jvm/java-6-openjdk 108 | ; 109 | 110 | using doxygen ; 111 | 112 | # ------------------------ 113 | # Quickbook configuration. 114 | # ------------------------ 115 | using quickbook 116 | : /home/mloskot/bin/quickbook 117 | ; 118 | -------------------------------------------------------------------------------- /home/mloskot/boost/user-config.jam.windows: -------------------------------------------------------------------------------- 1 | # Copyright 2011 Mateusz Loskot 2 | # Boost.Build configuration for Windows machine 3 | 4 | # Copyright 2003, 2005 Douglas Gregor 5 | # Copyright 2004 John Maddock 6 | # Copyright 2002, 2003, 2004, 2007 Vladimir Prus 7 | # Distributed under the Boost Software License, Version 1.0. 8 | # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) 9 | 10 | # This file is used to configure your Boost.Build installation. You can modify 11 | # this file in place, or you can place it in a permanent location so that it 12 | # does not get overwritten should you get a new version of Boost.Build. See: 13 | # 14 | # http://www.boost.org/boost-build2/doc/html/bbv2/overview/configuration.html 15 | # 16 | # for documentation about possible permanent locations. 17 | 18 | # This file specifies which toolsets (C++ compilers), libraries, and other 19 | # tools are available. Often, you should be able to just uncomment existing 20 | # example lines and adjust them to taste. The complete list of supported tools, 21 | # and configuration instructions can be found at: 22 | # 23 | # http://boost.org/boost-build2/doc/html/bbv2/reference/tools.html 24 | # 25 | 26 | # This file uses Jam language syntax to describe available tools. Mostly, 27 | # there are 'using' lines, that contain the name of the used tools, and 28 | # parameters to pass to those tools -- where paremeters are separated by 29 | # semicolons. Important syntax notes: 30 | # 31 | # - Both ':' and ';' must be separated from other tokens by whitespace 32 | # - The '\' symbol is a quote character, so when specifying Windows paths you 33 | # should use '/' or '\\' instead. 34 | # 35 | # More details about the syntax can be found at: 36 | # 37 | # http://boost.org/boost-build2/doc/html/bbv2/advanced.html#bbv2.advanced.jam_language 38 | # 39 | 40 | # ------------------- 41 | # MSVC configuration. 42 | # ------------------- 43 | 44 | # Configure msvc (default version, searched for in standard locations and PATH). 45 | # using msvc ; 46 | 47 | # Configure specific msvc version (searched for in standard locations and PATH). 48 | # Visual Studio 11 Developer Preview 49 | using msvc : 11.0 ; 50 | 51 | # ----------------- 52 | # QT configuration. 53 | # ----------------- 54 | 55 | # Configure assuming QTDIR gives the installation prefix. 56 | # using qt ; 57 | 58 | # Configure with an explicit installation prefix. 59 | # using qt : /usr/opt/qt ; 60 | 61 | # --------------------- 62 | # Python configuration. 63 | # --------------------- 64 | 65 | # Configure specific Python version. 66 | using python : 3.2 : C:\\Python32 ; 67 | -------------------------------------------------------------------------------- /home/mloskot/emacs/.emacs: -------------------------------------------------------------------------------- 1 | ;; -*-mode: Emacs-Lisp; folding-mode:t-*- 2 | ; 3 | ;; Author: Mateusz Loskot 4 | ;; Source: http://github.com/mloskot/dot 5 | 6 | ;; set init file for custom settings 7 | (setq custom-file "~/.emacs.d/custom.el") 8 | 9 | ;; emacs-starter-kit 10 | ;(load-file "~/dot/emacs/emacs-starter-kit/init.el") 11 | 12 | ;; PATH environment 13 | (when (string= (system-name) "dog") 14 | (setenv "PATH" (concat "/home/mloskot/bin:/home/mloskot/usr/bin:" (getenv "PATH"))) 15 | (push "/home/mloskot/bin" exec-path) 16 | (push "/home/mloskot/usr/bin" exec-path) 17 | ) 18 | 19 | ;; load concrete packages 20 | ;; -- to be done -- 21 | 22 | ;; TODOs, etc. 23 | ;; -- to be done -- 24 | 25 | ;; text editing 26 | ;; -- to be done -- 27 | 28 | ;; programming tools & languages 29 | (load "~/dot/emacs/alex-ott-emacs-configs/rc/emacs-rc-cedet.el") 30 | (load "~/dot/emacs/alex-ott-emacs-configs/rc/emacs-rc-cmake.el") 31 | 32 | ;; programming projects 33 | (load "~/dot/emacs/my-ede-projects/liblas.el") 34 | 35 | ;; VCS & DVCS 36 | ;(load "~/dot/emacs/alex-ott-emacs-configs/rc/emacs-rc-git.el") 37 | 38 | ;; WWW, IM, social networking & blogging 39 | ;; -- to be done -- 40 | 41 | ;; Top Secret - DO NOT PUBLISH 42 | ;; -- to be done -- 43 | ;;(load "~/emacs/passwords.el.gpg") 44 | 45 | (load custom-file 'noerror) 46 | -------------------------------------------------------------------------------- /home/mloskot/emacs/.emacs.d/.gitignore: -------------------------------------------------------------------------------- 1 | auto-save-list 2 | -------------------------------------------------------------------------------- /home/mloskot/emacs/.emacs.d/custom.el: -------------------------------------------------------------------------------- 1 | ;; don't show startup messages 2 | (setq inhibit-startup-message t) 3 | (setq inhibit-startup-echo-area-message t) 4 | 5 | ;; set default window size 6 | (defun set-frame-size-according-to-resolution () 7 | (interactive) 8 | (if window-system 9 | (progn 10 | ;; use 90 or 120 char wide window for largeish displays 11 | ;; and smaller 80 column windows for smaller displays 12 | ;; pick whatever numbers make sense for you 13 | (if (> (x-display-pixel-width) 1280) 14 | (add-to-list 'default-frame-alist (cons 'width 100)) 15 | (add-to-list 'default-frame-alist (cons 'width 80))) 16 | ;; for the height, subtract a couple hundred pixels 17 | ;; from the screen height (for panels, menubars and 18 | ;; whatnot), then divide by the height of a char to 19 | ;; get the height we want 20 | (add-to-list 'default-frame-alist 21 | (cons 'height (/ (- (x-display-pixel-height) 200) (frame-char-height))))))) 22 | 23 | (set-frame-size-according-to-resolution) 24 | 25 | ;; the modeline 26 | ;(line-number-mode t) ;; show line numbers 27 | ;(column-number-mode t) ;; show column numbers 28 | ;(size-indication-mode t) ;; show file size (emacs 22+) 29 | 30 | ;; buffers settings 31 | ;; 32 | ;; cycle through buffers with Ctrl-Tab (like Firefox) 33 | ;; source: http://emacs-fu.blogspot.com/2008/12/cycling-through-your-buffers-with-ctrl.html 34 | (global-set-key (kbd "") 'bury-buffer) 35 | 36 | ;; editor settings 37 | (setq scroll-step 1) ;; line by line scrolling 38 | (global-hl-line-mode 1) ;; set the highlight current line minor mode 39 | (setq-default tab-width 4) ;; tab width and indentation 40 | ;(setq-default indent-tabs-mode nil) ;; turn off tabs character 41 | 42 | ;; C/C++ mode 43 | ;; 44 | ;; match tabs and indentation after Visual Studio for C/C++ files 45 | ;; source: http://stackoverflow.com/questions/663588/emacs-c-mode-incorrect-indentation/664492#664492 46 | (defun my-c-mode-common-hook () 47 | ;; my customizations for all of c-mode, c++-mode, objc-mode, java-mode 48 | (c-set-offset 'substatement-open 0) 49 | ;; other customizations can go here 50 | 51 | (setq c++-tab-always-indent t) 52 | (setq c-basic-offset 4) ;; Default is 2 53 | (setq c-indent-level 4) ;; Default is 2 54 | 55 | (setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60)) 56 | (setq tab-width 4) 57 | (setq indent-tabs-mode t) ; use spaces only if nil 58 | ) 59 | 60 | (add-hook 'c-mode-common-hook 'my-c-mode-common-hook) 61 | 62 | ;; quickly switching between header and implementation 63 | ;; source: http://emacs-fu.blogspot.com/2008/12/quickly-switching-between-header-and.html 64 | ;;(add-hook 'c-mode-common-hook 65 | ;; (lambda() 66 | ;; (local-set-key (kbd "C-c o") 'ff-find-other-file))) 67 | 68 | 69 | ;;; custom.el ends here 70 | -------------------------------------------------------------------------------- /home/mloskot/emacs/README: -------------------------------------------------------------------------------- 1 | # dot/emacs module 2 | 3 | === .emacs === 4 | 5 | My main Emacs configuration symlinked to $HOME/.emacs 6 | 7 | === emacs-starter-kit === 8 | 9 | This is placeholder for clone of the Emacs Starter Kit. 10 | 11 | 1. Clone the kit somewhere on your disk 12 | 13 | git clone http://github.com/technomancy/emacs-starter-kit.git 14 | 15 | 2. Copy all files to the dot tree 16 | 17 | cp emacs-starter-kit/* $HOME/dot/emacs/emacs-starter-kit 18 | 19 | The $HOME/.emacs loads it by $HOME/dot/emacs/emacs-starter-kit/init.el 20 | 21 | === alex-ott-emacs-configs == 22 | 23 | Placeholder for my customised version of some ofAlex Ott's emacs 24 | configuration files: 25 | 26 | http://github.com/alexott/emacs-configs 27 | 28 | === cedet === 29 | 30 | Placeholder for CEDET installation. 31 | 32 | === my-ede-projects === 33 | 34 | My ede-cpp-root-projcet definitions 35 | -------------------------------------------------------------------------------- /home/mloskot/emacs/alex-ott-emacs-configs/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/emacs/alex-ott-emacs-configs/.gitignore -------------------------------------------------------------------------------- /home/mloskot/emacs/alex-ott-emacs-configs/rc/emacs-rc-cmake.el: -------------------------------------------------------------------------------- 1 | ;;; emacs-rc-cmake.el --- 2 | 3 | ;; Copyright (C) Alex Ott 4 | ;; 5 | ;; Author: Alex Ott 6 | ;; Keywords: 7 | ;; Requirements: 8 | ;; Status: not intended to be distributed yet 9 | 10 | ;; Modifications: 11 | ;; Author: mateusz at loskot dot net 12 | ;; Source: http://github.com/mloskot/dot 13 | ;; 14 | ;; support for CMake 15 | 16 | ;; set possible locations of cmake-mode 17 | (setq load-path (cons "~/dev/cmake/_git/cmake.git/Docs" load-path)) 18 | (setq load-path (cons "~/src/cmake-2.8.0/Docs" load-path)) 19 | 20 | (autoload 'cmake-mode "cmake-mode" t) 21 | (add-to-list 'auto-mode-alist '("CMakeLists\\.txt\\'" . cmake-mode)) 22 | (add-to-list 'auto-mode-alist '("\\.cmake\\'" . cmake-mode)) 23 | 24 | (add-hook 'cmake-mode-hook 'alexott/common-hook) 25 | (add-hook 'cmake-mode-hook 'alexott/show-prog-keywords) 26 | 27 | ;;; emacs-rc-cmake.el ends here 28 | -------------------------------------------------------------------------------- /home/mloskot/emacs/cedet/.gitignore: -------------------------------------------------------------------------------- 1 | # ignore all files 2 | * 3 | # except this one 4 | !.gitignore 5 | -------------------------------------------------------------------------------- /home/mloskot/emacs/emacs-starter-kit/.gitignore: -------------------------------------------------------------------------------- 1 | # ignore all files 2 | * 3 | # except this one 4 | !.gitignore 5 | -------------------------------------------------------------------------------- /home/mloskot/emacs/my-ede-projects/liblas.el: -------------------------------------------------------------------------------- 1 | ;; ede project definition for libLAS 2 | ;; 3 | 4 | ;; boost from debian/ubuntu package (1.42) 5 | (setq boost-base-directory "/usr/include/") 6 | 7 | (setq cpp-liblas-project 8 | (ede-cpp-root-project "cpp-liblas" 9 | :file "~/dev/liblas/_hg/main/CMakeLists.txt" 10 | :include-path '( 11 | "include/liblas" 12 | "include/liblas/external" 13 | "include/liblas/external/property_tree" 14 | "include/liblas/external/property_tree/detail" 15 | "include/liblas/detail" 16 | "include/liblas/detail/reader" 17 | "include/liblas/detail/writer" 18 | "include/liblas/detail/index" 19 | "include/liblas/capi" 20 | ) 21 | :system-include-path '( boost-base-directory ) 22 | :local-variables (list 23 | (cons 'compile-command 'alexott/gen-cmake-debug-compile-string)))) 24 | -------------------------------------------------------------------------------- /home/mloskot/gdb/.gdbinit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/gdb/.gdbinit -------------------------------------------------------------------------------- /home/mloskot/hg/.hgrc: -------------------------------------------------------------------------------- 1 | [ui] 2 | username = Mateusz Loskot 3 | -------------------------------------------------------------------------------- /home/mloskot/icc/Monitor_8-27-2008_1.icc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mloskot/archlinux-config/02ab8494bedcd1ea6db199d78dfe7519837ca1e4/home/mloskot/icc/Monitor_8-27-2008_1.icc -------------------------------------------------------------------------------- /home/mloskot/mplayer/.mplayer/config: -------------------------------------------------------------------------------- 1 | [default] 2 | # Write your default config options here! 3 | 4 | #=========== 5 | # Appearance 6 | #=========== 7 | 8 | # Disable screensaver. 9 | stop-xscreensaver=yes 10 | 11 | # Position window. (50%:50%: center of screen) 12 | #geometry=50%:50%: 13 | geometry=+400+0 14 | 15 | # double size 16 | xy=1.5 17 | 18 | #always keep mplayer on top 19 | ontop="1" 20 | 21 | #====== 22 | # Video 23 | #====== 24 | 25 | # Set video driver. 26 | vo=xv 27 | 28 | # Use double-buffering. (Recommended for xv with SUB/OSD usage) 29 | double=yes 30 | -------------------------------------------------------------------------------- /home/mloskot/signature.txt: -------------------------------------------------------------------------------- 1 | -- 2 | Mateusz Loskot, http://mateusz.loskot.net 3 | Charter Member of OSGeo, http://osgeo.org 4 | --------------------------------------------------------------------------------