From 56560fd597f94dfe6fe5fa79648398ab29d05775 Mon Sep 17 00:00:00 2001 From: xero Date: Mon, 14 Jul 2014 13:23:05 -0400 Subject: updated repo to manage dotfiles via gnu stow, the symlink farm manager. happy birthday commit! :birthday: :sparkles: --- .Xdefaults | 57 - .config/.udisk-glue.conf | 24 - .config/awesome/config.lua | 55 - .config/awesome/lain/README.rst | 49 - .config/awesome/lain/helpers.lua | 103 - .config/awesome/lain/icons/cal/white/1.png | Bin 888 -> 0 bytes .config/awesome/lain/icons/cal/white/10.png | Bin 3476 -> 0 bytes .config/awesome/lain/icons/cal/white/11.png | Bin 2109 -> 0 bytes .config/awesome/lain/icons/cal/white/12.png | Bin 2349 -> 0 bytes .config/awesome/lain/icons/cal/white/13.png | Bin 2442 -> 0 bytes .config/awesome/lain/icons/cal/white/14.png | Bin 1378 -> 0 bytes .config/awesome/lain/icons/cal/white/15.png | Bin 1711 -> 0 bytes .config/awesome/lain/icons/cal/white/16.png | Bin 2056 -> 0 bytes .config/awesome/lain/icons/cal/white/17.png | Bin 1435 -> 0 bytes .config/awesome/lain/icons/cal/white/18.png | Bin 2207 -> 0 bytes .config/awesome/lain/icons/cal/white/19.png | Bin 2062 -> 0 bytes .config/awesome/lain/icons/cal/white/2.png | Bin 1553 -> 0 bytes .config/awesome/lain/icons/cal/white/20.png | Bin 2754 -> 0 bytes .config/awesome/lain/icons/cal/white/21.png | Bin 2092 -> 0 bytes .config/awesome/lain/icons/cal/white/22.png | Bin 2060 -> 0 bytes .config/awesome/lain/icons/cal/white/23.png | Bin 2495 -> 0 bytes .config/awesome/lain/icons/cal/white/24.png | Bin 2280 -> 0 bytes .config/awesome/lain/icons/cal/white/25.png | Bin 2325 -> 0 bytes .config/awesome/lain/icons/cal/white/26.png | Bin 2645 -> 0 bytes .config/awesome/lain/icons/cal/white/27.png | Bin 2044 -> 0 bytes .config/awesome/lain/icons/cal/white/28.png | Bin 2744 -> 0 bytes .config/awesome/lain/icons/cal/white/29.png | Bin 2597 -> 0 bytes .config/awesome/lain/icons/cal/white/3.png | Bin 1808 -> 0 bytes .config/awesome/lain/icons/cal/white/30.png | Bin 2912 -> 0 bytes .config/awesome/lain/icons/cal/white/31.png | Bin 2232 -> 0 bytes .config/awesome/lain/icons/cal/white/4.png | Bin 1140 -> 0 bytes .config/awesome/lain/icons/cal/white/5.png | Bin 1437 -> 0 bytes .config/awesome/lain/icons/cal/white/6.png | Bin 1776 -> 0 bytes .config/awesome/lain/icons/cal/white/7.png | Bin 1147 -> 0 bytes .config/awesome/lain/icons/cal/white/8.png | Bin 1930 -> 0 bytes .config/awesome/lain/icons/cal/white/9.png | Bin 1786 -> 0 bytes .../awesome/lain/icons/layout/default/cascade.png | Bin 233 -> 0 bytes .../lain/icons/layout/default/cascadebrowse.png | Bin 235 -> 0 bytes .../lain/icons/layout/default/cascadebrowsew.png | Bin 235 -> 0 bytes .../awesome/lain/icons/layout/default/cascadew.png | Bin 233 -> 0 bytes .../lain/icons/layout/default/centerfair.png | Bin 169 -> 0 bytes .../lain/icons/layout/default/centerfairw.png | Bin 169 -> 0 bytes .../lain/icons/layout/default/centerwork.png | Bin 258 -> 0 bytes .../lain/icons/layout/default/centerworkw.png | Bin 277 -> 0 bytes .../awesome/lain/icons/layout/default/termfair.png | Bin 191 -> 0 bytes .../lain/icons/layout/default/termfairw.png | Bin 191 -> 0 bytes .../awesome/lain/icons/layout/zenburn/cascade.png | Bin 299 -> 0 bytes .../lain/icons/layout/zenburn/cascadebrowse.png | Bin 290 -> 0 bytes .../lain/icons/layout/zenburn/centerfair.png | Bin 399 -> 0 bytes .../lain/icons/layout/zenburn/centerwork.png | Bin 252 -> 0 bytes .../awesome/lain/icons/layout/zenburn/termfair.png | Bin 289 -> 0 bytes .config/awesome/lain/icons/mail.png | Bin 634 -> 0 bytes .config/awesome/lain/icons/no_net.png | Bin 1697 -> 0 bytes .config/awesome/lain/icons/taskwarrior/task.png | Bin 1212 -> 0 bytes .../awesome/lain/icons/taskwarrior/tasksmall.png | Bin 941 -> 0 bytes .config/awesome/lain/init.lua | 21 - .config/awesome/lain/layout/cascade.lua | 65 - .config/awesome/lain/layout/cascadetile.lua | 155 - .config/awesome/lain/layout/centerfair.lua | 147 - .config/awesome/lain/layout/centerwork.lua | 118 - .config/awesome/lain/layout/init.lua | 20 - .config/awesome/lain/layout/termfair.lua | 141 - .config/awesome/lain/layout/uselessfair.lua | 121 - .config/awesome/lain/layout/uselesspiral.lua | 110 - .config/awesome/lain/layout/uselesstile.lua | 230 -- .config/awesome/lain/scripts/dfs | 387 --- .config/awesome/lain/scripts/mpdcover | 68 - .config/awesome/lain/util/init.lua | 213 -- .config/awesome/lain/util/markup.lua | 69 - .config/awesome/lain/widgets/alsa.lua | 65 - .config/awesome/lain/widgets/alsabar.lua | 175 - .config/awesome/lain/widgets/base.lua | 40 - .config/awesome/lain/widgets/bat.lua | 149 - .config/awesome/lain/widgets/borderbox.lua | 61 - .config/awesome/lain/widgets/calendar.lua | 125 - .config/awesome/lain/widgets/contrib/ccurr.lua | 82 - .config/awesome/lain/widgets/contrib/init.lua | 20 - .config/awesome/lain/widgets/contrib/task.lua | 133 - .../awesome/lain/widgets/contrib/tpbat/init.lua | 166 - .../awesome/lain/widgets/contrib/tpbat/smapi.lua | 102 - .config/awesome/lain/widgets/cpu.lua | 77 - .config/awesome/lain/widgets/fs.lua | 120 - .config/awesome/lain/widgets/imap.lua | 87 - .config/awesome/lain/widgets/init.lua | 20 - .config/awesome/lain/widgets/maildir.lua | 95 - .config/awesome/lain/widgets/mem.lua | 61 - .config/awesome/lain/widgets/mpd.lua | 110 - .config/awesome/lain/widgets/net.lua | 102 - .config/awesome/lain/widgets/sysload.lua | 46 - .config/awesome/lain/widgets/temp.lua | 48 - .../lain/widgets/yawn/icons/BlowingSnow.png | Bin 11454 -> 0 bytes .config/awesome/lain/widgets/yawn/icons/Cloudy.png | Bin 7469 -> 0 bytes .../awesome/lain/widgets/yawn/icons/DayClear.png | Bin 6147 -> 0 bytes .../awesome/lain/widgets/yawn/icons/DayFair.png | 1 - .../lain/widgets/yawn/icons/DayMostlyCloudy.png | Bin 8016 -> 0 bytes .../lain/widgets/yawn/icons/DayPartlyCloudy.png | Bin 7478 -> 0 bytes .../awesome/lain/widgets/yawn/icons/Drizzle.png | 1 - .config/awesome/lain/widgets/yawn/icons/Fog.png | 1 - .config/awesome/lain/widgets/yawn/icons/Foggy.png | Bin 7325 -> 0 bytes .../lain/widgets/yawn/icons/FreezingDrizzle.png | Bin 13166 -> 0 bytes .../lain/widgets/yawn/icons/FreezingRain.png | Bin 13979 -> 0 bytes .config/awesome/lain/widgets/yawn/icons/Hail.png | Bin 7325 -> 0 bytes .config/awesome/lain/widgets/yawn/icons/Haze.png | 1 - .../awesome/lain/widgets/yawn/icons/HeavyRain.png | 1 - .../awesome/lain/widgets/yawn/icons/HeavySnow.png | Bin 12733 -> 0 bytes .../awesome/lain/widgets/yawn/icons/LightRain.png | 1 - .../awesome/lain/widgets/yawn/icons/LightSnow.png | 1 - .../lain/widgets/yawn/icons/LightSnowShowers.png | Bin 8779 -> 0 bytes .config/awesome/lain/widgets/yawn/icons/Mist.png | 1 - .../lain/widgets/yawn/icons/MixedRainAndHail.png | Bin 9060 -> 0 bytes .../lain/widgets/yawn/icons/MixedRainAndSleet.png | Bin 10978 -> 0 bytes .../lain/widgets/yawn/icons/MixedRainAndSnow.png | Bin 10808 -> 0 bytes .../awesome/lain/widgets/yawn/icons/NightClear.png | Bin 5198 -> 0 bytes .../awesome/lain/widgets/yawn/icons/NightFair.png | 1 - .../lain/widgets/yawn/icons/NightMostlyCloudy.png | Bin 7058 -> 0 bytes .../lain/widgets/yawn/icons/NightPartlyCloudy.png | Bin 6583 -> 0 bytes .config/awesome/lain/widgets/yawn/icons/README.md | 6 - .config/awesome/lain/widgets/yawn/icons/Rain.png | Bin 8052 -> 0 bytes .../lain/widgets/yawn/icons/RainThunder.png | Bin 9879 -> 0 bytes .../awesome/lain/widgets/yawn/icons/Showers.png | Bin 9694 -> 0 bytes .config/awesome/lain/widgets/yawn/icons/Sleet.png | 1 - .config/awesome/lain/widgets/yawn/icons/Snow.png | 1 - .../lain/widgets/yawn/icons/SnowFlurries.png | 1 - .../lain/widgets/yawn/icons/SnowShowers.png | Bin 9961 -> 0 bytes .config/awesome/lain/widgets/yawn/icons/Sunny.png | Bin 14018 -> 0 bytes .../widgets/yawn/icons/ThunderintheVicinity.png | 1 - .config/awesome/lain/widgets/yawn/icons/Wind.png | Bin 8726 -> 0 bytes .config/awesome/lain/widgets/yawn/icons/na.png | Bin 11160 -> 0 bytes .config/awesome/lain/widgets/yawn/init.lua | 200 -- .../awesome/lain/widgets/yawn/localizations/it_IT | 60 - .../yawn/localizations/localization_template | 60 - .config/awesome/rc.lua | 900 ------ .config/awesome/scratchdrop/README.md | 3 - .config/awesome/scratchdrop/init.lua | 133 - .config/awesome/themes/ghost/gfx.png | Bin 4792 -> 0 bytes .config/awesome/themes/ghost/hash.png | Bin 1375 -> 0 bytes .config/awesome/themes/ghost/icons/ac.png | Bin 106 -> 0 bytes .config/awesome/themes/ghost/icons/battery.png | Bin 148 -> 0 bytes .../awesome/themes/ghost/icons/battery_empty.png | Bin 132 -> 0 bytes .config/awesome/themes/ghost/icons/battery_low.png | Bin 131 -> 0 bytes .config/awesome/themes/ghost/icons/black-sep.png | Bin 940 -> 0 bytes .config/awesome/themes/ghost/icons/black.png | Bin 925 -> 0 bytes .config/awesome/themes/ghost/icons/cpu.png | Bin 995 -> 0 bytes .config/awesome/themes/ghost/icons/grey.png | Bin 933 -> 0 bytes .config/awesome/themes/ghost/icons/hash1.png | Bin 936 -> 0 bytes .config/awesome/themes/ghost/icons/hash2.png | Bin 967 -> 0 bytes .config/awesome/themes/ghost/icons/hash3.png | Bin 936 -> 0 bytes .config/awesome/themes/ghost/icons/hdd.png | Bin 1121 -> 0 bytes .config/awesome/themes/ghost/icons/mem.png | Bin 93 -> 0 bytes .config/awesome/themes/ghost/icons/net.png | Bin 1011 -> 0 bytes .config/awesome/themes/ghost/icons/net_wired.png | Bin 1001 -> 0 bytes .config/awesome/themes/ghost/icons/note.png | Bin 978 -> 0 bytes .config/awesome/themes/ghost/icons/submenu.png | Bin 142 -> 0 bytes .config/awesome/themes/ghost/icons/temp.png | Bin 119 -> 0 bytes .../awesome/themes/ghost/layouts/centerfair.png | Bin 1012 -> 0 bytes .../awesome/themes/ghost/layouts/centerwork.png | Bin 1002 -> 0 bytes .config/awesome/themes/ghost/layouts/cpu.png | Bin 995 -> 0 bytes .config/awesome/themes/ghost/layouts/dwindle.png | Bin 1003 -> 0 bytes .config/awesome/themes/ghost/layouts/fairh.png | Bin 993 -> 0 bytes .config/awesome/themes/ghost/layouts/fairv.png | Bin 1015 -> 0 bytes .config/awesome/themes/ghost/layouts/floating.png | Bin 987 -> 0 bytes .config/awesome/themes/ghost/layouts/magnifier.png | Bin 989 -> 0 bytes .config/awesome/themes/ghost/layouts/max.png | Bin 1016 -> 0 bytes .config/awesome/themes/ghost/layouts/spiral.png | Bin 1001 -> 0 bytes .config/awesome/themes/ghost/layouts/termfair.png | Bin 972 -> 0 bytes .config/awesome/themes/ghost/layouts/tile.png | Bin 984 -> 0 bytes .../awesome/themes/ghost/layouts/tilebottom.png | Bin 993 -> 0 bytes .config/awesome/themes/ghost/layouts/tileleft.png | Bin 988 -> 0 bytes .config/awesome/themes/ghost/layouts/tiletop.png | Bin 994 -> 0 bytes .config/awesome/themes/ghost/theme.lua | 93 - .../Default/Default/User StyleSheets/Custom.css | 2217 ------------- .config/compton.conf | 45 - .config/mc/ini | 156 - .../Packages/Default/Preferences.sublime-settings | 336 -- .../Packages/User/Preferences.sublime-settings | 12 - .../Packages/theme-greybeard/README.md | 25 - .../theme-greybeard/greybeard.sublime-theme | 1169 ------- .../Packages/theme-greybeard/greybeard/buffer.png | Bin 190 -> 0 bytes .../theme-greybeard/greybeard/buffer@2x.png | Bin 361 -> 0 bytes .../theme-greybeard/greybeard/casesens.png | Bin 230 -> 0 bytes .../theme-greybeard/greybeard/casesens@2x.png | Bin 500 -> 0 bytes .../Packages/theme-greybeard/greybeard/circle.png | Bin 204 -> 0 bytes .../theme-greybeard/greybeard/circle@2x.png | Bin 390 -> 0 bytes .../Packages/theme-greybeard/greybeard/close.png | Bin 14599 -> 0 bytes .../theme-greybeard/greybeard/close@2x.png | Bin 280 -> 0 bytes .../Packages/theme-greybeard/greybeard/context.png | Bin 100 -> 0 bytes .../theme-greybeard/greybeard/context@2x.png | Bin 136 -> 0 bytes .../theme-greybeard/greybeard/folder-closed.png | Bin 137 -> 0 bytes .../theme-greybeard/greybeard/folder-closed@2x.png | Bin 206 -> 0 bytes .../theme-greybeard/greybeard/folder-open.png | Bin 145 -> 0 bytes .../theme-greybeard/greybeard/folder-open@2x.png | Bin 231 -> 0 bytes .../Packages/theme-greybeard/greybeard/folder.png | Bin 1319 -> 0 bytes .../theme-greybeard/greybeard/folder@2x.png | Bin 1678 -> 0 bytes .../theme-greybeard/greybeard/highlight.png | Bin 143 -> 0 bytes .../theme-greybeard/greybeard/highlight@2x.png | Bin 241 -> 0 bytes .../Packages/theme-greybeard/greybeard/regex.png | Bin 219 -> 0 bytes .../theme-greybeard/greybeard/regex@2x.png | Bin 404 -> 0 bytes .../Packages/theme-greybeard/greybeard/reverse.png | Bin 172 -> 0 bytes .../theme-greybeard/greybeard/reverse@2x.png | Bin 270 -> 0 bytes .../theme-greybeard/greybeard/selection.png | Bin 107 -> 0 bytes .../theme-greybeard/greybeard/selection@2x.png | Bin 150 -> 0 bytes .../theme-greybeard/greybeard/tab-bar-active.png | Bin 1003 -> 0 bytes .../greybeard/tab-bar-active@2x.png | Bin 1049 -> 0 bytes .../Packages/theme-greybeard/greybeard/tab-bar.png | Bin 978 -> 0 bytes .../theme-greybeard/greybeard/tab-bar@2x.png | Bin 1054 -> 0 bytes .../greybeard/tab-scroll-dropdown.png | Bin 1437 -> 0 bytes .../theme-greybeard/greybeard/tab-scroll-left.png | Bin 3180 -> 0 bytes .../theme-greybeard/greybeard/tab-scroll-right.png | Bin 3160 -> 0 bytes .../theme-greybeard/greybeard/wholeword.png | Bin 134 -> 0 bytes .../theme-greybeard/greybeard/wholeword@2x.png | Bin 170 -> 0 bytes .../Packages/theme-greybeard/greybeard/wrap.png | Bin 196 -> 0 bytes .../Packages/theme-greybeard/greybeard/wrap@2x.png | Bin 364 -> 0 bytes .../Packages/theme-greybeard/preview1.png | Bin 103790 -> 0 bytes .../Packages/theme-greybeard/preview2.png | Bin 106540 -> 0 bytes .fonts.conf | 63 - .fonts/gohu-README | 13 - .fonts/gohufont-11.pcf.gz | Bin 3826 -> 0 bytes .fonts/gohufont-11b.pcf.gz | Bin 3886 -> 0 bytes .fonts/gohufont-14.pcf.gz | Bin 4356 -> 0 bytes .fonts/gohufont-14b.pcf.gz | Bin 4322 -> 0 bytes .fonts/gohufont-uni-11.pcf.gz | Bin 24054 -> 0 bytes .fonts/gohufont-uni-11b.pcf.gz | Bin 24147 -> 0 bytes .fonts/gohufont-uni-14.pcf.gz | Bin 16786 -> 0 bytes .fonts/gohufont-uni-14b.pcf.gz | Bin 16630 -> 0 bytes .gitconfig | 13 - .gitignore | 1 + .mpd/mpd.conf | 437 --- .mpd/mpd.db | 0 .mpd/mpd.fifo | 0 .mpd/mpd.log | 0 .mpd/mpd.pid | 0 .mpd/mpdstate | 0 .mpd/playlists/placeholder.m3u | 0 .mpd/sticker.sql | 1 - .mpd/tag_cache | 1 - .ncmpcpp/config | 75 - .vim/.netrwhist | 8 - .vim/autoload/pathogen.vim | 344 -- .vim/bundle/colorizer/Makefile | 12 - .vim/bundle/colorizer/README.mkd | 7 - .vim/bundle/colorizer/autoload/colorizer.vim | 377 --- .vim/bundle/colorizer/plugin/colorizer.vim | 62 - .vim/bundle/colorizer/screenshot.png | Bin 38279 -> 0 bytes .vim/bundle/indentLine/.gitattributes | 22 - .vim/bundle/indentLine/.gitignore | 163 - .vim/bundle/indentLine/README.md | 34 - .vim/bundle/indentLine/after/plugin/indentLine.vim | 166 - .vim/bundle/indentLine/doc/indentLine.txt | 143 - .vim/bundle/vim-airline/.gitignore | 3 - .vim/bundle/vim-airline/.travis.yml | 4 - .vim/bundle/vim-airline/Gemfile | 2 - .vim/bundle/vim-airline/LICENSE | 21 - .vim/bundle/vim-airline/README.md | 210 -- .vim/bundle/vim-airline/Rakefile | 14 - .vim/bundle/vim-airline/autoload/airline.vim | 170 - .../vim-airline/autoload/airline/builder.vim | 74 - .vim/bundle/vim-airline/autoload/airline/debug.vim | 50 - .../vim-airline/autoload/airline/deprecation.vim | 32 - .../vim-airline/autoload/airline/extensions.vim | 234 -- .../autoload/airline/extensions/branch.vim | 108 - .../autoload/airline/extensions/bufferline.vim | 23 - .../autoload/airline/extensions/commandt.vim | 16 - .../autoload/airline/extensions/csv.vim | 31 - .../autoload/airline/extensions/ctrlp.vim | 77 - .../autoload/airline/extensions/default.vim | 77 - .../autoload/airline/extensions/eclim.vim | 41 - .../autoload/airline/extensions/example.vim | 54 - .../autoload/airline/extensions/hunks.vim | 67 - .../autoload/airline/extensions/netrw.vim | 32 - .../autoload/airline/extensions/nrrwrgn.vim | 24 - .../autoload/airline/extensions/promptline.vim | 33 - .../autoload/airline/extensions/quickfix.vim | 37 - .../autoload/airline/extensions/syntastic.vim | 19 - .../autoload/airline/extensions/tabline.vim | 278 -- .../airline/extensions/tabline/default.vim | 35 - .../airline/extensions/tabline/unique_tail.vim | 27 - .../extensions/tabline/unique_tail_improved.vim | 89 - .../autoload/airline/extensions/tagbar.vim | 45 - .../autoload/airline/extensions/tmuxline.vim | 26 - .../autoload/airline/extensions/undotree.vim | 27 - .../autoload/airline/extensions/unite.vim | 23 - .../autoload/airline/extensions/virtualenv.vim | 20 - .../airline/extensions/whitespace.vim.disable | 103 - .../vim-airline/autoload/airline/highlighter.vim | 156 - .vim/bundle/vim-airline/autoload/airline/init.vim | 113 - .vim/bundle/vim-airline/autoload/airline/parts.vim | 79 - .../vim-airline/autoload/airline/section.vim | 73 - .../bundle/vim-airline/autoload/airline/themes.vim | 67 - .../autoload/airline/themes/badwolf.vim | 52 - .../vim-airline/autoload/airline/themes/base16.vim | 107 - .../autoload/airline/themes/bubblegum.vim | 62 - .../vim-airline/autoload/airline/themes/dark.vim | 102 - .../vim-airline/autoload/airline/themes/hybrid.vim | 58 - .../autoload/airline/themes/jellybeans.vim | 52 - .../vim-airline/autoload/airline/themes/kalisi.vim | 57 - .../vim-airline/autoload/airline/themes/kolor.vim | 59 - .../autoload/airline/themes/laederon.vim | 62 - .../vim-airline/autoload/airline/themes/light.vim | 45 - .../vim-airline/autoload/airline/themes/lucius.vim | 56 - .../vim-airline/autoload/airline/themes/luna.vim | 92 - .../autoload/airline/themes/molokai.vim | 65 - .../autoload/airline/themes/monochrome.vim | 15 - .../vim-airline/autoload/airline/themes/murmur.vim | 46 - .../autoload/airline/themes/powerlineish.vim | 46 - .../vim-airline/autoload/airline/themes/serene.vim | 41 - .../vim-airline/autoload/airline/themes/simple.vim | 46 - .../vim-airline/autoload/airline/themes/sol.vim | 90 - .../autoload/airline/themes/solarized.vim | 176 - .../autoload/airline/themes/tomorrow.vim | 44 - .../vim-airline/autoload/airline/themes/ubaryd.vim | 64 - .../autoload/airline/themes/understated.vim | 43 - .../vim-airline/autoload/airline/themes/wombat.vim | 90 - .../autoload/airline/themes/zenburn.vim | 44 - .vim/bundle/vim-airline/autoload/airline/util.vim | 64 - .vim/bundle/vim-airline/doc/airline.txt | 752 ----- .vim/bundle/vim-airline/plugin/airline.vim | 109 - .vim/bundle/vim-airline/t/airline.vim | 87 - .vim/bundle/vim-airline/t/builder.vim | 80 - .vim/bundle/vim-airline/t/commands.vim | 33 - .vim/bundle/vim-airline/t/extensions_default.vim | 32 - .vim/bundle/vim-airline/t/highlighter.vim | 21 - .vim/bundle/vim-airline/t/init.vim | 77 - .vim/bundle/vim-airline/t/parts.vim | 39 - .vim/bundle/vim-airline/t/section.vim | 76 - .vim/bundle/vim-airline/t/themes.vim | 68 - .vim/bundle/vim-airline/t/util.vim | 54 - .vim/bundle/vim-fugitive/.gitignore | 1 - .vim/bundle/vim-fugitive/CONTRIBUTING.markdown | 18 - .vim/bundle/vim-fugitive/README.markdown | 120 - .vim/bundle/vim-fugitive/doc/fugitive.txt | 319 -- .vim/bundle/vim-fugitive/plugin/fugitive.vim | 2624 --------------- .vim/bundle/vim-startify/.gitignore | 11 - .vim/bundle/vim-startify/CONTRIBUTING.md | 28 - .vim/bundle/vim-startify/LICENSE | 20 - .vim/bundle/vim-startify/README.md | 173 - .vim/bundle/vim-startify/startify.png | Bin 80279 -> 0 bytes .vim/colors/monokai.vim | 107 - .vimrc | 46 - .xinitrc | 84 - .zsh/colored-man-pages.zsh | 8 - .zsh/functions/chpwd_update_git_vars | 1 - .zsh/functions/precmd_update_git_vars | 4 - .zsh/functions/preexec_update_git_vars | 5 - .zsh/functions/prompt_git_info | 21 - .zsh/functions/update_current_git_vars | 31 - .zshrc | 124 - README.md | 82 +- awesome/.config/awesome/config.lua | 55 + awesome/.config/awesome/lain/README.rst | 49 + awesome/.config/awesome/lain/helpers.lua | 103 + awesome/.config/awesome/lain/init.lua | 21 + awesome/.config/awesome/lain/layout/cascade.lua | 65 + .../.config/awesome/lain/layout/cascadetile.lua | 155 + awesome/.config/awesome/lain/layout/centerfair.lua | 147 + awesome/.config/awesome/lain/layout/centerwork.lua | 118 + awesome/.config/awesome/lain/layout/init.lua | 20 + awesome/.config/awesome/lain/layout/termfair.lua | 141 + .../.config/awesome/lain/layout/uselessfair.lua | 121 + .../.config/awesome/lain/layout/uselesspiral.lua | 110 + .../.config/awesome/lain/layout/uselesstile.lua | 230 ++ awesome/.config/awesome/lain/scripts/dfs | 387 +++ awesome/.config/awesome/lain/scripts/mpdcover | 68 + awesome/.config/awesome/lain/util/init.lua | 213 ++ awesome/.config/awesome/lain/util/markup.lua | 69 + awesome/.config/awesome/lain/widgets/alsa.lua | 65 + awesome/.config/awesome/lain/widgets/alsabar.lua | 175 + awesome/.config/awesome/lain/widgets/base.lua | 40 + awesome/.config/awesome/lain/widgets/bat.lua | 149 + awesome/.config/awesome/lain/widgets/borderbox.lua | 61 + awesome/.config/awesome/lain/widgets/calendar.lua | 125 + .../.config/awesome/lain/widgets/contrib/ccurr.lua | 82 + .../.config/awesome/lain/widgets/contrib/init.lua | 20 + .../.config/awesome/lain/widgets/contrib/task.lua | 133 + .../awesome/lain/widgets/contrib/tpbat/init.lua | 166 + .../awesome/lain/widgets/contrib/tpbat/smapi.lua | 102 + awesome/.config/awesome/lain/widgets/cpu.lua | 77 + awesome/.config/awesome/lain/widgets/fs.lua | 120 + awesome/.config/awesome/lain/widgets/imap.lua | 87 + awesome/.config/awesome/lain/widgets/init.lua | 20 + awesome/.config/awesome/lain/widgets/maildir.lua | 95 + awesome/.config/awesome/lain/widgets/mem.lua | 61 + awesome/.config/awesome/lain/widgets/mpd.lua | 110 + awesome/.config/awesome/lain/widgets/net.lua | 102 + awesome/.config/awesome/lain/widgets/sysload.lua | 46 + awesome/.config/awesome/lain/widgets/temp.lua | 48 + awesome/.config/awesome/lain/widgets/yawn/init.lua | 200 ++ .../awesome/lain/widgets/yawn/localizations/it_IT | 60 + .../yawn/localizations/localization_template | 60 + awesome/.config/awesome/rc.lua | 911 ++++++ awesome/.config/awesome/scratchdrop/README.md | 3 + awesome/.config/awesome/scratchdrop/init.lua | 133 + awesome/.config/awesome/themes/ghost/gfx.png | Bin 0 -> 4792 bytes awesome/.config/awesome/themes/ghost/hash.png | Bin 0 -> 1375 bytes .../awesome/themes/ghost/layouts/centerfair.png | Bin 0 -> 1012 bytes .../awesome/themes/ghost/layouts/centerwork.png | Bin 0 -> 1002 bytes .../.config/awesome/themes/ghost/layouts/cpu.png | Bin 0 -> 995 bytes .../awesome/themes/ghost/layouts/dwindle.png | Bin 0 -> 1003 bytes .../.config/awesome/themes/ghost/layouts/fairh.png | Bin 0 -> 993 bytes .../.config/awesome/themes/ghost/layouts/fairv.png | Bin 0 -> 1015 bytes .../awesome/themes/ghost/layouts/floating.png | Bin 0 -> 987 bytes .../awesome/themes/ghost/layouts/magnifier.png | Bin 0 -> 989 bytes .../.config/awesome/themes/ghost/layouts/max.png | Bin 0 -> 1016 bytes .../awesome/themes/ghost/layouts/spiral.png | Bin 0 -> 1001 bytes .../awesome/themes/ghost/layouts/termfair.png | Bin 0 -> 972 bytes .../.config/awesome/themes/ghost/layouts/tile.png | Bin 0 -> 984 bytes .../awesome/themes/ghost/layouts/tilebottom.png | Bin 0 -> 993 bytes .../awesome/themes/ghost/layouts/tileleft.png | Bin 0 -> 988 bytes .../awesome/themes/ghost/layouts/tiletop.png | Bin 0 -> 994 bytes awesome/.config/awesome/themes/ghost/theme.lua | 93 + awesome/.xinitrc | 78 + awesome/.zprofile | 1 + awesome/preview.png | Bin 0 -> 105430 bytes code/fun/2spooky.lua | 79 - code/fun/colors | 13 - code/fun/colorscheme | 27 - code/fun/dna | 46 - code/fun/ghosts | 31 - code/fun/invaders | 54 - code/fun/pacman | 37 - code/fun/pipes | 122 - code/fun/pipesx | 193 -- code/fun/rain | 100 - code/fun/screenfetch | 1378 -------- code/fun/skull | 70 - code/fun/slendy | 35 - code/sys/gfx-intel.sh | 9 - code/sys/gfx-off.sh | 9 - code/sys/gfx-on.sh | 9 - code/sys/gfx-radeon.sh | 9 - code/sys/gfx-status.sh | 39 - code/sys/hash-compare.sh | 17 - code/sys/toggle-touchpad.sh | 20 - compton/.config/compton.conf | 45 + fonts/.fonts.conf | 63 + fonts/.fonts/gohu-README | 13 + fonts/.fonts/gohufont-11.pcf.gz | Bin 0 -> 3826 bytes fonts/.fonts/gohufont-11b.pcf.gz | Bin 0 -> 3886 bytes fonts/.fonts/gohufont-14.pcf.gz | Bin 0 -> 4356 bytes fonts/.fonts/gohufont-14b.pcf.gz | Bin 0 -> 4322 bytes fonts/.fonts/gohufont-uni-11.pcf.gz | Bin 0 -> 24054 bytes fonts/.fonts/gohufont-uni-11b.pcf.gz | Bin 0 -> 24147 bytes fonts/.fonts/gohufont-uni-14.pcf.gz | Bin 0 -> 16786 bytes fonts/.fonts/gohufont-uni-14b.pcf.gz | Bin 0 -> 16630 bytes fun/code/fun/2spooky.lua | 79 + fun/code/fun/colors | 13 + fun/code/fun/colorscheme | 27 + fun/code/fun/dna | 46 + fun/code/fun/ghosts | 31 + fun/code/fun/invaders | 54 + fun/code/fun/pacman | 37 + fun/code/fun/pipes | 122 + fun/code/fun/pipesx | 193 ++ fun/code/fun/rain | 100 + fun/code/fun/ryu | 188 ++ fun/code/fun/screenfetch | 1378 ++++++++ fun/code/fun/skull | 70 + fun/code/fun/slendy | 35 + git/.gitconfig | 13 + herbstluftwm/.config/herbstluftwm/autostart | 187 ++ herbstluftwm/.config/herbstluftwm/conkypanel | 24 + herbstluftwm/.config/herbstluftwm/panel.sh | 267 ++ herbstluftwm/.xinitrc | 75 + herbstluftwm/.zprofile | 1 + herbstluftwm/code/sys/herbstluftwm-add-gap | 9 + herbstluftwm/code/sys/herbstluftwm-remove-gap | 11 + herbstluftwm/preview.png | Bin 0 -> 98437 bytes mc/.config/mc/ini | 162 + mc/.config/mc/panels.ini | 15 + mpd/.config/mpd/mpd.conf | 437 +++ mpd/.config/mpd/mpd.db | 1 + mpd/.config/mpd/mpd.fifo | 0 mpd/.config/mpd/mpd.log | 1 + mpd/.config/mpd/mpd.pid | 1 + mpd/.config/mpd/mpdstate | 1 + mpd/.config/mpd/playlists/all.m3u | 145 + mpd/.config/mpd/sticker.sql | Bin 0 -> 3072 bytes mpd/.config/mpd/tag_cache | 1483 +++++++++ ncmpcpp/.ncmpcpp/config | 75 + preview.png | Bin 105430 -> 0 bytes ryu-login/etc/issue | 50 + stalonetray/.stalonetrayrc | 138 + .../Packages/Default/Preferences.sublime-settings | 336 ++ .../Packages/User/Preferences.sublime-settings | 22 + .../Packages/Default/Preferences.sublime-settings | 336 ++ .../Packages/User/Preferences.sublime-settings | 22 + sys/code/sys/gfx-intel | 9 + sys/code/sys/gfx-off | 9 + sys/code/sys/gfx-on | 9 + sys/code/sys/gfx-radeon | 9 + sys/code/sys/gfx-status | 39 + sys/code/sys/gitio | 6 + sys/code/sys/goodbye | 37 + sys/code/sys/hash-compare | 17 + sys/code/sys/info | 3414 ++++++++++++++++++++ sys/code/sys/toggle-touchpad | 20 + themes/.themes/cathexis/gtk-2.0/apps/banshee.rc | 23 + themes/.themes/cathexis/gtk-2.0/apps/chromium.rc | 40 + themes/.themes/cathexis/gtk-2.0/apps/ff.rc | 43 + .../cathexis/gtk-2.0/apps/gnome-terminal.rc | 52 + themes/.themes/cathexis/gtk-2.0/apps/nautilus.rc | 11 + themes/.themes/cathexis/gtk-2.0/gtkrc | 749 +++++ themes/.themes/cathexis/gtk-3.0/apps/baobab.css | 16 + themes/.themes/cathexis/gtk-3.0/apps/gedit.css | 40 + .../cathexis/gtk-3.0/apps/gnome-applications.css | 558 ++++ .../.themes/cathexis/gtk-3.0/apps/gnome-extras.css | 6 + .../.themes/cathexis/gtk-3.0/apps/gnome-panel.css | 99 + .../cathexis/gtk-3.0/apps/gnome-terminal.css | 114 + themes/.themes/cathexis/gtk-3.0/apps/nautilus.css | 73 + .../cathexis/gtk-3.0/apps/unity-greeter.css | 65 + themes/.themes/cathexis/gtk-3.0/apps/unity.css | 32 + themes/.themes/cathexis/gtk-3.0/assets/.directory | 5 + .../cathexis/gtk-3.0/assets/backdrop-button.png | Bin 0 -> 340 bytes .../gtk-3.0/assets/backdrop-check-mixed-alt.png | Bin 0 -> 468 bytes .../assets/backdrop-check-mixed-disabled-alt.png | Bin 0 -> 290 bytes .../assets/backdrop-check-mixed-disabled.png | Bin 0 -> 301 bytes .../assets/backdrop-check-mixed-hover-alt.png | Bin 0 -> 499 bytes .../gtk-3.0/assets/backdrop-check-mixed-hover.png | Bin 0 -> 599 bytes .../gtk-3.0/assets/backdrop-check-mixed.png | Bin 0 -> 544 bytes .../gtk-3.0/assets/backdrop-check-selected-alt.png | Bin 0 -> 608 bytes .../backdrop-check-selected-disabled-alt.png | Bin 0 -> 420 bytes .../assets/backdrop-check-selected-disabled.png | Bin 0 -> 420 bytes .../assets/backdrop-check-selected-hover-alt.png | Bin 0 -> 639 bytes .../assets/backdrop-check-selected-hover.png | Bin 0 -> 753 bytes .../gtk-3.0/assets/backdrop-check-selected.png | Bin 0 -> 698 bytes .../assets/backdrop-check-unselected-alt.png | Bin 0 -> 498 bytes .../backdrop-check-unselected-disabled-alt.png | Bin 0 -> 295 bytes .../assets/backdrop-check-unselected-disabled.png | Bin 0 -> 299 bytes .../assets/backdrop-check-unselected-hover-alt.png | Bin 0 -> 445 bytes .../assets/backdrop-check-unselected-hover.png | Bin 0 -> 531 bytes .../gtk-3.0/assets/backdrop-check-unselected.png | Bin 0 -> 599 bytes .../assets/backdrop-combobox-button-disabled.png | Bin 0 -> 361 bytes .../gtk-3.0/assets/backdrop-combobox-button.png | Bin 0 -> 495 bytes .../assets/backdrop-combobox-entry-disabled.png | Bin 0 -> 357 bytes .../gtk-3.0/assets/backdrop-combobox-entry.png | Bin 0 -> 466 bytes .../gtk-3.0/assets/backdrop-entry-disabled.png | Bin 0 -> 527 bytes .../cathexis/gtk-3.0/assets/backdrop-entry.png | Bin 0 -> 675 bytes .../gtk-3.0/assets/backdrop-radio-mixed-alt.png | Bin 0 -> 455 bytes .../assets/backdrop-radio-mixed-disabled-alt.png | Bin 0 -> 285 bytes .../assets/backdrop-radio-mixed-disabled.png | Bin 0 -> 332 bytes .../assets/backdrop-radio-mixed-hover-alt.png | Bin 0 -> 497 bytes .../gtk-3.0/assets/backdrop-radio-mixed-hover.png | Bin 0 -> 598 bytes .../gtk-3.0/assets/backdrop-radio-mixed.png | Bin 0 -> 528 bytes .../gtk-3.0/assets/backdrop-radio-selected-alt.png | Bin 0 -> 524 bytes .../backdrop-radio-selected-disabled-alt.png | Bin 0 -> 304 bytes .../assets/backdrop-radio-selected-disabled.png | Bin 0 -> 355 bytes .../assets/backdrop-radio-selected-hover-alt.png | Bin 0 -> 554 bytes .../assets/backdrop-radio-selected-hover.png | Bin 0 -> 658 bytes .../gtk-3.0/assets/backdrop-radio-selected.png | Bin 0 -> 609 bytes .../assets/backdrop-radio-unselected-alt.png | Bin 0 -> 495 bytes .../backdrop-radio-unselected-disabled-alt.png | Bin 0 -> 323 bytes .../assets/backdrop-radio-unselected-disabled.png | Bin 0 -> 367 bytes .../assets/backdrop-radio-unselected-hover-alt.png | Bin 0 -> 455 bytes .../assets/backdrop-radio-unselected-hover.png | Bin 0 -> 530 bytes .../gtk-3.0/assets/backdrop-radio-unselected.png | Bin 0 -> 598 bytes .../.themes/cathexis/gtk-3.0/assets/bg-sep-h.png | Bin 0 -> 553 bytes .../.themes/cathexis/gtk-3.0/assets/bg-sep-v.png | Bin 0 -> 564 bytes themes/.themes/cathexis/gtk-3.0/assets/bgframe.png | Bin 0 -> 556 bytes .../gtk-3.0/assets/button-active-backdrop.png | Bin 0 -> 384 bytes .../gtk-3.0/assets/button-active-focus.png | Bin 0 -> 484 bytes .../cathexis/gtk-3.0/assets/button-active.png | Bin 0 -> 374 bytes .../cathexis/gtk-3.0/assets/button-default.png | Bin 0 -> 426 bytes themes/.themes/cathexis/gtk-3.0/assets/button.png | Bin 0 -> 360 bytes .../.themes/cathexis/gtk-3.0/assets/button_bg.png | Bin 0 -> 413 bytes .../cathexis/gtk-3.0/assets/check-active.png | Bin 0 -> 785 bytes .../cathexis/gtk-3.0/assets/check-disable.png | Bin 0 -> 853 bytes .../gtk-3.0/assets/check-menuitem-dark.png | Bin 0 -> 326 bytes .../gtk-3.0/assets/check-menuitem-unselected.png | Bin 0 -> 91 bytes .../cathexis/gtk-3.0/assets/check-menuitem.-png | Bin 0 -> 227 bytes .../cathexis/gtk-3.0/assets/check-menuitem.png | Bin 0 -> 227 bytes .../cathexis/gtk-3.0/assets/check-mixed-alt.png | Bin 0 -> 523 bytes .../gtk-3.0/assets/check-mixed-disable.svg | 81 + .../gtk-3.0/assets/check-mixed-disabled-alt.png | Bin 0 -> 294 bytes .../gtk-3.0/assets/check-mixed-disabled.png | Bin 0 -> 306 bytes .../gtk-3.0/assets/check-mixed-hover-alt.png | Bin 0 -> 548 bytes .../cathexis/gtk-3.0/assets/check-mixed-hover.png | Bin 0 -> 680 bytes .../cathexis/gtk-3.0/assets/check-mixed.png | Bin 0 -> 591 bytes .../cathexis/gtk-3.0/assets/check-mixed.svg | 81 + .../cathexis/gtk-3.0/assets/check-selected-alt.png | Bin 0 -> 726 bytes .../gtk-3.0/assets/check-selected-disabled-alt.png | Bin 0 -> 421 bytes .../gtk-3.0/assets/check-selected-disabled.png | Bin 0 -> 422 bytes .../gtk-3.0/assets/check-selected-hover-alt.png | Bin 0 -> 754 bytes .../gtk-3.0/assets/check-selected-hover.png | Bin 0 -> 907 bytes .../cathexis/gtk-3.0/assets/check-selected.png | Bin 0 -> 812 bytes .../gtk-3.0/assets/check-unselected-alt.png | Bin 0 -> 498 bytes .../assets/check-unselected-disabled-alt.png | Bin 0 -> 295 bytes .../gtk-3.0/assets/check-unselected-disabled.png | Bin 0 -> 299 bytes .../gtk-3.0/assets/check-unselected-hover-alt.png | Bin 0 -> 445 bytes .../gtk-3.0/assets/check-unselected-hover.png | Bin 0 -> 531 bytes .../cathexis/gtk-3.0/assets/check-unselected.png | Bin 0 -> 599 bytes .../.themes/cathexis/gtk-3.0/assets/circular.png | Bin 0 -> 480570 bytes .../cathexis/gtk-3.0/assets/combobox-active.svg | 308 ++ .../gtk-3.0/assets/combobox-arrow-disabled.png | Bin 0 -> 241 bytes .../gtk-3.0/assets/combobox-arrow-disabled.svg | 318 ++ .../cathexis/gtk-3.0/assets/combobox-arrow.png | Bin 0 -> 241 bytes .../cathexis/gtk-3.0/assets/combobox-arrow.svg | 318 ++ .../gtk-3.0/assets/combobox-button-disabled.png | Bin 0 -> 375 bytes .../gtk-3.0/assets/combobox-button-focused.png | Bin 0 -> 624 bytes .../assets/combobox-button-pressed-focused.png | Bin 0 -> 588 bytes .../cathexis/gtk-3.0/assets/combobox-button.png | Bin 0 -> 544 bytes .../gtk-3.0/assets/combobox-entry-active.svg | 302 ++ .../gtk-3.0/assets/combobox-entry-disabled.png | Bin 0 -> 372 bytes .../gtk-3.0/assets/combobox-entry-focused.png | Bin 0 -> 580 bytes .../cathexis/gtk-3.0/assets/combobox-entry.png | Bin 0 -> 494 bytes .../cathexis/gtk-3.0/assets/combobox-entry.svg | 302 ++ .../gtk-3.0/assets/combobox-insensitive.svg | 308 ++ .../.themes/cathexis/gtk-3.0/assets/combobox.svg | 308 ++ .../cathexis/gtk-3.0/assets/entry-disabled.png | Bin 0 -> 579 bytes .../cathexis/gtk-3.0/assets/entry-focus.svg | 231 ++ .../cathexis/gtk-3.0/assets/entry-focused.png | Bin 0 -> 977 bytes .../cathexis/gtk-3.0/assets/entry-insensitive.svg | 240 ++ .../gtk-3.0/assets/entry-toolbar-focused.png | Bin 0 -> 890 bytes .../cathexis/gtk-3.0/assets/entry-toolbar.png | Bin 0 -> 733 bytes themes/.themes/cathexis/gtk-3.0/assets/entry.png | Bin 0 -> 695 bytes themes/.themes/cathexis/gtk-3.0/assets/entry.svg | 240 ++ themes/.themes/cathexis/gtk-3.0/assets/frame.png | Bin 0 -> 673 bytes themes/.themes/cathexis/gtk-3.0/assets/frame.svg | 133 + .../cathexis/gtk-3.0/assets/load-animate.gif | Bin 0 -> 3355 bytes .../cathexis/gtk-3.0/assets/menubaritem.png | Bin 0 -> 377 bytes .../cathexis/gtk-3.0/assets/metal-backdrop.png | Bin 0 -> 60176 bytes .../cathexis/gtk-3.0/assets/metal-backdrop2.png | Bin 0 -> 1670 bytes themes/.themes/cathexis/gtk-3.0/assets/metal.png | Bin 0 -> 63299 bytes .../gtk-3.0/assets/notebook-tab-active.png | Bin 0 -> 165 bytes .../gtk-3.0/assets/progressbar-disable.svg | 146 + .../progressbar-horizontal-fill-backdrop.png | Bin 0 -> 288 bytes .../gtk-3.0/assets/progressbar-horizontal-fill.png | Bin 0 -> 360 bytes .../assets/progressbar-horizontal-trough.png | Bin 0 -> 334 bytes .../gtk-3.0/assets/progressbar-v-disable.svg | 154 + .../cathexis/gtk-3.0/assets/progressbar-v.svg | 158 + .../assets/progressbar-vertical-fill-backdrop.png | Bin 0 -> 287 bytes .../gtk-3.0/assets/progressbar-vertical-fill.png | Bin 0 -> 376 bytes .../gtk-3.0/assets/progressbar-vertical-trough.png | Bin 0 -> 295 bytes .../cathexis/gtk-3.0/assets/progressbar.png | Bin 0 -> 757 bytes .../cathexis/gtk-3.0/assets/progressbar.svg | 146 + .../assets/radiance-entry-toolbar-focused.png | Bin 0 -> 915 bytes .../gtk-3.0/assets/radiance-entry-toolbar.png | Bin 0 -> 794 bytes .../gtk-3.0/assets/radiance-menubaritem.png | Bin 0 -> 403 bytes .../cathexis/gtk-3.0/assets/radio-active.png | Bin 0 -> 701 bytes .../cathexis/gtk-3.0/assets/radio-disable.png | Bin 0 -> 828 bytes .../gtk-3.0/assets/radio-menuitem-dark.png | Bin 0 -> 141 bytes .../cathexis/gtk-3.0/assets/radio-menuitem.png | Bin 0 -> 141 bytes .../cathexis/gtk-3.0/assets/radio-mixed-alt.png | Bin 0 -> 489 bytes .../gtk-3.0/assets/radio-mixed-disabled-alt.png | Bin 0 -> 285 bytes .../gtk-3.0/assets/radio-mixed-disabled.png | Bin 0 -> 332 bytes .../gtk-3.0/assets/radio-mixed-hover-alt.png | Bin 0 -> 546 bytes .../cathexis/gtk-3.0/assets/radio-mixed-hover.png | Bin 0 -> 652 bytes .../cathexis/gtk-3.0/assets/radio-mixed.png | Bin 0 -> 574 bytes .../cathexis/gtk-3.0/assets/radio-selected-alt.png | Bin 0 -> 555 bytes .../gtk-3.0/assets/radio-selected-disabled-alt.png | Bin 0 -> 304 bytes .../gtk-3.0/assets/radio-selected-disabled.png | Bin 0 -> 355 bytes .../gtk-3.0/assets/radio-selected-hover-alt.png | Bin 0 -> 609 bytes .../gtk-3.0/assets/radio-selected-hover.png | Bin 0 -> 743 bytes .../cathexis/gtk-3.0/assets/radio-selected.png | Bin 0 -> 669 bytes .../gtk-3.0/assets/radio-unselected-alt.png | Bin 0 -> 495 bytes .../assets/radio-unselected-disabled-alt.png | Bin 0 -> 323 bytes .../gtk-3.0/assets/radio-unselected-disabled.png | Bin 0 -> 367 bytes .../gtk-3.0/assets/radio-unselected-hover-alt.png | Bin 0 -> 455 bytes .../gtk-3.0/assets/radio-unselected-hover.png | Bin 0 -> 530 bytes .../cathexis/gtk-3.0/assets/radio-unselected.png | Bin 0 -> 598 bytes .../assets/scale-horizontal-fill-backdrop.png | Bin 0 -> 156 bytes .../assets/scale-horizontal-fill-disabled.png | Bin 0 -> 217 bytes .../gtk-3.0/assets/scale-horizontal-fill.png | Bin 0 -> 256 bytes .../assets/scale-horizontal-trough-backdrop.png | Bin 0 -> 153 bytes .../assets/scale-horizontal-trough-disabled.png | Bin 0 -> 249 bytes .../gtk-3.0/assets/scale-horizontal-trough.png | Bin 0 -> 249 bytes .../gtk-3.0/assets/scale-slider-disable.png | Bin 0 -> 1260 bytes .../cathexis/gtk-3.0/assets/scale-slider-focus.png | Bin 0 -> 2340 bytes .../cathexis/gtk-3.0/assets/scale-slider-hover.png | Bin 0 -> 1764 bytes .../cathexis/gtk-3.0/assets/scale-slider.png | Bin 0 -> 1744 bytes .../gtk-3.0/assets/scale-trough-disable-v.png | Bin 0 -> 510 bytes .../gtk-3.0/assets/scale-trough-disable.png | Bin 0 -> 511 bytes .../assets/scale-trough-highlight-left-v.png | Bin 0 -> 473 bytes .../gtk-3.0/assets/scale-trough-highlight-left.png | Bin 0 -> 465 bytes .../cathexis/gtk-3.0/assets/scale-trough-v.png | Bin 0 -> 500 bytes .../cathexis/gtk-3.0/assets/scale-trough.png | Bin 0 -> 518 bytes .../assets/scale-vertical-fill-backdrop.png | Bin 0 -> 193 bytes .../assets/scale-vertical-fill-disabled.png | Bin 0 -> 213 bytes .../gtk-3.0/assets/scale-vertical-fill.png | Bin 0 -> 257 bytes .../assets/scale-vertical-trough-backdrop.png | Bin 0 -> 163 bytes .../assets/scale-vertical-trough-disabled.png | Bin 0 -> 243 bytes .../gtk-3.0/assets/scale-vertical-trough.png | Bin 0 -> 246 bytes .../cathexis/gtk-3.0/assets/sidebar-dark.png | Bin 0 -> 492 bytes .../gtk-3.0/assets/switch-button-off-disabled.png | Bin 0 -> 458 bytes .../cathexis/gtk-3.0/assets/switch-button-off.png | Bin 0 -> 819 bytes .../gtk-3.0/assets/switch-button-on-disabled.png | Bin 0 -> 460 bytes .../cathexis/gtk-3.0/assets/switch-button-on.png | Bin 0 -> 876 bytes .../.themes/cathexis/gtk-3.0/assets/switch-off.png | Bin 0 -> 1546 bytes .../.themes/cathexis/gtk-3.0/assets/switch-on.png | Bin 0 -> 1507 bytes .../gtk-3.0/assets/switch-trough-disabled.png | Bin 0 -> 503 bytes .../gtk-3.0/assets/switch-trough-focused.png | Bin 0 -> 922 bytes .../cathexis/gtk-3.0/assets/switch-trough-off.png | Bin 0 -> 769 bytes .../cathexis/gtk-3.0/assets/switch-trough-on.png | Bin 0 -> 823 bytes .../gtk-3.0/assets/switch-trough-toolbar-off.png | Bin 0 -> 817 bytes .../gtk-3.0/assets/switch-trough-toolbar-on.png | Bin 0 -> 830 bytes themes/.themes/cathexis/gtk-3.0/assets/toolbar.png | Bin 0 -> 468 bytes .../cathexis/gtk-3.0/assets/transparent.png | Bin 0 -> 463 bytes .../.themes/cathexis/gtk-3.0/assets/trough-v.svg | 82 + themes/.themes/cathexis/gtk-3.0/assets/trough.svg | 81 + themes/.themes/cathexis/gtk-3.0/gtk-main.css | 51 + themes/.themes/cathexis/gtk-3.0/gtk-plane.css | 1108 +++++++ .../cathexis/gtk-3.0/gtk-widgets-assets.css | 10 + .../cathexis/gtk-3.0/gtk-widgets-borders.css | 0 themes/.themes/cathexis/gtk-3.0/gtk-widgets.css | 2149 ++++++++++++ themes/.themes/cathexis/gtk-3.0/gtk.css | 1 + themes/.themes/cathexis/gtk-3.0/settings.ini | 3 + themes/.themes/cathexis/index.theme | 12 + themes/.themes/cathexis/xfce-notify-4.0/gtkrc | 23 + urxvt/.Xdefaults | 61 + vim/.vim/.netrwhist | 1 + vim/.vim/.vim/.vimrc | 46 + vim/.vim/.vim/.zsh/colored-man-pages.zsh | 8 + vim/.vim/.vim/.zsh/functions/chpwd_update_git_vars | 1 + .../.vim/.zsh/functions/precmd_update_git_vars | 4 + .../.vim/.zsh/functions/preexec_update_git_vars | 5 + vim/.vim/.vim/.zsh/functions/prompt_git_info | 21 + .../.vim/.zsh/functions/update_current_git_vars | 31 + vim/.vim/.vim/.zshrc | 144 + vim/.vim/autoload/pathogen.vim | 344 ++ vim/.vim/bundle/colorizer/Makefile | 12 + vim/.vim/bundle/colorizer/README.mkd | 7 + vim/.vim/bundle/colorizer/autoload/colorizer.vim | 377 +++ vim/.vim/bundle/colorizer/plugin/colorizer.vim | 62 + vim/.vim/bundle/colorizer/screenshot.png | Bin 0 -> 38279 bytes vim/.vim/bundle/indentLine/.gitattributes | 22 + vim/.vim/bundle/indentLine/.gitignore | 163 + vim/.vim/bundle/indentLine/README.md | 34 + .../bundle/indentLine/after/plugin/indentLine.vim | 166 + vim/.vim/bundle/indentLine/doc/indentLine.txt | 143 + vim/.vim/bundle/vim-airline/.gitignore | 3 + vim/.vim/bundle/vim-airline/.travis.yml | 4 + vim/.vim/bundle/vim-airline/Gemfile | 2 + vim/.vim/bundle/vim-airline/LICENSE | 21 + vim/.vim/bundle/vim-airline/README.md | 210 ++ vim/.vim/bundle/vim-airline/Rakefile | 14 + vim/.vim/bundle/vim-airline/autoload/airline.vim | 170 + .../vim-airline/autoload/airline/builder.vim | 74 + .../bundle/vim-airline/autoload/airline/debug.vim | 50 + .../vim-airline/autoload/airline/deprecation.vim | 32 + .../vim-airline/autoload/airline/extensions.vim | 234 ++ .../autoload/airline/extensions/branch.vim | 108 + .../autoload/airline/extensions/bufferline.vim | 23 + .../autoload/airline/extensions/commandt.vim | 16 + .../autoload/airline/extensions/csv.vim | 31 + .../autoload/airline/extensions/ctrlp.vim | 77 + .../autoload/airline/extensions/default.vim | 77 + .../autoload/airline/extensions/eclim.vim | 41 + .../autoload/airline/extensions/example.vim | 54 + .../autoload/airline/extensions/hunks.vim | 67 + .../autoload/airline/extensions/netrw.vim | 32 + .../autoload/airline/extensions/nrrwrgn.vim | 24 + .../autoload/airline/extensions/promptline.vim | 33 + .../autoload/airline/extensions/quickfix.vim | 37 + .../autoload/airline/extensions/syntastic.vim | 19 + .../autoload/airline/extensions/tabline.vim | 278 ++ .../airline/extensions/tabline/default.vim | 35 + .../airline/extensions/tabline/unique_tail.vim | 27 + .../extensions/tabline/unique_tail_improved.vim | 89 + .../autoload/airline/extensions/tagbar.vim | 45 + .../autoload/airline/extensions/tmuxline.vim | 26 + .../autoload/airline/extensions/undotree.vim | 27 + .../autoload/airline/extensions/unite.vim | 23 + .../autoload/airline/extensions/virtualenv.vim | 20 + .../autoload/airline/extensions/whitespace.vim | 103 + .../vim-airline/autoload/airline/highlighter.vim | 156 + .../bundle/vim-airline/autoload/airline/init.vim | 113 + .../bundle/vim-airline/autoload/airline/parts.vim | 79 + .../vim-airline/autoload/airline/section.vim | 73 + .../bundle/vim-airline/autoload/airline/themes.vim | 67 + .../autoload/airline/themes/badwolf.vim | 52 + .../vim-airline/autoload/airline/themes/base16.vim | 107 + .../autoload/airline/themes/bubblegum.vim | 62 + .../vim-airline/autoload/airline/themes/dark.vim | 102 + .../vim-airline/autoload/airline/themes/hybrid.vim | 58 + .../autoload/airline/themes/jellybeans.vim | 52 + .../vim-airline/autoload/airline/themes/kalisi.vim | 57 + .../vim-airline/autoload/airline/themes/kolor.vim | 59 + .../autoload/airline/themes/laederon.vim | 62 + .../vim-airline/autoload/airline/themes/light.vim | 45 + .../vim-airline/autoload/airline/themes/lucius.vim | 56 + .../vim-airline/autoload/airline/themes/luna.vim | 92 + .../autoload/airline/themes/molokai.vim | 65 + .../autoload/airline/themes/monochrome.vim | 15 + .../vim-airline/autoload/airline/themes/murmur.vim | 46 + .../autoload/airline/themes/powerlineish.vim | 46 + .../vim-airline/autoload/airline/themes/serene.vim | 41 + .../vim-airline/autoload/airline/themes/simple.vim | 46 + .../vim-airline/autoload/airline/themes/sol.vim | 90 + .../autoload/airline/themes/solarized.vim | 176 + .../autoload/airline/themes/tomorrow.vim | 44 + .../vim-airline/autoload/airline/themes/ubaryd.vim | 64 + .../autoload/airline/themes/understated.vim | 43 + .../vim-airline/autoload/airline/themes/wombat.vim | 90 + .../autoload/airline/themes/zenburn.vim | 44 + .../bundle/vim-airline/autoload/airline/util.vim | 64 + vim/.vim/bundle/vim-airline/doc/airline.txt | 752 +++++ vim/.vim/bundle/vim-airline/plugin/airline.vim | 109 + vim/.vim/bundle/vim-airline/t/airline.vim | 87 + vim/.vim/bundle/vim-airline/t/builder.vim | 80 + vim/.vim/bundle/vim-airline/t/commands.vim | 33 + .../bundle/vim-airline/t/extensions_default.vim | 32 + vim/.vim/bundle/vim-airline/t/highlighter.vim | 21 + vim/.vim/bundle/vim-airline/t/init.vim | 77 + vim/.vim/bundle/vim-airline/t/parts.vim | 39 + vim/.vim/bundle/vim-airline/t/section.vim | 76 + vim/.vim/bundle/vim-airline/t/themes.vim | 68 + vim/.vim/bundle/vim-airline/t/util.vim | 54 + vim/.vim/bundle/vim-fugitive/.gitignore | 1 + vim/.vim/bundle/vim-fugitive/CONTRIBUTING.markdown | 18 + vim/.vim/bundle/vim-fugitive/README.markdown | 120 + vim/.vim/bundle/vim-fugitive/doc/fugitive.txt | 319 ++ vim/.vim/bundle/vim-fugitive/plugin/fugitive.vim | 2624 +++++++++++++++ vim/.vim/bundle/vim-startify/.gitignore | 11 + vim/.vim/bundle/vim-startify/CONTRIBUTING.md | 28 + vim/.vim/bundle/vim-startify/LICENSE | 20 + vim/.vim/bundle/vim-startify/README.md | 173 + vim/.vim/bundle/vim-startify/startify.png | Bin 0 -> 80279 bytes vim/.vim/colors/monokai.vim | 107 + vim/.vimrc | 46 + zsh-root/.zsh/colored-man-pages.zsh | 8 + zsh-root/.zsh/functions/chpwd_update_git_vars | 1 + zsh-root/.zsh/functions/precmd_update_git_vars | 4 + zsh-root/.zsh/functions/preexec_update_git_vars | 5 + zsh-root/.zsh/functions/prompt_git_info | 21 + zsh-root/.zsh/functions/update_current_git_vars | 31 + zsh-root/.zshrc | 168 + zsh/.zsh/colored-man-pages.zsh | 8 + zsh/.zsh/functions/chpwd_update_git_vars | 1 + zsh/.zsh/functions/precmd_update_git_vars | 4 + zsh/.zsh/functions/preexec_update_git_vars | 5 + zsh/.zsh/functions/prompt_git_info | 21 + zsh/.zsh/functions/update_current_git_vars | 31 + zsh/.zshrc | 168 + 831 files changed, 35980 insertions(+), 23176 deletions(-) delete mode 100644 .Xdefaults delete mode 100644 .config/.udisk-glue.conf delete mode 100644 .config/awesome/config.lua delete mode 100644 .config/awesome/lain/README.rst delete mode 100644 .config/awesome/lain/helpers.lua delete mode 100644 .config/awesome/lain/icons/cal/white/1.png delete mode 100644 .config/awesome/lain/icons/cal/white/10.png delete mode 100644 .config/awesome/lain/icons/cal/white/11.png delete mode 100644 .config/awesome/lain/icons/cal/white/12.png delete mode 100644 .config/awesome/lain/icons/cal/white/13.png delete mode 100644 .config/awesome/lain/icons/cal/white/14.png delete mode 100644 .config/awesome/lain/icons/cal/white/15.png delete mode 100644 .config/awesome/lain/icons/cal/white/16.png delete mode 100644 .config/awesome/lain/icons/cal/white/17.png delete mode 100644 .config/awesome/lain/icons/cal/white/18.png delete mode 100644 .config/awesome/lain/icons/cal/white/19.png delete mode 100644 .config/awesome/lain/icons/cal/white/2.png delete mode 100644 .config/awesome/lain/icons/cal/white/20.png delete mode 100644 .config/awesome/lain/icons/cal/white/21.png delete mode 100644 .config/awesome/lain/icons/cal/white/22.png delete mode 100644 .config/awesome/lain/icons/cal/white/23.png delete mode 100644 .config/awesome/lain/icons/cal/white/24.png delete mode 100644 .config/awesome/lain/icons/cal/white/25.png delete mode 100644 .config/awesome/lain/icons/cal/white/26.png delete mode 100644 .config/awesome/lain/icons/cal/white/27.png delete mode 100644 .config/awesome/lain/icons/cal/white/28.png delete mode 100644 .config/awesome/lain/icons/cal/white/29.png delete mode 100644 .config/awesome/lain/icons/cal/white/3.png delete mode 100644 .config/awesome/lain/icons/cal/white/30.png delete mode 100644 .config/awesome/lain/icons/cal/white/31.png delete mode 100644 .config/awesome/lain/icons/cal/white/4.png delete mode 100644 .config/awesome/lain/icons/cal/white/5.png delete mode 100644 .config/awesome/lain/icons/cal/white/6.png delete mode 100644 .config/awesome/lain/icons/cal/white/7.png delete mode 100644 .config/awesome/lain/icons/cal/white/8.png delete mode 100644 .config/awesome/lain/icons/cal/white/9.png delete mode 100644 .config/awesome/lain/icons/layout/default/cascade.png delete mode 100644 .config/awesome/lain/icons/layout/default/cascadebrowse.png delete mode 100644 .config/awesome/lain/icons/layout/default/cascadebrowsew.png delete mode 100644 .config/awesome/lain/icons/layout/default/cascadew.png delete mode 100644 .config/awesome/lain/icons/layout/default/centerfair.png delete mode 100644 .config/awesome/lain/icons/layout/default/centerfairw.png delete mode 100644 .config/awesome/lain/icons/layout/default/centerwork.png delete mode 100644 .config/awesome/lain/icons/layout/default/centerworkw.png delete mode 100644 .config/awesome/lain/icons/layout/default/termfair.png delete mode 100644 .config/awesome/lain/icons/layout/default/termfairw.png delete mode 100644 .config/awesome/lain/icons/layout/zenburn/cascade.png delete mode 100644 .config/awesome/lain/icons/layout/zenburn/cascadebrowse.png delete mode 100644 .config/awesome/lain/icons/layout/zenburn/centerfair.png delete mode 100644 .config/awesome/lain/icons/layout/zenburn/centerwork.png delete mode 100644 .config/awesome/lain/icons/layout/zenburn/termfair.png delete mode 100644 .config/awesome/lain/icons/mail.png delete mode 100755 .config/awesome/lain/icons/no_net.png delete mode 100644 .config/awesome/lain/icons/taskwarrior/task.png delete mode 100755 .config/awesome/lain/icons/taskwarrior/tasksmall.png delete mode 100644 .config/awesome/lain/init.lua delete mode 100644 .config/awesome/lain/layout/cascade.lua delete mode 100644 .config/awesome/lain/layout/cascadetile.lua delete mode 100644 .config/awesome/lain/layout/centerfair.lua delete mode 100644 .config/awesome/lain/layout/centerwork.lua delete mode 100644 .config/awesome/lain/layout/init.lua delete mode 100644 .config/awesome/lain/layout/termfair.lua delete mode 100644 .config/awesome/lain/layout/uselessfair.lua delete mode 100644 .config/awesome/lain/layout/uselesspiral.lua delete mode 100644 .config/awesome/lain/layout/uselesstile.lua delete mode 100755 .config/awesome/lain/scripts/dfs delete mode 100755 .config/awesome/lain/scripts/mpdcover delete mode 100644 .config/awesome/lain/util/init.lua delete mode 100644 .config/awesome/lain/util/markup.lua delete mode 100644 .config/awesome/lain/widgets/alsa.lua delete mode 100644 .config/awesome/lain/widgets/alsabar.lua delete mode 100644 .config/awesome/lain/widgets/base.lua delete mode 100644 .config/awesome/lain/widgets/bat.lua delete mode 100644 .config/awesome/lain/widgets/borderbox.lua delete mode 100644 .config/awesome/lain/widgets/calendar.lua delete mode 100644 .config/awesome/lain/widgets/contrib/ccurr.lua delete mode 100644 .config/awesome/lain/widgets/contrib/init.lua delete mode 100644 .config/awesome/lain/widgets/contrib/task.lua delete mode 100644 .config/awesome/lain/widgets/contrib/tpbat/init.lua delete mode 100644 .config/awesome/lain/widgets/contrib/tpbat/smapi.lua delete mode 100644 .config/awesome/lain/widgets/cpu.lua delete mode 100644 .config/awesome/lain/widgets/fs.lua delete mode 100644 .config/awesome/lain/widgets/imap.lua delete mode 100644 .config/awesome/lain/widgets/init.lua delete mode 100644 .config/awesome/lain/widgets/maildir.lua delete mode 100644 .config/awesome/lain/widgets/mem.lua delete mode 100644 .config/awesome/lain/widgets/mpd.lua delete mode 100644 .config/awesome/lain/widgets/net.lua delete mode 100644 .config/awesome/lain/widgets/sysload.lua delete mode 100644 .config/awesome/lain/widgets/temp.lua delete mode 100755 .config/awesome/lain/widgets/yawn/icons/BlowingSnow.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/Cloudy.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/DayClear.png delete mode 120000 .config/awesome/lain/widgets/yawn/icons/DayFair.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/DayMostlyCloudy.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/DayPartlyCloudy.png delete mode 120000 .config/awesome/lain/widgets/yawn/icons/Drizzle.png delete mode 120000 .config/awesome/lain/widgets/yawn/icons/Fog.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/Foggy.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/FreezingDrizzle.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/FreezingRain.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/Hail.png delete mode 120000 .config/awesome/lain/widgets/yawn/icons/Haze.png delete mode 120000 .config/awesome/lain/widgets/yawn/icons/HeavyRain.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/HeavySnow.png delete mode 120000 .config/awesome/lain/widgets/yawn/icons/LightRain.png delete mode 120000 .config/awesome/lain/widgets/yawn/icons/LightSnow.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/LightSnowShowers.png delete mode 120000 .config/awesome/lain/widgets/yawn/icons/Mist.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/MixedRainAndHail.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/MixedRainAndSleet.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/MixedRainAndSnow.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/NightClear.png delete mode 120000 .config/awesome/lain/widgets/yawn/icons/NightFair.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/NightMostlyCloudy.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/NightPartlyCloudy.png delete mode 100644 .config/awesome/lain/widgets/yawn/icons/README.md delete mode 100755 .config/awesome/lain/widgets/yawn/icons/Rain.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/RainThunder.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/Showers.png delete mode 120000 .config/awesome/lain/widgets/yawn/icons/Sleet.png delete mode 120000 .config/awesome/lain/widgets/yawn/icons/Snow.png delete mode 120000 .config/awesome/lain/widgets/yawn/icons/SnowFlurries.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/SnowShowers.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/Sunny.png delete mode 120000 .config/awesome/lain/widgets/yawn/icons/ThunderintheVicinity.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/Wind.png delete mode 100755 .config/awesome/lain/widgets/yawn/icons/na.png delete mode 100644 .config/awesome/lain/widgets/yawn/init.lua delete mode 100644 .config/awesome/lain/widgets/yawn/localizations/it_IT delete mode 100644 .config/awesome/lain/widgets/yawn/localizations/localization_template delete mode 100755 .config/awesome/rc.lua delete mode 100644 .config/awesome/scratchdrop/README.md delete mode 100644 .config/awesome/scratchdrop/init.lua delete mode 100644 .config/awesome/themes/ghost/gfx.png delete mode 100644 .config/awesome/themes/ghost/hash.png delete mode 100644 .config/awesome/themes/ghost/icons/ac.png delete mode 100644 .config/awesome/themes/ghost/icons/battery.png delete mode 100644 .config/awesome/themes/ghost/icons/battery_empty.png delete mode 100644 .config/awesome/themes/ghost/icons/battery_low.png delete mode 100644 .config/awesome/themes/ghost/icons/black-sep.png delete mode 100644 .config/awesome/themes/ghost/icons/black.png delete mode 100644 .config/awesome/themes/ghost/icons/cpu.png delete mode 100644 .config/awesome/themes/ghost/icons/grey.png delete mode 100644 .config/awesome/themes/ghost/icons/hash1.png delete mode 100644 .config/awesome/themes/ghost/icons/hash2.png delete mode 100644 .config/awesome/themes/ghost/icons/hash3.png delete mode 100644 .config/awesome/themes/ghost/icons/hdd.png delete mode 100644 .config/awesome/themes/ghost/icons/mem.png delete mode 100644 .config/awesome/themes/ghost/icons/net.png delete mode 100644 .config/awesome/themes/ghost/icons/net_wired.png delete mode 100644 .config/awesome/themes/ghost/icons/note.png delete mode 100644 .config/awesome/themes/ghost/icons/submenu.png delete mode 100644 .config/awesome/themes/ghost/icons/temp.png delete mode 100644 .config/awesome/themes/ghost/layouts/centerfair.png delete mode 100644 .config/awesome/themes/ghost/layouts/centerwork.png delete mode 100644 .config/awesome/themes/ghost/layouts/cpu.png delete mode 100644 .config/awesome/themes/ghost/layouts/dwindle.png delete mode 100644 .config/awesome/themes/ghost/layouts/fairh.png delete mode 100644 .config/awesome/themes/ghost/layouts/fairv.png delete mode 100644 .config/awesome/themes/ghost/layouts/floating.png delete mode 100644 .config/awesome/themes/ghost/layouts/magnifier.png delete mode 100644 .config/awesome/themes/ghost/layouts/max.png delete mode 100644 .config/awesome/themes/ghost/layouts/spiral.png delete mode 100644 .config/awesome/themes/ghost/layouts/termfair.png delete mode 100644 .config/awesome/themes/ghost/layouts/tile.png delete mode 100644 .config/awesome/themes/ghost/layouts/tilebottom.png delete mode 100644 .config/awesome/themes/ghost/layouts/tileleft.png delete mode 100644 .config/awesome/themes/ghost/layouts/tiletop.png delete mode 100644 .config/awesome/themes/ghost/theme.lua delete mode 100644 .config/chromium/Default/Default/User StyleSheets/Custom.css delete mode 100644 .config/compton.conf delete mode 100644 .config/mc/ini delete mode 100644 .config/sublime-text-2/Packages/Default/Preferences.sublime-settings delete mode 100644 .config/sublime-text-2/Packages/User/Preferences.sublime-settings delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/README.md delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard.sublime-theme delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/buffer.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/buffer@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/casesens.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/casesens@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/circle.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/circle@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/close.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/close@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/context.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/context@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-closed.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-closed@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-open.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-open@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/folder.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/folder@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/highlight.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/highlight@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/regex.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/regex@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/reverse.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/reverse@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/selection.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/selection@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar-active.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar-active@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-scroll-dropdown.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-scroll-left.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-scroll-right.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/wholeword.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/wholeword@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/wrap.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/greybeard/wrap@2x.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/preview1.png delete mode 100644 .config/sublime-text-2/Packages/theme-greybeard/preview2.png delete mode 100644 .fonts.conf delete mode 100644 .fonts/gohu-README delete mode 100644 .fonts/gohufont-11.pcf.gz delete mode 100644 .fonts/gohufont-11b.pcf.gz delete mode 100644 .fonts/gohufont-14.pcf.gz delete mode 100644 .fonts/gohufont-14b.pcf.gz delete mode 100644 .fonts/gohufont-uni-11.pcf.gz delete mode 100644 .fonts/gohufont-uni-11b.pcf.gz delete mode 100644 .fonts/gohufont-uni-14.pcf.gz delete mode 100644 .fonts/gohufont-uni-14b.pcf.gz delete mode 100644 .gitconfig create mode 100644 .gitignore delete mode 100755 .mpd/mpd.conf delete mode 100755 .mpd/mpd.db delete mode 100755 .mpd/mpd.fifo delete mode 100755 .mpd/mpd.log delete mode 100644 .mpd/mpd.pid delete mode 100755 .mpd/mpdstate delete mode 100644 .mpd/playlists/placeholder.m3u delete mode 100644 .mpd/sticker.sql delete mode 100644 .mpd/tag_cache delete mode 100644 .ncmpcpp/config delete mode 100644 .vim/.netrwhist delete mode 100644 .vim/autoload/pathogen.vim delete mode 100644 .vim/bundle/colorizer/Makefile delete mode 100644 .vim/bundle/colorizer/README.mkd delete mode 100644 .vim/bundle/colorizer/autoload/colorizer.vim delete mode 100644 .vim/bundle/colorizer/plugin/colorizer.vim delete mode 100644 .vim/bundle/colorizer/screenshot.png delete mode 100644 .vim/bundle/indentLine/.gitattributes delete mode 100644 .vim/bundle/indentLine/.gitignore delete mode 100644 .vim/bundle/indentLine/README.md delete mode 100644 .vim/bundle/indentLine/after/plugin/indentLine.vim delete mode 100644 .vim/bundle/indentLine/doc/indentLine.txt delete mode 100644 .vim/bundle/vim-airline/.gitignore delete mode 100644 .vim/bundle/vim-airline/.travis.yml delete mode 100644 .vim/bundle/vim-airline/Gemfile delete mode 100644 .vim/bundle/vim-airline/LICENSE delete mode 100644 .vim/bundle/vim-airline/README.md delete mode 100644 .vim/bundle/vim-airline/Rakefile delete mode 100644 .vim/bundle/vim-airline/autoload/airline.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/builder.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/debug.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/deprecation.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/branch.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/bufferline.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/commandt.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/csv.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/ctrlp.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/default.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/eclim.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/example.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/nrrwrgn.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/promptline.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/tabline/default.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail_improved.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/tagbar.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/tmuxline.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/undotree.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/unite.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/virtualenv.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim.disable delete mode 100644 .vim/bundle/vim-airline/autoload/airline/highlighter.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/init.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/parts.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/section.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/badwolf.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/base16.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/bubblegum.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/dark.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/hybrid.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/jellybeans.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/kalisi.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/kolor.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/laederon.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/light.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/lucius.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/luna.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/molokai.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/monochrome.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/murmur.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/powerlineish.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/serene.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/simple.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/sol.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/solarized.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/tomorrow.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/ubaryd.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/understated.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/wombat.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/themes/zenburn.vim delete mode 100644 .vim/bundle/vim-airline/autoload/airline/util.vim delete mode 100644 .vim/bundle/vim-airline/doc/airline.txt delete mode 100644 .vim/bundle/vim-airline/plugin/airline.vim delete mode 100644 .vim/bundle/vim-airline/t/airline.vim delete mode 100644 .vim/bundle/vim-airline/t/builder.vim delete mode 100644 .vim/bundle/vim-airline/t/commands.vim delete mode 100644 .vim/bundle/vim-airline/t/extensions_default.vim delete mode 100644 .vim/bundle/vim-airline/t/highlighter.vim delete mode 100644 .vim/bundle/vim-airline/t/init.vim delete mode 100644 .vim/bundle/vim-airline/t/parts.vim delete mode 100644 .vim/bundle/vim-airline/t/section.vim delete mode 100644 .vim/bundle/vim-airline/t/themes.vim delete mode 100644 .vim/bundle/vim-airline/t/util.vim delete mode 100644 .vim/bundle/vim-fugitive/.gitignore delete mode 100644 .vim/bundle/vim-fugitive/CONTRIBUTING.markdown delete mode 100644 .vim/bundle/vim-fugitive/README.markdown delete mode 100644 .vim/bundle/vim-fugitive/doc/fugitive.txt delete mode 100644 .vim/bundle/vim-fugitive/plugin/fugitive.vim delete mode 100644 .vim/bundle/vim-startify/.gitignore delete mode 100644 .vim/bundle/vim-startify/CONTRIBUTING.md delete mode 100644 .vim/bundle/vim-startify/LICENSE delete mode 100644 .vim/bundle/vim-startify/README.md delete mode 100644 .vim/bundle/vim-startify/startify.png delete mode 100644 .vim/colors/monokai.vim delete mode 100644 .vimrc delete mode 100644 .xinitrc delete mode 100644 .zsh/colored-man-pages.zsh delete mode 100644 .zsh/functions/chpwd_update_git_vars delete mode 100644 .zsh/functions/precmd_update_git_vars delete mode 100644 .zsh/functions/preexec_update_git_vars delete mode 100644 .zsh/functions/prompt_git_info delete mode 100644 .zsh/functions/update_current_git_vars delete mode 100644 .zshrc create mode 100644 awesome/.config/awesome/config.lua create mode 100644 awesome/.config/awesome/lain/README.rst create mode 100644 awesome/.config/awesome/lain/helpers.lua create mode 100644 awesome/.config/awesome/lain/init.lua create mode 100644 awesome/.config/awesome/lain/layout/cascade.lua create mode 100644 awesome/.config/awesome/lain/layout/cascadetile.lua create mode 100644 awesome/.config/awesome/lain/layout/centerfair.lua create mode 100644 awesome/.config/awesome/lain/layout/centerwork.lua create mode 100644 awesome/.config/awesome/lain/layout/init.lua create mode 100644 awesome/.config/awesome/lain/layout/termfair.lua create mode 100644 awesome/.config/awesome/lain/layout/uselessfair.lua create mode 100644 awesome/.config/awesome/lain/layout/uselesspiral.lua create mode 100644 awesome/.config/awesome/lain/layout/uselesstile.lua create mode 100755 awesome/.config/awesome/lain/scripts/dfs create mode 100755 awesome/.config/awesome/lain/scripts/mpdcover create mode 100644 awesome/.config/awesome/lain/util/init.lua create mode 100644 awesome/.config/awesome/lain/util/markup.lua create mode 100644 awesome/.config/awesome/lain/widgets/alsa.lua create mode 100644 awesome/.config/awesome/lain/widgets/alsabar.lua create mode 100644 awesome/.config/awesome/lain/widgets/base.lua create mode 100644 awesome/.config/awesome/lain/widgets/bat.lua create mode 100644 awesome/.config/awesome/lain/widgets/borderbox.lua create mode 100644 awesome/.config/awesome/lain/widgets/calendar.lua create mode 100644 awesome/.config/awesome/lain/widgets/contrib/ccurr.lua create mode 100644 awesome/.config/awesome/lain/widgets/contrib/init.lua create mode 100644 awesome/.config/awesome/lain/widgets/contrib/task.lua create mode 100644 awesome/.config/awesome/lain/widgets/contrib/tpbat/init.lua create mode 100644 awesome/.config/awesome/lain/widgets/contrib/tpbat/smapi.lua create mode 100644 awesome/.config/awesome/lain/widgets/cpu.lua create mode 100644 awesome/.config/awesome/lain/widgets/fs.lua create mode 100644 awesome/.config/awesome/lain/widgets/imap.lua create mode 100644 awesome/.config/awesome/lain/widgets/init.lua create mode 100644 awesome/.config/awesome/lain/widgets/maildir.lua create mode 100644 awesome/.config/awesome/lain/widgets/mem.lua create mode 100644 awesome/.config/awesome/lain/widgets/mpd.lua create mode 100644 awesome/.config/awesome/lain/widgets/net.lua create mode 100644 awesome/.config/awesome/lain/widgets/sysload.lua create mode 100644 awesome/.config/awesome/lain/widgets/temp.lua create mode 100644 awesome/.config/awesome/lain/widgets/yawn/init.lua create mode 100644 awesome/.config/awesome/lain/widgets/yawn/localizations/it_IT create mode 100644 awesome/.config/awesome/lain/widgets/yawn/localizations/localization_template create mode 100755 awesome/.config/awesome/rc.lua create mode 100644 awesome/.config/awesome/scratchdrop/README.md create mode 100644 awesome/.config/awesome/scratchdrop/init.lua create mode 100644 awesome/.config/awesome/themes/ghost/gfx.png create mode 100644 awesome/.config/awesome/themes/ghost/hash.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/centerfair.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/centerwork.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/cpu.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/dwindle.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/fairh.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/fairv.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/floating.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/magnifier.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/max.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/spiral.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/termfair.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/tile.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/tilebottom.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/tileleft.png create mode 100644 awesome/.config/awesome/themes/ghost/layouts/tiletop.png create mode 100644 awesome/.config/awesome/themes/ghost/theme.lua create mode 100644 awesome/.xinitrc create mode 100644 awesome/.zprofile create mode 100644 awesome/preview.png delete mode 100755 code/fun/2spooky.lua delete mode 100755 code/fun/colors delete mode 100755 code/fun/colorscheme delete mode 100755 code/fun/dna delete mode 100755 code/fun/ghosts delete mode 100755 code/fun/invaders delete mode 100755 code/fun/pacman delete mode 100755 code/fun/pipes delete mode 100755 code/fun/pipesx delete mode 100755 code/fun/rain delete mode 100755 code/fun/screenfetch delete mode 100755 code/fun/skull delete mode 100755 code/fun/slendy delete mode 100755 code/sys/gfx-intel.sh delete mode 100755 code/sys/gfx-off.sh delete mode 100755 code/sys/gfx-on.sh delete mode 100755 code/sys/gfx-radeon.sh delete mode 100755 code/sys/gfx-status.sh delete mode 100644 code/sys/hash-compare.sh delete mode 100755 code/sys/toggle-touchpad.sh create mode 100644 compton/.config/compton.conf create mode 100644 fonts/.fonts.conf create mode 100644 fonts/.fonts/gohu-README create mode 100644 fonts/.fonts/gohufont-11.pcf.gz create mode 100644 fonts/.fonts/gohufont-11b.pcf.gz create mode 100644 fonts/.fonts/gohufont-14.pcf.gz create mode 100644 fonts/.fonts/gohufont-14b.pcf.gz create mode 100644 fonts/.fonts/gohufont-uni-11.pcf.gz create mode 100644 fonts/.fonts/gohufont-uni-11b.pcf.gz create mode 100644 fonts/.fonts/gohufont-uni-14.pcf.gz create mode 100644 fonts/.fonts/gohufont-uni-14b.pcf.gz create mode 100755 fun/code/fun/2spooky.lua create mode 100755 fun/code/fun/colors create mode 100755 fun/code/fun/colorscheme create mode 100755 fun/code/fun/dna create mode 100755 fun/code/fun/ghosts create mode 100755 fun/code/fun/invaders create mode 100755 fun/code/fun/pacman create mode 100755 fun/code/fun/pipes create mode 100755 fun/code/fun/pipesx create mode 100755 fun/code/fun/rain create mode 100644 fun/code/fun/ryu create mode 100755 fun/code/fun/screenfetch create mode 100755 fun/code/fun/skull create mode 100755 fun/code/fun/slendy create mode 100644 git/.gitconfig create mode 100755 herbstluftwm/.config/herbstluftwm/autostart create mode 100755 herbstluftwm/.config/herbstluftwm/conkypanel create mode 100755 herbstluftwm/.config/herbstluftwm/panel.sh create mode 100644 herbstluftwm/.xinitrc create mode 100644 herbstluftwm/.zprofile create mode 100755 herbstluftwm/code/sys/herbstluftwm-add-gap create mode 100755 herbstluftwm/code/sys/herbstluftwm-remove-gap create mode 100644 herbstluftwm/preview.png create mode 100644 mc/.config/mc/ini create mode 100644 mc/.config/mc/panels.ini create mode 100755 mpd/.config/mpd/mpd.conf create mode 100755 mpd/.config/mpd/mpd.db create mode 100755 mpd/.config/mpd/mpd.fifo create mode 100755 mpd/.config/mpd/mpd.log create mode 100644 mpd/.config/mpd/mpd.pid create mode 100755 mpd/.config/mpd/mpdstate create mode 100644 mpd/.config/mpd/playlists/all.m3u create mode 100644 mpd/.config/mpd/sticker.sql create mode 100644 mpd/.config/mpd/tag_cache create mode 100644 ncmpcpp/.ncmpcpp/config delete mode 100644 preview.png create mode 100644 ryu-login/etc/issue create mode 100644 stalonetray/.stalonetrayrc create mode 100644 sublime-root/.config/sublime-text-2/Packages/Default/Preferences.sublime-settings create mode 100644 sublime-root/.config/sublime-text-2/Packages/User/Preferences.sublime-settings create mode 100644 sublime/.config/sublime-text-2/Packages/Default/Preferences.sublime-settings create mode 100644 sublime/.config/sublime-text-2/Packages/User/Preferences.sublime-settings create mode 100755 sys/code/sys/gfx-intel create mode 100755 sys/code/sys/gfx-off create mode 100755 sys/code/sys/gfx-on create mode 100755 sys/code/sys/gfx-radeon create mode 100755 sys/code/sys/gfx-status create mode 100755 sys/code/sys/gitio create mode 100755 sys/code/sys/goodbye create mode 100755 sys/code/sys/hash-compare create mode 100755 sys/code/sys/info create mode 100755 sys/code/sys/toggle-touchpad create mode 100755 themes/.themes/cathexis/gtk-2.0/apps/banshee.rc create mode 100755 themes/.themes/cathexis/gtk-2.0/apps/chromium.rc create mode 100755 themes/.themes/cathexis/gtk-2.0/apps/ff.rc create mode 100755 themes/.themes/cathexis/gtk-2.0/apps/gnome-terminal.rc create mode 100755 themes/.themes/cathexis/gtk-2.0/apps/nautilus.rc create mode 100755 themes/.themes/cathexis/gtk-2.0/gtkrc create mode 100755 themes/.themes/cathexis/gtk-3.0/apps/baobab.css create mode 100755 themes/.themes/cathexis/gtk-3.0/apps/gedit.css create mode 100755 themes/.themes/cathexis/gtk-3.0/apps/gnome-applications.css create mode 100644 themes/.themes/cathexis/gtk-3.0/apps/gnome-extras.css create mode 100755 themes/.themes/cathexis/gtk-3.0/apps/gnome-panel.css create mode 100755 themes/.themes/cathexis/gtk-3.0/apps/gnome-terminal.css create mode 100755 themes/.themes/cathexis/gtk-3.0/apps/nautilus.css create mode 100755 themes/.themes/cathexis/gtk-3.0/apps/unity-greeter.css create mode 100755 themes/.themes/cathexis/gtk-3.0/apps/unity.css create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/.directory create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-button.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-disabled-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-hover-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-hover.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-disabled-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-hover-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-hover.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-disabled-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-hover-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-hover.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-button-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-button.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-entry-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-entry.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-entry-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-entry.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-disabled-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-hover-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-hover.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-disabled-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-hover-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-hover.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-disabled-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-hover-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-hover.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/bg-sep-h.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/bg-sep-v.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/bgframe.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/button-active-backdrop.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/button-active-focus.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/button-active.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/button-default.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/button.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/button_bg.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/check-active.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/check-disable.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-menuitem-dark.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-menuitem-unselected.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-menuitem.-png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/check-menuitem.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-mixed-alt.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/check-mixed-disable.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-mixed-disabled-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-mixed-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-mixed-hover-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-mixed-hover.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-mixed.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/check-mixed.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-selected-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-selected-disabled-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-selected-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-selected-hover-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-selected-hover.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-selected.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-unselected-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-unselected-disabled-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-unselected-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-unselected-hover-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-unselected-hover.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/check-unselected.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/circular.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/combobox-active.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow-disabled.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow-disabled.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/combobox-button-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/combobox-button-focused.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/combobox-button-pressed-focused.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/combobox-button.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/combobox-entry-active.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/combobox-entry-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/combobox-entry-focused.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/combobox-entry.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/combobox-entry.svg create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/combobox-insensitive.svg create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/combobox.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/entry-disabled.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/entry-focus.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/entry-focused.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/entry-insensitive.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/entry-toolbar-focused.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/entry-toolbar.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/entry.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/entry.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/frame.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/frame.svg create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/load-animate.gif create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/menubaritem.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/metal-backdrop.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/metal-backdrop2.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/metal.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/notebook-tab-active.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/progressbar-disable.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/progressbar-horizontal-fill-backdrop.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/progressbar-horizontal-fill.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/progressbar-horizontal-trough.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/progressbar-v-disable.svg create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/progressbar-v.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/progressbar-vertical-fill-backdrop.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/progressbar-vertical-fill.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/progressbar-vertical-trough.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/progressbar.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/progressbar.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radiance-entry-toolbar-focused.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radiance-entry-toolbar.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radiance-menubaritem.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/radio-active.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/radio-disable.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-menuitem-dark.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-menuitem.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-disabled-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-hover-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-hover.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-mixed.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-selected-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-selected-disabled-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-selected-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-selected-hover-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-selected-hover.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-selected.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-disabled-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-hover-alt.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-hover.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/radio-unselected.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-fill-backdrop.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-fill-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-fill.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-trough-backdrop.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-trough-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-trough.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/scale-slider-disable.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/scale-slider-focus.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/scale-slider-hover.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/scale-slider.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-trough-disable-v.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-trough-disable.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-trough-highlight-left-v.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-trough-highlight-left.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-trough-v.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-trough.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-fill-backdrop.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-fill-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-fill.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-trough-backdrop.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-trough-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-trough.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/sidebar-dark.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/switch-button-off-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/switch-button-off.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/switch-button-on-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/switch-button-on.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/switch-off.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/switch-on.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/switch-trough-disabled.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/switch-trough-focused.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/switch-trough-off.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/switch-trough-on.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/switch-trough-toolbar-off.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/switch-trough-toolbar-on.png create mode 100755 themes/.themes/cathexis/gtk-3.0/assets/toolbar.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/transparent.png create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/trough-v.svg create mode 100644 themes/.themes/cathexis/gtk-3.0/assets/trough.svg create mode 100755 themes/.themes/cathexis/gtk-3.0/gtk-main.css create mode 100755 themes/.themes/cathexis/gtk-3.0/gtk-plane.css create mode 100755 themes/.themes/cathexis/gtk-3.0/gtk-widgets-assets.css create mode 100755 themes/.themes/cathexis/gtk-3.0/gtk-widgets-borders.css create mode 100755 themes/.themes/cathexis/gtk-3.0/gtk-widgets.css create mode 100755 themes/.themes/cathexis/gtk-3.0/gtk.css create mode 100755 themes/.themes/cathexis/gtk-3.0/settings.ini create mode 100755 themes/.themes/cathexis/index.theme create mode 100644 themes/.themes/cathexis/xfce-notify-4.0/gtkrc create mode 100644 urxvt/.Xdefaults create mode 100644 vim/.vim/.netrwhist create mode 100644 vim/.vim/.vim/.vimrc create mode 100644 vim/.vim/.vim/.zsh/colored-man-pages.zsh create mode 100644 vim/.vim/.vim/.zsh/functions/chpwd_update_git_vars create mode 100644 vim/.vim/.vim/.zsh/functions/precmd_update_git_vars create mode 100644 vim/.vim/.vim/.zsh/functions/preexec_update_git_vars create mode 100644 vim/.vim/.vim/.zsh/functions/prompt_git_info create mode 100644 vim/.vim/.vim/.zsh/functions/update_current_git_vars create mode 100644 vim/.vim/.vim/.zshrc create mode 100644 vim/.vim/autoload/pathogen.vim create mode 100644 vim/.vim/bundle/colorizer/Makefile create mode 100644 vim/.vim/bundle/colorizer/README.mkd create mode 100644 vim/.vim/bundle/colorizer/autoload/colorizer.vim create mode 100644 vim/.vim/bundle/colorizer/plugin/colorizer.vim create mode 100644 vim/.vim/bundle/colorizer/screenshot.png create mode 100644 vim/.vim/bundle/indentLine/.gitattributes create mode 100644 vim/.vim/bundle/indentLine/.gitignore create mode 100644 vim/.vim/bundle/indentLine/README.md create mode 100644 vim/.vim/bundle/indentLine/after/plugin/indentLine.vim create mode 100644 vim/.vim/bundle/indentLine/doc/indentLine.txt create mode 100644 vim/.vim/bundle/vim-airline/.gitignore create mode 100644 vim/.vim/bundle/vim-airline/.travis.yml create mode 100644 vim/.vim/bundle/vim-airline/Gemfile create mode 100644 vim/.vim/bundle/vim-airline/LICENSE create mode 100644 vim/.vim/bundle/vim-airline/README.md create mode 100644 vim/.vim/bundle/vim-airline/Rakefile create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/builder.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/debug.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/deprecation.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/branch.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/bufferline.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/commandt.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/csv.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/ctrlp.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/eclim.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/example.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/nrrwrgn.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/promptline.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/default.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail_improved.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/tagbar.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/tmuxline.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/undotree.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/virtualenv.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/highlighter.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/init.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/parts.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/section.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/badwolf.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/base16.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/bubblegum.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/dark.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/hybrid.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/jellybeans.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/kalisi.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/kolor.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/laederon.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/light.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/lucius.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/luna.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/molokai.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/monochrome.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/murmur.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/powerlineish.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/serene.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/simple.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/sol.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/solarized.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/tomorrow.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/ubaryd.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/understated.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/wombat.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/themes/zenburn.vim create mode 100644 vim/.vim/bundle/vim-airline/autoload/airline/util.vim create mode 100644 vim/.vim/bundle/vim-airline/doc/airline.txt create mode 100644 vim/.vim/bundle/vim-airline/plugin/airline.vim create mode 100644 vim/.vim/bundle/vim-airline/t/airline.vim create mode 100644 vim/.vim/bundle/vim-airline/t/builder.vim create mode 100644 vim/.vim/bundle/vim-airline/t/commands.vim create mode 100644 vim/.vim/bundle/vim-airline/t/extensions_default.vim create mode 100644 vim/.vim/bundle/vim-airline/t/highlighter.vim create mode 100644 vim/.vim/bundle/vim-airline/t/init.vim create mode 100644 vim/.vim/bundle/vim-airline/t/parts.vim create mode 100644 vim/.vim/bundle/vim-airline/t/section.vim create mode 100644 vim/.vim/bundle/vim-airline/t/themes.vim create mode 100644 vim/.vim/bundle/vim-airline/t/util.vim create mode 100644 vim/.vim/bundle/vim-fugitive/.gitignore create mode 100644 vim/.vim/bundle/vim-fugitive/CONTRIBUTING.markdown create mode 100644 vim/.vim/bundle/vim-fugitive/README.markdown create mode 100644 vim/.vim/bundle/vim-fugitive/doc/fugitive.txt create mode 100644 vim/.vim/bundle/vim-fugitive/plugin/fugitive.vim create mode 100644 vim/.vim/bundle/vim-startify/.gitignore create mode 100644 vim/.vim/bundle/vim-startify/CONTRIBUTING.md create mode 100644 vim/.vim/bundle/vim-startify/LICENSE create mode 100644 vim/.vim/bundle/vim-startify/README.md create mode 100644 vim/.vim/bundle/vim-startify/startify.png create mode 100644 vim/.vim/colors/monokai.vim create mode 100644 vim/.vimrc create mode 100644 zsh-root/.zsh/colored-man-pages.zsh create mode 100644 zsh-root/.zsh/functions/chpwd_update_git_vars create mode 100644 zsh-root/.zsh/functions/precmd_update_git_vars create mode 100644 zsh-root/.zsh/functions/preexec_update_git_vars create mode 100644 zsh-root/.zsh/functions/prompt_git_info create mode 100644 zsh-root/.zsh/functions/update_current_git_vars create mode 100644 zsh-root/.zshrc create mode 100644 zsh/.zsh/colored-man-pages.zsh create mode 100644 zsh/.zsh/functions/chpwd_update_git_vars create mode 100644 zsh/.zsh/functions/precmd_update_git_vars create mode 100644 zsh/.zsh/functions/preexec_update_git_vars create mode 100644 zsh/.zsh/functions/prompt_git_info create mode 100644 zsh/.zsh/functions/update_current_git_vars create mode 100644 zsh/.zshrc diff --git a/.Xdefaults b/.Xdefaults deleted file mode 100644 index 4bbe068..0000000 --- a/.Xdefaults +++ /dev/null @@ -1,57 +0,0 @@ -! ██ ██ ██ ████ ██ ██ -! ░░██ ██ ░██ ░██░ ░██ ░██ -! ░░██ ██ ░██ █████ ██████ ██████ ██ ██ ░██ ██████ ██████ -! ░░███ ██████ ██░░░██░░░██░ ░░░░░░██ ░██ ░██ ░██░░░██░ ██░░░░ -! ██░██ ██░░░██░███████ ░██ ███████ ░██ ░██ ░██ ░██ ░░█████ -! ██ ░░██ ░██ ░██░██░░░░ ░██ ██░░░░██ ░██ ░██ ░██ ░██ ░░░░░██ -! ██ ░░██░░██████░░██████ ░██ ░░████████░░██████ ███ ░░██ ██████ -! ░░ ░░ ░░░░░░ ░░░░░░ ░░ ░░░░░░░░ ░░░░░░ ░░░ ░░ ░░░░░░ -! -! ▓▓▓▓▓▓▓▓▓▓ -! ░▓ author ▓ xero -! ░▓ code ▓ http://code.xero.nu/dotfiles -! ░▓ mirror ▓ http://git.io/.files -! ░▓▓▓▓▓▓▓▓▓▓ -! ░░░░░░░░░░ -! -! █▓▒░ fonts -urxvt*font: xft:gohufont:size=11:antialias=true -urxvt*boldFont: xft:gohufont:size=11:antialias=true - -! █▓▒░ interface -urxvt*scrollBar: false -urxvt*transparent: true -urxvt*shading: 15 - -! █▓▒░ mikado colors -urxvt*foreground: #f3f3f3 -urxvt*background: #121212 -urxvt*cursorColor: #f3f3f3 -urxvt*color0: #322a2c -urxvt*color8: #46423b -urxvt*color1: #a04363 -urxvt*color9: #ae837a -urxvt*color2: #9b9329 -urxvt*color10: #b4aa30 -urxvt*color3: #bf7a29 -urxvt*color11: #c7a551 -urxvt*color4: #6a8c8c -urxvt*color12: #74999e -urxvt*color5: #856774 -urxvt*color13: #9c818e -urxvt*color6: #757978 -urxvt*color14: #9fa590 -urxvt*color7: #bcbcaf -urxvt*color15: #c1c4bc -urxvt*color0: #111111 -urxvt*color8: #666666 - -! █▓▒░ clipboard -urxvt.keysym.Shift-Control-V: perl:clipboard:paste -urxvt.iso14755: False -urxvt.perl-ext-common: default,clipboard - -! █▓▒░ misc -urxvt.saveLines: 4095 -urxvt.iso14755: false -urxvt*iconFile: /home/xero/.icons/AwOkenWhite/clear/128x128/apps/terminal3.png \ No newline at end of file diff --git a/.config/.udisk-glue.conf b/.config/.udisk-glue.conf deleted file mode 100644 index b69d1dd..0000000 --- a/.config/.udisk-glue.conf +++ /dev/null @@ -1,24 +0,0 @@ -filter disks { - optical = false - partition_table = false - usage = filesystem - } - -match disks { - automount = true - post_mount_command = "echo 'naughty.notify({title = \"░░░░▒▒▒▒▓▓▓▓████ disk mount ████▓▓▓▓▒▒▒▒░░░░\", text = \"usb mounted : %device_file on %mount_point\", timeout = 10})' | awesome-client" - post_unmount_command = "echo 'naughty.notify({title = \"░░░░▒▒▒▒▓▓▓▓████ disk unmount ████▓▓▓▓▒▒▒▒░░░░\", text = \"usb unmounted : %device_file from %mount_point\", timeout = 10})' | awesome-client" - post_removal_command = "echo 'naughty.notify({title = \"░░░░▒▒▒▒▓▓▓▓████ usb disconnected ████▓▓▓▓▒▒▒▒░░░░\", text = \"usb disconnected : %device_file\", timeout = 10})' | awesome-client" - } - -filter optical { - optical = true - } - -match optical { - automount = true - automount_options = ro - post_mount_command = "echo 'naughty.notify({title = \"░░░░▒▒▒▒▓▓▓▓████ cd-rom mount ████▓▓▓▓▒▒▒▒░░░░\", text = \"cd-rom mounted : %device_file on %mount_point\", timeout = 10})' | awesome-client" - post_unmount_command = "echo 'naughty.notify({title = \"░░░░▒▒▒▒▓▓▓▓████ cd-rom unmount ████▓▓▓▓▒▒▒▒░░░░\", text = \"cd-rom unmounted : %device_file from %mount_point\", timeout = 10})' | awesome-client" - post_removal_command = "echo 'naughty.notify({title = \"░░░░▒▒▒▒▓▓▓▓████ cd-rom eject ████▓▓▓▓▒▒▒▒░░░░\", text = \"cd-rom ejected : %device_file\", timeout = 10})' | awesome-client" -} diff --git a/.config/awesome/config.lua b/.config/awesome/config.lua deleted file mode 100644 index 3737f56..0000000 --- a/.config/awesome/config.lua +++ /dev/null @@ -1,55 +0,0 @@ --- a w e s o m e ███ ██ --- ░██░ ░░ --- █████ ██████ ███████ ██████ ██ █████ --- ██░░░██ ██░░░░██░░██░░░██░░░██░ ░██ ██░░░██ --- ░██ ░░ ░██ ░██ ░██ ░██ ░██ ░██░██ ░██ --- ░██ ██░██ ░██ ░██ ░██ ░██ ░██░██ ░██ --- ░░█████ ░░██████ ███ ░██ ░██ ░██░░██████ --- ░░░░░ ░░░░░░ ░░░ ░░ ░░ ░░ ░░░░░██ --- █████ --- ░░░░░ - --- █▓▒░ interface settings -modkey = "Mod4" -altkey = "Mod1" -bar_position = "bottom" -tag_count = 4 -tag_icon = "◊" -tag_icon_active = "◆" -clock_format = " %a %m/%d %H:%M " -- http://linux.die.net/man/3/strftime -battery_id = "BAT1" -sloppy_focus = false - --- █▓▒░ preffered apps -terminal = "urxvtc" -rootterm = "urxvtc -hold -e sudo su" -term_exec = "urxvtc -hold -e " -filegui = "thunar" -filecli = terminal.." -e ranger" -cpucli = terminal.." -e htop" ---editor = os.getenv("EDITOR") or "nano" -editor = os.getenv("EDITOR") or "sublime_text" -editor_cmd = terminal.." -e "..editor -apparence = "lxappearance" -archiver = "file-roller" -search = "catfish" -guieditor = "sublime_text" -filer = "thunar" -mediaplayer = "smplayer" -musicplayer = terminal.." -e ncmpcpp" -volumecontrol = terminal.. " -T sound -e alsamixer" -irc = terminal.." -T weechat -e weechat-curses" -iptraf = terminal.." -g -e sudo iptraf-ng -i all" -burner = "xfburn" -webgui = "chromium" -webcli = terminal.." -e links2" -ftpgui = "filezilla" -torrent = "transmission-gtk" -calc = "galculator" -pdf = "evince" -imageviewer = "viewnior" -exiter = "cb-exit" -passmanager = "keepassx" -runcmd = "gmrun" -mp3tag = "puddletag" -blanktag = terminal.. " -T blank" \ No newline at end of file diff --git a/.config/awesome/lain/README.rst b/.config/awesome/lain/README.rst deleted file mode 100644 index ca6569b..0000000 --- a/.config/awesome/lain/README.rst +++ /dev/null @@ -1,49 +0,0 @@ -Lain -==== - ---------------------------------------------- -Layouts, widgets and utilities for Awesome WM ---------------------------------------------- - -:Author: Luke Bonham -:Version: git -:License: GNU-GPLv2_ -:Source: https://github.com/copycat-killer/lain - -Description ------------ - -Successor of awesome-vain_, this module provides new layouts, a set of widgets and utility functions, in order to improve Awesome_ usability and configurability. - -Read the wiki_ for all the info. - -**Note that** this module requires Awesome version 3.5 or higher. - -Contributions -------------- - -Any contribution is welcome! Feel free to make a pull request. - -Just make sure that: - -- Your code fits with the general style of the module. In particular, you should use the same indentation pattern that the code uses, and also avoid adding space at the ends of lines. - -- Your code its easy to understand, maintainable, and modularized. You should also avoid code duplication wherever possible by adding functions or using ``lain.helpers``. If something is unclear, and you can't write it in such a way that it will be clear, explain it with a comment. - -- You test your changes before submitting to make sure that not only your code works, but did not break other parts of the module too! - -- You eventually update ``wiki`` submodule with a thorough section. - -Contributed widgets have to be put in ``lain/widgets/contrib``. - -Screenshots ------------ - -.. image:: http://i.imgur.com/8D9A7lW.png -.. image:: http://i.imgur.com/9Iv3OR3.png -.. image:: http://i.imgur.com/STCPcaJ.png - -.. _GNU-GPLv2: http://www.gnu.org/licenses/gpl-2.0.html -.. _awesome-vain: https://github.com/vain/awesome-vain -.. _Awesome: http://awesome.naquadah.org/ -.. _wiki: https://github.com/copycat-killer/lain/wiki diff --git a/.config/awesome/lain/helpers.lua b/.config/awesome/lain/helpers.lua deleted file mode 100644 index 863bb87..0000000 --- a/.config/awesome/lain/helpers.lua +++ /dev/null @@ -1,103 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - ---]] - -local debug = require("debug") - -local capi = { timer = timer } -local io = { open = io.open, - lines = io.lines } -local rawget = rawget - --- Lain helper functions for internal use --- lain.helpers -local helpers = {} - -helpers.lain_dir = debug.getinfo(1, 'S').source:match[[^@(.*/).*$]] -helpers.icons_dir = helpers.lain_dir .. 'icons/' -helpers.scripts_dir = helpers.lain_dir .. 'scripts/' - --- {{{ Modules loader - -function helpers.wrequire(table, key) - local module = rawget(table, key) - return module or require(table._NAME .. '.' .. key) -end - --- }}} - --- {{{ File operations - --- see if the file exists and is readable -function helpers.file_exists(file) - local f = io.open(file) - if f then - local s = f:read() - f:close() - f = s - end - return f ~= nil -end - --- get all lines from a file, returns an empty --- list/table if the file does not exist -function helpers.lines_from(file) - if not helpers.file_exists(file) then return {} end - lines = {} - for line in io.lines(file) do - lines[#lines + 1] = line - end - return lines -end - --- get first line of a file, return nil if --- the file does not exist -function helpers.first_line(file) - return helpers.lines_from(file)[1] -end - --- get first non empty line from a file, --- returns nil otherwise -function helpers.first_nonempty_line(file) - for k,v in pairs(helpers.lines_from(file)) do - if #v then return v end - end - return nil -end - --- }}} - --- {{{ Timer maker - -helpers.timer_table = {} - -function helpers.newtimer(name, timeout, fun, nostart) - helpers.timer_table[name] = capi.timer({ timeout = timeout }) - helpers.timer_table[name]:connect_signal("timeout", fun) - helpers.timer_table[name]:start() - if not nostart then - helpers.timer_table[name]:emit_signal("timeout") - end -end - --- }}} - --- {{{ A map utility - -helpers.map_table = {} - -function helpers.set_map(element, value) - helpers.map_table[element] = value -end - -function helpers.get_map(element) - return helpers.map_table[element] -end - --- }}} - -return helpers diff --git a/.config/awesome/lain/icons/cal/white/1.png b/.config/awesome/lain/icons/cal/white/1.png deleted file mode 100644 index 90b696c..0000000 Binary files a/.config/awesome/lain/icons/cal/white/1.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/10.png b/.config/awesome/lain/icons/cal/white/10.png deleted file mode 100644 index b462ffb..0000000 Binary files a/.config/awesome/lain/icons/cal/white/10.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/11.png b/.config/awesome/lain/icons/cal/white/11.png deleted file mode 100644 index cf43296..0000000 Binary files a/.config/awesome/lain/icons/cal/white/11.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/12.png b/.config/awesome/lain/icons/cal/white/12.png deleted file mode 100644 index 42cf092..0000000 Binary files a/.config/awesome/lain/icons/cal/white/12.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/13.png b/.config/awesome/lain/icons/cal/white/13.png deleted file mode 100644 index 37db670..0000000 Binary files a/.config/awesome/lain/icons/cal/white/13.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/14.png b/.config/awesome/lain/icons/cal/white/14.png deleted file mode 100644 index 0188504..0000000 Binary files a/.config/awesome/lain/icons/cal/white/14.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/15.png b/.config/awesome/lain/icons/cal/white/15.png deleted file mode 100644 index 64418a6..0000000 Binary files a/.config/awesome/lain/icons/cal/white/15.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/16.png b/.config/awesome/lain/icons/cal/white/16.png deleted file mode 100644 index 8b86700..0000000 Binary files a/.config/awesome/lain/icons/cal/white/16.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/17.png b/.config/awesome/lain/icons/cal/white/17.png deleted file mode 100644 index 033b5ff..0000000 Binary files a/.config/awesome/lain/icons/cal/white/17.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/18.png b/.config/awesome/lain/icons/cal/white/18.png deleted file mode 100644 index 817c426..0000000 Binary files a/.config/awesome/lain/icons/cal/white/18.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/19.png b/.config/awesome/lain/icons/cal/white/19.png deleted file mode 100644 index 0e6dafc..0000000 Binary files a/.config/awesome/lain/icons/cal/white/19.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/2.png b/.config/awesome/lain/icons/cal/white/2.png deleted file mode 100644 index b93789a..0000000 Binary files a/.config/awesome/lain/icons/cal/white/2.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/20.png b/.config/awesome/lain/icons/cal/white/20.png deleted file mode 100644 index 3d8d7c6..0000000 Binary files a/.config/awesome/lain/icons/cal/white/20.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/21.png b/.config/awesome/lain/icons/cal/white/21.png deleted file mode 100644 index 79a74f3..0000000 Binary files a/.config/awesome/lain/icons/cal/white/21.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/22.png b/.config/awesome/lain/icons/cal/white/22.png deleted file mode 100644 index e8845ce..0000000 Binary files a/.config/awesome/lain/icons/cal/white/22.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/23.png b/.config/awesome/lain/icons/cal/white/23.png deleted file mode 100644 index a8d4dfb..0000000 Binary files a/.config/awesome/lain/icons/cal/white/23.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/24.png b/.config/awesome/lain/icons/cal/white/24.png deleted file mode 100644 index 1a3b38a..0000000 Binary files a/.config/awesome/lain/icons/cal/white/24.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/25.png b/.config/awesome/lain/icons/cal/white/25.png deleted file mode 100644 index c3621b7..0000000 Binary files a/.config/awesome/lain/icons/cal/white/25.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/26.png b/.config/awesome/lain/icons/cal/white/26.png deleted file mode 100644 index f26731b..0000000 Binary files a/.config/awesome/lain/icons/cal/white/26.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/27.png b/.config/awesome/lain/icons/cal/white/27.png deleted file mode 100644 index e4dde77..0000000 Binary files a/.config/awesome/lain/icons/cal/white/27.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/28.png b/.config/awesome/lain/icons/cal/white/28.png deleted file mode 100644 index b924c22..0000000 Binary files a/.config/awesome/lain/icons/cal/white/28.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/29.png b/.config/awesome/lain/icons/cal/white/29.png deleted file mode 100644 index e9a74f8..0000000 Binary files a/.config/awesome/lain/icons/cal/white/29.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/3.png b/.config/awesome/lain/icons/cal/white/3.png deleted file mode 100644 index 1124271..0000000 Binary files a/.config/awesome/lain/icons/cal/white/3.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/30.png b/.config/awesome/lain/icons/cal/white/30.png deleted file mode 100644 index 8147d78..0000000 Binary files a/.config/awesome/lain/icons/cal/white/30.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/31.png b/.config/awesome/lain/icons/cal/white/31.png deleted file mode 100644 index a1be3e8..0000000 Binary files a/.config/awesome/lain/icons/cal/white/31.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/4.png b/.config/awesome/lain/icons/cal/white/4.png deleted file mode 100644 index 16713bc..0000000 Binary files a/.config/awesome/lain/icons/cal/white/4.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/5.png b/.config/awesome/lain/icons/cal/white/5.png deleted file mode 100644 index 466aa71..0000000 Binary files a/.config/awesome/lain/icons/cal/white/5.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/6.png b/.config/awesome/lain/icons/cal/white/6.png deleted file mode 100644 index a1c9798..0000000 Binary files a/.config/awesome/lain/icons/cal/white/6.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/7.png b/.config/awesome/lain/icons/cal/white/7.png deleted file mode 100644 index e971951..0000000 Binary files a/.config/awesome/lain/icons/cal/white/7.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/8.png b/.config/awesome/lain/icons/cal/white/8.png deleted file mode 100644 index 909b726..0000000 Binary files a/.config/awesome/lain/icons/cal/white/8.png and /dev/null differ diff --git a/.config/awesome/lain/icons/cal/white/9.png b/.config/awesome/lain/icons/cal/white/9.png deleted file mode 100644 index dc636c4..0000000 Binary files a/.config/awesome/lain/icons/cal/white/9.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/default/cascade.png b/.config/awesome/lain/icons/layout/default/cascade.png deleted file mode 100644 index 292a057..0000000 Binary files a/.config/awesome/lain/icons/layout/default/cascade.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/default/cascadebrowse.png b/.config/awesome/lain/icons/layout/default/cascadebrowse.png deleted file mode 100644 index 2f12ada..0000000 Binary files a/.config/awesome/lain/icons/layout/default/cascadebrowse.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/default/cascadebrowsew.png b/.config/awesome/lain/icons/layout/default/cascadebrowsew.png deleted file mode 100644 index c46b48b..0000000 Binary files a/.config/awesome/lain/icons/layout/default/cascadebrowsew.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/default/cascadew.png b/.config/awesome/lain/icons/layout/default/cascadew.png deleted file mode 100644 index da64bd6..0000000 Binary files a/.config/awesome/lain/icons/layout/default/cascadew.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/default/centerfair.png b/.config/awesome/lain/icons/layout/default/centerfair.png deleted file mode 100644 index 188c243..0000000 Binary files a/.config/awesome/lain/icons/layout/default/centerfair.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/default/centerfairw.png b/.config/awesome/lain/icons/layout/default/centerfairw.png deleted file mode 100644 index ed4bcf5..0000000 Binary files a/.config/awesome/lain/icons/layout/default/centerfairw.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/default/centerwork.png b/.config/awesome/lain/icons/layout/default/centerwork.png deleted file mode 100644 index 826b331..0000000 Binary files a/.config/awesome/lain/icons/layout/default/centerwork.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/default/centerworkw.png b/.config/awesome/lain/icons/layout/default/centerworkw.png deleted file mode 100644 index fcfa7e3..0000000 Binary files a/.config/awesome/lain/icons/layout/default/centerworkw.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/default/termfair.png b/.config/awesome/lain/icons/layout/default/termfair.png deleted file mode 100644 index 06226c1..0000000 Binary files a/.config/awesome/lain/icons/layout/default/termfair.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/default/termfairw.png b/.config/awesome/lain/icons/layout/default/termfairw.png deleted file mode 100644 index 0a8b576..0000000 Binary files a/.config/awesome/lain/icons/layout/default/termfairw.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/zenburn/cascade.png b/.config/awesome/lain/icons/layout/zenburn/cascade.png deleted file mode 100644 index 532842d..0000000 Binary files a/.config/awesome/lain/icons/layout/zenburn/cascade.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/zenburn/cascadebrowse.png b/.config/awesome/lain/icons/layout/zenburn/cascadebrowse.png deleted file mode 100644 index 87be658..0000000 Binary files a/.config/awesome/lain/icons/layout/zenburn/cascadebrowse.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/zenburn/centerfair.png b/.config/awesome/lain/icons/layout/zenburn/centerfair.png deleted file mode 100644 index 01cda8e..0000000 Binary files a/.config/awesome/lain/icons/layout/zenburn/centerfair.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/zenburn/centerwork.png b/.config/awesome/lain/icons/layout/zenburn/centerwork.png deleted file mode 100644 index 6a2cecc..0000000 Binary files a/.config/awesome/lain/icons/layout/zenburn/centerwork.png and /dev/null differ diff --git a/.config/awesome/lain/icons/layout/zenburn/termfair.png b/.config/awesome/lain/icons/layout/zenburn/termfair.png deleted file mode 100644 index b7d5880..0000000 Binary files a/.config/awesome/lain/icons/layout/zenburn/termfair.png and /dev/null differ diff --git a/.config/awesome/lain/icons/mail.png b/.config/awesome/lain/icons/mail.png deleted file mode 100644 index 60ba6e0..0000000 Binary files a/.config/awesome/lain/icons/mail.png and /dev/null differ diff --git a/.config/awesome/lain/icons/no_net.png b/.config/awesome/lain/icons/no_net.png deleted file mode 100755 index 1a3e8a8..0000000 Binary files a/.config/awesome/lain/icons/no_net.png and /dev/null differ diff --git a/.config/awesome/lain/icons/taskwarrior/task.png b/.config/awesome/lain/icons/taskwarrior/task.png deleted file mode 100644 index 859ca29..0000000 Binary files a/.config/awesome/lain/icons/taskwarrior/task.png and /dev/null differ diff --git a/.config/awesome/lain/icons/taskwarrior/tasksmall.png b/.config/awesome/lain/icons/taskwarrior/tasksmall.png deleted file mode 100755 index 2de6946..0000000 Binary files a/.config/awesome/lain/icons/taskwarrior/tasksmall.png and /dev/null differ diff --git a/.config/awesome/lain/init.lua b/.config/awesome/lain/init.lua deleted file mode 100644 index 5086435..0000000 --- a/.config/awesome/lain/init.lua +++ /dev/null @@ -1,21 +0,0 @@ - ---[[ - - Lain - Layouts, widgets and utilities for Awesome WM - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - ---]] - -package.loaded.lain = nil - -local lain = -{ - layout = require("lain.layout"), - util = require("lain.util"), - widgets = require("lain.widgets") -} - -return lain diff --git a/.config/awesome/lain/layout/cascade.lua b/.config/awesome/lain/layout/cascade.lua deleted file mode 100644 index cabacef..0000000 --- a/.config/awesome/lain/layout/cascade.lua +++ /dev/null @@ -1,65 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local tag = require("awful.tag") - -local cascade = -{ - name = "cascade", - nmaster = 0, - offset_x = 32, - offset_y = 8 -} - -function cascade.arrange(p) - - -- Cascade windows. - - -- Screen. - local wa = p.workarea - local cls = p.clients - - -- Opening a new window will usually force all existing windows to - -- get resized. This wastes a lot of CPU time. So let's set a lower - -- bound to "how_many": This wastes a little screen space but you'll - -- get a much better user experience. - local t = tag.selected(p.screen) - local num_c - if cascade.nmaster > 0 - then - num_c = cascade.nmaster - else - num_c = tag.getnmaster(t) - end - - local how_many = #cls - if how_many < num_c - then - how_many = num_c - end - - local current_offset_x = cascade.offset_x * (how_many - 1) - local current_offset_y = cascade.offset_y * (how_many - 1) - - -- Iterate. - for i = 1,#cls,1 - do - local c = cls[i] - local g = {} - - g.x = wa.x + (how_many - i) * cascade.offset_x - g.y = wa.y + (i - 1) * cascade.offset_y - g.width = wa.width - current_offset_x - g.height = wa.height - current_offset_y - - c:geometry(g) - end -end - -return cascade diff --git a/.config/awesome/lain/layout/cascadetile.lua b/.config/awesome/lain/layout/cascadetile.lua deleted file mode 100644 index 98821e3..0000000 --- a/.config/awesome/lain/layout/cascadetile.lua +++ /dev/null @@ -1,155 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local tag = require("awful.tag") -local beautiful = require("beautiful") -local tonumber = tonumber - -local cascadetile = -{ - name = "cascadetile", - nmaster = 0, - ncol = 0, - mwfact = 0, - offset_x = 5, - offset_y = 32, - extra_padding = 0 -} - -function cascadetile.arrange(p) - - -- Layout with one fixed column meant for a master window. Its - -- width is calculated according to mwfact. Other clients are - -- cascaded or "tabbed" in a slave column on the right. - - -- It's a bit hard to demonstrate the behaviour with ASCII-images... - -- - -- (1) (2) (3) (4) - -- +-----+---+ +-----+---+ +-----+---+ +-----+---+ - -- | | | | | | | | | | | 4 | - -- | | | | | 2 | | | 3 | | | | - -- | 1 | | -> | 1 | | -> | 1 | | -> | 1 +---+ - -- | | | | +---+ | +---+ | | 3 | - -- | | | | | | | | 2 | | |---| - -- | | | | | | | |---| | | 2 | - -- | | | | | | | | | | |---| - -- +-----+---+ +-----+---+ +-----+---+ +-----+---+ - - -- A useless gap (like the dwm patch) can be defined with - -- beautiful.useless_gap_width. - local useless_gap = tonumber(beautiful.useless_gap_width) or 0 - - -- Screen. - local wa = p.workarea - local cls = p.clients - - -- Width of main column? - local t = tag.selected(p.screen) - local mwfact - if cascadetile.mwfact > 0 - then - mwfact = cascadetile.mwfact - else - mwfact = tag.getmwfact(t) - end - - -- Make slave windows overlap main window? Do this if ncol is 1. - local overlap_main - if cascadetile.ncol > 0 - then - overlap_main = cascadetile.ncol - else - overlap_main = tag.getncol(t) - end - - -- Minimum space for slave windows? See cascade.lua. - local num_c - if cascadetile.nmaster > 0 - then - num_c = cascadetile.nmaster - else - num_c = tag.getnmaster(t) - end - - local how_many = #cls - 1 - if how_many < num_c - then - how_many = num_c - end - local current_offset_x = cascadetile.offset_x * (how_many - 1) - local current_offset_y = cascadetile.offset_y * (how_many - 1) - - if #cls > 0 - then - -- Main column, fixed width and height. - local c = cls[#cls] - local g = {} - local mainwid = wa.width * mwfact - local slavewid = wa.width - mainwid - - if overlap_main == 1 - then - g.width = wa.width - - -- The size of the main window may be reduced a little bit. - -- This allows you to see if there are any windows below the - -- main window. - -- This only makes sense, though, if the main window is - -- overlapping everything else. - g.width = g.width - cascadetile.extra_padding - else - g.width = mainwid - end - - g.height = wa.height - g.x = wa.x - g.y = wa.y - if useless_gap > 0 - then - -- Reduce width once and move window to the right. Reduce - -- height twice, however. - g.width = g.width - useless_gap - g.height = g.height - 2 * useless_gap - g.x = g.x + useless_gap - g.y = g.y + useless_gap - - -- When there's no window to the right, add an additional - -- gap. - if overlap_main == 1 - then - g.width = g.width - useless_gap - end - end - c:geometry(g) - - -- Remaining clients stacked in slave column, new ones on top. - if #cls > 1 - then - for i = (#cls - 1),1,-1 - do - c = cls[i] - g = {} - g.width = slavewid - current_offset_x - g.height = wa.height - current_offset_y - g.x = wa.x + mainwid + (how_many - i) * cascadetile.offset_x - g.y = wa.y + (i - 1) * cascadetile.offset_y - if useless_gap > 0 - then - g.width = g.width - 2 * useless_gap - g.height = g.height - 2 * useless_gap - g.x = g.x + useless_gap - g.y = g.y + useless_gap - end - c:geometry(g) - end - end - end -end - -return cascadetile diff --git a/.config/awesome/lain/layout/centerfair.lua b/.config/awesome/lain/layout/centerfair.lua deleted file mode 100644 index 49b4a14..0000000 --- a/.config/awesome/lain/layout/centerfair.lua +++ /dev/null @@ -1,147 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010, Nicolas Estibals - * (c) 2010-2012, Peter Hofmann - ---]] - -local tag = require("awful.tag") -local beautiful = require("beautiful") -local math = { ceil = math.ceil, - floor = math.floor, - max = math.max } -local tonumber = tonumber - -local centerfair = { name = "centerfair" } - -function centerfair.arrange(p) - -- Layout with fixed number of vertical columns (read from nmaster). - -- Cols are centerded until there is nmaster columns, then windows - -- are stacked in the slave columns, with at most ncol clients per - -- column if possible. - - -- with nmaster=3 and ncol=1 you'll have - -- (1) (2) (3) - -- +---+---+---+ +-+---+---+-+ +---+---+---+ - -- | | | | | | | | | | | | | - -- | | 1 | | -> | | 1 | 2 | | -> | 1 | 2 | 3 | -> - -- | | | | | | | | | | | | | - -- +---+---+---+ +-+---+---+-+ +---+---+---+ - - -- (4) (5) - -- +---+---+---+ +---+---+---+ - -- | | | 3 | | | 2 | 4 | - -- + 1 + 2 +---+ -> + 1 +---+---+ - -- | | | 4 | | | 3 | 5 | - -- +---+---+---+ +---+---+---+ - - -- A useless gap (like the dwm patch) can be defined with - -- beautiful.useless_gap_width . - local useless_gap = tonumber(beautiful.useless_gap_width) or 0 - - -- Screen. - local wa = p.workarea - local cls = p.clients - - -- How many vertical columns? Read from nmaster on the tag. - local t = tag.selected(p.screen) - local num_x = centerfair.nmaster or tag.getnmaster(t) - local ncol = centerfair.ncol or tag.getncol(t) - - local width = math.floor((wa.width-(num_x+1)*useless_gap) / num_x) - - local offset_y = wa.y + useless_gap - if #cls < num_x - then - -- Less clients than the number of columns, let's center it! - local offset_x = wa.x + useless_gap + (wa.width - #cls*width - (#cls+1)*useless_gap) / 2 - local g = {} - g.width = width - g.height = wa.height - 2*useless_gap - 2 - g.y = offset_y - for i = 1, #cls do - g.x = offset_x + (i - 1) * (width + useless_gap + 2) - cls[i]:geometry(g) - end - else - -- More clients than the number of columns, let's arrange it! - local offset_x = wa.x - if useless_gap > 0 then - offset_x = offset_x - end - - -- Master client deserves a special treatement - local g = {} - g.width = wa.width - (num_x-1)*width -num_x*useless_gap - 2 - g.height = wa.height - 2*useless_gap - 2 - g.x = offset_x + useless_gap - g.y = offset_y - cls[1]:geometry(g) - - -- Treat the other clients - - -- Compute distribution of clients among columns - local num_y ={} - do - local remaining_clients = #cls-1 - local ncol_min = math.ceil(remaining_clients/(num_x-1)) - if ncol >= ncol_min - then - for i = (num_x-1), 1, -1 do - if (remaining_clients-i+1) < ncol - then - num_y[i] = remaining_clients-i + 1 - else - num_y[i] = ncol - end - remaining_clients = remaining_clients - num_y[i] - end - else - local rem = remaining_clients % (num_x-1) - if rem ==0 - then - for i = 1, num_x-1 do - num_y[i] = ncol_min - end - else - for i = 1, num_x-1 do - num_y[i] = ncol_min - 1 - end - for i = 0, rem-1 do - num_y[num_x-1-i] = num_y[num_x-1-i] + 1 - end - end - end - end - - -- Compute geometry of the other clients - local nclient = 2 - g.x = g.x + g.width+useless_gap + 2 - g.width = width - - if useless_gap > 0 then - g.width = g.width - useless_gap/2 - 2 - end - - for i = 1, (num_x-1) do - to_remove = 2 - g.height = math.floor((wa.height-useless_gap)/num_y[i]) - g.y = offset_y - for j = 0, (num_y[i]-2) do - cls[nclient]:geometry(g) - nclient = nclient + 1 - g.y = g.y + g.height+useless_gap + 2 - to_remove = to_remove + 2 - end - g.height = wa.height - num_y[i]*useless_gap - (num_y[i]-1)*g.height - useless_gap - to_remove - cls[nclient]:geometry(g) - nclient = nclient + 1 - g.x = g.x+g.width+useless_gap + 2 - end - end -end - -return centerfair diff --git a/.config/awesome/lain/layout/centerwork.lua b/.config/awesome/lain/layout/centerwork.lua deleted file mode 100644 index b8175ea..0000000 --- a/.config/awesome/lain/layout/centerwork.lua +++ /dev/null @@ -1,118 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local awful = require("awful") -local beautiful = require("beautiful") -local tonumber = tonumber -local math = { floor = math.floor } - -local centerwork = -{ - name = "centerwork", - top_left = 0, - top_right = 1, - bottom_left = 2, - bottom_right = 3 -} - -function centerwork.arrange(p) - -- A useless gap (like the dwm patch) can be defined with - -- beautiful.useless_gap_width . - local useless_gap = tonumber(beautiful.useless_gap_width) or 0 - - -- Screen. - local wa = p.workarea - local cls = p.clients - - -- Width of main column? - local t = awful.tag.selected(p.screen) - local mwfact = awful.tag.getmwfact(t) - - if #cls > 0 - then - -- Main column, fixed width and height. - local c = cls[#cls] - local g = {} - local mainwid = math.floor(wa.width * mwfact) - local slavewid = wa.width - mainwid - local slaveLwid = math.floor(slavewid / 2) - local slaveRwid = slavewid - slaveLwid - local slaveThei = math.floor(wa.height / 2) - local slaveBhei = wa.height - slaveThei - - g.height = wa.height - 2 * useless_gap - g.width = mainwid - g.x = wa.x + slaveLwid - g.y = wa.y + useless_gap - - c:geometry(g) - - -- Auxiliary windows. - if #cls > 1 - then - local at = 0 - for i = (#cls - 1),1,-1 - do - -- It's all fixed. If there are more than 5 clients, - -- those additional clients will float. This is - -- intentional. - if at == 4 - then - break - end - - c = cls[i] - g = {} - - if at == centerwork.top_left - then - -- top left - g.x = wa.x + useless_gap - g.y = wa.y + useless_gap - g.width = slaveLwid - 2 * useless_gap - g.height = slaveThei - useless_gap - elseif at == centerwork.top_right - then - -- top right - g.x = wa.x + slaveLwid + mainwid + useless_gap - g.y = wa.y + useless_gap - g.width = slaveRwid - 2 * useless_gap - g.height = slaveThei - useless_gap - elseif at == centerwork.bottom_left - then - -- bottom left - g.x = wa.x + useless_gap - g.y = wa.y + slaveThei + useless_gap - g.width = slaveLwid - 2 * useless_gap - g.height = slaveBhei - 2 * useless_gap - elseif at == centerwork.bottom_right - then - -- bottom right - g.x = wa.x + slaveLwid + mainwid + useless_gap - g.y = wa.y + slaveThei + useless_gap - g.width = slaveRwid - 2 * useless_gap - g.height = slaveBhei - 2 * useless_gap - end - - c:geometry(g) - - at = at + 1 - end - - -- Set remaining clients to floating. - for i = (#cls - 1 - 4),1,-1 - do - c = cls[i] - awful.client.floating.set(c, true) - end - end - end -end - -return centerwork diff --git a/.config/awesome/lain/layout/init.lua b/.config/awesome/lain/layout/init.lua deleted file mode 100644 index d79679a..0000000 --- a/.config/awesome/lain/layout/init.lua +++ /dev/null @@ -1,20 +0,0 @@ - ---[[ - - Lain - Layouts, widgets and utilities for Awesome WM - - Layouts section - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local wrequire = require("lain.helpers").wrequire -local setmetatable = setmetatable - -local layout = { _NAME = "lain.layout" } - -return setmetatable(layout, { __index = wrequire }) diff --git a/.config/awesome/lain/layout/termfair.lua b/.config/awesome/lain/layout/termfair.lua deleted file mode 100644 index 89a44bb..0000000 --- a/.config/awesome/lain/layout/termfair.lua +++ /dev/null @@ -1,141 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local tag = require("awful.tag") -local beautiful = require("beautiful") -local math = { ceil = math.ceil, - floor = math.floor, - max = math.max } -local tonumber = tonumber - -local termfair = { name = "termfair" } - -function termfair.arrange(p) - -- Layout with fixed number of vertical columns (read from nmaster). - -- New windows align from left to right. When a row is full, a now - -- one above it is created. Like this: - - -- (1) (2) (3) - -- +---+---+---+ +---+---+---+ +---+---+---+ - -- | | | | | | | | | | | | - -- | 1 | | | -> | 2 | 1 | | -> | 3 | 2 | 1 | -> - -- | | | | | | | | | | | | - -- +---+---+---+ +---+---+---+ +---+---+---+ - - -- (4) (5) (6) - -- +---+---+---+ +---+---+---+ +---+---+---+ - -- | 4 | | | | 5 | 4 | | | 6 | 5 | 4 | - -- +---+---+---+ -> +---+---+---+ -> +---+---+---+ - -- | 3 | 2 | 1 | | 3 | 2 | 1 | | 3 | 2 | 1 | - -- +---+---+---+ +---+---+---+ +---+---+---+ - - -- A useless gap (like the dwm patch) can be defined with - -- beautiful.useless_gap_width. - local useless_gap = tonumber(beautiful.useless_gap_width) or 0 - - -- Screen. - local wa = p.workarea - local cls = p.clients - - -- How many vertical columns? - local t = tag.selected(p.screen) - local num_x = termfair.nmaster or tag.getnmaster(t) - - -- Do at least "desired_y" rows. - local desired_y = termfair.ncol or tag.getncol(t) - - if #cls > 0 - then - local num_y = math.max(math.ceil(#cls / num_x), desired_y) - local cur_num_x = num_x - local at_x = 0 - local at_y = 0 - local remaining_clients = #cls - local width = math.floor(wa.width / num_x) - local height = math.floor(wa.height / num_y) - - -- We start the first row. Left-align by limiting the number of - -- available slots. - if remaining_clients < num_x - then - cur_num_x = remaining_clients - end - - -- Iterate in reversed order. - for i = #cls,1,-1 - do - -- Get x and y position. - local c = cls[i] - local this_x = cur_num_x - at_x - 1 - local this_y = num_y - at_y - 1 - - -- Calc geometry. - local g = {} - if this_x == (num_x - 1) - then - g.width = wa.width - (num_x - 1) * width - else - g.width = width - end - if this_y == (num_y - 1) - then - g.height = wa.height - (num_y - 1) * height - else - g.height = height - end - - g.x = wa.x + this_x * width - g.y = wa.y + this_y * height - - if useless_gap > 0 - then - -- Top and left clients are shrinked by two steps and - -- get moved away from the border. Other clients just - -- get shrinked in one direction. - - gap_factor = (useless_gap / 100) * 2 - - if this_x == 0 - then - g.width = g.width - (2 + gap_factor) * useless_gap - g.x = g.x + useless_gap - else - g.width = g.width - (1 + gap_factor) * useless_gap - end - - if this_y == 0 - then - g.height = g.height - (2 + gap_factor) * useless_gap - g.y = g.y + useless_gap - else - g.height = g.height - (1 + gap_factor) * useless_gap - end - end - c:geometry(g) - remaining_clients = remaining_clients - 1 - - -- Next grid position. - at_x = at_x + 1 - if at_x == num_x - then - -- Row full, create a new one above it. - at_x = 0 - at_y = at_y + 1 - - -- We start a new row. Left-align. - if remaining_clients < num_x - then - cur_num_x = remaining_clients - end - end - end - end -end - -return termfair diff --git a/.config/awesome/lain/layout/uselessfair.lua b/.config/awesome/lain/layout/uselessfair.lua deleted file mode 100644 index 6aa6666..0000000 --- a/.config/awesome/lain/layout/uselessfair.lua +++ /dev/null @@ -1,121 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2012, Josh Komoroske - * (c) 2010-2012, Peter Hofmann - ---]] - -local beautiful = require("beautiful") -local ipairs = ipairs -local math = { ceil = math.ceil, sqrt = math.sqrt } -local tonumber = tonumber - -local uselessfair = {} - -local function fair(p, orientation) - -- A useless gap (like the dwm patch) can be defined with - -- beautiful.useless_gap_width. - local useless_gap = tonumber(beautiful.useless_gap_width) or 0 - - local wa = p.workarea - local cls = p.clients - - if #cls > 0 then - local cells = math.ceil(math.sqrt(#cls)) - local strips = math.ceil(#cls / cells) - - local cell = 0 - local strip = 0 - for k, c in ipairs(cls) do - local g = {} - -- Save actual grid index for use in the useless_gap - -- routine. - local this_x = 0 - local this_y = 0 - if ( orientation == "east" and #cls > 2 ) - or ( orientation == "south" and #cls <= 2 ) then - if #cls < (strips * cells) and strip == strips - 1 then - g.width = wa.width / (cells - ((strips * cells) - #cls)) - else - g.width = wa.width / cells - end - g.height = wa.height / strips - - this_x = cell - this_y = strip - - g.x = wa.x + cell * g.width - g.y = wa.y + strip * g.height - - else - if #cls < (strips * cells) and strip == strips - 1 then - g.height = wa.height / (cells - ((strips * cells) - #cls)) - else - g.height = wa.height / cells - end - g.width = wa.width / strips - - this_x = strip - this_y = cell - - g.x = wa.x + strip * g.width - g.y = wa.y + cell * g.height - end - - -- Useless gap. - if useless_gap > 0 - then - -- Top and left clients are shrinked by two steps and - -- get moved away from the border. Other clients just - -- get shrinked in one direction. - - gap_factor = (useless_gap / 100) * 2 - - if this_x == 0 - then - g.width = g.width - (2 + gap_factor) * useless_gap - g.x = g.x + useless_gap - else - g.width = g.width - (1 + gap_factor) * useless_gap - end - - if this_y == 0 - then - g.height = g.height - (2 + gap_factor) * useless_gap - g.y = g.y + useless_gap - else - g.height = g.height - (1 + gap_factor) * useless_gap - end - end - -- End of useless gap. - - c:geometry(g) - - cell = cell + 1 - if cell == cells then - cell = 0 - strip = strip + 1 - end - end - end -end - ---- Horizontal fair layout. --- @param screen The screen to arrange. -uselessfair.horizontal = {} -uselessfair.horizontal.name = "uselessfairh" -function uselessfair.horizontal.arrange(p) - return fair(p, "east") -end - --- Vertical fair layout. --- @param screen The screen to arrange. -uselessfair.name = "uselessfair" -function uselessfair.arrange(p) - return fair(p, "south") -end - -return uselessfair diff --git a/.config/awesome/lain/layout/uselesspiral.lua b/.config/awesome/lain/layout/uselesspiral.lua deleted file mode 100644 index 3164c75..0000000 --- a/.config/awesome/lain/layout/uselesspiral.lua +++ /dev/null @@ -1,110 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2009 Uli Schlachter - * (c) 2008 Julien Danjolu - ---]] - -local beautiful = require("beautiful") -local ipairs = ipairs -local tonumber = tonumber - -local uselesspiral = {} - -local function spiral(p, spiral) - -- A useless gap (like the dwm patch) can be defined with - -- beautiful.useless_gap_width. - local useless_gap = tonumber(beautiful.useless_gap_width) or 0 - - local wa = p.workarea - local cls = p.clients - local n = #cls - - local static_wa = wa - - for k, c in ipairs(cls) do - if k < n then - if k % 2 == 0 then - wa.height = wa.height / 2 - else - wa.width = wa.width / 2 - end - end - - if k % 4 == 0 and spiral then - wa.x = wa.x - wa.width - elseif k % 2 == 0 or - (k % 4 == 3 and k < n and spiral) then - wa.x = wa.x + wa.width - end - - if k % 4 == 1 and k ~= 1 and spiral then - wa.y = wa.y - wa.height - elseif k % 2 == 1 and k ~= 1 or - (k % 4 == 0 and k < n and spiral) then - wa.y = wa.y + wa.height - end - - local wa2 = {} - wa2.x = wa.x - wa2.y = wa.y - wa2.height = wa.height - wa2.width = wa.width - - -- Useless gap. - if useless_gap > 0 - then - -- Top and left clients are shrinked by two steps and - -- get moved away from the border. Other clients just - -- get shrinked in one direction. - - top = false - left = false - - gap_factor = (useless_gap / 100) * 2 - - if wa2.y == static_wa.y then - top = true - end - - if wa2.x == static_wa.x then - left = true - end - - if top then - wa2.height = wa2.height - (2 + gap_factor) * useless_gap - wa2.y = wa2.y + useless_gap - else - wa2.height = wa2.height - (1 + gap_factor) * useless_gap - end - - if left then - wa2.width = wa2.width - (2 + gap_factor) * useless_gap - wa2.x = wa2.x + useless_gap - else - wa2.width = wa2.width - (1 + gap_factor) * useless_gap - end - end - -- End of useless gap. - - c:geometry(wa2) - end -end - ---- Dwindle layout -uselesspiral.dwindle = {} -uselesspiral.dwindle.name = "uselessdwindle" -function uselesspiral.dwindle.arrange(p) - return spiral(p, false) -end - ---- Spiral layout -uselesspiral.name = "uselesspiral" -function uselesspiral.arrange(p) - return spiral(p, true) -end - -return uselesspiral diff --git a/.config/awesome/lain/layout/uselesstile.lua b/.config/awesome/lain/layout/uselesstile.lua deleted file mode 100644 index e496500..0000000 --- a/.config/awesome/lain/layout/uselesstile.lua +++ /dev/null @@ -1,230 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2009 Donald Ephraim Curtis - * (c) 2008 Julien Danjolu - ---]] - -local tag = require("awful.tag") -local beautiful = require("beautiful") -local ipairs = ipairs -local math = { floor = math.floor, - max = math.max, - min = math.min } -local tonumber = tonumber - -local uselesstile = {} - -local function tile_group(cls, wa, orientation, fact, group) - -- A useless gap (like the dwm patch) can be defined with - -- beautiful.useless_gap_width . - local useless_gap = tonumber(beautiful.useless_gap_width) or 0 - - -- get our orientation right - local height = "height" - local width = "width" - local x = "x" - local y = "y" - if orientation == "top" or orientation == "bottom" then - height = "width" - width = "height" - x = "y" - y = "x" - end - - -- make this more generic (not just width) - available = wa[width] - (group.coord - wa[x]) - - -- find our total values - local total_fact = 0 - local min_fact = 1 - local size = group.size - for c = group.first,group.last do - -- determine the width/height based on the size_hint - local i = c - group.first +1 - local size_hints = cls[c].size_hints - local size_hint = size_hints["min_"..width] or size_hints["base_"..width] or 0 - size_hint = size_hint + cls[c].border_width*2 - size = math.max(size_hint, size) - - -- calculate the height - if not fact[i] then - fact[i] = min_fact - else - min_fact = math.min(fact[i],min_fact) - end - total_fact = total_fact + fact[i] - end - size = math.min(size, available) - - local coord = wa[y] - local geom = {} - local used_size = 0 - local unused = wa[height] - local stat_coord = wa[x] - --stat_coord = size - for c = group.first,group.last do - local i = c - group.first +1 - geom[width] = size - geom[height] = math.floor(unused * fact[i] / total_fact) - geom[x] = group.coord - geom[y] = coord - - coord = coord + geom[height] - unused = unused - geom[height] - total_fact = total_fact - fact[i] - used_size = math.max(used_size, geom[width]) - - -- Useless gap - if useless_gap > 0 - then - -- Top and left clients are shrinked by two steps and - -- get moved away from the border. Other clients just - -- get shrinked in one direction. - - top = false - left = false - - gap_factor = (useless_gap / 100) * 2 - - if geom[y] == wa[y] then - top = true - end - - if geom[x] == 0 or geom[x] == wa[x] then - left = true - end - - if top then - geom[height] = geom[height] - (2 + gap_factor) * useless_gap - geom[y] = geom[y] + useless_gap - else - geom[height] = geom[height] - (1 + gap_factor) * useless_gap - end - - if left then - geom[width] = geom[width] - (2 + gap_factor) * useless_gap - geom[x] = geom[x] + useless_gap - else - geom[width] = geom[width] - (1 + gap_factor) * useless_gap - end - end - -- End of useless gap. - - geom = cls[c]:geometry(geom) - end - - return used_size -end - -local function tile(param, orientation) - local t = tag.selected(param.screen) - orientation = orientation or "right" - - -- this handles are different orientations - local height = "height" - local width = "width" - local x = "x" - local y = "y" - if orientation == "top" or orientation == "bottom" then - height = "width" - width = "height" - x = "y" - y = "x" - end - - local cls = param.clients - local nmaster = math.min(tag.getnmaster(t), #cls) - local nother = math.max(#cls - nmaster,0) - - local mwfact = tag.getmwfact(t) - local wa = param.workarea - local ncol = tag.getncol(t) - - local data = tag.getdata(t).windowfact - - if not data then - data = {} - tag.getdata(t).windowfact = data - end - - local coord = wa[x] - local place_master = true - if orientation == "left" or orientation == "top" then - -- if we are on the left or top we need to render the other windows first - place_master = false - end - - -- this was easier than writing functions because there is a lot of data we need - for d = 1,2 do - if place_master and nmaster > 0 then - local size = wa[width] - if nother > 0 then - size = math.min(wa[width] * mwfact, wa[width] - (coord - wa[x])) - end - if not data[0] then - data[0] = {} - end - coord = coord + tile_group(cls, wa, orientation, data[0], {first=1, last=nmaster, coord = coord, size = size}) - end - - if not place_master and nother > 0 then - local last = nmaster - - -- we have to modify the work area size to consider left and top views - local wasize = wa[width] - if nmaster > 0 and (orientation == "left" or orientation == "top") then - wasize = wa[width] - wa[width]*mwfact - end - for i = 1,ncol do - -- Try to get equal width among remaining columns - local size = math.min( (wasize - (coord - wa[x])) / (ncol - i + 1) ) - local first = last + 1 - last = last + math.floor((#cls - last)/(ncol - i + 1)) - -- tile the column and update our current x coordinate - if not data[i] then - data[i] = {} - end - coord = coord + tile_group(cls, wa, orientation, data[i], { first = first, last = last, coord = coord, size = size }) - end - end - place_master = not place_master - end - -end - -uselesstile.right = {} -uselesstile.right.name = "uselesstile" -uselesstile.right.arrange = tile - ---- The main tile algo, on left. --- @param screen The screen number to tile. -uselesstile.left = {} -uselesstile.left.name = "uselesstileleft" -function uselesstile.left.arrange(p) - return tile(p, "left") -end - ---- The main tile algo, on bottom. --- @param screen The screen number to tile. -uselesstile.bottom = {} -uselesstile.bottom.name = "uselesstilebottom" -function uselesstile.bottom.arrange(p) - return tile(p, "bottom") -end - ---- The main tile algo, on top. --- @param screen The screen number to tile. -uselesstile.top = {} -uselesstile.top.name = "uselesstiletop" -function uselesstile.top.arrange(p) - return tile(p, "top") -end - -uselesstile.arrange = uselesstile.right.arrange -uselesstile.name = uselesstile.right.name - -return uselesstile diff --git a/.config/awesome/lain/scripts/dfs b/.config/awesome/lain/scripts/dfs deleted file mode 100755 index d78d2bb..0000000 --- a/.config/awesome/lain/scripts/dfs +++ /dev/null @@ -1,387 +0,0 @@ -#!/bin/bash -# -# Adapted from Eridan's "fs" (cleanup, enhancements and switch to bash/Linux) -# JM, 10/12/2004 -# -# Integrated into Lain in september 2013 -# https://github.com/copycat-killer/lain - -# Requires gawk - -# ------------------------------------------------------------------------- -# Decoding options -# ------------------------------------------------------------------------- -USAGE="Usage: $0 [-h(elp)] | [-n(arrow mode)] | [-w(eb output)]" - -NARROW_MODE=0 -WEB_OUTPUT=0 - -while [ $# -gt 0 ]; do -case "$1" in -"-h" ) -echo $USAGE -exit -;; -"-d" ) -DEBUG=1 -;; -"-n" ) -NARROW_MODE=1 -;; -"-w" ) -WEB_OUTPUT=1 -;; -* ) -echo $USAGE -exit -;; -esac -shift -done - -# ------------------------------------------------------------------------- -# Preparations -# ------------------------------------------------------------------------- -SYSTEM=`uname -s` -PATTERN="/" - -case "$SYSTEM" in -"Linux" ) -DF_COMMAND="/usr/bin/env df -k" -SORT_COMMAND="/usr/bin/env sort -k6" -AWK_COMMAND="/usr/bin/env awk" -;; -* ) -DF_COMMAND="/bin/df -k" -SORT_COMMAND="/usr/bin/sort -k6" -AWK_COMMAND="/usr/bin/env gawk" -;; -esac - -# ------------------------------------------------------------------------- -# Grabbing "df" result -# ------------------------------------------------------------------------- -DF_RESULT=`$DF_COMMAND` -if [ ! -z $DEBUG ]; then -echo "--> DF_RESULT:" -echo "$DF_RESULT" -echo "" -fi - -# ------------------------------------------------------------------------- -# Preprocessing "df" result, to join split logical lines -# ------------------------------------------------------------------------- -PREPROCESSING_RESULT=` \ - echo "$DF_RESULT" | $AWK_COMMAND -v PATTERN=$PATTERN \ - ' - NF == 1 { - printf ("%s", $0) - } - -NF == 5 { - printf ("%s\n", $0) -} - -NF > 6 { -} - -NF == 6 { - printf ("%s\n", $0) -}' -` -if [ ! -z $DEBUG ]; then -echo "--> PREPROCESSING_RESULT:" -echo "$PREPROCESSING_RESULT" -echo "" -fi - -SORTED_FILE_SYSTEMS_INFO=`echo "$PREPROCESSING_RESULT" | $SORT_COMMAND` - -if [ ! -z $DEBUG ]; then -echo "--> SORTED_FILE_SYSTEMS_INFO:" -echo "$SORTED_FILE_SYSTEMS_INFO" -echo "" -fi - -# ------------------------------------------------------------------------- -# Computing mount point max length -# ------------------------------------------------------------------------- -MOUNT_POINT_MAX_LENGTH=` \ - echo $SORTED_FILE_SYSTEMS_INFO | $AWK_COMMAND -v PATTERN=$PATTERN \ - ' - BEGIN { - mount_point_length_max = 15; - } - -END { - printf ("%d", mount_point_length_max); -} - -$0 ~ PATTERN { -# printf ("$6 = %s\n", $6); - - mount_point = $6; -# printf ("mount_point = %s\n", mount_point); - - mount_point_length = length (mount_point); -# printf ("mount_point_length = %d\n", mount_point_length); - - if (mount_point_length > mount_point_length_max) - mount_point_length_max = mount_point_length; -}' -` -if [ ! -z $DEBUG ]; then -echo "MOUNT_POINT_MAX_LENGTH: $MOUNT_POINT_MAX_LENGTH" -fi - -# ------------------------------------------------------------------------- -# Computing mount point data max size -# ------------------------------------------------------------------------- -MOUNT_POINT_MAX_SIZE=` \ - echo "$SORTED_FILE_SYSTEMS_INFO" | $AWK_COMMAND -v PATTERN=$PATTERN \ - ' - BEGIN { - mount_point_size_max = 0; - } - -END { - printf ("%d", mount_point_size_max); -} - -$0 ~ PATTERN { -# df -k shows k_bytes! -# printf ("$2 = %s\n", $2); - - mount_point_size = $2 * 1024; -# printf ("mount_point_size = %d\n", mount_point_size); - - if (mount_point_size > mount_point_size_max) - mount_point_size_max = mount_point_size; -}' -` -if [ ! -z $DEBUG ]; then -echo "MOUNT_POINT_MAX_SIZE: $MOUNT_POINT_MAX_SIZE" -fi - -# ------------------------------------------------------------------------- -# Let's go! -# ------------------------------------------------------------------------- -echo "$SORTED_FILE_SYSTEMS_INFO" | $AWK_COMMAND -v DEBUG=$DEBUG -v PATTERN=$PATTERN -v NARROW_MODE=$NARROW_MODE -v LEFT_COLUMN=$MOUNT_POINT_MAX_LENGTH -v MAX_SIZE=$MOUNT_POINT_MAX_SIZE -v SCALE=$SCALE -v WEB_OUTPUT=$WEB_OUTPUT \ - ' -# {printf ("$0 = %s\n", $0);} -# {printf ("$1 = %s\n", $1);} -# {printf ("PATTERN = %s\n", PATTERN);} -# {printf ("LEFT_COLUMN = %s\n", LEFT_COLUMN);} - - BEGIN { - k_bytes = 1024.0; - m_bytes = 1024.0 * k_bytes; - g_bytes = 1024.0 * m_bytes; - t_bytes = 1024.0 * g_bytes; - - if (WEB_OUTPUT) - { - all_stars = "**************************************************"; - current_date = strftime ("%d-%m-%Y @ %H:%M:%S", localtime (systime ())); - free_threshold = 10; # % - - printf ("\n"); - - printf ( \ - "\n" \ - "

%s -- STATUS OF ALCOR FILE SYSTEMS


\n", - current_date ) - - printf ("\n"); - - printf ( \ - "\n" \ - "\n" \ - "\n" \ - "\n" \ - "\n" \ - "\n" \ - "\n" ); - } - else - { - narrow_margin = " "; -# printf ("%-*s", LEFT_COLUMN + 2, "Mount point"); - if (NARROW_MODE) - printf ("\n%s", narrow_margin); - else - printf ("%-*s", LEFT_COLUMN + 2, ""); - print " Used Free Total "; - if (! NARROW_MODE) - print ""; - } - } - -END { - if (WEB_OUTPUT) - { - printf ("
Mount point%% Usato (*)" \ - " - %% Free (*)%% UsedFreeTotal
\n"); - - printf ("\n"); - } - else - { - if (NARROW_MODE) - printf ("%s", narrow_margin); - else - printf ("%-*s", LEFT_COLUMN + 2, ""); - print "|----|----|----|----|----|----|----|----|----|----|" - if (NARROW_MODE) - printf ("\n%s", narrow_margin); - else - printf ("%-*s", LEFT_COLUMN + 2, ""); - print "0 10 20 30 40 50 60 70 80 90 100"; - print ""; - } -} - -$0 ~ PATTERN { - - if (index ($0, "members") == 0 && index ($0, "Download") == 0 && index ($0, "admin") == 0) - { -# df -k shows k_bytes! - - total_size = $2 * k_bytes; - free_size = $4 * k_bytes; - percentage_occupied = substr($5, 0, 3); - mount_point = $6; - - percentage_free = int (100 - percentage_occupied); - -# reduction_factor: 2 - stars_number = int (percentage_occupied / 2); - - if (WEB_OUTPUT) - { - posGroup = index (mount_point, "scratch"); - if (posGroup == 0) - posGroup = index (mount_point, "u1"); - if (posGroup == 0) - posGroup = index (mount_point, "u2"); - if (posGroup == 0) - posGroup = index (mount_point, "u4"); - if (posGroup == 0) - posGroup = index (mount_point, "u5"); - - printf ("\n"); - - if (posGroup > 0 || percentage_free < free_threshold) - { - if (percentage_free < free_threshold) - { - class = "titlered"; - if (posGroup == 0) - posGroup = 1; # to display the whole mount_point in this color anyway - } - else if ((index (mount_point, "scratch") != 0) || (index (mount_point, "u1") != 0) || (index (mount_point, "u2") != 0)) - { - class = "titleorange"; - posGroup = 1; # to display the whole mount_point in this color - } - else if ((index (mount_point, "u4") != 0) || (index (mount_point, "u5") != 0)) - { - class = "titlebrown"; - posGroup = 1; # to display the whole mount_point in this color - } - - printf ( \ - "%s%s\n", - substr (mount_point, 1, posGroup - 1), - class, - substr (mount_point, posGroup) ); - } - else - { - printf ("%s\n", mount_point); - } - - printf ( \ - "%s%s\n", - substr (all_stars, 1, stars_number), substr (all_stars, stars_number + 1, 49) ); - - if (percentage_free < free_threshold) - { - color_beginning = ""; - color_end = "" - } - else - { - color_beginning = ""; - color_end = "" - } - - if (total_size > 1 * t_bytes) - printf ( \ - "%s%3d%%%s%5.1f Tb%5.1f Tb\n", \ - color_beginning, percentage_occupied, color_end, free_size / t_bytes, total_size / t_bytes \ - ); - else if (total_size > 1 * g_bytes) - printf ( \ - "%s%3d%%%s%5.1f Gb%5.1f Gb\n", \ - color_beginning, percentage_occupied, color_end, free_size / g_bytes, total_size / g_bytes \ - ); - else if (total_size > 1 * m_byptes) - printf ( \ - "%s%3d%%%s%5.1f Mb%5.1f Mb\n", \ - color_beginning, percentage_occupied, color_end, free_size / m_bytes, total_size / m_bytes \ - ); - else - printf ( \ - "%s%3d%%%s%5.1f Kb%5.1f Kb\n", \ - color_beginning, percentage_occupied, color_end, free_size / k_bytes, total_size / k_bytes \ - ); - - printf ("\n"); - } - - else - { -# printf ("percentage_occupied = %d\n", percentage_occupied); -# printf ("percentage_free = %d\n", percentage_free); - - printf ("%-*s", LEFT_COLUMN + 2, mount_point); - if (NARROW_MODE) - printf ("\n%s", narrow_margin); - -# printf ("stars_number = %d\n", stars_number); - - printf ("|"); - for (i = 1; i <= stars_number; i++) - { - printf ("%s", "*"); - } - for (i = stars_number + 1; i <= 49; i++) - { - printf ("%s", "-"); - } - - - if (total_size > 1 * t_bytes) - printf ( \ - "| %3d%% %5.1f %5.1f Tb\n", \ - percentage_occupied, free_size / t_bytes, total_size / t_bytes \ - ); - else if (total_size > 1 * g_bytes) - printf ( \ - "| %3d%% %5.1f %5.1f Gb\n", \ - percentage_occupied, free_size / g_bytes, total_size / g_bytes \ - ); - else if (total_size > 1 * m_byptes) - printf ( \ - "| %3d%% %5.1f %5.1f Mb\n", \ - percentage_occupied, free_size / m_bytes, total_size / m_bytes \ - ); - else - printf ( \ - "| %3d%% %5.1f %5.1f Kb\n", \ - percentage_occupied, free_size / k_bytes, total_size / k_bytes \ - ); - } - } # if -}' diff --git a/.config/awesome/lain/scripts/mpdcover b/.config/awesome/lain/scripts/mpdcover deleted file mode 100755 index f6cf0d6..0000000 --- a/.config/awesome/lain/scripts/mpdcover +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/bash -# -# A simple cover fetcher script for current playing song on mpd. -# -# Author : Wolfgang Mueller -# -# Adapted for Lain internal use. -# https://github.com/copycat-killer/lain -# -# You can use, edit and redistribute this script in any way you like. -# -# Dependencies: imagemagick. -# -# Usage: mpdcover - -# Configuration------------------------------------------------------- - -# Music directory -MUSIC_DIR=$1 - -# Song file -file=$2 - -# Regex expression used for image search -IMG_REG="(Front|front|Cover|cover|Art|art|Folder|folder)\.(jpg|jpeg|png|gif)$" - -# Path of temporary resized cover -TEMP_PATH="/tmp/mpdcover.png" - -# Resize cover -COVER_RESIZE="$3x$3" - -if [ $COVER_RESIZE == "x" ]; then - COVER_RESIZE="100x100" -fi - -# The default cover to use (optional) -DEFAULT_ART=$4 - -# Thumbnail background (transparent) -COVER_BACKGROUND="none" - -#-------------------------------------------------------------------- - -# check if anything is playing at all -[[ -z $file ]] && exit 1 - -# Art directory -art="$MUSIC_DIR/${file%/*}" - -# find every file that matches IMG_REG set the first matching file to be the -# cover. -cover="$(find "$art/" -maxdepth 1 -type f | egrep -i -m1 "$IMG_REG")" - -# when no cover is found, use DEFAULT_ART as cover -cover="${cover:=$DEFAULT_ART}" - -# check if art is available -if [[ -n $cover ]]; then - if [[ -n $COVER_RESIZE ]]; then - convert "$cover" -thumbnail $COVER_RESIZE -gravity "center" -background "$COVER_BACKGROUND" -extent $COVER_RESIZE "$TEMP_PATH" - cover="$TEMP_PATH" - fi -else - rm $TEMP_PATH -fi - -exit 0 diff --git a/.config/awesome/lain/util/init.lua b/.config/awesome/lain/util/init.lua deleted file mode 100644 index 2f28b9a..0000000 --- a/.config/awesome/lain/util/init.lua +++ /dev/null @@ -1,213 +0,0 @@ - ---[[ - - Lain - Layouts, widgets and utilities for Awesome WM - - Utilities section - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local awful = require("awful") -local beautiful = require("beautiful") -local math = { sqrt = math.sqrt } -local mouse = mouse -local pairs = pairs -local string = { gsub = string.gsub } -local client = client -local screen = screen -local tonumber = tonumber - -local wrequire = require("lain.helpers").wrequire -local setmetatable = setmetatable - --- Lain utilities submodule --- lain.util -local util = { _NAME = "lain.util" } - --- Like awful.menu.clients, but only show clients of currently selected --- tags. -function util.menu_clients_current_tags(menu, args) - -- List of currently selected tags. - local cls_tags = awful.tag.selectedlist(mouse.screen) - - -- Final list of menu items. - local cls_t = {} - - if cls_tags == nil then return nil end - - -- For each selected tag get all clients of that tag and add them to - -- the menu. A click on a menu item will raise that client. - for i = 1,#cls_tags - do - local t = cls_tags[i] - local cls = t:clients() - - for k, c in pairs(cls) - do - cls_t[#cls_t + 1] = { awful.util.escape(c.name) or "", - function () - c.minimized = false - client.focus = c - c:raise() - end, - c.icon } - end - end - - -- No clients? Then quit. - if #cls_t <= 0 then return nil end - - -- menu may contain some predefined values, otherwise start with a - -- fresh menu. - if not menu then menu = {} end - - -- Set the list of items and show the menu. - menu.items = cls_t - local m = awful.menu.new(menu) - m:show(args) - return m -end - --- Magnify a client: Set it to "float" and resize it. -function util.magnify_client(c) - if not awful.client.floating.get(c) then - awful.client.floating.set(c, true) - - local mg = screen[mouse.screen].geometry - local tag = awful.tag.selected(mouse.screen) - local mwfact = awful.tag.getmwfact(tag) - local g = {} - g.width = math.sqrt(mwfact) * mg.width - g.height = math.sqrt(mwfact) * mg.height - g.x = mg.x + (mg.width - g.width) / 2 - g.y = mg.y + (mg.height - g.height) / 2 - c:geometry(g) - else - awful.client.floating.set(c, false) - end -end - --- Read the nice value of pid from /proc. -local function get_nice_value(pid) - local n = first_line('/proc/' .. pid .. '/stat') - if n == nil - then - -- This should not happen. But I don't want to crash, either. - return 0 - end - - -- Remove pid and tcomm. This is necessary because tcomm may contain - -- nasty stuff such as whitespace or additional parentheses... - n = string.gsub(n, '.*%) ', '') - - -- Field number 17 now is the nice value. - fields = split(n, ' ') - return tonumber(fields[17]) -end - --- To be used as a signal handler for "focus" --- This requires beautiful.border_focus{,_highprio,_lowprio}. -function util.niceborder_focus(c) - local n = get_nice_value(c.pid) - if n == 0 - then - c.border_color = beautiful.border_focus - elseif n < 0 - then - c.border_color = beautiful.border_focus_highprio - else - c.border_color = beautiful.border_focus_lowprio - end -end - --- To be used as a signal handler for "unfocus" --- This requires beautiful.border_normal{,_highprio,_lowprio}. -function util.niceborder_unfocus(c) - local n = get_nice_value(c.pid) - if n == 0 - then - c.border_color = beautiful.border_normal - elseif n < 0 - then - c.border_color = beautiful.border_normal_highprio - else - c.border_color = beautiful.border_normal_lowprio - end -end - --- Non-empty tag browsing --- direction in {-1, 1} <-> {previous, next} non-empty tag -function util.tag_view_nonempty(direction, sc) - local s = sc or mouse.screen or 1 - local scr = screen[s] - - for i = 1, #awful.tag.gettags(s) do - awful.tag.viewidx(direction,s) - if #awful.client.visible(s) > 0 then - return - end - end -end - --- {{{ Dynamic tagging --- --- Add a new tag -function util.add_tag(mypromptbox) - awful.prompt.run({prompt="New tag name: "}, mypromptbox[mouse.screen].widget, - function(text) - if text:len() > 0 then - props = { selected = true } - tag = awful.tag.add(new_name, props) - tag.name = text - tag:emit_signal("property::name") - end - end) -end - --- Rename current tag --- @author: minism -function util.rename_tag(mypromptbox) - local tag = awful.tag.selected(mouse.screen) - awful.prompt.run({prompt="Rename tag: "}, mypromptbox[mouse.screen].widget, - function(text) - if text:len() > 0 then - tag.name = text - tag:emit_signal("property::name") - end - end) -end - --- Move current tag --- pos in {-1, 1} <-> {previous, next} tag position -function util.move_tag(pos) - local tag = awful.tag.selected(mouse.screen) - local idx = awful.tag.getidx(tag) - if tonumber(pos) <= -1 then - awful.tag.move(idx - 1, tag) - else - awful.tag.move(idx + 1, tag) - end -end - --- Remove current tag (if empty) --- Any rule set on the tag shall be broken -function util.remove_tag() - local tag = awful.tag.selected(mouse.screen) - local prevtag = awful.tag.gettags(mouse.screen)[awful.tag.getidx(tag) - 1] - awful.tag.delete(tag, prevtag) -end --- --- }}} - --- On the fly useless gaps change -function util.useless_gaps_resize(thatmuch) - beautiful.useless_gap_width = tonumber(beautiful.useless_gap_width) + thatmuch - awful.layout.arrange(mouse.screen) -end - -return setmetatable(util, { __index = wrequire }) diff --git a/.config/awesome/lain/util/markup.lua b/.config/awesome/lain/util/markup.lua deleted file mode 100644 index d367bca..0000000 --- a/.config/awesome/lain/util/markup.lua +++ /dev/null @@ -1,69 +0,0 @@ - ---[[ - - Licensed under MIT License - * (c) 2013, Luke Bonham - * (c) 2009, Uli Schlachter - * (c) 2009, Majic - ---]] - -local beautiful = require("beautiful") -local tostring = tostring -local setmetatable = setmetatable - --- Lain markup util submodule --- lain.util.markup -local markup = {} - -local fg = {} -local bg = {} - --- Convenience tags. -function markup.bold(text) return '' .. tostring(text) .. '' end -function markup.italic(text) return '' .. tostring(text) .. '' end -function markup.strike(text) return '' .. tostring(text) .. '' end -function markup.underline(text) return '' .. tostring(text) .. '' end -function markup.monospace(text) return '' .. tostring(text) .. '' end -function markup.big(text) return '' .. tostring(text) .. '' end -function markup.small(text) return '' .. tostring(text) .. '' end - --- Set the font. -function markup.font(font, text) - return '' .. tostring(text) ..'' -end - --- Set the foreground. -function fg.color(color, text) - return '' .. tostring(text) .. '' -end - --- Set the background. -function bg.color(color, text) - return '' .. tostring(text) .. '' -end - --- Context: focus -function fg.focus(text) return fg.color(beautiful.fg_focus, text) end -function bg.focus(text) return bg.color(beautiful.bg_focus, text) end -function markup.focus(text) return bg.focus(fg.focus(text)) end - --- Context: normal -function fg.normal(text) return fg.color(beautiful.fg_normal, text) end -function bg.normal(text) return bg.color(beautiful.bg_normal, text) end -function markup.normal(text) return bg.normal(fg.normal(text)) end - --- Context: urgent -function fg.urgent(text) return fg.color(beautiful.fg_urgent, text) end -function bg.urgent(text) return bg.color(beautiful.bg_urgent, text) end -function markup.urgent(text) return bg.urgent(fg.urgent(text)) end - -markup.fg = fg -markup.bg = bg - --- link markup.{fg,bg}(...) calls to markup.{fg,bg}.color(...) -setmetatable(markup.fg, { __call = function(_, ...) return markup.fg.color(...) end }) -setmetatable(markup.bg, { __call = function(_, ...) return markup.bg.color(...) end }) - --- link markup(...) calls to markup.fg.color(...) -return setmetatable(markup, { __call = function(_, ...) return markup.fg.color(...) end }) diff --git a/.config/awesome/lain/widgets/alsa.lua b/.config/awesome/lain/widgets/alsa.lua deleted file mode 100644 index 28bb05c..0000000 --- a/.config/awesome/lain/widgets/alsa.lua +++ /dev/null @@ -1,65 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010, Adrian C. - ---]] - -local newtimer = require("lain.helpers").newtimer - -local wibox = require("wibox") - -local io = { popen = io.popen } -local string = { match = string.match } - -local setmetatable = setmetatable - --- ALSA volume --- lain.widgets.alsa -local alsa = {} - -local function worker(args) - local args = args or {} - local timeout = args.timeout or 5 - local channel = args.channel or "Master" - local settings = args.settings or function() end - - alsa.widget = wibox.widget.textbox('') - - function alsa.update() - local f = assert(io.popen('amixer get ' .. channel)) - local mixer = f:read("*all") - f:close() - - volume_now = {} - - volume_now.level, volume_now.status = string.match(mixer, "([%d]+)%%.*%[([%l]*)") - - if volume_now.level == nil - then - volume_now.level = "0" - volume_now.status = "off" - end - - if volume_now.status == "" - then - if volume_now.level == "0" - then - volume_now.status = "off" - else - volume_now.status = "on" - end - end - - widget = alsa.widget - settings() - end - - newtimer("alsa", timeout, alsa.update) - - return setmetatable(alsa, { __index = alsa.widget }) -end - -return setmetatable(alsa, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/alsabar.lua b/.config/awesome/lain/widgets/alsabar.lua deleted file mode 100644 index 365ac2d..0000000 --- a/.config/awesome/lain/widgets/alsabar.lua +++ /dev/null @@ -1,175 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2013, Rman - ---]] - -local newtimer = require("lain.helpers").newtimer - -local awful = require("awful") -local beautiful = require("beautiful") -local naughty = require("naughty") - -local io = { popen = io.popen } -local math = { modf = math.modf } -local string = { format = string.format, - match = string.match, - rep = string.rep } -local tonumber = tonumber - -local setmetatable = setmetatable - --- ALSA volume bar --- lain.widgets.alsabar -local alsabar = -{ - channel = "Master", - step = "5%", - - colors = - { - background = beautiful.bg_normal, - mute = "#EB8F8F", - unmute = "#A4CE8A" - }, - - terminal = terminal or "xterm", - mixer = terminal .. " -e alsamixer", - - notifications = - { - font = beautiful.font:sub(beautiful.font:find(""), beautiful.font:find(" ")), - font_size = "11", - color = beautiful.fg_normal, - bar_size = 18 - }, - - _current_level = 0, - _muted = false -} - -function alsabar.notify() - alsabar.update() - - local preset = - { - title = "", - text = "", - timeout = 4, - font = alsabar.notifications.font .. " " .. - alsabar.notifications.font_size, - fg = alsabar.notifications.color - } - - if alsabar._muted - then - preset.title = alsabar.channel .. " - Muted" - else - preset.title = alsabar.channel .. " - " .. alsabar._current_level * 100 .. "%" - end - - int = math.modf(alsabar._current_level * alsabar.notifications.bar_size) - preset.text = "[" - .. string.rep("|", int) - .. string.rep(" ", alsabar.notifications.bar_size - int) - .. "]" - - if alsabar._notify ~= nil then - alsabar._notify = naughty.notify ({ - replaces_id = alsabar._notify.id, - preset = preset - }) - else - alsabar._notify = naughty.notify ({ - preset = preset - }) - end -end - -local function worker(args) - local args = args or {} - local timeout = args.timeout or 4 - local settings = args.settings or function() end - local width = args.width or 63 - local height = args.heigth or 1 - local ticks = args.ticks or false - local ticks_size = args.ticks_size or 7 - local vertical = args.vertical or false - - alsabar.channel = args.channel or alsabar.channel - alsabar.step = args.step or alsabar.step - alsabar.colors = args.colors or alsabar.colors - alsabar.notifications = args.notifications or alsabar.notifications - - alsabar.bar = awful.widget.progressbar() - - alsabar.bar:set_background_color(alsabar.colors.background) - alsabar.bar:set_color(alsabar.colors.unmute) - alsabar.tooltip = awful.tooltip({ objects = { alsabar.bar } }) - alsabar.bar:set_width(width) - alsabar.bar:set_height(height) - alsabar.bar:set_ticks(ticks) - alsabar.bar:set_ticks_size(ticks_size) - alsabar.bar:set_vertical(vertical) - - function alsabar.update() - -- Get mixer control contents - local f = io.popen("amixer get " .. alsabar.channel) - local mixer = f:read("*all") - f:close() - - -- Capture mixer control state: [5%] ... ... [on] - local volu, mute = string.match(mixer, "([%d]+)%%.*%[([%l]*)") - - if volu == nil then - volu = 0 - mute = "off" - end - - alsabar._current_level = tonumber(volu) / 100 - alsabar.bar:set_value(alsabar._current_level) - - if not mute and tonumber(volu) == 0 or mute == "off" - then - alsabar._muted = true - alsabar.tooltip:set_text (" [Muted] ") - alsabar.bar:set_color(alsabar.colors.mute) - else - alsabar._muted = false - alsabar.tooltip:set_text(string.format(" %s:%s ", alsabar.channel, volu)) - alsabar.bar:set_color(alsabar.colors.unmute) - end - - volume_now = {} - volume_now.level = tonumber(volu) - volume_now.status = mute - settings() - end - - newtimer("alsabar", timeout, alsabar.update) - - alsabar.bar:buttons (awful.util.table.join ( - awful.button ({}, 1, function() - awful.util.spawn(alsabar.mixer) - end), - awful.button ({}, 3, function() - awful.util.spawn(string.format("amixer set %s toggle", alsabar.channel)) - alsabar.update() - end), - awful.button ({}, 4, function() - awful.util.spawn(string.format("amixer set %s %s+", alsabar.channel, alsabar.step)) - alsabar.update() - end), - awful.button ({}, 5, function() - awful.util.spawn(string.format("amixer set %s %s-", alsabar.channel, alsabar.step)) - alsabar.update() - end) - )) - - return alsabar -end - -return setmetatable(alsabar, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/base.lua b/.config/awesome/lain/widgets/base.lua deleted file mode 100644 index 3d4ce9e..0000000 --- a/.config/awesome/lain/widgets/base.lua +++ /dev/null @@ -1,40 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2014, Luke Bonham - ---]] - -local newtimer = require("lain.helpers").newtimer -local wibox = require("wibox") - -local io = io -local setmetatable = setmetatable - --- Basic template for custom widgets --- lain.widgets.base -local base = {} - -local function worker(args) - local args = args or {} - local timeout = args.timeout or 5 - local cmd = args.cmd or "" - local settings = args.settings or function() end - - base.widget = wibox.widget.textbox('') - - function base.update() - local f = assert(io.popen(cmd)) - output = f:read("*all") - f:close() - widget = base.widget - settings() - end - - newtimer(cmd, timeout, base.update) - - return setmetatable(base, { __index = base.widget }) -end - -return setmetatable(base, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/bat.lua b/.config/awesome/lain/widgets/bat.lua deleted file mode 100644 index 485fd57..0000000 --- a/.config/awesome/lain/widgets/bat.lua +++ /dev/null @@ -1,149 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local newtimer = require("lain.helpers").newtimer -local first_line = require("lain.helpers").first_line - -local naughty = require("naughty") -local wibox = require("wibox") - -local math = { floor = math.floor } -local string = { format = string.format } -local tonumber = tonumber - -local setmetatable = setmetatable - --- Battery infos --- lain.widgets.bat -local bat = {} - -local function worker(args) - local args = args or {} - local timeout = args.timeout or 30 - local battery = args.battery or "BAT0" - local notify = args.notify or "on" - local settings = args.settings or function() end - - bat.widget = wibox.widget.textbox('') - - bat_notification_low_preset = { - title = "Battery low", - text = "Plug the cable!", - timeout = 15, - fg = "#202020", - bg = "#CDCDCD" - } - - bat_notification_critical_preset = { - title = "Battery exhausted", - text = "Shutdown imminent", - timeout = 15, - fg = "#000000", - bg = "#FFFFFF" - } - - function update() - bat_now = { - status = "Not present", - perc = "N/A", - time = "N/A", - watt = "N/A" - } - - local bstr = "/sys/class/power_supply/" .. battery - - local present = first_line(bstr .. "/present") - - if present == "1" - then - local rate = first_line(bstr .. "/power_now") or - first_line(bstr .. "/current_now") - - local ratev = first_line(bstr .. "/voltage_now") - - local rem = first_line(bstr .. "/energy_now") or - first_line(bstr .. "/charge_now") - - local tot = first_line(bstr .. "/energy_full") or - first_line(bstr .. "/charge_full") - - bat_now.status = first_line(bstr .. "/status") or "N/A" - - rate = tonumber(rate) or 1 - ratev = tonumber(ratev) - rem = tonumber(rem) - tot = tonumber(tot) - - local time_rat = 0 - if bat_now.status == "Charging" - then - time_rat = (tot - rem) / rate - elseif bat_now.status == "Discharging" - then - time_rat = rem / rate - end - - local hrs = math.floor(time_rat) - if hrs < 0 then hrs = 0 elseif hrs > 23 then hrs = 23 end - - local min = math.floor((time_rat - hrs) * 60) - if min < 0 then min = 0 elseif min > 59 then min = 59 end - - bat_now.time = string.format("%02d:%02d", hrs, min) - - bat_now.perc = first_line(bstr .. "/capacity") - - if not bat_now.perc then - local perc = (rem / tot) * 100 - if perc <= 100 then - bat_now.perc = string.format("%d", perc) - elseif perc > 100 then - bat_now.perc = "100" - elseif perc < 0 then - bat_now.perc = "0" - end - end - - if rate ~= nil and ratev ~= nil then - bat_now.watt = string.format("%.2fW", (rate * ratev) / 1e12) - else - bat_now.watt = "N/A" - end - - end - - widget = bat.widget - settings() - - -- notifications for low and critical states - bat_now.perc = tonumber(bat_now.perc) - if bat_now.status == "Discharging" and notify == "on" and bat_now.perc ~= nil - then - if bat_now.perc <= 5 - then - bat.id = naughty.notify({ - preset = bat_notification_critical_preset, - replaces_id = bat.id - }).id - elseif bat_now.perc <= 15 - then - bat.id = naughty.notify({ - preset = bat_notification_low_preset, - replaces_id = bat.id - }).id - end - end - end - - newtimer("bat", timeout, update) - - return bat.widget -end - -return setmetatable(bat, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/borderbox.lua b/.config/awesome/lain/widgets/borderbox.lua deleted file mode 100644 index c251ea8..0000000 --- a/.config/awesome/lain/widgets/borderbox.lua +++ /dev/null @@ -1,61 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local wibox = require("awful.wibox") -local setmetatable = setmetatable - --- Creates a thin wibox at a position relative to another wibox --- lain.widgets.borderbox -local borderbox = {} - -local function worker(relbox, s, args) - local where = args.position or 'top' - local color = args.color or '#FFFFFF' - local size = args.size or 1 - local box = nil - local wiboxarg = { - position = nil, - bg = color - } - - if where == 'top' - then - wiboxarg.width = relbox.width - wiboxarg.height = size - box = wibox(wiboxarg) - box.x = relbox.x - box.y = relbox.y - size - elseif where == 'bottom' - then - wiboxarg.width = relbox.width - wiboxarg.height = size - box = wibox(wiboxarg) - box.x = relbox.x - box.y = relbox.y + relbox.height - elseif where == 'left' - then - wiboxarg.width = size - wiboxarg.height = relbox.height - box = wibox(wiboxarg) - box.x = relbox.x - size - box.y = relbox.y - elseif where == 'right' - then - wiboxarg.width = size - wiboxarg.height = relbox.height - box = wibox(wiboxarg) - box.x = relbox.x + relbox.width - box.y = relbox.y - end - - box.screen = s - return box -end - -return setmetatable(borderbox, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/calendar.lua b/.config/awesome/lain/widgets/calendar.lua deleted file mode 100644 index b227c8e..0000000 --- a/.config/awesome/lain/widgets/calendar.lua +++ /dev/null @@ -1,125 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - ---]] - -local icons_dir = require("lain.helpers").icons_dir - -local awful = require("awful") -local beautiful = require("beautiful") -local naughty = require("naughty") - -local io = io -local os = { date = os.date } -local tonumber = tonumber - -local setmetatable = setmetatable - --- Calendar notification --- lain.widgets.calendar -local calendar = {} -local cal_notification = nil - -function calendar:hide() - if cal_notification ~= nil then - naughty.destroy(cal_notification) - cal_notification = nil - end -end - -function calendar:show(t_out, inc_offset) - calendar:hide() - - local offs = inc_offset or 0 - local tims = t_out or 0 - local f, c_text - local today = tonumber(os.date('%d')) - local init_t = '/usr/bin/cal -h | sed -r -e "s/(^| )( ' - - if offs == 0 - then -- current month showing, today highlighted - if today >= 10 - then - init_t = '/usr/bin/cal -h | sed -r -e "s/(^| )(' - end - - calendar.offset = 0 - calendar.notify_icon = calendar.icons .. today .. ".png" - - -- bg and fg inverted to highlight today - f = io.popen( init_t .. today .. - ')($| )/\\1\\2<\\/span><\\/b>\\3/"' ) - - else -- no current month showing, no day to highlight - local month = tonumber(os.date('%m')) - local year = tonumber(os.date('%Y')) - - calendar.offset = calendar.offset + offs - month = month + calendar.offset - - if month > 12 then - month = month % 12 - year = year + 1 - if month <= 0 then - month = 12 - end - elseif month < 1 then - month = month + 12 - year = year - 1 - if month <= 0 then - month = 1 - end - end - - calendar.notify_icon = nil - - f = io.popen('/usr/bin/cal -h ' .. month .. ' ' .. year) - end - - c_text = "" - .. f:read() .. "\n\n" - .. f:read() .. "\n" - .. f:read("*all"):gsub("\n*$", "") - .. "" - f:close() - - cal_notification = naughty.notify({ - text = c_text, - icon = calendar.notify_icon, - position = calendar.position, - fg = calendar.fg, - bg = calendar.bg, - timeout = tims - }) -end - -function calendar:attach(widget, args) - local args = args or {} - calendar.icons = args.icons or icons_dir .. "cal/white/" - calendar.font = args.font or beautiful.font:sub(beautiful.font:find(""), - beautiful.font:find(" ")) - calendar.font_size = tonumber(args.font_size) or 11 - calendar.fg = args.fg or beautiful.fg_normal or "#FFFFFF" - calendar.bg = args.bg or beautiful.bg_normal or "#FFFFFF" - calendar.position = args.position or "top_right" - - calendar.offset = 0 - calendar.notify_icon = nil - - widget:connect_signal("mouse::enter", function () calendar:show() end) - widget:connect_signal("mouse::leave", function () calendar:hide() end) - widget:buttons(awful.util.table.join( awful.button({ }, 1, function () - calendar:show(0, -1) end), - awful.button({ }, 3, function () - calendar:show(0, 1) end) )) -end - -return setmetatable(calendar, { __call = function(_, ...) return create(...) end }) diff --git a/.config/awesome/lain/widgets/contrib/ccurr.lua b/.config/awesome/lain/widgets/contrib/ccurr.lua deleted file mode 100644 index f696a35..0000000 --- a/.config/awesome/lain/widgets/contrib/ccurr.lua +++ /dev/null @@ -1,82 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2014, Aaron Lebo - ---]] - -local newtimer = require("lain.helpers").newtimer - -local wibox = require("wibox") -local json = require("dkjson") - -local string = { format = string.format } -local tonumber = tonumber - --- Crypto currencies widget --- lain.widgets.contrib.ccurr -local ccurr = {} - --- Currently gets --- * BTC/USD --- * DOGE/USD --- using Coinbase and Cryptsy APIs. - --- requires http://dkolf.de/src/dkjson-lua.fsl/home --- based upon http://awesome.naquadah.org/wiki/Bitcoin_Price_Widget - -local function get(url) - local f = io.popen('curl -m 5 -s "' .. url .. '"') - if not f then - return 0 - else - local s = f:read("*all") - f:close() - return s - end -end - -local function parse(j) - local obj, pos, err = json.decode(j, 1, nil) - if err then - return nil - else - return obj - end -end - -local function worker(args) - local args = args or {} - local timeout = args.timeout or 600 - local btc_url = args.btc_url or "https://coinbase.com/api/v1/prices/buy" - local doge_url = args.doge_url or "http://pubapi.cryptsy.com/api.php?method=singlemarketdata&marketid=132" - local settings = args.settings or function() end - - ccurr.widget = wibox.widget.textbox('') - - local function update() - price_now = { - btc = "N/A", - doge = "N/A" - } - - btc = parse(get(btc_url)) - doge = parse(get(doge_url)) - - if btc and doge then - price_now.btc = tonumber(btc["subtotal"]["amount"]) - price_now.doge = tonumber(doge["return"]["markets"]["DOGE"]["lasttradeprice"]) - price_now.doge = string.format("%.4f", price_now.btc * price_now.doge) - end - - widget = ccurr.widget - settings() - end - - newtimer("ccurr", timeout, update) - - return ccurr.widget -end - -return setmetatable(ccurr, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/contrib/init.lua b/.config/awesome/lain/widgets/contrib/init.lua deleted file mode 100644 index 9a9fa63..0000000 --- a/.config/awesome/lain/widgets/contrib/init.lua +++ /dev/null @@ -1,20 +0,0 @@ - ---[[ - - Lain - Layouts, widgets and utilities for Awesome WM - - Users contributed widgets section - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local wrequire = require("lain.helpers").wrequire -local setmetatable = setmetatable - -local widgets = { _NAME = "lain.widgets.contrib" } - -return setmetatable(widgets, { __index = wrequire }) diff --git a/.config/awesome/lain/widgets/contrib/task.lua b/.config/awesome/lain/widgets/contrib/task.lua deleted file mode 100644 index a6c9f31..0000000 --- a/.config/awesome/lain/widgets/contrib/task.lua +++ /dev/null @@ -1,133 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2013, Jan Xie - ---]] - -local icons_dir = require("lain.helpers").icons_dir - -local awful = require("awful") -local beautiful = require("beautiful") -local naughty = require("naughty") - -local io = io -local string = { len = string.len } -local tonumber = tonumber - -local setmetatable = setmetatable - --- Taskwarrior notification --- lain.widgets.task -local task = {} - -local task_notification = nil - -function task:hide() - if task_notification ~= nil then - naughty.destroy(task_notification) - task_notification = nil - end -end - -function task:show() - task:hide() - - local f, c_text - - f = io.popen('task') - c_text = "" - .. f:read("*all"):gsub("\n*$", "") - .. "" - f:close() - - task_notification = naughty.notify({ title = "[task next]", - text = c_text, - icon = task.notify_icon, - position = task.position, - fg = task.fg, - bg = task.bg, - timeout = task.timeout }) -end - -function task:prompt_add() - awful.prompt.run({ prompt = "Add task: " }, - mypromptbox[mouse.screen].widget, - function (...) - local f = io.popen("task add " .. ...) - c_text = "\n" - .. f:read("*all") - .. "" - f:close() - - naughty.notify({ - text = c_text, - icon = task.notify_icon, - position = task.position, - fg = task.fg, - bg = task.bg, - timeout = task.timeout - }) - end, - nil, - awful.util.getdir("cache") .. "/history_task_add") -end - -function task:prompt_search() - awful.prompt.run({ prompt = "Search task: " }, - mypromptbox[mouse.screen].widget, - function (...) - local f = io.popen("task " .. ...) - c_text = f:read("*all"):gsub(" \n*$", "") - f:close() - - if string.len(c_text) == 0 - then - c_text = "No results found." - else - c_text = "" - .. c_text - .. "" - end - - naughty.notify({ - title = "[task next " .. ... .. "]", - text = c_text, - icon = task.notify_icon, - position = task.position, - fg = task.fg, - bg = task.bg, - timeout = task.timeout - }) - end, - nil, - awful.util.getdir("cache") .. "/history_task") -end - -function task:attach(widget, args) - local args = args or {} - - task.font_size = tonumber(args.font_size) or 12 - task.font = beautiful.font:sub(beautiful.font:find(""), - beautiful.font:find(" ")) - task.fg = args.fg or beautiful.fg_normal or "#FFFFFF" - task.bg = args.bg or beautiful.bg_normal or "#FFFFFF" - task.position = args.position or "top_right" - task.timeout = args.timeout or 7 - - task.notify_icon = icons_dir .. "/taskwarrior/task.png" - task.notify_icon_small = icons_dir .. "/taskwarrior/tasksmall.png" - - widget:connect_signal("mouse::enter", function () task:show() end) - widget:connect_signal("mouse::leave", function () task:hide() end) -end - -return setmetatable(task, { __call = function(_, ...) return create(...) end }) diff --git a/.config/awesome/lain/widgets/contrib/tpbat/init.lua b/.config/awesome/lain/widgets/contrib/tpbat/init.lua deleted file mode 100644 index 72d6453..0000000 --- a/.config/awesome/lain/widgets/contrib/tpbat/init.lua +++ /dev/null @@ -1,166 +0,0 @@ - ---[[ - - tpbat.lua - Battery status widget for ThinkPad laptops that use SMAPI - lain.widgets.contrib.tpbat - - More on tp_smapi: http://www.thinkwiki.org/wiki/Tp_smapi - - Licensed under GNU General Public License v2 - * (c) 2013, Conor Heine - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local debug = { getinfo = debug.getinfo } -local newtimer = require("lain.helpers").newtimer -local first_line = require("lain.helpers").first_line -local beautiful = require("beautiful") -local naughty = require("naughty") -local wibox = require("wibox") - -local string = { format = string.format } -local math = { floor = math.floor } -local tostring = tostring -local setmetatable = setmetatable - -package.path = debug.getinfo(1,"S").source:match[[^@?(.*[\/])[^\/]-$]] .. "?.lua;" .. package.path -local smapi = require("smapi") - --- ThinkPad SMAPI-enabled battery info widget --- lain.widgets.contrib.tpbat -local tpbat = { } -local tpbat_notification = nil - -function tpbat:hide() - if tpbat_notification ~= nil - then - naughty.destroy(tpbat_notification) - tpbat_notification = nil - end -end - -function tpbat:show(t_out) - tpbat:hide() - - local bat = self.bat - local t_out = t_out or 0 - - if bat == nil or not bat:installed() then return end - - local mfgr = bat:get('manufacturer') or "no_mfgr" - local model = bat:get('model') or "no_model" - local chem = bat:get('chemistry') or "no_chem" - local status = bat:get('state') or "nil" - local time = bat:remaining_time() - local msg = "\t" - - if status ~= "idle" and status ~= "nil" - then - if time == "N/A" - then - msg = "...Calculating time remaining..." - else - msg = time .. (status == "charging" and " until charged" or " remaining") - end - else - msg = "On AC Power" - end - - local str = string.format("%s : %s %s (%s)\n", bat.name, mfgr, model, chem) - .. string.format("\n%s \t\t\t %s", status:upper(), msg) - - tpbat_notification = naughty.notify({ - preset = { fg = beautiful.fg_normal }, - text = str, - timeout = t_out - }) -end - -function tpbat.register(args) - local args = args or {} - local timeout = args.timeout or 30 - local battery = args.battery or "BAT0" - local settings = args.settings or function() end - - tpbat.bat = smapi:battery(battery) -- Create a new battery - local bat = tpbat.bat - - tpbat.widget = wibox.widget.textbox('') - - bat_notification_low_preset = { - title = "Battery low", - text = "Plug the cable!", - timeout = 15, - fg = "#202020", - bg = "#CDCDCD" - } - - bat_notification_critical_preset = { - title = "Battery exhausted", - text = "Shutdown imminent", - timeout = 15, - fg = "#000000", - bg = "#FFFFFF" - } - - if bat:get('state') == nil - then - local n = naughty.notify({ - preset = bat_notification_low_preset, - title = "SMAPI Battery Warning: Unable to read battery state!", - text = "This widget is intended for ThinkPads. Is tp_smapi installed? Check your configs & paths." - }) - end - - function update() - bat_now = { - status = "Not present", - perc = "N/A", - time = "N/A", - watt = "N/A" - } - - if bat:installed() - then - bat_now.status = bat:status() or "N/A" - bat_now.perc = bat:percent() - bat_now.time = bat:remaining_time() - -- bat_now.watt = string.format("%.2fW", (VOLTS * AMPS) / 1e12) - - -- notifications for low and critical states (when discharging) - if bat_now.status == "discharging" - then - if bat_now.perc <= 5 - then - tpbat.id = naughty.notify({ - preset = bat_notification_critical_preset, - replaces_id = tpbat.id - }).id - elseif bat_now.perc <= 15 - then - tpbat.id = naughty.notify({ - preset = bat_notification_low_preset, - replaces_id = tpbat.id - }).id - end - end - - bat_now.perc = tostring(bat_now.perc) - end - - widget = tpbat.widget - settings() - end - - newtimer("tpbat", timeout, update) - - widget:connect_signal('mouse::enter', function () tpbat:show() end) - widget:connect_signal('mouse::leave', function () tpbat:hide() end) - - return tpbat.widget -end - -return setmetatable(tpbat, { __call = function(_, ...) return tpbat.register(...) end }) diff --git a/.config/awesome/lain/widgets/contrib/tpbat/smapi.lua b/.config/awesome/lain/widgets/contrib/tpbat/smapi.lua deleted file mode 100644 index 862d4cd..0000000 --- a/.config/awesome/lain/widgets/contrib/tpbat/smapi.lua +++ /dev/null @@ -1,102 +0,0 @@ - ---[[ - - smapi.lua - Interface with thinkpad battery information - - Licensed under GNU General Public License v2 - * (c) 2013, Conor Heine - ---]] - -local first_line = require("lain.helpers").first_line - -local string = { format = string.format } -local tonumber = tonumber -local setmetatable = setmetatable - -local smapi = {} - -local apipath = "/sys/devices/platform/smapi" - --- Most are readable values, but some can be written to (not implemented, yet?) -local readable = { - barcoding = true, - charging_max_current = true, - charging_max_voltage = true, - chemistry = true, - current_avg = true, - current_now = true, - cycle_count = true, - design_capacity = true, - design_voltage = true, - dump = true, - first_use_date = true, - force_discharge = false, - group0_voltage = true, - group1_voltage = true, - group2_voltage = true, - group3_voltage = true, - inhibit_charge_minutes = false, - installed = true, - last_full_capacity = true, - manufacture_date = true, - manufacturer = true, - model = true, - power_avg = true, - power_now = true, - remaining_capacity = true, - remaining_charging_time = true, - remaining_percent = true, - remaining_percent_error = true, - remaining_running_time = true, - remaining_running_time_now = true, - serial = true, - start_charge_thresh = false, - state = true, - stop_charge_thresh = false, - temperature = true, - voltage = true, -} - -function smapi:battery(name) - local bat = {} - - bat.name = name - bat.path = apipath .. "/" .. name - - function bat:get(item) - return self.path ~= nil and readable[item] and first_line(self.path .. "/" .. item) or nil - end - - function bat:installed() - return self:get("installed") == "1" - end - - function bat:status() - return self:get('state') - end - - -- Remaining time can either be time until battery dies or time until charging completes - function bat:remaining_time() - local time_val = bat_now.status == 'discharging' and 'remaining_running_time' or 'remaining_charging_time' - local mins_left = self:get(time_val) - - if mins_left:find("^%d+") == nil - then - return "N/A" - end - - local hrs = mins_left / 60 - local min = mins_left % 60 - return string.format("%02d:%02d", hrs, min) - end - - function bat:percent() - return tonumber(self:get("remaining_percent")) - end - - return setmetatable(bat, {__metatable = false, __newindex = false}) -end - -return smapi diff --git a/.config/awesome/lain/widgets/cpu.lua b/.config/awesome/lain/widgets/cpu.lua deleted file mode 100644 index 0b21edc..0000000 --- a/.config/awesome/lain/widgets/cpu.lua +++ /dev/null @@ -1,77 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local first_line = require("lain.helpers").first_line -local newtimer = require("lain.helpers").newtimer - -local wibox = require("wibox") - -local math = { ceil = math.ceil } -local string = { format = string.format, - gmatch = string.gmatch } -local tostring = tostring - -local setmetatable = setmetatable - --- CPU usage --- lain.widgets.cpu -local cpu = { - last_total = 0, - last_active = 0 -} - -local function worker(args) - local args = args or {} - local timeout = args.timeout or 5 - local settings = args.settings or function() end - - cpu.widget = wibox.widget.textbox('') - - function update() - -- Read the amount of time the CPUs have spent performing - -- different kinds of work. Read the first line of /proc/stat - -- which is the sum of all CPUs. - local times = first_line("/proc/stat") - local at = 1 - local idle = 0 - local total = 0 - for field in string.gmatch(times, "[%s]+([^%s]+)") - do - -- 3 = idle, 4 = ioWait. Essentially, the CPUs have done - -- nothing during these times. - if at == 3 or at == 4 - then - idle = idle + field - end - total = total + field - at = at + 1 - end - local active = total - idle - - -- Read current data and calculate relative values. - local dactive = active - cpu.last_active - local dtotal = total - cpu.last_total - - cpu_now = {} - cpu_now.usage = tostring(math.ceil((dactive / dtotal) * 100)) - - widget = cpu.widget - settings() - - -- Save current data for the next run. - cpu.last_active = active - cpu.last_total = total - end - - newtimer("cpu", timeout, update) - - return cpu.widget -end - -return setmetatable(cpu, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/fs.lua b/.config/awesome/lain/widgets/fs.lua deleted file mode 100644 index 7406e05..0000000 --- a/.config/awesome/lain/widgets/fs.lua +++ /dev/null @@ -1,120 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010, Adrian C. - * (c) 2009, Lucas de Vries - ---]] - -local helpers = require("lain.helpers") - -local beautiful = require("beautiful") -local wibox = require("wibox") -local naughty = require("naughty") - -local io = io -local pairs = pairs -local string = { match = string.match, - format = string.format } -local tonumber = tonumber - -local setmetatable = setmetatable - --- File system disk space usage --- lain.widgets.fs -local fs = {} - -local notification = nil -fs_notification_preset = { fg = beautiful.fg_normal } - -function fs:hide() - if notification ~= nil then - naughty.destroy(notification) - notification = nil - end -end - -function fs:show(t_out) - fs:hide() - - local f = io.popen(helpers.scripts_dir .. "dfs") - ws = f:read("*all"):gsub("\n*$", "") - f:close() - - notification = naughty.notify({ - preset = fs_notification_preset, - text = ws, - timeout = t_out - }) -end - --- Units definitions -local unit = { ["mb"] = 1024, ["gb"] = 1024^2 } - -local function worker(args) - local args = args or {} - local timeout = args.timeout or 600 - local partition = args.partition or "/" - local settings = args.settings or function() end - - fs.widget = wibox.widget.textbox('') - - helpers.set_map("fs", false) - - function update() - fs_info = {} - fs_now = {} - - local f = io.popen("LC_ALL=C df -kP") - - for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount) - local s = string.match(line, "^.-[%s]([%d]+)") - local u,a,p = string.match(line, "([%d]+)[%D]+([%d]+)[%D]+([%d]+)%%") - local m = string.match(line, "%%[%s]([%p%w]+)") - - if u and m then -- Handle 1st line and broken regexp - fs_info[m .. " size_mb"] = string.format("%.1f", tonumber(s) / unit["mb"]) - fs_info[m .. " size_gb"] = string.format("%.1f", tonumber(s) / unit["gb"]) - fs_info[m .. " used_p"] = tonumber(p) - fs_info[m .. " avail_p"] = 100 - tonumber(p) - end - end - - f:close() - - -- chosen partition easy stuff - -- you can however check whatever partition else - fs_now.used = tonumber(fs_info[partition .. " used_p"]) or 0 - fs_now.available = tonumber(fs_info[partition .. " avail_p"]) or 0 - fs_now.size_mb = tonumber(fs_info[partition .. " size_mb"]) or 0 - fs_now.size_gb = tonumber(fs_info[partition .. " size_gb"]) or 0 - - widget = fs.widget - settings() - - if fs_now.used >= 99 and not helpers.get_map("fs") - then - naughty.notify({ - title = "warning", - text = partition .. " ran out!\nmake some room", - timeout = 8, - fg = "#000000", - bg = "#FFFFFF" - }) - helpers.set_map("fs", true) - else - helpers.set_map("fs", false) - end - end - - helpers.newtimer(partition, timeout, update) - - widget:connect_signal('mouse::enter', function () fs:show(0) end) - widget:connect_signal('mouse::leave', function () fs:hide() end) - - return setmetatable(fs, { __index = fs.widget }) -end - -return setmetatable(fs, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/imap.lua b/.config/awesome/lain/widgets/imap.lua deleted file mode 100644 index 39518bd..0000000 --- a/.config/awesome/lain/widgets/imap.lua +++ /dev/null @@ -1,87 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - ---]] - -local helpers = require("lain.helpers") - -local naughty = require("naughty") -local wibox = require("wibox") - -local io = { popen = io.popen } -local string = { format = string.format, - gsub = string.gsub } -local tonumber = tonumber - -local setmetatable = setmetatable - --- Mail IMAP check --- lain.widgets.imap -local imap = {} - -local function worker(args) - local args = args or {} - - local server = args.server - local mail = args.mail - local password = args.password - - local port = args.port or 993 - local timeout = args.timeout or 60 - local is_plain = args.is_plain or false - local settings = args.settings or function() end - - local head_command = "curl --connect-timeout 1 -fsm 3" - local request = "-X 'SEARCH (UNSEEN)'" - - helpers.set_map(mail, 0) - - if not is_plain - then - local f = io.popen(password) - password = f:read("*all"):gsub("\n", "") - f:close() - end - - imap.widget = wibox.widget.textbox('') - - function update() - mail_notification_preset = { - icon = helpers.icons_dir .. "mail.png", - position = "top_left" - } - - curl = string.format("%s --url imaps://%s:%s/INBOX -u %s:%s %s -k", - head_command, server, port, mail, password, request) - - f = io.popen(curl) - ws = f:read("*all") - f:close() - - _, mailcount = string.gsub(ws, "%d+", "") - _ = nil - - widget = imap.widget - settings() - - if mailcount > helpers.get_map(mail) and mailcount >= 1 - then - if mailcount == 1 then - nt = mail .. " has one new message" - else - nt = mail .. " has " .. mailcount .. " new messages" - end - naughty.notify({ preset = mail_notification_preset, text = nt }) - end - - helpers.set_map(mail, mailcount) - end - - helpers.newtimer(mail, timeout, update, true) - return imap.widget -end - -return setmetatable(imap, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/init.lua b/.config/awesome/lain/widgets/init.lua deleted file mode 100644 index 0e863ba..0000000 --- a/.config/awesome/lain/widgets/init.lua +++ /dev/null @@ -1,20 +0,0 @@ - ---[[ - - Lain - Layouts, widgets and utilities for Awesome WM - - Widgets section - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local wrequire = require("lain.helpers").wrequire -local setmetatable = setmetatable - -local widgets = { _NAME = "lain.widgets" } - -return setmetatable(widgets, { __index = wrequire }) diff --git a/.config/awesome/lain/widgets/maildir.lua b/.config/awesome/lain/widgets/maildir.lua deleted file mode 100644 index d460881..0000000 --- a/.config/awesome/lain/widgets/maildir.lua +++ /dev/null @@ -1,95 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local newtimer = require("lain.helpers").newtimer - -local wibox = require("wibox") - -local io = io -local os = { getenv = os.getenv } -local pairs = pairs -local string = { len = string.len, - match = string.match } -local table = { sort = table.sort } - -local setmetatable = setmetatable - --- Maildir check --- lain.widgets.maildir -local maildir = {} - -local function worker(args) - local args = args or {} - local timeout = args.timeout or 60 - local mailpath = args.mailpath or os.getenv("HOME") .. "/Mail" - local ignore_boxes = args.ignore_boxes or {} - local settings = args.settings or function() end - - maildir.widget = wibox.widget.textbox('') - - function update() - -- Find pathes to mailboxes. - local p = io.popen("find " .. mailpath .. - " -mindepth 1 -maxdepth 1 -type d" .. - " -not -name .git") - local boxes = {} - repeat - line = p:read("*l") - if line ~= nil - then - -- Find all files in the "new" subdirectory. For each - -- file, print a single character (no newline). Don't - -- match files that begin with a dot. - -- Afterwards the length of this string is the number of - -- new mails in that box. - local np = io.popen("find " .. line .. - "/new -mindepth 1 -type f " .. - "-not -name '.*' -printf a") - local mailstring = np:read("*all") - - -- Strip off leading mailpath. - local box = string.match(line, mailpath .. "/*([^/]+)") - local nummails = string.len(mailstring) - if nummails > 0 - then - boxes[box] = nummails - end - end - until line == nil - - table.sort(boxes) - - newmail = "no mail" - - local count = 0 - for box, number in pairs(boxes) - do - count = count + 1 - -- Add this box only if it's not to be ignored. - if not util.element_in_table(box, ignore_boxes) - then - if newmail == "" - then - newmail = box .. "(" .. number .. ")" - else - newmail = newmail .. ", " .. - box .. "(" .. number .. ")" - end - end - end - - widget = maildir.widget - settings() - end - - newtimer(mailpath, timeout, update, true) - return maildir.widget -end - -return setmetatable(maildir, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/mem.lua b/.config/awesome/lain/widgets/mem.lua deleted file mode 100644 index 986fa76..0000000 --- a/.config/awesome/lain/widgets/mem.lua +++ /dev/null @@ -1,61 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local newtimer = require("lain.helpers").newtimer - -local wibox = require("wibox") - -local io = { lines = io.lines } -local math = { floor = math.floor } -local string = { format = string.format, - gmatch = string.gmatch, - len = string.len } - -local setmetatable = setmetatable - --- Memory usage (ignoring caches) --- lain.widgets.mem -local mem = {} - -local function worker(args) - local args = args or {} - local timeout = args.timeout or 3 - local settings = args.settings or function() end - - mem.widget = wibox.widget.textbox('') - - function update() - mem_now = {} - for line in io.lines("/proc/meminfo") - do - for k, v in string.gmatch(line, "([%a]+):[%s]+([%d]+).+") - do - if k == "MemTotal" then mem_now.total = math.floor(v / 1024) - elseif k == "MemFree" then mem_now.free = math.floor(v / 1024) - elseif k == "Buffers" then mem_now.buf = math.floor(v / 1024) - elseif k == "Cached" then mem_now.cache = math.floor(v / 1024) - elseif k == "SwapTotal" then mem_now.swap = math.floor(v / 1024) - elseif k == "SwapFree" then mem_now.swapf = math.floor(v / 1024) - end - end - end - - mem_now.used = mem_now.total - (mem_now.free + mem_now.buf + mem_now.cache) - mem_now.swapused = mem_now.swap - mem_now.swapf - - widget = mem.widget - settings() - end - - newtimer("mem", timeout, update) - - return mem.widget -end - -return setmetatable(mem, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/mpd.lua b/.config/awesome/lain/widgets/mpd.lua deleted file mode 100644 index 600dbac..0000000 --- a/.config/awesome/lain/widgets/mpd.lua +++ /dev/null @@ -1,110 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010, Adrian C. - ---]] - -local helpers = require("lain.helpers") - -local escape_f = require("awful.util").escape -local naughty = require("naughty") -local wibox = require("wibox") - -local io = { popen = io.popen } -local os = { execute = os.execute, - getenv = os.getenv } -local string = { format = string.format, - gmatch = string.gmatch } - -local setmetatable = setmetatable - --- MPD infos --- lain.widgets.mpd -local mpd = {} - -local function worker(args) - local args = args or {} - local timeout = args.timeout or 2 - local password = args.password or "" - local host = args.host or "127.0.0.1" - local port = args.port or "6600" - local music_dir = args.music_dir or os.getenv("HOME") .. "/Music" - local cover_size = args.cover_size or 100 - local default_art = args.default_art or "" - local settings = args.settings or function() end - - local mpdcover = helpers.scripts_dir .. "mpdcover" - local mpdh = "telnet://" .. host .. ":" .. port - local echo = "echo 'password " .. password .. "\nstatus\ncurrentsong\nclose'" - - mpd.widget = wibox.widget.textbox('') - - mpd_notification_preset = { - -- title = "now playing\n░░░░▒▒▒▒▓▓▓▓▓▓████████▓▓▓▓▓▓▒▒▒▒░░░░", - title = "now playing", - timeout = 6 - } - - helpers.set_map("current mpd track", nil) - - function mpd.update() - mpd_now = { - state = "N/A", - file = "N/A", - artist = "N/A", - title = "N/A", - album = "N/A", - date = "N/A" - } - - local f = io.popen(echo .. " | curl --connect-timeout 1 -fsm 3 " .. mpdh) - - for line in f:lines() do - for k, v in string.gmatch(line, "([%w]+):[%s](.*)$") do - if k == "state" then mpd_now.state = v - elseif k == "file" then mpd_now.file = v - elseif k == "Artist" then mpd_now.artist = escape_f(v) - elseif k == "Title" then mpd_now.title = escape_f(v) - elseif k == "Album" then mpd_now.album = escape_f(v) - elseif k == "Date" then mpd_now.date = escape_f(v) - end - end - end - - f:close() - - mpd_notification_preset.text = string.format("%s (%s) - %s\n%s", mpd_now.artist, - mpd_now.album, mpd_now.date, mpd_now.title) - widget = mpd.widget - settings() - - if mpd_now.state == "play" - then - if mpd_now.title ~= helpers.get_map("current mpd track") - then - helpers.set_map("current mpd track", mpd_now.title) - - os.execute(string.format("%s %q %q %d %q", mpdcover, music_dir, - mpd_now.file, cover_size, default_art)) - - mpd.id = naughty.notify({ - preset = mpd_notification_preset, - icon = "/tmp/mpdcover.png", - replaces_id = mpd.id - }).id - end - elseif mpd_now.state ~= "pause" - then - helpers.set_map("current mpd track", nil) - end - end - - helpers.newtimer("mpd", timeout, mpd.update) - - return setmetatable(mpd, { __index = mpd.widget }) -end - -return setmetatable(mpd, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/net.lua b/.config/awesome/lain/widgets/net.lua deleted file mode 100644 index af97201..0000000 --- a/.config/awesome/lain/widgets/net.lua +++ /dev/null @@ -1,102 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local helpers = require("lain.helpers") - -local notify_fg = require("beautiful").fg_focus -local naughty = require("naughty") -local wibox = require("wibox") - -local io = io -local tostring = tostring -local string = { format = string.format, - gsub = string.gsub } - -local setmetatable = setmetatable - --- Network infos --- lain.widgets.net -local net = { - last_t = 0, - last_r = 0 -} - -function net.get_device() - f = io.popen("ip link show | cut -d' ' -f2,9") - ws = f:read("*all") - f:close() - ws = ws:match("%w+: UP") - if ws ~= nil then - return ws:gsub(": UP", "") - else - return "network off" - end -end - -local function worker(args) - local args = args or {} - local timeout = args.timeout or 2 - local iface = args.iface or net.get_device() - local units = args.units or 1024 --kb - local settings = args.settings or function() end - - net.widget = wibox.widget.textbox('') - - helpers.set_map(iface, true) - - function update() - net_now = {} - - if iface == "" then iface = net.get_device() end - - net_now.carrier = helpers.first_line('/sys/class/net/' .. iface .. - '/carrier') or "0" - net_now.state = helpers.first_line('/sys/class/net/' .. iface .. - '/operstate') or "down" - local now_t = helpers.first_line('/sys/class/net/' .. iface .. - '/statistics/tx_bytes') or 0 - local now_r = helpers.first_line('/sys/class/net/' .. iface .. - '/statistics/rx_bytes') or 0 - - net_now.sent = tostring((now_t - net.last_t) / timeout / units) - net_now.sent = string.gsub(string.format('%.1f', net_now.sent), ",", ".") - - net_now.received = tostring((now_r - net.last_r) / timeout / units) - net_now.received = string.gsub(string.format('%.1f', net_now.received), ",", ".") - - widget = net.widget - settings() - - net.last_t = now_t - net.last_r = now_r - - if net_now.carrier ~= "1" - then - if helpers.get_map(iface) - then - naughty.notify({ - title = iface, - text = "no carrier", - timeout = 7, - position = "top_left", - icon = helpers.icons_dir .. "no_net.png", - fg = notify_fg or "#FFFFFF" - }) - helpers.set_map(iface, false) - end - else - helpers.set_map(iface, true) - end - end - - helpers.newtimer(iface, timeout, update) - return net.widget -end - -return setmetatable(net, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/sysload.lua b/.config/awesome/lain/widgets/sysload.lua deleted file mode 100644 index 2abac33..0000000 --- a/.config/awesome/lain/widgets/sysload.lua +++ /dev/null @@ -1,46 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - ---]] - -local newtimer = require("lain.helpers").newtimer - -local wibox = require("wibox") - -local io = { open = io.open } -local string = { format = string.format, - match = string.match } - -local setmetatable = setmetatable - --- System load --- lain.widgets.sysload -local sysload = {} - -local function worker(args) - local args = args or {} - local timeout = args.timeout or 5 - local settings = args.settings or function() end - - sysload.widget = wibox.widget.textbox('') - - function update() - local f = io.open("/proc/loadavg") - local ret = f:read("*all") - f:close() - - load_1, load_5, load_15 = string.match(ret, "([^%s]+) ([^%s]+) ([^%s]+)") - - widget = sysload.widget - settings() - end - - newtimer("sysload", timeout, update) - return sysload.widget -end - -return setmetatable(sysload, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/temp.lua b/.config/awesome/lain/widgets/temp.lua deleted file mode 100644 index 61a9aa5..0000000 --- a/.config/awesome/lain/widgets/temp.lua +++ /dev/null @@ -1,48 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - ---]] - -local newtimer = require("lain.helpers").newtimer - -local wibox = require("wibox") - -local io = io -local tonumber = tonumber - -local setmetatable = setmetatable - --- coretemp --- lain.widgets.temp -local temp = {} - -local function worker(args) - local args = args or {} - local timeout = args.timeout or 5 - local tempfile = args.tempfile or "/sys/class/thermal/thermal_zone0/temp" - local settings = args.settings or function() end - - temp.widget = wibox.widget.textbox('') - - function update() - local f = io.open(tempfile) - if f ~= nil - then - coretemp_now = tonumber(f:read("*all")) / 1000 - f:close() - else - coretemp_now = "N/A" - end - - widget = temp.widget - settings() - end - - newtimer("coretemp", timeout, update) - return temp.widget -end - -return setmetatable(temp, { __call = function(_, ...) return worker(...) end }) diff --git a/.config/awesome/lain/widgets/yawn/icons/BlowingSnow.png b/.config/awesome/lain/widgets/yawn/icons/BlowingSnow.png deleted file mode 100755 index 6223f8f..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/BlowingSnow.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/Cloudy.png b/.config/awesome/lain/widgets/yawn/icons/Cloudy.png deleted file mode 100755 index bac1e7e..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/Cloudy.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/DayClear.png b/.config/awesome/lain/widgets/yawn/icons/DayClear.png deleted file mode 100755 index d9e2745..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/DayClear.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/DayFair.png b/.config/awesome/lain/widgets/yawn/icons/DayFair.png deleted file mode 120000 index 8ee94d1..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/DayFair.png +++ /dev/null @@ -1 +0,0 @@ -DayClear.png \ No newline at end of file diff --git a/.config/awesome/lain/widgets/yawn/icons/DayMostlyCloudy.png b/.config/awesome/lain/widgets/yawn/icons/DayMostlyCloudy.png deleted file mode 100755 index 22b929c..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/DayMostlyCloudy.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/DayPartlyCloudy.png b/.config/awesome/lain/widgets/yawn/icons/DayPartlyCloudy.png deleted file mode 100755 index 8fd0a5b..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/DayPartlyCloudy.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/Drizzle.png b/.config/awesome/lain/widgets/yawn/icons/Drizzle.png deleted file mode 120000 index df34463..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/Drizzle.png +++ /dev/null @@ -1 +0,0 @@ -Rain.png \ No newline at end of file diff --git a/.config/awesome/lain/widgets/yawn/icons/Fog.png b/.config/awesome/lain/widgets/yawn/icons/Fog.png deleted file mode 120000 index b615645..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/Fog.png +++ /dev/null @@ -1 +0,0 @@ -Foggy.png \ No newline at end of file diff --git a/.config/awesome/lain/widgets/yawn/icons/Foggy.png b/.config/awesome/lain/widgets/yawn/icons/Foggy.png deleted file mode 100755 index 009039f..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/Foggy.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/FreezingDrizzle.png b/.config/awesome/lain/widgets/yawn/icons/FreezingDrizzle.png deleted file mode 100755 index 6a66140..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/FreezingDrizzle.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/FreezingRain.png b/.config/awesome/lain/widgets/yawn/icons/FreezingRain.png deleted file mode 100755 index c924fac..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/FreezingRain.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/Hail.png b/.config/awesome/lain/widgets/yawn/icons/Hail.png deleted file mode 100755 index 009039f..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/Hail.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/Haze.png b/.config/awesome/lain/widgets/yawn/icons/Haze.png deleted file mode 120000 index 0874a83..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/Haze.png +++ /dev/null @@ -1 +0,0 @@ -Hail.png \ No newline at end of file diff --git a/.config/awesome/lain/widgets/yawn/icons/HeavyRain.png b/.config/awesome/lain/widgets/yawn/icons/HeavyRain.png deleted file mode 120000 index ace2a94..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/HeavyRain.png +++ /dev/null @@ -1 +0,0 @@ -Showers.png \ No newline at end of file diff --git a/.config/awesome/lain/widgets/yawn/icons/HeavySnow.png b/.config/awesome/lain/widgets/yawn/icons/HeavySnow.png deleted file mode 100755 index ddcb8f3..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/HeavySnow.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/LightRain.png b/.config/awesome/lain/widgets/yawn/icons/LightRain.png deleted file mode 120000 index df34463..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/LightRain.png +++ /dev/null @@ -1 +0,0 @@ -Rain.png \ No newline at end of file diff --git a/.config/awesome/lain/widgets/yawn/icons/LightSnow.png b/.config/awesome/lain/widgets/yawn/icons/LightSnow.png deleted file mode 120000 index aa8b28e..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/LightSnow.png +++ /dev/null @@ -1 +0,0 @@ -LightSnowShowers.png \ No newline at end of file diff --git a/.config/awesome/lain/widgets/yawn/icons/LightSnowShowers.png b/.config/awesome/lain/widgets/yawn/icons/LightSnowShowers.png deleted file mode 100755 index d797ee9..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/LightSnowShowers.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/Mist.png b/.config/awesome/lain/widgets/yawn/icons/Mist.png deleted file mode 120000 index b615645..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/Mist.png +++ /dev/null @@ -1 +0,0 @@ -Foggy.png \ No newline at end of file diff --git a/.config/awesome/lain/widgets/yawn/icons/MixedRainAndHail.png b/.config/awesome/lain/widgets/yawn/icons/MixedRainAndHail.png deleted file mode 100755 index 758b01e..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/MixedRainAndHail.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/MixedRainAndSleet.png b/.config/awesome/lain/widgets/yawn/icons/MixedRainAndSleet.png deleted file mode 100755 index 7f0d252..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/MixedRainAndSleet.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/MixedRainAndSnow.png b/.config/awesome/lain/widgets/yawn/icons/MixedRainAndSnow.png deleted file mode 100755 index 0a07b7b..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/MixedRainAndSnow.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/NightClear.png b/.config/awesome/lain/widgets/yawn/icons/NightClear.png deleted file mode 100755 index 84ea140..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/NightClear.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/NightFair.png b/.config/awesome/lain/widgets/yawn/icons/NightFair.png deleted file mode 120000 index 23df45a..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/NightFair.png +++ /dev/null @@ -1 +0,0 @@ -NightClear.png \ No newline at end of file diff --git a/.config/awesome/lain/widgets/yawn/icons/NightMostlyCloudy.png b/.config/awesome/lain/widgets/yawn/icons/NightMostlyCloudy.png deleted file mode 100755 index d8b3673..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/NightMostlyCloudy.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/NightPartlyCloudy.png b/.config/awesome/lain/widgets/yawn/icons/NightPartlyCloudy.png deleted file mode 100755 index 9e4404d..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/NightPartlyCloudy.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/README.md b/.config/awesome/lain/widgets/yawn/icons/README.md deleted file mode 100644 index e4dc111..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/README.md +++ /dev/null @@ -1,6 +0,0 @@ -Yawn icons -========== - -These are [Plain Weather Icons](http://merlinthered.deviantart.com/art/plain-weather-icons-157162192), created by [MerlinTheRed](http://merlinthered.deviantart.com/). - - diff --git a/.config/awesome/lain/widgets/yawn/icons/Rain.png b/.config/awesome/lain/widgets/yawn/icons/Rain.png deleted file mode 100755 index d00552a..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/Rain.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/RainThunder.png b/.config/awesome/lain/widgets/yawn/icons/RainThunder.png deleted file mode 100755 index d30e120..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/RainThunder.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/Showers.png b/.config/awesome/lain/widgets/yawn/icons/Showers.png deleted file mode 100755 index 3cc6665..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/Showers.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/Sleet.png b/.config/awesome/lain/widgets/yawn/icons/Sleet.png deleted file mode 120000 index f8f9693..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/Sleet.png +++ /dev/null @@ -1 +0,0 @@ -SnowShowers.png \ No newline at end of file diff --git a/.config/awesome/lain/widgets/yawn/icons/Snow.png b/.config/awesome/lain/widgets/yawn/icons/Snow.png deleted file mode 120000 index f8f9693..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/Snow.png +++ /dev/null @@ -1 +0,0 @@ -SnowShowers.png \ No newline at end of file diff --git a/.config/awesome/lain/widgets/yawn/icons/SnowFlurries.png b/.config/awesome/lain/widgets/yawn/icons/SnowFlurries.png deleted file mode 120000 index 2e090cd..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/SnowFlurries.png +++ /dev/null @@ -1 +0,0 @@ -BlowingSnow.png \ No newline at end of file diff --git a/.config/awesome/lain/widgets/yawn/icons/SnowShowers.png b/.config/awesome/lain/widgets/yawn/icons/SnowShowers.png deleted file mode 100755 index 30534a2..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/SnowShowers.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/Sunny.png b/.config/awesome/lain/widgets/yawn/icons/Sunny.png deleted file mode 100755 index cf08c5c..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/Sunny.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/ThunderintheVicinity.png b/.config/awesome/lain/widgets/yawn/icons/ThunderintheVicinity.png deleted file mode 120000 index 1fb3b9c..0000000 --- a/.config/awesome/lain/widgets/yawn/icons/ThunderintheVicinity.png +++ /dev/null @@ -1 +0,0 @@ -Cloudy.png \ No newline at end of file diff --git a/.config/awesome/lain/widgets/yawn/icons/Wind.png b/.config/awesome/lain/widgets/yawn/icons/Wind.png deleted file mode 100755 index 5dc1356..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/Wind.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/icons/na.png b/.config/awesome/lain/widgets/yawn/icons/na.png deleted file mode 100755 index 62a5350..0000000 Binary files a/.config/awesome/lain/widgets/yawn/icons/na.png and /dev/null differ diff --git a/.config/awesome/lain/widgets/yawn/init.lua b/.config/awesome/lain/widgets/yawn/init.lua deleted file mode 100644 index 3f08cd5..0000000 --- a/.config/awesome/lain/widgets/yawn/init.lua +++ /dev/null @@ -1,200 +0,0 @@ - ---[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - ---]] - -local newtimer = require("lain.helpers").newtimer - -local naughty = require("naughty") -local wibox = require("wibox") - -local debug = { getinfo = debug.getinfo } -local io = io -local os = { date = os.date, - getenv = os.getenv } -local string = { find = string.find, - match = string.match, - gsub = string.gsub, - sub = string.sub } -local tonumber = tonumber - -local setmetatable = setmetatable - --- YAhoo! Weather Notification --- lain.widgets.yawn -local yawn = -{ - icon = wibox.widget.imagebox(), - widget = wibox.widget.textbox('') -} - -local project_path = debug.getinfo(1, 'S').source:match[[^@(.*/).*$]] -local localizations_path = project_path .. 'localizations/' -local icon_path = project_path .. 'icons/' -local api_url = 'http://weather.yahooapis.com/forecastrss' -local units_set = '?u=c&w=' -- Default is Celsius -local language = string.match(os.getenv("LANG"), "(%S*$*)[.]") -local weather_data = nil -local notification = nil -local city_id = nil -local sky = nil -local settings = function() end - -yawn_notification_preset = {} - -local function fetch_weather() - local url = api_url .. units_set .. city_id - local f = io.popen("curl --connect-timeout 1 -fsm 3 '" .. url .. "'" ) - local text = f:read("*all") - f:close() - - -- In case of no connection or invalid city ID - -- widgets won't display - if text == "" or text:match("City not found") - then - yawn.icon:set_image(icon_path .. "na.png") - if text == "" then - weather_data = "Service not available at the moment." - yawn.widget:set_text(" N/A ") - else - weather_data = "City not found!\n" .. - "Are you sure " .. city_id .. - " is your Yahoo city ID?" - yawn.widget:set_text(" ? ") - end - return - end - - -- Processing raw data - weather_data = text:gsub("<.->", "") - weather_data = weather_data:match("Current Conditions:.-Full") or "" - - -- may still happens in case of bad connectivity - if weather_data == "" then - yawn.icon:set_image(icon_path .. "na.png") - yawn.widget:set_text(" ? ") - return - end - - weather_data = weather_data:gsub("Current Conditions:.-\n", "Now: ") - weather_data = weather_data:gsub("Forecast:.-\n", "") - weather_data = weather_data:gsub("\nFull", "") - weather_data = weather_data:gsub("[\n]$", "") - weather_data = weather_data:gsub(" [-] " , ": ") - weather_data = weather_data:gsub("[.]", ",") - weather_data = weather_data:gsub("High: ", "") - weather_data = weather_data:gsub(" Low: ", " - ") - - -- Getting info for text widget - local now = weather_data:sub(weather_data:find("Now:")+5, - weather_data:find("\n")-1) - forecast = now:sub(1, now:find(",")-1) - units = now:sub(now:find(",")+2, -2) - - -- Day/Night icon change - local hour = tonumber(os.date("%H")) - sky = icon_path - - if forecast == "Clear" or - forecast == "Fair" or - forecast == "Partly Cloudy" or - forecast == "Mostly Cloudy" - then - if hour >= 6 and hour <= 18 - then - sky = sky .. "Day" - else - sky = sky .. "Night" - end - end - - sky = sky .. forecast:gsub(" ", ""):gsub("/", "") .. ".png" - - -- In case there's no defined icon for current forecast - if io.open(sky) == nil then - sky = icon_path .. "na.png" - end - - -- Localization - local f = io.open(localizations_path .. language, "r") - if language:find("en_") == nil and f ~= nil - then - f:close() - for line in io.lines(localizations_path .. language) - do - word = string.sub(line, 1, line:find("|")-1) - translation = string.sub(line, line:find("|")+1) - weather_data = string.gsub(weather_data, word, translation) - end - end - - -- Finally setting infos - yawn.icon:set_image(sky) - widget = yawn.widget - - forecast = weather_data:match(": %S.-,"):gsub(": ", ""):gsub(",", "") - units = units:gsub(" ", "") - - settings() -end - -function yawn.hide() - if notification ~= nil then - naughty.destroy(notification) - notification = nil - end -end - -function yawn.show(t_out) - if yawn.widget._layout.text:match("?") - then - fetch_weather(settings) - end - - yawn.hide() - - notification = naughty.notify({ - preset = yawn_notification_preset, - text = weather_data, - icon = sky, - timeout = t_out - }) -end - -function yawn.register(id, args) - local args = args or {} - local timeout = args.timeout or 600 - settings = args.settings or function() end - - if args.u == "f" then units_set = '?u=f&w=' end - - city_id = id - - newtimer("yawn", timeout, fetch_weather) - - yawn.icon:connect_signal("mouse::enter", function() - yawn.show(0) - end) - yawn.icon:connect_signal("mouse::leave", function() - yawn.hide() - end) - - return yawn -end - -function yawn.attach(widget, id, args) - yawn.register(id, args) - - widget:connect_signal("mouse::enter", function() - yawn.show(0) - end) - - widget:connect_signal("mouse::leave", function() - yawn.hide() - end) -end - -return setmetatable(yawn, { __call = function(_, ...) return yawn.register(...) end }) diff --git a/.config/awesome/lain/widgets/yawn/localizations/it_IT b/.config/awesome/lain/widgets/yawn/localizations/it_IT deleted file mode 100644 index 70b0eef..0000000 --- a/.config/awesome/lain/widgets/yawn/localizations/it_IT +++ /dev/null @@ -1,60 +0,0 @@ -Now:|Ora: -Sun:|Dom: -Mon:|Lun: -Tue:|Mar: -Wed:|Mer: -Thu:|Gio: -Fri:|Ven: -Sat:|Sab: -Mostly Sunny|Abbastanza Soleggiato -Sunny|Soleggiato -Sun|Soleggiato -Rain/Thunder|Temporali -Isolated Thunderstorms|Temporali Isolati -Scattered Thunderstorms|Temporali Sparsi -Thundershowers|Rovesci Temporaleschi -Thunderstorms|Temporali -Thunder in the Vicinity|Tuoni in prossimità -Thunder|Temporale -AM|In Mattinata -PM|Nel Pomeriggio -Early|In Mattinata -Late|In Serata -Few|Sporadiche -Severe|Forti -Clear|Sereno -Fair|Sereno -Partly|Parzialmente -Mostly|Molto -Cloudy|Nuvoloso -Clouds|Nuvoloso -Scattered Showers|Temporali Sparsi -Light Snow Showers|Nevicate Leggere -Snow Showers|Nevicate -aeavy Snow|Forti Nevicate -Scattered Snow Showers|Nevicate Sparse -Mixed Rain And Snow|Pioggia E Neve -Mixed Rain And Sleet|Pioggia E Nevischio -Mixed Snow And Sleet|Neve E Nevischio -Mixed Rain And Hail|Pioggia E Grandine -Snow Flurries|Folate Di Neve -Blowing Snow|Neve Battente -Blowing Rain|Pioggia Battente -Heavy Rain|Forti Piogge -Freezing Rain|Pioggia Congelantesi -Showers|Piogge -Light Rain|Pioggia Leggera -Heavy|Forti -Rain|Piovoso -Windy|Ventoso -Wind|Ventoso -Snow|Neve -Sleet|Nevischio -Light Drizzle|Pioggia Leggera -Drizzle|Pioggia Leggera -Freezing Drizzle|Pioggerella Congelantesi -Hail|Grandine -Fog|Nebbia -Foggy|Nebbioso -Haze|Nebbia -Light|Leggere diff --git a/.config/awesome/lain/widgets/yawn/localizations/localization_template b/.config/awesome/lain/widgets/yawn/localizations/localization_template deleted file mode 100644 index 453807e..0000000 --- a/.config/awesome/lain/widgets/yawn/localizations/localization_template +++ /dev/null @@ -1,60 +0,0 @@ -Now:| -Sun:| -Mon:| -Tue:| -Wed:| -Thu:| -Fri:| -Sat:| -Mostly Sunny| -Sunny| -Sun| -Rain/Thunder| -Isolated Thunderstorms| -Scattered Thunderstorms| -Thundershowers| -Thunderstorms| -Thunder in the Vicinity| -Thunder| -AM| -PM| -Early| -Late| -Few| -Severe| -Clear| -Fair| -Partly| -Mostly| -Cloudy| -Clouds| -Scattered Showers| -Light Snow Showers| -Snow Showers| -Heavy Snow| -Scattered Snow Showers| -Mixed Rain And Snow| -Mixed Rain And Sleet| -Mixed Snow And Sleet| -Mixed Rain And Hail| -Snow Flurries| -Blowing Snow| -Blowing Rain| -Heavy Rain| -Freezing Rain| -Showers| -Light Rain| -Heavy| -Rain| -Windy| -Wind| -Snow| -Sleet| -Freezing Drizzle| -Light Drizzle| -Drizzle| -Hail| -Fog| -Foggy| -Haze| -Light| diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua deleted file mode 100755 index 8184abc..0000000 --- a/.config/awesome/rc.lua +++ /dev/null @@ -1,900 +0,0 @@ --- ██ --- ░██ a w e s o m e ██ --- ░██ ░██ --- █████ ░██████ ██████ ██████ ██████ --- ██░░░██░██░░░██ ██░░░░██ ██░░░░ ░░░██░ --- ██░░░██░██ ░██░██ ░██░░█████ ░██ --- ░██ ░██░██ ░██░██ ░██ ░░░░░██ ░██ ▄▄▄ --- ░░██████░██ ░██░░██████ ██████ ░░██ ▀█▀██ ▄ --- ░░░░░██░░ ░░ ░░░░░░ ░░░░░░ ░░ ▀▄██████▀ --- █████ ▀█████ --- ░░░░░ ▓▓▓▓▓▓▓▓▓▓ ▀▀██▄ --- ░▓ author ▓ xero ▀ --- ░▓ code ▓ http://code.xero.nu/dotfiles --- ░▓ mirror ▓ http://git.io/.files --- ░▓▓▓▓▓▓▓▓▓▓ --- ░░░░░░░░░░ - --- █▓▒░ libraries -gears = require("gears") -awful = require("awful") -awful.rules = require("awful.rules") -require("awful.autofocus") -wibox = require("wibox") -beautiful = require("beautiful") -naughty = require("naughty") -lain = require("lain") - --- █▓▒░ error handling -if awesome.startup_errors then - naughty.notify({ - preset = naughty.config.presets.critical, - title = "#@*! startup errors!", - text = awesome.startup_errors - }) -end -do - local in_error = false - awesome.connect_signal("debug::error", function (err) - if in_error then return end - in_error = true - naughty.notify({ - preset = naughty.config.presets.critical, - title = "#@*! an error occured!", - text = err - }) - in_error = false - end) -end - --- █▓▒░ variables -home = os.getenv("HOME") -config_dir = awful.util.getdir("config") - --- █▓▒░ user config -print(os.time().." : load config") -dofile(home.."/.config/awesome/config.lua") - --- █▓▒░ autostart applications -function run_once(cmd) - findme = cmd - firstspace = cmd:find(" ") - if firstspace then - findme = cmd:sub(0, firstspace-1) - end - awful.util.spawn_with_shell("pgrep -u $USER -x "..findme.." > /dev/null || ("..cmd..")") -end - -run_once("urxvtd") -run_once("unclutter") - --- █▓▒░ theme -beautiful.init(os.getenv("HOME").."/.config/awesome/themes/ghost/theme.lua") - --- █▓▒░ layouts -local layouts = { - -- awful layouts - -- awful.layout.suit.floating, - -- awful.layout.suit.tile, - -- awful.layout.suit.tile.left, - -- awful.layout.suit.tile.bottom, - -- awful.layout.suit.tile.top, - -- awful.layout.suit.fair, - -- awful.layout.suit.fair.horizontal, - -- awful.layout.suit.spiral, - -- awful.layout.suit.spiral.dwindle, - -- awful.layout.suit.max, - -- awful.layout.suit.max.fullscreen, - -- awful.layout.suit.magnifier, - -- lain layouts - awful.layout.suit.floating, - lain.layout.uselesstile, - lain.layout.uselesstile.left, - lain.layout.uselesstile.top, - lain.layout.uselesstile.bottom, - lain.layout.uselessfair, - lain.layout.uselessfair.horizontal, - lain.layout.termfair, - lain.layout.centerfair, - lain.layout.centerwork, - lain.layout.uselesspiral, - lain.layout.uselesspiral.dwindle, - awful.layout.suit.max.fullscreen, - awful.layout.suit.magnifier -} - --- █▓▒░ tag list -tags = { - names = {}, - layout = {} -} -for i = 1, tag_count do - tags.names[i] = tag_icon - tags.layout[i] = layouts[1] -end -for s = 1, screen.count() do - tags[s] = awful.tag(tags.names, s, tags.layout) -end - --- █▓▒░ wallpaper -if beautiful.wallpaper then - for s = 1, screen.count() do - gears.wallpaper.maximized(beautiful.wallpaper, s, true) - end -end - --- █▓▒░ menu -awesomemenu = { - {"░░▒▒▓▓███▓▓▒▒░░"}, - {"edit lua files :"}, - {"rc", editor_cmd.." "..home.."/.config/awesome/rc.lua"}, - {"config", editor_cmd.." "..home.."/.config/awesome/config.lua"}, - {"theme", editor_cmd.." "..home.."/.config/awesome/themes/ghost/theme.lua"}, - {"░░▒▒▓▓███▓▓▒▒░░"}, - {"reload", awesome.restart}, - {"exit", awesome.quit}, - {"showdown", "cb-exit"} -} -gfx_settings = { - {"view","bash "..home.."/code/sys/gfx-status.sh"}, - {"░░▒▒▓▓████▓▓▒▒░░"}, - {"switch to ati","bash "..home.."/code/sys/gfx-radeon.sh"}, - {"switch to intel","bash "..home.."/code/sys/gfx-intel.sh"}, - {"power off unused","bash "..home.."/code/sys/gfx-off.sh"}, - {"power on unused","bash "..home.."/code/sys/gfx-on.sh"}, -} -prefs = { - {"awesome", awesomemenu, beautiful.awesome_icon}, - {"~.xinitrc", editor_cmd.." .xinitrc"}, - {"wallpaper","nitrogen "..home.."/images/wallpapers/"}, - {"screensaver","xscreensaver-demo"}, - {"power manager","xfce4-power-manager-settings"}, - {"appearance","lxappearance"}, - {"resolution","arandr"}, - {"composite", composite}, - {"░░▒▒▓▓███▓▓▒▒░░"}, - {"graphix", gfx_settings}, -} -systemmenu = { - {"deb manager", "gksu synaptic"}, - {"gparted", "gksu gparted"}, - {"default apps", term_exec.."sudo update-alternatives --all"}, - {"disks usage", term_exec.."ncdu"}, - {"cleanup","bleachbit"}, - {"# terminal", rootterm}, -} -net = { - {"chrome", webgui}, - {"iceweasel", "iceweasel"}, - {"irc", irc}, - {"filezilla", ftpgui}, -} -screenshot = { - {"screenshot", "xfce4-screenshooter"}, - {"scrot", terminal.."scrot"}, - {"scrot in 5", terminal.."scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f bash "..home.."/images/ & viewnior bash "..home.."/images/$f'"}, -} -gfx = { - {"photoshop","playonlinux --run photoshop_portable"}, - {"gimp","gimp"}, - {"color picker","gcolor2"}, - {"░░▒▒▓▓███▓▓▒▒░░"}, - {"screenshot", screenshot}, -} -media = { - {"media player", mediaplayer}, - {"music player", musicplayer}, - {"mp3 metadata", mp3tag}, - {"cd/dvd burner", burner}, - {"volume", volumecontrol}, -} -office = { - {"sublime",guieditor}, - {"# sublime", "gksudo "..guieditor}, - {"word","abiword"}, -} -accessories = { - {"search",search}, - {"archive",archiver}, - {"sublime",guieditor}, - {"geany","geany"}, - {"terminal",terminal}, - { "# terminal", rootterm }, - {"files", filegui}, - {"# files", "gksu "..filegui}, - {"images",imageviewer}, - {"calculator",calc}, - {"pdf viewer",pdf}, - {"charmap","gucharmap"}, -} -applications = { - {"internet", net}, - {"graphix", gfx}, - {"entertainment", media}, - {"office", office}, - {"accessories", accessories}, -} -fun_scripts = { - {"colors", term_exec.."bash "..home.."/code/fun/colors"}, - {"colorscheme", term_exec.."bash "..home.."/code/fun/colorscheme"}, - {"dna", term_exec.."bash "..home.."/code/fun/dna"}, - {"ghosts", term_exec.."bash "..home.."/code/fun/ghosts"}, - {"hax0r", term_exec.."lua "..home.."/code/fun/2spooky.lua"}, - {"invaders", term_exec.."bash "..home.."/code/fun/invaders"}, - {"matrix", term_exec.."cmatrix"}, - {"pacman", term_exec.."bash "..home.."/code/fun/pacman"}, - {"pipes", term_exec.."bash "..home.."/code/fun/pipes"}, - {"pipesx", term_exec.."bash "..home.."/code/fun/pipesx"}, - {"rain", term_exec.."bash "..home.."/code/fun/rain"}, - {"screenfetch", term_exec.."bash "..home.."/code/fun/screenfetch"}, - {"skull", term_exec.."bash "..home.."/code/fun/skull"}, - {"slendy", term_exec.."bash "..home.."/code/fun/slendy"}, -} -climenu = { - {"blank", blanktag}, - {"$ terminal", terminal}, - {"# terminal", rootterm}, - {"file-manager", filecli}, - {"editor", editor_cmd}, - {"music player", musicplayer}, - {"web browser", webcli}, - {"cpu usage", cpucli}, - {"fun scripts", fun_scripts}, -} -mymainmenu = awful.menu({ - items = { - {"awesome", awesomemenu, beautiful.awesome_icon}, - {"run", runcmd}, - {"cli apps", climenu}, - {"░░▒▒▓▓███▓▓▒▒░░"}, - {"terminal", terminal}, - {"file manager", filegui}, - {"# file manager", "gksu "..filegui}, - {"web browser", webgui}, - {"text editor", guieditor}, - {"# text editor", "gksu "..guieditor}, - {"music player", musicplayer}, - {"media player", mediaplayer}, - {"keepass", passmanager}, - {"░░▒▒▓▓███▓▓▒▒░░"}, - {"applications", applications}, - {"preferences", prefs}, - {"system", systemmenu}, - {"░░▒▒▓▓███▓▓▒▒░░"}, - {"exit menu", exiter} - }, - width = 250 -}) - --- █▓▒░ wibox -markup = lain.util.markup - --- █▓▒░ textclock -clockicon = wibox.widget.imagebox(beautiful.widget_clock) -mytextclock = wibox.widget.background(awful.widget.textclock(markup("#FFFFFF",clock_format)), "#000000") - --- █▓▒░ calendar -lain.widgets.calendar:attach(mytextclock, { font_size = 10, fg = "#FFFFFF", position = "bottom_right" }) - --- █▓▒░ MPD --- mpdicon = wibox.widget.imagebox(beautiful.widget_music) --- mpdicon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(musicplayer) end))) --- mpdwidget = lain.widgets.mpd({ --- settings = function() --- mpdicon:set_image(beautiful.widget_music) --- if mpd_now.state == "play" then --- artist = " "..mpd_now.artist.." " --- -- truncate titles if too long --- title = string.sub(mpd_now.title, 0, 55).." " --- else --- artist = "" --- title = "" --- end - --- widget:set_markup(markup("#74999E", artist)..title) --- end --- }) --- mpdwidgetbg = mpdwidget - --- █▓▒░ systray -systray = wibox.widget.systray() - --- █▓▒░ memory -memicon = wibox.widget.background(wibox.widget.imagebox(beautiful.widget_mem), "#000000") -memwidget = wibox.widget.background(lain.widgets.mem({ - settings = function() - widget:set_text(" "..math.floor((mem_now.used/mem_now.total)*100).."% ") - end -}), "#000000") - --- █▓▒░ cpu -cpuicon = wibox.widget.background(wibox.widget.imagebox(beautiful.widget_cpu), "#313131") -cpuwidget = wibox.widget.background(lain.widgets.cpu({ - settings = function() - widget:set_text(" "..cpu_now.usage.."% ") - end -}), "#313131") - --- █▓▒░ temp -tempicon = wibox.widget.background(wibox.widget.imagebox(beautiful.widget_temp), "#313131") -tempwidget = wibox.widget.background(lain.widgets.temp({ - settings = function() - widget:set_text(" "..coretemp_now.."°C ") - end -}), "#313131") - --- █▓▒░ file system -fsicon = wibox.widget.background(wibox.widget.imagebox(beautiful.widget_hdd), "#000000") -fswidget = wibox.widget.background(lain.widgets.fs({ - settings = function() - widget:set_text(" "..fs_now.used.."% ") - end -}), "#000000") -fswidgetbg = fswidget - --- █▓▒░ battery -baticon = wibox.widget.imagebox(beautiful.widget_battery) -batwidget = lain.widgets.bat({ - battery = battery_id, - settings = function() - widget:set_markup(" "..bat_now.perc.."% ") - if bat_now.perc == "N/A" or bat_now.perc == "100" then - baticon:set_image(beautiful.widget_ac) - return - elseif tonumber(bat_now.perc) <= 5 then - baticon:set_image(beautiful.widget_battery_empty) - elseif tonumber(bat_now.perc) <= 15 then - baticon:set_image(beautiful.widget_battery_low) - else - baticon:set_image(beautiful.widget_battery) - end - end -}) - --- █▓▒░ network -neticon = wibox.widget.background(wibox.widget.imagebox(beautiful.widget_net), "#313131") -neticon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(iptraf) end))) -netwidget = wibox.widget.background(lain.widgets.net({ - settings = function() - widget:set_markup(markup("#ffffff", " "..net_now.received).. - markup("#ffffff", " / "..net_now.sent.." ")) - end -}), "#313131") - --- █▓▒░ separators -space = wibox.widget.textbox(' ') -black = wibox.widget.imagebox(beautiful.widget_black) -hash1 = wibox.widget.imagebox(beautiful.widget_hash1) -hash2 = wibox.widget.imagebox(beautiful.widget_hash2) -hash3 = wibox.widget.imagebox(beautiful.widget_hash3) -grey = wibox.widget.imagebox(beautiful.widget_grey) - --- █▓▒░ create a wibox for each screen and add it -mywibox = {} -mypromptbox = {} -mylayoutbox = {} -mytaglist = {} -mytaglist.buttons = awful.util.table.join( - awful.button({ }, 1, awful.tag.viewonly), - awful.button({ modkey }, 1, awful.client.movetotag), - awful.button({ }, 3, awful.tag.viewtoggle), - awful.button({ modkey }, 3, awful.client.toggletag), - awful.button({ }, 4, function(t) awful.tag.viewnext(awful.tag.getscreen(t)) end), - awful.button({ }, 5, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end) - ) -for s = 1, screen.count() do - - -- create a promptbox for each screen - mypromptbox[s] = awful.widget.prompt() - - -- we need one layoutbox per screen. - mylayoutbox[s] = wibox.widget.background(awful.widget.layoutbox(s), "#313131") - mylayoutbox[s]:buttons(awful.util.table.join( - awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end), - awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end), - awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end), - awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end))) - - -- create a taglist widget - mytaglist[s] = wibox.widget.background(awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons), beautiful.tag_bg_normal) - - -- create the wibox - mywibox[s] = awful.wibox({ position = bar_position, screen = s, height = 18 }) - - -- widgets that are aligned to the upper left - local left_layout = wibox.layout.fixed.horizontal() - left_layout:add(hash3) - left_layout:add(hash3) - left_layout:add(black) - left_layout:add(mytaglist[s]) - left_layout:add(black) - left_layout:add(hash1) - left_layout:add(hash1) - left_layout:add(grey) - left_layout:add(mylayoutbox[s]) - left_layout:add(grey) - left_layout:add(hash2) - left_layout:add(hash2) - left_layout:add(mypromptbox[s]) - left_layout:add(space) - - -- widgets that are aligned to the upper right - local right_layout = wibox.layout.fixed.horizontal() - if s == 1 then - right_layout:add(hash2) - right_layout:add(hash2) - right_layout:add(grey) - right_layout:add(systray) - right_layout:add(grey) - end - right_layout:add(hash1) - right_layout:add(hash1) - right_layout:add(black) - right_layout:add(mytextclock) - right_layout:add(black) - right_layout:add(hash3) - right_layout:add(hash3) - - local middle_layout = wibox.layout.fixed.horizontal() - middle_layout:add(hash2) - middle_layout:add(hash2) - middle_layout:add(grey) - middle_layout:add(cpuicon) - middle_layout:add(cpuwidget) - middle_layout:add(grey) - middle_layout:add(hash1) - middle_layout:add(hash1) - middle_layout:add(black) - middle_layout:add(memicon) - middle_layout:add(memwidget) - middle_layout:add(black) - middle_layout:add(hash1) - middle_layout:add(hash1) - middle_layout:add(grey) - middle_layout:add(tempicon) - middle_layout:add(tempwidget) - middle_layout:add(grey) - middle_layout:add(hash1) - middle_layout:add(hash1) - middle_layout:add(space) - middle_layout:add(baticon) - middle_layout:add(batwidget) - middle_layout:add(space) - middle_layout:add(hash3) - middle_layout:add(hash3) - middle_layout:add(black) - middle_layout:add(fsicon) - middle_layout:add(fswidgetbg) - middle_layout:add(black) - middle_layout:add(hash1) - middle_layout:add(hash1) - middle_layout:add(grey) - middle_layout:add(neticon) - middle_layout:add(netwidget) - middle_layout:add(grey) - middle_layout:add(hash2) - middle_layout:add(hash2) - -- middle_layout:add(mpdicon) - -- middle_layout:add(mpdwidgetbg) - - local layout = wibox.layout.align.horizontal() - layout:set_left(left_layout) - layout:set_middle(middle_layout) - layout:set_right(right_layout) - mywibox[s]:set_widget(layout) - -end - --- █▓▒░ mouse bindings -root.buttons(awful.util.table.join( - awful.button({ }, 3, function () mymainmenu:toggle() end) -)) - --- █▓▒░ global key bindings -globalkeys = awful.util.table.join( - -- sreenshot - awful.key({ modkey }, "Print", - function () - awful.util.spawn("scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & viewnior ~/images/$f'") - end), - awful.key({ }, "Print", - function () - awful.util.spawn("scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & viewnior ~/images/$f'") - end), - - -- touchpad toggle - awful.key({ modkey, }, "m", - function () - awful.util.spawn('bash /home/xero/code/sys/toggle-touchpad.sh') - end), - - -- tag browsing - awful.key({ modkey }, "Left", - awful.tag.viewprev - ), - awful.key({ modkey }, "Right", - awful.tag.viewnext - ), - awful.key({ modkey }, "Escape", - awful.tag.history.restore - ), - - -- client focus - awful.key({ modkey }, "k", - function () - awful.client.focus.byidx( 1) - if client.focus then client.focus:raise() end - end), - awful.key({ modkey }, "j", - function () - awful.client.focus.byidx(-1) - if client.focus then client.focus:raise() end - end), - - -- client reorder - awful.key({ modkey, "Shift" }, "j", - function () - awful.client.swap.byidx( 1) - end), - awful.key({ modkey, "Shift" }, "k", - function () - awful.client.swap.byidx( -1) - end), - - -- resize tags/clients - awful.key({ modkey }, "l", - function () - awful.tag.incmwfact( 0.05) - end), - awful.key({ modkey }, "h", - function () - awful.tag.incmwfact(-0.05) - end), - awful.key({ modkey, "Shift" }, "l", - function () - awful.client.incwfact(-0.05) - end), - awful.key({ modkey, "Shift" }, "h", - function () - awful.client.incwfact( 0.05) - end), - - -- move tags/clients - awful.key({ modkey, "Control" }, "Next", - function () - awful.client.moveresize( 20, 20, -40, -40) - end), - awful.key({ modkey, "Control" }, "Prior", - function () - awful.client.moveresize(-20, -20, 40, 40) - end), - awful.key({ modkey, "Control" }, "Down", - function () - awful.client.moveresize( 0, 20, 0, 0) - end), - awful.key({ modkey, "Control" }, "Up", - function () - awful.client.moveresize( 0, -20, 0, 0) - end), - awful.key({ modkey, "Control" }, "Left", - function () - awful.client.moveresize(-20, 0, 0, 0) - end), - awful.key({ modkey, "Control" }, "Right", - function () - awful.client.moveresize( 20, 0, 0, 0) - end), - - -- show menu - awful.key({ modkey }, "w", - function () - mymainmenu:show({ keygrabber = true }) - end), - - -- show/hide wibox - awful.key({ modkey }, "b", function () - mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible - end), - - -- switch mouse screen - awful.key({ modkey, "Control" }, "j", - function () - awful.screen.focus_relative( 1) - end), - awful.key({ modkey, "Control" }, "k", - function () - awful.screen.focus_relative(-1) - end), - - - -- Layout manipulation - awful.key({ modkey, }, "u", awful.client.urgent.jumpto), - awful.key({ modkey, }, "space", - function () - awful.layout.inc(layouts, 1) - end), - awful.key({ modkey, "Shift" }, "space", - function () - awful.layout.inc(layouts, -1) - end), - awful.key({ modkey, "Control" }, "n", awful.client.restore), - - -- change useless gap - awful.key({ modkey, "Control" }, "=", function () lain.util.useless_gaps_resize(1) end), - awful.key({ modkey, "Control" }, "-", function () lain.util.useless_gaps_resize(- 1) end), - - -- standard program - awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), - awful.key({ modkey, "Control" }, "r", awesome.restart), - awful.key({ modkey, "Shift" }, "q", awesome.quit), - - -- widgets popups - awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end), - awful.key({ altkey, }, "h", function () fswidget.show(7) end), - - -- MPD control - -- awful.key({ altkey, "Control" }, "Up", - -- function () - -- awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle") - -- mpdwidget.update() - -- end), - -- awful.key({ altkey, "Control" }, "Down", - -- function () - -- awful.util.spawn_with_shell("mpc stop || ncmpcpp stop || ncmpc stop || pms stop") - -- mpdwidget.update() - -- end), - -- awful.key({ altkey, "Control" }, "Left", - -- function () - -- awful.util.spawn_with_shell("mpc prev || ncmpcpp prev || ncmpc prev || pms prev") - -- mpdwidget.update() - -- end), - -- awful.key({ altkey, "Control" }, "Right", - -- function () - -- awful.util.spawn_with_shell("mpc next || ncmpcpp next || ncmpc next || pms next") - -- mpdwidget.update() - -- end), - - -- clipboard - awful.key({ modkey }, "c", function () os.execute("xsel -p -o | xsel -i -b") end), - - -- prompt - awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end), - awful.key({ modkey }, "x", - function () - awful.prompt.run({ prompt = "Run Lua code: " }, - mypromptbox[mouse.screen].widget, - awful.util.eval, nil, - awful.util.getdir("cache").."/history_eval") - end) - -- help cheatsheet - -- awful.key( - -- { altkey, "Shift" }, "h", - -- function () - -- naughty.notify({ - -- title = "Command Reference: Client Keybindings" - -- , text = "WIN+SPACE : spawn terminal\nWIN+W : open menu" - -- , timeout = 10 - -- , position = "top_right" - -- , fg = beautiful.fg_focus - -- , bg = beautiful.bg_focus - -- }) - -- end - -- ) -) - --- █▓▒░ client key bindings -clientkeys = awful.util.table.join( - awful.key({ modkey, }, "f", - function (c) - c.fullscreen = not c.fullscreen - end), - awful.key({ modkey, "Shift" }, "c", - function (c) - c:kill() - end), - awful.key({ modkey, "Control" }, "space", - awful.client.floating.toggle - ), - awful.key({ modkey, "Control" }, "Return", - function (c) - c:swap(awful.client.getmaster()) - end), - awful.key({ modkey, }, "o", - awful.client.movetoscreen - ), - awful.key({ modkey, }, "t", - function (c) - c.ontop = not c.ontop - end), - awful.key({ modkey, }, "n", - function (c) - -- The client currently has the input focus, so it cannot be - -- minimized, since minimized clients can't have the focus. - c.minimized = true - end), - awful.key({ modkey, "Shift" }, "m", - function (c) - c.maximized_horizontal = not c.maximized_horizontal - c.maximized_vertical = not c.maximized_vertical - end) -) - --- Bind all key numbers to tags. --- Be careful: we use keycodes to make it works on any keyboard layout. --- This should map on the top row of your keyboard, usually 1 to 9. -for i = 1, 9 do - globalkeys = awful.util.table.join(globalkeys, - awful.key({ modkey }, "#"..i + 9, - function () - local screen = mouse.screen - local tag = awful.tag.gettags(screen)[i] - if tag then - awful.tag.viewonly(tag) - end - end), - awful.key({ modkey, "Control" }, "#"..i + 9, - function () - local screen = mouse.screen - local tag = awful.tag.gettags(screen)[i] - if tag then - awful.tag.viewtoggle(tag) - end - end), - awful.key({ modkey, "Shift" }, "#"..i + 9, - function () - local tag = awful.tag.gettags(client.focus.screen)[i] - if client.focus and tag then - awful.client.movetotag(tag) - end - end), - awful.key({ modkey, "Control", "Shift" }, "#"..i + 9, - function () - local tag = awful.tag.gettags(client.focus.screen)[i] - if client.focus and tag then - awful.client.toggletag(tag) - end - end)) -end - -clientbuttons = awful.util.table.join( - awful.button({ }, 1, - function (c) - client.focus = c; c:raise() - end), - awful.button({ modkey }, 1, - awful.mouse.client.move - ), - awful.button({ modkey }, 3, - awful.mouse.client.resize - ) -) - --- set keys -root.keys(globalkeys) - --- █▓▒░ rules -awful.rules.rules = { - -- catch all rules - { rule = { }, - properties = { - border_width = beautiful.border_width, - border_color = beautiful.border_normal, - focus = true, - keys = clientkeys, - buttons = clientbuttons - } }, - -- app rules - { rule = { class = "smplayer" }, - properties = { - floating = true - } }, - { rule = { class = "gimp" }, - properties = { - floating = true - } }, - { rule = { name = "File Operation Progress" }, - properties = { - floating = true - } }, - { rule = { name = "blank" }, - properties = { - opacity = 0 -- works via composite manager - } }, - { rule = { name = "urxvt" }, - properties = { - -- fix term sizing calculation glitches - size_hints_honor = false - } } -} --- █▓▒░ signals --- change tag names dynamically -dynamic_tagging = function() - for s = 1, screen.count() do - -- get a list of all tags - local atags = awful.tag.gettags(s) - -- set the standard icon - for i, t in ipairs(atags) do - t.name = tag_icon - end - - -- get a list of all running clients - local clist = client.get(s) - for i, c in ipairs(clist) do - -- get the tags on which the client is displayed - local ctags = c:tags() - for i, t in ipairs(ctags) do - -- set active icon - t.name = tag_icon_active - end - end - end -end - --- opened client -client.connect_signal("manage", function (c, startup) - dynamic_tagging() - - if not startup and not c.size_hints.user_position - and not c.size_hints.program_position then - awful.placement.no_overlap(c) - awful.placement.no_offscreen(c) - end - -- sloppy focus - if sloppy_focus then - c:connect_signal("mouse::enter", function(c) - if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier - and awful.client.focus.filter(c) then - client.focus = c - end - end) - end -end) - --- closed client -client.connect_signal("unmanage", function (c, startup) - dynamic_tagging() -end) - --- border rollovers -client.connect_signal("focus", - function(c) - if c.maximized_horizontal == true and c.maximized_vertical == true then - c.border_width = 0 - c.border_color = beautiful.border_normal - else - c.border_width = beautiful.border_width - c.border_color = beautiful.border_focus - end - end) -client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) - --- rearrange clients -for s = 1, screen.count() do screen[s]:connect_signal("arrange", function () - dynamic_tagging() - local clients = awful.client.visible(s) - local layout = awful.layout.getname(awful.layout.get(s)) - - if #clients > 0 then -- fine grained borders and floaters control - for _, c in pairs(clients) do -- floaters always have borders - if awful.client.floating.get(c) or layout == "floating" then - c.border_width = beautiful.border_width - - -- no borders with only one visible client - elseif #clients == 1 or layout == "max" then - clients[1].border_width = 0 - awful.client.moveresize(0, 0, 2, 2, clients[1]) - else - c.border_width = beautiful.border_width - end - end - end -end) -end - --- disable startup-notification globally -local oldspawn = awful.util.spawn -awful.util.spawn = function (s) - oldspawn(s, false) -end - -run_once("nitrogen --restore") \ No newline at end of file diff --git a/.config/awesome/scratchdrop/README.md b/.config/awesome/scratchdrop/README.md deleted file mode 100644 index 8eec9c6..0000000 --- a/.config/awesome/scratchdrop/README.md +++ /dev/null @@ -1,3 +0,0 @@ -This is the `drop` section of [scratchpad](http://awesome.naquadah.org/wiki/Scratchpad_manager). - -I cutted out the rest because I don't use it. diff --git a/.config/awesome/scratchdrop/init.lua b/.config/awesome/scratchdrop/init.lua deleted file mode 100644 index e5d91c3..0000000 --- a/.config/awesome/scratchdrop/init.lua +++ /dev/null @@ -1,133 +0,0 @@ -------------------------------------------------------------------- --- Drop-down applications manager for the awesome window manager -------------------------------------------------------------------- --- Coded by: * Lucas de Vries --- Hacked by: * Adrian C. (anrxc) --- Licensed under the WTFPL version 2 --- * http://sam.zoy.org/wtfpl/COPYING -------------------------------------------------------------------- --- To use this module add: --- local scratchdrop = require("scratchdrop") --- to the top of your rc.lua, and call it from a keybinding: --- scratchdrop(prog, vert, horiz, width, height, sticky, screen) --- --- Parameters: --- prog - Program to run; "urxvt", "gmrun", "thunderbird" --- vert - Vertical; "bottom", "center" or "top" (default) --- horiz - Horizontal; "left", "right" or "center" (default) --- width - Width in absolute pixels, or width percentage --- when <= 1 (1 (100% of the screen) by default) --- height - Height in absolute pixels, or height percentage --- when <= 1 (0.25 (25% of the screen) by default) --- sticky - Visible on all tags, false by default --- screen - Screen (optional), mouse.screen by default -------------------------------------------------------------------- - --- Grab environment -local pairs = pairs -local awful = require("awful") -local setmetatable = setmetatable -local capi = { - mouse = mouse, - client = client, - screen = screen -} - --- Scratchdrop: drop-down applications manager for the awesome window manager -local scratchdrop = {} -- module scratch.drop - -local dropdown = {} - --- Create a new window for the drop-down application when it doesn't --- exist, or toggle between hidden and visible states when it does -function toggle(prog, vert, horiz, width, height, sticky, screen) - vert = vert or "top" - horiz = horiz or "center" - width = width or 1 - height = height or 0.25 - sticky = sticky or false - screen = screen or capi.mouse.screen - - -- Determine signal usage in this version of awesome - local attach_signal = capi.client.connect_signal or capi.client.add_signal - local detach_signal = capi.client.disconnect_signal or capi.client.remove_signal - - if not dropdown[prog] then - dropdown[prog] = {} - - -- Add unmanage signal for scratchdrop programs - attach_signal("unmanage", function (c) - for scr, cl in pairs(dropdown[prog]) do - if cl == c then - dropdown[prog][scr] = nil - end - end - end) - end - - if not dropdown[prog][screen] then - spawnw = function (c) - dropdown[prog][screen] = c - - -- Scratchdrop clients are floaters - awful.client.floating.set(c, true) - - -- Client geometry and placement - local screengeom = capi.screen[screen].workarea - - if width <= 1 then width = (screengeom.width * width) - 3 end - if height <= 1 then height = screengeom.height * height end - - if horiz == "left" then x = screengeom.x - elseif horiz == "right" then x = screengeom.width - width - else x = screengeom.x+(screengeom.width-width)/2 - 1 end - - if vert == "bottom" then y = screengeom.height + screengeom.y - height - elseif vert == "center" then y = screengeom.y+(screengeom.height-height)/2 - else y = screengeom.y end - - -- Client properties - c:geometry({ x = x, y = y, width = width, height = height }) - c.ontop = true - c.above = true - c.skip_taskbar = true - if sticky then c.sticky = true end - if c.titlebar then awful.titlebar.remove(c) end - - c:raise() - capi.client.focus = c - detach_signal("manage", spawnw) - end - - -- Add manage signal and spawn the program - attach_signal("manage", spawnw) - awful.util.spawn_with_shell(prog, false) -- original without '_with_shell' - else - -- Get a running client - c = dropdown[prog][screen] - - -- Switch the client to the current workspace - if c:isvisible() == false then c.hidden = true - awful.client.movetotag(awful.tag.selected(screen), c) - end - - -- Focus and raise if hidden - if c.hidden then - -- Make sure it is centered - if vert == "center" then awful.placement.center_vertical(c) end - if horiz == "center" then awful.placement.center_horizontal(c) end - c.hidden = false - c:raise() - capi.client.focus = c - else -- Hide and detach tags if not - c.hidden = true - local ctags = c:tags() - for i, t in pairs(ctags) do - ctags[i] = nil - end - c:tags(ctags) - end - end -end - -return setmetatable(scratchdrop, { __call = function(_, ...) return toggle(...) end }) diff --git a/.config/awesome/themes/ghost/gfx.png b/.config/awesome/themes/ghost/gfx.png deleted file mode 100644 index b6ea8d5..0000000 Binary files a/.config/awesome/themes/ghost/gfx.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/hash.png b/.config/awesome/themes/ghost/hash.png deleted file mode 100644 index 59399c6..0000000 Binary files a/.config/awesome/themes/ghost/hash.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/ac.png b/.config/awesome/themes/ghost/icons/ac.png deleted file mode 100644 index 96efcb4..0000000 Binary files a/.config/awesome/themes/ghost/icons/ac.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/battery.png b/.config/awesome/themes/ghost/icons/battery.png deleted file mode 100644 index 8c85596..0000000 Binary files a/.config/awesome/themes/ghost/icons/battery.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/battery_empty.png b/.config/awesome/themes/ghost/icons/battery_empty.png deleted file mode 100644 index 00821c9..0000000 Binary files a/.config/awesome/themes/ghost/icons/battery_empty.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/battery_low.png b/.config/awesome/themes/ghost/icons/battery_low.png deleted file mode 100644 index 29f3fc5..0000000 Binary files a/.config/awesome/themes/ghost/icons/battery_low.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/black-sep.png b/.config/awesome/themes/ghost/icons/black-sep.png deleted file mode 100644 index fa8198b..0000000 Binary files a/.config/awesome/themes/ghost/icons/black-sep.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/black.png b/.config/awesome/themes/ghost/icons/black.png deleted file mode 100644 index 4d25cb4..0000000 Binary files a/.config/awesome/themes/ghost/icons/black.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/cpu.png b/.config/awesome/themes/ghost/icons/cpu.png deleted file mode 100644 index 05edec2..0000000 Binary files a/.config/awesome/themes/ghost/icons/cpu.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/grey.png b/.config/awesome/themes/ghost/icons/grey.png deleted file mode 100644 index 9abad82..0000000 Binary files a/.config/awesome/themes/ghost/icons/grey.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/hash1.png b/.config/awesome/themes/ghost/icons/hash1.png deleted file mode 100644 index 018e75c..0000000 Binary files a/.config/awesome/themes/ghost/icons/hash1.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/hash2.png b/.config/awesome/themes/ghost/icons/hash2.png deleted file mode 100644 index 3525f91..0000000 Binary files a/.config/awesome/themes/ghost/icons/hash2.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/hash3.png b/.config/awesome/themes/ghost/icons/hash3.png deleted file mode 100644 index cf9c3ea..0000000 Binary files a/.config/awesome/themes/ghost/icons/hash3.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/hdd.png b/.config/awesome/themes/ghost/icons/hdd.png deleted file mode 100644 index 9e60dc5..0000000 Binary files a/.config/awesome/themes/ghost/icons/hdd.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/mem.png b/.config/awesome/themes/ghost/icons/mem.png deleted file mode 100644 index 7860a1a..0000000 Binary files a/.config/awesome/themes/ghost/icons/mem.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/net.png b/.config/awesome/themes/ghost/icons/net.png deleted file mode 100644 index ae96b06..0000000 Binary files a/.config/awesome/themes/ghost/icons/net.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/net_wired.png b/.config/awesome/themes/ghost/icons/net_wired.png deleted file mode 100644 index 6ca60ce..0000000 Binary files a/.config/awesome/themes/ghost/icons/net_wired.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/note.png b/.config/awesome/themes/ghost/icons/note.png deleted file mode 100644 index 1d05bb2..0000000 Binary files a/.config/awesome/themes/ghost/icons/note.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/submenu.png b/.config/awesome/themes/ghost/icons/submenu.png deleted file mode 100644 index b55ebce..0000000 Binary files a/.config/awesome/themes/ghost/icons/submenu.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/icons/temp.png b/.config/awesome/themes/ghost/icons/temp.png deleted file mode 100644 index 6793a9f..0000000 Binary files a/.config/awesome/themes/ghost/icons/temp.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/centerfair.png b/.config/awesome/themes/ghost/layouts/centerfair.png deleted file mode 100644 index 98dc698..0000000 Binary files a/.config/awesome/themes/ghost/layouts/centerfair.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/centerwork.png b/.config/awesome/themes/ghost/layouts/centerwork.png deleted file mode 100644 index 8d4c362..0000000 Binary files a/.config/awesome/themes/ghost/layouts/centerwork.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/cpu.png b/.config/awesome/themes/ghost/layouts/cpu.png deleted file mode 100644 index 6cbc5ee..0000000 Binary files a/.config/awesome/themes/ghost/layouts/cpu.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/dwindle.png b/.config/awesome/themes/ghost/layouts/dwindle.png deleted file mode 100644 index 3569d6a..0000000 Binary files a/.config/awesome/themes/ghost/layouts/dwindle.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/fairh.png b/.config/awesome/themes/ghost/layouts/fairh.png deleted file mode 100644 index a2266f2..0000000 Binary files a/.config/awesome/themes/ghost/layouts/fairh.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/fairv.png b/.config/awesome/themes/ghost/layouts/fairv.png deleted file mode 100644 index 82d863c..0000000 Binary files a/.config/awesome/themes/ghost/layouts/fairv.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/floating.png b/.config/awesome/themes/ghost/layouts/floating.png deleted file mode 100644 index c3f5dfe..0000000 Binary files a/.config/awesome/themes/ghost/layouts/floating.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/magnifier.png b/.config/awesome/themes/ghost/layouts/magnifier.png deleted file mode 100644 index 01d031b..0000000 Binary files a/.config/awesome/themes/ghost/layouts/magnifier.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/max.png b/.config/awesome/themes/ghost/layouts/max.png deleted file mode 100644 index 304fb6c..0000000 Binary files a/.config/awesome/themes/ghost/layouts/max.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/spiral.png b/.config/awesome/themes/ghost/layouts/spiral.png deleted file mode 100644 index c67c854..0000000 Binary files a/.config/awesome/themes/ghost/layouts/spiral.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/termfair.png b/.config/awesome/themes/ghost/layouts/termfair.png deleted file mode 100644 index 3e06023..0000000 Binary files a/.config/awesome/themes/ghost/layouts/termfair.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/tile.png b/.config/awesome/themes/ghost/layouts/tile.png deleted file mode 100644 index 762fedb..0000000 Binary files a/.config/awesome/themes/ghost/layouts/tile.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/tilebottom.png b/.config/awesome/themes/ghost/layouts/tilebottom.png deleted file mode 100644 index 166635f..0000000 Binary files a/.config/awesome/themes/ghost/layouts/tilebottom.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/tileleft.png b/.config/awesome/themes/ghost/layouts/tileleft.png deleted file mode 100644 index f280681..0000000 Binary files a/.config/awesome/themes/ghost/layouts/tileleft.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/layouts/tiletop.png b/.config/awesome/themes/ghost/layouts/tiletop.png deleted file mode 100644 index 0a7edf4..0000000 Binary files a/.config/awesome/themes/ghost/layouts/tiletop.png and /dev/null differ diff --git a/.config/awesome/themes/ghost/theme.lua b/.config/awesome/themes/ghost/theme.lua deleted file mode 100644 index f1df307..0000000 --- a/.config/awesome/themes/ghost/theme.lua +++ /dev/null @@ -1,93 +0,0 @@ --- ██ --- ░██ a w e s o m e ██ --- ░██ ░██ --- █████ ░██████ ██████ ██████ ██████ --- ██░░░██░██░░░██ ██░░░░██ ██░░░░ ░░░██░ --- ██░░░██░██ ░██░██ ░██░░█████ ░██ --- ░██ ░██░██ ░██░██ ░██ ░░░░░██ ░██ ▄▄▄ --- ░░██████░██ ░██░░██████ ██████ ░░██ ▀█▀██ ▄ --- ░░░░░██░░ ░░ ░░░░░░ ░░░░░░ ░░ ▀▄██████▀ --- █████ ▀█████ --- ░░░░░ ▓▓▓▓▓▓▓▓▓▓ ▀▀██▄ --- ░▓ author ▓ xero ▀ --- ░▓ code ▓ http://code.xero.nu/dotfiles --- ░▓ mirror ▓ http://git.io/.files --- ░▓▓▓▓▓▓▓▓▓▓ --- ░░░░░░░░░░ - -theme = {} - -themes_dir = os.getenv("HOME") .. "/.config/awesome/themes/ghost" -theme.wallpaper = themes_dir .. "/hash.png" - -theme.font = "gohuFont" -theme.fg_normal = "#DDDDFF" -theme.fg_focus = "#F0DFAF" -theme.fg_urgent = "#CC9393" -theme.bg_normal = "#1A1A1A" -theme.bg_focus = "#313131" -theme.bg_urgent = "#1A1A1A" -theme.bg_systray = "#2F2F2F" -theme.tag_bg_normal = "#000000" -theme.border_width = "1" -theme.border_normal = "#3F3F3F" -theme.border_focus = "#7F7F7F" -theme.border_marked = "#CC9393" -theme.titlebar_bg_focus = "#FFFFFF" -theme.titlebar_bg_normal = "#FFFFFF" -theme.textbox_widget_margin_top = 1 -theme.notify_fg = theme.fg_normal -theme.notify_bg = theme.bg_normal -theme.notify_border = theme.border_focus -theme.awful_widget_height = 14 -theme.awful_widget_margin_top = 2 -theme.useless_gap_width = 10 -theme.mouse_finder_color = "#CC9393" -theme.menu_height = "16" -theme.menu_width = "150" - -theme.menu_submenu_icon = themes_dir .. "/icons/submenu.png" -theme.tasklist_disable_icon = true -- do not display the taglist squares - -theme.layout_tile = themes_dir .. "/layouts/tile.png" -theme.layout_tilegaps = themes_dir .. "/layouts/tile.png" -theme.layout_tileleft = themes_dir .. "/layouts/tileleft.png" -theme.layout_tilebottom = themes_dir .. "/layouts/tilebottom.png" -theme.layout_tiletop = themes_dir .. "/layouts/tiletop.png" -theme.layout_fairv = themes_dir .. "/layouts/fairv.png" -theme.layout_fairh = themes_dir .. "/layouts/fairh.png" -theme.layout_spiral = themes_dir .. "/layouts/spiral.png" -theme.layout_dwindle = themes_dir .. "/layouts/dwindle.png" -theme.layout_max = themes_dir .. "/layouts/max.png" -theme.layout_fullscreen = themes_dir .. "/layouts/max.png" -theme.layout_magnifier = themes_dir .. "/layouts/magnifier.png" -theme.layout_floating = themes_dir .. "/layouts/floating.png" -theme.layout_uselesstile = themes_dir .. "/layouts/tile.png" -theme.layout_uselesstileleft = themes_dir .. "/layouts/tileleft.png" -theme.layout_uselesstiletop = themes_dir .. "/layouts/tiletop.png" -theme.layout_uselesstilebottom = themes_dir .. "/layouts/tilebottom.png" -theme.layout_uselessfair = themes_dir .. "/layouts/fairv.png" -theme.layout_uselessfairh = themes_dir .. "/layouts/fairh.png" -theme.layout_termfair = themes_dir .. "/layouts/termfair.png" -theme.layout_uselesspiral = themes_dir .. "/layouts/spiral.png" -theme.layout_uselessdwindle = themes_dir .. "/layouts/dwindle.png" -theme.layout_centerfair = themes_dir .. "/layouts/centerfair.png" -theme.layout_centerwork = themes_dir .. "/layouts/centerwork.png" - -theme.widget_hash1 = themes_dir .. "/icons/hash1.png" -theme.widget_hash2 = themes_dir .. "/icons/hash2.png" -theme.widget_hash3 = themes_dir .. "/icons/hash3.png" -theme.widget_grey = themes_dir .. "/icons/grey.png" -theme.widget_black = themes_dir .. "/icons/black.png" -theme.widget_ac = themes_dir .. "/icons/ac.png" -theme.widget_battery = themes_dir .. "/icons/battery.png" -theme.widget_battery_low = themes_dir .. "/icons/battery_low.png" -theme.widget_battery_empty = themes_dir .. "/icons/battery_empty.png" -theme.widget_mem = themes_dir .. "/icons/mem.png" -theme.widget_cpu = themes_dir .. "/icons/cpu.png" -theme.widget_temp = themes_dir .. "/icons/temp.png" -theme.widget_net = themes_dir .. "/icons/net.png" -theme.widget_hdd = themes_dir .. "/icons/hdd.png" -theme.widget_music = themes_dir .. "/icons/note.png" - -return theme diff --git a/.config/chromium/Default/Default/User StyleSheets/Custom.css b/.config/chromium/Default/Default/User StyleSheets/Custom.css deleted file mode 100644 index 60f28d0..0000000 --- a/.config/chromium/Default/Default/User StyleSheets/Custom.css +++ /dev/null @@ -1,2217 +0,0 @@ -/*****************************************************************************/ -/* Zero-Dark-Matrix -/* Optimized for Chrome Stable Channel v32 -/* https://github.com/mauricecruz/zero-base-themes -/*************************************************************************/ -#-blink-dev-tools { - /* light green */ - /* dark red */ - /* light blue */ - /* purple */ - /* yellow */ - /********************************************** -/* Animations -/* ------------------------------------------- -/* If you are experiencing performance issues, -/* remove the animations section below. -/**********************************************/ - /*-- SOURCES PANEL --*/ - /*-- NETWORK PANES --*/ - /*-- FIND --*/ - /*-- INACTIVE SELECTORS --*/ - /*-- CURRENTLY SELECTED --*/ - /*-- HIGHLIGHT CHILDREN --*/ - /*-- POPOVERS --*/ - /* -- KEYFRAME DECLARATIONS -- */ - /********************************************** -/* Readability -/* ------------------------------------------- -/* Adjust the line height for elements|sources -/* tab, find, and console. Adjust margin-top -/* to line up expand/collapse arrow in -/* elements panel -/**********************************************/ - /********************************************** -/* DevTool Chrome -/**********************************************/ - /*CURSOR/INSERTION POINT*/ - /*--GLOBAL EDITOR STYLES--*/ - /********************************************** -/* Scrollbars -/**********************************************/ - /*Popover scrollbar overrides */ - /********************************************** -/* Elements/Sources Right Sidebar -/**********************************************/ - /*-- PSEUDO STATE DISPLAY --*/ - /*-- METRICS--*/ - /*--CSS--*/ - /*--HTML--*/ - /*--GLOBAL--*/ - /********************************************** -/* Code Highlighting [WEBKIT] -/**********************************************/ - /*-- HTML --*/ - /*-- CSS --*/ - /*-- JAVASCRIPT --*/ - /************************************************ -/* Elements Crumbs -/************************************************/ - /***********************/ - /* Tabbed Panes -/***********************/ - /**********************************************/ - /* Navigation Arrows -/**********************************************/ - /**********************************************/ - /* Find Module [ctrl+shift+F / cmd+shift+F] -/**********************************************/ - /**********************************************/ - /* Tables -/**********************************************/ - /********************************************** -/* Popovers -/**********************************************/ - /********************************************** -/* Resources & Sources Sidebar -/**********************************************/ - /*-- default text color --*/ - /*-- currently selected element --*/ - /********************************************** -/* Suggest Box -/**********************************************/ - /********************************************** -/* Network Tab (uses _tables.less for list of nodes) -/**********************************************/ - /*dropdownlist in network panel*/ - /* Network Timing Pane */ - /**********************************************/ - /* Elements/Network -/**********************************************/ - /**********************************************/ - /* Console -/**********************************************/ - /********************************************** -/* Timeline Tab -/**********************************************/ - /* Timeline */ - /********************************************** -/* Element - Edit HTML -/**********************************************/ - /********************************************** -/* Element Highlighter -/**********************************************/ - /*@import "_panel-elements-highlight";*/ - /********************************************** -/* Profilers -/**********************************************/ - /********************************************** -/* Resources Tab -/**********************************************/ - /*-- RESOURCES CONTENT --*/ - /*-- WEB SQL --*/ - /************************************* - * Help/Settings Overlay - *************************************/ - /*************************************************** -/* Dialog Box [Help] -****************************************************/ - /********************************************** -/* Sources Tab -/**********************************************/ - /*placeholder text when no file is open*/ - /*-- Save Problem Overlay --*/ - /* Breakpoints/Dom Breakpoints */ - /* Call Stack */ - /*pane colors*/ - /* Highlight in Scripts */ - /*exception icon state colors */ - /********************************************** -/* Sources Panel Controls -/**********************************************/ - /************************************************ -/* Status bar -/************************************************/ - /*console/network elements that are not panel selectors*/ - /*text color of status bar labels */ - /*-- GLYPHS --*/ - /*separator between all | rest of options*/ - /*filter options in console/network panel*/ - /* DOM Breakpoints */ - /********************************************** -/* Dialog Boxes -/**********************************************/ - /*************************************************** -/* Search Functions/Selectors in File [Ctrl+Shift+O] -****************************************************/ -} -#-blink-dev-tools .panel.sources .split-view-vertical .split-view-contents { - -webkit-transition: right 0.5s ease-in-out; -} -#-blink-dev-tools .panel.sources .split-view-contents-second.split-view-sidebar { - -webkit-animation: slideInRightBig 0.2s ease-out; -} -#-blink-dev-tools .panel.sources div:not(.split-view-horizontal) .split-view-vertical .split-view-sidebar, -#-blink-dev-tools .panel.sources .split-view-vertical .split-view-contents-first.split-view-sidebar { - -webkit-animation: none !important; -} -#-blink-dev-tools .sidebar-overlay { - -webkit-animation: slideInLeftBig 0.5s ease-out; -} -#-blink-dev-tools .panel.elements .split-view-horizontal .split-view-contents-second:not(.metrics-and-computed), -#-blink-dev-tools .panel.sources .split-view-horizontal > .split-view-contents-second.split-view-sidebar { - -webkit-animation: bounceInUp 1s ease-in-out; - z-index: 99; -} -#-blink-dev-tools #toolbar > .toolbar-item.toggleable.toggled-on { - -webkit-transition: border-top 0.25s ease-out 0; -} -#-blink-dev-tools .tabbed-pane:not(.help-window-main) .tabbed-pane-header-tab.selected, -#-blink-dev-tools .small .tabbed-pane:not(.help-window-main) .tabbed-pane-header-tab.selected { - -webkit-transition: border-top 0.25s ease-out 0; -} -#-blink-dev-tools #network-views { - -webkit-animation: bounceInRight 0.5s ease-in-out; -} -#-blink-dev-tools #search-results-pane-file-based .search-match .highlighted-match, -#-blink-dev-tools .webkit-search-result, -#-blink-dev-tools .webkit-highlighted-line.webkit-line-content, -#-blink-dev-tools .CodeMirror .cm-line-with-selection span.cm-column-with-selection { - -webkit-animation: match-animation 0.5s ease-in-out; -} -#-blink-dev-tools .styles-section .properties .overloaded, -#-blink-dev-tools .styles-section .properties .inactive, -#-blink-dev-tools .styles-section .properties .disabled, -#-blink-dev-tools .styles-section .properties .not-parsed-ok { - -webkit-transition: opacity 0.5s ease-in-out 0; -} -#-blink-dev-tools .panel.elements .outline-disclosure ol:focus li.selected .selection { - -webkit-animation: pulsate 2.5s infinite; -} -#-blink-dev-tools #elements-crumbs .crumbs .crumb.selected { - -webkit-transition: border-top 0.25s ease-out 0; -} -#-blink-dev-tools .styles-section .properties .enabled-button { - -webkit-transition: visibility 0.5s ease-in-out; -} -#-blink-dev-tools .panel.elements .parent + .children { - -webkit-transition: 0.5s ease-in 0.25s; -} -#-blink-dev-tools .panel.elements .parent.selected.expanded + .children > :last-child *, -#-blink-dev-tools .panel.elements .parent.hovered.expanded + .children > :last-child * { - -webkit-transition: opacity 0.5s ease-in-out 0.25s; -} -#-blink-dev-tools .popover { - -webkit-animation: growFadeIn 0.2s ease-in-out; -} -#-blink-dev-tools .popover.top-left-arrow { - -webkit-transform-origin: 25% 0%; -} -#-blink-dev-tools .popover.top-right-arrow { - -webkit-transform-origin: 75% 0%; -} -#-blink-dev-tools .popover.right-top-arrow { - -webkit-transform-origin: 100% 10%; -} -#-blink-dev-tools .popover.right-bottom-arrow { - -webkit-transform-origin: 100% 90%; -} -#-blink-dev-tools .popover.bottom-left-arrow { - -webkit-transform-origin: 25% 100%; -} -#-blink-dev-tools .popover.bottom-right-arrow { - -webkit-transform-origin: 75% 100%; -} -#-blink-dev-tools .popover.left-top-arrow { - -webkit-transform-origin: 0% 10%; -} -#-blink-dev-tools .popover.left-bottom-arrow { - -webkit-transform-origin: 0% 90%; -} -@-webkit-keyframes match-animation { - 0% { - box-shadow: 0 0 0 #6A8C8C; - background-color: #496363; - color: #222; - } - 50% { - box-shadow: 0 0 25px #6A8C8C; - } - 100% { - box-shadow: 0 0 0 #496363; - background-color: #6A8C8C; - } -} -@-webkit-keyframes pulsate { - 0% { - background-color: #496363; - } - 50% { - background-color: #6A8C8C; - } - 100% { - background-color: #496363; - } -} -@-webkit-keyframes bounceInLeft { - 0% { - opacity: 0; - -webkit-transform: translateX(-550px); - } - 60% { - opacity: 1; - -webkit-transform: translateX(30px); - } - 80% { - -webkit-transform: translateX(-10px); - } - 100% { - -webkit-transform: translateX(0); - } -} -@-webkit-keyframes bounceInRight { - 0% { - opacity: 0; - -webkit-transform: translateX(550px); - } - 60% { - opacity: 1; - -webkit-transform: translateX(-30px); - } - 80% { - -webkit-transform: translateX(10px); - } - 100% { - -webkit-transform: translateX(0); - } -} -@-webkit-keyframes bounceInUp { - 0% { - opacity: 0; - -webkit-transform: translateY(500px); - } - 60% { - opacity: 1; - -webkit-transform: translateY(-30px); - } - 80% { - -webkit-transform: translateY(10px); - } - 100% { - -webkit-transform: translateY(0); - } -} -@-webkit-keyframes slideInLeftBig { - 0% { - -webkit-transform: translateX(-500px); - } - 100% { - -webkit-transform: translateX(0); - } -} -@-webkit-keyframes slideInRightBig { - 0% { - -webkit-transform: translateX(500px); - } - 100% { - -webkit-transform: translateX(0); - } -} -@-webkit-keyframes growFadeIn { - 0% { - opacity: 0; - -webkit-transform: scale(0.3); - } - 100% { - -webkit-transform: scale(1); - } -} -#-blink-dev-tools .outline-disclosure ol li, -#-blink-dev-tools .text-editor .inner-container .webkit-line-content, -#-blink-dev-tools .text-editor-lines .inner-container .webkit-line-number, -#-blink-dev-tools .styles-section .properties li, -#-blink-dev-tools .CodeMirror-lines, -#-blink-dev-tools #search-results-pane-file-based .search-match { - line-height: 14px !important; -} -#-blink-dev-tools .panel.elements .outline-disclosure li.parent::before { - margin-top: 1px; -} -#-blink-dev-tools .event-bars .event-bar .header .title { - text-shadow: none!important; - color: #ccc!important; -} -#-blink-dev-tools .source-frame-debugger-script { - background-color: #222!important; -} -#-blink-dev-tools .webkit-line-content { - color: #ddd!important; -} -#-blink-dev-tools .webkit-highlighted-line, -#-blink-dev-tools .webkit-execution-line.webkit-line-content { - background-color: rgba(106, 140, 140, 0.2) !important; - outline: 1px solid #181818 !important; -} -#-blink-dev-tools .webkit-highlighted-line span { - color: #000 !important; - font-weight: 700 !important; -} -#-blink-dev-tools .scroll-target { - -webkit-transform: translateZ(0); -} -#-blink-dev-tools #console-messages, -#-blink-dev-tools #console-view, -#-blink-dev-tools #network-views .CodeMirror-lines, -#-blink-dev-tools #script-view-fallback, -#-blink-dev-tools .console-view-wrapper, -#-blink-dev-tools .dialog .fill, -#-blink-dev-tools .drawer .revision-history-drawer, -#-blink-dev-tools .help-window-main, -#-blink-dev-tools .panel .split-view-contents, -#-blink-dev-tools .panel, -#-blink-dev-tools .panel-enabler-view, -#-blink-dev-tools .profiles-sidebar-tree-box, -#-blink-dev-tools .sidebar-overlay, -#-blink-dev-tools .split-view-vertical .sidebar-pane.composite .properties-tree, -#-blink-dev-tools .styles-section.read-only, -#-blink-dev-tools .tabbed-pane-content, -#-blink-dev-tools .tabbed-pane-content.has-no-tabs .timeline-records-title, -#-blink-dev-tools .timeline-records-list, -#-blink-dev-tools #timeline-overview-sidebar { - background-color: #272822 !important; - z-index: 0; -} -#-blink-dev-tools .toolbar-background button.status-bar-item .glyph, -#-blink-dev-tools .toolbar-background button.status-bar-item .long-click-glyph { - background-color: #6b6b6b !important; -} -#-blink-dev-tools #script-view-fallback { - color: #ccc !important; -} -#-blink-dev-tools .timeline { - background: #fff !important; -} -#-blink-dev-tools .panel-enabler-view { - color: #E0E0E0; -} -#-blink-dev-tools .styles-section.read-only:not(.computed-style) { - background-color: #1f1f1f !important; - margin: 0; - padding-left: 10px !important; - padding-right: 10px !important; -} -#-blink-dev-tools .text-editor-editable:focus, -#-blink-dev-tools .editing:focus { - color: #FFF !important; - background-color: #121212 !important; -} -#-blink-dev-tools .cm-breakpoint .CodeMirror-gutter-elt { - color: #000 !important; - font-weight: 700 !important; -} -#-blink-dev-tools .CodeMirror-cursor { - border-left: 1px solid #FFF !important; -} -#-blink-dev-tools .cm-error { - background: #9D1E15 !important; - border-radius: 2px !important; - color: #eee !important; -} -#-blink-dev-tools .CodeMirror-gutter-elt { - color: #787878 !important; -} -#-blink-dev-tools .CodeMirror-gutters { - background: #1c1c1c !important; - border-right: 2px solid #1f1f1f !important; -} -#-blink-dev-tools .CodeMirror-selected { - background: #383838 !important; - color: #eee !important; -} -#-blink-dev-tools .CodeMirror-matchingbracket { - color: #15ca1a !important; - text-shadow: 0 0 3px #15ca1a !important; - border-bottom: none !important; -} -#-blink-dev-tools .CodeMirror-nonmatchingbracket { - color: #db0404 !important; - text-shadow: 0 0 3px #db0404 !important; - border-bottom: none !important; -} -#-blink-dev-tools span.CodeMirror-selectedtext { - background-color: #383838 !important; -} -#-blink-dev-tools .cm-search-highlight-start:before { - border-color: #6A8C8C !important; -} -#-blink-dev-tools .cm-search-highlight-end:before { - border-color: #6A8C8C !important; -} -#-blink-dev-tools .cm-search-highlight:before { - border-color: #6A8C8C !important; - padding: 2px !important; -} -#-blink-dev-tools .cm-line-with-selection .cm-column-with-selection.cm-search-highlight:before { - background-color: #6A8C8C !important; - border-radius: 2px !important; -} -#-blink-dev-tools span.cm-token-highlight { - background-color: transparent !important; - padding: 0px !important; -} -#-blink-dev-tools span.cm-token-highlight:before { - border-color: #6A8C8C !important; -} -#-blink-dev-tools .cm-line-with-selection span.cm-column-with-selection { - color: #000 !important; - background-color: #6A8C8C !important; -} -#-blink-dev-tools .cm-whitespace:before { - color: #555 !important; -} -#-blink-dev-tools .cm-tab:before { - border-bottom: 1px solid #555 !important; -} -#-blink-dev-tools .cm-highlight { - -webkit-animation: "fadeout-revised" 3s 0s !important; - outline: 1px solid #56795e; -} -#-blink-dev-tools .cm-highlight *:not(.CodeMirror-linenumber) { - color: #B0B0B0 !important; -} -#-blink-dev-tools .cm-execution-line { - background-color: #6A8C8C !important; - outline: 1px solid #56795e !important; -} -#-blink-dev-tools .CodeMirror-linenumber { - border-right: none !important; -} -@-webkit-keyframes fadeout-revised { - 0% { - background-color: #6A8C8C; - outline: 1px solid #496363; - } - 50% { - background-color: #6A8C8C; - outline: 1px solid #496363; - } - 100% { - background-color: #121212; - outline: 1px solid #121212; - } -} -#-blink-dev-tools body.dock-to-right.inactive:not(.undocked):not(.overlay-contents), -#-blink-dev-tools body.dock-to-right:not(.undocked):not(.overlay-contents) { - border-left: transparent !important; -} -#-blink-dev-tools .split-view.vbox > .split-view-sidebar.split-view-contents-second:not(.maximized) { - border-top: none !important; -} -#-blink-dev-tools ::-webkit-scrollbar, -#-blink-dev-tools .CodeMirror-scrollbar-filler, -#-blink-dev-tools .CodeMirror-gutter-filler { - width: 12px !important; - height: 12px !important; - background-color: #272822 !important; -} -#-blink-dev-tools ::-webkit-scrollbar-thumb { - border-radius: 0px !important; - background-color: #222222 !important; -} -#-blink-dev-tools .custom-popup-horizontal-scroll ::-webkit-scrollbar-track, -#-blink-dev-tools .custom-popup-vertical-scroll ::-webkit-scrollbar-track, -#-blink-dev-tools .custom-popup-vertical-scroll #-blink-dev-tools .custom-popup-horizontal-scroll ::-webkit-scrollbar-track, -#-blink-dev-tools .custom-popup-horizontal-scroll #-blink-dev-tools .custom-popup-vertical-scroll ::-webkit-scrollbar-track { - -webkit-box-shadow: none !important; -} -#-blink-dev-tools .custom-popup-horizontal-scroll ::-webkit-scrollbar-thumb { - -webkit-border-image: none !important; -} -#-blink-dev-tools .custom-popup-vertical-scroll ::-webkit-scrollbar-track-piece:vertical { - -webkit-box-shadow: inset 4px 1px 8px 1px rgba(0, 0, 0, 0.3) !important; -} -#-blink-dev-tools .custom-popup-horizontal-scroll ::-webkit-scrollbar-track-piece:horizontal { - -webkit-box-shadow: inset 1px 5px 6px rgba(0, 0, 0, 0.3) !important; -} -#-blink-dev-tools .custom-popup-horizontal-scroll ::-webkit-scrollbar-thumb:horizontal:active, -#-blink-dev-tools .custom-popup-horizontal-scroll ::-webkit-scrollbar-thumb:horizontal:hover, -#-blink-dev-tools .custom-popup-horizontal-scroll ::-webkit-scrollbar-track-piece:horizontal:decrement, -#-blink-dev-tools .custom-popup-horizontal-scroll ::-webkit-scrollbar-track-piece:horizontal:increment, -#-blink-dev-tools .custom-popup-vertical-scroll ::-webkit-scrollbar-thumb:vertical:active, -#-blink-dev-tools .custom-popup-vertical-scroll ::-webkit-scrollbar-thumb:vertical:hover, -#-blink-dev-tools .custom-popup-vertical-scroll ::-webkit-scrollbar-track-piece:vertical:decrement, -#-blink-dev-tools .custom-popup-vertical-scroll ::-webkit-scrollbar-track-piece:vertical:increment { - -webkit-border-image: none !important; -} -#-blink-dev-tools .styles-section { - padding: 4px 0 !important; - margin: 0 10px; - border-top: 1px solid #2b2b2b !important; - border-bottom: none !important; -} -#-blink-dev-tools .styles-section:first-child { - border-top: none !important; -} -#-blink-dev-tools .styles-section .value { - color: #a875ff !important; -} -#-blink-dev-tools .styles-section .child-editing, -#-blink-dev-tools .styles-section .header .subtitle { - color: #999999 !important; -} -#-blink-dev-tools .styles-section .properties .overloaded, -#-blink-dev-tools .styles-section .properties .inactive, -#-blink-dev-tools .styles-section .properties .disabled, -#-blink-dev-tools .styles-section .properties .not-parsed-ok { - opacity: .5 !important; -} -#-blink-dev-tools .sidebar-pane .body, -#-blink-dev-tools .sidebar-pane .monospace { - color: #cccccc !important; -} -#-blink-dev-tools .styles-section.first-styles-section, -#-blink-dev-tools .sidebar-separator + .styles-section { - border-top: none !important; -} -#-blink-dev-tools .sidebar-separator { - background-image: -webkit-linear-gradient(#222222, #222222) !important; - color: #cccccc !important; - text-shadow: none !important; - border-top: none !important; - border-bottom: none !important; -} -#-blink-dev-tools .styles-element-state-pane { - background: #212121 !important; - padding: 4px 0 !important; - border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; -} -#-blink-dev-tools .styles-element-state-pane.expanded { - margin-top: 0 !important; -} -#-blink-dev-tools .sidebar-pane .body .metrics { - color: #000 !important; - border-top: 1px solid #2b2b2b; -} -#-blink-dev-tools .sidebar-pane .body .metrics .position, -#-blink-dev-tools .sidebar-pane .body .metrics .margin:not([style^=background-color]), -#-blink-dev-tools .sidebar-pane .body .metrics .border:not([style^=background-color]), -#-blink-dev-tools .sidebar-pane .body .metrics .padding:not([style^=background-color]), -#-blink-dev-tools .sidebar-pane .body .metrics .margin:not([style^=background-color]), -#-blink-dev-tools .sidebar-pane .body .metrics .content:not([style^=background-color]) { - background-color: #888 !important; -} -#-blink-dev-tools .sidebar-pane-stack .event-category, -#-blink-dev-tools .sidebar-pane .section { - border-top: 1px solid #242424 !important; - border-bottom: 1px solid #000000 !important; - margin-top: 0 !important; -} -#-blink-dev-tools .sidebar-pane .section:first-child { - border-top: none !important; -} -#-blink-dev-tools .cm-js-atom { - color: #89f5a2 !important; -} -#-blink-dev-tools .cm-js-attribute { - color: #4e87bf !important; -} -#-blink-dev-tools .cm-js-builtin { - color: #8da6ce !important; -} -#-blink-dev-tools .cm-js-comment { - color: #676767 !important; - font-style: italic; -} -#-blink-dev-tools .cm-js-def { - color: #f9246b !important; -} -#-blink-dev-tools .cm-js-error { - background: #9D1E15 !important; - color: #f8f8f8 !important; -} -#-blink-dev-tools .cm-js-header { - color: #ff6400 !important; -} -#-blink-dev-tools .cm-js-hr { - color: #aeaeae !important; -} -#-blink-dev-tools .cm-js-keyword { - color: #8b6ccf !important; - font-style: italic; -} -#-blink-dev-tools .cm-js-link { - color: #8da6ce !important; -} -#-blink-dev-tools .cm-js-meta { - color: #d8fa3c !important; -} -#-blink-dev-tools .cm-js-number { - color: #89f5a2 !important; -} -#-blink-dev-tools .cm-js-operator { - color: #cdb943 !important; -} -#-blink-dev-tools .cm-js-property { - color: #cdb943 !important; -} -#-blink-dev-tools .cm-js-string { - color: #f07b3c !important; -} -#-blink-dev-tools .cm-js-string-2 { - color: #f07b3c !important; -} -#-blink-dev-tools .cm-js-tag { - color: #f9246b !important; -} -#-blink-dev-tools .cm-js-variable { - color: #a875ff !important; -} -#-blink-dev-tools .cm-js-variable-2 { - color: #a875ff !important; -} -#-blink-dev-tools .source-frame-eval-expression { - background-color: rgba(106, 140, 140, 0.4) !important; - border-color: #89F5A2 !important; -} -#-blink-dev-tools .cm-atom { - color: #89f5a2 !important; -} -#-blink-dev-tools .cm-comment { - color: #676767 !important; - font-style: italic; -} -#-blink-dev-tools .cm-variable { - color: #a875ff !important; -} -#-blink-dev-tools .cm-string { - color: #f07b3c !important; -} -#-blink-dev-tools .cm-keyword { - color: #8b6ccf !important; - font-style: italic; -} -#-blink-dev-tools .cm-number { - color: #89f5a2 !important; -} -#-blink-dev-tools .cm-operator { - color: #cdb943 !important; -} -#-blink-dev-tools .cm-error { - background: #9D1E15 !important; - color: #f8f8f8 !important; -} -#-blink-dev-tools .cm-css-atom { - color: #a875ff !important; -} -#-blink-dev-tools .cm-css-builtin { - color: #a4e60a !important; -} -#-blink-dev-tools .cm-css-def { - color: #a4e60a !important; -} -#-blink-dev-tools .cm-css-comment { - color: #676767 !important; - font-style: italic; -} -#-blink-dev-tools .cm-css-meta { - color: #6aedff !important; -} -#-blink-dev-tools .cm-css-number { - color: #a875ff !important; -} -#-blink-dev-tools .cm-css-operator { - color: #a875ff !important; -} -#-blink-dev-tools .cm-css-property { - color: #6aedff !important; -} -#-blink-dev-tools .cm-css-qualifier { - color: #a4e60a !important; -} -#-blink-dev-tools .cm-css-string { - color: #e3b959 !important; -} -#-blink-dev-tools .cm-css-string-2 { - color: #a875ff !important; -} -#-blink-dev-tools .cm-css-tag { - color: #a4e60a !important; -} -#-blink-dev-tools .cm-css-variable { - color: #a4e60a !important; -} -#-blink-dev-tools .cm-css-variable-2 { - color: #a4e60a !important; -} -#-blink-dev-tools .cm-xml-comment { - color: #7c7c7c !important; - font-style: italic !important; -} -#-blink-dev-tools .cm-xml-error { - color: #bf4c4c !important; -} -#-blink-dev-tools .cm-xml-string { - color: #e6da84 !important; -} -#-blink-dev-tools .cm-xml-tag { - color: #f9246b !important; -} -#-blink-dev-tools .cm-xml-attribute { - color: #a4e60a !important; -} -#-blink-dev-tools .cm-xml-link { - color: #e3b959 !important; -} -#-blink-dev-tools .shadow-root .webkit-html-fragment.shadow-root { - color: #ddbb00 !important; -} -#-blink-dev-tools .outline-disclosure ol li .highlight { - color: #ddbb00 !important; -} -#-blink-dev-tools .CodeMirror-code { - color: #a875ff; -} -#-blink-dev-tools .webkit-html-attribute-name { - color: #a4e60a !important; -} -#-blink-dev-tools .webkit-html-attribute-value { - color: #e6da84 !important; -} -#-blink-dev-tools .webkit-html-comment { - color: #7c7c7c !important; - font-style: italic; -} -#-blink-dev-tools .webkit-html-resource-link, -#-blink-dev-tools .webkit-html-external-link { - color: #e3b959 !important; -} -#-blink-dev-tools .webkit-html-tag, -#-blink-dev-tools .webkit-html-tag-name { - color: #f9246b !important; -} -#-blink-dev-tools .webkit-html-text-node, -#-blink-dev-tools .webkit-html-css-node, -#-blink-dev-tools .webkit-html-js-node { - color: #c2c3c3 !important; -} -#-blink-dev-tools .webkit-html-pseudo-element { - color: #49a5d2 !important; -} -#-blink-dev-tools .selector-matches { - color: #a4e60a !important; -} -#-blink-dev-tools .webkit-css-selector { - color: #a4e60a !important; -} -#-blink-dev-tools .webkit-css-at-rule { - color: #b094bb !important; -} -#-blink-dev-tools .webkit-css-color { - color: #a4e60a !important; -} -#-blink-dev-tools .webkit-css-comment { - color: #676767 !important; -} -#-blink-dev-tools .webkit-css-important { - color: #ff0000 !important; -} -#-blink-dev-tools .webkit-css-keyword { - color: #a4e60a !important; -} -#-blink-dev-tools .webkit-css-number { - color: #a875ff !important; -} -#-blink-dev-tools .webkit-css-property, -#-blink-dev-tools .styles-section .properties > li .webkit-css-property { - color: #6aedff !important; - font-weight: 400; -} -#-blink-dev-tools .webkit-css-string { - color: #e3b959 !important; -} -#-blink-dev-tools .webkit-css-url { - color: #e3b959 !important; -} -#-blink-dev-tools .section .properties .name, -#-blink-dev-tools .event-properties .name, -#-blink-dev-tools .console-formatted-object .name { - color: #77a8c6 !important; -} -#-blink-dev-tools .console-formatted-object, -#-blink-dev-tools .console-formatted-array { - color: #7c7c7c !important; -} -#-blink-dev-tools .console-formatted-function { - color: #8b6ccf !important; -} -#-blink-dev-tools .console-formatted-number { - color: #89f5a2 !important; -} -#-blink-dev-tools .console-formatted-boolean { - color: #89f5a2 !important; -} -#-blink-dev-tools .console-object-preview { - color: #dddddd !important; -} -#-blink-dev-tools .console-formatted-regexp { - color: #ff54e8 !important; -} -#-blink-dev-tools .console-formatted-string { - color: #ff8737 !important; -} -#-blink-dev-tools .console-formatted-undefined { - color: #ad4e4e !important; -} -#-blink-dev-tools .json .title { - color: #a875ff !important; -} -#-blink-dev-tools .json .separator { - color: #4700c2 !important; -} -#-blink-dev-tools .popover .parent + .children.expanded, -#-blink-dev-tools #console-messages .parent + .children.expanded, -#-blink-dev-tools .sidebar-pane .parent:not(.event-category) + .children.expanded { - border-left: 1px dashed #444 !important; - position: relative; - left: 4.4px; -} -#-blink-dev-tools #elements-crumbs { - background: -webkit-linear-gradient(#222222, #222222) !important; - border-top: 1px solid #1f1f1f !important; - height: 19px !important; -} -#-blink-dev-tools #elements-crumbs .crumbs { - text-shadow: none !important; - color: #bbb !important; -} -#-blink-dev-tools #elements-crumbs .crumbs .crumb { - -webkit-border-image: none !important; - border-left: 1px solid #525252 !important; - border-right: 1px solid #383838 !important; - padding: 0 10px !important; - margin: 0 !important; - line-height: 18px !important; -} -#-blink-dev-tools #elements-crumbs .crumbs .crumb:hover { - color: #f8f8f8 !important; - background-color: rgba(0, 0, 0, 0) !important; -} -#-blink-dev-tools #elements-crumbs .crumbs .crumb span { - text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6) !important; -} -#-blink-dev-tools #elements-crumbs .crumbs .crumb.selected { - background-color: #6A8C8C !important; - text-shadow: none !important; - color: #f8f8f8 !important; - cursor: default; -} -#-blink-dev-tools .tabbed-pane:not(.help-window-main) .tabbed-pane-header { - background: -webkit-linear-gradient(#222222, #222222) !important; - box-shadow: inset 0 1px 0 #525252 !important; - border-bottom: 1px solid #222222 !important; -} -#-blink-dev-tools .tabbed-pane:not(.help-window-main) .tabbed-pane-header .tabbed-pane-header-tab { - border-top: 2px solid rgba(0, 0, 0, 0) !important; - border-left: none !important; - border-right: none !important; - padding: 2px 8px !important; - margin: 0 4px !important; - margin-top: 0 !important; - margin-bottom: 1px !important; - border-color: transparent !important; -} -#-blink-dev-tools .tabbed-pane:not(.help-window-main) .tabbed-pane-header .tabbed-pane-header-tab:hover { - color: #f8f8f8 !important; -} -#-blink-dev-tools .tabbed-pane:not(.help-window-main) .tabbed-pane-header .tabbed-pane-header-tab.selected { - background: none !important; - border-bottom: 4px solid #6A8C8C !important; - color: #f8f8f8 !important; - font-size: 1em; -} -#-blink-dev-tools .tabbed-pane:not(.help-window-main) .tabbed-pane-header .tabbed-pane-header-contents { - color: #999999 !important; -} -#-blink-dev-tools .tabbed-pane:not(.help-window-main) .tabbed-pane-header .tabbed-pane-header-tab-title { - line-height: 16px !important; -} -#-blink-dev-tools .tabbed-pane:not(.help-window-main) .overrides-view .tabbed-pane-header-tab { - border-top: none !important; - margin-left: 6px !important; -} -#-blink-dev-tools .tabbed-pane:not(.help-window-main) .overrides-view .tabbed-pane-header-tab.selected { - border-top: none !important; - border-left: 6px solid #6A8C8C !important; - margin-left: 0 !important; -} -#-blink-dev-tools .tabbed-pane-content .resizer-widget, -#-blink-dev-tools .tabbed-pane-content button.status-bar-item.left-sidebar-show-hide-button, -#-blink-dev-tools .tabbed-pane-content button.status-bar-item.right-sidebar-show-hide-button { - top: 0 !important; -} -#-blink-dev-tools .tabbed-pane-content not(.overrides-view) .tabbed-pane-header { - flex: 0 0 25px !important; -} -#-blink-dev-tools .tabbed-pane-content not(.overrides-view) .tabbed-pane-header .tabbed-pane-header-tab { - height: 25px !important; - line-height: 18.75px !important; - cursor: pointer !important; -} -#-blink-dev-tools #drawer-contents .tabbed-pane-header, -#-blink-dev-tools.inactive #drawer-contents .tabbed-pane-header { - border-top: none !important; - border-bottom: #222 !important; -} -#-blink-dev-tools body.undocked.platform-mac-mountain-lion.inactive .toolbar-background, -#-blink-dev-tools body.undocked.platform-mac-mountain-lion .toolbar-background, -#-blink-dev-tools body.platform-mac-mountain-lion.inactive .toolbar-background, -#-blink-dev-tools body.platform-mac-mountain-lion .toolbar-background, -#-blink-dev-tools body:not(.undocked) .toolbar-background { - background-image: -webkit-linear-gradient(#222222, #222222) !important; -} -#-blink-dev-tools .toolbar { - background: -webkit-linear-gradient(#222222, #222222) !important; - border-bottom: none !important; - flex: 0 0 34px !important; - padding: 0 !important; -} -#-blink-dev-tools .toolbar .tabbed-pane-header .tabbed-pane-header-tab { - height: 34px !important; - line-height: 25.5px !important; - padding: 2px 4px !important; - cursor: pointer !important; - border-image: none !important; -} -#-blink-dev-tools .toolbar .tabbed-pane-header .tabbed-pane-header-tabs-drop-down { - line-height: 30.6px; -} -#-blink-dev-tools .toolbar .toolbar-controls-left, -#-blink-dev-tools .toolbar .toolbar-controls-right { - padding-top: 6px !important; - border-bottom: 1px solid #222222 !important; - box-shadow: inset 0 1px 0 #525252 !important; -} -#-blink-dev-tools #network-views .network-item-view .tabbed-pane-header { - padding-top: 0 !important; -} -#-blink-dev-tools #network-views .network-item-view .tabbed-pane-header .tabbed-pane-header-tab { - height: 31px !important; -} -#-blink-dev-tools #network-views .network-item-view .tabbed-pane-header .tabbed-pane-header-tab-title { - line-height: 21px !important; -} -#-blink-dev-tools .tabbed-pane-header-tabs-drop-down { - color: #999 !important; -} -#-blink-dev-tools .split-view.hbox > .split-view-sidebar.split-view-contents-second:not(.maximized) { - border-left: 2px solid #222222 !important; -} -#-blink-dev-tools .split-view.hbox > .split-view-sidebar.split-view-contents-first:not(.maximized) { - border-right: 2px solid #222222 !important; -} -#-blink-dev-tools .platform-windows #tab-console { - width: 60px !important; -} -#-blink-dev-tools .platform-windows #tab-search { - width: 53px !important; -} -#-blink-dev-tools .platform-windows #tab-emulation { - width: 72px !important; -} -#-blink-dev-tools .platform-windows #tab-rendering { - width: 72px !important; -} -#-blink-dev-tools .platform-mac #tab-console { - width: 65px !important; -} -#-blink-dev-tools .platform-mac #tab-search { - width: 55px !important; -} -#-blink-dev-tools .platform-mac #tab-emulation { - width: 76px !important; -} -#-blink-dev-tools .platform-mac #tab-rendering { - width: 76px !important; -} -#-blink-dev-tools .styles-section.matched-styles .properties li.parent.expanded .expand-element, -#-blink-dev-tools #console-messages .console-group-messages .section.expanded .header::before, -#-blink-dev-tools #console-messages .properties-tree li.parent.expanded::before, -#-blink-dev-tools .outline-disclosure li.parent.expanded::before, -#-blink-dev-tools .properties-tree li.parent.expanded::before, -#-blink-dev-tools .section.expanded > .header::before, -#-blink-dev-tools .section .event-bar.expanded .header::before, -#-blink-dev-tools .sidebar-pane .parent.expanded::before, -#-blink-dev-tools .sidebar-pane-stack .sidebar-pane-title.expanded::before, -#-blink-dev-tools .timeline-expandable-expanded .timeline-expandable-arrow { - background-color: #aab0af !important; - background-image: none !important; - -webkit-mask-image: url(chrome-devtools://devtools/bundled/Images/statusbarButtonGlyphs.png) !important; - -webkit-mask-position: -4px -96px !important; - -webkit-mask-repeat: no-repeat !important; - color: rgba(0, 0, 0, 0) !important; - opacity: 1 !important; - -webkit-transition: -webkit-transform 0.1s ease-in-out; - -webkit-transform: rotate(90deg); -} -#-blink-dev-tools .styles-section.matched-styles .properties li.parent .expand-element, -#-blink-dev-tools #console-messages .console-group-messages .section .header::before, -#-blink-dev-tools #console-messages .properties-tree li.parent::before, -#-blink-dev-tools .outline-disclosure li.parent::before, -#-blink-dev-tools #search-results-pane-file-based .parent::before, -#-blink-dev-tools .properties-tree li.parent::before, -#-blink-dev-tools .section > .header::before, -#-blink-dev-tools .section .event-bar .header::before, -#-blink-dev-tools .sidebar-pane .parent::before, -#-blink-dev-tools .sidebar-pane-stack .sidebar-pane-title::before, -#-blink-dev-tools .timeline-expandable-collapsed .timeline-expandable-arrow { - background-color: #aab0af !important; - background-image: none !important; - -webkit-mask-image: url(chrome-devtools://devtools/bundled/Images/statusbarButtonGlyphs.png) !important; - -webkit-mask-position: -4px -96px !important; - -webkit-mask-repeat: no-repeat !important; - color: rgba(0, 0, 0, 0) !important; - opacity: 1 !important; - -webkit-transition: -webkit-transform 0.1s ease-in-out; - -webkit-transform: rotate(0deg); -} -#-blink-dev-tools .data-grid th.sort-ascending > div::after { - background-color: #aab0af !important; - background-image: none !important; - -webkit-mask-image: url(chrome-devtools://devtools/bundled/Images/statusbarButtonGlyphs.png) !important; - -webkit-mask-position: -4px -96px !important; - -webkit-mask-repeat: no-repeat !important; - color: rgba(0, 0, 0, 0) !important; - opacity: 1 !important; - -webkit-transition: -webkit-transform 0.1s ease-in-out; - -webkit-mask-position: -4px -108px !important; -} -#-blink-dev-tools .data-grid th.sort-descending > div::after { - background-color: #aab0af !important; - background-image: none !important; - -webkit-mask-image: url(chrome-devtools://devtools/bundled/Images/statusbarButtonGlyphs.png) !important; - -webkit-mask-position: -4px -96px !important; - -webkit-mask-repeat: no-repeat !important; - color: rgba(0, 0, 0, 0) !important; - opacity: 1 !important; - -webkit-transition: -webkit-transform 0.1s ease-in-out; - -webkit-mask-position: -20px -96px !important; -} -#-blink-dev-tools #search-results-pane-file-based .parent.expanded::before { - -webkit-mask-position: -20px -96px !important; -} -#-blink-dev-tools #drawer-contents .search-match-line-number, -#-blink-dev-tools .webkit-line-number { - background: #1a1a1a !important; - border-right: 1px solid #2b2b2b !important; - padding: 1px 5px 1px 0 !important; - display: inline-block; - color: #999 !important; -} -#-blink-dev-tools .search-drawer-header label.search-config-label, -#-blink-dev-tools .drawer .settings-tab label, -#-blink-dev-tools #drawer-footer td label { - text-shadow: none !important; - color: #bbb !important; -} -#-blink-dev-tools .revision-history-drawer ol[tabindex="0"] > .parent { - background-color: #2D2D2D !important; - color: #ddd !important; - border-top: 1px solid #5d5d5d !important; - border-bottom: 1px solid #111 !important; - height: 20px !important; -} -#-blink-dev-tools .revision-history-link { - color: #E0E0E0 !important; -} -#-blink-dev-tools .overrides-view .tabbed-pane-header-tab { - color: #999 !important; -} -#-blink-dev-tools .overrides-view .tabbed-pane-content { - color: #ccc !important; -} -#-blink-dev-tools .overrides-view .tabbed-pane-content :disabled { - color: #666!important; -} -#-blink-dev-tools .overrides-view .tabbed-pane-content input:disabled, -#-blink-dev-tools .overrides-view .tabbed-pane-content select:disabled { - background-color: #888!important; - border-color: #888 !important; -} -#-blink-dev-tools .overrides-footer { - background-color: #333 !important; - border-top: 1px solid #222 !important; - color: #ccc !important; -} -#-blink-dev-tools #search-results-pane-file-based .search-result { - background-color: #1a1a1a !important; - color: #E0E0E0 !important; - border-top: 1px solid #262626 !important; - border-bottom: 1px solid #0d0d0d !important; - line-height: 18px !important; - margin: 0 !important; -} -#-blink-dev-tools #search-results-pane-file-based .show-more-matches { - color: #E0E0E0 !important; -} -#-blink-dev-tools #search-results-pane-file-based .parent:hover { - background-color: #1f1f1f !important; - color: #b88fff !important; -} -#-blink-dev-tools #search-results-pane-file-based .parent .search-result-file-name { - color: #888888 !important; -} -#-blink-dev-tools #search-results-pane-file-based .parent .search-result-matches-count { - color: #93ce09 !important; -} -#-blink-dev-tools #search-results-pane-file-based .search-match .highlighted-match, -#-blink-dev-tools .highlighted-search-result, -#-blink-dev-tools .webkit-highlighted-line.webkit-line-content { - color: #000000 !important; - border-radius: 2px !important; - font-size: 1em !important; - background-color: #6A8C8C !important; - box-shadow: rgba(0, 0, 0, 0.498039) 3px 3px 4px 0px !important; -} -#-blink-dev-tools .search-match:hover { - background-color: #1f1f1f !important; -} -#-blink-dev-tools .inspector-footer { - background-color: #383838 !important; - border-top: none !important; -} -#-blink-dev-tools .search-results-matches { - color: #666 !important; -} -#-blink-dev-tools .search-match-content { - color: #A3A3A3 !important; -} -#-blink-dev-tools .search-status-bar-summary { - background: linear-gradient(#222222, #222222) !important; - border-top: 1px solid #6e6e6e !important; -} -#-blink-dev-tools .search-drawer-header input[type="checkbox"].search-config-checkbox { - vertical-align: middle !important; -} -#-blink-dev-tools .data-grid { - border: 1px solid #050505; - background-color: transparent !important; - background-image: none !important; -} -#-blink-dev-tools .data-grid th, -#-blink-dev-tools .data-grid .data { - background: none !important; -} -#-blink-dev-tools .data-grid .header { - background-image: -webkit-linear-gradient(#222222, #222222); -} -#-blink-dev-tools .data-grid .header th { - color: #E0E0E0 !important; -} -#-blink-dev-tools .data-grid .header .key-column, -#-blink-dev-tools .data-grid .header .value-column { - border: none !important; -} -#-blink-dev-tools .data-grid td { - border-left: 1px solid #181818 !important; -} -#-blink-dev-tools .data-grid .data-container a { - text-decoration: none; - color: #e3b959 !important; -} -#-blink-dev-tools .data-grid .data-container tr:nth-child(odd) { - background-color: #121212 !important; -} -#-blink-dev-tools .data-grid .data-container tr:nth-child(even) { - background-color: #171717 !important; -} -#-blink-dev-tools .data-grid .data-container tr:not(.selected):not(.filler):hover { - background-color: #1f1f1f !important; - outline: 1px solid #303030 !important; -} -#-blink-dev-tools .data-grid .data-container tr.selected { - background-color: #6A8C8C !important; - outline: 1px solid #56795e !important; -} -#-blink-dev-tools .data-grid .data-container tr .editing * { - color: #FFF !important; - background-color: #121212 !important; -} -#-blink-dev-tools .popover { - -webkit-border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGkAAABpCAYAAAA5gg06AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDowMzNFODNCNTE0QTZFMjExQjY2OUE2RUJCODYzRjA1RCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo5MDY1NzM5QkE2QTMxMUUyQkZBRkJBNzVEQjUzM0I4RCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo5MDY1NzM5QUE2QTMxMUUyQkZBRkJBNzVEQjUzM0I4RCIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgV2luZG93cyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjA0M0U4M0I1MTRBNkUyMTFCNjY5QTZFQkI4NjNGMDVEIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjAzM0U4M0I1MTRBNkUyMTFCNjY5QTZFQkI4NjNGMDVEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+4LICiQAAAl5JREFUeNrs3c9KVFEAwGHHmVEb6R85oLWpRArBIINo1RNEtIgmgqAnqF0v0M5WQdDGVYVU0EsEUYRERUhUCxdJVihpOZhTcztHZ6JFEQ13cet+PzjXGWFmcb45xzsgnEKSJF3Kdt2mAJIgQRIkQYIkSIIESZAgCZI6q9TpCyfqN3I9cRcrZ60kQcrHdveHhsMY/58n7jfb/WoYj+8cvTL38y+np6czhRRhamEcy/Mn/9S9C1Phx2TAepe1lTQSxvrH6+OrDz3vn7zpyxtOsbeUDB8f+xQenol/SgLW5QC1miWk0/Eyc/3RtueTD6p5XUXPrt2vjp47vLCvNh7n421cUVm5cRiKSJ/nlkp5Boo1Vr4UX999ur31tJalu7s98bI8u9DjXqyra2V+udxYWYtzuzNseZWsIJXjpdn4VkC0UdL88a9yRd+TfJkVJEGCJEiCBEmQIAmSIEESJEGCJEiQBEmQIAmSIEESJEGCJEiQBEmQIAmSIEESJEiCJEiQBEmQIAmSIEESJEiCJEiQBEmQIAkSJFMASZAg/U3rx88U+8qJKW1NbLm7PReNrCC9iJehI7vrmwb6v+YdqHpgV7208YF9mcb5SWkhLYVxMz4YOXlwsX9wSyPPQMMnxpZaT2+l8Z6FJOlsh/rFmXabw3jYfrIwM9+bNJNcnQJTrpSbW/cOrLWBwiq6FB9k6Uy/eEzaoTDOh1HbMTqY18W0GMbtAHQ1rTdM++DFuP9OtMb+HN491gPObNpvmuZ2l6uc2CxI/1odb3eykgQJkiBBEiRBgiRIggRJkCAp830XYABd2IbZvLB5+AAAAABJRU5ErkJggg==) 25 25 25 25 !important; - border-width: 25px !important; -} -#-blink-dev-tools .popover .arrow { - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAABMCAYAAACPiIzuAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDowMTNFODNCNTE0QTZFMjExQjY2OUE2RUJCODYzRjA1RCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoyMzdGN0JCRUE2QTQxMUUyOUFDOUJDNzA3QUQ2RDI5QiIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoyMzdGN0JCREE2QTQxMUUyOUFDOUJDNzA3QUQ2RDI5QiIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgV2luZG93cyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjAyM0U4M0I1MTRBNkUyMTFCNjY5QTZFQkI4NjNGMDVEIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjAxM0U4M0I1MTRBNkUyMTFCNjY5QTZFQkI4NjNGMDVEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+FMRF/AAAA6FJREFUeNrsl11IFFEUx1fdolbX/XBLM/tAt6JwtVo17CHooaAHCwvTwhJEkkgUEYyKIBCl3HwIfIko6JMUesgeLEstKwTZMtLwgyxDw7CHXfNbW+wcuXcYh5n1zp2FKBw4zJ2P/e25d84953+C5ubmdIE6gpZgfxl2ZfyOJkCp4YQwDtYF8AgoTK8VkJSUpMqzXLBn5KzJs4tgWWRcAmYDq+RZswsI6qvrML4sehRN7uWAFauFnQM7joMvTzrNw+2Doa/P1kWRZ3lgBaywUrBsHKBHnp7hFTgeav1qbL1UH0neOQ2WvxiskExFh56gR+KHA0294W5Xo036rhxM+Df0AD2RmwpM2/KhuiWCzuJoS9FhKUxYh7aKhlXogb9P3Fvbbv14/a2VXJYBcD+F2egXelfVZOt/2mVmCdbu++6IzputFnKZRWGpOMAQ6HvcYVET/f31Xaax7yMYq7vAuzUIe44P4g46RuPzUn+ygkKjwmc3ZWz3hK01/YbLh7V7rg0hbIpOc9vJFC8LMCzGPGM/kujZkrlzBEFgVeIP0MAKDN9onbanJ4hBLvBqQhoaCCzyB0RQbFq8d3PGjl8EVAGgKaWgfUFDBIGOU7sFoNlum7KnJ3pEoDIw32JZo5kAq7dmJ3vxxuCrz8Z9N44NkOcUpKoG7EWg5N4DsHLxDZgmUwpqJturmVzfloLUJsc3xAxgE4GqAYogt9v9D5S6JRX0P8GYglYsTqQHpOsQOGWCLdOkggCEFeoMLSh6DaAQCuqpeW/Sqs/OU1D3PbfVN+sL1nN6JSgkKI/m6ZFJPdfeBNAChTQ26F3OtdEBVCKnkFTDAFRIpaicQmIO2sqJuwfgdJUqJCVhw+pZJotCYoVhgdaZ4mwzhtXGWa2wGqyXKAlQrKBo4YZBbfQRcTIPRNESGm2a4a4BRJy4BGB6ghfVEHdBISLlMgXGHXIsAKreAQDE9aoQA43rLdORznXjTHEml89I1pjf7D/avq2MStkwyQ0TQYX+KsjpdGpO1wBMhpMXJVUuifAaWI9b/n4k1hVKcYaZIAbP8A+lmrSGtAUEYDE3TK4FBGABF0ypBQRgviZJJW0BAZijSZ/5awG5xJ5SC8itHOVaQE0yVNoCcsPkWkAuFYQ5ClOLtAVUDZPp3Fzizo0ZptAC+lSLPWwBY9McXsjto2SNylQrR+wppS0gD4i2iJ/ELSCAyrXkM6EF9Adi8gzTNgSkgTbtWjLtHwEGAIab1RKaLSq+AAAAAElFTkSuQmCC) !important; - width: 20px !important; - height: 20px !important; -} -#-blink-dev-tools .popover .content { - color: #E0E0E0 !important; -} -#-blink-dev-tools .popover .content .source-frame-popover-title { - color: #ff8b3e !important; -} -#-blink-dev-tools .popover .content .source-frame-popover-tree { - border-top: 1px solid #888888 !important; -} -#-blink-dev-tools .popover .content .popover-details-title { - color: #ddbb00 !important; -} -#-blink-dev-tools .popover .content .popover-details-row-title { - color: #f9246b !important; -} -#-blink-dev-tools .popover .content .network-timing-bar { - background-color: #6A8C8C !important; - border-left-color: #6A8C8C !important; -} -#-blink-dev-tools .popover .content .network-timing-bar-title { - color: #E0E0E0 !important; - text-shadow: 0 1px 1px #1f1f1f; -} -#-blink-dev-tools .webkit-line-content .text-editor-overlay-highlight { - background-color: #6A8C8C !important; - outline: 1px solid #56795e !important; -} -#-blink-dev-tools .panel.resources .base-storage-tree-element-title, -#-blink-dev-tools .panel.resources .base-storage-tree-element-subtitle, -#-blink-dev-tools .panel.sources .base-navigator-tree-element-title { - color: #E0E0E0 !important; - top: 2px !important; -} -#-blink-dev-tools .resources.panel .sidebar li { - color: #E0E0E0 !important; -} -#-blink-dev-tools .panel.resources .selected .base-storage-tree-element-title, -#-blink-dev-tools .panel.resources .selected .base-storage-tree-element-subtitle, -#-blink-dev-tools .panel.sources .selected .base-navigator-tree-element-title { - color: #B0B0B0 !important; -} -#-blink-dev-tools .panel.resources .outline-disclosure li.selected .selection, -#-blink-dev-tools .panel.sources .outline-disclosure li.selected .selection { - background: #6A8C8C !important; - color: #B0B0B0 !important; - border-top: 1px solid #56795e !important; - border-bottom: 1px solid #56795e !important; - margin-top: -1px !important; -} -#-blink-dev-tools .panel.resources .outline-disclosure li:hover:not(.selected) .selection, -#-blink-dev-tools .panel.sources .outline-disclosure li:hover:not(.selected) .selection { - display: block !important; - background: #1f1f1f !important; - border-top: 1px solid #383838 !important; - border-bottom: 1px solid #383838 !important; - margin-top: -1px !important; - height: 18px !important; -} -#-blink-dev-tools .panel.resources .outline-disclosure ol:focus li.selected .selection, -#-blink-dev-tools .panel.sources .outline-disclosure ol:focus li.selected .selection { - background: #6A8C8C !important; - color: #B0B0B0 !important; - border-top: 1px solid #56795e !important; - border-bottom: none !important; - margin-top: -1px !important; - text-shadow: none !important; -} -#-blink-dev-tools .panel.resources .outline-disclosure ol:focus li.selected .base-storage-tree-element-title, -#-blink-dev-tools .panel.resources ol:focus .selected .base-storage-tree-element-subtitle, -#-blink-dev-tools .panel.sources .outline-disclosure ol:focus li.selected .base-navigator-tree-element-title { - color: #B0B0B0 !important; - text-shadow: none !important; -} -#-blink-dev-tools .sidebar li.selected .selection { - background-image: none !important; - border: none !important; -} -#-blink-dev-tools .panel.sources .sidebar-overlay { - border-right: 1px solid #1a1a1a !important; - box-shadow: #141414 5px 0px 22px 3px !important; -} -#-blink-dev-tools .suggest-box { - color: #000 !important; - background-color: #121212 !important; - border: 2px rgba(0, 0, 0, 0.2) solid !important; - box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.1) !important; -} -#-blink-dev-tools .suggest-box-content-item.source-code:hover { - background-color: #1f1f1f !important; - border: 1px solid rgba(0, 0, 0, 0) !important; -} -#-blink-dev-tools .suggest-box-content-item.source-code.selected { - background-color: #1f1f1f !important; -} -#-blink-dev-tools .suggest-box .source-code .prefix { - color: #E0E0E0 !important; -} -#-blink-dev-tools .suggest-box .source-code .suffix { - color: #b88fff !important; -} -#-blink-dev-tools #network-container:not(.brief-mode) .network-log-grid.data-grid td.name-column:hover { - text-decoration: none !important; -} -#-blink-dev-tools .data-grid { - /* Network header */ -} -#-blink-dev-tools .data-grid .header th { - color: #cccccc !important; -} -#-blink-dev-tools .data-grid th.sort-ascending, -#-blink-dev-tools .data-grid th.sort-descending, -#-blink-dev-tools .data-grid th.sortable, -#-blink-dev-tools .data-grid .timeline-column, -#-blink-dev-tools .data-grid .corner { - border-right: 1px solid #2b2b2b !important; - border-bottom: 1px solid #2b2b2b !important; -} -#-blink-dev-tools .data-grid .network-timeline-grid .resources-divider-label { - color: #E0E0E0 !important; -} -#-blink-dev-tools .data-grid .network-timeline-grid .resources-divider { - border-right: 1px solid rgba(51, 51, 51, 0.8); -} -#-blink-dev-tools .timeline-column option { - color: #E0E0E0 !important; - background: #121212 !important; -} -#-blink-dev-tools .resource-headers-view .outline-disclosure .header-name, -#-blink-dev-tools #network-views .resource-view .infoList dt { - color: #525252 !important; -} -#-blink-dev-tools .resource-headers-view .outline-disclosure .header-value, -#-blink-dev-tools #network-views .resource-view .infoList dd { - color: #E0E0E0; -} -#-blink-dev-tools .resource-timing-view table { - background-color: #1f1f1f !important; - padding: 20px !important; - border-radius: 4px; - margin: 20px !important; -} -#-blink-dev-tools .resource-timing-view table td .network-timing-bar-title { - color: #444 !important; -} -#-blink-dev-tools #network-views .resource-headers-view .parent { - background-color: #181818; - color: #E0E0E0 !important; - border-top: 1px solid #2b2b2b; - border-bottom: 1px solid #050505; - line-height: 18px; -} -#-blink-dev-tools #network-views .script-view-fallback { - background-color: #121212 !important; - color: #E0E0E0 !important; -} -#-blink-dev-tools .resource-headers-view .outline-disclosure .header-count, -#-blink-dev-tools .resource-headers-view .outline-disclosure .header-toggle { - color: #E0E0E0 !important; - margin-left: 4px !important; -} -#-blink-dev-tools .resource-headers-view .outline-disclosure .header-toggle:hover { - text-shadow: 0 0 10px #6A8C8C; -} -#-blink-dev-tools .network-cell-subtitle { - color: #985cff !important; -} -#-blink-dev-tools .network-log-grid.data-grid th { - border-bottom: transparent !important; -} -#-blink-dev-tools .panel:not(.timeline):not(.audits):not(.profiles):not(.cpu-profiler):not(.css-profiler):not(.heap-profiler):not(.canvas-profiler) table, -#-blink-dev-tools .network-graph-bar, -#-blink-dev-tools .network-graph-label, -#-blink-dev-tools .network-graph-bar-area { - color: #E0E0E0 !important; -} -#-blink-dev-tools .network-summary-bar { - background-image: -webkit-linear-gradient(#222222, #222222); - border-top: 1px solid #121212 !important; - color: #E0E0E0 !important; -} -#-blink-dev-tools .console-message { - border-bottom: none !important; -} -#-blink-dev-tools .console-status-bar { - background: -webkit-linear-gradient(#222222, #222222) !important; - box-shadow: inset 0 1px 0 #525252, inset 0 -1px 0 #0d0d0d; - border-bottom: none !important; -} -#-blink-dev-tools #console-prompt { - color: #f1f1f1 !important; - border-top: none !important; - border-top: 1px solid #1f1f1f !important; - border-bottom: 1px solid #2b2b2b !important; -} -#-blink-dev-tools #console-messages { - border-top: none !important; -} -#-blink-dev-tools .console-user-command { - background-color: #171717 !important; - border-top: 1px solid #1a1a1a !important; - border-bottom: 1px solid #0d0d0d !important; -} -#-blink-dev-tools .console-message .children li, -#-blink-dev-tools .console-user-command .children li { - margin: 1px 0 !important; -} -#-blink-dev-tools #console-messages .console-user-command > .console-message-text { - color: #E0E0E0 !important; -} -#-blink-dev-tools #console-messages .console-log-level .console-message-text, -#-blink-dev-tools #console-messages .console-debug-level .console-message-text, -#-blink-dev-tools #console-messages .console-log-level .console-message-url, -#-blink-dev-tools #console-messages .console-debug-level .console-message-url { - color: #f9246b !important; -} -#-blink-dev-tools #console-messages .console-log-level .children div:hover *, -#-blink-dev-tools #console-messages .console-debug-level .children div:hover * { - color: #f90b5a !important; -} -#-blink-dev-tools #console-messages .console-warning-level .console-message-text, -#-blink-dev-tools #console-messages .console-warning-level .console-message-url { - color: #ddbb00 !important; -} -#-blink-dev-tools #console-messages .console-warning-level .children div:hover * { - color: #c4a500 !important; -} -#-blink-dev-tools #console-messages .console-error-level .console-message-text, -#-blink-dev-tools #console-messages .console-error-level .console-message-url { - color: #ff6666 !important; -} -#-blink-dev-tools #console-messages .console-error-level .children div:hover * { - color: #ff4c4c !important; -} -#-blink-dev-tools #console-messages .outline-disclosure .stacktrace-entry:hover { - background-color: #141414 !important; -} -#-blink-dev-tools #console-messages a { - color: #888888 !important; -} -#-blink-dev-tools #console-messages a:hover { - color: #959595 !important; -} -#-blink-dev-tools #console-messages .console-message { - color: #E0E0E0 !important; -} -#-blink-dev-tools .console-group-messages .section .header .title { - color: #E0E0E0 !important; -} -#-blink-dev-tools .console-message .bubble { - text-shadow: 0 0 1px rgba(0, 0, 0, 0.4) !important; -} -#-blink-dev-tools .bubble.debug, -#-blink-dev-tools .console-debug-level .bubble { - background-color: #f9246b !important; -} -#-blink-dev-tools .bubble.warning, -#-blink-dev-tools .console-warning-level .bubble { - background-color: #e8a400 !important; -} -#-blink-dev-tools .bubble.error, -#-blink-dev-tools .console-error-level .bubble { - background-color: #d82323 !important; -} -#-blink-dev-tools .timeline-category-statusbar-item, -#-blink-dev-tools .timeline-records-stats { - text-shadow: none !important; - color: #ccc !important; -} -#-blink-dev-tools .timeline-graph-side.hovered { - background-color: #1f1f1f !important; - outline: 1px solid #383838; -} -#-blink-dev-tools .timeline-graph-side.selected { - background-color: #6A8C8C !important; - outline: 1px solid #56795e !important; -} -#-blink-dev-tools .timeline-tree-item { - color: #E0E0E0 !important; -} -#-blink-dev-tools .timeline-tree-item .data.dimmed { - color: #E0E0E0 !important; - opacity: .7 !important; -} -#-blink-dev-tools .sidebar-tree-section { - text-shadow: none !important; -} -#-blink-dev-tools .timeline-tree-item.selected .timeline-tree-item-expand-arrow, -#-blink-dev-tools .timeline-tree-item-expand-arrow { - background-color: #aab0af !important; -} -#-blink-dev-tools #counter-values-bar, -#-blink-dev-tools #memory-graphs-container .sidebar-tree-section, -#-blink-dev-tools .timeline-records-title, -#-blink-dev-tools .timeline-details-view-title { - background-image: -webkit-linear-gradient(#222222, #222222); - color: #E0E0E0 !important; - text-shadow: none !important; -} -#-blink-dev-tools #counter-values-bar { - position: relative !important; - top: 1px !important; - border-bottom: none !important; -} -#-blink-dev-tools .timeline-aggregated-info-legend > div, -#-blink-dev-tools .memory-counter-sidebar-info { - color: #E0E0E0 !important; -} -#-blink-dev-tools .timeline-details-view-row-title { - color: #E0E0E0 !important; -} -#-blink-dev-tools .timeline-details-view-title { - border-bottom: none !important; -} -#-blink-dev-tools .timeline-details-view-row-value, -#-blink-dev-tools .timeline-details-view-row-stack-trace { - color: #E0E0E0 !important; -} -#-blink-dev-tools .timeline-details-view-row-stack-trace .webkit-html-resource-link { - color: #e3b959 !important; -} -#-blink-dev-tools #timeline-overview-sidebar { - border-right: 1px solid #121212 !important; -} -#-blink-dev-tools #timeline-overview-sidebar .sidebar-tree-item.selected { - border-left: 6px solid #6A8C8C !important; -} -#-blink-dev-tools #timeline-overview-sidebar .sidebar-tree-item.selected .icon { - background-color: #B0B0B0 !important; -} -#-blink-dev-tools #timeline-overview-sidebar .sidebar-tree-item.selected .title { - color: #B0B0B0 !important; -} -#-blink-dev-tools #timeline-overview-sidebar .icon { - background-color: #6A8C8C !important; -} -#-blink-dev-tools #timeline-overview-sidebar .title { - color: #E0E0E0 !important; -} -#-blink-dev-tools .timeline-cpu-curtain-left, -#-blink-dev-tools .timeline-cpu-curtain-right { - background-color: #6A8C8C !important; - opacity: 0.3 !important; -} -#-blink-dev-tools .timeline-expandable { - border-left: 1px solid #6b6b6b !important; -} -#-blink-dev-tools .timeline-expandable-left { - border-top: 1px solid #6b6b6b !important; - border-bottom: 1px solid #6b6b6b !important; -} -#-blink-dev-tools .timeline-utilization-strip .timeline-graph-bar { - border-color: rgba(200, 200, 200, 0.3) !important; - background-color: rgba(200, 200, 200, 0.2) !important; -} -#-blink-dev-tools #timeline-overview-panel { - border-bottom: 1px solid #404040 !important; -} -#-blink-dev-tools .resources-divider { - background-color: #1a1a1a !important; -} -#-blink-dev-tools .panel:not(.network) .resources-dividers-label-bar { - background: transparent !important; - border-bottom: 1px solid #0d0d0d !important; -} -#-blink-dev-tools .panel:not(.network) #timeline-grid-header .resources-dividers-label-bar { - background: -webkit-linear-gradient(#222222, #222222) !important; -} -#-blink-dev-tools .timeline .resources-event-divider.timeline-frame-divider { - background-color: #1f1f1f !important; -} -#-blink-dev-tools .overview-grid-dividers-background { - background-color: red !important; -} -#-blink-dev-tools #timeline-overview-container { - background-color: rgba(0, 0, 0, 0.8) !important; -} -#-blink-dev-tools #timeline-overview-container canvas { - background-color: transparent !important; -} -#-blink-dev-tools #timeline-container .sidebar-tree-section { - background: -webkit-linear-gradient(#222222, #222222) !important; - margin-top: 0 !important; -} -#-blink-dev-tools .overview-grid-window-resizer { - box-shadow: none !important; -} -#-blink-dev-tools .overview-grid-window-rulers { - border-right: 1px solid #6A8C8C; - border-left: 1px solid #6A8C8C; -} -#-blink-dev-tools .timeline-frame-strip { - color: #E0E0E0 !important; -} -#-blink-dev-tools .overview-grid-dividers-background { - background-color: #1f1f1f !important; -} -#-blink-dev-tools .overview-grid-window { - background-color: #6A8C8C !important; -} -#-blink-dev-tools #memory-counters-graph { - border-right: 1px solid #1a1a1a !important; -} -#-blink-dev-tools .source-code .CodeMirror { - outline: none !important; - border: 1px solid #1f1f1f; - border-radius: 5px; - box-shadow: inset 0 0 15px 0 rgba(17, 17, 17, 0.6) !important; - margin: 10px 0; - padding: 10px 0 0 10px !important; - color: #E0E0E0 !important; -} -#-blink-dev-tools #elements-content .CodeMirror { - outline: none !important; -} -#-blink-dev-tools .panel.elements .editing { - background-color: #121212 !important; - outline: 1px solid #6A8C8C !important; - color: #E0E0E0 !important; -} -#-blink-dev-tools .panel.elements .outline-disclosure ol:focus li.selected .selection, -#-blink-dev-tools .panel.elements .outline-disclosure li.selected .selection { - outline: 1px solid #56795e !important; - background-color: #6A8C8C !important; -} -#-blink-dev-tools .panel.elements .outline-disclosure li.hovered:not(.selected) .selection { - border-radius: 0 !important; - background-color: #1f1f1f !important; - border-top: 1px solid #383838 !important; - border-bottom: 1px solid #383838 !important; -} -#-blink-dev-tools #profile-views .data-grid td > div, -#-blink-dev-tools .profile-launcher-view label, -#-blink-dev-tools .retainers-view-header, -#-blink-dev-tools .profile-launcher-view-tree-item, -#-blink-dev-tools .sidebar-tree-section, -#-blink-dev-tools .resources-divider-label, -#-blink-dev-tools .panel:not(.timeline) .sidebar-tree-item { - color: #E0E0E0 !important; -} -#-blink-dev-tools #profile-views .data-grid button { - color: #b88fff !important; -} -#-blink-dev-tools .heap-snapshot-view tr:not(.selected) td.object-column span.highlight { - background-color: #6A8C8C !important; - border-radius: 3px; -} -#-blink-dev-tools .profiles-status-bar .status-bar, -#-blink-dev-tools .retainers-view-header, -#-blink-dev-tools .heap-snapshot-view .class-view-toolbar, -#-blink-dev-tools .timeline-frame-container { - background: -webkit-linear-gradient(#222222, #222222) !important; - box-shadow: inset 0 1px 0 #525252; - border-top: none !important; -} -#-blink-dev-tools body.inactive .sidebar-tree-item.selected, -#-blink-dev-tools :focus .sidebar-tree-item.selected, -#-blink-dev-tools .sidebar-tree-item.selected { - background-color: #121212 !important; -} -#-blink-dev-tools .resources-status-bar .status-bar { - background: -webkit-linear-gradient(#222222, #222222) !important; - box-shadow: inset 0 1px 0 #525252; - border-top: none !important; -} -#-blink-dev-tools .resource-view.image .title { - color: #E0E0E0 !important; -} -#-blink-dev-tools .resource-view.image .infoList dt { - color: #3e00a8 !important; - margin-bottom: 5px !important; -} -#-blink-dev-tools .resource-view.image .infoList dd { - color: #5000db !important; - margin-bottom: 5px !important; -} -#-blink-dev-tools .database-query-prompt { - color: #E0E0E0 !important; -} -#-blink-dev-tools .database-user-query { - border-top: 1px solid #121212 !important; - border-bottom: 1px solid #000000 !important; - padding-bottom: 10px !important; -} -#-blink-dev-tools .database-user-query + span { - padding: 2px 0 !important; - border-top: 1px solid #121212 !important; - border-bottom: 1px solid #000000 !important; - background-color: #252525 !important; - width: 100% !important; -} -#-blink-dev-tools .database-user-query .database-query-text { - color: #aaaaaa !important; - width: 100% !important; - display: inline-block !important; - margin-bottom: 5px; - margin-top: 2px; -} -#-blink-dev-tools .database-user-query::before, -#-blink-dev-tools .database-query-result::before { - margin-top: -5px !important; -} -#-blink-dev-tools .database-user-query .error { - color: #ff6666 !important; -} -#-blink-dev-tools .settings-tab .help-section-title, -#-blink-dev-tools .settings-tab-container .help-section-title { - color: #E0E0E0 !important; -} -#-blink-dev-tools .help-window-main, -#-blink-dev-tools .help-window-main label:hover, -#-blink-dev-tools .settings-tab .help-block label, -#-blink-dev-tools .settings-tab .help-block label:hover, -#-blink-dev-tools .settings-tab .help-block td { - color: #E0E0E0 !important; -} -#-blink-dev-tools .settings-tab select, -#-blink-dev-tools .help-window-main .help-block select, -#-blink-dev-tools .help-content option, -#-blink-dev-tools .settings-tab input { - color: #121212 !important; -} -#-blink-dev-tools .help-window-main .help-block select:disabled, -#-blink-dev-tools .settings-tab select:disabled, -#-blink-dev-tools .settings-tab input:disabled { - background-color: #888888 !important; - border-color: #bbbbbb !important; - color: #bbbbbb !important; -} -#-blink-dev-tools .settings-tab-container .help-key-cell .help-key { - color: #121212 !important; -} -#-blink-dev-tools .settings-tab-container .help-key-cell span { - color: #eeeeee !important; -} -#-blink-dev-tools .help-window-main .settings-list-container { - background-color: rgba(0, 0, 0, 0) !important; -} -#-blink-dev-tools .help-window-main .settings-list { - border: 1px solid #444444 !important; -} -#-blink-dev-tools .help-window-main .settings-list-item, -#-blink-dev-tools .help-window-main .settings-list-item:hover { - background-color: #1f1f1f !important; - border-top: 1px solid #525252 !important; - border-bottom: 1px solid #0d0d0d !important; -} -#-blink-dev-tools .help-window-main .settings-list-item.selected { - background-color: rgba(150, 255, 150, 0.2) !important; -} -#-blink-dev-tools .help-window-main .settings-list-item:nth-child(1) { - border-top: none !important; -} -#-blink-dev-tools .help-window-main .settings-list-item:last-child { - border-bottom: none !important; -} -#-blink-dev-tools .dialog-contents .header { - color: #E0E0E0 !important; -} -#-blink-dev-tools .help-window-main .file-system-path { - color: #E0E0E0 !important; -} -#-blink-dev-tools .help-window-main .file-system-path-name { - color: #E0E0E0 !important; -} -#-blink-dev-tools .settings-dialog { - border: 1px solid #444444 !important; - background-color: #333 !important; - border-radius: 4px !important; -} -#-blink-dev-tools .dialog-contents .header { - color: #ccc !important; -} -#-blink-dev-tools .dialog-contents .block-header { - color: #E0E0E0 !important; -} -#-blink-dev-tools .settings-dialog .settings-list-container { - background-color: rgba(0, 0, 0, 0) !important; -} -#-blink-dev-tools .settings-dialog .settings-list { - border: 1px solid #484848 !important; - border-top: 2px solid #282828 !important; - border-bottom: 1px solid #585858 !important; - border-radius: 2px !important; -} -#-blink-dev-tools .settings-dialog .settings-list-item, -#-blink-dev-tools .settings-dialog .settings-list-item:hover { - background-color: #444444 !important; - border-top: 1px solid #4e4e4e !important; - border-bottom: none !important; - color: #ccc!important; -} -#-blink-dev-tools .settings-dialog .file-mappings-list .settings-list-item:first-child { - border-top: none !important; -} -#-blink-dev-tools .tabbed-pane-placeholder { - text-shadow: 0 1px 0 #121212 !important; - color: #cccccc !important; -} -#-blink-dev-tools .source-frame-unsaved-committed-changes { - background-color: rgba(255, 255, 255, 0.2) !important; -} -#-blink-dev-tools .breakpoints-list-deactivated { - background-color: #1f1f1f !important; - opacity: 0.3 !important; -} -#-blink-dev-tools .breakpoint-list li { - color: #E0E0E0 !important; - border-top: 1px solid #242424 !important; - border-bottom: 1px solid #000000 !important; -} -#-blink-dev-tools .sidebar-pane .breakpoint-hit { - background: #6A8C8C !important; - border-top: 1px solid #56795e !important; - border-bottom: 1px solid #56795e !important; - color: #eee !important; -} -#-blink-dev-tools .sidebar-pane .breakpoint-list li:not(.breakpoint-hit):hover { - background-color: #1f1f1f !important; - border-top: 1px solid #242424 !important; - border-bottom: 1px solid #000000 !important; -} -#-blink-dev-tools .breakpoints-deactivated .breakpoint-list { - background-color: rgba(0, 0, 0, 0) !important; - opacity: .3 !important; -} -#-blink-dev-tools .sidebar-pane > .body .info, -#-blink-dev-tools .sidebar-label, -#-blink-dev-tools .placard .title, -#-blink-dev-tools .placard .subtitle { - color: #E0E0E0 !important; -} -#-blink-dev-tools .placard:nth-of-type(2n) { - background: #1a1a1a !important; -} -#-blink-dev-tools .placard.selected { - background: #6A8C8C !important; - color: #B0B0B0 !important; - border-top: 1px solid #56795e !important; - border-bottom: 1px solid #56795e !important; -} -#-blink-dev-tools .placard.selected * { - color: #eee !important; -} -#-blink-dev-tools .sidebar-pane > .body .placard + .info { - background: #121212 !important; - border-top: 0 !important; - color: #E0E0E0 !important; - font-style: normal !important; -} -#-blink-dev-tools .sidebar-pane .section.expanded > .header { - border-bottom: 1px solid #0d0d0d !important; -} -#-blink-dev-tools .sidebar-pane-stack > .sidebar-pane.visible:nth-last-of-type(1) { - border-bottom: none !important; -} -#-blink-dev-tools .sidebar-pane-stack .section .event-bars, -#-blink-dev-tools .sidebar-pane .section .event-bars, -#-blink-dev-tools .sidebar-pane-stack .properties-tree, -#-blink-dev-tools .sidebar-pane .properties-tree { - background-color: #121212 !important; -} -#-blink-dev-tools .sidebar-pane-stack .section .event-bars, -#-blink-dev-tools .sidebar-pane-toolbar .select-settings option, -#-blink-dev-tools .sidebar-pane-toolbar .sidebar-pane-subtitle, -#-blink-dev-tools .sidebar-pane { - color: #bbb !important; -} -#-blink-dev-tools .sidebar-pane-title { - background-image: -webkit-linear-gradient(#222222, #222222) !important; - color: #E0E0E0; - border-top: 1px solid #222222 !important; - border-bottom: 1px solid #222222 !important; -} -#-blink-dev-tools .pane-title-button.add, -#-blink-dev-tools .sidebar-pane-toolbar > .pane-title-button.refresh, -#-blink-dev-tools .pane-title-button.element-state { - /*background-image: none !important;*/ - -webkit-background-position: -24px 0 !important; - background-color: rgba(0, 0, 0, 0.8) !important; - -webkit-mask-repeat: no-repeat !important; -} -#-blink-dev-tools .pane-title-button.add { - -webkit-mask-image: url(chrome-devtools://devtools/bundled/Images/paneAddButtons.png) !important; -} -#-blink-dev-tools .sidebar-pane-toolbar > .pane-title-button.refresh { - -webkit-mask-image: url(chrome-devtools://devtools/bundled/Images/paneRefreshButtons.png) !important; -} -#-blink-dev-tools .panel.elements .sidebar-pane-toolbar > select.select-settings { - /*background-image: none !important; */ - -webkit-background-position: -24px 0 !important; - background-color: rgba(0, 0, 0, 0.8) !important; - -webkit-mask-repeat: no-repeat !important; - -webkit-mask-image: url(chrome-devtools://devtools/bundled/Images/paneSettingsButtons.png) !important; -} -#-blink-dev-tools .pane-title-button.element-state { - -webkit-mask-image: url(chrome-devtools://devtools/bundled/Images/paneElementStateButtons.png) !important; -} -#-blink-dev-tools .webkit-highlighted-line.webkit-line-content { - border-radius: 2px; -} -#-blink-dev-tools .webkit-highlighted-line.webkit-line-content * { - color: #121212 !important; -} -#-blink-dev-tools .scripts-pause-on-exceptions-status-bar-item.toggled-all .glyph { - background-color: rgba(180, 3, 3, 0.4) !important; -} -#-blink-dev-tools .scripts-pause-on-exceptions-status-bar-item.toggled-uncaught .glyph { - background-color: rgba(213, 181, 0, 0.6) !important; -} -#-blink-dev-tools .webkit-highlighted-line { - background-color: #6A8C8C !important; -} -#-blink-dev-tools .alternate-status-bar-buttons-bar .scripts-pause, -#-blink-dev-tools .alternate-status-bar-buttons-bar .scripts-long-resume, -#-blink-dev-tools .alternate-status-bar-buttons-bar .status-bar-item { - background-color: #1f1f1f !important; - border: 1px solid #121212 !important; -} -#-blink-dev-tools .alternate-status-bar-buttons-bar .status-bar-item.emulate-active { - background-color: #121212 !important; - border: 1px solid #1f1f1f !important; -} -#-blink-dev-tools .properties-tree li, -#-blink-dev-tools .outline-disclosure li::before, -#-blink-dev-tools .properties-tree li.parent { - background-color: inherit !important; - line-height: inherit !important; -} -#-blink-dev-tools .scripts-status-bar { - background: -webkit-linear-gradient(#222222, #222222) !important; - box-shadow: inset 0 1px 0 #525252 !important; - border-top: none !important; - overflow: none !important; -} -#-blink-dev-tools #scripts-debug-toolbar { - background: -webkit-linear-gradient(#222222, #222222) !important; - border-bottom: 1px solid #0d0d0d !important; - box-shadow: inset 0 1px 0 #525252; -} -#-blink-dev-tools .CodeMirror .webkit-html-message-bubble { - color: #111 !important; - border-radius: 2px !important; - padding: 2px !important; -} -#-blink-dev-tools .CodeMirror-linewidget { - box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important; -} -#-blink-dev-tools .CodeMirror-linewidget .source-frame-breakpoint-condition { - border: 1px solid #5e5e5e !important; - border-radius: 4px !important; - background-image: -webkit-linear-gradient(#222222, #222222) !important; -} -#-blink-dev-tools .CodeMirror-linewidget .source-frame-breakpoint-message { - color: #E0E0E0 !important; -} -#-blink-dev-tools .CodeMirror-linewidget #source-frame-breakpoint-condition { - background-color: #121212 !important; - border: none !important; - height: 22px !important; -} -#-blink-dev-tools select.status-bar-item, -#-blink-dev-tools select.status-bar-item:hover, -#-blink-dev-tools .filter-bitset-filter li { - color: #AAA !important; - text-shadow: none !important; -} -#-blink-dev-tools select.status-bar-item option { - background-color: #282828 !important; -} -#-blink-dev-tools .status-bar-items { - border-left: none !important; -} -#-blink-dev-tools select.status-bar-item, -#-blink-dev-tools select.status-bar-item:hover { - border-left: 1px solid #333 !important; - border-right: 1px solid #333 !important; -} -#-blink-dev-tools .split-view-sidebar-right { - border-left: 1px solid #3A3A3A !important; - -webkit-box-shadow: none !important; -} -#-blink-dev-tools .status-bar label[for=search-replace-trigger], -#-blink-dev-tools #bottom-status-bar-container .type, -#-blink-dev-tools #bottom-status-bar-container .timeline-records-stats, -#-blink-dev-tools .drawer-header span, -#-blink-dev-tools .source-frame-cursor-position, -#-blink-dev-tools .search-status-bar-message, -#-blink-dev-tools .search-status-bar-summary span, -#-blink-dev-tools .search-results-status-bar-message { - text-shadow: none !important; - color: #bbb !important; -} -#-blink-dev-tools button.scripts-step-over .glyph, -#-blink-dev-tools button.scripts-step-into .glyph, -#-blink-dev-tools button.scripts-step-out .glyph, -#-blink-dev-tools .filters-toggle.toggled-active .glyph, -#-blink-dev-tools button.status-bar-item.toggled-on .glyph, -#-blink-dev-tools button.status-bar-item.toggled-on .glyph:not(.shadow), -#-blink-dev-tools button.clear-status-bar-item:active .glyph, -#-blink-dev-tools button.garbage-collect-status-bar-item:active .glyph, -#-blink-dev-tools button.glue-async-status-bar-item:active .glyph, -#-blink-dev-tools .filters-toggle.toggled-shown .glyph { - background-color: #6A8C8C !important; -} -#-blink-dev-tools #scripts-debugger-status { - color: #E0E0E0 !important; -} -#-blink-dev-tools button.scripts-step-over:disabled .glyph, -#-blink-dev-tools button.scripts-step-into:disabled .glyph, -#-blink-dev-tools button.scripts-step-out:disabled .glyph { - background-color: #222 !important; -} -#-blink-dev-tools .sources-status-bar, -#-blink-dev-tools .panel-status-bar, -#-blink-dev-tools .resources-status-bar .status-bar { - background-image: -webkit-linear-gradient(#222222, #222222); - border-top: #222 !important; -} -#-blink-dev-tools .filter-bitset-filter li, -#-blink-dev-tools .filter-bitset-filter li.selected, -#-blink-dev-tools .filter-bitset-filter li:hover, -#-blink-dev-tools .filter-bitset-filter li:active { - text-shadow: 0 0 0 rgba(0, 0, 0, 0) !important; - color: #ccc !important; -} -#-blink-dev-tools .filter-bitset-filter li:hover { - background: #2b2b2b !important; -} -#-blink-dev-tools .network-filters-header, -#-blink-dev-tools .console-filters-header, -#-blink-dev-tools .timeline-filters-header { - background: #1f1f1f; -} -#-blink-dev-tools .filter-bitset-filter-divider { - background-color: rgba(106, 140, 140, 0.6); -} -#-blink-dev-tools .filter-bitset-filter li.selected { - color: #eee !important; - background: #383838 !important; - text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important; -} -#-blink-dev-tools .filter-bitset-filter .selected.error { - background: #951e15 !important; -} -#-blink-dev-tools .filter-bitset-filter .selected.warning { - background: #9D8500 !important; -} -#-blink-dev-tools .filter-bitset-filter .selected.info { - background: #49a6d2 !important; -} -#-blink-dev-tools .filter-bitset-filter .selected.log { - background: #8b6ccf !important; -} -#-blink-dev-tools .filter-bitset-filter .selected.debug { - background: #CF7634 !important; -} -#-blink-dev-tools .checkbox-filter-checkbox, -#-blink-dev-tools label.checkbox, -#-blink-dev-tools .checkbox-filter-checkbox-check, -#-blink-dev-tools .filter-checkbox-filter .type, -#-blink-dev-tools #text-filter-regex + label { - color: #a875ff !important; -} -#-blink-dev-tools .checkbox-filter-checkbox { - background: #fff !important; -} -#-blink-dev-tools .timeline .panel-status-bar { - color: #ccc !important; -} -#-blink-dev-tools .split-view-sidebar-right .pane .sidebar-separator { - background-image: -webkit-linear-gradient(#222222, #222222) !important; - padding: 2px 5px !important; - border-top: 1px solid #636363 !important; - border-bottom: 1px solid black !important; - color: #eee !important; - text-shadow: #222 0 1px 0 !important; - white-space: nowrap !important; - text-overflow: ellipsis !important; - overflow: hidden !important; - font-size: 11px !important; -} -#-blink-dev-tools #error-warning-count { - color: #CCC !important; -} -#-blink-dev-tools #main-status-bar { - border-top: 1px solid #333 !important; -} -#-blink-dev-tools .pane > .body .info { - color: #999 !important; - font-style: normal; -} -#-blink-dev-tools .styles-section .properties .overloaded, -#-blink-dev-tools .styles-section .properties .inactive, -#-blink-dev-tools .styles-section .properties .disabled, -#-blink-dev-tools .styles-section .properties .not-parsed-ok { - opacity: .5 !important; -} -#-blink-dev-tools .bubble.error, -#-blink-dev-tools .bubble.warning { - border-bottom: 1px solid #666; - position: relative; - right: 5px !important; - text-shadow: 0 0 2px #666 !important; -} -#-blink-dev-tools .bubble.error { - background-color: #D82323 !important; - box-shadow: inset 0 1px 0 0 #651010; -} -#-blink-dev-tools .bubble.warning { - background-color: #E8A400 !important; - box-shadow: inset 0 1px 0 0 #A87600; -} -#-blink-dev-tools :focus .selected .bubble.error, -#-blink-dev-tools :focus .selected .bubble.warning { - color: #fff !important; - border-bottom: 1px solid #D8FCDE; -} -#-blink-dev-tools .selected .bubble.error, -#-blink-dev-tools .selected .bubble.warning { - color: #fff !important; - border-bottom: 1px solid #888; -} -#-blink-dev-tools #floating-status-bar-container { - z-index: 100 !important; -} -#-blink-dev-tools .dialog { - background: #333 !important; - border-color: #222 !important; - box-shadow: 0px 20px 10px 0px rgba(0, 0, 0, 0.5) !important; -} -#-blink-dev-tools .dialog { - background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#111111), to(#111111)) !important; - box-shadow: 0 50px 30px rgba(0, 0, 0, 0.6) !important; - border: 1px solid #666 !important; -} -#-blink-dev-tools .dialog .fill { - border: none !important; -} -#-blink-dev-tools .filtered-item-list-dialog-item { - background-color: #222 !important; - border-top: 1px solid #333 !important; - border-bottom: 1px solid #000 !important; -} -#-blink-dev-tools .filtered-item-list-dialog-item span { - color: #eee !important; -} -#-blink-dev-tools .filtered-item-list-dialog-item .highlight { - color: #E0E0E0!important; -} -#-blink-dev-tools .filtered-item-list-dialog-item:hover { - background-color: #333 !important; - box-shadow: inset 0 1px 5px 0 #222 !important; -} -#-blink-dev-tools .dialog .fill .selected { - background-color: #444 !important; - box-shadow: inset 0 1px 5px 0 #222 !important; -} -#-blink-dev-tools .dialog input, -#-blink-dev-tools .dialog input:focus { - background-color: #222 !important; - border: none !important; - color: #eee !important; - padding: 0 5px; -} -#-blink-dev-tools .section .properties .dimmed { - opacity: 0.8 !important; -} -#-blink-dev-tools .split-view-sidebar-right { - background-image: -webkit-gradient(linear, left top, left bottom, color-stop(90%, #333333), color-stop(100%, #252525)) !important; -} \ No newline at end of file diff --git a/.config/compton.conf b/.config/compton.conf deleted file mode 100644 index 574b1e9..0000000 --- a/.config/compton.conf +++ /dev/null @@ -1,45 +0,0 @@ -# Shadow -shadow = false; -no-dnd-shadow = true; -no-dock-shadow = true; -#clear-shadow = true; -#shadow-radius = 7; -#shadow-offset-x = -7; -#shadow-offset-y = -7; -shadow-opacity = 0.4; -# shadow-red = 0.0; -# shadow-green = 0.0; -# shadow-blue = 0.0; -shadow-exclude = [ "n:e:xfce4-notifyd" ]; -#shadow-ignore-shaped = false; - -# Opacity -menu-opacity = 0.9; -#inactive-opacity = 0.8; -#frame-opacity = 0.7; -inactive-opacity-override = false; -alpha-step = 0.06; - -# Fading -fading = false; -# fade-delta = 30; -fade-in-step = 0.03; -fade-out-step = 0.03; -# no-fading-openclose = true; - -# Other -mark-wmwin-focused = true; -mark-ovredir-focused = true; -detect-rounded-corners = true; -detect-client-opacity = true; -#refresh-rate = 0; -#vsync = "none"; -dbe = false; -paint-on-overlay = false; -sw-opti = false; - -# Window type settings -wintypes: -{ - tooltip = { fade = true; shadow = false; opacity = 0.85; }; -}; diff --git a/.config/mc/ini b/.config/mc/ini deleted file mode 100644 index 287f4c0..0000000 --- a/.config/mc/ini +++ /dev/null @@ -1,156 +0,0 @@ -# ██████████ █████ -# ░░██░░██░░██ ██░░░██ -# ░██ ░██ ░██░██ ░░ -# ░██ ░██ ░██░██ ██ -# ███ ░██ ░██░░█████ -# ░░░ ░░ ░░ ░░░░░ -# -# ▓▓▓▓▓▓▓▓▓▓ -# ░▓ author ▓ xero -# ░▓ code ▓ http://code.xero.nu/dotfiles -# ░▓ mirror ▓ http://github.com/xero/dotfiles -# ░▓▓▓▓▓▓▓▓▓▓ -# ░░░░░░░░░░ -# - -[Midnight-Commander] -verbose=1 -pause_after_run=1 -shell_patterns=1 -auto_save_setup=1 -preallocate_space=0 -auto_menu=0 -use_internal_view=1 -use_internal_edit=0 -clear_before_exec=1 -confirm_delete=1 -confirm_overwrite=1 -confirm_execute=0 -confirm_history_cleanup=1 -confirm_exit=1 -confirm_directory_hotlist_delete=1 -safe_delete=0 -mouse_repeat_rate=100 -double_click_speed=250 -use_8th_bit_as_meta=0 -confirm_view_dir=0 -mouse_move_pages_viewer=1 -mouse_close_dialog=0 -fast_refresh=0 -drop_menus=0 -wrap_mode=1 -old_esc_mode=0 -old_esc_mode_timeout=1000000 -cd_symlinks=1 -show_all_if_ambiguous=0 -max_dirt_limit=10 -use_file_to_guess_type=1 -alternate_plus_minus=0 -only_leading_plus_minus=1 -show_output_starts_shell=0 -xtree_mode=0 -num_history_items_recorded=60 -file_op_compute_totals=1 -classic_progressbar=1 -vfs_timeout=60 -ftpfs_directory_timeout=900 -use_netrc=1 -ftpfs_retry_seconds=30 -ftpfs_always_use_proxy=0 -ftpfs_use_passive_connections=1 -ftpfs_use_passive_connections_over_proxy=0 -ftpfs_use_unix_list_options=1 -ftpfs_first_cd_then_ls=1 -fish_directory_timeout=900 -editor_tab_spacing=8 -editor_word_wrap_line_length=72 -editor_fill_tabs_with_spaces=0 -editor_return_does_auto_indent=0 -editor_backspace_through_tabs=0 -editor_fake_half_tabs=1 -editor_option_save_mode=0 -editor_option_save_position=1 -editor_option_auto_para_formatting=0 -editor_option_typewriter_wrap=0 -editor_edit_confirm_save=1 -editor_syntax_highlighting=1 -editor_persistent_selections=1 -editor_cursor_beyond_eol=0 -editor_visible_tabs=1 -editor_visible_spaces=1 -editor_line_state=0 -editor_simple_statusbar=0 -editor_check_new_line=0 -editor_show_right_margin=0 -editor_group_undo=0 -nice_rotating_dash=1 -mcview_remember_file_position=0 -auto_fill_mkdir_name=1 -copymove_persistent_attr=1 -select_flags=6 -editor_backup_extension=~ -mcview_eof= -ignore_ftp_chattr_errors=true -keymap=mc.keymap -skin=default - -[Layout] -message_visible=0 -keybar_visible=1 -xterm_title=0 -output_lines=0 -command_prompt=0 -menubar_visible=1 -free_space=1 -horizontal_split=0 -vertical_equal=1 -left_panel_size=57 -horizontal_equal=1 -top_panel_size=1 - -[Misc] -timeformat_recent=%b %e %H:%M -timeformat_old=%b %e %Y -ftp_proxy_host=gate -ftpfs_password=anonymous@ -display_codepage=UTF-8 -source_codepage=Other_8_bit -autodetect_codeset= -clipboard_store= -clipboard_paste= - -[Colors] -#base_color=linux:normal=white,black:marked=yellow,black:input=,green:menu=black:menusel=white:menuhot=red,:menuhotsel=black,red:dfocus=white,black:dhotnormal=white,black:dhotfocus=white,black:executable=,black:directory=white,black:link=white,black:device=white,black:special=white,black:core=,black:stalelink=red,black:editnormal=white,black -base_color=normal=gray,default:selected=black,cyan:marked=cyan,black:markselect=cyan,blue:errors=white,red:input=white,default:reverse=black,gray:menu=cyan,black:menusel=cyan,black:menuhot=cyan,black:menuhotsel=cyan,grey:gauge=black,cyan:dnormal=cyan,black:dfocus=black,gray:dhotnormal=black,cyan:dhotfocus=lightcyan,black:helpnormal=cyan,black:helpbold=white,blue:helpitalic=brightgreen,blue:helpslink=black,blue:helplink=yellow,blue:executable=brightgreen,default:directory=brightblue,default:link=gray,default:special=magenta,default:device=green,default:core=brightred,default:stalelink=brown,cyan:viewunderline=lightgray,cyan:editnormal=lightgray,cyan:editbold=white,cyan:editmarked=black,gray -xterm= -color_terminals= - - -rxvt-unicode-256color= - -[Panels] -show_mini_info=true -kilobyte_si=false -mix_all_files=false -show_backups=true -show_dot_files=true -fast_reload=false -fast_reload_msg_shown=false -mark_moves_down=true -reverse_files_only=true -auto_save_setup_panels=false -navigate_with_arrows=false -panel_scroll_pages=true -mouse_move_pages=true -filetype_mode=true -permission_mode=false -torben_fj_mode=false -quick_search_mode=2 - -simple_swap=false - -[Panelize] -Find *.orig after patching=find . -name \\*.orig -print -Find SUID and SGID programs=find . \\( \\( -perm -04000 -a -perm +011 \\) -o \\( -perm -02000 -a -perm +01 \\) \\) -print -Find rejects after patching=find . -name \\*.rej -print -Modified git files=git ls-files --modified diff --git a/.config/sublime-text-2/Packages/Default/Preferences.sublime-settings b/.config/sublime-text-2/Packages/Default/Preferences.sublime-settings deleted file mode 100644 index b41b14d..0000000 --- a/.config/sublime-text-2/Packages/Default/Preferences.sublime-settings +++ /dev/null @@ -1,336 +0,0 @@ -// While you can edit this file, it's best to put your changes in -// "User/Preferences.sublime-settings", which overrides the settings in here. -// -// Settings may also be placed in file type specific options files, for -// example, in Packages/Python/Python.sublime-settings for python files. -{ - // Sets the colors used within the text area - "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", - - // Note that the font_face and font_size are overriden in the platform - // specific settings file, for example, "Preferences (Linux).sublime-settings". - // Because of this, setting them here will have no effect: you must set them - // in your User File Preferences. - "font_face": "", - "font_size": 10, - - // Valid options are "no_bold", "no_italic", "no_antialias", "gray_antialias", - // "subpixel_antialias", "no_round" (OS X only) and "directwrite" (Windows only) - "font_options": [], - - // Characters that are considered to separate words - "word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?", - - // Set to false to prevent line numbers being drawn in the gutter - "line_numbers": true, - - // Set to false to hide the gutter altogether - "gutter": true, - - // Spacing between the gutter and the text - "margin": 4, - - // Fold buttons are the triangles shown in the gutter to fold regions of text - "fold_buttons": true, - - // Hides the fold buttons unless the mouse is over the gutter - "fade_fold_buttons": true, - - // Columns in which to display vertical rulers - "rulers": [], - - // Set to true to turn spell checking on by default - "spell_check": false, - - // The number of spaces a tab is considered equal to - "tab_size": 4, - - // Set to true to insert spaces when tab is pressed - "translate_tabs_to_spaces": false, - - // If translate_tabs_to_spaces is true, use_tab_stops will make tab and - // backspace insert/delete up to the next tabstop - "use_tab_stops": true, - - // Set to false to disable detection of tabs vs. spaces on load - "detect_indentation": true, - - // Calculates indentation automatically when pressing enter - "auto_indent": true, - - // Makes auto indent a little smarter, e.g., by indenting the next line - // after an if statement in C. Requires auto_indent to be enabled. - "smart_indent": true, - - // Adds whitespace up to the first open bracket when indenting. Requires - // auto_indent to be enabled. - "indent_to_bracket": false, - - // Trims white space added by auto_indent when moving the caret off the - // line. - "trim_automatic_white_space": true, - - // Disables horizontal scrolling if enabled. - // May be set to true, false, or "auto", where it will be disabled for - // source code, and otherwise enabled. - "word_wrap": false, - - // Set to a value other than 0 to force wrapping at that column rather than the - // window width - "wrap_width": 0, - - // Set to false to prevent word wrapped lines from being indented to the same - // level - "indent_subsequent_lines": true, - - // Draws text centered in the window rather than left aligned - "draw_centered": false, - - // Controls auto pairing of quotes, brackets etc - "auto_match_enabled": true, - - // Word list to use for spell checking - "dictionary": "Packages/Language - English/en_US.dic", - - // Set to true to draw a border around the visible rectangle on the minimap. - // The color of the border will be determined by the "minimapBorder" key in - // the color scheme - "draw_minimap_border": false, - - // If enabled, will highlight any line with a caret - "highlight_line": false, - - // Valid values are "smooth", "phase", "blink", "wide" and "solid". - "caret_style": "smooth", - - // Set to false to disable underlining the brackets surrounding the caret - "match_brackets": true, - - // Set to false if you'd rather only highlight the brackets when the caret is - // next to one - "match_brackets_content": true, - - // Set to false to not highlight square brackets. This only takes effect if - // match_brackets is true - "match_brackets_square": true, - - // Set to false to not highlight curly brackets. This only takes effect if - // match_brackets is true - "match_brackets_braces": true, - - // Set to false to not highlight angle brackets. This only takes effect if - // match_brackets is true - "match_brackets_angle": false, - - // Enable visualization of the matching tag in HTML and XML - "match_tags": true, - - // Highlights other occurrences of the currently selected text - "match_selection": true, - - // Additional spacing at the top of each line, in pixels - "line_padding_top": 0, - - // Additional spacing at the bottom of each line, in pixels - "line_padding_bottom": 0, - - // Set to false to disable scrolling past the end of the buffer. - // On OS X, this value is overridden in the platform specific settings, so - // you'll need to place this line in your user settings to override it. - "scroll_past_end": true, - - // This controls what happens when pressing up or down when on the first - // or last line. - // On OS X, this value is overridden in the platform specific settings, so - // you'll need to place this line in your user settings to override it. - "move_to_limit_on_up_down": false, - - // Set to "none" to turn off drawing white space, "selection" to draw only the - // white space within the selection, and "all" to draw all white space - "draw_white_space": "selection", - - // Set to false to turn off the indentation guides. - // The color and width of the indent guides may be customized by editing - // the corresponding .tmTheme file, and specifying the colors "guide", - // "activeGuide" and "stackGuide" - "draw_indent_guides": true, - - // Controls how the indent guides are drawn, valid options are - // "draw_normal" and "draw_active". draw_active will draw the indent - // guides containing the caret in a different color. - "indent_guide_options": ["draw_normal"], - - // Set to true to removing trailing white space on save - "trim_trailing_white_space_on_save": false, - - // Set to true to ensure the last line of the file ends in a newline - // character when saving - "ensure_newline_at_eof_on_save": false, - - // Set to true to automatically save files when switching to a different file - // or application - "save_on_focus_lost": false, - - // The encoding to use when the encoding can't be determined automatically. - // ASCII, UTF-8 and UTF-16 encodings will be automatically detected. - "fallback_encoding": "Western (Windows 1252)", - - // Encoding used when saving new files, and files opened with an undefined - // encoding (e.g., plain ascii files). If a file is opened with a specific - // encoding (either detected or given explicitly), this setting will be - // ignored, and the file will be saved with the encoding it was opened - // with. - "default_encoding": "UTF-8", - - // Files containing null bytes are opened as hexadecimal by default - "enable_hexadecimal_encoding": true, - - // Determines what character(s) are used to terminate each line in new files. - // Valid values are 'system' (whatever the OS uses), 'windows' (CRLF) and - // 'unix' (LF only). - "default_line_ending": "system", - - // When enabled, pressing tab will insert the best matching completion. - // When disabled, tab will only trigger snippets or insert a tab. - // Shift+tab can be used to insert an explicit tab when tab_completion is - // enabled. - "tab_completion": true, - - // Enable auto complete to be triggered automatically when typing. - "auto_complete": true, - - // The maximum file size where auto complete will be automatically triggered. - "auto_complete_size_limit": 4194304, - - // The delay, in ms, before the auto complete window is shown after typing - "auto_complete_delay": 50, - - // Controls what scopes auto complete will be triggered in - "auto_complete_selector": "source - comment", - - // Additional situations to trigger auto complete - "auto_complete_triggers": [ {"selector": "text.html", "characters": "<"} ], - - // By default, auto complete will commit the current completion on enter. - // This setting can be used to make it complete on tab instead. - // Completing on tab is generally a superior option, as it removes - // ambiguity between committing the completion and inserting a newline. - "auto_complete_commit_on_tab": false, - - // Controls if auto complete is shown when snippet fields are active. - // Only relevant if auto_complete_commit_on_tab is true. - "auto_complete_with_fields": false, - - // By default, shift+tab will only unindent if the selection spans - // multiple lines. When pressing shift+tab at other times, it'll insert a - // tab character - this allows tabs to be inserted when tab_completion is - // enabled. Set this to true to make shift+tab always unindent, instead of - // inserting tabs. - "shift_tab_unindent": false, - - // If true, the copy and cut commands will operate on the current line - // when the selection is empty, rather than doing nothing. - "copy_with_empty_selection": true, - - // If true, the selected text will be copied into the find panel when it's - // shown. - // On OS X, this value is overridden in the platform specific settings, so - // you'll need to place this line in your user settings to override it. - "find_selected_text": true, - - // When drag_text is enabled, clicking on selected text will begin a - // drag-drop operation - "drag_text": true, - - // - // User Interface Settings - // - - // The theme controls the look of Sublime Text's UI (buttons, tabs, scroll bars, etc) - "theme": "blaque.greybeard", - - // Set to 0 to disable smooth scrolling. Set to a value between 0 and 1 to - // scroll slower, or set to larger than 1 to scroll faster - "scroll_speed": 1.0, - - // Controls side bar animation when expanding or collapsing folders - "tree_animation_enabled": true, - - // Makes tabs with modified files more visible - "highlight_modified_tabs": false, - - "show_tab_close_buttons": true, - - // Show folders in the side bar in bold - "bold_folder_labels": false, - - // OS X 10.7 only: Set to true to disable Lion style full screen support. - // Sublime Text must be restarted for this to take effect. - "use_simple_full_screen": false, - - // OS X only. Valid values are true, false, and "auto". Auto will enable - // the setting when running on a screen 2880 pixels or wider (i.e., a - // Retina display). When this setting is enabled, OpenGL is used to - // accelerate drawing. Sublime Text must be restarted for changes to take - // effect. - "gpu_window_buffer": "auto", - - // Valid values are "system", "enabled" and "disabled" - "overlay_scroll_bars": "system", - - // - // Application Behavior Settings - // - - // Exiting the application with hot_exit enabled will cause it to close - // immediately without prompting. Unsaved modifications and open files will - // be preserved and restored when next starting. - // - // Closing a window with an associated project will also close the window - // without prompting, preserving unsaved changes in the workspace file - // alongside the project. - "hot_exit": true, - - // remember_open_files makes the application start up with the last set of - // open files. Changing this to false will have no effect if hot_exit is - // true - "remember_open_files": true, - - // OS X only: When files are opened from finder, or by dragging onto the - // dock icon, this controls if a new window is created or not. - "open_files_in_new_window": true, - - // OS X only: This controls if an empty window is created at startup or not. - "create_window_at_startup": true, - - // Set to true to close windows as soon as the last file is closed, unless - // there's a folder open within the window. This is always enabled on OS X, - // changing it here won't modify the behavior. - "close_windows_when_empty": false, - - // Show the full path to files in the title bar. - // On OS X, this value is overridden in the platform specific settings, so - // you'll need to place this line in your user settings to override it. - "show_full_path": true, - - // Shows the Build Results panel when building. If set to false, the Build - // Results can be shown via the Tools/Build Results menu. - "show_panel_on_build": true, - - // Preview file contents when clicking on a file in the side bar. Double - // clicking or editing the preview will open the file and assign it a tab. - "preview_on_click": true, - - // folder_exclude_patterns and file_exclude_patterns control which files - // are listed in folders on the side bar. These can also be set on a per- - // project basis. - "folder_exclude_patterns": [".svn", ".git", ".hg", "CVS"], - "file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db"], - // These files will still show up in the side bar, but won't be included in - // Goto Anything or Find in Files - "binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"], - - // List any packages to ignore here. When removing entries from this list, - // a restart may be required if the package contains plugins. - "ignored_packages": ["Vintage"] -} diff --git a/.config/sublime-text-2/Packages/User/Preferences.sublime-settings b/.config/sublime-text-2/Packages/User/Preferences.sublime-settings deleted file mode 100644 index 703bdde..0000000 --- a/.config/sublime-text-2/Packages/User/Preferences.sublime-settings +++ /dev/null @@ -1,12 +0,0 @@ -{ - "theme": "greybeard.sublime-theme", - "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", - - "font_face": "gohuFont", - "font_size": 11, - "ignored_packages": - [ - "Vintage", - "Jamon" - ] -} diff --git a/.config/sublime-text-2/Packages/theme-greybeard/README.md b/.config/sublime-text-2/Packages/theme-greybeard/README.md deleted file mode 100644 index c46a072..0000000 --- a/.config/sublime-text-2/Packages/theme-greybeard/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# greybeard - -![greybeard screenshot](https://raw.githubusercontent.com/xero/theme-greybeard/master/preview1.png) -![greybeard screenshot](https://raw.githubusercontent.com/xero/theme-greybeard/master/preview2.png) - -greybeard is a fork of [brogrammer](https://github.com/kenwheeler/brogrammer-theme/) a dark, flat, sexy theme. greybeard changes the main theme color from red to blue grey. reveals the scrollbars. features [gohuFont](http://font.gohu.org) throughout the ui. and is designed for the monokai theme, what enticed ~~most~~ all of us to use sublime text in the first place. - -## install - -1. [download the .zip](https://github.com/xero/theme-greybeard/archive/master.zip) -2. unzip to `theme-greybeard` folder in the `Packages` directory, which you can find using the menu item `Preferences -> Browse Packages...` in sublime text. - -## setup - -activate the ui theme, set the monokai color scheme, and gohu font by modifying your user preferences file, which you can find using the menu item `Preferences -> Settings - User` in sublime text. - -### user settings -``` -{ - "theme": "greybeard.sublime-theme", - "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", - "font_face": "gohuFont", - "font_size": 11 -} -``` diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard.sublime-theme b/.config/sublime-text-2/Packages/theme-greybeard/greybeard.sublime-theme deleted file mode 100644 index ad4a914..0000000 --- a/.config/sublime-text-2/Packages/theme-greybeard/greybeard.sublime-theme +++ /dev/null @@ -1,1169 +0,0 @@ -// s u b l i m e t e x t -// ██ ██ -// ░██ ░██ -// █████ ██████ █████ ██ ██░██ █████ ██████ ██████ ░██ -// ██░░░██░░██░░█ ██░░░██ ░░██ ██ ░██████ ██░░░██ ░░░░░░██ ░░██░░█ ██████ -//░██ ░██ ░██ ░ ░███████ ░░███ ░██░░░██░███████ ███████ ░██ ░ ██░░░██ -//░░██████ ░██ ░██░░░░ ░██ ░██ ░██░██░░░░ ██░░░░██ ░██ ░██ ░██ -// ░░░░░██░███ ░░██████ ██ ░██████ ░░██████░░████████░███ ░░██████ -// █████ ░░░ ░░░░░░ ██ ░░░░░ ░░░░░░ ░░░░░░░░ ░░░ ░░░░░░ -// ░░░░░ ░░ -// -// ▓▓▓▓▓▓▓▓▓▓ -// ░▓ about ▓ greybeard is a fork of brogrammer -// ░▓ ▓ -// ░▓ origin ▓ ken wheeler -// ░▓ code ▓ https://github.com/kenwheeler/brogrammer-theme -// ░▓ ▓ -// ░▓ fork ▓ xero -// ░▓ code ▓ https://github.com/xero/theme-greybeard -// ░▓▓▓▓▓▓▓▓▓▓ -// ░░░░░░░░░░ -[ -// -// TABS (REGULAR) -// - // Tab set - { - "class": "tabset_control", - "layer0.texture": "", - "layer0.tint": [34,34,34], - "layer0.inner_margin": 2, // Overlay light puck (for dark content) - "layer0.opacity": 1, - "content_margin": [0,-5,0,0], - "tab_overlap": 0, - "tab_width": 140, - "tab_min_width": 50, - "tab_height": 50, - "mouse_wheel_switch": false - }, - // Tab element - { - "class": "tab_control", - "content_margin": [8,0], - "max_margin_trim": 0, - "hit_test_level": 0, - "layer0.texture": "", - "layer0.tint": [39,40,34], - "layer0.inner_margin": [0,0], - "layer0.opacity": 0.7, - "layer1.texture": "theme-greybeard/greybeard/tab-bar@2x.png", - "layer1.opacity": 1 - }, - // Tab close state - { - "class": "tab_control", - "settings": ["show_tab_close_buttons"], - "content_margin": [10,0] - }, - // Tab hover state - { - "class": "tab_control", - "attributes": ["hover"], - "layer0.texture": "", - "layer0.opacity": 0.5 - }, - // Tab active state - { - "class": "tab_control", - "attributes": ["selected"], - "layer0.texture": "", - "layer0.tint": [39,40,34], - "layer0.opacity": 1, - "layer1.texture": "theme-greybeard/greybeard/tab-bar-active@2x.png", - "layer1.opacity": 1 - }, - // Tab dirty state (close button hidden) - { - "class": "tab_control", - "settings": ["!show_tab_close_buttons"], - "attributes": ["dirty"], - "content_margin": [12,3,7,3] - }, - -// -// TAB BUTTONS -// - // Tab close button - { - "class": "tab_close_button", - "layer0.texture": "theme-greybeard/greybeard/close@2x.png", - "layer0.opacity": 0, - "layer0.tint": [170,170,170] - }, - { - "class": "tab_close_button", - "settings": ["show_tab_close_buttons"], - "content_margin": [8,8] - }, - { - "class": "tab_close_button", - "parents": [{"class": "tab_control","attributes": ["hover"]}], - "layer0.opacity": 1, - "layer0.tint": [106,140,140] - - }, - { - "class": "tab_close_button", - "parents": [{"class": "tab_control","attributes": ["selected"]}], - "layer0.opacity": 1 - }, - // Tab dirty button - { - "class": "tab_close_button", - "parents": [{"class": "tab_control","attributes": ["dirty"]}], - "layer0.texture": "theme-greybeard/greybeard/circle@2x.png", - "layer0.tint": [106,140,140], - "layer0.opacity": 1 - }, - { - "class": "tab_close_button", - "settings": ["!show_tab_close_buttons"], - "parents": [{"class": "tab_control","attributes": ["dirty"]}], - "content_margin": [8,8], - "layer0.opacity": 1 - }, - { - "class": "tab_close_button", - "parents": [{"class": "tab_control","attributes": ["dirty","hover"]}], - "layer0.texture": "theme-greybeard/greybeard/close.png", - "layer0.opacity": 1, - "layer0.tint": [106,140,140] - }, - { - "class": "tab_close_button", - "parents": [{"class": "tab_control","attributes": ["dirty","selected"]}] - }, - // Tab highlight button - { - "class": "tab_close_button", - "settings": ["highlight_modified_tabs"], - "parents": [{"class": "tab_control","attributes": ["dirty"]}] - }, - { - "class": "tab_close_button", - "settings": ["highlight_modified_tabs"], - "parents": [{"class": "tab_control","attributes": ["dirty","selected"]}] - }, - // Tab close button hover - { - "class": "tab_close_button", - "settings": ["show_tab_close_buttons"], - "attributes": ["hover"] - }, - // Tab close button pressed - { - "class": "tab_close_button", - "settings": ["show_tab_close_buttons"], - "attributes": ["pressed"], - "layer0.opacity":0.8 - }, - -// -// TAB LABELS -// - - { - "class": "tab_label", - "font.face": "gohuFont", - "fade": true, - "fg": [170,170,170], - "shadow_color": [25,25,25], - "shadow_offset": [1, 1] - }, - { - "class": "tab_label", - "font.face": "gohuFont", - "parents": [{"class": "tab_control","attributes": ["hover"]}], - "fg": [192,197,206], - "shadow_color": [30,30,30], - "shadow_offset": [1, 1] - }, - { - "class": "tab_label", - "font.face": "gohuFont", - "parents": [{"class": "tab_control","attributes": ["selected"]}], - "fg": [223,225,232], - "shadow_color": [35,35,35], - "shadow_offset": [1, 1] - }, - -// -// TAB SCROLLING -// - - // Tab dropdown - { - "class": "show_tabs_dropdown_button", - "content_margin": [20, 20, 20, 20], - "layer0.texture": "", - "layer0.opacity": 1.0, - "layer0.tint": [25,25,25], - "layer0.inner_margin": 0, - "layer1.texture": "theme-greybeard/greybeard/tab-scroll-dropdown.png", - "layer1.inner_margin": [5,0,-5,0], - "layer1.tint": [255,255,255], - "layer1.opacity": 1.0 - }, - { - "class": "show_tabs_dropdown_button", - "attributes": ["hover"], - "layer1.texture": "theme-greybeard/greybeard/tab-scroll-dropdown.png", - "layer1.inner_margin": [5,0,-5,0], - "layer1.tint": [106,140,140], - "layer1.opacity": 1.0 - }, - // Tab scroll left - { - "class": "scroll_tabs_left_button", - "content_margin": [16, 20, 16, 20], - "layer0.texture": "", - "layer0.tint": [25,25,25], - "layer0.opacity": 1.0, - "layer0.inner_margin": 0, - "layer1.texture": "theme-greybeard/greybeard/tab-scroll-left.png", - "layer1.inner_margin": [0,0,0,0], - "layer1.tint": [255,255,255], - "layer1.opacity": 1.0 - }, - { - "class": "scroll_tabs_left_button", - "attributes": ["hover"], - "layer1.texture": "theme-greybeard/greybeard/tab-scroll-left.png", - "layer1.tint": [106,140,140], - "layer1.opacity": 1.0 - }, - // Tab scroll right - { - "class": "scroll_tabs_right_button", - "content_margin": [16, 20, 16, 20], - "layer0.texture": "", - "layer0.tint": [25,25,25], - "layer0.opacity": 1.0, - "layer0.inner_margin": 0, - "layer1.texture": "theme-greybeard/greybeard/tab-scroll-right.png", - "layer1.inner_margin": [0,0,0,0], - "layer1.tint": [255,255,255], - "layer1.opacity": 1.0 - }, - { - "class": "scroll_tabs_right_button", - "attributes": ["hover"], - "layer1.texture": "theme-greybeard/greybeard/tab-scroll-right.png", - "layer1.tint": [106,140,140], - "layer1.opacity": 1.0 - }, - -// -// FOLD BUTTONS -// - - { - "class": "fold_button_control", - "layer0.texture": "theme-greybeard/greybeard/folder-open.png", - "layer0.opacity": 0.25, - "layer0.inner_margin": 0, - "content_margin": [8,8] - }, - { - "class": "fold_button_control", - "attributes": ["hover"], - "layer0.opacity": 0.5 - }, - { - "class": "fold_button_control", - "attributes": ["expanded"], - "layer0.texture": "theme-greybeard/greybeard/folder-closed.png" - }, - { - "class": "fold_button_control", - "attributes": ["expanded","hover"] - }, - -// -// STANDARD SCROLLBARS -// - - // Standard vertical scroll bar - { - "class": "scroll_bar_control", - "layer0.texture": "", - "layer0.tint":[39,40,34], - "layer0.opacity": 1, - "layer0.inner_margin": [0,0], - "blur": true - }, - // Standard horizontal scroll bar - { - "class": "scroll_bar_control", - "attributes": ["horizontal"], - "layer0.texture": "", - "layer0.tint":[39,40,34], - "layer0.inner_margin": [0,0], - "blur": true - }, - // Standard scroll bar corner - { - "class": "scroll_corner_control", - "layer0.texture": "", - "layer0.tint":[39,40,34], - "layer0.inner_margin": [0,0], - "layer0.opacity": 1 - }, - // Standard vertical scroll puck - { - "class": "puck_control", - "layer0.texture": "", - "layer0.tint":[34,34,34], - "layer0.opacity": 1, - "layer0.inner_margin": [0,0], - "content_margin": [6,0], - "blur": false - }, - // Standard horizontal scroll puck - { - "class": "puck_control", - "attributes": ["horizontal"], - "layer0.texture": "", - "layer0.tint":[34,34,34], - "layer0.inner_margin": [0,0], - "content_margin": [12,6], - "blur": false - }, - -// -// OVERLAY SCROLLBARS -// - - // Overlay toggle scroll bar - { - "class": "scroll_area_control", - "settings": ["overlay_scroll_bars"], - "overlay": true - }, - { - "class": "scroll_area_control", - "settings": ["!overlay_scroll_bars"], - "overlay": false - }, - // Overlay vertical scroll bar - { - "class": "scroll_bar_control", - "settings": ["overlay_scroll_bars"], - "layer0.texture": "", - "layer0.tint":[39,40,34], - "layer0.inner_margin": [0,5], - "blur": false - }, - // Overlay horizontal scroll bar - { - "class": "scroll_bar_control", - "settings": ["overlay_scroll_bars"], - "attributes": ["horizontal"], - "layer0.inner_margin": [5,0], - "blur": true - }, - // Overlay vertical puck - { - "class": "puck_control", - "settings": ["overlay_scroll_bars"], - "layer0.texture": "", - "layer0.inner_margin": [0,5], - "content_margin": [2,32], - "blur": true - }, - // Overlay horizontal puck - { - "class": "puck_control", - "settings": ["overlay_scroll_bars"], - "attributes": ["horizontal"], - "layer0.texture": "", - "layer0.inner_margin": [5,0], - "content_margin": [16,2], - "blur": true - }, - // Overlay light puck (for dark content) - { - "class": "puck_control", - "settings": ["overlay_scroll_bars"], - "attributes": ["dark"], - "layer0.texture": "", - "layer0.tint":[39,40,34] - - }, - // Overlay light horizontal puck (for dark content) - { - "class": "puck_control", - "settings": ["overlay_scroll_bars"], - "attributes": ["horizontal","dark"], - "layer0.texture": "", - "layer0.tint":[39,40,34] - }, - -// -// EMPTY WINDOW BACKGROUND -// - - { - "class": "sheet_container_control", - "layer0.tint": [17,17,17], - "layer0.opacity": 1 - }, - -// -// GRID LAYOUT -// - - { - "class": "grid_layout_control", - "border_size": 0, - "border_color": [40,40,40] - }, - -// -// MINI MAP -// - - { - "class": "minimap_control", - "viewport_color": [106,140,140,30] - }, - -// -// LABELS -// - - // General labels - { - "class": "label_control", - "font.face": "gohuFont", - "color": [170, 170, 170] - }, - // Text field labels - { - "class": "label_control", - "font.face": "gohuFont", - "parents": [{"class": "panel_control"}], - "shadow_color": [0,0,0], - "shadow_offset": [1,1] - }, - // Button labels - { - "class": "label_control", - "font.face": "gohuFont", - "parents": [{"class": "button_control"}], - "shadow_color": [55,55,55], - "shadow_offset": [0,0] - }, - -// -// TOOLTIP -// - - // Tooltip container - { - "class": "tool_tip_control", - "layer0.texture": "", - "layer0.tint": [17,17,17], - "layer0.inner_margin": [1,1], - "layer0.opacity": 1, - "content_margin": [5,5] - }, - // Tooltip content - { - "class": "tool_tip_label_control", - "font.face": "gohuFont", - "color": [106,140,140] - }, - -// -// STATUS BAR -// - - // Status bar container - { - "class": "status_bar", - "layer0.texture": "", - "layer0.tint": [0,0,0], - "layer0.opacity": 1, - "content_margin": [15, 10] - }, - // Status bar button - { - "class": "status_button", - "min_size": [100, 0] - }, - // Status bar label - { - "class": "label_control", - "font.face": "gohuFont", - "parents": [{"class": "status_bar"}], - "color": [170,170,170], - "shadow_offset": [0,0] - }, - -// -// SIDEBAR -// - - // Sidebar container - { - "class": "sidebar_container", - "layer0.texture": "", - "layer0.opacity": 1, - "layer0.tint": [34,34,34], - "layer0.inner_margin": [1,5,2,1], - "content_margin": [11,9,0,0] - }, - // Sidebar tree - { - "class": "sidebar_tree", - "row_padding": [6,6], - "indent":10, - "indent_offset": 15, - "indent_top_level": false, - "dark_content": true - }, - // Sidebar rows - { - "class": "tree_row", - "layer0.texture": "", - "layer0.tint": [0,0,0], - "layer0.opacity": 0, - "layer0.inner_margin": [1,1] - }, - // Sidebar row selected - { - "class": "tree_row", - "attributes": ["selected"], - "layer0.opacity": 0 - }, - // Sidebar heading - { - "class": "sidebar_heading", - "font.size":14, - "font.face": "gohuFont", - "color": [170,170,170], - "font.bold": false, - "shadow_color": [0,0,0], - "shadow_offset": [1,1] - }, - // Sidebar heading selected - { - "class": "sidebar_heading", - "parents": [{"class": "tree_row","attributes": ["selected"]}], - "shadow_offset": [1,1] - }, - // Sidebar entry - { - "class": "sidebar_label", - "font.face": "gohuFont", - "font.size":11, - "color": [170,170,170], - "shadow_color": [0,0,0], - "shadow_offset": [1,1] - }, - // Sidebar folder entry - { - "class": "sidebar_label", - "font.face": "gohuFont", - "font.size":11, - "parents": [{"class": "tree_row","attributes": ["expandable"]}], - "color": [170,170,170] - }, - { - "class": "sidebar_label", - "font.face": "gohuFont", - "font.size":11, - "parents": [{"class": "tree_row","attributes": ["hover"]}], - "color": [255,255,255] - }, - { - "class": "sidebar_label", - "font.face": "gohuFont", - "font.size":11, - "parents": [{"class": "tree_row","attributes": ["expandable","hover"]}], - "color": [255,255,255] - }, - { - "class": "sidebar_label", - "font.face": "gohuFont", - "font.size":11, - "parents": [{"class": "tree_row","attributes": ["expandable"]}], - "settings": ["bold_folder_labels"] - }, - // Sidebar entry selected - { - "class": "sidebar_label", - "font.face": "gohuFont", - "font.size":11, - "parents": [{"class": "tree_row","attributes": ["selected"]}], - "color": [106,140,140], - "shadow_color": [0,0,0], - "shadow_offset": [0,0] - }, - -// -// SIDEBAR - OPEN FILE ICONS -// - - // Sidebar file close - { - "class": "close_button", - "layer0.texture": "theme-greybeard/greybeard/circle@2x.png", - "layer0.opacity": 0, - "layer0.inner_margin": 0, - "layer0.tint": [106,140,140], - "content_margin": [8,8] - }, - { - "class": "close_button", - "parents": [{"class": "tree_row","attributes": ["hover"]}], - "layer0.opacity": 1, - "layer0.tint": [106,140,140] - }, - // Sidebar file dirty - { - "class": "close_button", - "attributes": ["dirty"], - "layer0.texture": "theme-greybeard/greybeard/circle@2x.png", - "layer0.opacity": 1, - "layer0.tint": [106,140,140] - }, - { - "class": "close_button", - "attributes": ["dirty"], - "parents": [{"class": "tree_row","attributes": ["selected"]}], - "layer0.texture": "theme-greybeard/greybeard/close@2x.png" - }, - { - "class": "close_button", - "attributes": ["dirty"], - "parents": [{"class": "tree_row","attributes": ["hover"]}], - "layer0.texture": "theme-greybeard/greybeard/close@2x.png", - "layer0.opacity": 1, - "layer0.tint": [106,140,140] - }, - // Sidebar file close hover - { - "class": "close_button", - "attributes": ["hover"], - "layer0.texture": "theme-greybeard/greybeard/close@2x.png" - }, - { - "class": "close_button", - "parents": [{"class": "tree_row","attributes": ["hover","selected"]}], - "layer0.texture": "theme-greybeard/greybeard/close@2x.png", - "layer0.opacity": 1 - }, - -// -// SIDEBAR - GENERAL FILE ICONS -// - - // Sidebar group closed - { - "class": "disclosure_button_control", - "content_margin": [9,9], - "layer0.texture": "theme-greybeard/greybeard/folder-closed@2x.png", - "layer0.tint": [170,170,170], - "layer0.opacity": 1, - "layer0.inner_margin": [2,2] - }, - { - "class": "disclosure_button_control", - "parents": [{"class": "tree_row","attributes": ["hover"]}], - "layer0.tint":[255,255,255] - }, - { - "class": "disclosure_button_control", - "parents": [{"class": "tree_row","attributes": ["selected"]}] - }, - // Sidebar folder closed - { - "class": "disclosure_button_control", - "settings": ["soda_folder_icons"] - }, - { - "class": "disclosure_button_control", - "settings": ["soda_folder_icons"], - "parents": [{"class": "tree_row","attributes": ["hover"]}] - }, - { - "class": "disclosure_button_control", - "settings": ["soda_folder_icons"], - "parents": [{"class": "tree_row","attributes": ["selected"]}], - "layer0.texture": "theme-greybeard/greybeard/folder-closed@2x.png", - "layer0.tint": [170,170,170], - "layer0.opacity": 1 - }, - // Sidebar group open - { - "class": "disclosure_button_control", - "attributes": ["expanded"], - "layer0.texture": "theme-greybeard/greybeard/folder-open@2x.png" - }, - { - "class": "disclosure_button_control", - "attributes": ["expanded"], - "parents": [{"class": "tree_row","attributes": ["hover"]}], - "layer0.texture": "theme-greybeard/greybeard/folder-open@2x.png" - }, - { - "class": "disclosure_button_control", - "attributes": ["expanded"], - "parents": [{"class": "tree_row","attributes": ["selected"]}], - "layer0.texture": "theme-greybeard/greybeard/folder-open@2x.png" - }, - // Sidebar folder open - { - "class": "disclosure_button_control", - "settings": ["soda_folder_icons"], - "attributes": ["expanded"], - "layer0.texture": "theme-greybeard/greybeard/folder-open@2x.png" - }, - { - "class": "disclosure_button_control", - "settings": ["soda_folder_icons"], - "attributes": ["expanded"], - "parents": [{"class": "tree_row","attributes": ["hover"]}], - "layer0.texture": "theme-greybeard/greybeard/folder-open@2x.png" - }, - { - "class": "disclosure_button_control", - "settings": ["soda_folder_icons"], - "attributes": ["expanded"], - "parents": [{"class": "tree_row","attributes": ["selected"]}], - "layer0.texture": "theme-greybeard/greybeard/folder-open@2x.png" - }, - -// -// STANDARD TEXT BUTTONS -// - - // Default button state - { - "class": "button_control", - "content_margin": [4,8,4,8], - "min_size": [60,0], - "layer0.texture": "", - "layer0.opacity": 1, - "layer0.tint": [0,0,0], - "layer0.inner_margin": [8,8] - }, - // Hover button state - { - "class": "button_control", - "attributes": ["hover"], - "layer0.texture": "", - "layer0.tint": [0,0,0] - }, - // Pressed button state - { - "class": "button_control", - "attributes": ["pressed"], - "layer0.texture": "", - "layer0.tint": [0,0,0] - }, -// -// TEXT INPUT FIELD -// - - // Text input field item - { - "class": "text_line_control", - "layer0.texture": "", - // "layer0.tint": [118, 255, 205], - "layer0.tint": [230, 230, 230], - "layer0.opacity": 1, - "content_margin": [5,7,0,5] - }, - -// -// PANEL BACKGROUNDS -// - - // Bottom panel background - { - "class": "panel_control", - "layer0.texture": "", - "layer0.inner_margin": [10, 1], - "layer0.opacity": 1, - "layer0.tint": [17,17,17], - "content_margin": [0,-3] - }, - // Quick panel background - { - "class": "overlay_control", - "layer0.opacity": 1, - "layer1.texture": "", - "layer1.tint": [17, 17, 17], - "layer1.inner_margin": [0, 0, 0, 0], - "layer1.opacity": 1, - "content_margin": [0, 0, 0, 0] - }, - -// -// QUICK PANEL -// - - { - "class": "quick_panel", - "row_padding": 15, - "layer0.tint": [17,17,17], - "layer0.opacity": 1, - "dark_content": true - }, - { - "class": "quick_panel_row", - "layer0.texture": "", - "layer0.tint": [17,17,17], - "layer0.inner_margin": 0, - "layer0.opacity": 1 - }, - { - "class": "quick_panel_row", - "attributes": ["hover"], - "layer0.texture": "", - "layer0.tint": [3,4,5] - }, - { - "class": "quick_panel_row", - "attributes": ["selected"], - "layer0.texture": "", - "layer0.tint": [3,4,5] - }, - { - "class": "quick_panel_label", - "fg": [255,255,255], - "match_fg": [255,255,255], - "selected_fg": [255,255,255], - "selected_match_fg": [255,255,255] - }, - { - "class": "quick_panel_path_label", - "fg": [255,255,255], - "match_fg": [255,255,255], - "selected_fg": [255,255,255], - "selected_match_fg": [255,255,255] - }, - { - "class": "quick_panel_score_label", - "fg": [255,255,255], - "selected_fg": [255,255,255] - }, - -// -// MINI QUICK PANEL -// - - { - "class": "mini_quick_panel_row", - "layer0.texture": "", - "layer0.tint": [17,17,17], - "layer0.opacity": 1 - }, - { - "class": "mini_quick_panel_row", - "attributes": ["selected"], - "layer0.texture": "", - "layer0.tint": [106,140,140] - }, - -// -// CODE COMPLETION DROPDOWN -// - - { - "class": "popup_control", - // "content_margin": [13,13], - "content_margin": [0,0], - "layer0.tint": [17,17,17], - "layer0.opacity": 1 - }, - { - "class": "auto_complete", - "row_padding": [5,5] - }, - { - "class": "auto_complete_label", - "fg": [255,255,255], - "match_fg": [255,255,255], - "selected_fg": [255,255,255], - "selected_match_fg": [255,255,255] - }, - { - "class": "table_row", - "layer0.texture": "", - "layer0.tint":[106,140,140], - "layer0.opacity": 0, - "layer0.inner_margin": [5,5] - }, - { - "class": "table_row", - "attributes": ["selected"], - "layer0.opacity": 1 - }, - -// -// BOTTOM PANEL BUTTONS -// - - // Button group middle - { - "class": "icon_button_control", - "layer1.texture": "", - "layer1.opacity": 0, - "layer1.tint":[35,40,48], - "content_margin": 7 - }, - { - "class": "icon_button_control", - "attributes": ["selected"], - "layer0.opacity": 0 - }, - // Button group left - { - "class": "icon_button_control", - "attributes": ["left"], - "layer0.texture": "" - }, - // Button group left - { - "class": "icon_button_control", - "attributes": ["left"], - "layer0.texture": "" - }, - { - "class": "icon_button_control", - "attributes": ["left","selected"], - "layer0.texture": "" - }, - // Button group right - { - "class": "icon_button_control", - "attributes": ["right"], - "layer0.texture": "" - - }, - { - "class": "icon_button_control", - "attributes": ["right","selected"], - "layer0.texture": "" - }, - // Button single - { - "class": "icon_button_control", - "attributes": ["left","right"], - "layer0.texture": "" - }, - { - "class": "icon_button_control", - "attributes": ["left","right","selected"], - "layer0.texture": "" - }, - -// -// BOTTOM PANEL ICONS - GROUP 1 -// - - // Regex search button - { - "class": "icon_regex", - "layer0.texture": "theme-greybeard/greybeard/regex.png", - "layer0.tint": [170, 170, 170], - "layer0.opacity": 1, - "content_margin": 8 - }, - { - "class": "icon_regex", - "parents": [{"class": "icon_button_control","attributes": ["selected"]}], - "layer0.tint": [106,140,140] - }, - { - "class": "icon_regex", - "parents": [{"class": "icon_button_control","attributes": ["hover"]}], - "layer0.tint": [106,140,140] - }, - // Case sensitive search button - { - "class": "icon_case", - "layer0.texture": "theme-greybeard/greybeard/casesens.png", - "layer0.tint": [170, 170, 170], - "layer0.opacity": 1, - "content_margin": 8 - }, - { - "class": "icon_case", - "parents": [{"class": "icon_button_control","attributes": ["selected"]}], - "layer0.tint": [106,140,140] - }, - { - "class": "icon_case", - "parents": [{"class": "icon_button_control","attributes": ["hover"]}], - "layer0.tint": [106,140,140] - }, - // Match whole word search button - { - "class": "icon_whole_word", - "layer0.texture": "theme-greybeard/greybeard/wholeword.png", - "layer0.tint": [170, 170, 170], - "layer0.opacity": 1, - "content_margin": 8 - }, - { - "class": "icon_whole_word", - "parents": [{"class": "icon_button_control","attributes": ["selected"]}], - "layer0.tint": [106,140,140] - }, - { - "class": "icon_whole_word", - "parents": [{"class": "icon_button_control","attributes": ["hover"]}], - "layer0.tint": [106,140,140] - }, - -// -// BOTTOM PANEL ICONS - GROUP 1 (EXTENDED: FIND IN FILES) -// - - // Show search context button - { - "class": "icon_context", - "layer0.texture": "theme-greybeard/greybeard/context.png", - "layer0.tint": [170, 170, 170], - "layer0.opacity": 1, - "content_margin": 8 - }, - { - "class": "icon_context", - "parents": [{"class": "icon_button_control","attributes": ["selected"]}], - "layer0.tint": [106,140,140] - }, - { - "class": "icon_context", - "parents": [{"class": "icon_button_control","attributes": ["hover"]}], - "layer0.tint": [106,140,140] - }, - // Use search buffer - { - "class": "icon_use_buffer", - "layer0.texture": "theme-greybeard/greybeard/buffer.png", - "layer0.tint": [170, 170, 170], - "layer0.opacity": 1, - "content_margin": 8 - }, - { - "class": "icon_use_buffer", - "parents": [{"class": "icon_button_control","attributes": ["selected"]}], - "layer0.tint": [106,140,140] - }, - { - "class": "icon_use_buffer", - "parents": [{"class": "icon_button_control","attributes": ["hover"]}], - "layer0.tint": [106,140,140] - }, - -// -// BOTTOM PANEL ICONS - GROUP 2 -// - // Reverse search direction button (ST2 only) - { - "class": "icon_reverse", - "layer0.texture": "theme-greybeard/greybeard/reverse.png", - "layer0.tint": [170, 170, 170], - "layer0.opacity": 1, - "content_margin": 8 - }, - { - "class": "icon_reverse", - "parents": [{"class": "icon_button_control","attributes": ["selected"]}], - "layer0.tint": [106,140,140] - }, - { - "class": "icon_reverse", - "parents": [{"class": "icon_button_control","attributes": ["hover"]}], - "layer0.tint": [106,140,140] - }, - // Search wrap button - { - "class": "icon_wrap", - "layer0.texture": "theme-greybeard/greybeard/wrap.png", - "layer0.tint": [170, 170, 170], - "layer0.opacity": 1, - "content_margin": 8 - }, - { - "class": "icon_wrap", - "parents": [{"class": "icon_button_control","attributes": ["selected"]}], - "layer0.tint": [106,140,140] - }, - { - "class": "icon_wrap", - "parents": [{"class": "icon_button_control","attributes": ["hover"]}], - "layer0.tint": [106,140,140] - }, - // Search in selection button - { - "class": "icon_in_selection", - "layer0.texture": "theme-greybeard/greybeard/selection.png", - "layer0.tint": [79,91,103], - "layer0.opacity": 1, - "content_margin": 8 - }, - { - "class": "icon_in_selection", - "parents": [{"class": "icon_button_control","attributes": ["selected"]}], - "layer0.tint": [106,140,140] - }, - { - "class": "icon_in_selection", - "parents": [{"class": "icon_button_control","attributes": ["hover"]}], - "layer0.tint": [106,140,140] - }, - -// -// BOTTOM PANEL ICONS - GROUP 3 -// - - // Preserve case button - { - "class": "icon_preserve_case", - "layer0.texture": "theme-greybeard/greybeard/casesens.png", - "layer0.tint": [170, 170, 170], - "layer0.opacity": 1, - "content_margin": 8 - }, - { - "class": "icon_preserve_case", - "parents": [{"class": "icon_button_control","attributes": ["selected"]}], - "layer0.tint": [106,140,140] - }, - { - "class": "icon_preserve_case", - "parents": [{"class": "icon_button_control","attributes": ["hover"]}], - "layer0.tint": [106,140,140] - }, - -// -// BOTTOM PANEL ICONS - GROUP 4 -// - - // Highlight results button - { - "class": "icon_highlight", - "layer0.texture": "theme-greybeard/greybeard/highlight.png", - "layer0.tint": [170, 170, 170], - "layer0.opacity": 1, - "content_margin": 8 - }, - { - "class": "icon_highlight", - "parents": [{"class": "icon_button_control","attributes": ["selected"]}], - "layer0.tint": [106,140,140] - }, - { - "class": "icon_highlight", - "parents": [{"class": "icon_button_control","attributes": ["hover"]}], - "layer0.tint": [106,140,140] - } -] \ No newline at end of file diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/buffer.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/buffer.png deleted file mode 100644 index 40de507..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/buffer.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/buffer@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/buffer@2x.png deleted file mode 100644 index cfa14a1..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/buffer@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/casesens.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/casesens.png deleted file mode 100644 index 0408909..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/casesens.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/casesens@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/casesens@2x.png deleted file mode 100644 index d271218..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/casesens@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/circle.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/circle.png deleted file mode 100644 index cccd35e..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/circle.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/circle@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/circle@2x.png deleted file mode 100644 index 4616344..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/circle@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/close.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/close.png deleted file mode 100644 index b407ebc..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/close.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/close@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/close@2x.png deleted file mode 100644 index 8c375c1..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/close@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/context.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/context.png deleted file mode 100644 index 147b8dd..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/context.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/context@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/context@2x.png deleted file mode 100644 index 4a8a1aa..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/context@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-closed.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-closed.png deleted file mode 100644 index e50555e..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-closed.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-closed@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-closed@2x.png deleted file mode 100644 index 2112c34..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-closed@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-open.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-open.png deleted file mode 100644 index 449ba80..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-open.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-open@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-open@2x.png deleted file mode 100644 index 67f47f6..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder-open@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder.png deleted file mode 100644 index 473e51e..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder@2x.png deleted file mode 100644 index 7ddf7c7..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/folder@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/highlight.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/highlight.png deleted file mode 100644 index 6c2c252..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/highlight.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/highlight@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/highlight@2x.png deleted file mode 100644 index 8087c81..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/highlight@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/regex.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/regex.png deleted file mode 100644 index 18edf4d..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/regex.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/regex@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/regex@2x.png deleted file mode 100644 index 4444bab..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/regex@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/reverse.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/reverse.png deleted file mode 100644 index cfb7241..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/reverse.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/reverse@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/reverse@2x.png deleted file mode 100644 index 3c3d587..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/reverse@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/selection.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/selection.png deleted file mode 100644 index 52313a4..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/selection.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/selection@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/selection@2x.png deleted file mode 100644 index 0c12dbc..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/selection@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar-active.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar-active.png deleted file mode 100644 index b9d78b6..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar-active.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar-active@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar-active@2x.png deleted file mode 100644 index 166d7a1..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar-active@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar.png deleted file mode 100644 index 554184f..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar@2x.png deleted file mode 100644 index c52fa51..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-bar@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-scroll-dropdown.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-scroll-dropdown.png deleted file mode 100644 index 4f3d901..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-scroll-dropdown.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-scroll-left.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-scroll-left.png deleted file mode 100644 index d687622..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-scroll-left.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-scroll-right.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-scroll-right.png deleted file mode 100644 index 23f3f24..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/tab-scroll-right.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/wholeword.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/wholeword.png deleted file mode 100644 index 73f6c54..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/wholeword.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/wholeword@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/wholeword@2x.png deleted file mode 100644 index 27f76f8..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/wholeword@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/wrap.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/wrap.png deleted file mode 100644 index 4689880..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/wrap.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/wrap@2x.png b/.config/sublime-text-2/Packages/theme-greybeard/greybeard/wrap@2x.png deleted file mode 100644 index cfb0575..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/greybeard/wrap@2x.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/preview1.png b/.config/sublime-text-2/Packages/theme-greybeard/preview1.png deleted file mode 100644 index e7321db..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/preview1.png and /dev/null differ diff --git a/.config/sublime-text-2/Packages/theme-greybeard/preview2.png b/.config/sublime-text-2/Packages/theme-greybeard/preview2.png deleted file mode 100644 index 5e6ea53..0000000 Binary files a/.config/sublime-text-2/Packages/theme-greybeard/preview2.png and /dev/null differ diff --git a/.fonts.conf b/.fonts.conf deleted file mode 100644 index fd43810..0000000 --- a/.fonts.conf +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - true - - - - - true - - - - - hintslight - - - - - rgb - - - - - true - - - - - lcddefault - - - - - - Gohufont - - - - - - - Stlarch - - - - - - - terminus - - - - - - - - false - - - - diff --git a/.fonts/gohu-README b/.fonts/gohu-README deleted file mode 100644 index 5107f37..0000000 --- a/.fonts/gohu-README +++ /dev/null @@ -1,13 +0,0 @@ -Gohufont -A font for programming and terminal use. -Available in heights of 11 and 14 pixels. -http://font.gohu.eu - -Copyright 2010 by Hugo Chargois - -LICENSE -This font is released under the terms of the WTFPL (see COPYING-LICENSE). - -THANKS AND AKNOWLEDGMENTS -The Unicode versions of the 11px font are based extensively on the fixed 6x10 font by Markus Kuhn (http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html). -I used the Terminus font in 14 px with great satisfaction for a long time before I decided to make gohufont 14 px, so it surely inspired me and they may share some similarities in appearance. It is not a derivative work though. Thanks to Dimitar Zhekov for his great font. diff --git a/.fonts/gohufont-11.pcf.gz b/.fonts/gohufont-11.pcf.gz deleted file mode 100644 index 53c37e4..0000000 Binary files a/.fonts/gohufont-11.pcf.gz and /dev/null differ diff --git a/.fonts/gohufont-11b.pcf.gz b/.fonts/gohufont-11b.pcf.gz deleted file mode 100644 index 265b0ec..0000000 Binary files a/.fonts/gohufont-11b.pcf.gz and /dev/null differ diff --git a/.fonts/gohufont-14.pcf.gz b/.fonts/gohufont-14.pcf.gz deleted file mode 100644 index fe62d9a..0000000 Binary files a/.fonts/gohufont-14.pcf.gz and /dev/null differ diff --git a/.fonts/gohufont-14b.pcf.gz b/.fonts/gohufont-14b.pcf.gz deleted file mode 100644 index 4c536f2..0000000 Binary files a/.fonts/gohufont-14b.pcf.gz and /dev/null differ diff --git a/.fonts/gohufont-uni-11.pcf.gz b/.fonts/gohufont-uni-11.pcf.gz deleted file mode 100644 index 2ae8317..0000000 Binary files a/.fonts/gohufont-uni-11.pcf.gz and /dev/null differ diff --git a/.fonts/gohufont-uni-11b.pcf.gz b/.fonts/gohufont-uni-11b.pcf.gz deleted file mode 100644 index a3e7d5e..0000000 Binary files a/.fonts/gohufont-uni-11b.pcf.gz and /dev/null differ diff --git a/.fonts/gohufont-uni-14.pcf.gz b/.fonts/gohufont-uni-14.pcf.gz deleted file mode 100644 index b5f7ad7..0000000 Binary files a/.fonts/gohufont-uni-14.pcf.gz and /dev/null differ diff --git a/.fonts/gohufont-uni-14b.pcf.gz b/.fonts/gohufont-uni-14b.pcf.gz deleted file mode 100644 index 14b835b..0000000 Binary files a/.fonts/gohufont-uni-14b.pcf.gz and /dev/null differ diff --git a/.gitconfig b/.gitconfig deleted file mode 100644 index c6e923f..0000000 --- a/.gitconfig +++ /dev/null @@ -1,13 +0,0 @@ -[user] - name = xero - email = x@xero.nu -[credential] - helper = cache -[alias] - graph = log --graph --color --pretty=format:"%C(yellow)%H%C(green)%d%C(reset)%n%x20%cd%n%x20%cn%x20(%ce)%n%x20%s%n" - stat = status -sb - last = log -1 --stat - unstage = reset HEAD -- - cached = diff --cached -[color] - ui = auto diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bccc7f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +icons/ diff --git a/.mpd/mpd.conf b/.mpd/mpd.conf deleted file mode 100755 index 21f12a9..0000000 --- a/.mpd/mpd.conf +++ /dev/null @@ -1,437 +0,0 @@ -# An example configuration file for MPD -# See the mpd.conf man page for a more detailed description of each parameter. - - -# Files and directories ####################################################### -# -# This setting controls the top directory which MPD will search to discover the -# available audio files and add them to the daemon's online database. This -# setting defaults to the XDG directory, otherwise the music directory will be -# be disabled and audio files will only be accepted over ipc socket (using -# file:// protocol) or streaming files over an accepted protocol. -# -music_directory "/home/xero/music" -# -# This setting sets the MPD internal playlist directory. The purpose of this -# directory is storage for playlists created by MPD. The server will use -# playlist files not created by the server but only if they are in the MPD -# format. This setting defaults to playlist saving being disabled. -# -playlist_directory "/home/xero/.mpd/playlists" -# -# This setting sets the location of the MPD database. This file is used to -# load the database at server start up and store the database while the -# server is not up. This setting defaults to disabled which will allow -# MPD to accept files over ipc socket (using file:// protocol) or streaming -# files over an accepted protocol. -# -db_file "/home/xero/.mpd/tag_cache" -# -# These settings are the locations for the daemon log files for the daemon. -# These logs are great for troubleshooting, depending on your log_level -# settings. -# -# The special value "syslog" makes MPD use the local syslog daemon. This -# setting defaults to logging to syslog, otherwise logging is disabled. -# -log_file "/home/xero/.mpd/mpd.log" -# -# This setting sets the location of the file which stores the process ID -# for use of mpd --kill and some init scripts. This setting is disabled by -# default and the pid file will not be stored. -# -pid_file "/home/xero/.mpd/mpd.pid" -# -# This setting sets the location of the file which contains information about -# most variables to get MPD back into the same general shape it was in before -# it was brought down. This setting is disabled by default and the server -# state will be reset on server start up. -# -state_file "/home/xero/.mpd/mpdstate" -# -# The location of the sticker database. This is a database which -# manages dynamic information attached to songs. -# -sticker_file "/home/xero/.mpd/sticker.sql" -# -############################################################################### - - -# General music daemon options ################################################ -# -# This setting specifies the user that MPD will run as. MPD should never run as -# root and you may use this setting to make MPD change its user ID after -# initialization. This setting is disabled by default and MPD is run as the -# current user. -# -#user "mpd" -# -# This setting specifies the group that MPD will run as. If not specified -# primary group of user specified with "user" setting will be used (if set). -# This is useful if MPD needs to be a member of group such as "audio" to -# have permission to use sound card. -# -#group "nogroup" -# -# This setting sets the address for the daemon to listen on. Careful attention -# should be paid if this is assigned to anything other then the default, any. -# This setting can deny access to control of the daemon. Choose any if you want -# to have mpd listen on every address -# -# For network -bind_to_address "127.0.0.1" -# -# And for Unix Socket -#bind_to_address "/var/run/mpd/socket" -# -# This setting is the TCP port that is desired for the daemon to get assigned -# to. -# -port "6600" -# -# This setting controls the type of information which is logged. Available -# setting arguments are "default", "secure" or "verbose". The "verbose" setting -# argument is recommended for troubleshooting, though can quickly stretch -# available resources on limited hardware storage. -# -#log_level "default" -# -# If you have a problem with your MP3s ending abruptly it is recommended that -# you set this argument to "no" to attempt to fix the problem. If this solves -# the problem, it is highly recommended to fix the MP3 files with vbrfix -# (available as vbrfix in the debian archive), at which -# point gapless MP3 playback can be enabled. -# -gapless_mp3_playback "yes" -# -# This setting enables MPD to create playlists in a format usable by other -# music players. -# -#save_absolute_paths_in_playlists "no" -# -# This setting defines a list of tag types that will be extracted during the -# audio file discovery process. Optionally, 'comment' can be added to this -# list. -# -#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc" -# -# This setting enables automatic update of MPD's database when files in -# music_directory are changed. -# -#auto_update "yes" -# -# Limit the depth of the directories being watched, 0 means only watch -# the music directory itself. There is no limit by default. -# -#auto_update_depth "3" -# -############################################################################### - - -# Symbolic link behavior ###################################################### -# -# If this setting is set to "yes", MPD will discover audio files by following -# symbolic links outside of the configured music_directory. -# -#follow_outside_symlinks "yes" -# -# If this setting is set to "yes", MPD will discover audio files by following -# symbolic links inside of the configured music_directory. -# -#follow_inside_symlinks "yes" -# -############################################################################### - - -# Zeroconf / Avahi Service Discovery ########################################## -# -# If this setting is set to "yes", service information will be published with -# Zeroconf / Avahi. -# -#zeroconf_enabled "yes" -# -# The argument to this setting will be the Zeroconf / Avahi unique name for -# this MPD server on the network. -# -#zeroconf_name "Music Player" -# -############################################################################### - - -# Permissions ################################################################# -# -# If this setting is set, MPD will require password authorization. The password -# can setting can be specified multiple times for different password profiles. -# -#password "password@read,add,control,admin" -# -# This setting specifies the permissions a user has who has not yet logged in. -# -#default_permissions "read,add,control,admin" -# -############################################################################### - - -# Input ####################################################################### -# - -input { - plugin "curl" -# proxy "proxy.isp.com:8080" -# proxy_user "user" -# proxy_password "password" -} - -# -############################################################################### - -# Audio Output ################################################################ -# -# MPD supports various audio output types, as well as playing through multiple -# audio outputs at the same time, through multiple audio_output settings -# blocks. Setting this block is optional, though the server will only attempt -# autodetection for one sound card. -# -# See for examples of -# other audio outputs. -# -# An example of an ALSA output: -# -audio_output { - type "alsa" - name "My ALSA Device" - device "hw:0,0" # optional - format "44100:16:2" # optional - mixer_device "default" # optional - mixer_control "PCM" # optional - mixer_index "0" # optional -} -# -# visuializer -# -audio_output { - type "fifo" - name "my_fifo" - path "/tmp/mpd.fifo" - format "44100:16:2" -} -# -# An example of an OSS output: -# -#audio_output { -# type "oss" -# name "My OSS Device" -# device "/dev/dsp" # optional -# format "44100:16:2" # optional -# mixer_device "/dev/mixer" # optional -# mixer_control "PCM" # optional -#} -# -# An example of a shout output (for streaming to Icecast): -# -#audio_output { -# type "shout" -# encoding "ogg" # optional -# name "My Shout Stream" -# host "localhost" -# port "8000" -# mount "/mpd.ogg" -# password "hackme" -# quality "5.0" -# bitrate "128" -# format "44100:16:1" -# protocol "icecast2" # optional -# user "source" # optional -# description "My Stream Description" # optional -# genre "jazz" # optional -# public "no" # optional -# timeout "2" # optional -#} -# -# An example of a recorder output: -# -#audio_output { -# type "recorder" -# name "My recorder" -# encoder "vorbis" # optional, vorbis or lame -# path "/var/lib/mpd/recorder/mpd.ogg" -## quality "5.0" # do not define if bitrate is defined -# bitrate "128" # do not define if quality is defined -# format "44100:16:1" -#} -# -# An example of a httpd output (built-in HTTP streaming server): -# -#audio_output { -# type "httpd" -# name "My HTTP Stream" -# encoder "vorbis" # optional, vorbis or lame -# port "8000" -# quality "5.0" # do not define if bitrate is defined -# bitrate "128" # do not define if quality is defined -# format "44100:16:1" -#} -# -# An example of a pulseaudio output (streaming to a remote pulseaudio server) -# -#audio_output { -# type "pulse" -# name "My Pulse Output" -# server "remote_server" # optional -# sink "remote_server_sink" # optional -#} -# -## Example "pipe" output: -# -#audio_output { -# type "pipe" -# name "my pipe" -# command "aplay -f cd 2>/dev/null" -## Or if you're want to use AudioCompress -# command "AudioCompress -m | aplay -f cd 2>/dev/null" -## Or to send raw PCM stream through PCM: -# command "nc example.org 8765" -# format "44100:16:2" -#} -# -## An example of a null output (for no audio output): -# -#audio_output { -# type "null" -# name "My Null Output" -#} -# -# This setting will change all decoded audio to be converted to the specified -# format before being passed to the audio outputs. By default, this setting is -# disabled. -# -#audio_output_format "44100:16:2" -# -# If MPD has been compiled with libsamplerate support, this setting specifies -# the sample rate converter to use. Possible values can be found in the -# mpd.conf man page or the libsamplerate documentation. By default, this is -# setting is disabled. -# -#samplerate_converter "Fastest Sinc Interpolator" -# -############################################################################### - - -# Volume control mixer ######################################################## -# -# These are the global volume control settings. By default, this setting will -# be detected to the available audio output device, with preference going to -# hardware mixing. Hardware and software mixers for individual audio_output -# sections cannot yet be mixed. -# -# An example for controlling an ALSA, OSS or Pulseaudio mixer; If this -# setting is used other sound applications will be affected by the volume -# being controlled by MPD. -# -#mixer_type "hardware" -# -# An example for controlling all mixers through software. This will control -# all controls, even if the mixer is not supported by the device and will not -# affect any other sound producing applications. -# -mixer_type "software" -# -# This example will not allow MPD to touch the mixer at all and will disable -# all volume controls. -# -#mixer_type "disabled" -# -############################################################################### - - -# Normalization automatic volume adjustments ################################## -# -# This setting specifies the type of ReplayGain to use. This setting can have -# the argument "album" or "track". See for more -# details. This setting is disabled by default. -# -#replaygain "album" -# -# This setting sets the pre-amp used for files that have ReplayGain tags. By -# default this setting is disabled. -# -#replaygain_preamp "0" -# -# This setting enables on-the-fly normalization volume adjustment. This will -# result in the volume of all playing audio to be adjusted so the output has -# equal "loudness". This setting is disabled by default. -# -#volume_normalization "no" -# -############################################################################### - - -# MPD Internal Buffering ###################################################### -# -# This setting adjusts the size of internal decoded audio buffering. Changing -# this may have undesired effects. Don't change this if you don't know what you -# are doing. -# -#audio_buffer_size "2048" -# -# This setting controls the percentage of the buffer which is filled before -# beginning to play. Increasing this reduces the chance of audio file skipping, -# at the cost of increased time prior to audio playback. -# -#buffer_before_play "10%" -# -############################################################################### - - -# Resource Limitations ######################################################## -# -# These settings are various limitations to prevent MPD from using too many -# resources. Generally, these settings should be minimized to prevent security -# risks, depending on the operating resources. -# -#connection_timeout "60" -#max_connections "10" -#max_playlist_length "16384" -#max_command_list_size "2048" -#max_output_buffer_size "8192" -# -############################################################################### - - -# Character Encoding ########################################################## -# -# If file or directory names do not display correctly for your locale then you -# may need to modify this setting. After modification of this setting mpd -# --create-db must be run to change the database. -# -filesystem_charset "UTF-8" -# -# This setting controls the encoding that ID3v1 tags should be converted from. -# -id3v1_encoding "UTF-8" -# -############################################################################### -# SIDPlay decoder ############################################################# -# -# songlength_database: -# Location of your songlengths file, as distributed with the HVSC. -# The sidplay plugin checks this for matching MD5 fingerprints. -# See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq -# -# default_songlength: -# This is the default playing time in seconds for songs not in the -# songlength database, or in case you're not using a database. -# A value of 0 means play indefinitely. -# -# filter: -# Turns the SID filter emulation on or off. -# -#decoder { -# plugin "sidplay" -# songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt" -# default_songlength "120" -# filter "true" -#} -# -############################################################################### - diff --git a/.mpd/mpd.db b/.mpd/mpd.db deleted file mode 100755 index e69de29..0000000 diff --git a/.mpd/mpd.fifo b/.mpd/mpd.fifo deleted file mode 100755 index e69de29..0000000 diff --git a/.mpd/mpd.log b/.mpd/mpd.log deleted file mode 100755 index e69de29..0000000 diff --git a/.mpd/mpd.pid b/.mpd/mpd.pid deleted file mode 100644 index e69de29..0000000 diff --git a/.mpd/mpdstate b/.mpd/mpdstate deleted file mode 100755 index e69de29..0000000 diff --git a/.mpd/playlists/placeholder.m3u b/.mpd/playlists/placeholder.m3u deleted file mode 100644 index e69de29..0000000 diff --git a/.mpd/sticker.sql b/.mpd/sticker.sql deleted file mode 100644 index 8b13789..0000000 --- a/.mpd/sticker.sql +++ /dev/null @@ -1 +0,0 @@ - diff --git a/.mpd/tag_cache b/.mpd/tag_cache deleted file mode 100644 index 8b13789..0000000 --- a/.mpd/tag_cache +++ /dev/null @@ -1 +0,0 @@ - diff --git a/.ncmpcpp/config b/.ncmpcpp/config deleted file mode 100644 index b4ac743..0000000 --- a/.ncmpcpp/config +++ /dev/null @@ -1,75 +0,0 @@ -# ████ ██ ██████ ████ ████ ███████ ██████ ███████ ███████ -# ░██░██ ░██ ██░░░░██░██░██ ██░██░██░░░░██ ██░░░░██░██░░░░██░██░░░░██ -# ░██░░██ ░██ ██ ░░ ░██░░██ ██ ░██░██ ░██ ██ ░░ ░██ ░██░██ ░██ -# ░██ ░░██ ░██░██ ░██ ░░███ ░██░███████ ░██ ░███████ ░███████ -# ░██ ░░██░██░██ ░██ ░░█ ░██░██░░░░ ░██ ░██░░░░ ░██░░░░ -# ░██ ░░████░░██ ██░██ ░ ░██░██ ░░██ ██░██ ░██ -# ░██ ░░███ ░░██████ ░██ ░██░██ ░░██████ ░██ ░██ -# ░░ ░░░ ░░░░░░ ░░ ░░ ░░ ░░░░░░ ░░ ░░ -# -# █▓▒░ Setup - ncmpcpp_directory = "/home/xero/.ncmpcpp" - #lyrics_directory = /home/xero/.lyrics - mpd_music_dir = "/home/xero/music" - external_editor = "/usr/bin/nano" - -# █▓▒░ MPD Settings - mpd_crossfade_time = "3" - mpd_music_dir = "/home/xero/music" - -# █▓▒░ Visualizer - visualizer_look = "▒░" - visualizer_color = "white" - visualizer_in_stereo = "yes" - visualizer_fifo_path = "/tmp/mpd.fifo" - visualizer_sync_interval = "1" - visualizer_output_name = "my_fifo" - visualizer_type = "spectrum" #"wave" - -# █▓▒░ Display Settings - song_list_format = "{$7%a $1> $6}{%t$1$R$b} [{%l}]" - song_status_format = "$7%a $1$b> $6%t $1$b> $2%b$1" - statusbar_color = "black" - visualizer_color = "cyan" - main_window_highlight_color = "red" - header_visibility = "no" - statusbar_visibility = "yes" - colors_enabled = "yes" - display_screens_numbers_on_start = "no" - now_playing_prefix = "> " - #now_playing_suffix = "" - autocenter_mode = "yes" - centered_cursor = "yes" - progressbar_look = "▒▓░" - titles_visibility = "no" - mouse_support = "no" - discard_colors_if_item_is_selected = "yes" - user_interface = "classic" #"alternative" - -# █▓▒░ cheat sheet -# %l - length -# %f - filename -# %D - directory -# %a - artist -# %t - title -# %b - album -# %y - year -# %n - track number (01/12 -> 01) -# %N - full track info (01/12 -> 01/12) -# %g - genre -# %c - composer -# %p - performer -# %d - disc -# %C - comment -# $R - begin right alignment -# █▓▒░ colors -# $0 - default window color -# $1 - black -# $2 - red -# $3 - green -# $4 - yellow -# $5 - blue -# $6 - magenta -# $7 - cyan -# $8 - white -# $9 - end of current color diff --git a/.vim/.netrwhist b/.vim/.netrwhist deleted file mode 100644 index 4d9c622..0000000 --- a/.vim/.netrwhist +++ /dev/null @@ -1,8 +0,0 @@ -let g:netrw_dirhistmax =10 -let g:netrw_dirhist_cnt =6 -let g:netrw_dirhist_1='/home/xero/code/www/loyaltree.com' -let g:netrw_dirhist_2='/home/xero/code/www/loyaltree.com/ui' -let g:netrw_dirhist_3='/home/xero/code/www/loyaltree.com/ui/css' -let g:netrw_dirhist_4='/home/xero/code/www/loyaltree.com/ui/css/sass' -let g:netrw_dirhist_5='/home/xero/code/www/loyaltree.com/ui/css/sass/loyaltree' -let g:netrw_dirhist_6='/etc/X11' diff --git a/.vim/autoload/pathogen.vim b/.vim/autoload/pathogen.vim deleted file mode 100644 index c6d54a1..0000000 --- a/.vim/autoload/pathogen.vim +++ /dev/null @@ -1,344 +0,0 @@ -" pathogen.vim - path option manipulation -" Maintainer: Tim Pope -" Version: 2.3 - -" Install in ~/.vim/autoload (or ~\vimfiles\autoload). -" -" For management of individually installed plugins in ~/.vim/bundle (or -" ~\vimfiles\bundle), adding `execute pathogen#infect()` to the top of your -" .vimrc is the only other setup necessary. -" -" The API is documented inline below. - -if exists("g:loaded_pathogen") || &cp - finish -endif -let g:loaded_pathogen = 1 - -" Point of entry for basic default usage. Give a relative path to invoke -" pathogen#interpose() (defaults to "bundle/{}"), or an absolute path to invoke -" pathogen#surround(). Curly braces are expanded with pathogen#expand(): -" "bundle/{}" finds all subdirectories inside "bundle" inside all directories -" in the runtime path. -function! pathogen#infect(...) abort - for path in a:0 ? filter(reverse(copy(a:000)), 'type(v:val) == type("")') : ['bundle/{}'] - if path =~# '^\%({\=[$~\\/]\|{\=\w:[\\/]\).*[{}*]' - call pathogen#surround(path) - elseif path =~# '^\%([$~\\/]\|\w:[\\/]\)' - call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')') - call pathogen#surround(path . '/{}') - elseif path =~# '[{}*]' - call pathogen#interpose(path) - else - call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')') - call pathogen#interpose(path . '/{}') - endif - endfor - call pathogen#cycle_filetype() - if pathogen#is_disabled($MYVIMRC) - return 'finish' - endif - return '' -endfunction - -" Split a path into a list. -function! pathogen#split(path) abort - if type(a:path) == type([]) | return a:path | endif - if empty(a:path) | return [] | endif - let split = split(a:path,'\\\@]','\\&','') - endif -endfunction - -" Like findfile(), but hardcoded to use the runtimepath. -function! pathogen#runtime_findfile(file,count) abort "{{{1 - let rtp = pathogen#join(1,pathogen#split(&rtp)) - let file = findfile(a:file,rtp,a:count) - if file ==# '' - return '' - else - return fnamemodify(file,':p') - endif -endfunction - -" Section: Deprecated - -function! s:warn(msg) abort - echohl WarningMsg - echomsg a:msg - echohl NONE -endfunction - -" Prepend all subdirectories of path to the rtp, and append all 'after' -" directories in those subdirectories. Deprecated. -function! pathogen#runtime_prepend_subdirectories(path) abort - call s:warn('Change pathogen#runtime_prepend_subdirectories('.string(a:path).') to pathogen#infect('.string(a:path.'/{}').')') - return pathogen#surround(a:path . pathogen#slash() . '{}') -endfunction - -function! pathogen#incubate(...) abort - let name = a:0 ? a:1 : 'bundle/{}' - call s:warn('Change pathogen#incubate('.(a:0 ? string(a:1) : '').') to pathogen#infect('.string(name).')') - return pathogen#interpose(name) -endfunction - -" Deprecated alias for pathogen#interpose(). -function! pathogen#runtime_append_all_bundles(...) abort - if a:0 - call s:warn('Change pathogen#runtime_append_all_bundles('.string(a:1).') to pathogen#infect('.string(a:1.'/{}').')') - else - call s:warn('Change pathogen#runtime_append_all_bundles() to pathogen#infect()') - endif - return pathogen#interpose(a:0 ? a:1 . '/{}' : 'bundle/{}') -endfunction - -if exists(':Vedit') - finish -endif - -let s:vopen_warning = 0 - -function! s:find(count,cmd,file,lcd) - let rtp = pathogen#join(1,pathogen#split(&runtimepath)) - let file = pathogen#runtime_findfile(a:file,a:count) - if file ==# '' - return "echoerr 'E345: Can''t find file \"".a:file."\" in runtimepath'" - endif - if !s:vopen_warning - let s:vopen_warning = 1 - let warning = '|echohl WarningMsg|echo "Install scriptease.vim to continue using :V'.a:cmd.'"|echohl NONE' - else - let warning = '' - endif - if a:lcd - let path = file[0:-strlen(a:file)-2] - execute 'lcd `=path`' - return a:cmd.' '.pathogen#fnameescape(a:file) . warning - else - return a:cmd.' '.pathogen#fnameescape(file) . warning - endif -endfunction - -function! s:Findcomplete(A,L,P) - let sep = pathogen#slash() - let cheats = { - \'a': 'autoload', - \'d': 'doc', - \'f': 'ftplugin', - \'i': 'indent', - \'p': 'plugin', - \'s': 'syntax'} - if a:A =~# '^\w[\\/]' && has_key(cheats,a:A[0]) - let request = cheats[a:A[0]].a:A[1:-1] - else - let request = a:A - endif - let pattern = substitute(request,'/\|\'.sep,'*'.sep,'g').'*' - let found = {} - for path in pathogen#split(&runtimepath) - let path = expand(path, ':p') - let matches = split(glob(path.sep.pattern),"\n") - call map(matches,'isdirectory(v:val) ? v:val.sep : v:val') - call map(matches,'expand(v:val, ":p")[strlen(path)+1:-1]') - for match in matches - let found[match] = 1 - endfor - endfor - return sort(keys(found)) -endfunction - -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Ve :execute s:find(,'edit',,0) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(,'edit',,0) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(,'edit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(,'split',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(,'vsplit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(,'tabedit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(,'pedit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(,'read',,1) - -" vim:set et sw=2 foldmethod=expr foldexpr=getline(v\:lnum)=~'^\"\ Section\:'?'>1'\:getline(v\:lnum)=~#'^fu'?'a1'\:getline(v\:lnum)=~#'^endf'?'s1'\:'=': diff --git a/.vim/bundle/colorizer/Makefile b/.vim/bundle/colorizer/Makefile deleted file mode 100644 index 7f91e3b..0000000 --- a/.vim/bundle/colorizer/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -.PHONY: all clean install uninstall -DOTVIM=$(HOME)/.vim -FILES=plugin/colorizer.vim autoload/colorizer.vim - -all: - @echo "Available phony targets: install, uninstall" - -install: - for f in $(FILES); do install -m644 $$f $(DOTVIM)/$$f; done - -uninstall: - rm -f $(FILES) diff --git a/.vim/bundle/colorizer/README.mkd b/.vim/bundle/colorizer/README.mkd deleted file mode 100644 index f8c4598..0000000 --- a/.vim/bundle/colorizer/README.mkd +++ /dev/null @@ -1,7 +0,0 @@ -A Vim plugin to colorize all text in the form #rrggbb or #rgb. See the comment at the beginning of the [plugin](https://github.com/lilydjwg/colorizer/tree/master/plugin/colorizer.vim) for more. - -![screenshot](https://github.com/lilydjwg/colorizer/raw/master/screenshot.png) - -The `Makefile` is used to quickly install/uninstall the script. - -[colorizer.vim on vim.org](http://www.vim.org/scripts/script.php?script_id=3567) diff --git a/.vim/bundle/colorizer/autoload/colorizer.vim b/.vim/bundle/colorizer/autoload/colorizer.vim deleted file mode 100644 index 985c9f7..0000000 --- a/.vim/bundle/colorizer/autoload/colorizer.vim +++ /dev/null @@ -1,377 +0,0 @@ -" colorizer.vim Colorize all text in the form #rrggbb or #rgb; autoload functions -" Maintainer: lilydjwg -" Version: 1.4.1 -" License: Vim License (see vim's :help license) -" -" See plugin/colorizer.vim for more info. - -let s:keepcpo = &cpo -set cpo&vim - -function! s:FGforBG(bg) "{{{1 - " takes a 6hex color code and returns a matching color that is visible - let pure = substitute(a:bg,'^#','','') - let r = str2nr(pure[0:1], 16) - let g = str2nr(pure[2:3], 16) - let b = str2nr(pure[4:5], 16) - let fgc = g:colorizer_fgcontrast - if r*30 + g*59 + b*11 > 12000 - return s:predefined_fgcolors['dark'][fgc] - else - return s:predefined_fgcolors['light'][fgc] - end -endfunction - -function! s:Rgb2xterm(color) "{{{1 - " selects the nearest xterm color for a rgb value like #FF0000 - let best_match=0 - let smallest_distance = 10000000000 - let r = str2nr(a:color[0:1], 16) - let g = str2nr(a:color[2:3], 16) - let b = str2nr(a:color[4:5], 16) - let colortable = s:GetXterm2rgbTable() - for c in range(0,254) - let d = pow(colortable[c][0]-r,2) + pow(colortable[c][1]-g,2) + pow(colortable[c][2]-b,2) - if d=16 && a:color<=232 - let l:color=a:color-16 - let r = s:valuerange[(l:color/36)%6] - let g = s:valuerange[(l:color/6)%6] - let b = s:valuerange[l:color%6] - endif - - " gray tone - if a:color>=233 && a:color<=253 - let r=8+(a:color-232)*0x0a - let g=r - let b=r - endif - let rgb=[r,g,b] - return rgb -endfunction - -function! s:SetMatcher(color, pat) "{{{1 - " "color" is the converted color and "pat" is what to highlight - let group = 'Color' . strpart(a:color, 1) - if !hlexists(group) || s:force_group_update - let fg = g:colorizer_fgcontrast < 0 ? a:color : s:FGforBG(a:color) - if &t_Co == 256 - exe 'hi '.group.' ctermfg='.s:Rgb2xterm(fg).' ctermbg='.s:Rgb2xterm(a:color) - endif - " Always set gui* as user may switch to GUI version and it's cheap - exe 'hi '.group.' guifg='.fg.' guibg='.a:color - endif - if !exists("w:colormatches[a:pat]") - let w:colormatches[a:pat] = matchadd(group, a:pat) - endif -endfunction - -"ColorFinders {{{1 -function! s:HexCode(str, lineno) "{{{2 - let ret = [] - let place = 0 - let colorpat = '#[0-9A-Fa-f]\{3\}\>\|#[0-9A-Fa-f]\{6\}\>' - while 1 - let foundcolor = matchstr(a:str, colorpat, place) - if foundcolor == '' - break - endif - let place = matchend(a:str, colorpat, place) - let pat = foundcolor . '\>' - if len(foundcolor) == 4 - let foundcolor = substitute(foundcolor, '[[:xdigit:]]', '&&', 'g') - endif - call add(ret, [foundcolor, pat]) - endwhile - return ret -endfunction - -function! s:RgbColor(str, lineno) "{{{2 - let ret = [] - let place = 0 - let colorpat = '\ 255 || g > 255 || b > 255 - break - endif - let pat = printf('\ 255 || ag > 255 || ab > 255 - break - endif - let alpha = str2float(foundcolor[5]) - if alpha < 0 - let alpha = 0.0 - elseif alpha > 1 - let alpha = 1.0 - endif - let pat = printf('\ 255 - let r = 255 - endif - if g > 255 - let g = 255 - endif - if b > 255 - let b = 255 - endif - let l:color = printf('#%02x%02x%02x', r, g, b) - call add(ret, [l:color, pat]) - endwhile - return ret -endfunction - -function! s:RgbaColorForTerm(str, lineno) "{{{2 - let ret = [] - let place = 0 - let colorpat = '\ 255 || ag > 255 || ab > 255 - break - endif - let pat = printf('\ 704 || v:version == 704 && has('patch143') - autocmd TextChangedI * silent call s:TextChanged() - else - " TextChangedI does not work as expected - autocmd CursorMovedI * silent call s:CursorMoved() - endif - else - autocmd CursorMoved,CursorMovedI * silent call s:CursorMoved() - endif - " rgba handles differently, so need updating - autocmd GUIEnter * silent call colorizer#ColorHighlight(1) - autocmd BufRead * silent call colorizer#ColorHighlight(1) - autocmd WinEnter * silent call colorizer#ColorHighlight(1) - autocmd ColorScheme * let s:force_group_update=1 | silent call colorizer#ColorHighlight(1) - augroup END -endfunction - -function! colorizer#ColorClear() "{{{1 - augroup Colorizer - au! - augroup END - let save_tab = tabpagenr() - let save_win = winnr() - tabdo windo call s:ClearMatches() - exe 'tabn '.save_tab - exe save_win . 'wincmd w' -endfunction - -function! s:ClearMatches() "{{{1 - if !exists('w:colormatches') - return - endif - for i in values(w:colormatches) - call matchdelete(i) - endfor - unlet w:colormatches -endfunction - -function! colorizer#ColorToggle() "{{{1 - if exists('#Colorizer#BufRead') - call colorizer#ColorClear() - echomsg 'Disabled color code highlighting.' - else - call colorizer#ColorHighlight(0) - echomsg 'Enabled color code highlighting.' - endif -endfunction - -function! s:GetXterm2rgbTable() - if !exists('s:table_xterm2rgb') - let s:table_xterm2rgb = [] - for c in range(0, 254) - let s:color = s:Xterm2rgb(c) - call add(s:table_xterm2rgb, s:color) - endfor - endif - return s:table_xterm2rgb -endfun - -" Setups {{{1 -let s:ColorFinder = [function('s:HexCode'), function('s:RgbColor'), function('s:RgbaColor')] -let s:force_group_update = 0 -let s:predefined_fgcolors = {} -let s:predefined_fgcolors['dark'] = ['#444444', '#222222', '#000000'] -let s:predefined_fgcolors['light'] = ['#bbbbbb', '#dddddd', '#ffffff'] -if !exists("g:colorizer_fgcontrast") - " Default to black / white - let g:colorizer_fgcontrast = len(s:predefined_fgcolors['dark']) - 1 -elseif g:colorizer_fgcontrast >= len(s:predefined_fgcolors['dark']) - echohl WarningMsg - echo "g:colorizer_fgcontrast value invalid, using default" - echohl None - let g:colorizer_fgcontrast = len(s:predefined_fgcolors['dark']) - 1 -endif -let s:saved_fgcontrast = g:colorizer_fgcontrast - -" Restoration and modelines {{{1 -let &cpo = s:keepcpo -unlet s:keepcpo -" vim:ft=vim:fdm=marker:fmr={{{,}}}: diff --git a/.vim/bundle/colorizer/plugin/colorizer.vim b/.vim/bundle/colorizer/plugin/colorizer.vim deleted file mode 100644 index 431098c..0000000 --- a/.vim/bundle/colorizer/plugin/colorizer.vim +++ /dev/null @@ -1,62 +0,0 @@ -" colorizer.vim Colorize all text in the form #rrggbb or #rgb; entrance -" Maintainer: lilydjwg -" Version: 1.4.1 -" Licence: Vim license. See ':help license' -" Derived From: css_color.vim -" http://www.vim.org/scripts/script.php?script_id=2150 -" Thanks To: Niklas Hofer (Author of css_color.vim), Ingo Karkat, rykka, -" KrzysztofUrban, blueyed, shanesmith, UncleBill -" Usage: -" -" This plugin defines three commands: -" -" ColorHighlight - start/update highlighting -" ColorClear - clear all highlights -" ColorToggle - toggle highlights -" -" By default, tc is mapped to ColorToggle. If you want to use another -" key map, do like this: -" nmap ,tc Colorizer -" -" If you want completely not to map it, set the following in your vimrc: -" let g:colorizer_nomap = 1 -" -" To use solid color highlight, set this in your vimrc (later change won't -" probably take effect unless you use ':ColorHighlight!' to force update): -" let g:colorizer_fgcontrast = -1 -" set it to 0 or 1 to use a softened foregroud color. -" -" If you don't want to enable colorizer at startup, set the following: -" let g:colorizer_startup = 0 -" -" Note: if you modify a color string in normal mode, if the cursor is still on -" that line, it'll take 'updatetime' seconds to update. You can use -" :ColorHighlight (or your key mapping) again to force update. -" -" Performace Notice: In terminal, it may take several seconds to highlight 240 -" different colors. GUI version is much quicker. - -" Reload guard and 'compatible' handling {{{1 -if exists("loaded_colorizer") || v:version < 700 || !(has("gui_running") || &t_Co == 256) - finish -endif -let loaded_colorizer = 1 - -let s:save_cpo = &cpo -set cpo&vim - -"Define commands {{{1 -command! -bar -bang ColorHighlight call colorizer#ColorHighlight(1, "") -command! -bar ColorClear call colorizer#ColorClear() -command! -bar ColorToggle call colorizer#ColorToggle() -nnoremap Colorizer :ColorToggle -if !hasmapto("Colorizer") && (!exists("g:colorizer_nomap") || g:colorizer_nomap == 0) - nmap tc Colorizer -endif -if !exists('g:colorizer_startup') || g:colorizer_startup - call colorizer#ColorHighlight(0) -endif - -" Cleanup and modelines {{{1 -let &cpo = s:save_cpo -" vim:ft=vim:fdm=marker:fmr={{{,}}}: diff --git a/.vim/bundle/colorizer/screenshot.png b/.vim/bundle/colorizer/screenshot.png deleted file mode 100644 index e400ea2..0000000 Binary files a/.vim/bundle/colorizer/screenshot.png and /dev/null differ diff --git a/.vim/bundle/indentLine/.gitattributes b/.vim/bundle/indentLine/.gitattributes deleted file mode 100644 index 412eeda..0000000 --- a/.vim/bundle/indentLine/.gitattributes +++ /dev/null @@ -1,22 +0,0 @@ -# Auto detect text files and perform LF normalization -* text=auto - -# Custom for Visual Studio -*.cs diff=csharp -*.sln merge=union -*.csproj merge=union -*.vbproj merge=union -*.fsproj merge=union -*.dbproj merge=union - -# Standard to msysgit -*.doc diff=astextplain -*.DOC diff=astextplain -*.docx diff=astextplain -*.DOCX diff=astextplain -*.dot diff=astextplain -*.DOT diff=astextplain -*.pdf diff=astextplain -*.PDF diff=astextplain -*.rtf diff=astextplain -*.RTF diff=astextplain diff --git a/.vim/bundle/indentLine/.gitignore b/.vim/bundle/indentLine/.gitignore deleted file mode 100644 index 5ebd21a..0000000 --- a/.vim/bundle/indentLine/.gitignore +++ /dev/null @@ -1,163 +0,0 @@ -################# -## Eclipse -################# - -*.pydevproject -.project -.metadata -bin/ -tmp/ -*.tmp -*.bak -*.swp -*~.nib -local.properties -.classpath -.settings/ -.loadpath - -# External tool builders -.externalToolBuilders/ - -# Locally stored "Eclipse launch configurations" -*.launch - -# CDT-specific -.cproject - -# PDT-specific -.buildpath - - -################# -## Visual Studio -################# - -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.sln.docstates - -# Build results -[Dd]ebug/ -[Rr]elease/ -*_i.c -*_p.c -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.vspscc -.builds -*.dotCover - -## TODO: If you have NuGet Package Restore enabled, uncomment this -#packages/ - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opensdf -*.sdf - -# Visual Studio profiler -*.psess -*.vsp - -# ReSharper is a .NET coding add-in -_ReSharper* - -# Installshield output folder -[Ee]xpress - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish - -# Others -[Bb]in -[Oo]bj -sql -TestResults -*.Cache -ClientBin -stylecop.* -~$* -*.dbmdl -Generated_Code #added for RIA/Silverlight projects - -# Backup & report files from converting an old project file to a newer -# Visual Studio version. Backup files are not needed, because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML - - - -############ -## Windows -############ - -# Windows image file caches -Thumbs.db - -# Folder config file -Desktop.ini - - -############# -## Python -############# - -*.py[co] - -# Packages -*.egg -*.egg-info -dist -build -eggs -parts -bin -var -sdist -develop-eggs -.installed.cfg - -# Installer logs -pip-log.txt - -# Unit test / coverage reports -.coverage -.tox - -#Translations -*.mo - -#Mr Developer -.mr.developer.cfg - -# Mac crap -.DS_Store diff --git a/.vim/bundle/indentLine/README.md b/.vim/bundle/indentLine/README.md deleted file mode 100644 index c15f359..0000000 --- a/.vim/bundle/indentLine/README.md +++ /dev/null @@ -1,34 +0,0 @@ -indentLine -========== - -This plugin is used for displaying thin vertical lines at each indentation level for code indented with spaces. For code indented with tabs I think there is no need to support it, because you can use `:set list lcs=tab:\|\ ` (here is a space). - -## Requirements -This plugin takes advantage of the newly provided `conceal` feature in Vim 7.3, so this plugin will not work with lower versions of Vim. - -## Installation -To install the plugin just put the plugin files in your `~/.vim` (Linux) or `~/vimfiles` (Windows). - -If you use a plugin manager you can put the whole directory into your `~/.vim/bundle/` directory ([Pathogen][pathogen]) or add the line `Bundle 'Yggdroot/indentLine'` to your `.vimrc` ([Vundle][vundle]). - -## Customization -You can change the color of indentLines: -for Vim, set `g:indentLine_color_term` in your `.vimrc`, e.g. `let g:indentLine_color_term = 239`, -for GVim, set `g:indentLine_color_gui` in your `.vimrc`, e.g. `let g:indentLine_color_gui = '#A4E57E'` -for none X terminal, set `g:indentLine_color_tty_light` and `g:indentLine_color_tty_dark` in your `.vimrc`. e.g. `let g:indentLine_color_tty_light = 7`(default: 4), `let g:indentLine_color_dark = 1`(default: 2). - -You can also change the indentLine char: -for both Vim and GVim, set `let g:indentLine_char = 'c'` where `'c'` can be any ASCII character. You can also use one of `¦`, `┆` or `│` to display more beautiful lines. However, these characters will only work with files whose encoding is UTF-8. - -## Self promotion -If you think this script is helpful, follow the [GitHub repository][repository], and don't forget to vote for it on Vim.org! ([vimscript #4354][script]). - -[pathogen]: https://github.com/tpope/vim-pathogen -[vundle]: https://github.com/gmarik/vundle -[repository]: https://github.com/Yggdroot/indentLine -[script]: http://www.vim.org/scripts/script.php?script_id=4354 - - -## Screenshots -![Screenshot](http://i.imgur.com/KVi0T.jpg) - diff --git a/.vim/bundle/indentLine/after/plugin/indentLine.vim b/.vim/bundle/indentLine/after/plugin/indentLine.vim deleted file mode 100644 index fc78278..0000000 --- a/.vim/bundle/indentLine/after/plugin/indentLine.vim +++ /dev/null @@ -1,166 +0,0 @@ -" Script Name: indentLine.vim -" Author: Yggdroot -" -" Description: To show the indention levels with thin vertical lines - -scriptencoding utf-8 - -if ! has("conceal") || exists("g:indentLine_loaded") - finish -endif -let g:indentLine_loaded = 1 - - -let g:indentLine_char = get(g:,'indentLine_char',(&encoding is# "utf-8" && &term isnot# "linux" ? '¦' : '|')) -let g:indentLine_first_char = get(g:,'indentLine_first_char',(&encoding is# "utf-8" && &term isnot# "linux" ? '¦' : '|')) -let g:indentLine_indentLevel = get(g:,'indentLine_indentLevel',10) -let g:indentLine_enabled = get(g:,'indentLine_enabled',1) -let g:indentLine_fileType = get(g:,'indentLine_fileType',[]) -let g:indentLine_fileTypeExclude = get(g:,'indentLine_fileTypeExclude',[]) -let g:indentLine_bufNameExclude = get(g:,'indentLine_bufNameExclude',[]) -let g:indentLine_showFirstIndentLevel = get(g:,'indentLine_showFirstIndentLevel',0) -let g:indentLine_maxLines = get(g:,'indentLine_maxLines',3000) -let g:indentLine_setColors = get(g:,'indentLine_setColors',1) -let g:indentLine_faster = get(g:,'indentLine_faster',0) - -"{{{1 function! s:InitColor() -function! s:InitColor() - if ! g:indentLine_setColors - return - endif - - if ! exists("g:indentLine_color_term") - if &background is# "light" - let term_color = 249 - else - let term_color = 239 - endif - else - let term_color = g:indentLine_color_term - endif - - if ! exists("g:indentLine_color_gui") - if &background is# "light" - let gui_color = "Grey70" - else - let gui_color = "Grey30" - endif - else - let gui_color = g:indentLine_color_gui - endif - - execute "highlight Conceal ctermfg=" . term_color . " ctermbg=NONE" - execute "highlight Conceal guifg=" . gui_color . " guibg=NONE" - - if &term is# "linux" - if &background is# "light" - let tty_color = exists("g:indentLine_color_tty_light") ? g:indentLine_color_tty_light : 4 - else - let tty_color = exists("g:indentLine_color_tty_dark") ? g:indentLine_color_tty_dark : 2 - endif - execute "highlight Conceal cterm=bold ctermfg=" . tty_color . " ctermbg=NONE" - endif -endfunction - -"{{{1 function! s:SetIndentLine() -function! s:SetIndentLine() - let b:indentLine_enabled = 1 - let space = &l:shiftwidth is 0 ? &l:tabstop : &l:shiftwidth - - if g:indentLine_showFirstIndentLevel - execute 'syntax match IndentLine /^ / containedin=ALL conceal cchar=' . g:indentLine_first_char - endif - - if g:indentLine_faster - execute 'syntax match IndentLineSpace /^\s\+/ containedin=ALL contains=IndentLine' - execute 'syntax match IndentLine / \{'.(space-1).'}\zs / contained conceal cchar=' . g:indentLine_char - execute 'syntax match IndentLine /\t\zs / contained conceal cchar=' . g:indentLine_char - else - let pattern = line('$') < g:indentLine_maxLines ? 'v' : 'c' - for i in range(space+1, space * g:indentLine_indentLevel + 1, space) - execute 'syntax match IndentLine /\%(^\s\+\)\@<=\%'.i.pattern.' / containedin=ALL conceal cchar=' . g:indentLine_char - endfor - endif -endfunction - -"{{{1 function! s:ResetWidth(...) -function! s:ResetWidth(...) - if 0 < a:0 - let &l:shiftwidth = a:1 - endif - - if exists("b:indentLine_enabled") - syntax clear IndentLine - endif - call s:SetIndentLine() -endfunction - -"{{{1 function! s:IndentLinesToggle() -function! s:IndentLinesToggle() - if ! exists("b:indentLine_enabled") - let b:indentLine_enabled = 0 - endif - - if b:indentLine_enabled - let b:indentLine_enabled = 0 - syntax clear IndentLine - else - call s:SetIndentLine() - endif -endfunction - -"{{{1 function! s:Setup() -function! s:Setup() - if index(g:indentLine_fileTypeExclude, &filetype) isnot -1 - return - endif - - if len(g:indentLine_fileType) isnot 0 && index(g:indentLine_fileType, &filetype) is -1 - return - end - - for name in g:indentLine_bufNameExclude - if matchstr(bufname(''), name) is bufname('') - return - endif - endfor - - if ! exists("b:indentLine_bufNr") - let b:indentLine_bufNr = bufnr('%') - let g:indentLine_bufNr = bufnr('%') - elseif g:indentLine_bufNr != bufnr('%') && &hidden - let g:indentLine_bufNr = bufnr('%') - return - endif - - if ! exists("g:indentLine_noConcealCursor") - setlocal concealcursor=inc - endif - setlocal conceallevel=2 - - if &filetype is# "" - call s:InitColor() - endif - - if ! exists("b:indentLine_enabled") - let b:indentLine_enabled = g:indentLine_enabled - endif - - if b:indentLine_enabled - call s:SetIndentLine() - endif -endfunction - -"{{{1 augroup indentLine -augroup indentLine - autocmd! - autocmd BufWinEnter * call Setup() - autocmd BufRead,BufNewFile,ColorScheme * call InitColor() -augroup END - -"{{{1 commands -command! -nargs=? IndentLinesReset call ResetWidth() -command! IndentLinesToggle call IndentLinesToggle() - -" vim:et:ts=4:sw=4:fdm=marker:fmr={{{,}}} - diff --git a/.vim/bundle/indentLine/doc/indentLine.txt b/.vim/bundle/indentLine/doc/indentLine.txt deleted file mode 100644 index 82db783..0000000 --- a/.vim/bundle/indentLine/doc/indentLine.txt +++ /dev/null @@ -1,143 +0,0 @@ -*indentLine.txt* Show vertical lines for indent with conceal feature - -CONTENTS *indentLine-contents* -Introduction |indentLine-introduction| -Config |indentLine-config| -Variables |indentLine-variables| -Commands |indentLine-commands| -FAQ |indentLine-faq| -Changelog |indentLine-changelog| -Credits |indentLine-credits| -============================================================================== -INTRODUCTION *indentLine-introduction* -This plugin is used for displaying thin vertical lines at each indentation -level for code indented with spaces. For code indented with tabs, I think -there is no need to support it, using :set list lcs=tab:\|\ (here is a space) -can achieve it. -============================================================================== -CONFIG *indentLine-config* - -============================================================================== -VARIABLES *indentLine-variables* - -g:indentLine_loaded *g:loaded_indentLine* - Whether load indentLine plugin. - Default value is 0. - -g:indentLine_char *g:indentLine_char* - Specify a character to be used as indent line. - You also can use other characters: - | ¦ ┆ │ - Default value is "|". - -g:indentLine_first_char *g:indentLine_first_char* - Specify a character to be used as indent line - on the first level. - You also can use other characters: - | ¦ ┆ │ - Default value is "|". - -g:indentLine_color_term *g:indentLine_color_term* - Specify terminal vim indent line color. - e.g. let g:indentLine_color_term = 239 - - -g:indentLine_color_gui *g:indentLine_color_gui* - Specify GUI vim indent line color. - e.g. let g:indentLine_color_gui = '#A4E57E' - -g:indentLine_color_tty_light *g:indentLine_color_tty_light* - Specify none X terminal vim indent line color in bg light. - default: 4 - e.g. let g:indentLine_color_tty_light = 7 - -g:indentLine_color_tty_dark *g:indentLine_color_tty_dark* - Specify none X terminal vim indent line color in bg dark. - default: 2 - e.g. let g:indentLine_color_tty_dark = 1 - -g:indentLine_indentLevel *g:indentLine_indentLevel* - Specify how much indent level do you want to use for - indentLine. Most program will not has bigger indent level than - 10. - Default value is 10. - -g:indentLine_showFirstIndentLevel *g:indentLine_showFirstIndentLevel* - Specify whether the first indent level should be shown. - This is useful if you use indentLine in comination with - |listchars| in order to show tabs. - Default value is 0. - -g:indentLine_enabled *g:indentLine_enabled* - Specify whether to enable indentLine plugin by default. - If value is not 0, the plugin is on by default, otherwise off. - Default value is 1. - -g:indentLine_fileType *g:indentLine_fileType* - This variable specify a list of file types. - When opening these types of files, the plugin is enabled by - default. - e.g. let g:indentLine_fileType = ['c', 'cpp'] - Default value is [] which means all file types is supported. - -g:indentLine_fileTypeExclude *g:indentLine_fileTypeExclude* - This variable specify a list of file types. - When opening these types of files, the plugin is disabled by - default. - e.g. let g:indentLine_fileTypeExclude = ['text', 'sh'] - Default value is [] which means no file types is excluded. - -g:indentLine_bufNameExclude *g:indentLine_bufNameExclude* - This variable specify a list of buffer names, which can be - regular expression. If the buffer's name fall into this list, - the indentLine won't display. - e.g. let g:indentLine_bufNameExclude = ['_.*', 'NERD_tree.*'] - Default value is []. - -g:indentLine_maxLines *g:indentLine_maxLines* - This variable specify a number, when the number of buffer's - lines exceed it, the plugin try to use another pattern to make - the performance better. - Default value is 3000. - -g:indentLine_faster *g:indentLine_faster* - If you want the performance better, you can set the value as - 1, default value is 0. But better performance may bring little - issue with it. - -g:indentLine_noConcealCursor *g:indentLine_noConcealCursor* - This variable toggles cursor lines behavior. If variable - exists, then cursorline will be above conceal chars. - Default value is not set. - -============================================================================== -COMMANDS *indentLine-commands* - -IndentLinesReset [number] - if 'shiftwidth' changes, using this command can redraw the - indentLines. number is optional, it means the width between - two indent level, if ommited, value of 'shiftwidth' is used. - -IndentLinesToggle - toggle the indent lines of the current buffer. -============================================================================== -FAQ *indentLine-faq* - -Q. How can I make the indent line visuall similar to the line used in Sublime - Text 2? - -A. Use let g:indentLine_char = '┊' - -============================================================================== -CHANGELOG *indentLine-changelog* - -============================================================================== -CREDITS *indentLine-credits* - -Thanks to the following people for suggestions and patches: - -NagatoPain -Salman Halim -Christophe -============================================================================== -vim:tw=78:ts=8:ft=help:norl diff --git a/.vim/bundle/vim-airline/.gitignore b/.vim/bundle/vim-airline/.gitignore deleted file mode 100644 index 296f094..0000000 --- a/.vim/bundle/vim-airline/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -doc/tags -*.lock -.vim-flavor diff --git a/.vim/bundle/vim-airline/.travis.yml b/.vim/bundle/vim-airline/.travis.yml deleted file mode 100644 index 9ed483e..0000000 --- a/.vim/bundle/vim-airline/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: ruby -rvm: - - 1.9.3 -script: rake ci diff --git a/.vim/bundle/vim-airline/Gemfile b/.vim/bundle/vim-airline/Gemfile deleted file mode 100644 index 088f22e..0000000 --- a/.vim/bundle/vim-airline/Gemfile +++ /dev/null @@ -1,2 +0,0 @@ -source 'https://rubygems.org' -gem 'vim-flavor', '~> 1.1' diff --git a/.vim/bundle/vim-airline/LICENSE b/.vim/bundle/vim-airline/LICENSE deleted file mode 100644 index 9a5a8b7..0000000 --- a/.vim/bundle/vim-airline/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (C) 2013-2014 Bailey Ling - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the "Software"), -to deal in the Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, sublicense, -and/or sell copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE -OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/.vim/bundle/vim-airline/README.md b/.vim/bundle/vim-airline/README.md deleted file mode 100644 index b98e348..0000000 --- a/.vim/bundle/vim-airline/README.md +++ /dev/null @@ -1,210 +0,0 @@ -# vim-airline [![Build Status](https://travis-ci.org/bling/vim-airline.png)](https://travis-ci.org/bling/vim-airline) - -Lean & mean status/tabline for vim that's light as air. - -![img](https://github.com/bling/vim-airline/wiki/screenshots/demo.gif) - -# Features - -* Tiny core written with extensibility in mind ([open/closed principle][8]). -* Integrates with a variety of plugins, including: [vim-bufferline][6], [fugitive][4], [unite][9], [ctrlp][10], [minibufexpl][15], [gundo][16], [undotree][17], [nerdtree][18], [tagbar][19], [vim-gitgutter][29], [vim-signify][30], [syntastic][5], [eclim][34], [lawrencium][21], [virtualenv][31], [tmuxline][35]. -* Looks good with regular fonts and provides configuration points so you can use unicode or powerline symbols. -* Optimized for speed; it loads in under a millisecond. -* Extensive suite of themes for popular color schemes including [solarized][23] (dark and light), [tomorrow][24] (all variants), [base16][32] (all variants), [molokai][25], [jellybeans][26] and others; have a look at the [screenshots][14] in the wiki. -* Supports 7.2 as the minimum Vim version. -* The master branch tries to be as stable as possible, and new features are merged in only after they have gone through a [full regression test][33]. -* Unit testing suite. - -## Straightforward customization - -If you don't like the defaults, you can replace all sections with standard `statusline` syntax. Give your statusline that you've built over the years a face lift. - -![image](https://f.cloud.github.com/assets/306502/1009429/d69306da-0b38-11e3-94bf-7c6e3eef41e9.png) - -## Automatic truncation - -Sections and parts within sections can be configured to automatically hide when the window size shrinks. - -![image](https://f.cloud.github.com/assets/306502/1060831/05c08aac-11bc-11e3-8470-a506a3037f45.png) - -## Smarter tab line - -Automatically displays all buffers when there's only one tab open. - -![tabline](https://f.cloud.github.com/assets/306502/1072623/44c292a0-1495-11e3-9ce6-dcada3f1c536.gif) - -This is disabled by default; add the following to your vimrc to enable the extension: - - let g:airline#extensions#tabline#enabled = 1 - -Separators can be configured independently for the tabline, so here is how you can define "straight" tabs: - - let g:airline#extensions#tabline#left_sep = ' ' - let g:airline#extensions#tabline#left_alt_sep = '|' - -## Seamless integration - -vim-airline integrates with a variety of plugins out of the box. These extensions will be lazily loaded if and only if you have the other plugins installed (and of course you can turn them off). - -#### [ctrlp.vim][10] -![image](https://f.cloud.github.com/assets/306502/962258/7345a224-04ec-11e3-8b5a-f11724a47437.png) - -#### [unite.vim][9] -![image](https://f.cloud.github.com/assets/306502/962319/4d7d3a7e-04ed-11e3-9d59-ab29cb310ff8.png) - -#### [tagbar][19] -![image](https://f.cloud.github.com/assets/306502/962150/7e7bfae6-04ea-11e3-9e28-32af206aed80.png) - -#### [csv.vim][28] -![image](https://f.cloud.github.com/assets/306502/962204/cfc1210a-04eb-11e3-8a93-42e6bcd21efa.png) - -#### [syntastic][5] -![image](https://f.cloud.github.com/assets/306502/962864/9824c484-04f7-11e3-9928-da94f8c7da5a.png) - -#### hunks ([vim-gitgutter][29] & [vim-signify][30]) -![image](https://f.cloud.github.com/assets/306502/995185/73fc7054-09b9-11e3-9d45-618406c6ed98.png) - -#### [virtualenv][31] -![image](https://f.cloud.github.com/assets/390964/1022566/cf81f830-0d98-11e3-904f-cf4fe3ce201e.png) - -#### [tmuxline][35] -![image](https://f.cloud.github.com/assets/1532071/1559276/4c28fbac-4fc7-11e3-90ef-7e833d980f98.gif) - -#### [promptline][36] -![airline-promptline-sc](https://f.cloud.github.com/assets/1532071/1871900/7d4b28a0-789d-11e3-90e4-16f37269981b.gif) - -## Extras - -vim-airline also supplies some supplementary stand-alone extensions. In addition to the tabline extension mentioned earlier, there is also: - -#### whitespace -![image](https://f.cloud.github.com/assets/306502/962401/2a75385e-04ef-11e3-935c-e3b9f0e954cc.png) - -## Configurable and extensible - -#### Fine-tuned configuration - -Every section is composed of parts, and you can reorder and reconfigure them at will. - -![image](https://f.cloud.github.com/assets/306502/1073278/f291dd4c-14a3-11e3-8a83-268e2753f97d.png) - -Sections can contain accents, which allows for very granular control of visuals (see configuration [here](https://github.com/bling/vim-airline/issues/299#issuecomment-25772886)). - -![image](https://f.cloud.github.com/assets/306502/1195815/4bfa38d0-249d-11e3-823e-773cfc2ca894.png) - -#### Extensible pipeline - -Completely transform the statusline to your liking. Build out the statusline as you see fit by extracting colors from the current colorscheme's highlight groups. - -![allyourbase](https://f.cloud.github.com/assets/306502/1022714/e150034a-0da7-11e3-94a5-ca9d58a297e8.png) - -# Rationale - -There's already [powerline][2], why yet another statusline? - -* 100% vimscript; no python needed. - -What about [vim-powerline][1]? - -* vim-powerline has been deprecated in favor of the newer, unifying powerline, which is under active development; the new version is written in python at the core and exposes various bindings such that it can style statuslines not only in vim, but also tmux, bash, zsh, and others. - -# Where did the name come from? - -I wrote the initial version on an airplane, and since it's light as air it turned out to be a good name. Thanks for flying vim! - -# Installation - -This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers: - -* [Pathogen][11] - * `git clone https://github.com/bling/vim-airline ~/.vim/bundle/vim-airline` -* [NeoBundle][12] - * `NeoBundle 'bling/vim-airline'` -* [Vundle][13] - * `Plugin 'bling/vim-airline'` -* [VAM][22] - * `call vam#ActivateAddons([ 'vim-airline' ])` -* manual - * copy all of the files into your `~/.vim` directory - -# Configuration - -`:help airline` - -The default setting of 'laststatus' is for the statusline to not appear until a split is created. If you want it to appear all the time, add the following to your vimrc: -`set laststatus=2` - -# Integrating with powerline fonts - -For the nice looking powerline symbols to appear, you will need to install a patched font. Instructions can be found in the official powerline [documentation][20]. Prepatched fonts can be found in the [powerline-fonts][3] repository. - -Finally, you can add the convenience variable `let g:airline_powerline_fonts = 1` to your vimrc which will automatically populate the `g:airline_symbols` dictionary with the powerline symbols. - -# FAQ - -Solutions to common problems can be found in the [Wiki][27]. - -# Screenshots - -A full list of screenshots for various themes can be found in the [Wiki][14]. - -# Bugs - -Tracking down bugs can take a very long time due to different configurations, versions, and operating systems. To ensure a timely response, please help me out by doing the following: - -* Reproduce it with this [minivimrc][7] repository to rule out any configuration conflicts. -* A link to your vimrc or a gist which shows how you configured the plugin(s). -* And so I can reproduce; your `:version` of vim, and the commit of vim-airline you're using. - -# Contributions - -Contributions and pull requests are welcome. Please take note of the following guidelines: - -* Adhere to the existing style as much as possible; notably, 2 space indents and long-form keywords. -* Keep the history clean! squash your branches before you submit a pull request. `pull --rebase` is your friend. -* Any changes to the core should be tested against Vim 7.2. -* If you submit a theme, please create a screenshot so it can be added to the [Wiki][14]. - -# License - -MIT License. Copyright (c) 2013-2014 Bailey Ling. - - -[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/bling/vim-airline/trend.png)](https://bitdeli.com/free "Bitdeli Badge") - -[1]: https://github.com/Lokaltog/vim-powerline -[2]: https://github.com/Lokaltog/powerline -[3]: https://github.com/Lokaltog/powerline-fonts -[4]: https://github.com/tpope/vim-fugitive -[5]: https://github.com/scrooloose/syntastic -[6]: https://github.com/bling/vim-bufferline -[7]: https://github.com/bling/minivimrc -[8]: http://en.wikipedia.org/wiki/Open/closed_principle -[9]: https://github.com/Shougo/unite.vim -[10]: https://github.com/kien/ctrlp.vim -[11]: https://github.com/tpope/vim-pathogen -[12]: https://github.com/Shougo/neobundle.vim -[13]: https://github.com/gmarik/vundle -[14]: https://github.com/bling/vim-airline/wiki/Screenshots -[15]: https://github.com/techlivezheng/vim-plugin-minibufexpl -[16]: https://github.com/sjl/gundo.vim -[17]: https://github.com/mbbill/undotree -[18]: https://github.com/scrooloose/nerdtree -[19]: https://github.com/majutsushi/tagbar -[20]: https://powerline.readthedocs.org/en/latest/fontpatching.html -[21]: https://bitbucket.org/ludovicchabant/vim-lawrencium -[22]: https://github.com/MarcWeber/vim-addon-manager -[23]: https://github.com/altercation/solarized -[24]: https://github.com/chriskempson/tomorrow-theme -[25]: https://github.com/tomasr/molokai -[26]: https://github.com/nanotech/jellybeans.vim -[27]: https://github.com/bling/vim-airline/wiki/FAQ -[28]: https://github.com/chrisbra/csv.vim -[29]: https://github.com/airblade/vim-gitgutter -[30]: https://github.com/mhinz/vim-signify -[31]: https://github.com/jmcantrell/vim-virtualenv -[32]: https://github.com/chriskempson/base16-vim -[33]: https://github.com/bling/vim-airline/wiki/Test-Plan -[34]: http://eclim.org -[35]: https://github.com/edkolev/tmuxline.vim -[36]: https://github.com/edkolev/promptline.vim diff --git a/.vim/bundle/vim-airline/Rakefile b/.vim/bundle/vim-airline/Rakefile deleted file mode 100644 index 741cfc2..0000000 --- a/.vim/bundle/vim-airline/Rakefile +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env rake - -task :default => [:test] - -task :ci => [:dump, :test] - -task :dump do - sh 'vim --version' -end - -task :test do - sh 'bundle exec vim-flavor test' -end - diff --git a/.vim/bundle/vim-airline/autoload/airline.vim b/.vim/bundle/vim-airline/autoload/airline.vim deleted file mode 100644 index de66fba..0000000 --- a/.vim/bundle/vim-airline/autoload/airline.vim +++ /dev/null @@ -1,170 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -let g:airline_statusline_funcrefs = get(g:, 'airline_statusline_funcrefs', []) - -let s:sections = ['a','b','c','gutter','x','y','z','warning'] -let s:inactive_funcrefs = [] - -function! airline#add_statusline_func(name) - call airline#add_statusline_funcref(function(a:name)) -endfunction - -function! airline#add_statusline_funcref(function) - if index(g:airline_statusline_funcrefs, a:function) >= 0 - echohl WarningMsg - echo 'The airline statusline funcref '.string(a:function).' has already been added.' - echohl NONE - return - endif - call add(g:airline_statusline_funcrefs, a:function) -endfunction - -function! airline#remove_statusline_func(name) - let i = index(g:airline_statusline_funcrefs, function(a:name)) - if i > -1 - call remove(g:airline_statusline_funcrefs, i) - endif -endfunction - -function! airline#add_inactive_statusline_func(name) - call add(s:inactive_funcrefs, function(a:name)) -endfunction - -function! airline#load_theme() - if exists('*airline#themes#{g:airline_theme}#refresh') - call airline#themes#{g:airline_theme}#refresh() - endif - - let palette = g:airline#themes#{g:airline_theme}#palette - call airline#themes#patch(palette) - - if exists('g:airline_theme_patch_func') - let Fn = function(g:airline_theme_patch_func) - call Fn(palette) - endif - - call airline#highlighter#load_theme() - call airline#extensions#load_theme() -endfunction - -function! airline#switch_theme(name) - try - let palette = g:airline#themes#{a:name}#palette "also lazy loads the theme - let g:airline_theme = a:name - catch - echohl WarningMsg | echo 'The specified theme cannot be found.' | echohl NONE - if exists('g:airline_theme') - return - else - let g:airline_theme = 'dark' - endif - endtry - - let w:airline_lastmode = '' - call airline#update_statusline() - call airline#load_theme() - - " this is required to prevent clobbering the startup info message, i don't know why... - call airline#check_mode(winnr()) -endfunction - -function! airline#switch_matching_theme() - if exists('g:colors_name') - try - let palette = g:airline#themes#{g:colors_name}#palette - call airline#switch_theme(g:colors_name) - return 1 - catch - for map in items(g:airline_theme_map) - if match(g:colors_name, map[0]) > -1 - call airline#switch_theme(map[1]) - return 1 - endif - endfor - endtry - endif - return 0 -endfunction - -function! airline#update_statusline() - for nr in filter(range(1, winnr('$')), 'v:val != winnr()') - call setwinvar(nr, 'airline_active', 0) - let context = { 'winnr': nr, 'active': 0, 'bufnr': winbufnr(nr) } - call s:invoke_funcrefs(context, s:inactive_funcrefs) - endfor - - unlet! w:airline_render_left - unlet! w:airline_render_right - for section in s:sections - unlet! w:airline_section_{section} - endfor - - let w:airline_active = 1 - let context = { 'winnr': winnr(), 'active': 1, 'bufnr': winbufnr(winnr()) } - call s:invoke_funcrefs(context, g:airline_statusline_funcrefs) -endfunction - -let s:contexts = {} -let s:core_funcrefs = [ - \ function('airline#extensions#apply'), - \ function('airline#extensions#default#apply') ] -function! s:invoke_funcrefs(context, funcrefs) - let builder = airline#builder#new(a:context) - let err = airline#util#exec_funcrefs(a:funcrefs + s:core_funcrefs, builder, a:context) - if err == 1 - let a:context.line = builder.build() - let s:contexts[a:context.winnr] = a:context - call setwinvar(a:context.winnr, '&statusline', '%!airline#statusline('.a:context.winnr.')') - endif -endfunction - -function! airline#statusline(winnr) - if has_key(s:contexts, a:winnr) - return '%{airline#check_mode('.a:winnr.')}'.s:contexts[a:winnr].line - endif - - " in rare circumstances this happens...see #276 - return '' -endfunction - -function! airline#check_mode(winnr) - let context = s:contexts[a:winnr] - - if get(w:, 'airline_active', 1) - let l:m = mode() - if l:m ==# "i" - let l:mode = ['insert'] - elseif l:m ==# "R" - let l:mode = ['replace'] - elseif l:m =~# '\v(v|V||s|S|)' - let l:mode = ['visual'] - else - let l:mode = ['normal'] - endif - let w:airline_current_mode = get(g:airline_mode_map, l:m, l:m) - else - let l:mode = ['inactive'] - let w:airline_current_mode = get(g:airline_mode_map, '__') - endif - - if g:airline_detect_modified - if &modified - call add(l:mode, 'modified') - endif - endif - - if g:airline_detect_paste && &paste - call add(l:mode, 'paste') - endif - - let mode_string = join(l:mode) - if get(w:, 'airline_lastmode', '') != mode_string - call airline#highlighter#highlight_modified_inactive(context.bufnr) - call airline#highlighter#highlight(l:mode) - let w:airline_lastmode = mode_string - endif - - return '' -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/builder.vim b/.vim/bundle/vim-airline/autoload/airline/builder.vim deleted file mode 100644 index d03af12..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/builder.vim +++ /dev/null @@ -1,74 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -let s:prototype = {} - -function! s:prototype.split(...) - let self._side = 0 - let self._line .= '%#'.self._curgroup.'#'.(a:0 ? a:1 : '%=') -endfunction - -function! s:prototype.add_section_spaced(group, contents) - call self.add_section(a:group, (g:airline_symbols.space).a:contents.(g:airline_symbols.space)) -endfunction - -function! s:prototype.add_section(group, contents) - if self._curgroup != '' - if self._curgroup == a:group - let self._line .= self._side ? self._context.left_alt_sep : self._context.right_alt_sep - else - call airline#highlighter#add_separator(self._curgroup, a:group, self._side) - let self._line .= '%#'.self._curgroup.'_to_'.a:group.'#' - let self._line .= self._side ? self._context.left_sep : self._context.right_sep - endif - endif - - if self._curgroup != a:group - let self._line .= '%#'.a:group.'#' - endif - - if self._context.active - let contents = [] - let content_parts = split(a:contents, '__accent') - for cpart in content_parts - let accent = matchstr(cpart, '_\zs[^#]*\ze') - call add(contents, cpart) - endfor - let line = join(contents, a:group) - let line = substitute(line, '__restore__', a:group, 'g') - else - let line = substitute(a:contents, '%#__accent[^#]*#', '', 'g') - let line = substitute(line, '%#__restore__#', '', 'g') - endif - - let self._line .= line - let self._curgroup = a:group -endfunction - -function! s:prototype.add_raw(text) - let self._line .= a:text -endfunction - -function! s:prototype.build() - if !self._context.active - let self._line = substitute(self._line, '%#.\{-}\ze#', '\0_inactive', 'g') - endif - return self._line -endfunction - -function! airline#builder#new(context) - let builder = copy(s:prototype) - let builder._context = a:context - let builder._side = 1 - let builder._curgroup = '' - let builder._line = '' - - call extend(builder._context, { - \ 'left_sep': g:airline_left_sep, - \ 'left_alt_sep': g:airline_left_alt_sep, - \ 'right_sep': g:airline_right_sep, - \ 'right_alt_sep': g:airline_right_alt_sep, - \ }, 'keep') - return builder -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/debug.vim b/.vim/bundle/vim-airline/autoload/airline/debug.vim deleted file mode 100644 index 28424a6..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/debug.vim +++ /dev/null @@ -1,50 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -function! airline#debug#profile1() - profile start airline-profile-switch.log - profile func * - profile file * - split - for i in range(1, 1000) - wincmd w - redrawstatus - endfor - profile pause - noautocmd qall! -endfunction - -function! airline#debug#profile2() - profile start airline-profile-cursor.log - profile func * - profile file * - edit blank - call setline(1, 'all your base are belong to us') - call setline(2, 'all your base are belong to us') - let positions = [[1,2], [2,2], [1,2], [1,1]] - for i in range(1, 1000) - for pos in positions - call cursor(pos[0], pos[1]) - redrawstatus - endfor - endfor - profile pause - noautocmd qall! -endfunction - -function! airline#debug#profile3() - profile start airline-profile-mode.log - profile func * - profile file * - - for i in range(1000) - startinsert - redrawstatus - stopinsert - redrawstatus - endfor - - profile pause - noautocmd qall! -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/deprecation.vim b/.vim/bundle/vim-airline/autoload/airline/deprecation.vim deleted file mode 100644 index cf7e787..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/deprecation.vim +++ /dev/null @@ -1,32 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -function! airline#deprecation#check() - if exists('g:airline_enable_fugitive') || exists('g:airline_fugitive_prefix') - echom 'The g:airline_enable_fugitive and g:airline_fugitive_prefix variables are obsolete. Please read the documentation about the branch extension.' - endif - - let tests = [ - \ [ 'g:airline_paste_symbol', 'g:airline_symbols.paste' ], - \ [ 'g:airline_readonly_symbol', 'g:airline_symbols.readonly' ], - \ [ 'g:airline_linecolumn_prefix', 'g:airline_symbols.linenr' ], - \ [ 'g:airline_branch_prefix', 'g:airline_symbols.branch' ], - \ [ 'g:airline_branch_empty_message', 'g:airline#extensions#branch#empty_message' ], - \ [ 'g:airline_detect_whitespace', 'g:airline#extensions#whitespace#enabled|show_message' ], - \ [ 'g:airline_enable_hunks', 'g:airline#extensions#hunks#enabled' ], - \ [ 'g:airline_enable_tagbar', 'g:airline#extensions#tagbar#enabled' ], - \ [ 'g:airline_enable_csv', 'g:airline#extensions#csv#enabled' ], - \ [ 'g:airline_enable_branch', 'g:airline#extensions#branch#enabled' ], - \ [ 'g:airline_enable_bufferline', 'g:airline#extensions#bufferline#enabled' ], - \ [ 'g:airline_enable_syntastic', 'g:airline#extensions#syntastic#enabled' ], - \ [ 'g:airline_enable_eclim', 'g:airline#extensions#eclim#enabled' ], - \ ] - for test in tests - if exists(test[0]) - let max = winwidth(0) - 16 - let msg = printf('The variable %s is deprecated and may not work in the future. It has been replaced with %s. Please read the documentation.', test[0], test[1]) - echom msg[:max].'...' - endif - endfor -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions.vim b/.vim/bundle/vim-airline/autoload/airline/extensions.vim deleted file mode 100644 index 461d1c3..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions.vim +++ /dev/null @@ -1,234 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -let s:ext = {} -let s:ext._theme_funcrefs = [] - -function! s:ext.add_statusline_func(name) dict - call airline#add_statusline_func(a:name) -endfunction -function! s:ext.add_statusline_funcref(function) dict - call airline#add_statusline_funcref(a:function) -endfunction -function! s:ext.add_inactive_statusline_func(name) dict - call airline#add_inactive_statusline_func(a:name) -endfunction -function! s:ext.add_theme_func(name) dict - call add(self._theme_funcrefs, function(a:name)) -endfunction - -let s:script_path = tolower(resolve(expand(':p:h'))) - -let s:filetype_overrides = { - \ 'nerdtree': [ 'NERD', '' ], - \ 'gundo': [ 'Gundo', '' ], - \ 'diff': [ 'diff', '' ], - \ 'vimfiler': [ 'vimfiler', '%{vimfiler#get_status_string()}' ], - \ 'minibufexpl': [ 'MiniBufExplorer', '' ], - \ 'startify': [ 'startify', '' ], - \ } - -let s:filetype_regex_overrides = {} - -function! s:check_defined_section(name) - if !exists('w:airline_section_{a:name}') - let w:airline_section_{a:name} = g:airline_section_{a:name} - endif -endfunction - -function! airline#extensions#append_to_section(name, value) - call check_defined_section(a:name) - let w:airline_section_{a:name} .= a:value -endfunction - -function! airline#extensions#prepend_to_section(name, value) - call check_defined_section(a:name) - let w:airline_section_{a:name} = a:value . w:airline_section_{a:name} -endfunction - -function! airline#extensions#apply_left_override(section1, section2) - let w:airline_section_a = a:section1 - let w:airline_section_b = a:section2 - let w:airline_section_c = airline#section#create(['readonly']) - let w:airline_render_left = 1 - let w:airline_render_right = 0 -endfunction - -let s:active_winnr = -1 -function! airline#extensions#apply(...) - let s:active_winnr = winnr() - - if s:is_excluded_window() - return -1 - endif - - if &buftype == 'help' - call airline#extensions#apply_left_override('Help', '%f') - let w:airline_section_x = '' - let w:airline_section_y = '' - let w:airline_render_right = 1 - endif - - if &previewwindow - let w:airline_section_a = 'Preview' - let w:airline_section_b = '' - let w:airline_section_c = bufname(winbufnr(winnr())) - endif - - if has_key(s:filetype_overrides, &ft) - let args = s:filetype_overrides[&ft] - call airline#extensions#apply_left_override(args[0], args[1]) - endif - - for item in items(s:filetype_regex_overrides) - if match(&ft, item[0]) >= 0 - call airline#extensions#apply_left_override(item[1][0], item[1][1]) - endif - endfor -endfunction - -function! s:is_excluded_window() - for matchft in g:airline_exclude_filetypes - if matchft ==# &ft - return 1 - endif - endfor - - for matchw in g:airline_exclude_filenames - if matchstr(expand('%'), matchw) ==# matchw - return 1 - endif - endfor - - if g:airline_exclude_preview && &previewwindow - return 1 - endif - - return 0 -endfunction - -function! airline#extensions#load_theme() - call airline#util#exec_funcrefs(s:ext._theme_funcrefs, g:airline#themes#{g:airline_theme}#palette) -endfunction - -function! s:sync_active_winnr() - if exists('#airline') && winnr() != s:active_winnr - call airline#update_statusline() - endif -endfunction - -function! airline#extensions#load() - " non-trivial number of external plugins use eventignore=all, so we need to account for that - autocmd CursorMoved * call sync_active_winnr() - - call airline#extensions#quickfix#init(s:ext) - - if get(g:, 'loaded_unite', 0) - call airline#extensions#unite#init(s:ext) - endif - - if exists(':NetrwSettings') - call airline#extensions#netrw#init(s:ext) - endif - - if get(g:, 'loaded_vimfiler', 0) - let g:vimfiler_force_overwrite_statusline = 0 - endif - - if get(g:, 'loaded_ctrlp', 0) - call airline#extensions#ctrlp#init(s:ext) - endif - - if get(g:, 'command_t_loaded', 0) - call airline#extensions#commandt#init(s:ext) - endif - - if exists(':UndotreeToggle') - call airline#extensions#undotree#init(s:ext) - endif - - if (get(g:, 'airline#extensions#hunks#enabled', 1) && get(g:, 'airline_enable_hunks', 1)) - \ && (exists('g:loaded_signify') || exists('g:loaded_gitgutter')) - call airline#extensions#hunks#init(s:ext) - endif - - if (get(g:, 'airline#extensions#tagbar#enabled', 1) && get(g:, 'airline_enable_tagbar', 1)) - \ && exists(':TagbarToggle') - call airline#extensions#tagbar#init(s:ext) - endif - - if (get(g:, 'airline#extensions#csv#enabled', 1) && get(g:, 'airline_enable_csv', 1)) - \ && (get(g:, 'loaded_csv', 0) || exists(':Table')) - call airline#extensions#csv#init(s:ext) - endif - - if exists(':VimShell') - let s:filetype_overrides['vimshell'] = ['vimshell','%{vimshell#get_status_string()}'] - let s:filetype_regex_overrides['^int-'] = ['vimshell','%{substitute(&ft, "int-", "", "")}'] - endif - - if (get(g:, 'airline#extensions#branch#enabled', 1) && get(g:, 'airline_enable_branch', 1)) - \ && (exists('*fugitive#head') || exists('*lawrencium#statusline') || - \ (get(g:, 'airline#extensions#branch#use_vcscommand', 0) && exists('*VCSCommandGetStatusLine'))) - call airline#extensions#branch#init(s:ext) - endif - - if (get(g:, 'airline#extensions#bufferline#enabled', 1) && get(g:, 'airline_enable_bufferline', 1)) - \ && exists('*bufferline#get_status_string') - call airline#extensions#bufferline#init(s:ext) - endif - - if get(g:, 'virtualenv_loaded', 0) && get(g:, 'airline#extensions#virtualenv#enabled', 1) - call airline#extensions#virtualenv#init(s:ext) - endif - - if (get(g:, 'airline#extensions#eclim#enabled', 1) && exists(':ProjectCreate')) - call airline#extensions#eclim#init(s:ext) - endif - - if (get(g:, 'airline#extensions#syntastic#enabled', 1) && get(g:, 'airline_enable_syntastic', 1)) - \ && exists(':SyntasticCheck') - call airline#extensions#syntastic#init(s:ext) - endif - - if (get(g:, 'airline#extensions#whitespace#enabled', 1) && get(g:, 'airline_detect_whitespace', 1)) - call airline#extensions#whitespace#init(s:ext) - endif - - if get(g:, 'airline#extensions#tabline#enabled', 0) - call airline#extensions#tabline#init(s:ext) - endif - - if get(g:, 'airline#extensions#tmuxline#enabled', 1) && exists(':Tmuxline') - call airline#extensions#tmuxline#init(s:ext) - endif - - if get(g:, 'airline#extensions#promptline#enabled', 1) && exists(':PromptlineSnapshot') && len(get(g:, 'airline#extensions#promptline#snapshot_file', '')) - call airline#extensions#promptline#init(s:ext) - endif - - if get(g:, 'airline#extensions#nrrwrgn#enabled', 1) && exists(':NR') == 2 - call airline#extensions#nrrwrgn#init(s:ext) - endif - - if !get(g:, 'airline#extensions#disable_rtp_load', 0) - " load all other extensions, which are not part of the default distribution. - " (autoload/airline/extensions/*.vim outside of our s:script_path). - for file in split(globpath(&rtp, "autoload/airline/extensions/*.vim"), "\n") - " we have to check both resolved and unresolved paths, since it's possible - " that they might not get resolved properly (see #187) - if stridx(tolower(resolve(fnamemodify(file, ':p'))), s:script_path) < 0 - \ && stridx(tolower(fnamemodify(file, ':p')), s:script_path) < 0 - let name = fnamemodify(file, ':t:r') - if !get(g:, 'airline#extensions#'.name.'#enabled', 1) - continue - endif - try - call airline#extensions#{name}#init(s:ext) - catch - endtry - endif - endfor - endif -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/branch.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/branch.vim deleted file mode 100644 index ceaa44b..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/branch.vim +++ /dev/null @@ -1,108 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -let s:has_fugitive = exists('*fugitive#head') -let s:has_lawrencium = exists('*lawrencium#statusline') -let s:has_vcscommand = get(g:, 'airline#extensions#branch#use_vcscommand', 0) && exists('*VCSCommandGetStatusLine') - -if !s:has_fugitive && !s:has_lawrencium && !s:has_vcscommand - finish -endif - -let s:git_dirs = {} -function! s:get_git_branch(path) - if has_key(s:git_dirs, a:path) - return s:git_dirs[a:path] - endif - - let dir = fugitive#extract_git_dir(a:path) - if empty(dir) - let name = '' - else - try - let line = join(readfile(dir . '/HEAD')) - let name = strpart(line, 16) - catch - let name = '' - endtry - endif - - let s:git_dirs[a:path] = name - return name -endfunction - -function! airline#extensions#branch#head() - if exists('b:airline_head') && !empty(b:airline_head) - return b:airline_head - endif - - let b:airline_head = '' - - if s:has_fugitive && !exists('b:mercurial_dir') - let b:airline_head = fugitive#head() - - if empty(b:airline_head) && !exists('b:git_dir') - let b:airline_head = s:get_git_branch(expand("%:p:h")) - endif - endif - - if empty(b:airline_head) - if s:has_lawrencium - let b:airline_head = lawrencium#statusline() - endif - endif - - if empty(b:airline_head) - if s:has_vcscommand - call VCSCommandEnableBufferSetup() - if exists('b:VCSCommandBufferInfo') - let b:airline_head = get(b:VCSCommandBufferInfo, 0, '') - endif - endif - endif - - if empty(b:airline_head) || !s:check_in_path() - let b:airline_head = '' - endif - - return b:airline_head -endfunction - -function! airline#extensions#branch#get_head() - let head = airline#extensions#branch#head() - let empty_message = get(g:, 'airline#extensions#branch#empty_message', - \ get(g:, 'airline_branch_empty_message', '')) - let symbol = get(g:, 'airline#extensions#branch#symbol', g:airline_symbols.branch) - return empty(head) - \ ? empty_message - \ : printf('%s%s', empty(symbol) ? '' : symbol.(g:airline_symbols.space), head) -endfunction - -function! s:check_in_path() - if !exists('b:airline_branch_path') - let root = get(b:, 'git_dir', get(b:, 'mercurial_dir', '')) - let bufferpath = resolve(fnamemodify(expand('%'), ':p')) - - if !filereadable(root) "not a file - " if .git is a directory, it's the old submodule format - if match(root, '\.git$') >= 0 - let root = expand(fnamemodify(root, ':h')) - else - " else it's the newer format, and we need to guesstimate - let pattern = '\.git\(\\\|\/\)modules\(\\\|\/\)' - if match(root, pattern) >= 0 - let root = substitute(root, pattern, '', '') - endif - endif - - let b:airline_file_in_root = stridx(bufferpath, root) > -1 - endif - return b:airline_file_in_root -endfunction - -function! airline#extensions#branch#init(ext) - call airline#parts#define_function('branch', 'airline#extensions#branch#get_head') - - autocmd BufReadPost * unlet! b:airline_file_in_root - autocmd CursorHold,ShellCmdPost,CmdwinLeave * unlet! b:airline_head -endfunction diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/bufferline.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/bufferline.vim deleted file mode 100644 index 6dc97fe..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/bufferline.vim +++ /dev/null @@ -1,23 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !exists('*bufferline#get_status_string') - finish -endif - -let s:overwrite = get(g:, 'airline#extensions#bufferline#overwrite_variables', 1) - -function! airline#extensions#bufferline#init(ext) - if s:overwrite - highlight bufferline_selected gui=bold cterm=bold term=bold - highlight link bufferline_selected_inactive airline_c_inactive - let g:bufferline_inactive_highlight = 'airline_c' - let g:bufferline_active_highlight = 'bufferline_selected' - let g:bufferline_active_buffer_left = '' - let g:bufferline_active_buffer_right = '' - let g:bufferline_separator = g:airline_symbols.space - endif - - call airline#parts#define_raw('file', '%{bufferline#refresh_status()}'.bufferline#get_status_string()) -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/commandt.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/commandt.vim deleted file mode 100644 index e549f27..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/commandt.vim +++ /dev/null @@ -1,16 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !get(g:, 'command_t_loaded', 0) - finish -endif - -function! airline#extensions#commandt#apply(...) - if bufname('%') ==# 'GoToFile' - call airline#extensions#apply_left_override('CommandT', '') - endif -endfunction - -function! airline#extensions#commandt#init(ext) - call a:ext.add_statusline_func('airline#extensions#commandt#apply') -endfunction diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/csv.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/csv.vim deleted file mode 100644 index 2c296ab..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/csv.vim +++ /dev/null @@ -1,31 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !get(g:, 'loaded_csv', 0) && !exists(':Table') - finish -endif - -let s:column_display = get(g:, 'airline#extensions#csv#column_display', 'Number') - -function! airline#extensions#csv#get_column() - if exists('*CSV_WCol') - if s:column_display ==# 'Name' - return '['.CSV_WCol('Name').CSV_WCol().']' - else - return '['.CSV_WCol().']' - endif - endif - return '' -endfunction - -function! airline#extensions#csv#apply(...) - if &ft ==# "csv" - call airline#extensions#prepend_to_section('gutter', - \ g:airline_left_alt_sep.' %{airline#extensions#csv#get_column()}') - endif -endfunction - -function! airline#extensions#csv#init(ext) - call a:ext.add_statusline_func('airline#extensions#csv#apply') -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/ctrlp.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/ctrlp.vim deleted file mode 100644 index 11a8922..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/ctrlp.vim +++ /dev/null @@ -1,77 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !get(g:, 'loaded_ctrlp', 0) - finish -endif - -let s:color_template = get(g:, 'airline#extensions#ctrlp#color_template', 'insert') - -function! airline#extensions#ctrlp#generate_color_map(dark, light, white) - return { - \ 'CtrlPdark' : a:dark, - \ 'CtrlPlight' : a:light, - \ 'CtrlPwhite' : a:white, - \ 'CtrlParrow1' : [ a:light[1] , a:white[1] , a:light[3] , a:white[3] , '' ] , - \ 'CtrlParrow2' : [ a:white[1] , a:light[1] , a:white[3] , a:light[3] , '' ] , - \ 'CtrlParrow3' : [ a:light[1] , a:dark[1] , a:light[3] , a:dark[3] , '' ] , - \ } -endfunction - -function! airline#extensions#ctrlp#load_theme(palette) - if exists('a:palette.ctrlp') - let theme = a:palette.ctrlp - else - let s:color_template = has_key(a:palette, s:color_template) ? s:color_template : 'insert' - let theme = airline#extensions#ctrlp#generate_color_map( - \ a:palette[s:color_template]['airline_c'], - \ a:palette[s:color_template]['airline_b'], - \ a:palette[s:color_template]['airline_a']) - endif - for key in keys(theme) - call airline#highlighter#exec(key, theme[key]) - endfor -endfunction - -" Arguments: focus, byfname, regexp, prv, item, nxt, marked -function! airline#extensions#ctrlp#ctrlp_airline(...) - let b = airline#builder#new({'active': 1}) - if a:3 - call b.add_section_spaced('CtrlPlight', 'regex') - endif - if get(g:, 'airline#extensions#ctrlp#show_adjacent_modes', 1) - call b.add_section_spaced('CtrlPlight', a:4) - call b.add_section_spaced('CtrlPwhite', a:5) - call b.add_section_spaced('CtrlPlight', a:6) - else - call b.add_section_spaced('CtrlPwhite', a:5) - endif - call b.add_section_spaced('CtrlPdark', a:7) - call b.split() - call b.add_raw('%#CtrlPdark#'.a:1.(g:airline_symbols.space)) - call b.add_section_spaced('CtrlPdark', a:2) - call b.add_section_spaced('CtrlPlight', '%{getcwd()}') - return b.build() -endfunction - -" Argument: len -function! airline#extensions#ctrlp#ctrlp_airline_status(...) - let len = '%#CtrlPdark# '.a:1 - let dir = '%=%<%#CtrlParrow3#'.g:airline_right_sep.'%#CtrlPlight# '.getcwd().' %*' - return len.dir -endfunction - -function! airline#extensions#ctrlp#apply(...) - " disable statusline overwrite if ctrlp already did it - return match(&statusline, 'CtrlPwhite') >= 0 ? -1 : 0 -endfunction - -function! airline#extensions#ctrlp#init(ext) - let g:ctrlp_status_func = { - \ 'main': 'airline#extensions#ctrlp#ctrlp_airline', - \ 'prog': 'airline#extensions#ctrlp#ctrlp_airline_status', - \ } - call a:ext.add_statusline_func('airline#extensions#ctrlp#apply') - call a:ext.add_theme_func('airline#extensions#ctrlp#load_theme') -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim deleted file mode 100644 index d01349d..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim +++ /dev/null @@ -1,77 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -let s:section_truncate_width = get(g:, 'airline#extensions#default#section_truncate_width', { - \ 'b': 79, - \ 'x': 60, - \ 'y': 88, - \ 'z': 45, - \ }) -let s:layout = get(g:, 'airline#extensions#default#layout', [ - \ [ 'a', 'b', 'c' ], - \ [ 'x', 'y', 'z', 'warning' ] - \ ]) - -function! s:get_section(winnr, key, ...) - if has_key(s:section_truncate_width, a:key) - if winwidth(a:winnr) < s:section_truncate_width[a:key] - return '' - endif - endif - let spc = g:airline_symbols.space - let text = airline#util#getwinvar(a:winnr, 'airline_section_'.a:key, g:airline_section_{a:key}) - let [prefix, suffix] = [get(a:000, 0, '%('.spc), get(a:000, 1, spc.'%)')] - return empty(text) ? '' : prefix.text.suffix -endfunction - -function! s:build_sections(builder, context, keys) - for key in a:keys - if key == 'warning' && !a:context.active - continue - endif - call s:add_section(a:builder, a:context, key) - endfor -endfunction - -if v:version >= 704 || (v:version >= 703 && has('patch81')) - function s:add_section(builder, context, key) - " i have no idea why the warning section needs special treatment, but it's - " needed to prevent separators from showing up - if a:key == 'warning' - call a:builder.add_raw('%(') - endif - call a:builder.add_section('airline_'.a:key, s:get_section(a:context.winnr, a:key)) - if a:key == 'warning' - call a:builder.add_raw('%)') - endif - endfunction -else - " older version don't like the use of %(%) - function s:add_section(builder, context, key) - if a:key == 'warning' - call a:builder.add_raw('%#airline_warning#'.s:get_section(a:context.winnr, a:key)) - else - call a:builder.add_section('airline_'.a:key, s:get_section(a:context.winnr, a:key)) - endif - endfunction -endif - -function! airline#extensions#default#apply(builder, context) - let winnr = a:context.winnr - let active = a:context.active - - if airline#util#getwinvar(winnr, 'airline_render_left', active || (!active && !g:airline_inactive_collapse)) - call build_sections(a:builder, a:context, s:layout[0]) - else - call a:builder.add_section('airline_c'.(a:context.bufnr), ' %f%m ') - endif - - call a:builder.split(s:get_section(winnr, 'gutter', '', '')) - - if airline#util#getwinvar(winnr, 'airline_render_right', 1) - call build_sections(a:builder, a:context, s:layout[1]) - endif - - return 1 -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/eclim.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/eclim.vim deleted file mode 100644 index 18cbae5..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/eclim.vim +++ /dev/null @@ -1,41 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !exists(':ProjectCreate') - finish -endif - -function! airline#extensions#eclim#creat_line(...) - if &filetype == "tree" - let builder = a:1 - call builder.add_section('airline_a', ' Project ') - call builder.add_section('airline_b', ' %f ') - call builder.add_section('airline_c', '') - return 1 - endif -endfunction - -function! airline#extensions#eclim#get_warnings() - let eclimList = eclim#display#signs#GetExisting() - - if !empty(eclimList) - " Remove any non-eclim signs (see eclim#display#signs#Update) - call filter(eclimList, 'v:val.name =~ "^\\(qf_\\)\\?\\(error\\|info\\|warning\\)$"') - - if !empty(eclimList) - let errorsLine = eclimList[0]['line'] - let errorsNumber = len(eclimList) - let errors = "[Eclim: line:".string(errorsLine)." (".string(errorsNumber).")]" - if !exists(':SyntasticCheck') || SyntasticStatuslineFlag() == '' - return errors.(g:airline_symbols.space) - endif - endif - endif - return '' -endfunction - -function! airline#extensions#eclim#init(ext) - call airline#parts#define_function('eclim', 'airline#extensions#eclim#get_warnings') - call a:ext.add_statusline_func('airline#extensions#eclim#creat_line') -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/example.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/example.vim deleted file mode 100644 index 4a1932d..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/example.vim +++ /dev/null @@ -1,54 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -" we don't actually want this loaded :P -finish - -" Due to some potential rendering issues, the use of the `space` variable is -" recommended. -let s:spc = g:airline_symbols.space - -" Extension specific variables can be defined the usual fashion. -if !exists('g:airline#extensions#example#number_of_cats') - let g:airline#extensions#example#number_of_cats = 42 -endif - -" First we define an init function that will be invoked from extensions.vim -function! airline#extensions#example#init(ext) - - " Here we define a new part for the plugin. This allows users to place this - " extension in arbitrary locations. - call airline#parts#define_raw('cats', '%{airline#extensions#example#get_cats()}') - - " Next up we add a funcref so that we can run some code prior to the - " statusline getting modifed. - call a:ext.add_statusline_func('airline#extensions#example#apply') - - " You can also add a funcref for inactive statuslines. - " call a:ext.add_inactive_statusline_func('airline#extensions#example#unapply') -endfunction - -" This function will be invoked just prior to the statusline getting modified. -function! airline#extensions#example#apply(...) - " First we check for the filetype. - if &filetype == "nyancat" - - " Let's say we want to append to section_c, first we check if there's - " already a window-local override, and if not, create it off of the global - " section_c. - let w:airline_section_c = get(w:, 'airline_section_c', g:airline_section_c) - - " Then we just append this extenion to it, optionally using separators. - let w:airline_section_c .= s:spc.g:airline_left_alt_sep.s:spc.'%{airline#extensions#example#get_cats()}' - endif -endfunction - -" Finally, this function will be invoked from the statusline. -function! airline#extensions#example#get_cats() - let cats = '' - for i in range(1, g:airline#extensions#example#number_of_cats) - let cats .= ' (,,,)=(^.^)=(,,,) ' - endfor - return cats -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim deleted file mode 100644 index 6827f5d..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim +++ /dev/null @@ -1,67 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !get(g:, 'loaded_signify', 0) && !get(g:, 'loaded_gitgutter', 0) - finish -endif - -let s:non_zero_only = get(g:, 'airline#extensions#hunks#non_zero_only', 0) -let s:hunk_symbols = get(g:, 'airline#extensions#hunks#hunk_symbols', ['+', '~', '-']) - -function! s:get_hunks_signify() - let hunks = sy#repo#get_stats() - if hunks[0] >= 0 - return hunks - endif - return [] -endfunction - -function! s:is_branch_empty() - return exists('*airline#extensions#branch#head') && empty(airline#extensions#branch#head()) -endfunction - -function! s:get_hunks_gitgutter() - if !get(g:, 'gitgutter_enabled', 0) || s:is_branch_empty() - return '' - endif - return GitGutterGetHunkSummary() -endfunction - -function! s:get_hunks_empty() - return '' -endfunction - -let s:source_func = '' -function! s:get_hunks() - if empty(s:source_func) - if get(g:, 'loaded_signify', 0) - let s:source_func = 's:get_hunks_signify' - elseif exists('*GitGutterGetHunkSummary') - let s:source_func = 's:get_hunks_gitgutter' - else - let s:source_func = 's:get_hunks_empty' - endif - endif - return {s:source_func}() -endfunction - -function! airline#extensions#hunks#get_hunks() - if !get(w:, 'airline_active', 0) - return '' - endif - let hunks = s:get_hunks() - let string = '' - if !empty(hunks) - for i in [0, 1, 2] - if s:non_zero_only == 0 || hunks[i] > 0 - let string .= printf('%s%s ', s:hunk_symbols[i], hunks[i]) - endif - endfor - endif - return string -endfunction - -function! airline#extensions#hunks#init(ext) - call airline#parts#define_function('hunks', 'airline#extensions#hunks#get_hunks') -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim deleted file mode 100644 index debb088..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim +++ /dev/null @@ -1,32 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !exists(':NetrwSettings') - finish -endif - -function! airline#extensions#netrw#apply(...) - if &ft == 'netrw' - let spc = g:airline_symbols.space - - call a:1.add_section('airline_a', spc.'netrw'.spc) - if exists('*airline#extensions#branch#get_head') - call a:1.add_section('airline_b', spc.'%{airline#extensions#branch#get_head()}'.spc) - endif - call a:1.add_section('airline_c', spc.'%f'.spc) - call a:1.split() - call a:1.add_section('airline_y', spc.'%{airline#extensions#netrw#sortstring()}'.spc) - return 1 - endif -endfunction - -function! airline#extensions#netrw#init(ext) - let g:netrw_force_overwrite_statusline = 0 - call a:ext.add_statusline_func('airline#extensions#netrw#apply') -endfunction - - -function! airline#extensions#netrw#sortstring() - let order = (g:netrw_sort_direction =~ 'n') ? '+' : '-' - return g:netrw_sort_by . (g:airline_symbols.space) . '[' . order . ']' -endfunction diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/nrrwrgn.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/nrrwrgn.vim deleted file mode 100644 index 2281598..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/nrrwrgn.vim +++ /dev/null @@ -1,24 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !get(g:, 'loaded_nrrw_rgn', 0) - finish -endif - -function! airline#extensions#nrrwrgn#apply(...) - if exists(":WidenRegion") == 2 - let spc = g:airline_symbols.space - call a:1.add_section('airline_a', printf('%s[Narrowed%s#%d]', spc, spc, b:nrrw_instn)) - if exists('*airline#extensions#branch#get_head') - call a:1.add_section('airline_b', spc.'%{airline#extensions#branch#get_head()}'.spc) - endif - let bufname=(get(b:, 'orig_buf', 0) ? bufname(b:orig_buf) : substitute(bufname('%'), '^Nrrwrgn_\zs.*\ze_\d\+$', submatch(0), '')) - call a:1.add_section('airline_c', spc.bufname.spc) - call a:1.split() - return 1 - endif -endfunction - -function! airline#extensions#nrrwrgn#init(ext) - call a:ext.add_statusline_func('airline#extensions#nrrwrgn#apply') -endfunction diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/promptline.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/promptline.vim deleted file mode 100644 index 50b9708..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/promptline.vim +++ /dev/null @@ -1,33 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !exists(':PromptlineSnapshot') - finish -endif - -if !exists('airline#extensions#promptline#snapshot_file') || !len('airline#extensions#promptline#snapshot_file') - finish -endif - -let s:prompt_snapshot_file = get(g:, 'airline#extensions#promptline#snapshot_file', '') -let s:color_template = get(g:, 'airline#extensions#promptline#color_template', 'normal') - -function! airline#extensions#promptline#init(ext) - call a:ext.add_theme_func('airline#extensions#promptline#set_prompt_colors') -endfunction - -function! airline#extensions#promptline#set_prompt_colors(palette) - let color_template = has_key(a:palette, s:color_template) ? s:color_template : 'normal' - let mode_palette = a:palette[color_template] - - if !has_key(g:, 'promptline_symbols') - let g:promptline_symbols = { - \ 'left' : g:airline_left_sep, - \ 'right' : g:airline_right_sep, - \ 'left_alt' : g:airline_left_alt_sep, - \ 'right_alt' : g:airline_right_alt_sep} - endif - - let promptline_theme = promptline#api#create_theme_from_airline(mode_palette) - call promptline#api#create_snapshot_with_theme(s:prompt_snapshot_file, promptline_theme) -endfunction diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim deleted file mode 100644 index 8efc527..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim +++ /dev/null @@ -1,37 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -let g:airline#extensions#quickfix#quickfix_text = 'Quickfix' -let g:airline#extensions#quickfix#location_text = 'Location' - -function! airline#extensions#quickfix#apply(...) - if &buftype == 'quickfix' - let w:airline_section_a = s:get_text() - let w:airline_section_b = '%{get(w:, "quickfix_title", "")}' - let w:airline_section_c = '' - let w:airline_section_x = '' - endif -endfunction - -function! airline#extensions#quickfix#init(ext) - call a:ext.add_statusline_func('airline#extensions#quickfix#apply') -endfunction - -function! s:get_text() - redir => buffers - silent ls - redir END - - let nr = bufnr('%') - for buf in split(buffers, '\n') - if match(buf, '\v^\s*'.nr) > -1 - if match(buf, '\[Quickfix List\]') > -1 - return g:airline#extensions#quickfix#quickfix_text - else - return g:airline#extensions#quickfix#location_text - endif - endif - endfor - return '' -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim deleted file mode 100644 index f7179af..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim +++ /dev/null @@ -1,19 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !exists(':SyntasticCheck') - finish -endif - -function! airline#extensions#syntastic#get_warnings() - let errors = SyntasticStatuslineFlag() - if strlen(errors) > 0 - return errors.(g:airline_symbols.space) - endif - return '' -endfunction - -function! airline#extensions#syntastic#init(ext) - call airline#parts#define_function('syntastic', 'airline#extensions#syntastic#get_warnings') -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim deleted file mode 100644 index ec75db7..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim +++ /dev/null @@ -1,278 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -let s:formatter = get(g:, 'airline#extensions#tabline#formatter', 'default') -let s:excludes = get(g:, 'airline#extensions#tabline#excludes', []) -let s:tab_nr_type = get(g:, 'airline#extensions#tabline#tab_nr_type', 0) -let s:show_buffers = get(g:, 'airline#extensions#tabline#show_buffers', 1) -let s:show_tab_nr = get(g:, 'airline#extensions#tabline#show_tab_nr', 1) -let s:show_tab_type = get(g:, 'airline#extensions#tabline#show_tab_type', 1) -let s:close_symbol = get(g:, 'airline#extensions#tabline#close_symbol', 'X') - -let s:builder_context = { - \ 'active' : 1, - \ 'right_sep' : get(g:, 'airline#extensions#tabline#right_sep' , g:airline_right_sep), - \ 'right_alt_sep' : get(g:, 'airline#extensions#tabline#right_alt_sep', g:airline_right_alt_sep), - \ } -if get(g:, 'airline_powerline_fonts', 0) - let s:builder_context.left_sep = get(g:, 'airline#extensions#tabline#left_sep' , "\ue0b0") - let s:builder_context.left_alt_sep = get(g:, 'airline#extensions#tabline#left_alt_sep' , "\ue0b1") -else - let s:builder_context.left_sep = get(g:, 'airline#extensions#tabline#left_sep' , ' ') - let s:builder_context.left_alt_sep = get(g:, 'airline#extensions#tabline#left_alt_sep' , '|') -endif - -let s:buf_min_count = get(g:, 'airline#extensions#tabline#buffer_min_count', 0) -let s:tab_min_count = get(g:, 'airline#extensions#tabline#tab_min_count', 0) -let s:spc = g:airline_symbols.space - -function! airline#extensions#tabline#init(ext) - if has('gui_running') - set guioptions-=e - endif - - autocmd User AirlineToggledOn call s:toggle_on() - autocmd User AirlineToggledOff call s:toggle_off() - autocmd BufDelete * let s:current_bufnr = -1 - - call s:toggle_on() - call a:ext.add_theme_func('airline#extensions#tabline#load_theme') -endfunction - -function! s:toggle_off() - if exists('s:original_tabline') - let &tabline = s:original_tabline - let &showtabline = s:original_showtabline - endif -endfunction - -function! s:toggle_on() - let [ s:original_tabline, s:original_showtabline ] = [ &tabline, &showtabline ] - - set tabline=%!airline#extensions#tabline#get() - if s:buf_min_count <= 0 && s:tab_min_count <= 1 - set showtabline=2 - else - augroup airline_tabline - autocmd! - if s:show_buffers == 1 - autocmd CursorMoved * call on_cursormove(s:buf_min_count, len(s:get_buffer_list())) - else - autocmd TabEnter * call on_cursormove(s:tab_min_count, tabpagenr('$')) - endif - augroup END - endif -endfunction - -function! airline#extensions#tabline#load_theme(palette) - let colors = get(a:palette, 'tabline', {}) - let l:tab = get(colors, 'airline_tab', a:palette.normal.airline_b) - let l:tabsel = get(colors, 'airline_tabsel', a:palette.normal.airline_a) - let l:tabtype = get(colors, 'airline_tabtype', a:palette.visual.airline_a) - let l:tabfill = get(colors, 'airline_tabfill', a:palette.normal.airline_c) - let l:tabmod = get(colors, 'airline_tabmod', a:palette.insert.airline_a) - let l:tabhid = get(colors, 'airline_tabhid', a:palette.normal.airline_c) - call airline#highlighter#exec('airline_tab', l:tab) - call airline#highlighter#exec('airline_tabsel', l:tabsel) - call airline#highlighter#exec('airline_tabtype', l:tabtype) - call airline#highlighter#exec('airline_tabfill', l:tabfill) - call airline#highlighter#exec('airline_tabmod', l:tabmod) - call airline#highlighter#exec('airline_tabhid', l:tabhid) -endfunction - -function! s:on_cursormove(min_count, total_count) - if a:total_count >= a:min_count - if &showtabline != 2 - set showtabline=2 - endif - else - if &showtabline != 0 - set showtabline=0 - endif - endif -endfunction - -function! airline#extensions#tabline#get() - if s:show_buffers && tabpagenr('$') == 1 - return s:get_buffers() - else - return s:get_tabs() - endif -endfunction - -function! airline#extensions#tabline#title(n) - let buflist = tabpagebuflist(a:n) - let winnr = tabpagewinnr(a:n) - return airline#extensions#tabline#get_buffer_name(buflist[winnr - 1]) -endfunction - -function! airline#extensions#tabline#get_buffer_name(nr) - return airline#extensions#tabline#{s:formatter}#format(a:nr, get(s:, 'current_buffer_list', s:get_buffer_list())) -endfunction - -function! s:get_buffer_list() - let buffers = [] - let cur = bufnr('%') - for nr in range(1, bufnr('$')) - if buflisted(nr) && bufexists(nr) - for ex in s:excludes - if match(bufname(nr), ex) - continue - endif - endfor - if getbufvar(nr, 'current_syntax') == 'qf' - continue - endif - call add(buffers, nr) - endif - endfor - - let s:current_buffer_list = buffers - return buffers -endfunction - -function! s:get_visible_buffers() - let buffers = s:get_buffer_list() - let cur = bufnr('%') - - let total_width = 0 - let max_width = 0 - - for nr in buffers - let width = len(airline#extensions#tabline#get_buffer_name(nr)) + 4 - let total_width += width - let max_width = max([max_width, width]) - endfor - - " only show current and surrounding buffers if there are too many buffers - let position = index(buffers, cur) - let vimwidth = &columns - if total_width > vimwidth && position > -1 - let buf_count = len(buffers) - - " determine how many buffers to show based on the longest buffer width, - " use one on the right side and put the rest on the left - let buf_max = vimwidth / max_width - let buf_right = 1 - let buf_left = max([0, buf_max - buf_right]) - - let start = max([0, position - buf_left]) - let end = min([buf_count, position + buf_right]) - - " fill up available space on the right - if position < buf_left - let end += (buf_left - position) - endif - - " fill up available space on the left - if end > buf_count - 1 - buf_right - let start -= max([0, buf_right - (buf_count - 1 - position)]) - endif - - let buffers = eval('buffers[' . start . ':' . end . ']') - - if start > 0 - call insert(buffers, -1, 0) - endif - - if end < buf_count - 1 - call add(buffers, -1) - endif - endif - - return buffers -endfunction - -let s:current_bufnr = -1 -let s:current_tabnr = -1 -let s:current_tabline = '' -let s:current_modified = 0 -function! s:get_buffers() - let cur = bufnr('%') - if cur == s:current_bufnr - if !g:airline_detect_modified || getbufvar(cur, '&modified') == s:current_modified - return s:current_tabline - endif - endif - - let b = airline#builder#new(s:builder_context) - let tab_bufs = tabpagebuflist(tabpagenr()) - for nr in s:get_visible_buffers() - if nr < 0 - call b.add_raw('%#airline_tabhid#...') - continue - endif - if cur == nr - if g:airline_detect_modified && getbufvar(nr, '&modified') - let group = 'airline_tabmod' - else - let group = 'airline_tabsel' - endif - let s:current_modified = (group == 'airline_tabmod') ? 1 : 0 - else - if index(tab_bufs, nr) > -1 - let group = 'airline_tab' - else - let group = 'airline_tabhid' - endif - endif - call b.add_section(group, s:spc.'%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)'.s:spc) - endfor - - call b.add_section('airline_tabfill', '') - call b.split() - call b.add_section('airline_tabtype', ' buffers ') - - let s:current_bufnr = cur - let s:current_tabline = b.build() - return s:current_tabline -endfunction - -function! s:get_tabs() - let curbuf = bufnr('%') - let curtab = tabpagenr() - if curbuf == s:current_bufnr && curtab == s:current_tabnr - if !g:airline_detect_modified || getbufvar(curbuf, '&modified') == s:current_modified - return s:current_tabline - endif - endif - - let b = airline#builder#new(s:builder_context) - for i in range(1, tabpagenr('$')) - if i == curtab - let group = 'airline_tabsel' - if g:airline_detect_modified - for bi in tabpagebuflist(i) - if getbufvar(bi, '&modified') - let group = 'airline_tabmod' - endif - endfor - endif - let s:current_modified = (group == 'airline_tabmod') ? 1 : 0 - else - let group = 'airline_tab' - endif - let val = '%(' - if s:show_tab_nr - if s:tab_nr_type == 0 - let val .= ' %{len(tabpagebuflist('.i.'))}' - else - let val .= (g:airline_symbols.space).i - endif - endif - call b.add_section(group, val.'%'.i.'T %{airline#extensions#tabline#title('.i.')} %)') - endfor - - call b.add_raw('%T') - call b.add_section('airline_tabfill', '') - call b.split() - call b.add_section('airline_tab', ' %999X'.s:close_symbol.' ') - if s:show_tab_type - call b.add_section('airline_tabtype', ' tabs ') - endif - - let s:current_bufnr = curbuf - let s:current_tabnr = curtab - let s:current_tabline = b.build() - return s:current_tabline -endfunction diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/default.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/default.vim deleted file mode 100644 index 4f1ed40..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/default.vim +++ /dev/null @@ -1,35 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -let s:fmod = get(g:, 'airline#extensions#tabline#fnamemod', ':~:.') -let s:fnamecollapse = get(g:, 'airline#extensions#tabline#fnamecollapse', 1) -let s:buf_nr_format = get(g:, 'airline#extensions#tabline#buffer_nr_format', '%s: ') -let s:buf_nr_show = get(g:, 'airline#extensions#tabline#buffer_nr_show', 0) -let s:buf_modified_symbol = g:airline_symbols.modified - -function! airline#extensions#tabline#default#format(bufnr, buffers) - let _ = '' - - let name = bufname(a:bufnr) - if empty(name) - let _ .= '[No Name]' - else - if s:fnamecollapse - let _ .= substitute(fnamemodify(name, s:fmod), '\v\w\zs.{-}\ze(\\|/)', '', 'g') - else - let _ .= fnamemodify(name, s:fmod) - endif - endif - - return airline#extensions#tabline#default#wrap_name(a:bufnr, _) -endfunction - -function! airline#extensions#tabline#default#wrap_name(bufnr, buffer_name) - let _ = s:buf_nr_show ? printf(s:buf_nr_format, a:bufnr) : '' - let _ .= substitute(a:buffer_name, '\\', '/', 'g') - - if getbufvar(a:bufnr, '&modified') == 1 - let _ .= s:buf_modified_symbol - endif - return _ -endfunction diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail.vim deleted file mode 100644 index e4a790d..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail.vim +++ /dev/null @@ -1,27 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -function! airline#extensions#tabline#unique_tail#format(bufnr, buffers) - let duplicates = {} - let tails = {} - let map = {} - for nr in a:buffers - let name = bufname(nr) - if empty(name) - let map[nr] = '[No Name]' - else - let tail = fnamemodify(name, ':t') - if has_key(tails, tail) - let duplicates[nr] = nr - endif - let tails[tail] = 1 - let map[nr] = airline#extensions#tabline#default#wrap_name(nr, tail) - endif - endfor - - for nr in values(duplicates) - let map[nr] = airline#extensions#tabline#default#wrap_name(nr, fnamemodify(bufname(nr), ':p:.')) - endfor - - return map[a:bufnr] -endfunction diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail_improved.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail_improved.vim deleted file mode 100644 index 6b13dcf..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail_improved.vim +++ /dev/null @@ -1,89 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -let s:skip_symbol = '…' - -function! airline#extensions#tabline#unique_tail_improved#format(bufnr, buffers) - if len(a:buffers) <= 1 " don't need to compare bufnames if has less than one buffer opened - return airline#extensions#tabline#default#format(a:bufnr, a:buffers) - endif - - let curbuf_tail = fnamemodify(bufname(a:bufnr), ':t') - let do_deduplicate = 0 - let path_tokens = {} - - for nr in a:buffers - let name = bufname(nr) - if !empty(name) && nr != a:bufnr && fnamemodify(name, ':t') == curbuf_tail - let do_deduplicate = 1 - let tokens = reverse(split(substitute(fnamemodify(name, ':p:.:h'), '\\', '/', 'g'), '/')) - let token_index = 0 - for token in tokens - if token == '' | continue | endif - if token == '.' | break | endif - if !has_key(path_tokens, token_index) - let path_tokens[token_index] = {} - endif - let path_tokens[token_index][token] = 1 - let token_index += 1 - endfor - endif - endfor - - if do_deduplicate == 1 - let path = [] - let token_index = 0 - for token in reverse(split(substitute(fnamemodify(bufname(a:bufnr), ':p:.:h'), '\\', '/', 'g'), '/')) - if token == '.' | break | endif - let duplicated = 0 - let uniq = 1 - let single = 1 - if has_key(path_tokens, token_index) - let duplicated = 1 - if len(keys(path_tokens[token_index])) > 1 | let single = 0 | endif - if has_key(path_tokens[token_index], token) | let uniq = 0 | endif - endif - call insert(path, {'token': token, 'duplicated': duplicated, 'uniq': uniq, 'single': single}) - let token_index += 1 - endfor - - let buf_name = [curbuf_tail] - let has_uniq = 0 - let has_skipped = 0 - for token1 in reverse(path) - if !token1['duplicated'] && len(buf_name) > 1 - call insert(buf_name, s:skip_symbol) - let has_skipped = 0 - break - endif - - if has_uniq == 1 - call insert(buf_name, s:skip_symbol) - let has_skipped = 0 - break - endif - - if token1['uniq'] == 0 && token1['single'] == 1 - let has_skipped = 1 - else - if has_skipped == 1 - call insert(buf_name, s:skip_symbol) - let has_skipped = 0 - endif - call insert(buf_name, token1['token']) - endif - - if token1['uniq'] == 1 - let has_uniq = 1 - endif - endfor - - if has_skipped == 1 - call insert(buf_name, s:skip_symbol) - endif - - return airline#extensions#tabline#default#wrap_name(a:bufnr, join(buf_name, '/')) - else - return airline#extensions#tabline#default#format(a:bufnr, a:buffers) - endif -endfunction diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/tagbar.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/tagbar.vim deleted file mode 100644 index 56919a8..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/tagbar.vim +++ /dev/null @@ -1,45 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !exists(':TagbarToggle') - finish -endif - -let s:flags = get(g:, 'airline#extensions#tagbar#flags', '') -let s:spc = g:airline_symbols.space - -" Arguments: current, sort, fname -function! airline#extensions#tagbar#get_status(...) - let builder = airline#builder#new({ 'active': a:1 }) - call builder.add_section('airline_a', s:spc.'Tagbar'.s:spc) - call builder.add_section('airline_b', s:spc.a:2.s:spc) - call builder.add_section('airline_c', s:spc.a:3.s:spc) - return builder.build() -endfunction - -function! airline#extensions#tagbar#inactive_apply(...) - if getwinvar(a:2.winnr, '&filetype') == 'tagbar' - return -1 - endif -endfunction - -let s:airline_tagbar_last_lookup_time = 0 -let s:airline_tagbar_last_lookup_val = '' -function! airline#extensions#tagbar#currenttag() - if get(w:, 'airline_active', 0) - if s:airline_tagbar_last_lookup_time != localtime() - let s:airline_tagbar_last_lookup_val = tagbar#currenttag('%s', '', s:flags) - let s:airline_tagbar_last_lookup_time = localtime() - endif - return s:airline_tagbar_last_lookup_val - endif - return '' -endfunction - -function! airline#extensions#tagbar#init(ext) - call a:ext.add_inactive_statusline_func('airline#extensions#tagbar#inactive_apply') - let g:tagbar_status_func = 'airline#extensions#tagbar#get_status' - - call airline#parts#define_function('tagbar', 'airline#extensions#tagbar#currenttag') -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/tmuxline.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/tmuxline.vim deleted file mode 100644 index 363709b..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/tmuxline.vim +++ /dev/null @@ -1,26 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !exists(':Tmuxline') - finish -endif - -let s:tmuxline_snapshot_file = get(g:, 'airline#extensions#tmuxline#snapshot_file', '') -let s:color_template = get(g:, 'airline#extensions#tmuxline#color_template', 'normal') - -function! airline#extensions#tmuxline#init(ext) - call a:ext.add_theme_func('airline#extensions#tmuxline#set_tmux_colors') -endfunction - -function! airline#extensions#tmuxline#set_tmux_colors(palette) - let color_template = has_key(a:palette, s:color_template) ? s:color_template : 'normal' - let mode_palette = a:palette[color_template] - - let tmuxline_theme = tmuxline#api#create_theme_from_airline(mode_palette) - call tmuxline#api#set_theme(tmuxline_theme) - - if strlen(s:tmuxline_snapshot_file) - call tmuxline#api#snapshot(s:tmuxline_snapshot_file) - endif -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/undotree.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/undotree.vim deleted file mode 100644 index f577ffd..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/undotree.vim +++ /dev/null @@ -1,27 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !exists(':UndotreeToggle') - finish -endif - -function! airline#extensions#undotree#apply(...) - if exists('t:undotree') - if &ft == 'undotree' - if exists('*t:undotree.GetStatusLine') - call airline#extensions#apply_left_override('undo', '%{t:undotree.GetStatusLine()}') - else - call airline#extensions#apply_left_override('undotree', '%f') - endif - endif - - if &ft == 'diff' && exists('*t:diffpanel.GetStatusLine') - call airline#extensions#apply_left_override('diff', '%{t:diffpanel.GetStatusLine()}') - endif - endif -endfunction - -function! airline#extensions#undotree#init(ext) - call a:ext.add_statusline_func('airline#extensions#undotree#apply') -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim deleted file mode 100644 index d230b6f..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim +++ /dev/null @@ -1,23 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !get(g:, 'loaded_unite', 0) - finish -endif - -function! airline#extensions#unite#apply(...) - if &ft == 'unite' - call a:1.add_section('airline_a', ' Unite ') - call a:1.add_section('airline_b', ' %{get(unite#get_context(), "buffer_name", "")} ') - call a:1.add_section('airline_c', ' %{unite#get_status_string()} ') - call a:1.split() - call a:1.add_section('airline_y', ' %{get(unite#get_context(), "real_buffer_name", "")} ') - return 1 - endif -endfunction - -function! airline#extensions#unite#init(ext) - let g:unite_force_overwrite_statusline = 0 - call a:ext.add_statusline_func('airline#extensions#unite#apply') -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/virtualenv.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/virtualenv.vim deleted file mode 100644 index f070c47..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/virtualenv.vim +++ /dev/null @@ -1,20 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if !get(g:, 'virtualenv_loaded', 0) - finish -endif - -let s:spc = g:airline_symbols.space - -function! airline#extensions#virtualenv#init(ext) - call a:ext.add_statusline_func('airline#extensions#virtualenv#apply') -endfunction - -function! airline#extensions#virtualenv#apply(...) - if &filetype =~ "python" - call airline#extensions#append_to_section('x', - \ s:spc.g:airline_right_alt_sep.s:spc.'%{virtualenv#statusline()}') - endif -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim.disable b/.vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim.disable deleted file mode 100644 index 8657412..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim.disable +++ /dev/null @@ -1,103 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -" http://got-ravings.blogspot.com/2008/10/vim-pr0n-statusline-whitespace-flags.html - -" for backwards compatibility -if exists('g:airline_detect_whitespace') - let s:show_message = g:airline_detect_whitespace == 1 -else - let s:show_message = get(g:, 'airline#extensions#whitespace#show_message', 1) -endif - -let s:symbol = get(g:, 'airline#extensions#whitespace#symbol', g:airline_symbols.whitespace) -let s:default_checks = ['indent', 'trailing'] - -let s:trailing_format = get(g:, 'airline#extensions#whitespace#trailing_format', 'trailing[%s]') -let s:mixed_indent_format = get(g:, 'airline#extensions#whitespace#mixed_indent_format', 'mixed-indent[%s]') -let s:indent_algo = get(g:, 'airline#extensions#whitespace#mixed_indent_algo', 0) - -let s:max_lines = get(g:, 'airline#extensions#whitespace#max_lines', 20000) - -let s:enabled = get(g:, 'airline#extensions#whitespace#enabled', 1) - -function! s:check_mixed_indent() - if s:indent_algo == 1 - " [] - " spaces before or between tabs are not allowed - let t_s_t = '(^\t* +\t\s*\S)' - " ( x count) - " count of spaces at the end of tabs should be less then tabstop value - let t_l_s = '(^\t+ {' . &ts . ',}' . '\S)' - return search('\v' . t_s_t . '|' . t_l_s, 'nw') - else - return search('\v(^\t+ +)|(^ +\t+)', 'nw') - endif -endfunction - -function! airline#extensions#whitespace#check() - if &readonly || !&modifiable || !s:enabled || line('$') > s:max_lines - return '' - endif - - if !exists('b:airline_whitespace_check') - let b:airline_whitespace_check = '' - let checks = get(g:, 'airline#extensions#whitespace#checks', s:default_checks) - - let trailing = 0 - if index(checks, 'trailing') > -1 - let trailing = search('\s$', 'nw') - endif - - let mixed = 0 - if index(checks, 'indent') > -1 - let mixed = s:check_mixed_indent() - endif - - if trailing != 0 || mixed != 0 - let b:airline_whitespace_check = s:symbol - if s:show_message - if trailing != 0 - let b:airline_whitespace_check .= (g:airline_symbols.space).printf(s:trailing_format, trailing) - endif - if mixed != 0 - let b:airline_whitespace_check .= (g:airline_symbols.space).printf(s:mixed_indent_format, mixed) - endif - endif - endif - endif - return b:airline_whitespace_check -endfunction! - -function! airline#extensions#whitespace#toggle() - if s:enabled - augroup airline_whitespace - autocmd! - augroup END - augroup! airline_whitespace - let s:enabled = 0 - else - call airline#extensions#whitespace#init() - let s:enabled = 1 - endif - - if exists("g:airline#extensions#whitespace#enabled") - let g:airline#extensions#whitespace#enabled = s:enabled - if s:enabled && match(g:airline_section_warning, '#whitespace#check') < 0 - let g:airline_section_warning .= airline#section#create(['whitespace']) - call airline#update_statusline() - endif - endif - echo 'Whitespace checking: '.(s:enabled ? 'Enabled' : 'Disabled') -endfunction - -function! airline#extensions#whitespace#init(...) - call airline#parts#define_function('whitespace', 'airline#extensions#whitespace#check') - - unlet! b:airline_whitespace_check - augroup airline_whitespace - autocmd! - autocmd CursorHold,BufWritePost * unlet! b:airline_whitespace_check - augroup END -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/highlighter.vim b/.vim/bundle/vim-airline/autoload/airline/highlighter.vim deleted file mode 100644 index 65a95cc..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/highlighter.vim +++ /dev/null @@ -1,156 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -let s:is_win32term = (has('win32') || has('win64')) && !has('gui_running') -let s:separators = {} -let s:accents = {} - -function! s:gui2cui(rgb, fallback) - if a:rgb == '' - return a:fallback - endif - let rgb = map(matchlist(a:rgb, '#\(..\)\(..\)\(..\)')[1:3], '0 + ("0x".v:val)') - let rgb = [rgb[0] > 127 ? 4 : 0, rgb[1] > 127 ? 2 : 0, rgb[2] > 127 ? 1 : 0] - return rgb[0]+rgb[1]+rgb[2] -endfunction - -function! s:get_syn(group, what) - " need to pass in mode, known to break on 7.3.547 - let mode = has('gui_running') ? 'gui' : 'cterm' - let color = synIDattr(synIDtrans(hlID(a:group)), a:what, mode) - if empty(color) || color == -1 - let color = synIDattr(synIDtrans(hlID('Normal')), a:what, mode) - endif - if empty(color) || color == -1 - if has('gui_running') - let color = a:what ==# 'fg' ? '#000000' : '#FFFFFF' - else - let color = a:what ==# 'fg' ? 0 : 1 - endif - endif - return color -endfunction - -function! s:get_array(fg, bg, opts) - let fg = a:fg - let bg = a:bg - return has('gui_running') - \ ? [ fg, bg, '', '', join(a:opts, ',') ] - \ : [ '', '', fg, bg, join(a:opts, ',') ] -endfunction - -function! airline#highlighter#get_highlight(group, ...) - let fg = s:get_syn(a:group, 'fg') - let bg = s:get_syn(a:group, 'bg') - let reverse = synIDattr(synIDtrans(hlID(a:group)), 'reverse', has('gui_running') ? 'gui' : 'term') - return reverse ? s:get_array(bg, fg, a:000) : s:get_array(fg, bg, a:000) -endfunction - -function! airline#highlighter#get_highlight2(fg, bg, ...) - let fg = s:get_syn(a:fg[0], a:fg[1]) - let bg = s:get_syn(a:bg[0], a:bg[1]) - return s:get_array(fg, bg, a:000) -endfunction - -function! airline#highlighter#exec(group, colors) - let colors = a:colors - if s:is_win32term - let colors[2] = s:gui2cui(get(colors, 0, ''), get(colors, 2, '')) - let colors[3] = s:gui2cui(get(colors, 1, ''), get(colors, 3, '')) - endif - exec printf('hi %s %s %s %s %s %s %s %s', - \ a:group, - \ get(colors, 0, '') != '' ? 'guifg='.colors[0] : '', - \ get(colors, 1, '') != '' ? 'guibg='.colors[1] : '', - \ get(colors, 2, '') != '' ? 'ctermfg='.colors[2] : '', - \ get(colors, 3, '') != '' ? 'ctermbg='.colors[3] : '', - \ get(colors, 4, '') != '' ? 'gui='.colors[4] : '', - \ get(colors, 4, '') != '' ? 'cterm='.colors[4] : '', - \ get(colors, 4, '') != '' ? 'term='.colors[4] : '') -endfunction - -function! s:exec_separator(dict, from, to, inverse, suffix) - let l:from = airline#themes#get_highlight(a:from.a:suffix) - let l:to = airline#themes#get_highlight(a:to.a:suffix) - let group = a:from.'_to_'.a:to.a:suffix - if a:inverse - let colors = [ l:from[1], l:to[1], l:from[3], l:to[3] ] - else - let colors = [ l:to[1], l:from[1], l:to[3], l:from[3] ] - endif - let a:dict[group] = colors - call airline#highlighter#exec(group, colors) -endfunction - -function! airline#highlighter#load_theme() - for winnr in filter(range(1, winnr('$')), 'v:val != winnr()') - call airline#highlighter#highlight_modified_inactive(winbufnr(winnr)) - endfor - call airline#highlighter#highlight(['inactive']) - call airline#highlighter#highlight(['normal']) -endfunction - -function! airline#highlighter#add_separator(from, to, inverse) - let s:separators[a:from.a:to] = [a:from, a:to, a:inverse] - call exec_separator({}, a:from, a:to, a:inverse, '') -endfunction - -function! airline#highlighter#add_accent(accent) - let s:accents[a:accent] = 1 -endfunction - -function! airline#highlighter#highlight_modified_inactive(bufnr) - if getbufvar(a:bufnr, '&modified') - let colors = exists('g:airline#themes#{g:airline_theme}#palette.inactive_modified.airline_c') - \ ? g:airline#themes#{g:airline_theme}#palette.inactive_modified.airline_c : [] - else - let colors = exists('g:airline#themes#{g:airline_theme}#palette.inactive.airline_c') - \ ? g:airline#themes#{g:airline_theme}#palette.inactive.airline_c : [] - endif - - if !empty(colors) - call airline#highlighter#exec('airline_c'.(a:bufnr).'_inactive', colors) - endif -endfunction - -function! airline#highlighter#highlight(modes) - let p = g:airline#themes#{g:airline_theme}#palette - - " draw the base mode, followed by any overrides - let mapped = map(a:modes, 'v:val == a:modes[0] ? v:val : a:modes[0]."_".v:val') - let suffix = a:modes[0] == 'inactive' ? '_inactive' : '' - for mode in mapped - if exists('g:airline#themes#{g:airline_theme}#palette[mode]') - let dict = g:airline#themes#{g:airline_theme}#palette[mode] - for kvp in items(dict) - let mode_colors = kvp[1] - call airline#highlighter#exec(kvp[0].suffix, mode_colors) - - for accent in keys(s:accents) - if !has_key(p.accents, accent) - continue - endif - let colors = copy(mode_colors) - if p.accents[accent][0] != '' - let colors[0] = p.accents[accent][0] - endif - if p.accents[accent][2] != '' - let colors[2] = p.accents[accent][2] - endif - if len(colors) >= 5 - let colors[4] = get(p.accents[accent], 4, '') - else - call add(colors, get(p.accents[accent], 4, '')) - endif - call airline#highlighter#exec(kvp[0].suffix.'_'.accent, colors) - endfor - endfor - - " TODO: optimize this - for sep in items(s:separators) - call exec_separator(dict, sep[1][0], sep[1][1], sep[1][2], suffix) - endfor - endif - endfor -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/init.vim b/.vim/bundle/vim-airline/autoload/airline/init.vim deleted file mode 100644 index a60774d..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/init.vim +++ /dev/null @@ -1,113 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -function! s:check_defined(variable, default) - if !exists(a:variable) - let {a:variable} = a:default - endif -endfunction - -let s:loaded = 0 -function! airline#init#bootstrap() - if s:loaded - return - endif - let s:loaded = 1 - - let g:airline#init#bootstrapping = 1 - - call s:check_defined('g:airline_left_sep', get(g:, 'airline_powerline_fonts', 0)?"\ue0b0":">") - call s:check_defined('g:airline_left_alt_sep', get(g:, 'airline_powerline_fonts', 0)?"\ue0b1":">") - call s:check_defined('g:airline_right_sep', get(g:, 'airline_powerline_fonts', 0)?"\ue0b2":"<") - call s:check_defined('g:airline_right_alt_sep', get(g:, 'airline_powerline_fonts', 0)?"\ue0b3":"<") - call s:check_defined('g:airline_detect_modified', 1) - call s:check_defined('g:airline_detect_paste', 1) - call s:check_defined('g:airline_detect_iminsert', 0) - call s:check_defined('g:airline_inactive_collapse', 1) - call s:check_defined('g:airline_exclude_filenames', ['DebuggerWatch','DebuggerStack','DebuggerStatus']) - call s:check_defined('g:airline_exclude_filetypes', []) - call s:check_defined('g:airline_exclude_preview', 0) - - call s:check_defined('g:airline_mode_map', {}) - call extend(g:airline_mode_map, { - \ '__' : '------', - \ 'n' : 'NORMAL', - \ 'i' : 'INSERT', - \ 'R' : 'REPLACE', - \ 'v' : 'VISUAL', - \ 'V' : 'V-LINE', - \ 'c' : 'COMMAND', - \ '' : 'V-BLOCK', - \ 's' : 'SELECT', - \ 'S' : 'S-LINE', - \ '' : 'S-BLOCK', - \ }, 'keep') - - call s:check_defined('g:airline_theme_map', {}) - call extend(g:airline_theme_map, { - \ 'Tomorrow.*': 'tomorrow', - \ 'base16.*': 'base16', - \ 'mo[l|n]okai': 'molokai', - \ 'wombat.*': 'wombat', - \ '.*zenburn.*': 'zenburn', - \ '.*solarized.*': 'solarized', - \ }, 'keep') - - call s:check_defined('g:airline_symbols', {}) - call extend(g:airline_symbols, { - \ 'paste': get(g:, 'airline_paste_symbol', 'PASTE'), - \ 'readonly': get(g:, 'airline_readonly_symbol', get(g:, 'airline_powerline_fonts', 0) ? "\ue0a2" : 'RO'), - \ 'whitespace': get(g:, 'airline_powerline_fonts', 0) ? "\u2739" : '!', - \ 'linenr': get(g:, 'airline_linecolumn_prefix', get(g:, 'airline_powerline_fonts', 0) ? "\ue0a1" : ':' ), - \ 'branch': get(g:, 'airline_branch_prefix', get(g:, 'airline_powerline_fonts', 0) ? "\ue0a0" : ''), - \ 'modified': '+', - \ 'space': ' ', - \ }, 'keep') - - call airline#parts#define('mode', { - \ 'function': 'airline#parts#mode', - \ 'accent': 'bold', - \ }) - call airline#parts#define_function('iminsert', 'airline#parts#iminsert') - call airline#parts#define_function('paste', 'airline#parts#paste') - call airline#parts#define_function('filetype', 'airline#parts#filetype') - call airline#parts#define('readonly', { - \ 'function': 'airline#parts#readonly', - \ 'accent': 'red', - \ }) - call airline#parts#define_raw('file', '%f%m') - call airline#parts#define_raw('linenr', '%{g:airline_symbols.linenr}%#__accent_bold#%4l%#__restore__#') - call airline#parts#define_function('ffenc', 'airline#parts#ffenc') - call airline#parts#define_empty(['hunks', 'branch', 'tagbar', 'syntastic', 'eclim', 'whitespace']) - - unlet g:airline#init#bootstrapping -endfunction - -function! airline#init#sections() - let spc = g:airline_symbols.space - if !exists('g:airline_section_a') - let g:airline_section_a = airline#section#create_left(['mode', 'paste', 'iminsert']) - endif - if !exists('g:airline_section_b') - let g:airline_section_b = airline#section#create(['hunks', 'branch']) - endif - if !exists('g:airline_section_c') - let g:airline_section_c = airline#section#create(['%<', 'file', spc, 'readonly']) - endif - if !exists('g:airline_section_gutter') - let g:airline_section_gutter = airline#section#create(['%=']) - endif - if !exists('g:airline_section_x') - let g:airline_section_x = airline#section#create_right(['tagbar', 'filetype']) - endif - if !exists('g:airline_section_y') - let g:airline_section_y = airline#section#create_right(['ffenc']) - endif - if !exists('g:airline_section_z') - let g:airline_section_z = airline#section#create(['%3p%%'.spc, 'linenr', ':%3c ']) - endif - if !exists('g:airline_section_warning') - let g:airline_section_warning = airline#section#create(['syntastic', 'eclim', 'whitespace']) - endif -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/parts.vim b/.vim/bundle/vim-airline/autoload/airline/parts.vim deleted file mode 100644 index b0356b1..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/parts.vim +++ /dev/null @@ -1,79 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -let s:parts = {} - -" PUBLIC API {{{ - -function! airline#parts#define(key, config) - let s:parts[a:key] = get(s:parts, a:key, {}) - if exists('g:airline#init#bootstrapping') - call extend(s:parts[a:key], a:config, 'keep') - else - call extend(s:parts[a:key], a:config, 'force') - endif -endfunction - -function! airline#parts#define_function(key, name) - call airline#parts#define(a:key, { 'function': a:name }) -endfunction - -function! airline#parts#define_text(key, text) - call airline#parts#define(a:key, { 'text': a:text }) -endfunction - -function! airline#parts#define_raw(key, raw) - call airline#parts#define(a:key, { 'raw': a:raw }) -endfunction - -function! airline#parts#define_minwidth(key, width) - call airline#parts#define(a:key, { 'minwidth': a:width }) -endfunction - -function! airline#parts#define_condition(key, predicate) - call airline#parts#define(a:key, { 'condition': a:predicate }) -endfunction - -function! airline#parts#define_accent(key, accent) - call airline#parts#define(a:key, { 'accent': a:accent }) -endfunction - -function! airline#parts#define_empty(keys) - for key in a:keys - call airline#parts#define_raw(key, '') - endfor -endfunction - -function! airline#parts#get(key) - return get(s:parts, a:key, {}) -endfunction - -" }}} - -function! airline#parts#mode() - return get(w:, 'airline_current_mode', '') -endfunction - -function! airline#parts#paste() - return g:airline_detect_paste && &paste ? g:airline_symbols.paste : '' -endfunction - -function! airline#parts#iminsert() - if g:airline_detect_iminsert && &iminsert && exists('b:keymap_name') - return toupper(b:keymap_name) - endif - return '' -endfunction - -function! airline#parts#readonly() - return &readonly ? g:airline_symbols.readonly : '' -endfunction - -function! airline#parts#filetype() - return &filetype -endfunction - -function! airline#parts#ffenc() - return printf('%s%s', &fenc, strlen(&ff) > 0 ? '['.&ff.']' : '') -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/section.vim b/.vim/bundle/vim-airline/autoload/airline/section.vim deleted file mode 100644 index 0baf077..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/section.vim +++ /dev/null @@ -1,73 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -call airline#init#bootstrap() -let s:spc = g:airline_symbols.space - -function! s:wrap_accent(part, value) - if exists('a:part.accent') - call airline#highlighter#add_accent(a:part.accent) - return '%#__accent_'.(a:part.accent).'#'.a:value.'%#__restore__#' - endif - return a:value -endfunction - -function! s:create(parts, append) - let _ = '' - for idx in range(len(a:parts)) - let part = airline#parts#get(a:parts[idx]) - let val = '' - - if exists('part.function') - let func = (part.function).'()' - elseif exists('part.text') - let func = '"'.(part.text).'"' - else - if a:append > 0 && idx != 0 - let val .= s:spc.g:airline_left_alt_sep.s:spc - endif - if a:append < 0 && idx != 0 - let val = s:spc.g:airline_right_alt_sep.s:spc.val - endif - if exists('part.raw') - let _ .= s:wrap_accent(part, val.(part.raw)) - continue - else - let _ .= s:wrap_accent(part, val.a:parts[idx]) - continue - endif - endif - - let minwidth = get(part, 'minwidth', 0) - - if a:append > 0 && idx != 0 - let partval = printf('%%{airline#util#append(%s,%s)}', func, minwidth) - elseif a:append < 0 && idx != len(a:parts) - 1 - let partval = printf('%%{airline#util#prepend(%s,%s)}', func, minwidth) - else - let partval = printf('%%{airline#util#wrap(%s,%s)}', func, minwidth) - endif - - if exists('part.condition') - let partval = substitute(partval, '{', '{'.(part.condition).' ? ', '') - let partval = substitute(partval, '}', ' : ""}', '') - endif - - let val .= s:wrap_accent(part, partval) - let _ .= val - endfor - return _ -endfunction - -function! airline#section#create(parts) - return s:create(a:parts, 0) -endfunction - -function! airline#section#create_left(parts) - return s:create(a:parts, 1) -endfunction - -function! airline#section#create_right(parts) - return s:create(a:parts, -1) -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes.vim b/.vim/bundle/vim-airline/autoload/airline/themes.vim deleted file mode 100644 index 07e0324..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes.vim +++ /dev/null @@ -1,67 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -" generates a dictionary which defines the colors for each highlight group -function! airline#themes#generate_color_map(sect1, sect2, sect3, ...) - let palette = { - \ 'airline_a': [ a:sect1[0] , a:sect1[1] , a:sect1[2] , a:sect1[3] , get(a:sect1 , 4 , '') ] , - \ 'airline_b': [ a:sect2[0] , a:sect2[1] , a:sect2[2] , a:sect2[3] , get(a:sect2 , 4 , '') ] , - \ 'airline_c': [ a:sect3[0] , a:sect3[1] , a:sect3[2] , a:sect3[3] , get(a:sect3 , 4 , '') ] , - \ } - - if a:0 > 0 - call extend(palette, { - \ 'airline_x': [ a:1[0] , a:1[1] , a:1[2] , a:1[3] , get(a:1 , 4 , '' ) ] , - \ 'airline_y': [ a:2[0] , a:2[1] , a:2[2] , a:2[3] , get(a:2 , 4 , '' ) ] , - \ 'airline_z': [ a:3[0] , a:3[1] , a:3[2] , a:3[3] , get(a:3 , 4 , '' ) ] , - \ }) - else - call extend(palette, { - \ 'airline_x': [ a:sect3[0] , a:sect3[1] , a:sect3[2] , a:sect3[3] , '' ] , - \ 'airline_y': [ a:sect2[0] , a:sect2[1] , a:sect2[2] , a:sect2[3] , '' ] , - \ 'airline_z': [ a:sect1[0] , a:sect1[1] , a:sect1[2] , a:sect1[3] , '' ] , - \ }) - endif - - return palette -endfunction - -function! airline#themes#get_highlight(group, ...) - return call('airline#highlighter#get_highlight', [a:group] + a:000) -endfunction - -function! airline#themes#get_highlight2(fg, bg, ...) - return call('airline#highlighter#get_highlight2', [a:fg, a:bg] + a:000) -endfunction - -function! airline#themes#patch(palette) - for mode in keys(a:palette) - if !has_key(a:palette[mode], 'airline_warning') - let a:palette[mode]['airline_warning'] = [ '#000000', '#df5f00', 232, 166 ] - endif - endfor - - let a:palette.accents = get(a:palette, 'accents', {}) - let a:palette.accents.bold = [ '', '', '', '', 'bold' ] - let a:palette.accents.italic = [ '', '', '', '', 'italic' ] - - if !has_key(a:palette.accents, 'red') - let a:palette.accents.red = [ '#ff0000' , '' , 160 , '' ] - endif - if !has_key(a:palette.accents, 'green') - let a:palette.accents.green = [ '#008700' , '' , 22 , '' ] - endif - if !has_key(a:palette.accents, 'blue') - let a:palette.accents.blue = [ '#005fff' , '' , 27 , '' ] - endif - if !has_key(a:palette.accents, 'yellow') - let a:palette.accents.yellow = [ '#dfff00' , '' , 190 , '' ] - endif - if !has_key(a:palette.accents, 'orange') - let a:palette.accents.orange = [ '#df5f00' , '' , 166 , '' ] - endif - if !has_key(a:palette.accents, 'purple') - let a:palette.accents.purple = [ '#af00df' , '' , 128 , '' ] - endif -endfunction - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/badwolf.vim b/.vim/bundle/vim-airline/autoload/airline/themes/badwolf.vim deleted file mode 100644 index 41a25d1..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/badwolf.vim +++ /dev/null @@ -1,52 +0,0 @@ -let s:N1 = [ '#141413' , '#aeee00' , 232 , 154 ] " blackestgravel & lime -let s:N2 = [ '#f4cf86' , '#45413b' , 222 , 238 ] " dirtyblonde & deepgravel -let s:N3 = [ '#8cffba' , '#242321' , 121 , 235 ] " saltwatertaffy & darkgravel -let s:N4 = [ '#666462' , 241 ] " mediumgravel - -let s:I1 = [ '#141413' , '#0a9dff' , 232 , 39 ] " blackestgravel & tardis -let s:I2 = [ '#f4cf86' , '#005fff' , 222 , 27 ] " dirtyblonde & facebook -let s:I3 = [ '#0a9dff' , '#242321' , 39 , 235 ] " tardis & darkgravel - -let s:V1 = [ '#141413' , '#ffa724' , 232 , 214 ] " blackestgravel & orange -let s:V2 = [ '#000000' , '#fade3e' , 16 , 221 ] " coal & dalespale -let s:V3 = [ '#000000' , '#b88853' , 16 , 137 ] " coal & toffee -let s:V4 = [ '#c7915b' , 173 ] " coffee - -let s:PA = [ '#f4cf86' , 222 ] " dirtyblonde -let s:RE = [ '#ff9eb8' , 211 ] " dress - -let s:IA = [ s:N2[1] , s:N3[1] , s:N2[3] , s:N3[3] , '' ] - -let g:airline#themes#badwolf#palette = {} - -let g:airline#themes#badwolf#palette.accents = { - \ 'red': [ '#ff2c4b' , '' , 196 , '' , '' ] - \ } - -let g:airline#themes#badwolf#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) -let g:airline#themes#badwolf#palette.normal_modified = { - \ 'airline_b': [ s:N2[0] , s:N4[0] , s:N2[2] , s:N4[1] , '' ] , - \ 'airline_c': [ s:V1[1] , s:N2[1] , s:V1[3] , s:N2[3] , '' ] } - - -let g:airline#themes#badwolf#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#badwolf#palette.insert_modified = { - \ 'airline_c': [ s:V1[1] , s:N2[1] , s:V1[3] , s:N2[3] , '' ] } -let g:airline#themes#badwolf#palette.insert_paste = { - \ 'airline_a': [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] } - - -let g:airline#themes#badwolf#palette.replace = copy(airline#themes#badwolf#palette.insert) -let g:airline#themes#badwolf#palette.replace.airline_a = [ s:I1[0] , s:RE[0] , s:I1[2] , s:RE[1] , '' ] -let g:airline#themes#badwolf#palette.replace_modified = g:airline#themes#badwolf#palette.insert_modified - - -let g:airline#themes#badwolf#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) -let g:airline#themes#badwolf#palette.visual_modified = { - \ 'airline_c': [ s:V3[0] , s:V4[0] , s:V3[2] , s:V4[1] , '' ] } - - -let g:airline#themes#badwolf#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) -let g:airline#themes#badwolf#palette.inactive_modified = { - \ 'airline_c': [ s:V1[1] , '' , s:V1[3] , '' , '' ] } - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/base16.vim b/.vim/bundle/vim-airline/autoload/airline/themes/base16.vim deleted file mode 100644 index 469435e..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/base16.vim +++ /dev/null @@ -1,107 +0,0 @@ -if get(g:, 'airline#themes#base16#constant', 0) - let g:airline#themes#base16#palette = {} - - " Color palette - let s:gui_dark_gray = '#202020' - let s:cterm_dark_gray = 234 - let s:gui_med_gray_hi = '#303030' - let s:cterm_med_gray_hi = 236 - let s:gui_med_gray_lo = '#3a3a3a' - let s:cterm_med_gray_lo = 237 - let s:gui_light_gray = '#505050' - let s:cterm_light_gray = 239 - let s:gui_green = '#99cc99' - let s:cterm_green = 151 - let s:gui_blue = '#6a9fb5' - let s:cterm_blue = 67 - let s:gui_purple = '#aa759f' - let s:cterm_purple = 139 - let s:gui_orange = '#d28445' - let s:cterm_orange = 173 - let s:gui_red = '#ac4142' - let s:cterm_red = 131 - let s:gui_pink = '#d7afd7' - let s:cterm_pink = 182 - - " Normal mode - let s:N1 = [s:gui_dark_gray, s:gui_green, s:cterm_dark_gray, s:cterm_green] - let s:N2 = [s:gui_light_gray, s:gui_med_gray_lo, s:cterm_light_gray, s:cterm_med_gray_lo] - let s:N3 = [s:gui_green, s:gui_med_gray_hi, s:cterm_green, s:cterm_med_gray_hi] - let g:airline#themes#base16#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) - let g:airline#themes#base16#palette.normal_modified = { - \ 'airline_c': [s:gui_orange, s:gui_med_gray_hi, s:cterm_orange, s:cterm_med_gray_hi, ''], - \ } - - " Insert mode - let s:I1 = [s:gui_med_gray_hi, s:gui_blue, s:cterm_med_gray_hi, s:cterm_blue] - let s:I3 = [s:gui_blue, s:gui_med_gray_hi, s:cterm_blue, s:cterm_med_gray_hi] - let g:airline#themes#base16#palette.insert = airline#themes#generate_color_map(s:I1, s:N2, s:I3) - let g:airline#themes#base16#palette.insert_modified = copy(g:airline#themes#base16#palette.normal_modified) - let g:airline#themes#base16#palette.insert_paste = { - \ 'airline_a': [s:gui_dark_gray, s:gui_orange, s:cterm_dark_gray, s:cterm_orange, ''], - \ } - - " Replace mode - let g:airline#themes#base16#palette.replace = { - \ 'airline_a': [s:gui_dark_gray, s:gui_red, s:cterm_dark_gray, s:cterm_red, ''], - \ 'airline_c': [s:gui_red, s:gui_med_gray_hi, s:cterm_red, s:cterm_med_gray_hi, ''], - \ } - let g:airline#themes#base16#palette.replace_modified = copy(g:airline#themes#base16#palette.insert_modified) - - " Visual mode - let s:V1 = [s:gui_dark_gray, s:gui_pink, s:cterm_dark_gray, s:cterm_pink] - let s:V3 = [s:gui_pink, s:gui_med_gray_hi, s:cterm_pink, s:cterm_med_gray_hi] - let g:airline#themes#base16#palette.visual = airline#themes#generate_color_map(s:V1, s:N2, s:V3) - let g:airline#themes#base16#palette.visual_modified = copy(g:airline#themes#base16#palette.insert_modified) - - " Inactive window - let s:IA = [s:gui_dark_gray, s:gui_med_gray_hi, s:cterm_dark_gray, s:cterm_med_gray_hi, ''] - let g:airline#themes#base16#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) - let g:airline#themes#base16#palette.inactive_modified = { - \ 'airline_c': [s:gui_orange, '', s:cterm_orange, '', ''], - \ } -else - function! airline#themes#base16#refresh() - let g:airline#themes#base16#palette = {} - - let g:airline#themes#base16#palette.accents = { - \ 'red': airline#themes#get_highlight('Constant'), - \ } - - let s:N1 = airline#themes#get_highlight2(['DiffText', 'bg'], ['DiffText', 'fg'], 'bold') - let s:N2 = airline#themes#get_highlight('Visual') - let s:N3 = airline#themes#get_highlight('CursorLine') - let g:airline#themes#base16#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) - - let group = airline#themes#get_highlight('vimCommand') - let g:airline#themes#base16#palette.normal_modified = { - \ 'statusline': [ group[0], '', group[2], '', '' ] - \ } - - let s:I1 = airline#themes#get_highlight2(['DiffAdded', 'bg'], ['DiffAdded', 'fg'], 'bold') - let s:I2 = airline#themes#get_highlight2(['DiffAdded', 'fg'], ['Normal', 'bg']) - let s:I3 = s:N3 - let g:airline#themes#base16#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) - let g:airline#themes#base16#palette.insert_modified = g:airline#themes#base16#palette.normal_modified - - let s:R1 = airline#themes#get_highlight2(['WarningMsg', 'bg'], ['WarningMsg', 'fg'], 'bold') - let s:R2 = s:N2 - let s:R3 = s:N3 - let g:airline#themes#base16#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) - let g:airline#themes#base16#palette.replace_modified = g:airline#themes#base16#palette.normal_modified - - let s:V1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Constant', 'fg'], 'bold') - let s:V2 = airline#themes#get_highlight2(['Constant', 'fg'], ['Normal', 'bg']) - let s:V3 = s:N3 - let g:airline#themes#base16#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) - let g:airline#themes#base16#palette.visual_modified = g:airline#themes#base16#palette.normal_modified - - let s:IA = airline#themes#get_highlight2(['NonText', 'fg'], ['CursorLine', 'bg']) - let g:airline#themes#base16#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) - let g:airline#themes#base16#palette.inactive_modified = { - \ 'airline_c': [ group[0], '', group[2], '', '' ] - \ } - endfunction - call airline#themes#base16#refresh() -endif - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/bubblegum.vim b/.vim/bundle/vim-airline/autoload/airline/themes/bubblegum.vim deleted file mode 100644 index d18e032..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/bubblegum.vim +++ /dev/null @@ -1,62 +0,0 @@ -" Color palette -let s:gui_dark_gray = '#303030' -let s:cterm_dark_gray = 236 -let s:gui_med_gray_hi = '#444444' -let s:cterm_med_gray_hi = 238 -let s:gui_med_gray_lo = '#3a3a3a' -let s:cterm_med_gray_lo = 237 -let s:gui_light_gray = '#b2b2b2' -let s:cterm_light_gray = 249 -let s:gui_green = '#afd787' -let s:cterm_green = 150 -let s:gui_blue = '#87afd7' -let s:cterm_blue = 110 -let s:gui_purple = '#afafd7' -let s:cterm_purple = 146 -let s:gui_orange = '#d7af5f' -let s:cterm_orange = 179 -let s:gui_red = '#d78787' -let s:cterm_red = 174 -let s:gui_pink = '#d7afd7' -let s:cterm_pink = 182 - -let g:airline#themes#bubblegum#palette = {} - -" Normal mode -let s:N1 = [s:gui_dark_gray, s:gui_green, s:cterm_dark_gray, s:cterm_green] -let s:N2 = [s:gui_light_gray, s:gui_med_gray_lo, s:cterm_light_gray, s:cterm_med_gray_lo] -let s:N3 = [s:gui_green, s:gui_med_gray_hi, s:cterm_green, s:cterm_med_gray_hi] -let g:airline#themes#bubblegum#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) -let g:airline#themes#bubblegum#palette.normal_modified = { - \ 'airline_c': [s:gui_orange, s:gui_med_gray_hi, s:cterm_orange, s:cterm_med_gray_hi, ''], - \ } - -" Insert mode -let s:I1 = [s:gui_med_gray_hi, s:gui_blue, s:cterm_med_gray_hi, s:cterm_blue] -let s:I3 = [s:gui_blue, s:gui_med_gray_hi, s:cterm_blue, s:cterm_med_gray_hi] -let g:airline#themes#bubblegum#palette.insert = airline#themes#generate_color_map(s:I1, s:N2, s:I3) -let g:airline#themes#bubblegum#palette.insert_modified = copy(g:airline#themes#bubblegum#palette.normal_modified) -let g:airline#themes#bubblegum#palette.insert_paste = { - \ 'airline_a': [s:gui_dark_gray, s:gui_orange, s:cterm_dark_gray, s:cterm_orange, ''], - \ } - -" Replace mode -let g:airline#themes#bubblegum#palette.replace = { - \ 'airline_a': [s:gui_dark_gray, s:gui_red, s:cterm_dark_gray, s:cterm_red, ''], - \ 'airline_c': [s:gui_red, s:gui_med_gray_hi, s:cterm_red, s:cterm_med_gray_hi, ''], - \ } -let g:airline#themes#bubblegum#palette.replace_modified = copy(g:airline#themes#bubblegum#palette.insert_modified) - -" Visual mode -let s:V1 = [s:gui_dark_gray, s:gui_pink, s:cterm_dark_gray, s:cterm_pink] -let s:V3 = [s:gui_pink, s:gui_med_gray_hi, s:cterm_pink, s:cterm_med_gray_hi] -let g:airline#themes#bubblegum#palette.visual = airline#themes#generate_color_map(s:V1, s:N2, s:V3) -let g:airline#themes#bubblegum#palette.visual_modified = copy(g:airline#themes#bubblegum#palette.insert_modified) - -" Inactive window -let s:IA = [s:gui_dark_gray, s:gui_med_gray_hi, s:cterm_dark_gray, s:cterm_med_gray_hi, ''] -let g:airline#themes#bubblegum#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) -let g:airline#themes#bubblegum#palette.inactive_modified = { - \ 'airline_c': [s:gui_orange, '', s:cterm_orange, '', ''], - \ } - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/dark.vim b/.vim/bundle/vim-airline/autoload/airline/themes/dark.vim deleted file mode 100644 index 217b2f1..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/dark.vim +++ /dev/null @@ -1,102 +0,0 @@ -" Each theme is contained in its own file and declares variables scoped to the -" file. These variables represent the possible "modes" that airline can -" detect. The mode is the return value of mode(), which gets converted to a -" readable string. The following is a list currently supported modes: normal, -" insert, replace, visual, and inactive. -" -" Each mode can also have overrides. These are small changes to the mode that -" don't require a completely different look. "modified" and "paste" are two -" such supported overrides. These are simply suffixed to the major mode, -" separated by an underscore. For example, "normal_modified" would be normal -" mode where the current buffer is modified. -" -" The theming algorithm is a 2-pass system where the mode will draw over all -" parts of the statusline, and then the override is applied after. This means -" it is possible to specify a subset of the theme in overrides, as it will -" simply overwrite the previous colors. If you want simultaneous overrides, -" then they will need to change different parts of the statusline so they do -" not conflict with each other. -" -" First, let's define an empty dictionary and assign it to the "palette" -" variable. The # is a separator that maps with the directory structure. If -" you get this wrong, Vim will complain loudly. -let g:airline#themes#dark#palette = {} - -" First let's define some arrays. The s: is just a VimL thing for scoping the -" variables to the current script. Without this, these variables would be -" declared globally. Now let's declare some colors for normal mode and add it -" to the dictionary. The array is in the format: -" [ guifg, guibg, ctermfg, ctermbg, opts ]. See "help attr-list" for valid -" values for the "opt" value. -let s:N1 = [ '#00005f' , '#dfff00' , 17 , 190 ] -let s:N2 = [ '#ffffff' , '#444444' , 255 , 238 ] -let s:N3 = [ '#9cffd3' , '#202020' , 85 , 234 ] -let g:airline#themes#dark#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) - -" Here we define overrides for when the buffer is modified. This will be -" applied after g:airline#themes#dark#palette.normal, hence why only certain keys are -" declared. -let g:airline#themes#dark#palette.normal_modified = { - \ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] , - \ } - - -let s:I1 = [ '#00005f' , '#00dfff' , 17 , 45 ] -let s:I2 = [ '#ffffff' , '#005fff' , 255 , 27 ] -let s:I3 = [ '#ffffff' , '#000080' , 15 , 17 ] -let g:airline#themes#dark#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#dark#palette.insert_modified = { - \ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] , - \ } -let g:airline#themes#dark#palette.insert_paste = { - \ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] , - \ } - - -let g:airline#themes#dark#palette.replace = copy(g:airline#themes#dark#palette.insert) -let g:airline#themes#dark#palette.replace.airline_a = [ s:I2[0] , '#af0000' , s:I2[2] , 124 , '' ] -let g:airline#themes#dark#palette.replace_modified = g:airline#themes#dark#palette.insert_modified - - -let s:V1 = [ '#000000' , '#ffaf00' , 232 , 214 ] -let s:V2 = [ '#000000' , '#ff5f00' , 232 , 202 ] -let s:V3 = [ '#ffffff' , '#5f0000' , 15 , 52 ] -let g:airline#themes#dark#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) -let g:airline#themes#dark#palette.visual_modified = { - \ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] , - \ } - - -let s:IA1 = [ '#4e4e4e' , '#1c1c1c' , 239 , 234 , '' ] -let s:IA2 = [ '#4e4e4e' , '#262626' , 239 , 235 , '' ] -let s:IA3 = [ '#4e4e4e' , '#303030' , 239 , 236 , '' ] -let g:airline#themes#dark#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) -let g:airline#themes#dark#palette.inactive_modified = { - \ 'airline_c': [ '#875faf' , '' , 97 , '' , '' ] , - \ } - - -" Accents are used to give parts within a section a slightly different look or -" color. Here we are defining a "red" accent, which is used by the 'readonly' -" part by default. Only the foreground colors are specified, so the background -" colors are automatically extracted from the underlying section colors. What -" this means is that regardless of which section the part is defined in, it -" will be red instead of the section's foreground color. You can also have -" multiple parts with accents within a section. -let g:airline#themes#dark#palette.accents = { - \ 'red': [ '#ff0000' , '' , 160 , '' ] - \ } - - -" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp -" variable so that related functionality is loaded iff the user is using -" ctrlp. Note that this is optional, and if you do not define ctrlp colors -" they will be chosen automatically from the existing palette. -if !get(g:, 'loaded_ctrlp', 0) - finish -endif -let g:airline#themes#dark#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ [ '#d7d7ff' , '#5f00af' , 189 , 55 , '' ], - \ [ '#ffffff' , '#875fd7' , 231 , 98 , '' ], - \ [ '#5f00af' , '#ffffff' , 55 , 231 , 'bold' ]) - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/hybrid.vim b/.vim/bundle/vim-airline/autoload/airline/themes/hybrid.vim deleted file mode 100644 index b0df844..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/hybrid.vim +++ /dev/null @@ -1,58 +0,0 @@ -" vim-airline companion theme of Hybrid -" (https://github.com/w0ng/vim-hybrid) - -let g:airline#themes#hybrid#palette = {} - -function! airline#themes#hybrid#refresh() - let s:N1 = airline#themes#get_highlight('DiffAdd') - let s:N2 = airline#themes#get_highlight('CursorLine') - let s:N3 = airline#themes#get_highlight('PMenu') - let g:airline#themes#hybrid#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) - - let modified_group = airline#themes#get_highlight2(['Text', 'fg'], ['SpellRare', 'bg'], 'bold') - let g:airline#themes#hybrid#palette.normal_modified = { - \ 'airline_c': airline#themes#get_highlight2(['Text', 'fg'], ['SpellRare', 'bg'], 'bold') - \ } - - let warning_group = airline#themes#get_highlight('SpellRare') - let g:airline#themes#hybrid#palette.normal.airline_warning = warning_group - let g:airline#themes#hybrid#palette.normal_modified.airline_warning = warning_group - - let s:I1 = airline#themes#get_highlight2(['Text', 'fg'], ['DiffText', 'bg'], 'bold') - let s:I2 = airline#themes#get_highlight2(['Text', 'fg'], ['SpellLocal', 'bg'], 'bold') - let s:I3 = airline#themes#get_highlight2(['Text', 'fg'], ['SpellCap', 'bg'], 'bold') - let g:airline#themes#hybrid#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) - let g:airline#themes#hybrid#palette.insert_modified = g:airline#themes#hybrid#palette.normal_modified - let g:airline#themes#hybrid#palette.insert.airline_warning = g:airline#themes#hybrid#palette.normal.airline_warning - let g:airline#themes#hybrid#palette.insert_modified.airline_warning = g:airline#themes#hybrid#palette.normal_modified.airline_warning - - let s:R1 = airline#themes#get_highlight('DiffChange') - let s:R2 = s:N2 - let s:R3 = s:N3 - let g:airline#themes#hybrid#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) - let replace_group = airline#themes#get_highlight('SpellRare') - let g:airline#themes#hybrid#palette.replace_modified = g:airline#themes#hybrid#palette.normal_modified - let g:airline#themes#hybrid#palette.replace.airline_warning = g:airline#themes#hybrid#palette.normal.airline_warning - let g:airline#themes#hybrid#palette.replace_modified.airline_warning = g:airline#themes#hybrid#palette.replace_modified.airline_warning - - let s:V1 = airline#themes#get_highlight2(['Text', 'fg'], ['Folded', 'bg'], 'bold') - let s:V2 = airline#themes#get_highlight2(['Text', 'fg'], ['DiffDelete', 'bg'], 'bold') - let s:V3 = airline#themes#get_highlight2(['Text', 'fg'], ['Error', 'bg'], 'bold') - let g:airline#themes#hybrid#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) - let g:airline#themes#hybrid#palette.visual_modified = g:airline#themes#hybrid#palette.normal_modified - let g:airline#themes#hybrid#palette.visual.airline_warning = g:airline#themes#hybrid#palette.normal.airline_warning - let g:airline#themes#hybrid#palette.visual_modified.airline_warning = g:airline#themes#hybrid#palette.normal_modified.airline_warning - - let s:IA = airline#themes#get_highlight('StatusLineNC') - let g:airline#themes#hybrid#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) - let g:airline#themes#hybrid#palette.inactive_modified = { - \ 'airline_c': [ modified_group[0], '', modified_group[2], '', '' ] - \ } - - let g:airline#themes#hybrid#palette.accents = { - \ 'red': airline#themes#get_highlight('Constant'), - \ } - -endfunction - -call airline#themes#hybrid#refresh() diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/jellybeans.vim b/.vim/bundle/vim-airline/autoload/airline/themes/jellybeans.vim deleted file mode 100644 index 201068c..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/jellybeans.vim +++ /dev/null @@ -1,52 +0,0 @@ -let g:airline#themes#jellybeans#palette = {} - -" The name of the function must be 'refresh'. -function! airline#themes#jellybeans#refresh() - " This theme is an example of how to use helper functions to extract highlight - " values from the corresponding colorscheme. It was written in a hurry, so it - " is very minimalistic. If you are a jellybeans user and want to make updates, - " please send pull requests. - - " Here are examples where the entire highlight group is copied and an airline - " compatible color array is generated. - let s:N1 = airline#themes#get_highlight('DbgCurrent', 'bold') - let s:N2 = airline#themes#get_highlight('Folded') - let s:N3 = airline#themes#get_highlight('NonText') - - let g:airline#themes#jellybeans#palette.accents = { - \ 'red': airline#themes#get_highlight('Constant'), - \ } - - let g:airline#themes#jellybeans#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) - let g:airline#themes#jellybeans#palette.normal_modified = { - \ 'airline_c': [ '#ffb964', '', 215, '', '' ] - \ } - - let s:I1 = airline#themes#get_highlight('DiffAdd', 'bold') - let s:I2 = s:N2 - let s:I3 = s:N3 - let g:airline#themes#jellybeans#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) - let g:airline#themes#jellybeans#palette.insert_modified = g:airline#themes#jellybeans#palette.normal_modified - - let s:R1 = airline#themes#get_highlight('WildMenu', 'bold') - let s:R2 = s:N2 - let s:R3 = s:N3 - let g:airline#themes#jellybeans#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) - let g:airline#themes#jellybeans#palette.replace_modified = g:airline#themes#jellybeans#palette.normal_modified - - " Sometimes you want to mix and match colors from different groups, you can do - " that with this method. - let s:V1 = airline#themes#get_highlight2(['TabLineSel', 'bg'], ['DiffDelete', 'bg'], 'bold') - let s:V2 = s:N2 - let s:V3 = s:N3 - let g:airline#themes#jellybeans#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) - let g:airline#themes#jellybeans#palette.visual_modified = g:airline#themes#jellybeans#palette.normal_modified - - " And of course, you can always do it manually as well. - let s:IA = [ '#444444', '#1c1c1c', 237, 234 ] - let g:airline#themes#jellybeans#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) - let g:airline#themes#jellybeans#palette.inactive_modified = g:airline#themes#jellybeans#palette.normal_modified -endfunction - -call airline#themes#jellybeans#refresh() - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/kalisi.vim b/.vim/bundle/vim-airline/autoload/airline/themes/kalisi.vim deleted file mode 100644 index 4ff94f5..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/kalisi.vim +++ /dev/null @@ -1,57 +0,0 @@ -" -" Colorscheme: Kalisi for airline. Inspired by powerline. -" 06.02.2014 Arthur Jaron -" hifreeo@gmail.com -" - -" Insert mode -let s:I1 = [ '#ffffff' , '#e80000' , 23 , 231 ] -let s:I2 = [ '#c5c5c5' , '#901010' , 74 , 31 ] -let s:I3 = [ '#c5c5c5' , '#500000' , 117 , 24 ] - -" Visual mode -let s:V1 = [ '#005f5f' , '#ffffff' , 23 , 231 ] -let s:V2 = [ '#5fafd7' , '#0087af' , 74 , 31 ] -let s:V3 = [ '#87d7ff' , '#005f87' , 117 , 24 ] - -" Replace mode -let s:R1 = [ '#8e00da' , '#ffffff' , 23 , 231 ] -let s:R2 = [ '#8e00da' , '#ce99ff' , 74 , 31 ] -let s:R3 = [ '#ce99ff' , '#8e00da' , 117 , 24 ] - -let g:airline#themes#kalisi#palette = {} - -function! airline#themes#kalisi#refresh() - - " Normal mode - let s:N1 = [ '#005f00' , '#afd700' , 22 , 148 ] - let s:N2 = [ '#afd700' , '#005f00' , 247 , 236 ] - let s:N3 = airline#themes#get_highlight('StatusLine') - - " Tabline Plugin - let g:airline#themes#kalisi#palette.tabline = { - \ 'airline_tab': ['#A6DB29', '#005f00', 231, 29, ''], - \ 'airline_tabsel': ['#404042', '#A6DB29', 231, 36, ''], - \ 'airline_tabtype': ['#afd700', '#005f00', 231, 36, ''], - \ 'airline_tabfill': ['#ffffff', '#000000', 231, 23, ''], - \ 'airline_tabhid': ['#c5c5c5', '#404042', 231, 88, ''], - \ 'airline_tabmod': ['#ffffff', '#F1266F', 231, 88, ''], - \ } - - let g:airline#themes#kalisi#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) - let g:airline#themes#kalisi#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) - let g:airline#themes#kalisi#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) - let g:airline#themes#kalisi#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) - - " Inactive Mode - " let s:IA = [ '#c5c5c5' , '#505052' , 239 , 234 , '' ] - let s:IA = airline#themes#get_highlight('StatusLineNC') - let g:airline#themes#kalisi#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) - let g:airline#themes#kalisi#palette.inactive_modified = { - \ 'statusline': [ '#F1266F' , '' , '53' , '' , '' ] , - \ } - -endfunction - -call airline#themes#kalisi#refresh() - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/kolor.vim b/.vim/bundle/vim-airline/autoload/airline/themes/kolor.vim deleted file mode 100644 index e61f56f..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/kolor.vim +++ /dev/null @@ -1,59 +0,0 @@ -let g:airline#themes#kolor#palette = {} - -let s:N1 = [ '#e2e2e2' , '#4f3598' , 254 , 56 ] -let s:N2 = [ '#ff5fd7' , '#242322' , 206 , 234 ] -let s:N3 = [ '#e2e2e2' , '#4a4a4a' , 254 , 238 ] - -let g:airline#themes#kolor#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) - -let g:airline#themes#kolor#palette.normal_modified = { - \ 'airline_c': [ '#e2e2e2' , '#4f3598' , 254 , 56 , '' ] , - \ } - - -let s:I1 = [ '#242322' , '#7eaefd' , 234 , 111 ] -let s:I2 = [ '#75d7d8' , '#242322' , 80 , 234 ] -let s:I3 = [ '#e2e2e2' , '#4a4a4a' , 254 , 238 ] -let g:airline#themes#kolor#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#kolor#palette.insert_modified = { - \ 'airline_c': [ '#242322' , '#7eaefd' , 234 , 111 , '' ] , - \ } - - -let g:airline#themes#kolor#palette.replace = copy(g:airline#themes#kolor#palette.insert) -let g:airline#themes#kolor#palette.replace.airline_a = [ s:I2[0] , '#005154' , s:I2[2] , 23 , '' ] -let g:airline#themes#kolor#palette.replace_modified = { - \ 'airline_c': [ '#e2e2e2' , '#005154' , 254 , 23 , '' ] , - \ } - - -let s:V1 = [ '#242322' , '#e6987a' , 234 , 180 ] -let s:V2 = [ '#dbc570' , '#242322' , 186 , 234 ] -let s:V3 = [ '#e2e2e2' , '#4a4a4a' , 254 , 238 ] -let g:airline#themes#kolor#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) -let g:airline#themes#kolor#palette.visual_modified = { - \ 'airline_c': [ '#242322' , '#e6987a' , 234 , 180 , '' ] , - \ } - - -let s:IA1 = [ '#b2b2b2' , '#4a4a4a' , 247 , 238 , '' ] -let s:IA2 = [ '#b2b2b2' , '#4a4a4a' , 247 , 238 ] -let s:IA3 = [ '#b2b2b2' , '#4a4a4a' , 247 , 238 , '' ] -let g:airline#themes#kolor#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) -let g:airline#themes#kolor#palette.inactive_modified = { - \ 'airline_c': [ '#875faf' , '' , 97 , '' , '' ] , - \ } - - -let g:airline#themes#kolor#palette.accents = { - \ 'red': [ '#d96e8a' , '' , 168 , '' ] - \ } - - -if !get(g:, 'loaded_ctrlp', 0) - finish -endif -let g:airline#themes#kolor#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ [ '#e2e2e2' , '#4a4a4a' , 254 , 238 , '' ], - \ [ '#e2e2e2' , '#242322' , 254 , 234 , '' ], - \ [ '#e2e2e2' , '#4f3598' , 254 , 56 , 'bold' ]) diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/laederon.vim b/.vim/bundle/vim-airline/autoload/airline/themes/laederon.vim deleted file mode 100644 index 115c107..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/laederon.vim +++ /dev/null @@ -1,62 +0,0 @@ -" vim-airline companion theme of Laederon -" (https://github.com/Donearm/Laederon) - -" Normal mode -let s:N1 = [ '#1a1a18' , '#ffffff' , 232 , 255 ] " blackestgravel & snow -let s:N2 = [ '#ffffff' , '#44403a' , 255, 238 ] " snow & deepgravel -let s:N3 = [ '#90a680' , '#2e2d2a' , 64, 235 ] " dilutedpaint & darkgravel -let s:N4 = [ '#777470' , 240 ] " gravel - -" Insert mode -let s:I1 = [ '#1a1a18' , '#1693a5' , 232 , 62 ] " blackestgravel & crystallake -let s:I2 = [ '#515744' , '#44403a' , 101 , 238 ] " lichen & deepgravel -let s:I3 = [ '#1693a5' , '#2e2d2a' , 39 , 235 ] " crystallake & darkgravel - -" Visual mode -let s:V1 = [ '#1a1a18' , '#ab3e5d' , 232 , 161 ] " blackestgravel & raspberry -let s:V2 = [ '#000000' , '#908571' , 16 , 252 ] " coal & winterterrain -let s:V3 = [ '#ab3e5d' , '#8c7f77' , 161 , 245 ] " raspberry & wetcoldterrain -let s:V4 = [ '#515744' , 101 ] " lichen - -" Replace mode -let s:RE = [ '#233e09' , 22 ] " oakleaf - -" Paste mode -let s:PA = [ '#ab3e5d' , 161 ] " raspberry - -let s:IA = [ s:N2[1] , s:N3[1] , s:N2[3], s:N3[3] , '' ] - - -let g:airline#themes#laederon#palette = {} - -let g:airline#themes#laederon#palette.accents = { - \ 'red': [ '#ef393d' , '' , 196 , '' , '' ] - \ } - -let g:airline#themes#laederon#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) -let g:airline#themes#laederon#palette.normal_modified = { - \ 'airline_a' : [ s:N2[0] , s:N4[0] , s:N2[2] , s:N4[1] , '' ] , - \ 'airline_c' : [ s:V1[1] , s:N2[1] , s:V1[3] , s:N2[3] , '' ] } - - -let g:airline#themes#laederon#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#laederon#palette.insert_modified = { - \ 'airline_c' : [ s:V2[1] , s:N2[1] , s:V2[3] , s:N2[3] , '' ] } -let g:airline#themes#laederon#palette.insert_paste = { - \ 'airline_a' : [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] } - - -let g:airline#themes#laederon#palette.replace = copy(airline#themes#laederon#palette.insert) -let g:airline#themes#laederon#palette.replace.airline_a = [ s:I1[0] , s:RE[0] , s:I1[2] , s:RE[1] , '' ] -let g:airline#themes#laederon#palette.replace_modified = g:airline#themes#laederon#palette.insert_modified - - -let g:airline#themes#laederon#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) -let g:airline#themes#laederon#palette.visual_modified = { - \ 'airline_c' : [ s:V3[0] , s:V4[0] , s:V3[2] , s:V4[1] , '' ] } - - -let g:airline#themes#laederon#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) -let g:airline#themes#laederon#palette.inactive_modified = { - \ 'airline_c' : [ s:V1[1] , '' , s:V1[3] , '' , '' ] } - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/light.vim b/.vim/bundle/vim-airline/autoload/airline/themes/light.vim deleted file mode 100644 index d9fe844..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/light.vim +++ /dev/null @@ -1,45 +0,0 @@ -let g:airline#themes#light#palette = {} - -let s:N1 = [ '#ffffff' , '#005fff' , 255 , 27 ] -let s:N2 = [ '#000087' , '#00dfff' , 18 , 45 ] -let s:N3 = [ '#005fff' , '#afffff' , 27 , 159 ] -let g:airline#themes#light#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) -let g:airline#themes#light#palette.normal_modified = { - \ 'airline_c': [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] , - \ } - - -let s:I1 = [ '#ffffff' , '#00875f' , 255 , 29 ] -let s:I2 = [ '#005f00' , '#00df87' , 22 , 42 ] -let s:I3 = [ '#005f5f' , '#afff87' , 23 , 156 ] -let g:airline#themes#light#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#light#palette.insert_modified = { - \ 'airline_c': [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] , - \ } -let g:airline#themes#light#palette.insert_paste = { - \ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] , - \ } - - -let g:airline#themes#light#palette.replace = copy(g:airline#themes#light#palette.insert) -let g:airline#themes#light#palette.replace.airline_a = [ s:I2[0] , '#ff0000' , s:I1[2] , 196 , '' ] -let g:airline#themes#light#palette.replace_modified = g:airline#themes#light#palette.insert_modified - - -let s:V1 = [ '#ffffff' , '#ff5f00' , 255 , 202 ] -let s:V2 = [ '#5f0000' , '#ffaf00' , 52 , 214 ] -let s:V3 = [ '#df5f00' , '#ffff87' , 166 , 228 ] -let g:airline#themes#light#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) -let g:airline#themes#light#palette.visual_modified = { - \ 'airline_c': [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] , - \ } - - -let s:IA1 = [ '#666666' , '#b2b2b2' , 242 , 249 , '' ] -let s:IA2 = [ '#8a8a8a' , '#d0d0d0' , 245 , 252 , '' ] -let s:IA3 = [ '#a8a8a8' , '#ffffff' , 248 , 255 , '' ] -let g:airline#themes#light#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) -let g:airline#themes#light#palette.inactive_modified = { - \ 'airline_c': [ '#df0000' , '' , 160 , '' , '' ] , - \ } - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/lucius.vim b/.vim/bundle/vim-airline/autoload/airline/themes/lucius.vim deleted file mode 100644 index e386900..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/lucius.vim +++ /dev/null @@ -1,56 +0,0 @@ -let g:airline#themes#lucius#palette = {} - -function! airline#themes#lucius#refresh() - - let s:N1 = airline#themes#get_highlight('StatusLine') - let s:N2 = airline#themes#get_highlight('Folded') - let s:N3 = airline#themes#get_highlight('CursorLine') - let g:airline#themes#lucius#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) - - let modified_group = airline#themes#get_highlight('Statement') - let g:airline#themes#lucius#palette.normal_modified = { - \ 'airline_c': [modified_group[0], '', modified_group[2], '', ''] - \ } - - let warning_group = airline#themes#get_highlight('DiffDelete') - let g:airline#themes#lucius#palette.normal.airline_warning = warning_group - let g:airline#themes#lucius#palette.normal_modified.airline_warning = warning_group - - let s:I1 = airline#themes#get_highlight('DiffAdd') - let s:I2 = s:N2 - let s:I3 = s:N3 - let g:airline#themes#lucius#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) - let g:airline#themes#lucius#palette.insert_modified = g:airline#themes#lucius#palette.normal_modified - let g:airline#themes#lucius#palette.insert.airline_warning = g:airline#themes#lucius#palette.normal.airline_warning - let g:airline#themes#lucius#palette.insert_modified.airline_warning = g:airline#themes#lucius#palette.normal_modified.airline_warning - - let s:R1 = airline#themes#get_highlight('DiffChange') - let s:R2 = s:N2 - let s:R3 = s:N3 - let g:airline#themes#lucius#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) - let g:airline#themes#lucius#palette.replace_modified = g:airline#themes#lucius#palette.normal_modified - let g:airline#themes#lucius#palette.replace.airline_warning = g:airline#themes#lucius#palette.normal.airline_warning - let g:airline#themes#lucius#palette.replace_modified.airline_warning = g:airline#themes#lucius#palette.normal_modified.airline_warning - - let s:V1 = airline#themes#get_highlight('Cursor') - let s:V2 = s:N2 - let s:V3 = s:N3 - let g:airline#themes#lucius#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) - let g:airline#themes#lucius#palette.visual_modified = g:airline#themes#lucius#palette.normal_modified - let g:airline#themes#lucius#palette.visual.airline_warning = g:airline#themes#lucius#palette.normal.airline_warning - let g:airline#themes#lucius#palette.visual_modified.airline_warning = g:airline#themes#lucius#palette.normal_modified.airline_warning - - let s:IA = airline#themes#get_highlight('StatusLineNC') - let g:airline#themes#lucius#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) - let g:airline#themes#lucius#palette.inactive_modified = { - \ 'airline_c': [ modified_group[0], '', modified_group[2], '', '' ] - \ } - - let g:airline#themes#lucius#palette.accents = { - \ 'red': airline#themes#get_highlight('Constant'), - \ } - -endfunction - -call airline#themes#lucius#refresh() - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/luna.vim b/.vim/bundle/vim-airline/autoload/airline/themes/luna.vim deleted file mode 100644 index 879d862..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/luna.vim +++ /dev/null @@ -1,92 +0,0 @@ -" vim-airline companion theme of Luna -" (https://github.com/Pychimp/vim-luna) - -let g:airline#themes#luna#palette = {} - -let g:airline#themes#luna#palette.accents = { - \ 'red': [ '#ffffff' , '' , 231 , '' , '' ], - \ } - - -let s:N1 = [ '#ffffff' , '#005252' , 231 , 36 ] -let s:N2 = [ '#ffffff' , '#003f3f' , 231 , 29 ] -let s:N3 = [ '#ffffff' , '#002b2b' , 231 , 23 ] -let g:airline#themes#luna#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) -let g:airline#themes#luna#palette.normal_modified = { - \ 'airline_c': [ '#ffffff' , '#450000' , 231 , 52 , '' ] , - \ } - - -let s:I1 = [ '#ffffff' , '#789f00' , 231 , 106 ] -let s:I2 = [ '#ffffff' , '#003f3f' , 231 , 29 ] -let s:I3 = [ '#ffffff' , '#002b2b' , 231 , 23 ] -let g:airline#themes#luna#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#luna#palette.insert_modified = { - \ 'airline_c': [ '#ffffff' , '#005e5e' , 255 , 52 , '' ] , - \ } -let g:airline#themes#luna#palette.insert_paste = { - \ 'airline_a': [ s:I1[0] , '#789f00' , s:I1[2] , 106 , '' ] , - \ } - - -let g:airline#themes#luna#palette.replace = copy(g:airline#themes#luna#palette.insert) -let g:airline#themes#luna#palette.replace.airline_a = [ s:I2[0] , '#920000' , s:I2[2] , 88 , '' ] -let g:airline#themes#luna#palette.replace_modified = g:airline#themes#luna#palette.insert_modified - -let s:V1 = [ '#ffff9a' , '#ff8036' , 222 , 208 ] -let s:V2 = [ '#ffffff' , '#003f3f' , 231 , 29 ] -let s:V3 = [ '#ffffff' , '#002b2b' , 231 , 23 ] -let g:airline#themes#luna#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) -let g:airline#themes#luna#palette.visual_modified = { - \ 'airline_c': [ '#ffffff' , '#450000' , 231 , 52 , '' ] , - \ } - -let s:IA = [ '#4e4e4e' , '#002b2b' , 59 , 23 , '' ] -let g:airline#themes#luna#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) -let g:airline#themes#luna#palette.inactive_modified = { - \ 'airline_c': [ '#e20000' , '' , 166 , '' , '' ] , - \ } - -let g:airline#themes#luna#palette.tabline = { - \ 'airline_tab': ['#2aa198', '#003f3f', 231, 29, ''], - \ 'airline_tabsel': ['#ffffff', '#2e8b57', 231, 36, ''], - \ 'airline_tabtype': ['#ffffff', '#005252', 231, 36, ''], - \ 'airline_tabfill': ['#ffffff', '#002b2b', 231, 23, ''], - \ 'airline_tabmod': ['#ffffff', '#780000', 231, 88, ''], - \ } - -let s:WI = [ '#ffffff', '#5f0000', 231, 88 ] -let g:airline#themes#luna#palette.normal.airline_warning = [ - \ s:WI[0], s:WI[1], s:WI[2], s:WI[3] - \ ] - -let g:airline#themes#luna#palette.normal_modified.airline_warning = - \ g:airline#themes#luna#palette.normal.airline_warning - -let g:airline#themes#luna#palette.insert.airline_warning = - \ g:airline#themes#luna#palette.normal.airline_warning - -let g:airline#themes#luna#palette.insert_modified.airline_warning = - \ g:airline#themes#luna#palette.normal.airline_warning - -let g:airline#themes#luna#palette.visual.airline_warning = - \ g:airline#themes#luna#palette.normal.airline_warning - -let g:airline#themes#luna#palette.visual_modified.airline_warning = - \ g:airline#themes#luna#palette.normal.airline_warning - -let g:airline#themes#luna#palette.replace.airline_warning = - \ g:airline#themes#luna#palette.normal.airline_warning - -let g:airline#themes#luna#palette.replace_modified.airline_warning = - \ g:airline#themes#luna#palette.normal.airline_warning - - -if !get(g:, 'loaded_ctrlp', 0) - finish -endif -let g:airline#themes#luna#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ [ '#ffffff' , '#002b2b' , 231 , 23 , '' ] , - \ [ '#ffffff' , '#005252' , 231 , 36 , '' ] , - \ [ '#ffffff' , '#973d45' , 231 , 95 , '' ] ) - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/molokai.vim b/.vim/bundle/vim-airline/autoload/airline/themes/molokai.vim deleted file mode 100644 index 1998f00..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/molokai.vim +++ /dev/null @@ -1,65 +0,0 @@ -let g:airline#themes#molokai#palette = {} - -let g:airline#themes#molokai#palette.accents = { - \ 'red': [ '#66d9ef' , '' , 81 , '' , '' ], - \ } - - -" Normal mode -let s:N1 = [ '#080808' , '#e6db74' , 232 , 144 ] " mode -let s:N2 = [ '#f8f8f0' , '#232526' , 253 , 16 ] " info -let s:N3 = [ '#f8f8f0' , '#465457' , 253 , 67 ] " statusline - -let g:airline#themes#molokai#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) -let g:airline#themes#molokai#palette.normal_modified = { - \ 'airline_c': [ '#080808' , '#e6db74' , 232 , 144 , '' ] , - \ } - - -" Insert mode -let s:I1 = [ '#080808' , '#66d9ef' , 232 , 81 ] -let s:I2 = [ '#f8f8f0' , '#232526' , 253 , 16 ] -let s:I3 = [ '#f8f8f0' , '#465457' , 253 , 67 ] - -let g:airline#themes#molokai#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#molokai#palette.insert_modified = { - \ 'airline_c': [ '#080808' , '#66d9ef' , 232 , 81 , '' ] , - \ } - - -" Replace mode -let g:airline#themes#molokai#palette.replace = copy(g:airline#themes#molokai#palette.insert) -let g:airline#themes#molokai#palette.replace.airline_a = [ s:I1[0] , '#ef5939' , s:I1[2] , 166 , '' ] -let g:airline#themes#molokai#palette.replace_modified = { - \ 'airline_c': [ '#080808' , '#ef5939' , 232 , 166 , '' ] , - \ } - - -" Visual mode -let s:V1 = [ '#080808' , '#fd971f' , 232 , 208 ] -let s:V2 = [ '#f8f8f0' , '#232526' , 253 , 16 ] -let s:V3 = [ '#f8f8f0' , '#465457' , 253 , 67 ] - -let g:airline#themes#molokai#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) -let g:airline#themes#molokai#palette.visual_modified = { - \ 'airline_c': [ '#080808' , '#fd971f' , 232 , 208 , '' ] , - \ } - - -" Inactive -let s:IA = [ '#1b1d1e' , '#465457' , 233 , 67 , '' ] -let g:airline#themes#molokai#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) -let g:airline#themes#molokai#palette.inactive_modified = { - \ 'airline_c': [ '#f8f8f0' , '' , 253 , '' , '' ] , - \ } - - -" CtrlP -if !get(g:, 'loaded_ctrlp', 0) - finish -endif -let g:airline#themes#molokai#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ [ '#f8f8f0' , '#465457' , 253 , 67 , '' ] , - \ [ '#f8f8f0' , '#232526' , 253 , 16 , '' ] , - \ [ '#080808' , '#e6db74' , 232 , 144 , 'bold' ] ) - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/monochrome.vim b/.vim/bundle/vim-airline/autoload/airline/themes/monochrome.vim deleted file mode 100644 index 7dd1a17..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/monochrome.vim +++ /dev/null @@ -1,15 +0,0 @@ -let g:airline#themes#monochrome#palette = {} - -function! airline#themes#monochrome#refresh() - let s:SL = airline#themes#get_highlight('StatusLine') - let g:airline#themes#monochrome#palette.normal = airline#themes#generate_color_map(s:SL, s:SL, s:SL) - let g:airline#themes#monochrome#palette.insert = g:airline#themes#monochrome#palette.normal - let g:airline#themes#monochrome#palette.replace = g:airline#themes#monochrome#palette.normal - let g:airline#themes#monochrome#palette.visual = g:airline#themes#monochrome#palette.normal - - let s:SLNC = airline#themes#get_highlight('StatusLineNC') - let g:airline#themes#monochrome#palette.inactive = airline#themes#generate_color_map(s:SLNC, s:SLNC, s:SLNC) -endfunction - -call airline#themes#monochrome#refresh() - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/murmur.vim b/.vim/bundle/vim-airline/autoload/airline/themes/murmur.vim deleted file mode 100644 index adebf3b..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/murmur.vim +++ /dev/null @@ -1,46 +0,0 @@ -let g:airline#themes#murmur#palette = {} - -let s:termbg = 237 " Background for branch and file format blocks -let s:termbg2= 234 " Background for middle block -let s:normalbg= 27 " Background for normal mode and file position blocks -let s:insertbg= 70 " Background for insert mode and file position blocks -let s:visualbg= 166 " Background for visual mode and file position blocks -let s:replacebg=88 " Background for replace mode and file position blocks -let s:alert= 88 " Modefied file alert color - -let s:BB = ['#AFAF87', '#5F5F5F', 144, s:termbg] " Branch and file format blocks - -let s:N1 = ['#FFFFFF', '#5F87FF', 15, s:normalbg] " Outside blocks in normal mode -let s:N2 = ['#AFAF87', '#5F5F5F', 39, s:termbg2] " Middle block -let g:airline#themes#murmur#palette.normal = airline#themes#generate_color_map(s:N1, s:BB, s:N2) -let g:airline#themes#murmur#palette.normal_modified = {'airline_c': ['#ffffff', '#5f005f', s:alert, s:termbg2, 'bold'] ,} - -let s:I1 = ['#FFFFFF', '#87AF5F', 15, s:insertbg] " Outside blocks in insert mode -let s:I2 = ['#AFAF87', '#5F5F5F', s:insertbg, s:termbg2] " Middle block -let g:airline#themes#murmur#palette.insert = airline#themes#generate_color_map(s:I1, s:BB, s:I2) -let g:airline#themes#murmur#palette.insert_modified = {'airline_c': ['#AFAF87', '#5F5F5F', s:alert, s:termbg2, 'bold'] ,} - -let s:R1 = ['#FFFFFF', '#870000', 15, s:replacebg] " Outside blocks in replace mode -let s:R2 = ['#AFAF87', '#5F5F5F', 255, s:termbg2] " Middle block -let g:airline#themes#murmur#palette.replace = airline#themes#generate_color_map(s:R1, s:BB, s:R2) -let g:airline#themes#murmur#palette.replace_modified = {'airline_c': ['#AFAF87', '#5f005f', s:alert, s:termbg2, 'bold'] ,} - -let s:V1 = ['#FFFFFF', '#AF5F00', 15, s:visualbg] " Outside blocks in visual mode -let s:V2 = ['#AFAF87', '#5F5F5F', s:visualbg, s:termbg2] " Middle block -let g:airline#themes#murmur#palette.visual = airline#themes#generate_color_map(s:V1, s:BB, s:V2) -let g:airline#themes#murmur#palette.visual_modified = {'airline_c': [ '#AFAF87', '#5f005f', s:alert, s:termbg2, 'bold'] ,} - -" Inactive mode -let s:IA1 = ['#4E4E4E', '#1C1C1C', 239, 234, ''] -let s:IA2 = ['#4E4E4E', '#1C1C1C', 239, 234, ''] -let s:IA3 = ['#4E4E4E', '#1C1C1C', 239, 234, ''] -let g:airline#themes#murmur#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) - -" CtrlP plugin colors -if !get(g:, 'loaded_ctrlp', 0) - finish -endif -let g:airline#themes#murmur#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ ['#FFFFFF', '#5F87FF', 15, s:normalbg, ''], - \ ['#AFAF87', '#5F5F5F', 144, s:termbg, ''], - \ ['#AFAF87', '#5F5F5F', 39, s:termbg2, 'bold']) diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/powerlineish.vim b/.vim/bundle/vim-airline/autoload/airline/themes/powerlineish.vim deleted file mode 100644 index d550e11..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/powerlineish.vim +++ /dev/null @@ -1,46 +0,0 @@ -" Theme to mimic the default colorscheme of powerline -" Not 100% the same so it's powerline... ish. -" -" Differences from default powerline: -" * Paste indicator isn't colored different -" * Far right hand section matches the color of the mode indicator -" -" Differences from other airline themes: -" * No color differences when you're in a modified buffer -" * Visual mode only changes the mode section. Otherwise -" it appears the same as normal mode - -" Normal mode " fg & bg -let s:N1 = [ '#005f00' , '#afd700' , 22 , 148 ] " darkestgreen & brightgreen -let s:N2 = [ '#9e9e9e' , '#303030' , 247 , 236 ] " gray8 & gray2 -let s:N3 = [ '#ffffff' , '#121212' , 231 , 233 ] " white & gray4 - -" Insert mode " fg & bg -let s:I1 = [ '#005f5f' , '#ffffff' , 23 , 231 ] " darkestcyan & white -let s:I2 = [ '#5fafd7' , '#0087af' , 74 , 31 ] " darkcyan & darkblue -let s:I3 = [ '#87d7ff' , '#005f87' , 117 , 24 ] " mediumcyan & darkestblue - -" Visual mode " fg & bg -let s:V1 = [ '#080808' , '#ffaf00' , 232 , 214 ] " gray3 & brightestorange - -" Replace mode " fg & bg -let s:RE = [ '#ffffff' , '#d70000' , 231 , 160 ] " white & brightred - -let g:airline#themes#powerlineish#palette = {} - -let g:airline#themes#powerlineish#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) - -let g:airline#themes#powerlineish#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#powerlineish#palette.insert_replace = { - \ 'airline_a': [ s:RE[0] , s:I1[1] , s:RE[1] , s:I1[3] , '' ] } - -let g:airline#themes#powerlineish#palette.visual = { - \ 'airline_a': [ s:V1[0] , s:V1[1] , s:V1[2] , s:V1[3] , '' ] } - -let g:airline#themes#powerlineish#palette.replace = copy(airline#themes#powerlineish#palette.normal) -let g:airline#themes#powerlineish#palette.replace.airline_a = [ s:RE[0] , s:RE[1] , s:RE[2] , s:RE[3] , '' ] - - -let s:IA = [ s:N2[1] , s:N3[1] , s:N2[3] , s:N3[3] , '' ] -let g:airline#themes#powerlineish#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/serene.vim b/.vim/bundle/vim-airline/autoload/airline/themes/serene.vim deleted file mode 100644 index 9191c07..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/serene.vim +++ /dev/null @@ -1,41 +0,0 @@ -let g:airline#themes#serene#palette = {} - -let s:guibg = '#080808' -let s:termbg = 232 -let s:termsep = 236 -let s:guisep = '#303030' - -let s:N1 = [ '#00dfff' , s:guibg , 45 , s:termbg ] -let s:N2 = [ '#ff5f00' , s:guibg , 202 , s:termbg ] -let s:N3 = [ '#767676' , s:guibg , 7 , s:termbg ] - -let g:airline#themes#serene#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) -let g:airline#themes#serene#palette.normal_modified = { - \ 'airline_c': [ '#df0000' , s:guibg, 160 , s:termbg , '' ] , - \ } - -let s:I1 = [ '#5fff00' , s:guibg , 82 , s:termbg ] -let s:I2 = [ '#ff5f00' , s:guibg , 202 , s:termbg ] -let s:I3 = [ '#767676' , s:guibg , 7 , s:termbg ] -let g:airline#themes#serene#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#serene#palette.insert_modified = copy(g:airline#themes#serene#palette.normal_modified) -let g:airline#themes#serene#palette.insert_paste = { - \ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] , - \ } - -let g:airline#themes#serene#palette.replace = { - \ 'airline_a': [ s:I1[0] , '#af0000' , s:I1[2] , 124 , '' ] , - \ } -let g:airline#themes#serene#palette.replace_modified = copy(g:airline#themes#serene#palette.normal_modified) - -let s:V1 = [ '#dfdf00' , s:guibg , 184 , s:termbg ] -let s:V2 = [ '#ff5f00' , s:guibg , 202 , s:termbg ] -let s:V3 = [ '#767676' , s:guibg , 7 , s:termbg ] -let g:airline#themes#serene#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) -let g:airline#themes#serene#palette.visual_modified = copy(g:airline#themes#serene#palette.normal_modified) - -let s:IA = [ '#4e4e4e' , s:guibg , 239 , s:termbg , '' ] -let s:IA2 = [ '#4e4e4e' , s:guisep , 239 , s:termsep , '' ] -let g:airline#themes#serene#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA2, s:IA2) -let g:airline#themes#serene#palette.inactive_modified = copy(g:airline#themes#serene#palette.normal_modified) - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/simple.vim b/.vim/bundle/vim-airline/autoload/airline/themes/simple.vim deleted file mode 100644 index a111a1c..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/simple.vim +++ /dev/null @@ -1,46 +0,0 @@ -let g:airline#themes#simple#palette = {} - -let s:guibg = '#080808' -let s:guibg2 = '#1c1c1c' -let s:termbg = 232 -let s:termbg2= 234 - -let s:N1 = [ s:guibg , '#00dfff' , s:termbg , 45 ] -let s:N2 = [ '#ff5f00' , s:guibg2, 202 , s:termbg2 ] -let s:N3 = [ '#767676' , s:guibg, 243 , s:termbg] -let g:airline#themes#simple#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) -let g:airline#themes#simple#palette.normal_modified = { - \ 'airline_c': [ '#df0000' , s:guibg, 160 , s:termbg , '' ] , - \ } - - -let s:I1 = [ s:guibg, '#5fff00' , s:termbg , 82 ] -let s:I2 = [ '#ff5f00' , s:guibg2, 202 , s:termbg2 ] -let s:I3 = [ '#767676' , s:guibg, 243 , s:termbg ] -let g:airline#themes#simple#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#simple#palette.insert_modified = copy(g:airline#themes#simple#palette.normal_modified) -let g:airline#themes#simple#palette.insert_paste = { - \ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] , - \ } - - -let g:airline#themes#simple#palette.replace = { - \ 'airline_a': [ s:I1[0] , '#af0000' , s:I1[2] , 124 , '' ] , - \ } -let g:airline#themes#simple#palette.replace_modified = copy(g:airline#themes#simple#palette.normal_modified) - - -let s:V1 = [ s:guibg, '#dfdf00' , s:termbg , 184 ] -let s:V2 = [ '#ff5f00' , s:guibg2, 202 , s:termbg2 ] -let s:V3 = [ '#767676' , s:guibg, 243 , s:termbg ] -let g:airline#themes#simple#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) -let g:airline#themes#simple#palette.visual_modified = copy(g:airline#themes#simple#palette.normal_modified) - - -let s:IA = [ '#4e4e4e' , s:guibg , 239 , s:termbg , '' ] -let s:IA2 = [ '#4e4e4e' , s:guibg2 , 239 , s:termbg2 , '' ] -let g:airline#themes#simple#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA2, s:IA2) -let g:airline#themes#simple#palette.inactive_modified = { - \ 'airline_c': [ '#df0000', '', 160, '', '' ] , - \ } - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/sol.vim b/.vim/bundle/vim-airline/autoload/airline/themes/sol.vim deleted file mode 100644 index 89ea505..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/sol.vim +++ /dev/null @@ -1,90 +0,0 @@ -" vim-airline companion theme of Sol -" (https://github.com/Pychimp/vim-sol) - -let g:airline#themes#sol#palette = {} - -let g:airline#themes#sol#palette.accents = { - \ 'red': [ '#ffffff' , '' , 231 , '' , '' ], - \ } - -let s:N1 = [ '#343434' , '#a0a0a0' , 237 , 248 ] -let s:N2 = [ '#343434' , '#b3b3b3' , 237 , 250 ] -let s:N3 = [ '#343434' , '#c7c7c7' , 237 , 252 ] -let g:airline#themes#sol#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) -let g:airline#themes#sol#palette.normal_modified = { - \ 'airline_c': [ '#ffffff' , '#ff6868' , 237 , 209 , '' ] , - \ } - - -let s:I1 = [ '#eeeeee' , '#09643f' , 255 , 30 ] -let s:I2 = [ '#343434' , '#a3a3a3' , 237 , 249 ] -let s:I3 = [ '#343434' , '#b0b0b0' , 237 , 250 ] -let g:airline#themes#sol#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#sol#palette.insert_modified = { - \ 'airline_c': [ '#343434' , '#ffdbc7' , 237 , 216 , '' ] , - \ } -let g:airline#themes#sol#palette.insert_paste = { - \ 'airline_a': [ s:I1[0] , '#09643f' , s:I1[2] , 30 , '' ] , - \ } - - -let g:airline#themes#sol#palette.replace = copy(g:airline#themes#sol#palette.insert) -let g:airline#themes#sol#palette.replace.airline_a = [ s:I1[0] , '#ff2121' , s:I1[2] , 196 , '' ] -let g:airline#themes#sol#palette.replace.airline_z = [ s:I1[0] , '#ff2121' , s:I1[2] , 196 , '' ] -let g:airline#themes#sol#palette.replace_modified = g:airline#themes#sol#palette.insert_modified - -let s:V1 = [ '#ffff9a' , '#ff6003' , 222 , 202 ] -let s:V2 = [ '#343434' , '#a3a3a3' , 237 , 249 ] -let s:V3 = [ '#343434' , '#b0b0b0' , 237 , 250 ] -let g:airline#themes#sol#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) -let g:airline#themes#sol#palette.visual_modified = { - \ 'airline_c': [ '#343434' , '#ffdbc7' , 237 , 216 , '' ] , - \ } - -let s:IA = [ '#777777' , '#c7c7c7' , 244 , 251 , '' ] -let g:airline#themes#sol#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) -let g:airline#themes#sol#palette.inactive_modified = { - \ 'airline_c': [ '#ff3535' , '' , 203 , '' , '' ] , - \ } - -let g:airline#themes#sol#palette.tabline = { - \ 'airline_tab': ['#343434', '#b3b3b3', 237, 250, ''], - \ 'airline_tabsel': ['#ffffff', '#004b9a', 231, 31 , ''], - \ 'airline_tabtype': ['#343434', '#a0a0a0', 237, 248, ''], - \ 'airline_tabfill': ['#343434', '#c7c7c7', 237, 251, ''], - \ 'airline_tabmod': ['#343434', '#ffdbc7', 237, 216, ''], - \ } - -let s:WI = [ '#eeeeee', '#e33900', 255, 166 ] -let g:airline#themes#sol#palette.normal.airline_warning = [ - \ s:WI[0], s:WI[1], s:WI[2], s:WI[3] - \ ] - -let g:airline#themes#sol#palette.normal_modified.airline_warning = - \ g:airline#themes#sol#palette.normal.airline_warning - -let g:airline#themes#sol#palette.insert.airline_warning = - \ g:airline#themes#sol#palette.normal.airline_warning - -let g:airline#themes#sol#palette.insert_modified.airline_warning = - \ g:airline#themes#sol#palette.normal.airline_warning - -let g:airline#themes#sol#palette.visual.airline_warning = - \ g:airline#themes#sol#palette.normal.airline_warning - -let g:airline#themes#sol#palette.visual_modified.airline_warning = - \ g:airline#themes#sol#palette.normal.airline_warning - -let g:airline#themes#sol#palette.replace.airline_warning = - \ g:airline#themes#sol#palette.normal.airline_warning - -let g:airline#themes#sol#palette.replace_modified.airline_warning = - \ g:airline#themes#sol#palette.normal.airline_warning - -if !get(g:, 'loaded_ctrlp', 0) - finish -endif -let g:airline#themes#sol#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ [ '#343434' , '#c7c7c7' , 237 , 251 , '' ] , - \ [ '#343434' , '#b3b3b3' , 237 , 250 , '' ] , - \ [ '#eeeeee' , '#007fff' , 255 , 27 , '' ] ) diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/solarized.vim b/.vim/bundle/vim-airline/autoload/airline/themes/solarized.vim deleted file mode 100644 index 30ba47e..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/solarized.vim +++ /dev/null @@ -1,176 +0,0 @@ -let g:airline#themes#solarized#palette = {} - -function! airline#themes#solarized#refresh() - """""""""""""""""""""""""""""""""""""""""""""""" - " Options - """""""""""""""""""""""""""""""""""""""""""""""" - let s:background = get(g:, 'airline_solarized_bg', &background) - let s:ansi_colors = get(g:, 'solarized_termcolors', 16) != 256 && &t_Co >= 16 ? 1 : 0 - let s:tty = &t_Co == 8 - - """""""""""""""""""""""""""""""""""""""""""""""" - " Colors - """""""""""""""""""""""""""""""""""""""""""""""" - " Base colors - let s:base03 = {'t': s:ansi_colors ? 8 : (s:tty ? '0' : 234), 'g': '#002b36'} - let s:base02 = {'t': s:ansi_colors ? '0' : (s:tty ? '0' : 235), 'g': '#073642'} - let s:base01 = {'t': s:ansi_colors ? 10 : (s:tty ? '0' : 240), 'g': '#586e75'} - let s:base00 = {'t': s:ansi_colors ? 11 : (s:tty ? '7' : 241), 'g': '#657b83'} - let s:base0 = {'t': s:ansi_colors ? 12 : (s:tty ? '7' : 244), 'g': '#839496'} - let s:base1 = {'t': s:ansi_colors ? 14 : (s:tty ? '7' : 245), 'g': '#93a1a1'} - let s:base2 = {'t': s:ansi_colors ? 7 : (s:tty ? '7' : 254), 'g': '#eee8d5'} - let s:base3 = {'t': s:ansi_colors ? 15 : (s:tty ? '7' : 230), 'g': '#fdf6e3'} - let s:yellow = {'t': s:ansi_colors ? 3 : (s:tty ? '3' : 136), 'g': '#b58900'} - let s:orange = {'t': s:ansi_colors ? 9 : (s:tty ? '1' : 166), 'g': '#cb4b16'} - let s:red = {'t': s:ansi_colors ? 1 : (s:tty ? '1' : 160), 'g': '#dc322f'} - let s:magenta = {'t': s:ansi_colors ? 5 : (s:tty ? '5' : 125), 'g': '#d33682'} - let s:violet = {'t': s:ansi_colors ? 13 : (s:tty ? '5' : 61 ), 'g': '#6c71c4'} - let s:blue = {'t': s:ansi_colors ? 4 : (s:tty ? '4' : 33 ), 'g': '#268bd2'} - let s:cyan = {'t': s:ansi_colors ? 6 : (s:tty ? '6' : 37 ), 'g': '#2aa198'} - let s:green = {'t': s:ansi_colors ? 2 : (s:tty ? '2' : 64 ), 'g': '#859900'} - - """""""""""""""""""""""""""""""""""""""""""""""" - " Simple mappings - " NOTE: These are easily tweakable mappings. The actual mappings get - " the specific gui and terminal colors from the base color dicts. - """""""""""""""""""""""""""""""""""""""""""""""" - " Normal mode - if s:background == 'dark' - let s:N1 = [s:base3, s:base1, 'bold'] - let s:N2 = [s:base2, (s:tty ? s:base01 : s:base00), ''] - let s:N3 = [s:base01, s:base02, ''] - else - let s:N1 = [s:base2, s:base00, 'bold'] - let s:N2 = [(s:tty ? s:base01 : s:base2), s:base1, ''] - let s:N3 = [s:base1, s:base2, ''] - endif - let s:NF = [s:orange, s:N3[1], ''] - let s:NW = [s:base3, s:orange, ''] - if s:background == 'dark' - let s:NM = [s:base1, s:N3[1], ''] - let s:NMi = [s:base2, s:N3[1], ''] - else - let s:NM = [s:base01, s:N3[1], ''] - let s:NMi = [s:base02, s:N3[1], ''] - endif - - " Insert mode - let s:I1 = [s:N1[0], s:yellow, 'bold'] - let s:I2 = s:N2 - let s:I3 = s:N3 - let s:IF = s:NF - let s:IM = s:NM - - " Visual mode - let s:V1 = [s:N1[0], s:magenta, 'bold'] - let s:V2 = s:N2 - let s:V3 = s:N3 - let s:VF = s:NF - let s:VM = s:NM - - " Replace mode - let s:R1 = [s:N1[0], s:red, ''] - let s:R2 = s:N2 - let s:R3 = s:N3 - let s:RM = s:NM - let s:RF = s:NF - - " Inactive, according to VertSplit in solarized - " (bg dark: base00; bg light: base0) - if s:background == 'dark' - let s:IA = [s:base02, s:base00, ''] - else - let s:IA = [s:base2, s:base0, ''] - endif - - """""""""""""""""""""""""""""""""""""""""""""""" - " Actual mappings - " WARNING: Don't modify this section unless necessary. - """""""""""""""""""""""""""""""""""""""""""""""" - let s:NFa = [s:NF[0].g, s:NF[1].g, s:NF[0].t, s:NF[1].t, s:NF[2]] - let s:IFa = [s:IF[0].g, s:IF[1].g, s:IF[0].t, s:IF[1].t, s:IF[2]] - let s:VFa = [s:VF[0].g, s:VF[1].g, s:VF[0].t, s:VF[1].t, s:VF[2]] - let s:RFa = [s:RF[0].g, s:RF[1].g, s:RF[0].t, s:RF[1].t, s:RF[2]] - - let g:airline#themes#solarized#palette.accents = { - \ 'red': s:NFa, - \ } - - let g:airline#themes#solarized#palette.inactive = airline#themes#generate_color_map( - \ [s:IA[0].g, s:IA[1].g, s:IA[0].t, s:IA[1].t, s:IA[2]], - \ [s:IA[0].g, s:IA[1].g, s:IA[0].t, s:IA[1].t, s:IA[2]], - \ [s:IA[0].g, s:IA[1].g, s:IA[0].t, s:IA[1].t, s:IA[2]]) - let g:airline#themes#solarized#palette.inactive_modified = { - \ 'airline_c': [s:NMi[0].g, '', s:NMi[0].t, '', s:NMi[2]]} - - let g:airline#themes#solarized#palette.normal = airline#themes#generate_color_map( - \ [s:N1[0].g, s:N1[1].g, s:N1[0].t, s:N1[1].t, s:N1[2]], - \ [s:N2[0].g, s:N2[1].g, s:N2[0].t, s:N2[1].t, s:N2[2]], - \ [s:N3[0].g, s:N3[1].g, s:N3[0].t, s:N3[1].t, s:N3[2]]) - - let g:airline#themes#solarized#palette.normal.airline_warning = [ - \ s:NW[0].g, s:NW[1].g, s:NW[0].t, s:NW[1].t, s:NW[2]] - - let g:airline#themes#solarized#palette.normal_modified = { - \ 'airline_c': [s:NM[0].g, s:NM[1].g, - \ s:NM[0].t, s:NM[1].t, s:NM[2]]} - - let g:airline#themes#solarized#palette.normal_modified.airline_warning = - \ g:airline#themes#solarized#palette.normal.airline_warning - - let g:airline#themes#solarized#palette.insert = airline#themes#generate_color_map( - \ [s:I1[0].g, s:I1[1].g, s:I1[0].t, s:I1[1].t, s:I1[2]], - \ [s:I2[0].g, s:I2[1].g, s:I2[0].t, s:I2[1].t, s:I2[2]], - \ [s:I3[0].g, s:I3[1].g, s:I3[0].t, s:I3[1].t, s:I3[2]]) - - let g:airline#themes#solarized#palette.insert.airline_warning = - \ g:airline#themes#solarized#palette.normal.airline_warning - - let g:airline#themes#solarized#palette.insert_modified = { - \ 'airline_c': [s:IM[0].g, s:IM[1].g, - \ s:IM[0].t, s:IM[1].t, s:IM[2]]} - - let g:airline#themes#solarized#palette.insert_modified.airline_warning = - \ g:airline#themes#solarized#palette.normal.airline_warning - - let g:airline#themes#solarized#palette.visual = airline#themes#generate_color_map( - \ [s:V1[0].g, s:V1[1].g, s:V1[0].t, s:V1[1].t, s:V1[2]], - \ [s:V2[0].g, s:V2[1].g, s:V2[0].t, s:V2[1].t, s:V2[2]], - \ [s:V3[0].g, s:V3[1].g, s:V3[0].t, s:V3[1].t, s:V3[2]]) - - let g:airline#themes#solarized#palette.visual.airline_warning = - \ g:airline#themes#solarized#palette.normal.airline_warning - - let g:airline#themes#solarized#palette.visual_modified = { - \ 'airline_c': [s:VM[0].g, s:VM[1].g, - \ s:VM[0].t, s:VM[1].t, s:VM[2]]} - - let g:airline#themes#solarized#palette.visual_modified.airline_warning = - \ g:airline#themes#solarized#palette.normal.airline_warning - - let g:airline#themes#solarized#palette.replace = airline#themes#generate_color_map( - \ [s:R1[0].g, s:R1[1].g, s:R1[0].t, s:R1[1].t, s:R1[2]], - \ [s:R2[0].g, s:R2[1].g, s:R2[0].t, s:R2[1].t, s:R2[2]], - \ [s:R3[0].g, s:R3[1].g, s:R3[0].t, s:R3[1].t, s:R3[2]]) - - let g:airline#themes#solarized#palette.replace.airline_warning = - \ g:airline#themes#solarized#palette.normal.airline_warning - - let g:airline#themes#solarized#palette.replace_modified = { - \ 'airline_c': [s:RM[0].g, s:RM[1].g, - \ s:RM[0].t, s:RM[1].t, s:RM[2]]} - - let g:airline#themes#solarized#palette.replace_modified.airline_warning = - \ g:airline#themes#solarized#palette.normal.airline_warning - - let g:airline#themes#solarized#palette.tabline = {} - - let g:airline#themes#solarized#palette.tabline.airline_tab = [ - \ s:I2[0].g, s:I2[1].g, s:I2[0].t, s:I2[1].t, s:I2[2]] - - let g:airline#themes#solarized#palette.tabline.airline_tabtype = [ - \ s:N2[0].g, s:N2[1].g, s:N2[0].t, s:N2[1].t, s:N2[2]] -endfunction - -call airline#themes#solarized#refresh() - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/tomorrow.vim b/.vim/bundle/vim-airline/autoload/airline/themes/tomorrow.vim deleted file mode 100644 index f382fc1..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/tomorrow.vim +++ /dev/null @@ -1,44 +0,0 @@ -let g:airline#themes#tomorrow#palette = {} - -function! airline#themes#tomorrow#refresh() - let g:airline#themes#tomorrow#palette.accents = { - \ 'red': airline#themes#get_highlight('Constant'), - \ } - - let s:N1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Directory', 'fg'], 'bold') - let s:N2 = airline#themes#get_highlight('Pmenu') - let s:N3 = airline#themes#get_highlight('CursorLine') - let g:airline#themes#tomorrow#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) - - let group = airline#themes#get_highlight('vimCommand') - let g:airline#themes#tomorrow#palette.normal_modified = { - \ 'airline_c': [ group[0], '', group[2], '', '' ] - \ } - - let s:I1 = airline#themes#get_highlight2(['Normal', 'bg'], ['MoreMsg', 'fg'], 'bold') - let s:I2 = airline#themes#get_highlight2(['MoreMsg', 'fg'], ['Normal', 'bg']) - let s:I3 = s:N3 - let g:airline#themes#tomorrow#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) - let g:airline#themes#tomorrow#palette.insert_modified = g:airline#themes#tomorrow#palette.normal_modified - - let s:R1 = airline#themes#get_highlight('Error', 'bold') - let s:R2 = s:N2 - let s:R3 = s:N3 - let g:airline#themes#tomorrow#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) - let g:airline#themes#tomorrow#palette.replace_modified = g:airline#themes#tomorrow#palette.normal_modified - - let s:V1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Constant', 'fg'], 'bold') - let s:V2 = airline#themes#get_highlight2(['Constant', 'fg'], ['Normal', 'bg']) - let s:V3 = s:N3 - let g:airline#themes#tomorrow#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) - let g:airline#themes#tomorrow#palette.visual_modified = g:airline#themes#tomorrow#palette.normal_modified - - let s:IA = airline#themes#get_highlight2(['NonText', 'fg'], ['CursorLine', 'bg']) - let g:airline#themes#tomorrow#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) - let g:airline#themes#tomorrow#palette.inactive_modified = { - \ 'airline_c': [ group[0], '', group[2], '', '' ] - \ } -endfunction - -call airline#themes#tomorrow#refresh() - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/ubaryd.vim b/.vim/bundle/vim-airline/autoload/airline/themes/ubaryd.vim deleted file mode 100644 index 70232ef..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/ubaryd.vim +++ /dev/null @@ -1,64 +0,0 @@ -" vim-airline companion theme of Ubaryd -" (https://github.com/Donearm/Ubaryd) - -" Normal mode -let s:N1 = [ '#141413' , '#c7b386' , 232 , 252 ] " blackestgravel & bleaksand -let s:N2 = [ '#c7b386' , '#45413b' , 252, 238 ] " bleaksand & deepgravel -let s:N3 = [ '#b88853' , '#242321' , 137, 235 ] " toffee & darkgravel -let s:N4 = [ '#857f78' , 243 ] " gravel - -" Insert mode -let s:I1 = [ '#1a1a18' , '#fade3e' , 232 , 221 ] " blackestgravel & warmcorn -let s:I2 = [ '#c7b386' , '#45413b' , 252 , 238 ] " bleaksand & deepgravel -let s:I3 = [ '#f4cf86' , '#242321' , 222 , 235 ] " lighttannedskin & darkgravel - -" Visual mode -let s:V1 = [ '#1c1b1a' , '#9a4820' , 233 , 88 ] " blackgravel & warmadobe -let s:V2 = [ '#000000' , '#88633f' , 16 , 95 ] " coal & cappuccino -let s:V3 = [ '#88633f' , '#c7b386' , 95 , 252 ] " cappuccino & bleaksand -let s:V4 = [ '#c14c3d' , 160 ] " tannedumbrella - -" Replace mode -let s:RE = [ '#c7915b' , 173 ] " nut - -" Paste mode -let s:PA = [ '#f9ef6d' , 154 ] " bleaklemon - -let s:IA = [ s:N2[1], s:N3[1], s:N2[3], s:N3[3], '' ] - -let g:airline#themes#ubaryd#palette = {} - -let g:airline#themes#ubaryd#palette.accents = { - \ 'red': [ '#ff7400' , '' , 196 , '' , '' ], - \ } - -let g:airline#themes#ubaryd#palette.inactive = { - \ 'airline_a' : [ s:N2[1] , s:N3[1] , s:N2[3] , s:N3[3] , '' ] } - - -let g:airline#themes#ubaryd#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) -let g:airline#themes#ubaryd#palette.normal_modified = { - \ 'airline_a' : [ s:N2[0] , s:N4[0] , s:N2[2] , s:N4[1] , '' ] , - \ 'airline_c' : [ s:V1[1] , s:N2[1] , s:V1[3] , s:N2[3] , '' ] } - - -let g:airline#themes#ubaryd#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#ubaryd#palette.insert_modified = { - \ 'airline_c' : [ s:V2[1] , s:N2[1] , s:V2[3] , s:N2[3] , '' ] } -let g:airline#themes#ubaryd#palette.insert_paste = { - \ 'airline_a' : [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] } - - -let g:airline#themes#ubaryd#palette.replace = copy(airline#themes#ubaryd#palette.insert) -let g:airline#themes#ubaryd#palette.replace.airline_a = [ s:I1[0] , s:RE[0] , s:I1[2] , s:RE[1] , '' ] -let g:airline#themes#ubaryd#palette.replace_modified = g:airline#themes#ubaryd#palette.insert_modified - - -let g:airline#themes#ubaryd#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) -let g:airline#themes#ubaryd#palette.visual_modified = { - \ 'airline_c' : [ s:V3[0] , s:V4[0] , s:V3[2] , s:V4[1] , '' ] } - -let g:airline#themes#ubaryd#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) -let g:airline#themes#ubaryd#palette.inactive_modified = { - \ 'airline_c' : [ s:V1[1] , '' , s:V1[3] , '' , '' ] } - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/understated.vim b/.vim/bundle/vim-airline/autoload/airline/themes/understated.vim deleted file mode 100644 index b3e7917..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/understated.vim +++ /dev/null @@ -1,43 +0,0 @@ -let g:airline#themes#understated#palette = {} - -let s:N1 = ['#FFFFFF', '#5F87FF', 15, 69] " Outside blocks in normal mode (mode and file position) -let s:N2 = ['#AFAF87', '#5F5F5F', 144, 59] " Next blocks inside (branch and file format) -let s:N3 = ['#AFAF87', '#5F5F5F', 144, 59] " The middle block - -let g:airline#themes#understated#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) -let g:airline#themes#understated#palette.normal_modified = {'airline_c': ['#ffffff', '#5f005f', 144, 59, 'bold'] ,} - -let s:I1 = ['#FFFFFF', '#87AF5F', 15, 107] " Outside blocks in normal mode (mode and file position) -let s:I2 = ['#AFAF87', '#5F5F5F', 144, 59] " Next blocks inside (branch and file format) -let s:I3 = ['#AFAF87', '#5F5F5F', 144, 59] " The middle block -let g:airline#themes#understated#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#understated#palette.insert_modified = {'airline_c': ['#AFAF87', '#5F5F5F', 144, 59, 'bold'] ,} -let g:airline#themes#understated#palette.insert_paste = {'airline_c': ['#AFAF87', '#5F5F5F', 144, 59, ''] ,} - -let g:airline#themes#understated#palette.replace = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#understated#palette.replace.airline_a = ['#FFFFFF', '#870000', 15, 88, ''] -let g:airline#themes#understated#palette.replace_modified = {'airline_c': ['#AFAF87', '#5F5F5F', 144, 59, 'bold'] ,} - -let s:V1 = ['#FFFFFF', '#AF5F00', 15, 130] -let s:V2 = ['#AFAF87', '#5F5F5F', 144, 59] -let s:V3 = ['#AFAF87', '#5F5F5F', 144, 59] -let g:airline#themes#understated#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) -let g:airline#themes#understated#palette.visual_modified = {'airline_c': [ '#AFAF87', '#5f005f', 144, 59, 'bold'] ,} - -let s:V1 = ['#080808', '#FFAF00', 232, 214] -let s:IA1 = ['#4E4E4E', '#1C1C1C', 239, 234, ''] -let s:IA2 = ['#4E4E4E', '#1C1C1C', 239, 234, ''] -let s:IA3 = ['#4E4E4E', '#1C1C1C', 239, 234, ''] -let g:airline#themes#understated#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) -let g:airline#themes#understated#palette.inactive_modified = {'airline_c': ['#4E4E4E', '', 239, '', 'bold'] ,} - -let g:airline#themes#understated#palette.accents = {'red': ['#FF0000', '', 88, '']} - -if !get(g:, 'loaded_ctrlp', 0) - finish -endif -let g:airline#themes#understated#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ ['#FFFFFF', '#1C1C1C', 15, 234, '' ], - \ ['#FFFFFF', '#262626', 15, 235, '' ], - \ ['#FFFFFF', '#303030', 15, 236, 'bold']) - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/wombat.vim b/.vim/bundle/vim-airline/autoload/airline/themes/wombat.vim deleted file mode 100644 index 39fdc4c..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/wombat.vim +++ /dev/null @@ -1,90 +0,0 @@ -" vim-airline companion theme of Wombat -" looks great with wombat256 vim colorscheme - -" Normal mode -" [ guifg, guibg, ctermfg, ctermbg, opts ] -let s:N1 = [ '#141413' , '#CAE682' , 232 , 192 ] " mode -let s:N2 = [ '#CAE682' , '#32322F' , 192 , 236 ] " info -let s:N3 = [ '#CAE682' , '#242424' , 192 , 234 ] " statusline -let s:N4 = [ '#86CD74' , 113 ] " mode modified - -" Insert mode -let s:I1 = [ '#141413' , '#FDE76E' , 232 , 227 ] -let s:I2 = [ '#FDE76E' , '#32322F' , 227 , 236 ] -let s:I3 = [ '#FDE76E' , '#242424' , 227 , 234 ] -let s:I4 = [ '#FADE3E' , 221 ] - -" Visual mode -let s:V1 = [ '#141413' , '#B5D3F3' , 232 , 153 ] -let s:V2 = [ '#B5D3F3' , '#32322F' , 153 , 236 ] -let s:V3 = [ '#B5D3F3' , '#242424' , 153 , 234 ] -let s:V4 = [ '#7CB0E6' , 111 ] - -" Replace mode -let s:R1 = [ '#141413' , '#E5786D' , 232 , 173 ] -let s:R2 = [ '#E5786D' , '#32322F' , 173 , 236 ] -let s:R3 = [ '#E5786D' , '#242424' , 173 , 234 ] -let s:R4 = [ '#E55345' , 203 ] - -" Paste mode -let s:PA = [ '#94E42C' , 47 ] - -" Info modified -let s:IM = [ '#40403C' , 238 ] - -" Inactive mode -let s:IA = [ '#767676' , s:N3[1] , 243 , s:N3[3] , '' ] - -let g:airline#themes#wombat#palette = {} - -let g:airline#themes#wombat#palette.accents = { - \ 'red': [ '#E5786D' , '' , 203 , '' , '' ], - \ } - -let g:airline#themes#wombat#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) -let g:airline#themes#wombat#palette.normal_modified = { - \ 'airline_a': [ s:N1[0] , s:N4[0] , s:N1[2] , s:N4[1] , '' ] , - \ 'airline_b': [ s:N4[0] , s:IM[0] , s:N4[1] , s:IM[1] , '' ] , - \ 'airline_c': [ s:N4[0] , s:N3[1] , s:N4[1] , s:N3[3] , '' ] } - - -let g:airline#themes#wombat#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) -let g:airline#themes#wombat#palette.insert_modified = { - \ 'airline_a': [ s:I1[0] , s:I4[0] , s:I1[2] , s:I4[1] , '' ] , - \ 'airline_b': [ s:I4[0] , s:IM[0] , s:I4[1] , s:IM[1] , '' ] , - \ 'airline_c': [ s:I4[0] , s:N3[1] , s:I4[1] , s:N3[3] , '' ] } - - -let g:airline#themes#wombat#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) -let g:airline#themes#wombat#palette.visual_modified = { - \ 'airline_a': [ s:V1[0] , s:V4[0] , s:V1[2] , s:V4[1] , '' ] , - \ 'airline_b': [ s:V4[0] , s:IM[0] , s:V4[1] , s:IM[1] , '' ] , - \ 'airline_c': [ s:V4[0] , s:N3[1] , s:V4[1] , s:N3[3] , '' ] } - - -let g:airline#themes#wombat#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) -let g:airline#themes#wombat#palette.replace_modified = { - \ 'airline_a': [ s:R1[0] , s:R4[0] , s:R1[2] , s:R4[1] , '' ] , - \ 'airline_b': [ s:R4[0] , s:IM[0] , s:R4[1] , s:IM[1] , '' ] , - \ 'airline_c': [ s:R4[0] , s:N3[1] , s:R4[1] , s:N3[3] , '' ] } - - -let g:airline#themes#wombat#palette.insert_paste = { - \ 'airline_a': [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] , - \ 'airline_b': [ s:PA[0] , s:IM[0] , s:PA[1] , s:IM[1] , '' ] , - \ 'airline_c': [ s:PA[0] , s:N3[1] , s:PA[1] , s:N3[3] , '' ] } - - -let g:airline#themes#wombat#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) -let g:airline#themes#wombat#palette.inactive_modified = { - \ 'airline_c': [ s:N4[0] , '' , s:N4[1] , '' , '' ] } - - -if !get(g:, 'loaded_ctrlp', 0) - finish -endif -let g:airline#themes#wombat#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ [ '#DADADA' , '#242424' , 253 , 234 , '' ] , - \ [ '#DADADA' , '#40403C' , 253 , 238 , '' ] , - \ [ '#141413' , '#DADADA' , 232 , 253 , 'bold' ] ) - diff --git a/.vim/bundle/vim-airline/autoload/airline/themes/zenburn.vim b/.vim/bundle/vim-airline/autoload/airline/themes/zenburn.vim deleted file mode 100644 index 9883c21..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/themes/zenburn.vim +++ /dev/null @@ -1,44 +0,0 @@ -let g:airline#themes#zenburn#palette = {} - -function! airline#themes#zenburn#refresh() - let g:airline#themes#zenburn#palette.accents = { - \ 'red': airline#themes#get_highlight('Constant'), - \ } - - let s:N1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['Folded', 'fg'], 'bold') - let s:N2 = airline#themes#get_highlight('Folded') - let s:N3 = airline#themes#get_highlight('NonText') - - let g:airline#themes#zenburn#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) - let s:Nmod = airline#themes#get_highlight('Comment') - let g:airline#themes#zenburn#palette.normal_modified = { - \ 'airline_c': s:Nmod - \ } - - let s:I1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['String', 'fg'], 'bold') - let s:I2 = airline#themes#get_highlight2(['String', 'fg'], ['Folded', 'bg']) - let s:I3 = s:N3 - let g:airline#themes#zenburn#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) - let g:airline#themes#zenburn#palette.insert_modified = g:airline#themes#zenburn#palette.normal_modified - - let s:R1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['Comment', 'fg'], 'bold') - let s:R2 = airline#themes#get_highlight2(['Comment', 'fg'], ['Folded', 'bg']) - let s:R3 = s:N3 - let g:airline#themes#zenburn#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) - let g:airline#themes#zenburn#palette.replace_modified = g:airline#themes#zenburn#palette.normal_modified - - let s:V1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['Identifier', 'fg'], 'bold') - let s:V2 = airline#themes#get_highlight2(['Identifier', 'fg'], ['Folded', 'bg']) - let s:V3 = s:N3 - let g:airline#themes#zenburn#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) - let g:airline#themes#zenburn#palette.visual_modified = g:airline#themes#zenburn#palette.normal_modified - - let s:IA = airline#themes#get_highlight('NonText') - let g:airline#themes#zenburn#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) - let g:airline#themes#zenburn#palette.inactive_modified = { - \ 'airline_c': s:Nmod - \ } -endfunction - -call airline#themes#zenburn#refresh() - diff --git a/.vim/bundle/vim-airline/autoload/airline/util.vim b/.vim/bundle/vim-airline/autoload/airline/util.vim deleted file mode 100644 index a04bd0b..0000000 --- a/.vim/bundle/vim-airline/autoload/airline/util.vim +++ /dev/null @@ -1,64 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -call airline#init#bootstrap() -let s:spc = g:airline_symbols.space - -function! airline#util#wrap(text, minwidth) - if a:minwidth > 0 && winwidth(0) < a:minwidth - return '' - endif - return a:text -endfunction - -function! airline#util#append(text, minwidth) - if a:minwidth > 0 && winwidth(0) < a:minwidth - return '' - endif - let prefix = s:spc == "\ua0" ? s:spc : s:spc.s:spc - return empty(a:text) ? '' : prefix.g:airline_left_alt_sep.s:spc.a:text -endfunction - -function! airline#util#prepend(text, minwidth) - if a:minwidth > 0 && winwidth(0) < a:minwidth - return '' - endif - return empty(a:text) ? '' : a:text.s:spc.g:airline_right_alt_sep.s:spc -endfunction - -if v:version >= 704 - function! airline#util#getwinvar(winnr, key, def) - return getwinvar(a:winnr, a:key, a:def) - endfunction -else - function! airline#util#getwinvar(winnr, key, def) - let winvals = getwinvar(a:winnr, '') - return get(winvals, a:key, a:def) - endfunction -endif - -if v:version >= 704 - function! airline#util#exec_funcrefs(list, ...) - for Fn in a:list - let code = call(Fn, a:000) - if code != 0 - return code - endif - endfor - return 0 - endfunction -else - function! airline#util#exec_funcrefs(list, ...) - " for 7.2; we cannot iterate the list, hence why we use range() - " for 7.3-[97, 328]; we cannot reuse the variable, hence the {} - for i in range(0, len(a:list) - 1) - let Fn{i} = a:list[i] - let code = call(Fn{i}, a:000) - if code != 0 - return code - endif - endfor - return 0 - endfunction -endif - diff --git a/.vim/bundle/vim-airline/doc/airline.txt b/.vim/bundle/vim-airline/doc/airline.txt deleted file mode 100644 index 0ae928a..0000000 --- a/.vim/bundle/vim-airline/doc/airline.txt +++ /dev/null @@ -1,752 +0,0 @@ -*airline.txt* Lean and mean status/tabline that's light as air -*airline* - _ _ _ _ ~ - __ _(_)_ __ ___ __ _(_)_ __| (_)_ __ ___ ~ - \ \ / / | '_ ` _ \ _____ / _` | | '__| | | '_ \ / _ \ ~ - \ V /| | | | | | |_____| (_| | | | | | | | | | __/ ~ - \_/ |_|_| |_| |_| \__,_|_|_| |_|_|_| |_|\___| ~ - ~ -============================================================================== -CONTENTS *airline-contents* - - 01. Intro ............................................... |airline-intro| - 02. Features ......................................... |airline-features| - 03. Name ................................................. |airline-name| - 04. Configuration ............................... |airline-configuration| - 05. Commands ......................................... |airline-commands| - 06. Customization ............................... |airline-customization| - 07. Extensions ..................................... |airline-extensions| - 08. Advanced Customization ............. |airline-advanced-customization| - 09. Funcrefs ......................................... |airline-funcrefs| - 10. Pipeline ......................................... |airline-pipeline| - 11. Writing Extensions ..................... |airline-writing-extensions| - 12. Writing Themes ..................................... |airline-themes| - 13. Troubleshooting ........................... |airline-troubleshooting| - 14. Contributions ............................... |airline-contributions| - 15. License ........................................... |airline-license| - -============================================================================== -INTRODUCTION *airline-intro* - -vim-airline is a fast and lightweight alternative to powerline, written -in 100% vimscript with no outside dependencies. - -============================================================================== -FEATURES *airline-features* - -* tiny core written with extensibility in mind. -* integrates with many popular plugins. -* looks good with regular fonts, and provides configuration points so you - can use unicode or powerline symbols. -* optimized for speed; it loads in under a millisecond. -* fully customizable; if you know a little 'statusline' syntax you can - tweak it to your needs. -* extremely easy to write themes. - -============================================================================== -NAME *airline-name* - -Where did the name come from? - -I wrote this on an airplane, and since it's light as air it turned out to be a -good name :-) - -============================================================================== -CONFIGURATION *airline-configuration* - -There are a couple configuration values available (shown with their default -values): - -* the separator used on the left side > - let g:airline_left_sep='>' -< -* the separator used on the right side > - let g:airline_right_sep='<' -< -* enable modified detection > - let g:airline_detect_modified=1 - -* enable paste detection > - let g:airline_detect_paste=1 -< -* enable iminsert detection > - let g:airline_detect_iminsert=0 -< -* determine whether inactive windows should have the left section collapsed to - only the filename of that buffer. > - let g:airline_inactive_collapse=1 -< -* themes are automatically selected based on the matching colorscheme. this - can be overridden by defining a value. > - let g:airline_theme= -< -* if you want to patch the airline theme before it gets applied, you can - supply the name of a function where you can modify the palette. > - let g:airline_theme_patch_func = 'AirlineThemePatch' - function! AirlineThemePatch(palette) - if g:airline_theme == 'badwolf' - for colors in values(a:palette.inactive) - let colors[3] = 245 - endfor - endif - endfunction -< -* enable/disable automatic population of the `g:airline_symbols` dictionary - with powerline symbols. > - let g:airline_powerline_fonts=0 -< -* define the set of text to display for each mode. > - let g:airline_mode_map = {} " see source for the defaults - - " or copy paste the following into your vimrc for shortform text - let g:airline_mode_map = { - \ '__' : '-', - \ 'n' : 'N', - \ 'i' : 'I', - \ 'R' : 'R', - \ 'c' : 'C', - \ 'v' : 'V', - \ 'V' : 'V', - \ '' : 'V', - \ 's' : 'S', - \ 'S' : 'S', - \ '' : 'S', - \ } -< -* define the set of filename match queries which excludes a window from having - its statusline modified > - let g:airline_exclude_filenames = [] " see source for current list -< -* define the set of filetypes which are excluded from having its window - statusline modified > - let g:airline_exclude_filetypes = [] " see source for current list -< -* defines whether the preview window should be excluded from have its window - statusline modified (may help with plugins which use the preview window - heavily) > - let g:airline_exclude_preview = 0 -< -============================================================================== -COMMANDS *airline-commands* - -:AirlineTheme {theme-name} *:AirlineTheme* - Displays or changes the current theme. - -:AirlineToggleWhitespace *:AirlineToggleWhitespace* - Toggles whitespace detection. - -:AirlineToggle *:AirlineToggle* - Toggles between the standard 'statusline' and airline. - -:AirlineRefresh *:AirlineRefresh* - Refreshes all highlight groups. - -============================================================================== -CUSTOMIZATION *airline-customization* - -The following are some unicode symbols for customizing the left/right -separators, as well as the powerline font glyths. - -Note: You must define the dictionary first before setting values. Also, it's a -good idea to check whether if it exists as to avoid accidentally overwritting -its contents. > - if !exists('g:airline_symbols') - let g:airline_symbols = {} - endif - - " unicode symbols - let g:airline_left_sep = '»' - let g:airline_left_sep = '▶' - let g:airline_right_sep = '«' - let g:airline_right_sep = '◀' - let g:airline_symbols.linenr = '␊' - let g:airline_symbols.linenr = '␤' - let g:airline_symbols.linenr = '¶' - let g:airline_symbols.branch = '⎇' - let g:airline_symbols.paste = 'ρ' - let g:airline_symbols.paste = 'Þ' - let g:airline_symbols.paste = '∥' - let g:airline_symbols.whitespace = 'Ξ' - - " powerline symbols - let g:airline_left_sep = '' - let g:airline_left_alt_sep = '' - let g:airline_right_sep = '' - let g:airline_right_alt_sep = '' - let g:airline_symbols.branch = '' - let g:airline_symbols.readonly = '' - let g:airline_symbols.linenr = '' - - " old vim-powerline symbols - let g:airline_left_sep = '⮀' - let g:airline_left_alt_sep = '⮁' - let g:airline_right_sep = '⮂' - let g:airline_right_alt_sep = '⮃' - let g:airline_symbols.branch = '⭠' - let g:airline_symbols.readonly = '⭤' - let g:airline_symbols.linenr = '⭡' -< - -For more intricate customizations, you can replace the predefined sections -with the usual statusline syntax. - -Note: If you define any section variables it will replace the default values -entirely. If you want to disable only certain parts of a section you can try -using variables defined in the |airline-configuration| or |airline-extensions| -section. -> - variable names default contents - ---------------------------------------------------------------------------- - let g:airline_section_a (mode, paste, iminsert) - let g:airline_section_b (hunks, branch) - let g:airline_section_c (bufferline or filename) - let g:airline_section_gutter (readonly, csv) - let g:airline_section_x (tagbar, filetype, virtualenv) - let g:airline_section_y (fileencoding, fileformat) - let g:airline_section_z (percentage, line number, column number) - let g:airline_section_warning (syntastic, whitespace) - - " here is an example of how you could replace the branch indicator with - " the current working directory, followed by the filename. - let g:airline_section_b = '%{getcwd()}' - let g:airline_section_c = '%t' -< -============================================================================== -EXTENSIONS *airline-extensions* - -Most extensions are enabled by default and lazily loaded when the -corresponding plugin (if any) is detected. - -By default, airline will attempt to load any extension it can find in the -'runtimepath'. On some systems this can result in an undersirable startup -cost. You can disable the check with the following flag. > - let g:airline#extensions#disable_rtp_load = 1 -< - Note: Third party plugins that rely on this behavior will be affected. You - will need to manually load them. - -------------------------------------- *airline-default* -The default extension understands all of the `g:` variables in the -|airline-configuration| section, however it also has some more fine-tuned -configuration values that you can use. - -* control which sections get truncated and at what width. > - let g:airline#extensions#default#section_truncate_width = { - \ 'b': 79, - \ 'x': 60, - \ 'y': 88, - \ 'z': 45, - \ } - - " Note: set to an empty dictionary to disable truncation. - let g:airline#extensions#default#section_truncate_width = {} -< -* configure the layout of the sections by specificing an array of two arrays - (first array is the left side, second array is the right side). > - let g:airline#extensions#default#layout = [ - \ [ 'a', 'b', 'c' ], - \ [ 'x', 'y', 'z', 'warning' ] - \ ] -< -------------------------------------- *airline-quickfix* -The quickfix extension is a simple built-in extension which determines -whether the buffer is a quickfix or location list buffer, and adjusts the -title accordingly. - -* configure the title text for quickfix buffers > - let g:airline#extensions#quickfix#quickfix_text = 'Quickfix' -< -* configure the title text for location list buffers > - let g:airline#extensions#quickfix#location_text = 'Location' -< - -------------------------------------- *airline-bufferline* -vim-bufferline - -* enable/disable bufferline integration > - let g:airline#extensions#bufferline#enabled = 1 -< -* determine whether bufferline will overwrite customization variables > - let g:airline#extensions#bufferline#overwrite_variables = 1 -< -------------------------------------- *airline-branch* -fugitive.vim -lawrencium -vcscommand - -* enable/disable fugitive/lawrencium integration > - let g:airline#extensions#branch#enabled = 1 -< -* change the text for when no branch is detected > - let g:airline#extensions#branch#empty_message = '' - -* use vcscommand.vim if available > - let g:airline#extensions#branch#use_vcscommand = 0 -< -------------------------------------- *airline-syntastic* -syntastic - -* enable/disable syntastic integration > - let g:airline#extensions#syntastic#enabled = 1 -< -------------------------------------- *airline-tagbar* -tagbar - -* enable/disable tagbar integration > - let g:airline#extensions#tagbar#enabled = 1 -< -* change how tags are displayed (:help tagbar-statusline) > - let g:airline#extensions#tagbar#flags = '' (default) - let g:airline#extensions#tagbar#flags = 'f' - let g:airline#extensions#tagbar#flags = 's' - let g:airline#extensions#tagbar#flags = 'p' -< -------------------------------------- *airline-csv* -csv.vim - -* enable/disable csv integration for displaying the current column. > - let g:airline#extensions#csv#enabled = 1 -< -* change how columns are displayed. > - let g:airline#extensions#csv#column_display = 'Number' (default) - let g:airline#extensions#csv#column_display = 'Name' -< -------------------------------------- *airline-hunks* -vim-gitgutter -vim-signify - -* enable/disable showing a summary of changed hunks under source control. > - let g:airline#extensions#hunks#enabled = 1 -< -* enable/disable showing only non-zero hunks. > - let g:airline#extensions#hunks#non_zero_only = 0 -< -* set hunk count symbols. > - let g:airline#extensions#hunks#hunk_symbols = ['+', '~', '-'] -< -------------------------------------- *airline-ctrlp* -ctrlp - -* configure which mode colors should ctrlp window use (takes effect - only if the active airline theme doesn't define ctrlp colors) > - let g:airline#extensions#ctrlp#color_template = 'insert' (default) - let g:airline#extensions#ctrlp#color_template = 'normal' - let g:airline#extensions#ctrlp#color_template = 'visual' - let g:airline#extensions#ctrlp#color_template = 'replace' -< - -* configure whether to show the previous and next modes (mru, buffer, etc...) -> - let g:airline#extensions#ctrlp#show_adjacent_modes = 1 -< -------------------------------------- *airline-virtualenv* -virtualenv - -* enable/disable virtualenv integration > - let g:airline#extensions#virtualenv#enabled = 1 -< -------------------------------------- *airline-eclim* -eclim - -* enable/disable eclim integration, which works well with the - |airline-syntastic| extension. > - let g:airline#extensions#eclim#enabled = 1 - -------------------------------------- *airline-whitespace* -* enable/disable detection of whitespace errors. > - let g:airline#extensions#whitespace#enabled = 1 -< -* customize the type of mixed indent checking to perform. > - " must be all spaces or all tabs before the first non-whitespace character - let g:airline#extensions#whitespace#mixed_indent_algo = 0 (default) - - " certain number of spaces are allowed after tabs, but not in between - " this algorithm works well for /** */ style comments in a tab-indented file - let g:airline#extensions#whitespace#mixed_indent_algo = 1 -< -* customize the whitespace symbol. > - let g:airline#extensions#whitespace#symbol = '!' -< -* configure which whitespace checks to enable. > - let g:airline#extensions#whitespace#checks = [ 'indent', 'trailing' ] -< -* configure the maximum number of lines where whitespace checking is enabled. > - let g:airline#extensions#whitespace#max_lines = 20000 -< -* configure whether a message should be displayed. > - let g:airline#extensions#whitespace#show_message = 1 -< -* configure the formatting of the warning messages. > - let g:airline#extensions#whitespace#trailing_format = 'trailing[%s]' - let g:airline#extensions#whitespace#mixed_indent_format = 'mixed-indent[%s]' -< -------------------------------------- *airline-tabline* -* enable/disable enhanced tabline. > - let g:airline#extensions#tabline#enabled = 0 -< -* enable/disable displaying buffers with a single tab. > - let g:airline#extensions#tabline#show_buffers = 1 -< -* configure filename match rules to exclude from the tabline. > - let g:airline#extensions#tabline#excludes = [] -< -* configure how numbers are calculated in tab mode. > - let g:airline#extensions#tabline#tab_nr_type = 0 " # of splits (default) - let g:airline#extensions#tabline#tab_nr_type = 1 " tab number -< -* enable/disable displaying tab number in tabs mode. > - let g:airline#extensions#tabline#show_tab_nr = 1 - -* enable/disable displaying tab type (far right) - let g:airline#extensions#tabline#show_tab_type = 1 - -* defines the name of a formatter for how buffer names are displayed. > - let g:airline#extensions#tabline#formatter = 'default' - - " here is how you can define a 'foo' formatter: - function! airline#extensions#tabline#foo#format(bufnr, buffers) - return fnamemodify(bufname(a:bufnr), ':t') - endfunction - let g:airline#extensions#tabline#formatter = 'foo' -< - Note: the following variables are only used by the 'default' formatter. - - * configure whether buffer numbers should be shown. > - let g:airline#extensions#tabline#buffer_nr_show = 0 -< - * configure how buffer numbers should be formatted with |printf|. > - let g:airline#extensions#tabline#buffer_nr_format = '%s: ' -< - * configure the formatting of filenames (see |filename-modifiers|). > - let g:airline#extensions#tabline#fnamemod = ':p:.' -< - * configure collapsing parent directories in buffer name. > - let g:airline#extensions#tabline#fnamecollapse = 1 - - " The `unique_tail` algorithm will display the tail of the filename, unless - " there is another file of the same name, in which it will display it along - " with the containing parent directory. - let g:airline#extensions#tabline#formatter = 'unique_tail' - - " The `unique_tail_improved` - another algorithm, that will smartly uniquify - " buffers names with similar filename, suppressing common parts of paths. - let g:airline#extensions#tabline#formatter = 'unique_tail_improved' -< -* configure the minimum number of buffers needed to show the tabline. > - let g:airline#extensions#tabline#buffer_min_count = 0 -< - Note: this setting only applies to a single tab and when `show_buffers` is - true. - -* configure the minimum number of tabs needed to show the tabline. > - let g:airline#extensions#tabline#tab_min_count = 0 -< - Note: this setting only applies when `show_buffers` is false. - -* configure separators for the tabline only. > - let g:airline#extensions#tabline#left_sep = '' - let g:airline#extensions#tabline#left_alt_sep = '' - let g:airline#extensions#tabline#right_sep = '' - let g:airline#extensions#tabline#right_alt_sep = '' - -* configure symbol used to represent close button - let g:airline#extensions#tabline#close_symbol = 'X' - -< -Note: Enabling this extension will modify 'showtabline' and 'guioptions'. - -------------------------------------- *airline-tmuxline* -tmuxline - -* enable/disable tmuxline integration > - let g:airline#extensions#tmuxline#enabled = 0 -< -* configure which mode colors should be used in tmux statusline > - let airline#extensions#tmuxline#color_template = 'normal' (default) - let airline#extensions#tmuxline#color_template = 'insert' - let airline#extensions#tmuxline#color_template = 'visual' - let airline#extensions#tmuxline#color_template = 'replace' -< -* if specified, setting this option will trigger writing to the file whenever the - airline theme is applied, i.e. when :AirlineTheme is executed and on vim - startup > - airline#extensions#tmuxline#snapshot_file = "~/.tmux-statusline-colors.conf" -< -------------------------------------- *airline-promptline* -promptline - -* configure the path to the snapshot .sh file. Mandatory option. The created - file should be sourced by the shell on login > - " in .vimrc - airline#extensions#promptline#snapshot_file = "~/.shell_prompt.sh" - - " in .bashrc/.zshrc - [ -f ~/.shell_prompt.sh ] && source ~/.shell_prompt.sh -< -* enable/disable promptline integration > - let g:airline#extensions#promptline#enabled = 0 -< -* configure which mode colors should be used in prompt > - let airline#extensions#promptline#color_template = 'normal' (default) - let airline#extensions#promptline#color_template = 'insert' - let airline#extensions#promptline#color_template = 'visual' - let airline#extensions#promptline#color_template = 'replace' -< -------------------------------------- *airline-nrrwrgn* -NrrwRgn - -* enable/disable NrrwRgn integration > - let g:airline#extensions#nrrwrgn#enabled = 1 - -============================================================================== -ADVANCED CUSTOMIZATION *airline-advanced-customization* - -The defaults will accomodate the mass majority of users with minimal -configuration. However, if you want to reposition sections or contents you can -do so with built-in helper functions, which makes it possible to create -sections in a more declarative style. - -------------------------------------- *airline-parts* -A part is something that contains metadata that eventually gets rendered into -the statusline. You can define parts that contain constant strings or -functions. Defining parts is needed if you want to use features like automatic -insertion of separators or hiding based on window width. - -For example, this is how you would define a part function: > - call airline#parts#define_function('foo', 'GetFooText') -< -Here is how you would define a part that is visible only if the window width -greater than a minimum width. > - call airline#parts#define_minwidth('foo', 50) -< -Parts can be configured to be visible conditionally. > - call airline#parts#define_condition('foo', 'getcwd() =~ "work_dir"') -< -Note: Part definitions are combinative; e.g. the two examples above modify the -same `foo` part. - -Note: Look at the source code and tests for the full API. - -------------------------------------- *airline-predefined-parts* -Before is a list of parts that are predefined by vim-airline. - -* `mode` displays the current mode -* `iminsert` displays the current insert method -* `paste` displays the paste indicator -* `filetype` displays the file type -* `readonly` displays the read only indicator -* `file` displays the filename and modified indicator -* `ffenc` displays the file format and encoding - -And the following are defined for their respective extensions: - -`hunks`, `branch`, `tagbar`, `syntastic`, `whitespace` - -------------------------------------- *airline-accents* -Accents can be defined on any part, like so: > - call airline#parts#define_accent('foo', 'red') -< -This will override the colors of that part by using what is defined in that -particular accent. In the above example, the `red` accent is used, which means -regardless of which section the part is used in, it will have red foreground -colors instead of the section's default foreground color. - -The following accents are defined by default. Themes can define their variants -of the colors, but defaults will be provided if missing. > - bold, italic, red, green, blue, yellow, orange, purple -< -The defaults configure the mode and line number parts to be bold, and the -readonly part to be red. - -------------------------------------- *airline-sections* -Once a part is defined, you can use helper functions to generate the -statuslines for each section. For example, to use the part above, we could -define a section like this: > - function! AirlineInit() - let g:airline_section_a = airline#section#create(['mode', ' ', 'foo']) - let g:airline_section_b = airline#section#create_left(['ffenc','file']) - let g:airline_section_c = airline#section#create(['%{getcwd()}']) - endfunction - autocmd VimEnter * call AirlineInit() -< -This will create a section with the `mode`, followed by a space, and our `foo` -part in section `a`. Section `b` will have two parts with a left-side -separator. And section `c` will contain the current path. You may notice that -the space and cwd are not defined parts. For convenience, if a part of that -key does not exist, it will be inserted as is. The unit tests will be a good -resource for possibilities. - -Note: The use of |VimEnter| is important, because most extensions are lazily -loaded, so we must give them a chance to define their parts before we can use -them. - -Note: The `airline#section#create` function and friends will do its best to -create a section with the appropriate separators, but it only works for -function and text parts. Special 'statusline' items like %f or raw/undefined -parts will not work as it is not possible to inspect their widths/contents -before rendering to the statusline. - -============================================================================== -FUNCREFS *airline-funcrefs* - -vim-airline internally uses funcrefs to integrate with third party plugins, -and you can tap into this functionality to extend it for you needs. This is -the most powerful way to customize the statusline, and sometimes it may be -easier to go this route than the above methods. - -Every section can have two values. The default value is the global `g:` -variable which is used in the absense of a `w:` value. This makes it very easy -to override only certain parts of the statusline by only defining window-local -variables for a subset of all sections. - -------------------------------------- *add_statusline_func* -The following is an example of how you can extend vim-airline to support a -new plugin. > - function! MyPlugin(...) - if &filetype == 'MyPluginFileType' - let w:airline_section_a = 'MyPlugin' - let w:airline_section_b = '%f' - let w:airline_section_c = '%{MyPlugin#function()}' - let g:airline_variable_referenced_in_statusline = 'foo' - endif - endfunction - call airline#add_statusline_func('MyPlugin') -< -Notice that only the left side of the statusline is overwritten. This means -the right side (the line/column numbers, etc) will be intact. - -------------------------------------- *remove_statusline_func* -You can also remove a function as well, which is useful for when you want a -temporary override. > - call airline#remove_statusline_func('MyPlugin') -< - -============================================================================== -PIPELINE *airline-pipeline* - -Sometimes you want to do more than just use overrides. The statusline funcref -is invoked and passed two arguments. The first of these arguments is the -statusline builder. You can use this to build completely custom statuslines -to your liking. Here is an example: > -> - function! MyPlugin(...) - " first variable is the statusline builder - let builder = a:1 - - " WARNING: the API for the builder is not finalized and may change - call builder.add_section('Normal', '%f') - call builder.add_section('WarningMsg', '%{getcwd()}') - call builder.split() - call builder.add_section('airline_z', '%p%%') - - " tell the core to use the contents of the builder - return 1 - endfunction -< -The above example uses various example highlight groups to demonstrate -that you can use any combination from the loaded colorscheme. However, if -you want colors to change between modes, you should use one of the section -highlight groups, e.g. `airline_a` and `airline_b`. - -The second variable is the context, which is a dictionary containing various -values such as whether the statusline is active or not, and the window number. -> - context = { - 'winnr': 'the window number for the statusline', - 'active': 'whether the window is active or not', - 'bufnr': 'the current buffer for this window', - } -< -------------------------------------- *airline-pipeline-return-codes* -The pipeline accepts various return codes and can be used to determine the -next action. The following are the supported codes: > - 0 the default, continue on with the next funcref - -1 do not modify the statusline - 1 modify the statusline with the current contents of the builder -< -Note: Any value other than 0 will halt the pipeline and prevent the next -funcref from executing. - -============================================================================== -WRITING EXTENSIONS *airline-writing-extensions* - -For contributions into the plugin, here are the following guidelines: - -1. For simple 'filetype' checks, they can be added directly into the -`extensions.vim` file. - -2. Pretty much everything else should live as a separate file under the -`extensions/` directory. - - a. Inside `extensions.vim`, add a check for some variable or command that - is always available (these must be defined in `plugin/`, and _not_ - `autoload/` of the other plugin). If it exists, then initialize the - extension. This ensures that the extension is loaded if and only if the - user has the other plugin installed. Also, a check to - `airline#extensions#foo_plugin#enabled` should be performed to allow the - user to disable it. - - b. Configuration variables for the extension should reside in the - extension, e.g. `g:airline#extensions#foo_plugin#bar_variable`. - -See the source of |example.vim| for documented code of how to write one. -Looking at the other extensions is also a good resource. - -============================================================================== -WRITING THEMES *airline-themes* - -Themes are written "close to the metal" -- you will need to know some basic -VimL syntax to write a theme, but if you've written in any programming -language before it will be easy to pick up. - -The |dark.vim| theme fully documents this procedure and will guide you through -the process. The |jellybeans.vim| theme is another example of how to write a -theme, but instead of manually declaring colors, it extracts the values from -highlight groups. - -============================================================================== -TROUBLESHOOTING *airline-troubleshooting* - -Q. There are no colors. -A. You need to set up your terminal correctly. For more details, see - . Alternatively, if you want - to bypass the automatic detection of terminal colors, you can force Vim - into 256 color mode with this: > - set t_Co=256 -< -Q. The statusline does not appear until I create a split. -A. This is the default setting of 'laststatus'. If you want it to appear all - the time, add the following to your vimrc: > - set laststatus=2 -< -Q. Powerline symbols are not showing up. -A. First, you must install patched powerline fonts. Second, you must enable - unicode in vim. > - set encoding=utf-8 -< -Q. There is a pause when leaving insert mode. -A. Add the following to your vimrc. > - set ttimeoutlen=50 -< -Q. The colors look a little off for some themes. -A. Certain themes are derived from the active colorscheme by extracting colors - from predefined highlight groups. These airline themes will look good for - their intended matching colorschemes, but will be hit or miss when loaded - with other colorschemes. - - -Solutions to other common problems can be found in the Wiki: - - -============================================================================== -CONTRIBUTIONS *airline-contributions* - -Contributions and pull requests are welcome. - -============================================================================== -LICENSE *airline-license* - -MIT License. Copyright © 2013-2014 Bailey Ling. - - - vim:tw=78:ts=8:ft=help:norl: diff --git a/.vim/bundle/vim-airline/plugin/airline.vim b/.vim/bundle/vim-airline/plugin/airline.vim deleted file mode 100644 index e75535f..0000000 --- a/.vim/bundle/vim-airline/plugin/airline.vim +++ /dev/null @@ -1,109 +0,0 @@ -" MIT License. Copyright (c) 2013-2014 Bailey Ling. -" vim: et ts=2 sts=2 sw=2 - -if &cp || v:version < 702 || (exists('g:loaded_airline') && g:loaded_airline) - finish -endif -let g:loaded_airline = 1 - -" autocmd VimEnter * call airline#deprecation#check() - -let s:airline_initialized = 0 -let s:airline_theme_defined = 0 -function! s:init() - if !s:airline_initialized - let s:airline_initialized = 1 - - call airline#init#bootstrap() - call airline#extensions#load() - call airline#init#sections() - - let s:airline_theme_defined = exists('g:airline_theme') - if s:airline_theme_defined || !airline#switch_matching_theme() - let g:airline_theme = get(g:, 'airline_theme', 'dark') - call airline#switch_theme(g:airline_theme) - endif - endif -endfunction - -function! s:on_window_changed() - if pumvisible() - return - endif - call init() - call airline#update_statusline() -endfunction - -function! s:on_colorscheme_changed() - call init() - if !s:airline_theme_defined - if airline#switch_matching_theme() - return - endif - endif - - " couldn't find a match, or theme was defined, just refresh - call airline#load_theme() -endfunction - -function airline#cmdwinenter(...) - call airline#extensions#apply_left_override('Command Line', '') -endfunction - -function! s:airline_toggle() - if exists("#airline") - augroup airline - au! - augroup END - augroup! airline - - if exists("s:stl") - let &stl = s:stl - endif - - silent doautocmd User AirlineToggledOff - else - let s:stl = &statusline - augroup airline - autocmd! - - autocmd CmdwinEnter * - \ call airline#add_statusline_func('airline#cmdwinenter') - \ | call on_window_changed() - autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter') - - autocmd ColorScheme * call on_colorscheme_changed() - autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload,VimResized * - \ call on_window_changed() - - autocmd BufWritePost */autoload/airline/themes/*.vim - \ exec 'source '.split(globpath(&rtp, 'autoload/airline/themes/'.g:airline_theme.'.vim', 1), "\n")[0] - \ | call airline#load_theme() - augroup END - - silent doautocmd User AirlineToggledOn - - if s:airline_initialized - call on_window_changed() - endif - endif -endfunction - -function! s:get_airline_themes(a, l, p) - let files = split(globpath(&rtp, 'autoload/airline/themes/'.a:a.'*'), "\n") - return map(files, 'fnamemodify(v:val, ":t:r")') -endfunction -function! s:airline_theme(...) - if a:0 - call airline#switch_theme(a:1) - else - echo g:airline_theme - endif -endfunction -command! -nargs=? -complete=customlist,get_airline_themes AirlineTheme call airline_theme() -command! AirlineToggleWhitespace call airline#extensions#whitespace#toggle() -command! AirlineToggle call airline_toggle() -command! AirlineRefresh call airline#load_theme() - -call airline_toggle() - diff --git a/.vim/bundle/vim-airline/t/airline.vim b/.vim/bundle/vim-airline/t/airline.vim deleted file mode 100644 index 78ab6d7..0000000 --- a/.vim/bundle/vim-airline/t/airline.vim +++ /dev/null @@ -1,87 +0,0 @@ -let g:airline_theme = 'dark' -call airline#init#bootstrap() -call airline#init#sections() -source plugin/airline.vim - -function! MyFuncref(...) - call a:1.add_raw('hello world') - return 1 -endfunction - -function! MyIgnoreFuncref(...) - return -1 -endfunction - -function! MyAppend1(...) - call a:1.add_raw('hello') -endfunction - -function! MyAppend2(...) - call a:1.add_raw('world') -endfunction - -describe 'airline' - before - let g:airline_statusline_funcrefs = [] - end - - it 'should run user funcrefs first' - call airline#add_statusline_func('MyFuncref') - let &statusline = '' - call airline#update_statusline() - Expect airline#statusline(1) =~ 'hello world' - end - - it 'should not change the statusline with -1' - call airline#add_statusline_funcref(function('MyIgnoreFuncref')) - let &statusline = 'foo' - call airline#update_statusline() - Expect &statusline == 'foo' - end - - it 'should support multiple chained funcrefs' - call airline#add_statusline_func('MyAppend1') - call airline#add_statusline_func('MyAppend2') - call airline#update_statusline() - Expect airline#statusline(1) =~ 'helloworld' - end - - it 'should allow users to redefine sections' - let g:airline_section_a = airline#section#create(['mode', 'mode']) - call airline#update_statusline() - Expect airline#statusline(1) =~ '%{airline#util#wrap(airline#parts#mode(),0)}%#airline_a#%#airline_a_bold#%{airline#util#wrap(airline#parts#mode(),0)}%#airline_a#' - end - - it 'should remove funcrefs properly' - let c = len(g:airline_statusline_funcrefs) - call airline#add_statusline_func('MyIgnoreFuncref') - call airline#remove_statusline_func('MyIgnoreFuncref') - Expect len(g:airline_statusline_funcrefs) == c - end - - it 'should overwrite the statusline with active and inactive splits' - wincmd s - Expect airline#statusline(1) !~ 'inactive' - Expect airline#statusline(2) =~ 'inactive' - wincmd c - end - - it 'should collapse the inactive split if the variable is set true' - let g:airline_inactive_collapse = 1 - wincmd s - Expect getwinvar(2, '&statusline') !~ 'airline#parts#mode' - wincmd c - end - - it 'should not collapse the inactive split if the variable is set false' - let g:airline_inactive_collapse = 0 - wincmd s - Expect getwinvar(2, '&statusline') != 'airline#parts#mode' - wincmd c - end - - it 'should include check_mode' - Expect airline#statusline(1) =~ 'airline#check_mode' - end -end - diff --git a/.vim/bundle/vim-airline/t/builder.vim b/.vim/bundle/vim-airline/t/builder.vim deleted file mode 100644 index 3d1afcd..0000000 --- a/.vim/bundle/vim-airline/t/builder.vim +++ /dev/null @@ -1,80 +0,0 @@ -let g:airline_theme = 'dark' -call airline#init#bootstrap() - -describe 'active builder' - before - let s:builder = airline#builder#new({'active': 1}) - end - - it 'should start with an empty statusline' - let stl = s:builder.build() - Expect stl == '' - end - - it 'should transition colors from one to the next' - call s:builder.add_section('Normal', 'hello') - call s:builder.add_section('NonText', 'world') - let stl = s:builder.build() - Expect stl =~ '%#Normal#hello%#Normal_to_NonText#>%#NonText#world' - end - - it 'should split left/right sections' - call s:builder.split() - let stl = s:builder.build() - Expect stl =~ '%=' - end - - it 'after split, sections use the right separator' - call s:builder.split() - call s:builder.add_section('Normal', 'hello') - call s:builder.add_section('NonText', 'world') - let stl = s:builder.build() - Expect stl =~ '%#Normal#hello%#Normal_to_NonText#<%#NonText#world' - end - - it 'should not repeat the same highlight group' - call s:builder.add_section('Normal', 'hello') - call s:builder.add_section('Normal', 'hello') - let stl = s:builder.build() - Expect stl == '%#Normal#hello>hello' - end - - it 'should replace accent groups with the specified group' - call s:builder.add_section('Normal', '%#__accent_foo#hello') - let stl = s:builder.build() - Expect stl == '%#Normal#%#Normal_foo#hello' - end - - it 'should replace two accent groups with correct groups' - call s:builder.add_section('Normal', '%#__accent_foo#hello%#__accent_bar#world') - let stl = s:builder.build() - Expect stl =~ '%#Normal_foo#hello%#Normal_bar#world' - end - - it 'should special restore group should go back to previous group' - call s:builder.add_section('Normal', '%#__restore__#') - let stl = s:builder.build() - Expect stl !~ '%#__restore__#' - Expect stl =~ '%#Normal#' - end -end - -describe 'inactive builder' - before - let s:builder = airline#builder#new({'active': 0}) - end - - it 'should transition colors from one to the next' - call s:builder.add_section('Normal', 'hello') - call s:builder.add_section('NonText', 'world') - let stl = s:builder.build() - Expect stl =~ '%#Normal_inactive#hello%#Normal_to_NonText_inactive#>%#NonText_inactive#world' - end - - it 'should not render accents' - call s:builder.add_section('Normal', '%#__accent_foo#hello%#foo#foo%#__accent_bar#world') - let stl = s:builder.build() - Expect stl == '%#Normal_inactive#hello%#foo_inactive#fooworld' - end -end - diff --git a/.vim/bundle/vim-airline/t/commands.vim b/.vim/bundle/vim-airline/t/commands.vim deleted file mode 100644 index b56b881..0000000 --- a/.vim/bundle/vim-airline/t/commands.vim +++ /dev/null @@ -1,33 +0,0 @@ -call airline#init#bootstrap() -call airline#init#sections() - -source plugin/airline.vim - -describe 'commands' - it 'should toggle off and on' - execute 'AirlineToggle' - Expect exists('#airline') to_be_false - execute 'AirlineToggle' - Expect exists('#airline') to_be_true - end - - it 'should toggle whitespace off and on' - call airline#extensions#load() - execute 'AirlineToggleWhitespace' - Expect exists('#airline_whitespace') to_be_false - execute 'AirlineToggleWhitespace' - Expect exists('#airline_whitespace') to_be_true - end - - it 'should display theme name with no args' - execute 'AirlineTheme simple' - Expect g:airline_theme == 'simple' - execute 'AirlineTheme dark' - Expect g:airline_theme == 'dark' - end - - it 'should have a refresh command' - Expect exists(':AirlineRefresh') to_be_true - end -end - diff --git a/.vim/bundle/vim-airline/t/extensions_default.vim b/.vim/bundle/vim-airline/t/extensions_default.vim deleted file mode 100644 index b98e816..0000000 --- a/.vim/bundle/vim-airline/t/extensions_default.vim +++ /dev/null @@ -1,32 +0,0 @@ -let g:airline_theme = 'dark' -call airline#init#bootstrap() -call airline#init#sections() -source plugin/airline.vim - -describe 'default' - before - let s:builder = airline#builder#new({'active': 1}) - end - - it 'should use the layout' - let g:airline#extensions#default#layout = [ - \ [ 'c', 'a', 'b', 'warning' ], - \ [ 'x', 'z', 'y' ] - \ ] - call airline#extensions#default#apply(s:builder, { 'winnr': 1, 'active': 1 }) - let stl = s:builder.build() - Expect stl =~ 'airline_c_to_airline_a' - Expect stl =~ 'airline_a_to_airline_b' - Expect stl =~ 'airline_b_to_airline_warning' - Expect stl =~ 'airline_x_to_airline_z' - Expect stl =~ 'airline_z_to_airline_y' - end - - it 'should only render warning section in active splits' - wincmd s - Expect airline#statusline(1) =~ 'warning' - Expect airline#statusline(2) !~ 'warning' - wincmd c - end -end - diff --git a/.vim/bundle/vim-airline/t/highlighter.vim b/.vim/bundle/vim-airline/t/highlighter.vim deleted file mode 100644 index a1ed490..0000000 --- a/.vim/bundle/vim-airline/t/highlighter.vim +++ /dev/null @@ -1,21 +0,0 @@ -let g:airline_theme = 'dark' - -describe 'highlighter' - it 'should create separator highlight groups' - hi Foo1 ctermfg=1 ctermbg=2 - hi Foo2 ctermfg=3 ctermbg=4 - call airline#highlighter#add_separator('Foo1', 'Foo2', 0) - let hl = airline#highlighter#get_highlight('Foo1_to_Foo2') - Expect hl == [ '', '', '4', '2', '' ] - end - - it 'should populate accent colors' - Expect exists('g:airline#themes#dark#palette.normal.airline_c_red') to_be_false - Expect hlID('airline_c_red') == 0 - call airline#themes#patch(g:airline#themes#dark#palette) - call airline#highlighter#add_accent('red') - call airline#highlighter#highlight(['normal']) - Expect hlID('airline_c_red') != 0 - end -end - diff --git a/.vim/bundle/vim-airline/t/init.vim b/.vim/bundle/vim-airline/t/init.vim deleted file mode 100644 index 86efe58..0000000 --- a/.vim/bundle/vim-airline/t/init.vim +++ /dev/null @@ -1,77 +0,0 @@ -let s:sections = ['a', 'b', 'c', 'gutter', 'x', 'y', 'z', 'warning'] - -function! s:clear() - for key in s:sections - unlet! g:airline_section_{key} - endfor -endfunction - -call airline#init#bootstrap() - -describe 'init sections' - before - call s:clear() - call airline#init#sections() - end - - after - call s:clear() - end - - it 'section a should have mode, paste, iminsert' - Expect g:airline_section_a =~ 'mode' - Expect g:airline_section_a =~ 'paste' - Expect g:airline_section_a =~ 'iminsert' - end - - it 'section b should be blank because no extensions are installed' - Expect g:airline_section_b == '' - end - - it 'section c should be file' - Expect g:airline_section_c == '%<%f%m %#__accent_red#%{airline#util#wrap(airline#parts#readonly(),0)}%#__restore__#' - end - - it 'section x should be filetype' - Expect g:airline_section_x == '%{airline#util#wrap(airline#parts#filetype(),0)}' - end - - it 'section y should be fenc and ff' - Expect g:airline_section_y =~ 'ff' - Expect g:airline_section_y =~ 'fenc' - end - - it 'section z should be line numbers' - Expect g:airline_section_z =~ '%3p%%' - Expect g:airline_section_z =~ '%4l' - Expect g:airline_section_z =~ '%3c' - end - - it 'should not redefine sections already defined' - for s in s:sections - let g:airline_section_{s} = s - endfor - call airline#init#bootstrap() - for s in s:sections - Expect g:airline_section_{s} == s - endfor - end - - it 'all default statusline extensions should be blank' - Expect airline#parts#get('hunks').raw == '' - Expect airline#parts#get('branch').raw == '' - Expect airline#parts#get('tagbar').raw == '' - Expect airline#parts#get('syntastic').raw == '' - Expect airline#parts#get('eclim').raw == '' - Expect airline#parts#get('whitespace').raw == '' - end -end - -describe 'init parts' - it 'should not redefine parts already defined' - call airline#parts#define_raw('linenr', 'bar') - call airline#init#sections() - Expect g:airline_section_z =~ 'bar' - end -end - diff --git a/.vim/bundle/vim-airline/t/parts.vim b/.vim/bundle/vim-airline/t/parts.vim deleted file mode 100644 index ee7c92e..0000000 --- a/.vim/bundle/vim-airline/t/parts.vim +++ /dev/null @@ -1,39 +0,0 @@ -describe 'parts' - it 'overwrites existing values' - call airline#parts#define('foo', { 'test': '123' }) - Expect airline#parts#get('foo').test == '123' - call airline#parts#define('foo', { 'test': '321' }) - Expect airline#parts#get('foo').test == '321' - end - - it 'can define a function part' - call airline#parts#define_function('func', 'bar') - Expect airline#parts#get('func').function == 'bar' - end - - it 'can define a text part' - call airline#parts#define_text('text', 'bar') - Expect airline#parts#get('text').text == 'bar' - end - - it 'can define a raw part' - call airline#parts#define_raw('raw', 'bar') - Expect airline#parts#get('raw').raw == 'bar' - end - - it 'can define a minwidth' - call airline#parts#define_minwidth('mw', 123) - Expect airline#parts#get('mw').minwidth == 123 - end - - it 'can define a condition' - call airline#parts#define_condition('part', '1') - Expect airline#parts#get('part').condition == '1' - end - - it 'can define a accent' - call airline#parts#define_accent('part', 'red') - Expect airline#parts#get('part').accent == 'red' - end -end - diff --git a/.vim/bundle/vim-airline/t/section.vim b/.vim/bundle/vim-airline/t/section.vim deleted file mode 100644 index 034440c..0000000 --- a/.vim/bundle/vim-airline/t/section.vim +++ /dev/null @@ -1,76 +0,0 @@ -function! SectionSpec() -endfunction - -describe 'section' - before - call airline#parts#define_text('text', 'text') - call airline#parts#define_raw('raw', 'raw') - call airline#parts#define_function('func', 'SectionSpec') - end - - it 'should be able to reference default parts' - let s = airline#section#create(['paste']) - Expect s == '%{airline#util#wrap(airline#parts#paste(),0)}' - end - - it 'should create sections with no separators' - let s = airline#section#create(['text', 'raw', 'func']) - Expect s == '%{airline#util#wrap("text",0)}raw%{airline#util#wrap(SectionSpec(),0)}' - end - - it 'should create left sections with separators' - let s = airline#section#create_left(['text', 'text']) - Expect s == '%{airline#util#wrap("text",0)}%{airline#util#append("text",0)}' - end - - it 'should create right sections with separators' - let s = airline#section#create_right(['text', 'text']) - Expect s == '%{airline#util#prepend("text",0)}%{airline#util#wrap("text",0)}' - end - - it 'should prefix with accent group if provided and restore afterwards' - call airline#parts#define('hi', { - \ 'raw': 'hello', - \ 'accent': 'red', - \ }) - let s = airline#section#create(['hi']) - Expect s == '%#__accent_red#hello%#__restore__#' - end - - it 'should accent functions' - call airline#parts#define_function('hi', 'Hello') - call airline#parts#define_accent('hi', 'bold') - let s = airline#section#create(['hi']) - Expect s == '%#__accent_bold#%{airline#util#wrap(Hello(),0)}%#__restore__#' - end - - it 'should parse out a section from the distro' - call airline#extensions#load() - let s = airline#section#create(['whitespace']) - Expect s =~ 'airline#extensions#whitespace#check' - end - - it 'should use parts as is if they are not found' - let s = airline#section#create(['asdf', 'func']) - Expect s == 'asdf%{airline#util#wrap(SectionSpec(),0)}' - end - - it 'should force add separators for raw and missing keys' - let s = airline#section#create_left(['asdf', 'raw']) - Expect s == 'asdf > raw' - let s = airline#section#create_left(['asdf', 'aaaa', 'raw']) - Expect s == 'asdf > aaaa > raw' - let s = airline#section#create_right(['raw', '%f']) - Expect s == 'raw < %f' - let s = airline#section#create_right(['%t', 'asdf', '%{getcwd()}']) - Expect s == '%t < asdf < %{getcwd()}' - end - - it 'should empty out parts that do not pass their condition' - call airline#parts#define_text('conditional', 'conditional') - call airline#parts#define_condition('conditional', '0') - let s = airline#section#create(['conditional']) - Expect s == '%{0 ? airline#util#wrap("conditional",0) : ""}' - end -end - diff --git a/.vim/bundle/vim-airline/t/themes.vim b/.vim/bundle/vim-airline/t/themes.vim deleted file mode 100644 index d735229..0000000 --- a/.vim/bundle/vim-airline/t/themes.vim +++ /dev/null @@ -1,68 +0,0 @@ -describe 'themes' - after - highlight clear Foo - highlight clear Normal - end - - it 'should extract correct colors' - highlight Foo ctermfg=1 ctermbg=2 - let colors = airline#themes#get_highlight('Foo') - Expect colors[2] == '1' - Expect colors[3] == '2' - end - - it 'should extract from normal if colors unavailable' - highlight Normal ctermfg=100 ctermbg=200 - highlight Foo ctermbg=2 - let colors = airline#themes#get_highlight('Foo') - Expect colors[2] == '100' - Expect colors[3] == '2' - end - - it 'should flip target group if it is reversed' - highlight Foo ctermbg=222 ctermfg=103 term=reverse - let colors = airline#themes#get_highlight('Foo') - Expect colors[2] == '222' - Expect colors[3] == '103' - end - - it 'should pass args through correctly' - let hl = airline#themes#get_highlight('Foo', 'bold', 'italic') - Expect hl == ['', '', 0, 1, 'bold,italic'] - - let hl = airline#themes#get_highlight2(['Foo','bg'], ['Foo','fg'], 'italic', 'bold') - Expect hl == ['', '', 1, 0, 'italic,bold'] - end - - it 'should generate color map with mirroring' - let map = airline#themes#generate_color_map( - \ [ 1, 1, 1, 1, '1' ], - \ [ 2, 2, 2, 2, '2' ], - \ [ 3, 3, 3, 3, '3' ], - \ ) - Expect map.airline_a[0] == 1 - Expect map.airline_b[0] == 2 - Expect map.airline_c[0] == 3 - Expect map.airline_x[0] == 3 - Expect map.airline_y[0] == 2 - Expect map.airline_z[0] == 1 - end - - it 'should generate color map with full set of colors' - let map = airline#themes#generate_color_map( - \ [ 1, 1, 1, 1, '1' ], - \ [ 2, 2, 2, 2, '2' ], - \ [ 3, 3, 3, 3, '3' ], - \ [ 4, 4, 4, 4, '4' ], - \ [ 5, 5, 5, 5, '5' ], - \ [ 6, 6, 6, 6, '6' ], - \ ) - Expect map.airline_a[0] == 1 - Expect map.airline_b[0] == 2 - Expect map.airline_c[0] == 3 - Expect map.airline_x[0] == 4 - Expect map.airline_y[0] == 5 - Expect map.airline_z[0] == 6 - end -end - diff --git a/.vim/bundle/vim-airline/t/util.vim b/.vim/bundle/vim-airline/t/util.vim deleted file mode 100644 index 913de9d..0000000 --- a/.vim/bundle/vim-airline/t/util.vim +++ /dev/null @@ -1,54 +0,0 @@ -call airline#init#bootstrap() - -function! Util1() - let g:count += 1 -endfunction -function! Util2() - let g:count += 2 -endfunction -function! Util3(...) - let g:count = a:0 -endfunction - -describe 'util' - before - let g:count = 0 - end - - it 'has append wrapper function' - Expect airline#util#append('', 0) == '' - Expect airline#util#append('1', 0) == ' > 1' - end - - it 'has prepend wrapper function' - Expect airline#util#prepend('', 0) == '' - Expect airline#util#prepend('1', 0) == '1 < ' - end - - it 'has getwinvar function' - Expect airline#util#getwinvar(1, 'asdf', '123') == '123' - call setwinvar(1, 'vspec', 'is cool') - Expect airline#util#getwinvar(1, 'vspec', '') == 'is cool' - end - - it 'has exec funcrefs helper functions' - call airline#util#exec_funcrefs([function('Util1'), function('Util2')]) - Expect g:count == 3 - - call airline#util#exec_funcrefs([function('Util3')], 1, 2, 3, 4) - Expect g:count == 4 - end - - it 'should ignore minwidth if less than 0' - Expect airline#util#append('foo', -1) == ' > foo' - Expect airline#util#prepend('foo', -1) == 'foo < ' - Expect airline#util#wrap('foo', -1) == 'foo' - end - - it 'should return empty if winwidth() > minwidth' - Expect airline#util#append('foo', 99999) == '' - Expect airline#util#prepend('foo', 99999) == '' - Expect airline#util#wrap('foo', 99999) == '' - end -end - diff --git a/.vim/bundle/vim-fugitive/.gitignore b/.vim/bundle/vim-fugitive/.gitignore deleted file mode 100644 index 0a56e3f..0000000 --- a/.vim/bundle/vim-fugitive/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/doc/tags diff --git a/.vim/bundle/vim-fugitive/CONTRIBUTING.markdown b/.vim/bundle/vim-fugitive/CONTRIBUTING.markdown deleted file mode 100644 index e651dca..0000000 --- a/.vim/bundle/vim-fugitive/CONTRIBUTING.markdown +++ /dev/null @@ -1,18 +0,0 @@ -Before reporting a bug, you should try stripping down your Vim configuration -and removing other plugins. The sad truth about VimScript is that it is -fraught with incompatibilities waiting to happen. I'm happy to work around -them where I can, but it's up to you to isolate the conflict. - -Fugitive is particularly prone to regressions due to Git version issues, -platform issues, and interactions with other plugins. I end up bisecting a -lot more than other projects, and thus I'm especially meticulous here about -maintaining a clean, readable, history. Squash and force push any requested -changes to a pull request. And if your [commit message -sucks](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html), -I'm not going to accept it. Period. - -Beyond that, don't be shy about asking before patching. What takes you hours -might take me minutes simply because I have both domain knowledge and a -perverse knowledge of VimScript so vast that many would consider it a symptom -of mental illness. On the flip side, some ideas I'll reject no matter how -good the implementation is. "Send a patch" is an edge case answer in my book. diff --git a/.vim/bundle/vim-fugitive/README.markdown b/.vim/bundle/vim-fugitive/README.markdown deleted file mode 100644 index 68a61e6..0000000 --- a/.vim/bundle/vim-fugitive/README.markdown +++ /dev/null @@ -1,120 +0,0 @@ -# fugitive.vim - -I'm not going to lie to you; fugitive.vim may very well be the best -Git wrapper of all time. Check out these features: - -View any blob, tree, commit, or tag in the repository with `:Gedit` (and -`:Gsplit`, `:Gvsplit`, `:Gtabedit`, ...). Edit a file in the index and -write to it to stage the changes. Use `:Gdiff` to bring up the staged -version of the file side by side with the working tree version and use -Vim's diff handling capabilities to stage a subset of the file's -changes. - -Bring up the output of `git status` with `:Gstatus`. Press `-` to -`add`/`reset` a file's changes, or `p` to `add`/`reset` `--patch` that -mofo. And guess what `:Gcommit` does! - -`:Gblame` brings up an interactive vertical split with `git blame` -output. Press enter on a line to edit the commit where the line -changed, or `o` to open it in a split. When you're done, use `:Gedit` -in the historic buffer to go back to the work tree version. - -`:Gmove` does a `git mv` on a file and simultaneously renames the -buffer. `:Gremove` does a `git rm` on a file and simultaneously deletes -the buffer. - -Use `:Ggrep` to search the work tree (or any arbitrary commit) with -`git grep`, skipping over that which is not tracked in the repository. -`:Glog` loads all previous revisions of a file into the quickfix list so -you can iterate over them and watch the file evolve! - -`:Gread` is a variant of `git checkout -- filename` that operates on the -buffer rather than the filename. This means you can use `u` to undo it -and you never get any warnings about the file changing outside Vim. -`:Gwrite` writes to both the work tree and index versions of a file, -making it like `git add` when called from a work tree file and like -`git checkout` when called from the index or a blob in history. - -Use `:Gbrowse` to open the current file on GitHub, with optional line -range (try it in visual mode!). If your current repository isn't on -GitHub, `git instaweb` will be spun up instead. - -Add `%{fugitive#statusline()}` to `'statusline'` to get an indicator -with the current branch in (surprise!) your statusline. - -Last but not least, there's `:Git` for running any arbitrary command, -and `Git!` to open the output of a command in a temp file. - -## Screencasts - -* [A complement to command line git](http://vimcasts.org/e/31) -* [Working with the git index](http://vimcasts.org/e/32) -* [Resolving merge conflicts with vimdiff](http://vimcasts.org/e/33) -* [Browsing the git object database](http://vimcasts.org/e/34) -* [Exploring the history of a git repository](http://vimcasts.org/e/35) - -## Installation - -If you don't have a preferred installation method, I recommend -installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and -then simply copy and paste: - - cd ~/.vim/bundle - git clone git://github.com/tpope/vim-fugitive.git - -Once help tags have been generated, you can view the manual with -`:help fugitive`. - -If your Vim version is below 7.2, I recommend also installing -[vim-git](https://github.com/tpope/vim-git) for syntax highlighting and -other Git niceties. - -## FAQ - -> I installed the plugin and started Vim. Why don't any of the commands -> exist? - -Fugitive cares about the current file, not the current working -directory. Edit a file from the repository. - -> I opened a new tab. Why don't any of the commands exist? - -Fugitive cares about the current file, not the current working -directory. Edit a file from the repository. - -> Why is `:Gbrowse` not using the right browser? - -`:Gbrowse` delegates to `git web--browse`, which is less than perfect -when it comes to finding the right browser. You can tell it the correct -browser to use with `git config --global web.browser ...`. On OS X, for -example, you might want to set this to `open`. See `git web--browse --help` -for details. - -> Here's a patch that automatically opens the quickfix window after -> `:Ggrep`. - -This is a great example of why I recommend asking before patching. -There are valid arguments to be made both for and against automatically -opening the quickfix window. Whenever I have to make an arbitrary -decision like this, I ask what Vim would do. And Vim does not open a -quickfix window after `:grep`. - -Luckily, it's easy to implement the desired behavior without changing -fugitive.vim. The following autocommand will cause the quickfix window -to open after any grep invocation: - - autocmd QuickFixCmdPost *grep* cwindow - -## Self-Promotion - -Like fugitive.vim? Follow the repository on -[GitHub](https://github.com/tpope/vim-fugitive) and vote for it on -[vim.org](http://www.vim.org/scripts/script.php?script_id=2975). And if -you're feeling especially charitable, follow [tpope](http://tpo.pe/) on -[Twitter](http://twitter.com/tpope) and -[GitHub](https://github.com/tpope). - -## License - -Copyright (c) Tim Pope. Distributed under the same terms as Vim itself. -See `:help license`. diff --git a/.vim/bundle/vim-fugitive/doc/fugitive.txt b/.vim/bundle/vim-fugitive/doc/fugitive.txt deleted file mode 100644 index 5870837..0000000 --- a/.vim/bundle/vim-fugitive/doc/fugitive.txt +++ /dev/null @@ -1,319 +0,0 @@ -*fugitive.txt* A Git wrapper so awesome, it should be illegal - -Author: Tim Pope -License: Same terms as Vim itself (see |license|) - -This plugin is only available if 'compatible' is not set. - -INTRODUCTION *fugitive* - -Whenever you edit a file from a Git repository, a set of commands is defined -that serve as a gateway to Git. - -COMMANDS *fugitive-commands* - -These commands are local to the buffers in which they work (generally, buffers -that are part of Git repositories). - - *fugitive-:Git* -:Git [args] Run an arbitrary git command. Similar to :!git [args] - but chdir to the repository tree first. - - *fugitive-:Git!* -:Git! [args] Like |:Git|, but capture the output into a temp file, - and edit that temp file. - - *fugitive-:Gcd* -:Gcd [directory] |:cd| relative to the repository. - - *fugitive-:Glcd* -:Glcd [directory] |:lcd| relative to the repository. - - *fugitive-:Gstatus* -:Gstatus Bring up the output of git-status in the preview - window. The following maps, which work on the cursor - line file where sensible, are provided: - - g? show this help - next file - previous file - |:Gedit| - - |:Git| add - - |:Git| reset (staged files) - cA |:Gcommit| --amend --reuse-message=HEAD - ca |:Gcommit| --amend - cc |:Gcommit| - cva |:Gcommit| --amend --verbose - cvc |:Gcommit| --verbose - D |:Gdiff| - ds |:Gsdiff| - dp |:Git!| diff (p for patch; use :Gw to apply) - dp |:Git| add --intent-to-add (untracked files) - dv |:Gvdiff| - O |:Gtabedit| - o |:Gsplit| - p |:Git| add --patch - p |:Git| reset --patch (staged files) - q close status - R reload status - S |:Gvsplit| - - *fugitive-:Gcommit* -:Gcommit [args] A wrapper around git-commit. If there is nothing - to commit, |:Gstatus| is called instead. Unless the - arguments given would skip the invocation of an editor - (e.g., -m), a split window will be used to obtain a - commit message. Write and close that window (:wq or - |:Gwrite|) to finish the commit. Unlike when running - the actual git-commit command, it is possible (but - unadvisable) to muck with the index with commands like - git-add and git-reset while a commit message is - pending. - - *fugitive-:Ggrep* -:Ggrep [args] |:grep| with git-grep as 'grepprg'. - - *fugitive-:Glgrep* -:Glgrep [args] |:lgrep| with git-grep as 'grepprg'. - - *fugitive-:Glog* -:Glog [args] Load all previous revisions of the current file into - the quickfix list. Additional git-log arguments can - be given (for example, --reverse). If "--" appears as - an argument, no file specific filtering is done, and - previous commits rather than previous file revisions - are loaded. - - *fugitive-:Gllog* -:Gllog [args] Like |:Glog|, but use the location list instead of the - quickfix list. - - *fugitive-:Gedit* *fugitive-:Ge* -:Gedit [revision] |:edit| a |fugitive-revision|. - - *fugitive-:Gsplit* -:Gsplit [revision] |:split| a |fugitive-revision|. - - *fugitive-:Gvsplit* -:Gvsplit [revision] |:vsplit| a |fugitive-revision|. - - *fugitive-:Gtabedit* -:Gtabedit [revision] |:tabedit| a |fugitive-revision|. - - *fugitive-:Gpedit* -:Gpedit [revision] |:pedit| a |fugitive-revision|. - -:Gsplit! [args] *fugitive-:Gsplit!* *fugitive-:Gvsplit!* -:Gvsplit! [args] *fugitive-:Gtabedit!* *fugitive-:Gpedit!* -:Gtabedit! [args] Like |:Git!|, but open the resulting temp file in a -:Gpedit! [args] split, tab, or preview window. - - *fugitive-:Gread* -:Gread [revision] Empty the buffer and |:read| a |fugitive-revision|. - When the argument is omitted, this is similar to - git-checkout on a work tree file or git-add on a stage - file, but without writing anything to disk. - -:{range}Gread [revision] - |:read| in a |fugitive-revision| after {range}. - - *fugitive-:Gread!* -:Gread! [args] Empty the buffer and |:read| the output of a Git - command. For example, :Gread! show HEAD:%. - -:{range}Gread! [args] |:read| the output of a Git command after {range}. - - *fugitive-:Gw* *fugitive-:Gwrite* -:Gwrite Write to the current file's path and stage the results. - When run in a work tree file, it is effectively git - add. Elsewhere, it is effectively git-checkout. A - great deal of effort is expended to behave sensibly - when the work tree or index version of the file is - open in another buffer. - -:Gwrite {path} You can give |:Gwrite| an explicit path of where in - the work tree to write. You can also give a path like - :0:foo.txt or even :0 to write to just that stage in - the index. - - *fugitive-:Gwq* -:Gwq [path] Like |:Gwrite| followed by |:quit| if the write - succeeded. - -:Gwq! [path] Like |:Gwrite|! followed by |:quit|! if the write - succeeded. - - *fugitive-:Gdiff* -:Gdiff [revision] Perform a |vimdiff| against the current file in the - given revision. With no argument, the version in the - index is used (which means a three-way diff during a - merge conflict, making it a git-mergetool - alternative). The newer of the two files is placed - to the right. Use |do| and |dp| and write to the - index file to simulate "git add --patch". - - *fugitive-:Gsdiff* -:Gsdiff [revision] Like |:Gdiff|, but split horizontally. - - *fugitive-:Gvdiff* -:Gvdiff [revision] Identical to |:Gdiff|. For symmetry with |:Gsdiff|. - - *fugitive-:Gmove* -:Gmove {destination} Wrapper around git-mv that renames the buffer - afterward. The destination is relative to the current - directory except when started with a /, in which case - it is relative to the work tree. Add a ! to pass -f. - - *fugitive-:Gremove* -:Gremove Wrapper around git-rm that deletes the buffer - afterward. When invoked in an index file, --cached is - passed. Add a ! to pass -f and forcefully discard the - buffer. - - *fugitive-:Gblame* -:Gblame [flags] Run git-blame on the file and open the results in a - scroll bound vertical split. Press enter on a line to - reblame the file as it was in that commit. You can - give any of ltfnsewMC as flags and they will be passed - along to git-blame. The following maps, which work on - the cursor line commit where sensible, are provided: - - g? show this help - A resize to end of author column - C resize to end of commit column - D resize to end of date/time column - q close blame and return to blamed window - gq q, then |:Gedit| to return to work tree version - q, then open commit - o open commit in horizontal split - O open commit in new tab - - reblame at commit - ~ reblame at [count]th first grandparent - P reblame at [count]th parent (like HEAD^[count]) - -:[range]Gblame [flags] Run git-blame on the given range. - - *fugitive-:Gbrowse* -:[range]Gbrowse If the remote for the current branch is on GitHub, - open the current file, blob, tree, commit, or tag - (with git-web--browse) on GitHub. Otherwise, open the - current file, blob, tree, commit, or tag in - git-instaweb (if you have issues, verify you can run - "git instaweb" from a terminal). If a range is given, - it is appropriately appended to the URL as an anchor. - - To use with GitHub FI, point g:fugitive_github_domains - at a list of domains: -> - let g:fugitive_github_domains = ['https://example.com'] -~ -:[range]Gbrowse! Like :Gbrowse, but put the URL on the clipboard rather - than opening it. - -:[range]Gbrowse {revision} - Like :Gbrowse, but for a given |fugitive-revision|. A - useful value here is -, which ties the URL to the - latest commit rather than a volatile branch. - -:[range]Gbrowse [...]@{remote} - Force using the given remote rather than the remote - for the current branch. The remote is used to - determine which GitHub repository to link to. - -MAPPINGS *fugitive-mappings* - -These maps are available everywhere. - - *fugitive-c_CTRL-R_CTRL-G* - On the command line, recall the path to the current - object (that is, a representation of the object - recognized by |:Gedit|). - - *fugitive-y_CTRL-G* -["x]y Yank the commit SHA and path to the current object. - -These maps are available in Git objects. - - *fugitive-* - Jump to the revision under the cursor. - - *fugitive-o* -o Jump to the revision under the cursor in a new split. - - *fugitive-S* -S Jump to the revision under the cursor in a new - vertical split. - - *fugitive-O* -O Jump to the revision under the cursor in a new tab. - - *fugitive--* -- Go to the tree containing the current tree or blob. - - *fugitive-~* -~ Go to the current file in the [count]th first - ancestor. - - *fugitive-P* -P Go to the current file in the [count]th parent. - - *fugitive-C* -C Go to the commit containing the current file. - - *fugitive-.* -. Start a |:| command line with the current revision - prepopulated at the end of the line. - - *fugitive-a* -a Show the current tag, commit, or tree in an alternate - format. - -SPECIFYING REVISIONS *fugitive-revision* - -Fugitive revisions are similar to Git revisions as defined in the "SPECIFYING -REVISIONS" section in the git-rev-parse man page. For commands that accept an -optional revision, the default is the file in the index for work tree files -and the work tree file for everything else. Example revisions follow. - -Revision Meaning ~ -HEAD .git/HEAD -master .git/refs/heads/master -HEAD^{} The commit referenced by HEAD -HEAD^ The parent of the commit referenced by HEAD -HEAD: The tree referenced by HEAD -/HEAD The file named HEAD in the work tree -Makefile The file named Makefile in the work tree -HEAD^:Makefile The file named Makefile in the parent of HEAD -:Makefile The file named Makefile in the index (writable) -- The current file in HEAD -^ The current file in the previous commit -~3 The current file 3 commits ago -: .git/index (Same as |:Gstatus|) -:0 The current file in the index -:1 The current file's common ancestor during a conflict -:2 The current file in the target branch during a conflict -:3 The current file in the merged branch during a conflict -:/foo The most recent commit with "foo" in the message - -STATUSLINE *fugitive-statusline* - - *fugitive#statusline()* -Add %{fugitive#statusline()} to your statusline to get an indicator including -the current branch and the currently edited file's commit. If you don't have -a statusline, this one matches the default when 'ruler' is set: -> - set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P -< - *fugitive#head(...)* -Use fugitive#head() to return the name of the current branch. If the current -HEAD is detached, fugitive#head() will return the empty string, unless the -optional argument is given, in which case the hash of the current commit will -be truncated to the given number of characters. - -ABOUT *fugitive-about* - -Grab the latest version or report a bug on GitHub: - -http://github.com/tpope/vim-fugitive - - vim:tw=78:et:ft=help:norl: diff --git a/.vim/bundle/vim-fugitive/plugin/fugitive.vim b/.vim/bundle/vim-fugitive/plugin/fugitive.vim deleted file mode 100644 index 2043dfe..0000000 --- a/.vim/bundle/vim-fugitive/plugin/fugitive.vim +++ /dev/null @@ -1,2624 +0,0 @@ -" fugitive.vim - A Git wrapper so awesome, it should be illegal -" Maintainer: Tim Pope -" Version: 2.0 -" GetLatestVimScripts: 2975 1 :AutoInstall: fugitive.vim - -if exists('g:loaded_fugitive') || &cp - finish -endif -let g:loaded_fugitive = 1 - -if !exists('g:fugitive_git_executable') - let g:fugitive_git_executable = 'git' -endif - -" Utility {{{1 - -function! s:function(name) abort - return function(substitute(a:name,'^s:',matchstr(expand(''), '\d\+_'),'')) -endfunction - -function! s:sub(str,pat,rep) abort - return substitute(a:str,'\v\C'.a:pat,a:rep,'') -endfunction - -function! s:gsub(str,pat,rep) abort - return substitute(a:str,'\v\C'.a:pat,a:rep,'g') -endfunction - -function! s:shellesc(arg) abort - if a:arg =~ '^[A-Za-z0-9_/.-]\+$' - return a:arg - elseif &shell =~# 'cmd' || &shell =~# 'power' - return '"'.s:gsub(s:gsub(a:arg, '"', '""'), '\%', '"%"').'"' - else - return shellescape(a:arg) - endif -endfunction - -function! s:fnameescape(file) abort - if exists('*fnameescape') - return fnameescape(a:file) - else - return escape(a:file," \t\n*?[{`$\\%#'\"|!<") - endif -endfunction - -function! s:throw(string) abort - let v:errmsg = 'fugitive: '.a:string - throw v:errmsg -endfunction - -function! s:warn(str) abort - echohl WarningMsg - echomsg a:str - echohl None - let v:warningmsg = a:str -endfunction - -function! s:shellslash(path) abort - if exists('+shellslash') && !&shellslash - return s:gsub(a:path,'\\','/') - else - return a:path - endif -endfunction - -let s:git_versions = {} - -function! fugitive#git_version(...) abort - if !has_key(s:git_versions, g:fugitive_git_executable) - let s:git_versions[g:fugitive_git_executable] = matchstr(system(g:fugitive_git_executable.' --version'), "\\S\\+\n") - endif - return s:git_versions[g:fugitive_git_executable] -endfunction - -function! s:recall() abort - let rev = s:sub(s:buffer().rev(), '^/', '') - if rev ==# ':' - return matchstr(getline('.'),'^#\t\%([[:alpha:] ]\+: *\)\=\zs.\{-\}\ze\%( ([^()[:digit:]]\+)\)\=$\|^\d\{6} \x\{40\} \d\t\zs.*') - elseif s:buffer().type('tree') - let file = matchstr(getline('.'), '\t\zs.*') - if empty(file) && line('.') > 2 - let file = s:sub(getline('.'), '/$', '') - endif - if !empty(file) && rev !~# ':$' - return rev . '/' . file - else - return rev . file - endif - endif - return rev -endfunction - -function! s:add_methods(namespace, method_names) abort - for name in a:method_names - let s:{a:namespace}_prototype[name] = s:function('s:'.a:namespace.'_'.name) - endfor -endfunction - -let s:commands = [] -function! s:command(definition) abort - let s:commands += [a:definition] -endfunction - -function! s:define_commands() abort - for command in s:commands - exe 'command! -buffer '.command - endfor -endfunction - -augroup fugitive_utility - autocmd! - autocmd User Fugitive call s:define_commands() -augroup END - -let s:abstract_prototype = {} - -" }}}1 -" Initialization {{{1 - -function! fugitive#is_git_dir(path) abort - let path = s:sub(a:path, '[\/]$', '') . '/' - return isdirectory(path.'objects') && isdirectory(path.'refs') && getfsize(path.'HEAD') > 10 -endfunction - -function! fugitive#extract_git_dir(path) abort - if s:shellslash(a:path) =~# '^fugitive://.*//' - return matchstr(s:shellslash(a:path), '\C^fugitive://\zs.\{-\}\ze//') - endif - let root = s:shellslash(simplify(fnamemodify(a:path, ':p:s?[\/]$??'))) - let previous = "" - while root !=# previous - if root =~# '\v^//%([^/]+/?)?$' - " This is for accessing network shares from Cygwin Vim. There won't be - " any git directory called //.git or //serverName/.git so let's avoid - " checking for them since such checks are extremely slow. - break - endif - if index(split($GIT_CEILING_DIRECTORIES, ':'), root) >= 0 - break - endif - if root ==# $GIT_WORK_TREE && fugitive#is_git_dir($GIT_DIR) - return $GIT_DIR - endif - let dir = s:sub(root, '[\/]$', '') . '/.git' - let type = getftype(dir) - if type ==# 'dir' && fugitive#is_git_dir(dir) - return dir - elseif type ==# 'link' && fugitive#is_git_dir(dir) - return resolve(dir) - elseif type !=# '' && filereadable(dir) - let line = get(readfile(dir, '', 1), 0, '') - if line =~# '^gitdir: \.' && fugitive#is_git_dir(root.'/'.line[8:-1]) - return simplify(root.'/'.line[8:-1]) - elseif line =~# '^gitdir: ' && fugitive#is_git_dir(line[8:-1]) - return line[8:-1] - endif - elseif fugitive#is_git_dir(root) - return root - endif - let previous = root - let root = fnamemodify(root, ':h') - endwhile - return '' -endfunction - -function! fugitive#detect(path) abort - if exists('b:git_dir') && (b:git_dir ==# '' || b:git_dir =~# '/$') - unlet b:git_dir - endif - if !exists('b:git_dir') - let dir = fugitive#extract_git_dir(a:path) - if dir !=# '' - let b:git_dir = dir - endif - endif - if exists('b:git_dir') - silent doautocmd User FugitiveBoot - cnoremap fnameescape(recall()) - nnoremap y :call setreg(v:register, recall()) - let buffer = fugitive#buffer() - if expand('%:p') =~# '//' - call buffer.setvar('&path', s:sub(buffer.getvar('&path'), '^\.%(,|$)', '')) - endif - if stridx(buffer.getvar('&tags'), escape(b:git_dir.'/tags', ', ')) == -1 - call buffer.setvar('&tags', escape(b:git_dir.'/tags', ', ').','.buffer.getvar('&tags')) - if &filetype !=# '' - call buffer.setvar('&tags', escape(b:git_dir.'/'.&filetype.'.tags', ', ').','.buffer.getvar('&tags')) - endif - endif - silent doautocmd User Fugitive - endif -endfunction - -augroup fugitive - autocmd! - autocmd BufNewFile,BufReadPost * call fugitive#detect(expand(':p')) - autocmd FileType netrw call fugitive#detect(expand('%:p')) - autocmd User NERDTreeInit,NERDTreeNewRoot call fugitive#detect(b:NERDTreeRoot.path.str()) - autocmd VimEnter * if expand('')==''|call fugitive#detect(getcwd())|endif - autocmd CmdWinEnter * call fugitive#detect(expand('#:p')) - autocmd BufWinLeave * execute getwinvar(+bufwinnr(+expand('')), 'fugitive_leave') -augroup END - -" }}}1 -" Repository {{{1 - -let s:repo_prototype = {} -let s:repos = {} - -function! s:repo(...) abort - let dir = a:0 ? a:1 : (exists('b:git_dir') && b:git_dir !=# '' ? b:git_dir : fugitive#extract_git_dir(expand('%:p'))) - if dir !=# '' - if has_key(s:repos, dir) - let repo = get(s:repos, dir) - else - let repo = {'git_dir': dir} - let s:repos[dir] = repo - endif - return extend(extend(repo, s:repo_prototype, 'keep'), s:abstract_prototype, 'keep') - endif - call s:throw('not a git repository: '.expand('%:p')) -endfunction - -function! fugitive#repo(...) abort - return call('s:repo', a:000) -endfunction - -function! s:repo_dir(...) dict abort - return join([self.git_dir]+a:000,'/') -endfunction - -function! s:repo_configured_tree() dict abort - if !has_key(self,'_tree') - let self._tree = '' - if filereadable(self.dir('config')) - let config = readfile(self.dir('config'),'',10) - call filter(config,'v:val =~# "^\\s*worktree *="') - if len(config) == 1 - let self._tree = matchstr(config[0], '= *\zs.*') - endif - endif - endif - if self._tree =~# '^\.' - return simplify(self.dir(self._tree)) - else - return self._tree - endif -endfunction - -function! s:repo_tree(...) dict abort - if self.dir() =~# '/\.git$' - let dir = self.dir()[0:-6] - else - let dir = self.configured_tree() - endif - if dir ==# '' - call s:throw('no work tree') - else - return join([dir]+a:000,'/') - endif -endfunction - -function! s:repo_bare() dict abort - if self.dir() =~# '/\.git$' - return 0 - else - return self.configured_tree() ==# '' - endif -endfunction - -function! s:repo_translate(spec) dict abort - if a:spec ==# '.' || a:spec ==# '/.' - return self.bare() ? self.dir() : self.tree() - elseif a:spec =~# '^/\=\.git$' && self.bare() - return self.dir() - elseif a:spec =~# '^/\=\.git/' - return self.dir(s:sub(a:spec, '^/=\.git/', '')) - elseif a:spec =~# '^/' - return self.tree().a:spec - elseif a:spec =~# '^:[0-3]:' - return 'fugitive://'.self.dir().'//'.a:spec[1].'/'.a:spec[3:-1] - elseif a:spec ==# ':' - if $GIT_INDEX_FILE =~# '/[^/]*index[^/]*\.lock$' && fnamemodify($GIT_INDEX_FILE,':p')[0:strlen(self.dir())] ==# self.dir('') && filereadable($GIT_INDEX_FILE) - return fnamemodify($GIT_INDEX_FILE,':p') - else - return self.dir('index') - endif - elseif a:spec =~# '^:/' - let ref = self.rev_parse(matchstr(a:spec,'.[^:]*')) - return 'fugitive://'.self.dir().'//'.ref - elseif a:spec =~# '^:' - return 'fugitive://'.self.dir().'//0/'.a:spec[1:-1] - elseif a:spec =~# 'HEAD\|^refs/' && a:spec !~ ':' && filereadable(self.dir(a:spec)) - return self.dir(a:spec) - elseif filereadable(self.dir('refs/'.a:spec)) - return self.dir('refs/'.a:spec) - elseif filereadable(self.dir('refs/tags/'.a:spec)) - return self.dir('refs/tags/'.a:spec) - elseif filereadable(self.dir('refs/heads/'.a:spec)) - return self.dir('refs/heads/'.a:spec) - elseif filereadable(self.dir('refs/remotes/'.a:spec)) - return self.dir('refs/remotes/'.a:spec) - elseif filereadable(self.dir('refs/remotes/'.a:spec.'/HEAD')) - return self.dir('refs/remotes/'.a:spec,'/HEAD') - else - try - let ref = self.rev_parse(matchstr(a:spec,'[^:]*')) - let path = s:sub(matchstr(a:spec,':.*'),'^:','/') - return 'fugitive://'.self.dir().'//'.ref.path - catch /^fugitive:/ - return self.tree(a:spec) - endtry - endif -endfunction - -function! s:repo_head(...) dict abort - let head = s:repo().head_ref() - - if head =~# '^ref: ' - let branch = s:sub(head,'^ref: %(refs/%(heads/|remotes/|tags/)=)=','') - elseif head =~# '^\x\{40\}$' - " truncate hash to a:1 characters if we're in detached head mode - let len = a:0 ? a:1 : 0 - let branch = len ? head[0:len-1] : '' - else - return '' - endif - - return branch -endfunction - -call s:add_methods('repo',['dir','configured_tree','tree','bare','translate','head']) - -function! s:repo_git_command(...) dict abort - let git = g:fugitive_git_executable . ' --git-dir='.s:shellesc(self.git_dir) - return git.join(map(copy(a:000),'" ".s:shellesc(v:val)'),'') -endfunction - -function! s:repo_git_chomp(...) dict abort - return s:sub(system(call(self.git_command,a:000,self)),'\n$','') -endfunction - -function! s:repo_git_chomp_in_tree(...) dict abort - let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' - let dir = getcwd() - try - execute cd.'`=s:repo().tree()`' - return call(s:repo().git_chomp, a:000, s:repo()) - finally - execute cd.'`=dir`' - endtry -endfunction - -function! s:repo_rev_parse(rev) dict abort - let hash = self.git_chomp('rev-parse','--verify',a:rev) - if hash =~ '\<\x\{40\}$' - return matchstr(hash,'\<\x\{40\}$') - endif - call s:throw('rev-parse '.a:rev.': '.hash) -endfunction - -call s:add_methods('repo',['git_command','git_chomp','git_chomp_in_tree','rev_parse']) - -function! s:repo_dirglob(base) dict abort - let base = s:sub(a:base,'^/','') - let matches = split(glob(self.tree(s:gsub(base,'/','*&').'*/')),"\n") - call map(matches,'v:val[ strlen(self.tree())+(a:base !~ "^/") : -1 ]') - return matches -endfunction - -function! s:repo_superglob(base) dict abort - if a:base =~# '^/' || a:base !~# ':' - let results = [] - if a:base !~# '^/' - let heads = ["HEAD","ORIG_HEAD","FETCH_HEAD","MERGE_HEAD"] - let heads += sort(split(s:repo().git_chomp("rev-parse","--symbolic","--branches","--tags","--remotes"),"\n")) - call filter(heads,'v:val[ 0 : strlen(a:base)-1 ] ==# a:base') - let results += heads - endif - if !self.bare() - let base = s:sub(a:base,'^/','') - let matches = split(glob(self.tree(s:gsub(base,'/','*&').'*')),"\n") - call map(matches,'s:shellslash(v:val)') - call map(matches,'v:val !~ "/$" && isdirectory(v:val) ? v:val."/" : v:val') - call map(matches,'v:val[ strlen(self.tree())+(a:base !~ "^/") : -1 ]') - let results += matches - endif - return results - - elseif a:base =~# '^:' - let entries = split(self.git_chomp('ls-files','--stage'),"\n") - call map(entries,'s:sub(v:val,".*(\\d)\\t(.*)",":\\1:\\2")') - if a:base !~# '^:[0-3]\%(:\|$\)' - call filter(entries,'v:val[1] == "0"') - call map(entries,'v:val[2:-1]') - endif - call filter(entries,'v:val[ 0 : strlen(a:base)-1 ] ==# a:base') - return entries - - else - let tree = matchstr(a:base,'.*[:/]') - let entries = split(self.git_chomp('ls-tree',tree),"\n") - call map(entries,'s:sub(v:val,"^04.*\\zs$","/")') - call map(entries,'tree.s:sub(v:val,".*\t","")') - return filter(entries,'v:val[ 0 : strlen(a:base)-1 ] ==# a:base') - endif -endfunction - -call s:add_methods('repo',['dirglob','superglob']) - -function! s:repo_config(conf) dict abort - return matchstr(system(s:repo().git_command('config').' '.a:conf),"[^\r\n]*") -endfun - -function! s:repo_user() dict abort - let username = s:repo().config('user.name') - let useremail = s:repo().config('user.email') - return username.' <'.useremail.'>' -endfun - -function! s:repo_aliases() dict abort - if !has_key(self,'_aliases') - let self._aliases = {} - for line in split(self.git_chomp('config','--get-regexp','^alias[.]'),"\n") - let self._aliases[matchstr(line,'\.\zs\S\+')] = matchstr(line,' \zs.*') - endfor - endif - return self._aliases -endfunction - -call s:add_methods('repo',['config', 'user', 'aliases']) - -function! s:repo_keywordprg() dict abort - let args = ' --git-dir='.escape(self.dir(),"\\\"' ") - if has('gui_running') && !has('win32') - return g:fugitive_git_executable . ' --no-pager' . args . ' log -1' - else - return g:fugitive_git_executable . args . ' show' - endif -endfunction - -call s:add_methods('repo',['keywordprg']) - -" }}}1 -" Buffer {{{1 - -let s:buffer_prototype = {} - -function! s:buffer(...) abort - let buffer = {'#': bufnr(a:0 ? a:1 : '%')} - call extend(extend(buffer,s:buffer_prototype,'keep'),s:abstract_prototype,'keep') - if buffer.getvar('git_dir') !=# '' - return buffer - endif - call s:throw('not a git repository: '.expand('%:p')) -endfunction - -function! fugitive#buffer(...) abort - return s:buffer(a:0 ? a:1 : '%') -endfunction - -function! s:buffer_getvar(var) dict abort - return getbufvar(self['#'],a:var) -endfunction - -function! s:buffer_setvar(var,value) dict abort - return setbufvar(self['#'],a:var,a:value) -endfunction - -function! s:buffer_getline(lnum) dict abort - return get(getbufline(self['#'], a:lnum), 0, '') -endfunction - -function! s:buffer_repo() dict abort - return s:repo(self.getvar('git_dir')) -endfunction - -function! s:buffer_type(...) dict abort - if self.getvar('fugitive_type') != '' - let type = self.getvar('fugitive_type') - elseif fnamemodify(self.spec(),':p') =~# '.\git/refs/\|\.git/\w*HEAD$' - let type = 'head' - elseif self.getline(1) =~ '^tree \x\{40\}$' && self.getline(2) == '' - let type = 'tree' - elseif self.getline(1) =~ '^\d\{6\} \w\{4\} \x\{40\}\>\t' - let type = 'tree' - elseif self.getline(1) =~ '^\d\{6\} \x\{40\}\> \d\t' - let type = 'index' - elseif isdirectory(self.spec()) - let type = 'directory' - elseif self.spec() == '' - let type = 'null' - else - let type = 'file' - endif - if a:0 - return !empty(filter(copy(a:000),'v:val ==# type')) - else - return type - endif -endfunction - -if has('win32') - - function! s:buffer_spec() dict abort - let bufname = bufname(self['#']) - let retval = '' - for i in split(bufname,'[^:]\zs\\') - let retval = fnamemodify((retval==''?'':retval.'\').i,':.') - endfor - return s:shellslash(fnamemodify(retval,':p')) - endfunction - -else - - function! s:buffer_spec() dict abort - let bufname = bufname(self['#']) - return s:shellslash(bufname == '' ? '' : fnamemodify(bufname,':p')) - endfunction - -endif - -function! s:buffer_name() dict abort - return self.spec() -endfunction - -function! s:buffer_commit() dict abort - return matchstr(self.spec(),'^fugitive://.\{-\}//\zs\w*') -endfunction - -function! s:buffer_path(...) dict abort - let rev = matchstr(self.spec(),'^fugitive://.\{-\}//\zs.*') - if rev != '' - let rev = s:sub(rev,'\w*','') - elseif self.spec()[0 : len(self.repo().dir())] ==# self.repo().dir() . '/' - let rev = '/.git'.self.spec()[strlen(self.repo().dir()) : -1] - elseif !self.repo().bare() && self.spec()[0 : len(self.repo().tree())] ==# self.repo().tree() . '/' - let rev = self.spec()[strlen(self.repo().tree()) : -1] - endif - return s:sub(s:sub(rev,'.\zs/$',''),'^/',a:0 ? a:1 : '') -endfunction - -function! s:buffer_rev() dict abort - let rev = matchstr(self.spec(),'^fugitive://.\{-\}//\zs.*') - if rev =~ '^\x/' - return ':'.rev[0].':'.rev[2:-1] - elseif rev =~ '.' - return s:sub(rev,'/',':') - elseif self.spec() =~ '\.git/index$' - return ':' - elseif self.spec() =~ '\.git/refs/\|\.git/.*HEAD$' - return self.spec()[strlen(self.repo().dir())+1 : -1] - else - return self.path('/') - endif -endfunction - -function! s:buffer_sha1() dict abort - if self.spec() =~ '^fugitive://' || self.spec() =~ '\.git/refs/\|\.git/.*HEAD$' - return self.repo().rev_parse(self.rev()) - else - return '' - endif -endfunction - -function! s:buffer_expand(rev) dict abort - if a:rev =~# '^:[0-3]$' - let file = a:rev.self.path(':') - elseif a:rev =~# '^[-:]/$' - let file = '/'.self.path() - elseif a:rev =~# '^-' - let file = 'HEAD^{}'.a:rev[1:-1].self.path(':') - elseif a:rev =~# '^@{' - let file = 'HEAD'.a:rev.self.path(':') - elseif a:rev =~# '^[~^]' - let commit = s:sub(self.commit(),'^\d=$','HEAD') - let file = commit.a:rev.self.path(':') - else - let file = a:rev - endif - return s:sub(s:sub(file,'\%$',self.path()),'\.\@<=/$','') -endfunction - -function! s:buffer_containing_commit() dict abort - if self.commit() =~# '^\d$' - return ':' - elseif self.commit() =~# '.' - return self.commit() - else - return 'HEAD' - endif -endfunction - -function! s:buffer_up(...) dict abort - let rev = self.rev() - let c = a:0 ? a:1 : 1 - while c - if rev =~# '^[/:]$' - let rev = 'HEAD' - elseif rev =~# '^:' - let rev = ':' - elseif rev =~# '^refs/[^^~:]*$\|^[^^~:]*HEAD$' - let rev .= '^{}' - elseif rev =~# '^/\|:.*/' - let rev = s:sub(rev, '.*\zs/.*', '') - elseif rev =~# ':.' - let rev = matchstr(rev, '^[^:]*:') - elseif rev =~# ':$' - let rev = rev[0:-2] - else - return rev.'~'.c - endif - let c -= 1 - endwhile - return rev -endfunction - -call s:add_methods('buffer',['getvar','setvar','getline','repo','type','spec','name','commit','path','rev','sha1','expand','containing_commit','up']) - -" }}}1 -" Git {{{1 - -call s:command("-bang -nargs=? -complete=customlist,s:GitComplete Git :execute s:Git(0,)") - -function! s:ExecuteInTree(cmd) abort - let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' - let dir = getcwd() - try - execute cd.'`=s:repo().tree()`' - execute a:cmd - finally - execute cd.'`=dir`' - endtry -endfunction - -function! s:Git(bang,cmd) abort - if a:bang - return s:Edit('edit',1,a:cmd) - endif - let git = s:repo().git_command() - if has('gui_running') && !has('win32') - let git .= ' --no-pager' - endif - let cmd = matchstr(a:cmd,'\v\C.{-}%($|\\@ `=s:repo().bare() ? s:repo().dir() : s:repo().tree()`") -call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Glcd :lcd `=s:repo().bare() ? s:repo().dir() : s:repo().tree()`") - -" }}}1 -" Gstatus {{{1 - -call s:command("-bar Gstatus :execute s:Status()") -augroup fugitive_status - autocmd! - if !has('win32') - autocmd FocusGained,ShellCmdPost * call fugitive#reload_status() - endif -augroup END - -function! s:Status() abort - try - Gpedit : - wincmd P - setlocal foldmethod=syntax foldlevel=1 - nnoremap q :bdelete - catch /^fugitive:/ - return 'echoerr v:errmsg' - endtry - return '' -endfunction - -function! fugitive#reload_status() abort - if exists('s:reloading_status') - return - endif - try - let s:reloading_status = 1 - let mytab = tabpagenr() - for tab in [mytab] + range(1,tabpagenr('$')) - for winnr in range(1,tabpagewinnr(tab,'$')) - if getbufvar(tabpagebuflist(tab)[winnr-1],'fugitive_type') ==# 'index' - execute 'tabnext '.tab - if winnr != winnr() - execute winnr.'wincmd w' - let restorewinnr = 1 - endif - try - if !&modified - call s:BufReadIndex() - endif - finally - if exists('restorewinnr') - wincmd p - endif - execute 'tabnext '.mytab - endtry - endif - endfor - endfor - finally - unlet! s:reloading_status - endtry -endfunction - -function! s:stage_info(lnum) abort - let filename = matchstr(getline(a:lnum),'^#\t\zs.\{-\}\ze\%( ([^()[:digit:]]\+)\)\=$') - let lnum = a:lnum - if has('multi_byte_encoding') - let colon = '\%(:\|\%uff1a\)' - else - let colon = ':' - endif - while lnum && getline(lnum) !~# colon.'$' - let lnum -= 1 - endwhile - if !lnum - return ['', ''] - elseif (getline(lnum+1) =~# '^# .*\$' - return 'CtrlP '.fnameescape(s:repo().tree()) - else - for i in range(a:count) - call search('^#\t.*','Wbe') - endfor - return '.' - endif -endfunction - -function! s:StageReloadSeek(target,lnum1,lnum2) abort - let jump = a:target - let f = matchstr(getline(a:lnum1-1),'^#\t\%([[:alpha:] ]\+: *\|.*\%uff1a *\)\=\zs.*') - if f !=# '' | let jump = f | endif - let f = matchstr(getline(a:lnum2+1),'^#\t\%([[:alpha:] ]\+: *\|.*\%uff1a *\)\=\zs.*') - if f !=# '' | let jump = f | endif - silent! edit! - 1 - redraw - call search('^#\t\%([[:alpha:] ]\+: *\|.*\%uff1a *\)\=\V'.jump.'\%( ([^()[:digit:]]\+)\)\=\$','W') -endfunction - -function! s:StageDiff(diff) abort - let [filename, section] = s:stage_info(line('.')) - if filename ==# '' && section ==# 'staged' - return 'Git! diff --no-ext-diff --cached' - elseif filename ==# '' - return 'Git! diff --no-ext-diff' - elseif filename =~# ' -> ' - let [old, new] = split(filename,' -> ') - execute 'Gedit '.s:fnameescape(':0:'.new) - return a:diff.' HEAD:'.s:fnameescape(old) - elseif section ==# 'staged' - execute 'Gedit '.s:fnameescape(':0:'.filename) - return a:diff.' -' - else - execute 'Gedit '.s:fnameescape('/'.filename) - return a:diff - endif -endfunction - -function! s:StageDiffEdit() abort - let [filename, section] = s:stage_info(line('.')) - let arg = (filename ==# '' ? '.' : filename) - if section ==# 'staged' - return 'Git! diff --no-ext-diff --cached '.s:shellesc(arg) - elseif section ==# 'untracked' - let repo = s:repo() - call repo.git_chomp_in_tree('add','--intent-to-add',arg) - if arg ==# '.' - silent! edit! - 1 - if !search('^# .*:\n#.*\n# .*"git checkout \|^# Changes not staged for commit:$','W') - call search('^# .*:$','W') - endif - else - call s:StageReloadSeek(arg,line('.'),line('.')) - endif - return '' - else - return 'Git! diff --no-ext-diff '.s:shellesc(arg) - endif -endfunction - -function! s:StageToggle(lnum1,lnum2) abort - if a:lnum1 == 1 && a:lnum2 == 1 - return 'Gedit /.git|call search("^index$", "wc")' - endif - try - let output = '' - for lnum in range(a:lnum1,a:lnum2) - let [filename, section] = s:stage_info(lnum) - let repo = s:repo() - if getline('.') =~# '^# .*:$' - if section ==# 'staged' - call repo.git_chomp_in_tree('reset','-q') - silent! edit! - 1 - if !search('^# .*:\n# .*"git add .*\n#\n\|^# Untracked files:$','W') - call search('^# .*:$','W') - endif - return '' - elseif section ==# 'unstaged' - call repo.git_chomp_in_tree('add','-u') - silent! edit! - 1 - if !search('^# .*:\n# .*"git add .*\n#\n\|^# Untracked files:$','W') - call search('^# .*:$','W') - endif - return '' - else - call repo.git_chomp_in_tree('add','.') - silent! edit! - 1 - call search('^# .*:$','W') - return '' - endif - endif - if filename ==# '' - continue - endif - if !exists('first_filename') - let first_filename = filename - endif - execute lnum - if filename =~ ' -> ' - let cmd = ['mv','--'] + reverse(split(filename,' -> ')) - let filename = cmd[-1] - elseif section ==# 'staged' - let cmd = ['reset','-q','--',filename] - elseif getline(lnum) =~# '^#\tdeleted:' - let cmd = ['rm','--',filename] - elseif getline(lnum) =~# '^#\tmodified:' - let cmd = ['add','--',filename] - else - let cmd = ['add','-A','--',filename] - endif - let output .= call(repo.git_chomp_in_tree,cmd,s:repo())."\n" - endfor - if exists('first_filename') - call s:StageReloadSeek(first_filename,a:lnum1,a:lnum2) - endif - echo s:sub(s:gsub(output,'\n+','\n'),'\n$','') - catch /^fugitive:/ - return 'echoerr v:errmsg' - endtry - return 'checktime' -endfunction - -function! s:StagePatch(lnum1,lnum2) abort - let add = [] - let reset = [] - - for lnum in range(a:lnum1,a:lnum2) - let [filename, section] = s:stage_info(lnum) - if getline('.') =~# '^# .*:$' && section ==# 'staged' - return 'Git reset --patch' - elseif getline('.') =~# '^# .*:$' && section ==# 'unstaged' - return 'Git add --patch' - elseif getline('.') =~# '^# .*:$' && section ==# 'untracked' - return 'Git add -N .' - elseif filename ==# '' - continue - endif - if !exists('first_filename') - let first_filename = filename - endif - execute lnum - if filename =~ ' -> ' - let reset += [split(filename,' -> ')[1]] - elseif section ==# 'staged' - let reset += [filename] - elseif getline(lnum) !~# '^#\tdeleted:' - let add += [filename] - endif - endfor - try - if !empty(add) - execute "Git add --patch -- ".join(map(add,'s:shellesc(v:val)')) - endif - if !empty(reset) - execute "Git reset --patch -- ".join(map(add,'s:shellesc(v:val)')) - endif - if exists('first_filename') - silent! edit! - 1 - redraw - call search('^#\t\%([[:alpha:] ]\+: *\)\=\V'.first_filename.'\%( ([^()[:digit:]]\+)\)\=\$','W') - endif - catch /^fugitive:/ - return 'echoerr v:errmsg' - endtry - return 'checktime' -endfunction - -" }}}1 -" Gcommit {{{1 - -call s:command("-nargs=? -complete=customlist,s:CommitComplete Gcommit :execute s:Commit()") - -function! s:Commit(args) abort - let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' - let dir = getcwd() - let msgfile = s:repo().dir('COMMIT_EDITMSG') - let outfile = tempname() - let errorfile = tempname() - try - try - execute cd.s:fnameescape(s:repo().tree()) - if &shell =~# 'cmd' || &shell =~# 'power' - let command = '' - let old_editor = $GIT_EDITOR - let $GIT_EDITOR = 'false' - else - let command = 'env GIT_EDITOR=false ' - endif - let command .= s:repo().git_command('commit').' '.a:args - if &shell =~# 'csh' - noautocmd silent execute '!('.command.' > '.outfile.') >& '.errorfile - elseif a:args =~# '\%(^\| \)-\%(-interactive\|p\|-patch\)\>' - noautocmd execute '!'.command.' 2> '.errorfile - else - noautocmd silent execute '!'.command.' > '.outfile.' 2> '.errorfile - endif - finally - execute cd.'`=dir`' - endtry - if !has('gui_running') - redraw! - endif - if !v:shell_error - if filereadable(outfile) - for line in readfile(outfile) - echo line - endfor - endif - return '' - else - let errors = readfile(errorfile) - let error = get(errors,-2,get(errors,-1,'!')) - if error =~# 'false''\=\.$' - let args = a:args - let args = s:gsub(args,'%(%(^| )-- )@' - let args = '--cleanup=strip '.args - endif - if bufname('%') == '' && line('$') == 1 && getline(1) == '' && !&mod - execute 'keepalt edit '.s:fnameescape(msgfile) - elseif s:buffer().type() ==# 'index' - execute 'keepalt edit '.s:fnameescape(msgfile) - execute (search('^#','n')+1).'wincmd+' - setlocal nopreviewwindow - else - execute 'keepalt split '.s:fnameescape(msgfile) - endif - let b:fugitive_commit_arguments = args - setlocal bufhidden=wipe filetype=gitcommit - return '1' - elseif error ==# '!' - return s:Status() - else - call s:throw(error) - endif - endif - catch /^fugitive:/ - return 'echoerr v:errmsg' - finally - if exists('old_editor') - let $GIT_EDITOR = old_editor - endif - call delete(outfile) - call delete(errorfile) - call fugitive#reload_status() - endtry -endfunction - -function! s:CommitComplete(A,L,P) abort - if a:A =~ '^-' || type(a:A) == type(0) " a:A is 0 on :Gcommit - - let args = ['-C', '-F', '-a', '-c', '-e', '-i', '-m', '-n', '-o', '-q', '-s', '-t', '-u', '-v', '--all', '--allow-empty', '--amend', '--author=', '--cleanup=', '--dry-run', '--edit', '--file=', '--include', '--interactive', '--message=', '--no-verify', '--only', '--quiet', '--reedit-message=', '--reuse-message=', '--signoff', '--template=', '--untracked-files', '--verbose'] - return filter(args,'v:val[0 : strlen(a:A)-1] ==# a:A') - else - return s:repo().superglob(a:A) - endif -endfunction - -function! s:FinishCommit() abort - let args = getbufvar(+expand(''),'fugitive_commit_arguments') - if !empty(args) - call setbufvar(+expand(''),'fugitive_commit_arguments','') - return s:Commit(args) - endif - return '' -endfunction - -augroup fugitive_commit - autocmd! - autocmd VimLeavePre,BufDelete COMMIT_EDITMSG execute s:sub(s:FinishCommit(), '^echoerr (.*)', 'echohl ErrorMsg|echo \1|echohl NONE') -augroup END - -" }}}1 -" Ggrep, Glog {{{1 - -if !exists('g:fugitive_summary_format') - let g:fugitive_summary_format = '%s' -endif - -call s:command("-bang -nargs=? -complete=customlist,s:EditComplete Ggrep :execute s:Grep('grep',0,)") -call s:command("-bang -nargs=? -complete=customlist,s:EditComplete Glgrep :execute s:Grep('lgrep',0,)") -call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Glog :execute s:Log('grep',)") -call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gllog :execute s:Log('lgrep',)") - -function! s:Grep(cmd,bang,arg) abort - let grepprg = &grepprg - let grepformat = &grepformat - let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' - let dir = getcwd() - try - execute cd.'`=s:repo().tree()`' - let &grepprg = s:repo().git_command('--no-pager', 'grep', '-n') - let &grepformat = '%f:%l:%m' - exe a:cmd.'! '.escape(matchstr(a:arg,'\v\C.{-}%($|[''" ]\@=\|)@='),'|') - let list = a:cmd =~# '^l' ? getloclist(0) : getqflist() - for entry in list - if bufname(entry.bufnr) =~ ':' - let entry.filename = s:repo().translate(bufname(entry.bufnr)) - unlet! entry.bufnr - elseif a:arg =~# '\%(^\| \)--cached\>' - let entry.filename = s:repo().translate(':0:'.bufname(entry.bufnr)) - unlet! entry.bufnr - endif - endfor - if a:cmd =~# '^l' - call setloclist(0, list, 'r') - else - call setqflist(list, 'r') - endif - if !a:bang && !empty(list) - return (a:cmd =~# '^l' ? 'l' : 'c').'first'.matchstr(a:arg,'\v\C[''" ]\zs\|.*') - else - return matchstr(a:arg,'\v\C[''" ]\|\zs.*') - endif - finally - let &grepprg = grepprg - let &grepformat = grepformat - execute cd.'`=dir`' - endtry -endfunction - -function! s:Log(cmd,...) abort - let path = s:buffer().path('/') - if path =~# '^/\.git\%(/\|$\)' || index(a:000,'--') != -1 - let path = '' - endif - let cmd = ['--no-pager', 'log', '--no-color'] - let cmd += ['--pretty=format:fugitive://'.s:repo().dir().'//%H'.path.'::'.g:fugitive_summary_format] - if empty(filter(a:000[0 : index(a:000,'--')],'v:val !~# "^-"')) - if s:buffer().commit() =~# '\x\{40\}' - let cmd += [s:buffer().commit()] - elseif s:buffer().path() =~# '^\.git/refs/\|^\.git/.*HEAD$' - let cmd += [s:buffer().path()[5:-1]] - endif - end - let cmd += map(copy(a:000),'s:sub(v:val,"^\\%(%(:\\w)*)","\\=fnamemodify(s:buffer().path(),submatch(1))")') - if path =~# '/.' - let cmd += ['--',path[1:-1]] - endif - let grepformat = &grepformat - let grepprg = &grepprg - let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' - let dir = getcwd() - try - execute cd.'`=s:repo().tree()`' - let &grepprg = escape(call(s:repo().git_command,cmd,s:repo()),'%#') - let &grepformat = '%f::%m' - exe a:cmd - finally - let &grepformat = grepformat - let &grepprg = grepprg - execute cd.'`=dir`' - endtry -endfunction - -" }}}1 -" Gedit, Gpedit, Gsplit, Gvsplit, Gtabedit, Gread {{{1 - -function! s:Edit(cmd,bang,...) abort - let buffer = s:buffer() - if a:cmd !~# 'read' - if &previewwindow && getbufvar('','fugitive_type') ==# 'index' - wincmd p - if &diff - let mywinnr = winnr() - for winnr in range(winnr('$'),1,-1) - if winnr != mywinnr && getwinvar(winnr,'&diff') - execute winnr.'wincmd w' - close - wincmd p - endif - endfor - endif - endif - endif - - if a:bang - let arglist = map(copy(a:000), 's:gsub(v:val, ''\\@>>>>>> - if getline(1) !~# '^diff ' - setlocal readonly nomodifiable - endif - if a:cmd =~# 'pedit' - wincmd p - endif - return echo - endif - return '' - endif - - if a:0 && a:1 == '' - return '' - elseif a:0 - let file = buffer.expand(join(a:000, ' ')) - elseif expand('%') ==# '' - let file = ':' - elseif buffer.commit() ==# '' && buffer.path('/') !~# '^/.git\>' - let file = buffer.path(':') - else - let file = buffer.path('/') - endif - try - let file = buffer.repo().translate(file) - catch /^fugitive:/ - return 'echoerr v:errmsg' - endtry - if a:cmd ==# 'read' - return 'silent %delete_|read '.s:fnameescape(file).'|silent 1delete_|diffupdate|'.line('.') - else - return a:cmd.' '.s:fnameescape(file) - endif -endfunction - -function! s:EditComplete(A,L,P) abort - return map(s:repo().superglob(a:A), 'fnameescape(v:val)') -endfunction - -function! s:EditRunComplete(A,L,P) abort - if a:L =~# '^\w\+!' - return s:GitComplete(a:A,a:L,a:P) - else - return s:repo().superglob(a:A) - endif -endfunction - -call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Ge :execute s:Edit('edit',0,)") -call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gedit :execute s:Edit('edit',0,)") -call s:command("-bar -bang -nargs=* -complete=customlist,s:EditRunComplete Gpedit :execute s:Edit('pedit',0,)") -call s:command("-bar -bang -nargs=* -complete=customlist,s:EditRunComplete Gsplit :execute s:Edit('split',0,)") -call s:command("-bar -bang -nargs=* -complete=customlist,s:EditRunComplete Gvsplit :execute s:Edit('vsplit',0,)") -call s:command("-bar -bang -nargs=* -complete=customlist,s:EditRunComplete Gtabedit :execute s:Edit('tabedit',0,)") -call s:command("-bar -bang -nargs=* -count -complete=customlist,s:EditRunComplete Gread :execute s:Edit((! && ? '' : ).'read',0,)") - -" }}}1 -" Gwrite, Gwq {{{1 - -call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gwrite :execute s:Write(0,)") -call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gw :execute s:Write(0,)") -call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gwq :execute s:Wq(0,)") - -function! s:Write(force,...) abort - if exists('b:fugitive_commit_arguments') - return 'write|bdelete' - elseif expand('%:t') == 'COMMIT_EDITMSG' && $GIT_INDEX_FILE != '' - return 'wq' - elseif s:buffer().type() == 'index' - return 'Gcommit' - elseif s:buffer().path() ==# '' && getline(4) =~# '^+++ ' - let filename = getline(4)[6:-1] - setlocal buftype= - silent write - setlocal buftype=nowrite - if matchstr(getline(2),'index [[:xdigit:]]\+\.\.\zs[[:xdigit:]]\{7\}') ==# s:repo().rev_parse(':0:'.filename)[0:6] - let err = s:repo().git_chomp('apply','--cached','--reverse',s:buffer().spec()) - else - let err = s:repo().git_chomp('apply','--cached',s:buffer().spec()) - endif - if err !=# '' - let v:errmsg = split(err,"\n")[0] - return 'echoerr v:errmsg' - elseif a:force - return 'bdelete' - else - return 'Gedit '.fnameescape(filename) - endif - endif - let mytab = tabpagenr() - let mybufnr = bufnr('') - let path = a:0 ? join(a:000, ' ') : s:buffer().path() - if path =~# '^:\d\>' - return 'write'.(a:force ? '! ' : ' ').s:fnameescape(s:repo().translate(s:buffer().expand(path))) - endif - let always_permitted = (s:buffer().path() ==# path && s:buffer().commit() =~# '^0\=$') - if !always_permitted && !a:force && s:repo().git_chomp_in_tree('diff','--name-status','HEAD','--',path) . s:repo().git_chomp_in_tree('ls-files','--others','--',path) !=# '' - let v:errmsg = 'fugitive: file has uncommitted changes (use ! to override)' - return 'echoerr v:errmsg' - endif - let file = s:repo().translate(path) - let treebufnr = 0 - for nr in range(1,bufnr('$')) - if fnamemodify(bufname(nr),':p') ==# file - let treebufnr = nr - endif - endfor - - if treebufnr > 0 && treebufnr != bufnr('') - let temp = tempname() - silent execute '%write '.temp - for tab in [mytab] + range(1,tabpagenr('$')) - for winnr in range(1,tabpagewinnr(tab,'$')) - if tabpagebuflist(tab)[winnr-1] == treebufnr - execute 'tabnext '.tab - if winnr != winnr() - execute winnr.'wincmd w' - let restorewinnr = 1 - endif - try - let lnum = line('.') - let last = line('$') - silent execute '$read '.temp - silent execute '1,'.last.'delete_' - silent write! - silent execute lnum - let did = 1 - finally - if exists('restorewinnr') - wincmd p - endif - execute 'tabnext '.mytab - endtry - endif - endfor - endfor - if !exists('did') - call writefile(readfile(temp,'b'),file,'b') - endif - else - execute 'write! '.s:fnameescape(s:repo().translate(path)) - endif - - if a:force - let error = s:repo().git_chomp_in_tree('add', '--force', file) - else - let error = s:repo().git_chomp_in_tree('add', file) - endif - if v:shell_error - let v:errmsg = 'fugitive: '.error - return 'echoerr v:errmsg' - endif - if s:buffer().path() ==# path && s:buffer().commit() =~# '^\d$' - set nomodified - endif - - let one = s:repo().translate(':1:'.path) - let two = s:repo().translate(':2:'.path) - let three = s:repo().translate(':3:'.path) - for nr in range(1,bufnr('$')) - let name = fnamemodify(bufname(nr), ':p') - if bufloaded(nr) && !getbufvar(nr,'&modified') && (name ==# one || name ==# two || name ==# three) - execute nr.'bdelete' - endif - endfor - - unlet! restorewinnr - let zero = s:repo().translate(':0:'.path) - for tab in range(1,tabpagenr('$')) - for winnr in range(1,tabpagewinnr(tab,'$')) - let bufnr = tabpagebuflist(tab)[winnr-1] - let bufname = fnamemodify(bufname(bufnr), ':p') - if bufname ==# zero && bufnr != mybufnr - execute 'tabnext '.tab - if winnr != winnr() - execute winnr.'wincmd w' - let restorewinnr = 1 - endif - try - let lnum = line('.') - let last = line('$') - silent execute '$read '.s:fnameescape(file) - silent execute '1,'.last.'delete_' - silent execute lnum - set nomodified - diffupdate - finally - if exists('restorewinnr') - wincmd p - endif - execute 'tabnext '.mytab - endtry - break - endif - endfor - endfor - call fugitive#reload_status() - return 'checktime' -endfunction - -function! s:Wq(force,...) abort - let bang = a:force ? '!' : '' - if exists('b:fugitive_commit_arguments') - return 'wq'.bang - endif - let result = call(s:function('s:Write'),[a:force]+a:000) - if result =~# '^\%(write\|wq\|echoerr\)' - return s:sub(result,'^write','wq') - else - return result.'|quit'.bang - endif -endfunction - -" }}}1 -" Gdiff {{{1 - -call s:command("-bang -bar -nargs=* -complete=customlist,s:EditComplete Gdiff :execute s:Diff(0,)") -call s:command("-bar -nargs=* -complete=customlist,s:EditComplete Gvdiff :execute s:Diff(0,)") -call s:command("-bar -nargs=* -complete=customlist,s:EditComplete Gsdiff :execute s:Diff(1,)") - -augroup fugitive_diff - autocmd! - autocmd BufWinLeave * if &diff && s:diff_window_count() == 2 && getbufvar(+expand(''), 'git_dir') !=# '' | call s:diffoff_all(getbufvar(+expand(''), 'git_dir')) | endif - autocmd BufWinEnter * if &diff && s:diff_window_count() == 1 && getbufvar(+expand(''), 'git_dir') !=# '' | call s:diffoff() | endif -augroup END - -function! s:diff_window_count() abort - let c = 0 - for nr in range(1,winnr('$')) - let c += getwinvar(nr,'&diff') - endfor - return c -endfunction - -function! s:diff_restore() abort - let restore = 'setlocal nodiff noscrollbind' - \ . ' scrollopt=' . &l:scrollopt - \ . (&l:wrap ? ' wrap' : ' nowrap') - \ . ' foldlevel=999' - \ . ' foldmethod=' . &l:foldmethod - \ . ' foldcolumn=' . &l:foldcolumn - \ . ' foldlevel=' . &l:foldlevel - if has('cursorbind') - let restore .= (&l:cursorbind ? ' ' : ' no') . 'cursorbind' - endif - return restore -endfunction - -function! s:diffthis() abort - if !&diff - let w:fugitive_diff_restore = s:diff_restore() - diffthis - endif -endfunction - -function! s:diffoff() abort - if exists('w:fugitive_diff_restore') - execute w:fugitive_diff_restore - unlet w:fugitive_diff_restore - else - diffoff - endif -endfunction - -function! s:diffoff_all(dir) abort - for nr in range(1,winnr('$')) - if getwinvar(nr,'&diff') - if nr != winnr() - execute nr.'wincmd w' - let restorewinnr = 1 - endif - if exists('b:git_dir') && b:git_dir ==# a:dir - call s:diffoff() - endif - endif - endfor -endfunction - -function! s:buffer_compare_age(commit) dict abort - let scores = {':0': 1, ':1': 2, ':2': 3, ':': 4, ':3': 5} - let my_score = get(scores,':'.self.commit(),0) - let their_score = get(scores,':'.a:commit,0) - if my_score || their_score - return my_score < their_score ? -1 : my_score != their_score - elseif self.commit() ==# a:commit - return 0 - endif - let base = self.repo().git_chomp('merge-base',self.commit(),a:commit) - if base ==# self.commit() - return -1 - elseif base ==# a:commit - return 1 - endif - let my_time = +self.repo().git_chomp('log','--max-count=1','--pretty=format:%at',self.commit()) - let their_time = +self.repo().git_chomp('log','--max-count=1','--pretty=format:%at',a:commit) - return my_time < their_time ? -1 : my_time != their_time -endfunction - -call s:add_methods('buffer',['compare_age']) - -function! s:Diff(bang,...) abort - let vert = a:bang ? '' : 'vertical ' - if exists(':DiffGitCached') - return 'DiffGitCached' - elseif (!a:0 || a:1 == ':') && s:buffer().commit() =~# '^[0-1]\=$' && s:repo().git_chomp_in_tree('ls-files', '--unmerged', '--', s:buffer().path()) !=# '' - let nr = bufnr('') - execute 'leftabove '.vert.'split `=fugitive#buffer().repo().translate(s:buffer().expand('':2''))`' - execute 'nnoremap dp :diffput '.nr.'diffupdate' - call s:diffthis() - wincmd p - execute 'rightbelow '.vert.'split `=fugitive#buffer().repo().translate(s:buffer().expand('':3''))`' - execute 'nnoremap dp :diffput '.nr.'diffupdate' - call s:diffthis() - wincmd p - call s:diffthis() - return '' - elseif a:0 - let arg = join(a:000, ' ') - if arg ==# '' - return '' - elseif arg ==# '/' - let file = s:buffer().path('/') - elseif arg ==# ':' - let file = s:buffer().path(':0:') - elseif arg =~# '^:/.' - try - let file = s:repo().rev_parse(arg).s:buffer().path(':') - catch /^fugitive:/ - return 'echoerr v:errmsg' - endtry - else - let file = s:buffer().expand(arg) - endif - if file !~# ':' && file !~# '^/' && s:repo().git_chomp('cat-file','-t',file) =~# '^\%(tag\|commit\)$' - let file = file.s:buffer().path(':') - endif - else - let file = s:buffer().path(s:buffer().commit() == '' ? ':0:' : '/') - endif - try - let spec = s:repo().translate(file) - let commit = matchstr(spec,'\C[^:/]//\zs\x\+') - let restore = s:diff_restore() - if exists('+cursorbind') - setlocal cursorbind - endif - let w:fugitive_diff_restore = restore - if s:buffer().compare_age(commit) < 0 - execute 'rightbelow '.vert.'diffsplit '.s:fnameescape(spec) - else - execute 'leftabove '.vert.'diffsplit '.s:fnameescape(spec) - endif - let w:fugitive_diff_restore = restore - let winnr = winnr() - if getwinvar('#', '&diff') - wincmd p - call feedkeys("\p", 'n') - endif - return '' - catch /^fugitive:/ - return 'echoerr v:errmsg' - endtry -endfunction - -" }}}1 -" Gmove, Gremove {{{1 - -function! s:Move(force,destination) abort - if a:destination =~# '^/' - let destination = a:destination[1:-1] - else - let destination = s:shellslash(fnamemodify(s:sub(a:destination,'[%#]%(:\w)*','\=expand(submatch(0))'),':p')) - if destination[0:strlen(s:repo().tree())] ==# s:repo().tree('') - let destination = destination[strlen(s:repo().tree('')):-1] - endif - endif - if isdirectory(s:buffer().spec()) - " Work around Vim parser idiosyncrasy - let discarded = s:buffer().setvar('&swapfile',0) - endif - let message = call(s:repo().git_chomp_in_tree,['mv']+(a:force ? ['-f'] : [])+['--', s:buffer().path(), destination], s:repo()) - if v:shell_error - let v:errmsg = 'fugitive: '.message - return 'echoerr v:errmsg' - endif - let destination = s:repo().tree(destination) - if isdirectory(destination) - let destination = fnamemodify(s:sub(destination,'/$','').'/'.expand('%:t'),':.') - endif - call fugitive#reload_status() - if s:buffer().commit() == '' - if isdirectory(destination) - return 'keepalt edit '.s:fnameescape(destination) - else - return 'keepalt saveas! '.s:fnameescape(destination) - endif - else - return 'file '.s:fnameescape(s:repo().translate(':0:'.destination)) - endif -endfunction - -function! s:MoveComplete(A,L,P) abort - if a:A =~ '^/' - return s:repo().superglob(a:A) - else - let matches = split(glob(a:A.'*'),"\n") - call map(matches,'v:val !~ "/$" && isdirectory(v:val) ? v:val."/" : v:val') - return matches - endif -endfunction - -function! s:Remove(force) abort - if s:buffer().commit() ==# '' - let cmd = ['rm'] - elseif s:buffer().commit() ==# '0' - let cmd = ['rm','--cached'] - else - let v:errmsg = 'fugitive: rm not supported here' - return 'echoerr v:errmsg' - endif - if a:force - let cmd += ['--force'] - endif - let message = call(s:repo().git_chomp_in_tree,cmd+['--',s:buffer().path()],s:repo()) - if v:shell_error - let v:errmsg = 'fugitive: '.s:sub(message,'error:.*\zs\n\(.*-f.*',' (add ! to force)') - return 'echoerr '.string(v:errmsg) - else - call fugitive#reload_status() - return 'bdelete'.(a:force ? '!' : '') - endif -endfunction - -augroup fugitive_remove - autocmd! - autocmd User Fugitive if s:buffer().commit() =~# '^0\=$' | - \ exe "command! -buffer -bar -bang -nargs=1 -complete=customlist,s:MoveComplete Gmove :execute s:Move(0,)" | - \ exe "command! -buffer -bar -bang Gremove :execute s:Remove(0)" | - \ endif -augroup END - -" }}}1 -" Gblame {{{1 - -augroup fugitive_blame - autocmd! - autocmd BufReadPost *.fugitiveblame setfiletype fugitiveblame - autocmd FileType fugitiveblame setlocal nomodeline | if exists('b:git_dir') | let &l:keywordprg = s:repo().keywordprg() | endif - autocmd Syntax fugitiveblame call s:BlameSyntax() - autocmd User Fugitive if s:buffer().type('file', 'blob') | exe "command! -buffer -bar -bang -range=0 -nargs=* Gblame :execute s:Blame(0,,,,[])" | endif -augroup END - -function! s:linechars(pattern) abort - let chars = strlen(s:gsub(matchstr(getline('.'), a:pattern), '.', '.')) - if exists('*synconcealed') && &conceallevel > 1 - for col in range(1, chars) - let chars -= synconcealed(line('.'), col)[0] - endfor - endif - return chars -endfunction - -function! s:Blame(bang,line1,line2,count,args) abort - try - if s:buffer().path() == '' - call s:throw('file or blob required') - endif - if filter(copy(a:args),'v:val !~# "^\\%(--root\|--show-name\\|-\\=\\%([ltfnsew]\\|[MC]\\d*\\)\\+\\)$"') != [] - call s:throw('unsupported option') - endif - call map(a:args,'s:sub(v:val,"^\\ze[^-]","-")') - let cmd = ['--no-pager', 'blame', '--show-number'] + a:args - if s:buffer().commit() =~# '\D\|..' - let cmd += [s:buffer().commit()] - else - let cmd += ['--contents', '-'] - endif - let cmd += ['--', s:buffer().path()] - let basecmd = escape(call(s:repo().git_command,cmd,s:repo()),'!') - try - let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' - if !s:repo().bare() - let dir = getcwd() - execute cd.'`=s:repo().tree()`' - endif - if a:count - execute 'write !'.substitute(basecmd,' blame ',' blame -L '.a:line1.','.a:line2.' ','g') - else - let error = resolve(tempname()) - let temp = error.'.fugitiveblame' - if &shell =~# 'csh' - silent! execute '%write !('.basecmd.' > '.temp.') >& '.error - else - silent! execute '%write !'.basecmd.' > '.temp.' 2> '.error - endif - if exists('l:dir') - execute cd.'`=dir`' - unlet dir - endif - if v:shell_error - call s:throw(join(readfile(error),"\n")) - endif - for winnr in range(winnr('$'),1,-1) - call setwinvar(winnr, '&scrollbind', 0) - if getbufvar(winbufnr(winnr), 'fugitive_blamed_bufnr') - execute winbufnr(winnr).'bdelete' - endif - endfor - let bufnr = bufnr('') - let restore = 'call setwinvar(bufwinnr('.bufnr.'),"&scrollbind",0)' - if &l:wrap - let restore .= '|call setwinvar(bufwinnr('.bufnr.'),"&wrap",1)' - endif - if &l:foldenable - let restore .= '|call setwinvar(bufwinnr('.bufnr.'),"&foldenable",1)' - endif - setlocal scrollbind nowrap nofoldenable - let top = line('w0') + &scrolloff - let current = line('.') - let s:temp_files[temp] = { 'dir': s:repo().dir(), 'args': cmd } - exe 'keepalt leftabove vsplit '.temp - let b:fugitive_blamed_bufnr = bufnr - let w:fugitive_leave = restore - let b:fugitive_blame_arguments = join(a:args,' ') - execute top - normal! zt - execute current - setlocal nomodified nomodifiable nonumber scrollbind nowrap foldcolumn=0 nofoldenable winfixwidth filetype=fugitiveblame - if exists('+concealcursor') - setlocal concealcursor=nc conceallevel=2 - endif - if exists('+relativenumber') - setlocal norelativenumber - endif - execute "vertical resize ".(s:linechars('.\{-\}\ze\s\+\d\+)')+1) - nnoremap :help fugitive-:Gblame - nnoremap g? :help fugitive-:Gblame - nnoremap q :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w'.bufnr('').'bdelete','^-1','','') - nnoremap gq :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w'.bufnr('').'bdeleteif expand("%:p") =~# "^fugitive:[\\/][\\/]"Geditendif','^-1','','') - nnoremap :exe BlameCommit("exe 'norm q'edit") - nnoremap - :exe BlameJump('') - nnoremap P :exe BlameJump('^'.v:count1) - nnoremap ~ :exe BlameJump('~'.v:count1) - nnoremap i :exe BlameCommit("exe 'norm q'edit") - nnoremap o :exe BlameCommit((&splitbelow ? "botright" : "topleft")." split") - nnoremap O :exe BlameCommit("tabedit") - nnoremap A :exe "vertical resize ".(linechars('.\{-\}\ze [0-9:/+-][0-9:/+ -]* \d\+)')+1+v:count) - nnoremap C :exe "vertical resize ".(linechars('^\S\+')+1+v:count) - nnoremap D :exe "vertical resize ".(linechars('.\{-\}\ze\d\ze\s\+\d\+)')+1-v:count) - redraw - syncbind - endif - finally - if exists('l:dir') - execute cd.'`=dir`' - endif - endtry - return '' - catch /^fugitive:/ - return 'echoerr v:errmsg' - endtry -endfunction - -function! s:BlameCommit(cmd) abort - let cmd = s:Edit(a:cmd, 0, matchstr(getline('.'),'\x\+')) - if cmd =~# '^echoerr' - return cmd - endif - let lnum = matchstr(getline('.'),' \zs\d\+\ze\s\+[([:digit:]]') - let path = matchstr(getline('.'),'^\^\=\x\+\s\+\zs.\{-\}\ze\s*\d\+ ') - if path ==# '' - let path = s:buffer(b:fugitive_blamed_bufnr).path() - endif - execute cmd - if search('^diff .* b/\M'.escape(path,'\').'$','W') - call search('^+++') - let head = line('.') - while search('^@@ \|^diff ') && getline('.') =~# '^@@ ' - let top = +matchstr(getline('.'),' +\zs\d\+') - let len = +matchstr(getline('.'),' +\d\+,\zs\d\+') - if lnum >= top && lnum <= top + len - let offset = lnum - top - if &scrolloff - + - normal! zt - else - normal! zt - + - endif - while offset > 0 && line('.') < line('$') - + - if getline('.') =~# '^[ +]' - let offset -= 1 - endif - endwhile - return 'if foldlevel(".")|foldopen!|endif' - endif - endwhile - execute head - normal! zt - endif - return '' -endfunction - -function! s:BlameJump(suffix) abort - let commit = matchstr(getline('.'),'^\^\=\zs\x\+') - if commit =~# '^0\+$' - let commit = ':0' - endif - let lnum = matchstr(getline('.'),' \zs\d\+\ze\s\+[([:digit:]]') - let path = matchstr(getline('.'),'^\^\=\x\+\s\+\zs.\{-\}\ze\s*\d\+ ') - if path ==# '' - let path = s:buffer(b:fugitive_blamed_bufnr).path() - endif - let args = b:fugitive_blame_arguments - let offset = line('.') - line('w0') - let bufnr = bufnr('%') - let winnr = bufwinnr(b:fugitive_blamed_bufnr) - if winnr > 0 - exe winnr.'wincmd w' - endif - execute s:Edit('edit', 0, commit.a:suffix.':'.path) - execute lnum - if winnr > 0 - exe bufnr.'bdelete' - endif - execute 'Gblame '.args - execute lnum - let delta = line('.') - line('w0') - offset - if delta > 0 - execute 'normal! '.delta."\" - elseif delta < 0 - execute 'normal! '.(-delta)."\" - endif - syncbind - return '' -endfunction - -function! s:BlameSyntax() abort - let b:current_syntax = 'fugitiveblame' - let conceal = has('conceal') ? ' conceal' : '' - let arg = exists('b:fugitive_blame_arguments') ? b:fugitive_blame_arguments : '' - syn match FugitiveblameBoundary "^\^" - syn match FugitiveblameBlank "^\s\+\s\@=" nextgroup=FugitiveblameAnnotation,fugitiveblameOriginalFile,FugitiveblameOriginalLineNumber skipwhite - syn match FugitiveblameHash "\%(^\^\=\)\@<=\x\{7,40\}\>" nextgroup=FugitiveblameAnnotation,FugitiveblameOriginalLineNumber,fugitiveblameOriginalFile skipwhite - syn match FugitiveblameUncommitted "\%(^\^\=\)\@<=0\{7,40\}\>" nextgroup=FugitiveblameAnnotation,FugitiveblameOriginalLineNumber,fugitiveblameOriginalFile skipwhite - syn region FugitiveblameAnnotation matchgroup=FugitiveblameDelimiter start="(" end="\%( \d\+\)\@<=)" contained keepend oneline - syn match FugitiveblameTime "[0-9:/+-][0-9:/+ -]*[0-9:/+-]\%( \+\d\+)\)\@=" contained containedin=FugitiveblameAnnotation - exec 'syn match FugitiveblameLineNumber " *\d\+)\@=" contained containedin=FugitiveblameAnnotation'.conceal - exec 'syn match FugitiveblameOriginalFile " \%(\f\+\D\@<=\|\D\@=\f\+\)\%(\%(\s\+\d\+\)\=\s\%((\|\s*\d\+)\)\)\@=" contained nextgroup=FugitiveblameOriginalLineNumber,FugitiveblameAnnotation skipwhite'.(arg =~# 'f' ? '' : conceal) - exec 'syn match FugitiveblameOriginalLineNumber " *\d\+\%(\s(\)\@=" contained nextgroup=FugitiveblameAnnotation skipwhite'.(arg =~# 'n' ? '' : conceal) - exec 'syn match FugitiveblameOriginalLineNumber " *\d\+\%(\s\+\d\+)\)\@=" contained nextgroup=FugitiveblameShort skipwhite'.(arg =~# 'n' ? '' : conceal) - syn match FugitiveblameShort " \d\+)" contained contains=FugitiveblameLineNumber - syn match FugitiveblameNotCommittedYet "(\@<=Not Committed Yet\>" contained containedin=FugitiveblameAnnotation - hi def link FugitiveblameBoundary Keyword - hi def link FugitiveblameHash Identifier - hi def link FugitiveblameUncommitted Function - hi def link FugitiveblameTime PreProc - hi def link FugitiveblameLineNumber Number - hi def link FugitiveblameOriginalFile String - hi def link FugitiveblameOriginalLineNumber Float - hi def link FugitiveblameShort FugitiveblameDelimiter - hi def link FugitiveblameDelimiter Delimiter - hi def link FugitiveblameNotCommittedYet Comment -endfunction - -" }}}1 -" Gbrowse {{{1 - -call s:command("-bar -bang -range -nargs=* -complete=customlist,s:EditComplete Gbrowse :execute s:Browse(0,,,)") - -function! s:Browse(bang,line1,count,...) abort - try - let rev = a:0 ? substitute(join(a:000, ' '),'@[[:alnum:]_-]*\%(://.\{-\}\)\=$','','') : '' - if rev ==# '' - let expanded = s:buffer().rev() - elseif rev ==# ':' - let expanded = s:buffer().path('/') - else - let expanded = s:buffer().expand(rev) - endif - let full = s:repo().translate(expanded) - let commit = '' - if full =~# '^fugitive://' - let commit = matchstr(full,'://.*//\zs\w\+') - let path = matchstr(full,'://.*//\w\+\zs/.*') - if commit =~ '..' - let type = s:repo().git_chomp('cat-file','-t',commit.s:sub(path,'^/',':')) - else - let type = 'blob' - endif - let path = path[1:-1] - elseif s:repo().bare() - let path = '.git/' . full[strlen(s:repo().dir())+1:-1] - let type = '' - else - let path = full[strlen(s:repo().tree())+1:-1] - if path =~# '^\.git/' - let type = '' - elseif isdirectory(full) - let type = 'tree' - else - let type = 'blob' - endif - endif - if path =~# '^\.git/.*HEAD' && filereadable(s:repo().dir(path[5:-1])) - let body = readfile(s:repo().dir(path[5:-1]))[0] - if body =~# '^\x\{40\}$' - let commit = body - let type = 'commit' - let path = '' - elseif body =~# '^ref: refs/' - let path = '.git/' . matchstr(body,'ref: \zs.*') - endif - endif - - if a:0 && join(a:000, ' ') =~# '@[[:alnum:]_-]*\%(://.\{-\}\)\=$' - let remote = matchstr(join(a:000, ' '),'@\zs[[:alnum:]_-]\+\%(://.\{-\}\)\=$') - elseif path =~# '^\.git/refs/remotes/.' - let remote = matchstr(path,'^\.git/refs/remotes/\zs[^/]\+') - else - let remote = 'origin' - let branch = matchstr(rev,'^[[:alnum:]/._-]\+\ze[:^~@]') - if branch ==# '' && path =~# '^\.git/refs/\w\+/' - let branch = s:sub(path,'^\.git/refs/\w+/','') - endif - if filereadable(s:repo().dir('refs/remotes/'.branch)) - let remote = matchstr(branch,'[^/]\+') - let rev = rev[strlen(remote)+1:-1] - else - if branch ==# '' - let branch = matchstr(s:repo().head_ref(),'\ 0 ? a:line1 : 0) - endif - - if url == '' - call s:throw("Instaweb failed to start and '".remote."' is not a GitHub remote") - endif - - if a:bang - let @* = url - return 'echomsg '.string(url) - else - return 'echomsg '.string(url).'|call fugitive#buffer().repo().git_chomp("web--browse",'.string(url).')' - endif - catch /^fugitive:/ - return 'echoerr v:errmsg' - endtry -endfunction - -function! s:github_url(repo,url,rev,commit,path,type,line1,line2) abort - let path = a:path - let domain_pattern = 'github\.com' - let domains = exists('g:fugitive_github_domains') ? g:fugitive_github_domains : [] - for domain in domains - let domain_pattern .= '\|' . escape(split(domain, '://')[-1], '.') - endfor - let repo = matchstr(a:url,'^\%(https\=://\|git://\|git@\)\=\zs\('.domain_pattern.'\)[/:].\{-\}\ze\%(\.git\)\=$') - if repo ==# '' - return '' - endif - if index(domains, 'http://' . matchstr(repo, '^[^:/]*')) >= 0 - let root = 'http://' . s:sub(repo,':','/') - else - let root = 'https://' . s:sub(repo,':','/') - endif - if path =~# '^\.git/refs/heads/' - let branch = a:repo.git_chomp('config','branch.'.path[16:-1].'.merge')[11:-1] - if branch ==# '' - return root . '/commits/' . path[16:-1] - else - return root . '/commits/' . branch - endif - elseif path =~# '^\.git/refs/.' - return root . '/commits/' . matchstr(path,'[^/]\+$') - elseif path =~# '.git/\%(config$\|hooks\>\)' - return root . '/admin' - elseif path =~# '^\.git\>' - return root - endif - if a:rev =~# '^[[:alnum:]._-]\+:' - let commit = matchstr(a:rev,'^[^:]*') - elseif a:commit =~# '^\d\=$' - let local = matchstr(a:repo.head_ref(),'\ 0 && a:line1 == a:line2 - let url .= '#L' . a:line1 - elseif a:line2 > 0 - let url .= '#L' . a:line1 . '-' . a:line2 - endif - elseif a:type == 'tag' - let commit = matchstr(getline(3),'^tag \zs.*') - let url = root . '/tree/' . commit - else - let url = root . '/commit/' . commit - endif - return url -endfunction - -function! s:instaweb_url(repo,rev,commit,path,type,...) abort - let output = a:repo.git_chomp('instaweb','-b','unknown') - if output =~# 'http://' - let root = matchstr(output,'http://.*').'/?p='.fnamemodify(a:repo.dir(),':t') - else - return '' - endif - if a:path =~# '^\.git/refs/.' - return root . ';a=shortlog;h=' . matchstr(a:path,'^\.git/\zs.*') - elseif a:path =~# '^\.git\>' - return root - endif - let url = root - if a:commit =~# '^\x\{40\}$' - if a:type ==# 'commit' - let url .= ';a=commit' - endif - let url .= ';h=' . a:repo.rev_parse(a:commit . (a:path == '' ? '' : ':' . a:path)) - else - if a:type ==# 'blob' - let tmp = tempname() - silent execute 'write !'.a:repo.git_command('hash-object','-w','--stdin').' > '.tmp - let url .= ';h=' . readfile(tmp)[0] - else - try - let url .= ';h=' . a:repo.rev_parse((a:commit == '' ? 'HEAD' : ':' . a:commit) . ':' . a:path) - catch /^fugitive:/ - call s:throw('fugitive: cannot browse uncommitted file') - endtry - endif - let root .= ';hb=' . matchstr(a:repo.head_ref(),'[^ ]\+$') - endif - if a:path !=# '' - let url .= ';f=' . a:path - endif - if a:0 && a:1 - let url .= '#l' . a:1 - endif - return url -endfunction - -" }}}1 -" File access {{{1 - -function! s:ReplaceCmd(cmd,...) abort - let fn = expand('%:p') - let tmp = tempname() - let prefix = '' - try - if a:0 && a:1 != '' - if &shell =~# 'cmd' || &shell =~# 'power' - let old_index = $GIT_INDEX_FILE - let $GIT_INDEX_FILE = a:1 - else - let prefix = 'env GIT_INDEX_FILE='.s:shellesc(a:1).' ' - endif - endif - if &shell =~# 'cmd' || &shell =~# 'power' - let cmd_escape_char = &shellxquote == '(' ? '^' : '^^^' - call system('cmd /c "'.prefix.s:gsub(a:cmd,'[<>]', cmd_escape_char.'&').' > '.tmp.'"') - else - call system(' ('.prefix.a:cmd.' > '.tmp.') ') - endif - finally - if exists('old_index') - let $GIT_INDEX_FILE = old_index - endif - endtry - silent exe 'keepalt file '.tmp - try - silent edit! - finally - silent exe 'keepalt file '.s:fnameescape(fn) - call delete(tmp) - if fnamemodify(bufname('$'), ':p') ==# tmp - silent execute 'bwipeout '.bufnr('$') - endif - silent exe 'doau BufReadPost '.s:fnameescape(fn) - endtry -endfunction - -function! s:BufReadIndex() abort - if !exists('b:fugitive_display_format') - let b:fugitive_display_format = filereadable(expand('%').'.lock') - endif - let b:fugitive_display_format = b:fugitive_display_format % 2 - let b:fugitive_type = 'index' - try - let b:git_dir = s:repo().dir() - setlocal noro ma nomodeline - if fnamemodify($GIT_INDEX_FILE !=# '' ? $GIT_INDEX_FILE : b:git_dir . '/index', ':p') ==# expand('%:p') - let index = '' - else - let index = expand('%:p') - endif - if b:fugitive_display_format - call s:ReplaceCmd(s:repo().git_command('ls-files','--stage'),index) - set ft=git nospell - else - let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' - let dir = getcwd() - if fugitive#git_version() =~# '^0\|^1\.[1-7]\.' - let cmd = s:repo().git_command('status') - else - let cmd = s:repo().git_command( - \ '-c', 'status.displayCommentPrefix=true', - \ '-c', 'color.status=false', - \ 'status') - endif - try - execute cd.'`=s:repo().tree()`' - call s:ReplaceCmd(cmd, index) - finally - execute cd.'`=dir`' - endtry - set ft=gitcommit - set foldtext=fugitive#foldtext() - endif - setlocal ro noma nomod noswapfile - if &bufhidden ==# '' - setlocal bufhidden=delete - endif - call s:JumpInit() - nunmap P - nunmap ~ - nnoremap :execute StageNext(v:count1) - nnoremap :execute StagePrevious(v:count1) - nnoremap - :silent execute StageToggle(line('.'),line('.')+v:count1-1) - xnoremap - :silent execute StageToggle(line("'<"),line("'>")) - nnoremap a :let b:fugitive_display_format += 1exe BufReadIndex() - nnoremap i :let b:fugitive_display_format -= 1exe BufReadIndex() - nnoremap C :Gcommit - nnoremap cA :Gcommit --amend --reuse-message=HEAD - nnoremap ca :Gcommit --amend - nnoremap cc :Gcommit - nnoremap cva :Gcommit --amend --verbose - nnoremap cvc :Gcommit --verbose - nnoremap D :execute StageDiff('Gvdiff') - nnoremap dd :execute StageDiff('Gvdiff') - nnoremap dh :execute StageDiff('Gsdiff') - nnoremap ds :execute StageDiff('Gsdiff') - nnoremap dp :execute StageDiffEdit() - nnoremap dv :execute StageDiff('Gvdiff') - nnoremap p :execute StagePatch(line('.'),line('.')+v:count1-1) - xnoremap p :execute StagePatch(line("'<"),line("'>")) - nnoremap q :if bufnr('$') == 1quitelsebdeleteendif - nnoremap R :edit - nnoremap g? :help fugitive-:Gstatus - nnoremap :help fugitive-:Gstatus - catch /^fugitive:/ - return 'echoerr v:errmsg' - endtry -endfunction - -function! s:FileRead() abort - try - let repo = s:repo(fugitive#extract_git_dir(expand(''))) - let path = s:sub(s:sub(matchstr(expand(''),'fugitive://.\{-\}//\zs.*'),'/',':'),'^\d:',':&') - let hash = repo.rev_parse(path) - if path =~ '^:' - let type = 'blob' - else - let type = repo.git_chomp('cat-file','-t',hash) - endif - " TODO: use count, if possible - return "read !".escape(repo.git_command('cat-file',type,hash),'%#\') - catch /^fugitive:/ - return 'echoerr v:errmsg' - endtry -endfunction - -function! s:BufReadIndexFile() abort - try - let b:fugitive_type = 'blob' - let b:git_dir = s:repo().dir() - try - call s:ReplaceCmd(s:repo().git_command('cat-file','blob',s:buffer().sha1())) - finally - if &bufhidden ==# '' - setlocal bufhidden=delete - endif - setlocal noswapfile - endtry - return '' - catch /^fugitive: rev-parse/ - silent exe 'doau BufNewFile '.s:fnameescape(expand('%:p')) - return '' - catch /^fugitive:/ - return 'echoerr v:errmsg' - endtry -endfunction - -function! s:BufWriteIndexFile() abort - let tmp = tempname() - try - let path = matchstr(expand(''),'//\d/\zs.*') - let stage = matchstr(expand(''),'//\zs\d') - silent execute 'write !'.s:repo().git_command('hash-object','-w','--stdin').' > '.tmp - let sha1 = readfile(tmp)[0] - let old_mode = matchstr(s:repo().git_chomp('ls-files','--stage',path),'^\d\+') - if old_mode == '' - let old_mode = executable(s:repo().tree(path)) ? '100755' : '100644' - endif - let info = old_mode.' '.sha1.' '.stage."\t".path - call writefile([info],tmp) - if &shell =~# 'cmd' || &shell =~# 'power' - let error = system('type '.s:gsub(tmp,'/','\\').'|'.s:repo().git_command('update-index','--index-info')) - else - let error = system(s:repo().git_command('update-index','--index-info').' < '.tmp) - endif - if v:shell_error == 0 - setlocal nomodified - silent execute 'doautocmd BufWritePost '.s:fnameescape(expand('%:p')) - call fugitive#reload_status() - return '' - else - return 'echoerr '.string('fugitive: '.error) - endif - finally - call delete(tmp) - endtry -endfunction - -function! s:BufReadObject() abort - try - setlocal noro ma - let b:git_dir = s:repo().dir() - let hash = s:buffer().sha1() - if !exists("b:fugitive_type") - let b:fugitive_type = s:repo().git_chomp('cat-file','-t',hash) - endif - if b:fugitive_type !~# '^\%(tag\|commit\|tree\|blob\)$' - return "echoerr 'fugitive: unrecognized git type'" - endif - let firstline = getline('.') - if !exists('b:fugitive_display_format') && b:fugitive_type != 'blob' - let b:fugitive_display_format = +getbufvar('#','fugitive_display_format') - endif - - if b:fugitive_type !=# 'blob' - setlocal nomodeline - endif - - let pos = getpos('.') - silent keepjumps %delete_ - setlocal endofline - - try - if b:fugitive_type ==# 'tree' - let b:fugitive_display_format = b:fugitive_display_format % 2 - if b:fugitive_display_format - call s:ReplaceCmd(s:repo().git_command('ls-tree',hash)) - else - call s:ReplaceCmd(s:repo().git_command('show','--no-color',hash)) - endif - elseif b:fugitive_type ==# 'tag' - let b:fugitive_display_format = b:fugitive_display_format % 2 - if b:fugitive_display_format - call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash)) - else - call s:ReplaceCmd(s:repo().git_command('cat-file','-p',hash)) - endif - elseif b:fugitive_type ==# 'commit' - let b:fugitive_display_format = b:fugitive_display_format % 2 - if b:fugitive_display_format - call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash)) - else - call s:ReplaceCmd(s:repo().git_command('show','--no-color','--pretty=format:tree %T%nparent %P%nauthor %an <%ae> %ad%ncommitter %cn <%ce> %cd%nencoding %e%n%n%s%n%n%b',hash)) - keepjumps call search('^parent ') - if getline('.') ==# 'parent ' - silent keepjumps delete_ - else - silent keepjumps s/\%(^parent\)\@\)\=$','W',line('.')+3) - if lnum - silent keepjumps delete_ - end - keepjumps 1 - endif - elseif b:fugitive_type ==# 'blob' - call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash)) - setlocal nomodeline - endif - finally - keepjumps call setpos('.',pos) - setlocal ro noma nomod noswapfile - if &bufhidden ==# '' - setlocal bufhidden=delete - endif - if b:fugitive_type !=# 'blob' - set filetype=git - nnoremap a :let b:fugitive_display_format += v:count1exe BufReadObject() - nnoremap i :let b:fugitive_display_format -= v:count1exe BufReadObject() - else - call s:JumpInit() - endif - endtry - - return '' - catch /^fugitive:/ - return 'echoerr v:errmsg' - endtry -endfunction - -augroup fugitive_files - autocmd! - autocmd BufReadCmd index{,.lock} - \ if fugitive#is_git_dir(expand(':p:h')) | - \ exe s:BufReadIndex() | - \ elseif filereadable(expand('')) | - \ read | - \ 1delete | - \ endif - autocmd FileReadCmd fugitive://**//[0-3]/** exe s:FileRead() - autocmd BufReadCmd fugitive://**//[0-3]/** exe s:BufReadIndexFile() - autocmd BufWriteCmd fugitive://**//[0-3]/** exe s:BufWriteIndexFile() - autocmd BufReadCmd fugitive://**//[0-9a-f][0-9a-f]* exe s:BufReadObject() - autocmd FileReadCmd fugitive://**//[0-9a-f][0-9a-f]* exe s:FileRead() - autocmd FileType git - \ if exists('b:git_dir') | - \ call s:JumpInit() | - \ endif -augroup END - -" }}}1 -" Temp files {{{1 - -if !exists('s:temp_files') - let s:temp_files = {} -endif - -augroup fugitive_temp - autocmd! - autocmd BufNewFile,BufReadPost * - \ if has_key(s:temp_files,expand(':p')) | - \ let b:git_dir = s:temp_files[expand(':p')].dir | - \ let b:git_type = 'temp' | - \ let b:git_args = s:temp_files[expand(':p')].args | - \ call fugitive#detect(expand(':p')) | - \ setlocal bufhidden=delete | - \ nnoremap q :bdelete| - \ endif -augroup END - -" }}}1 -" Go to file {{{1 - -function! s:JumpInit() abort - nnoremap :exe GF("edit") - if !&modifiable - nnoremap o :exe GF("split") - nnoremap S :exe GF("vsplit") - nnoremap O :exe GF("tabedit") - nnoremap - :exe Edit('edit',0,buffer().up(v:count1)) if fugitive#buffer().type('tree')call search('^'.escape(expand('#:t'),'.*[]~\').'/\=$','wc')endif - nnoremap P :exe Edit('edit',0,buffer().commit().'^'.v:count1.buffer().path(':')) - nnoremap ~ :exe Edit('edit',0,buffer().commit().'~'.v:count1.buffer().path(':')) - nnoremap C :exe Edit('edit',0,buffer().containing_commit()) - nnoremap cc :exe Edit('edit',0,buffer().containing_commit()) - nnoremap co :exe Edit('split',0,buffer().containing_commit()) - nnoremap cS :exe Edit('vsplit',0,buffer().containing_commit()) - nnoremap cO :exe Edit('tabedit',0,buffer().containing_commit()) - nnoremap cP :exe Edit('pedit',0,buffer().containing_commit()) - nnoremap . : =fnameescape(recall()) - endif -endfunction - -function! s:GF(mode) abort - try - let buffer = s:buffer() - let myhash = buffer.sha1() - if myhash ==# '' && getline(1) =~# '^\%(commit\|tag\) \w' - let myhash = matchstr(getline(1),'^\w\+ \zs\S\+') - endif - - if buffer.type('tree') - let showtree = (getline(1) =~# '^tree ' && getline(2) == "") - if showtree && line('.') == 1 - return "" - elseif showtree && line('.') > 2 - return s:Edit(a:mode,0,buffer.commit().':'.s:buffer().path().(buffer.path() =~# '^$\|/$' ? '' : '/').s:sub(getline('.'),'/$','')) - elseif getline('.') =~# '^\d\{6\} \l\{3,8\} \x\{40\}\t' - return s:Edit(a:mode,0,buffer.commit().':'.s:buffer().path().(buffer.path() =~# '^$\|/$' ? '' : '/').s:sub(matchstr(getline('.'),'\t\zs.*'),'/$','')) - endif - - elseif buffer.type('blob') - let ref = expand("") - try - let sha1 = buffer.repo().rev_parse(ref) - catch /^fugitive:/ - endtry - if exists('sha1') - return s:Edit(a:mode,0,ref) - endif - - else - - " Index - if getline('.') =~# '^\d\{6\} \x\{40\} \d\t' - let ref = matchstr(getline('.'),'\x\{40\}') - let file = ':'.s:sub(matchstr(getline('.'),'\d\t.*'),'\t',':') - return s:Edit(a:mode,0,file) - - elseif getline('.') =~# '^#\trenamed:.* -> ' - let file = '/'.matchstr(getline('.'),' -> \zs.*') - return s:Edit(a:mode,0,file) - elseif getline('.') =~# '^#\t[[:alpha:] ]\+: *.' - let file = '/'.matchstr(getline('.'),': *\zs.\{-\}\ze\%( ([^()[:digit:]]\+)\)\=$') - return s:Edit(a:mode,0,file) - elseif getline('.') =~# '^#\t.' - let file = '/'.matchstr(getline('.'),'#\t\zs.*') - return s:Edit(a:mode,0,file) - elseif getline('.') =~# ': needs merge$' - let file = '/'.matchstr(getline('.'),'.*\ze: needs merge$') - return s:Edit(a:mode,0,file).'|Gdiff' - - elseif getline('.') ==# '# Not currently on any branch.' - return s:Edit(a:mode,0,'HEAD') - elseif getline('.') =~# '^# On branch ' - let file = 'refs/heads/'.getline('.')[12:] - return s:Edit(a:mode,0,file) - elseif getline('.') =~# "^# Your branch .*'" - let file = matchstr(getline('.'),"'\\zs\\S\\+\\ze'") - return s:Edit(a:mode,0,file) - endif - - let showtree = (getline(1) =~# '^tree ' && getline(2) == "") - - if getline('.') =~# '^ref: ' - let ref = strpart(getline('.'),5) - - elseif getline('.') =~# '^commit \x\{40\}\>' - let ref = matchstr(getline('.'),'\x\{40\}') - return s:Edit(a:mode,0,ref) - - elseif getline('.') =~# '^parent \x\{40\}\>' - let ref = matchstr(getline('.'),'\x\{40\}') - let line = line('.') - let parent = 0 - while getline(line) =~# '^parent ' - let parent += 1 - let line -= 1 - endwhile - return s:Edit(a:mode,0,ref) - - elseif getline('.') =~ '^tree \x\{40\}$' - let ref = matchstr(getline('.'),'\x\{40\}') - if s:repo().rev_parse(myhash.':') == ref - let ref = myhash.':' - endif - return s:Edit(a:mode,0,ref) - - elseif getline('.') =~# '^object \x\{40\}$' && getline(line('.')+1) =~ '^type \%(commit\|tree\|blob\)$' - let ref = matchstr(getline('.'),'\x\{40\}') - let type = matchstr(getline(line('.')+1),'type \zs.*') - - elseif getline('.') =~# '^\l\{3,8\} '.myhash.'$' - return '' - - elseif getline('.') =~# '^\l\{3,8\} \x\{40\}\>' - let ref = matchstr(getline('.'),'\x\{40\}') - echoerr "warning: unknown context ".matchstr(getline('.'),'^\l*') - - elseif getline('.') =~# '^[+-]\{3\} [ab/]' - let ref = getline('.')[4:] - - elseif getline('.') =~# '^[+-]' && search('^@@ -\d\+,\d\+ +\d\+,','bnW') - let type = getline('.')[0] - let lnum = line('.') - 1 - let offset = -1 - while getline(lnum) !~# '^@@ -\d\+,\d\+ +\d\+,' - if getline(lnum) =~# '^[ '.type.']' - let offset += 1 - endif - let lnum -= 1 - endwhile - let offset += matchstr(getline(lnum), type.'\zs\d\+') - let ref = getline(search('^'.type.'\{3\} [ab]/','bnW'))[4:-1] - let dcmd = '+'.offset.'|if foldlevel(".")|foldopen!|endif' - let dref = '' - - elseif getline('.') =~# '^rename from ' - let ref = 'a/'.getline('.')[12:] - elseif getline('.') =~# '^rename to ' - let ref = 'b/'.getline('.')[10:] - - elseif getline('.') =~# '^diff --git \%(a/.*\|/dev/null\) \%(b/.*\|/dev/null\)' - let dref = matchstr(getline('.'),'\Cdiff --git \zs\%(a/.*\|/dev/null\)\ze \%(b/.*\|/dev/null\)') - let ref = matchstr(getline('.'),'\Cdiff --git \%(a/.*\|/dev/null\) \zs\%(b/.*\|/dev/null\)') - let dcmd = 'Gdiff' - - elseif getline('.') =~# '^index ' && getline(line('.')-1) =~# '^diff --git \%(a/.*\|/dev/null\) \%(b/.*\|/dev/null\)' - let line = getline(line('.')-1) - let dref = matchstr(line,'\Cdiff --git \zs\%(a/.*\|/dev/null\)\ze \%(b/.*\|/dev/null\)') - let ref = matchstr(line,'\Cdiff --git \%(a/.*\|/dev/null\) \zs\%(b/.*\|/dev/null\)') - let dcmd = 'Gdiff!' - - elseif line('$') == 1 && getline('.') =~ '^\x\{40\}$' - let ref = getline('.') - else - let ref = '' - endif - - if myhash ==# '' - let ref = s:sub(ref,'^a/','HEAD:') - let ref = s:sub(ref,'^b/',':0:') - if exists('dref') - let dref = s:sub(dref,'^a/','HEAD:') - endif - else - let ref = s:sub(ref,'^a/',myhash.'^:') - let ref = s:sub(ref,'^b/',myhash.':') - if exists('dref') - let dref = s:sub(dref,'^a/',myhash.'^:') - endif - endif - - if ref ==# '/dev/null' - " Empty blob - let ref = 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391' - endif - - if exists('dref') - return s:Edit(a:mode,0,ref) . '|'.dcmd.' '.s:fnameescape(dref) - elseif ref != "" - return s:Edit(a:mode,0,ref) - endif - - endif - return '' - catch /^fugitive:/ - return 'echoerr v:errmsg' - endtry -endfunction - -" }}}1 -" Statusline {{{1 - -function! s:repo_head_ref() dict abort - if !filereadable(self.dir('HEAD')) - return '' - endif - return readfile(self.dir('HEAD'))[0] -endfunction - -call s:add_methods('repo',['head_ref']) - -function! fugitive#statusline(...) abort - if !exists('b:git_dir') - return '' - endif - let status = '' - if s:buffer().commit() != '' - let status .= ':' . s:buffer().commit()[0:7] - endif - let status .= '('.fugitive#head(7).')' - if &statusline =~# '%[MRHWY]' && &statusline !~# '%[mrhwy]' - return ',GIT'.status - else - return '[Git'.status.']' - endif -endfunction - -function! fugitive#head(...) abort - if !exists('b:git_dir') - return '' - endif - - return s:repo().head(a:0 ? a:1 : 0) -endfunction - -" }}}1 -" Folding {{{1 - -function! fugitive#foldtext() abort - if &foldmethod !=# 'syntax' - return foldtext() - elseif getline(v:foldstart) =~# '^diff ' - let [add, remove] = [-1, -1] - let filename = '' - for lnum in range(v:foldstart, v:foldend) - if filename ==# '' && getline(lnum) =~# '^[+-]\{3\} [abciow12]/' - let filename = getline(lnum)[6:-1] - endif - if getline(lnum) =~# '^+' - let add += 1 - elseif getline(lnum) =~# '^-' - let remove += 1 - elseif getline(lnum) =~# '^Binary ' - let binary = 1 - endif - endfor - if filename ==# '' - let filename = matchstr(getline(v:foldstart), '^diff .\{-\} a/\zs.*\ze b/') - endif - if filename ==# '' - let filename = getline(v:foldstart)[5:-1] - endif - if exists('binary') - return 'Binary: '.filename - else - return (add<10&&remove<100?' ':'') . add . '+ ' . (remove<10&&add<100?' ':'') . remove . '- ' . filename - endif - elseif getline(v:foldstart) =~# '^# .*:$' - let lines = getline(v:foldstart, v:foldend) - call filter(lines, 'v:val =~# "^#\t"') - cal map(lines,'s:sub(v:val, "^#\t%(modified: +|renamed: +)=", "")') - cal map(lines,'s:sub(v:val, "^([[:alpha:] ]+): +(.*)", "\\2 (\\1)")') - return getline(v:foldstart).' '.join(lines, ', ') - endif - return foldtext() -endfunction - -augroup fugitive_foldtext - autocmd! - autocmd User Fugitive - \ if &filetype =~# '^git\%(commit\)\=$' && &foldtext ==# 'foldtext()' | - \ set foldtext=fugitive#foldtext() | - \ endif -augroup END - -" }}}1 - -" vim:set et sw=2: diff --git a/.vim/bundle/vim-startify/.gitignore b/.vim/bundle/vim-startify/.gitignore deleted file mode 100644 index 51e3cf0..0000000 --- a/.vim/bundle/vim-startify/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -* - -!.gitignore -!CONTRIBUTING.md -!LICENSE -!README.md -!autoload/startify.vim -!doc/startify.txt -!plugin/startify.vim -!startify.png -!syntax/startify.vim diff --git a/.vim/bundle/vim-startify/CONTRIBUTING.md b/.vim/bundle/vim-startify/CONTRIBUTING.md deleted file mode 100644 index a01753e..0000000 --- a/.vim/bundle/vim-startify/CONTRIBUTING.md +++ /dev/null @@ -1,28 +0,0 @@ -CONTRIBUTING -============ - -If you intend to contribute to this project, please keep some simple rules in -mind: - - - one commit per feature/fix - - the short commit message shouldn't be longer than 50 characters - - the short commit message should start with an uppercase character - - use the imperative for the short commit message - - don't finish the short commit message with a '.' - - don't use github-specific syntax to close an issue (I'll do that, when - merging into master) - - it's always a good idea to have a look at 'git log' to get an idea how to - format one's own commits - - if you have questions about a certain patch or feature requests, just open - a Github issue - -Examples --------- - -``` -Bad: "fixed loop to start from 0 instead of 1" -Good: "Avoid off-by-one issue in skiplist loop" - -Bad: "fixed typo" -Good: "Docs: typo" -``` diff --git a/.vim/bundle/vim-startify/LICENSE b/.vim/bundle/vim-startify/LICENSE deleted file mode 100644 index fb241d2..0000000 --- a/.vim/bundle/vim-startify/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2013 Marco Hinz - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/.vim/bundle/vim-startify/README.md b/.vim/bundle/vim-startify/README.md deleted file mode 100644 index 7b26c72..0000000 --- a/.vim/bundle/vim-startify/README.md +++ /dev/null @@ -1,173 +0,0 @@ -[![Stories in Ready](https://badge.waffle.io/mhinz/vim-startify.png?label=ready&title=Ready)](https://waffle.io/mhinz/vim-startify) - -![Example:startify in action](https://github.com/mhinz/vim-startify/raw/master/startify.png) - -This is it. A start screen for Vim. _( all features enabled - freely customizable )_ - -What does it provide? ---------------------- - -It does 3 things that will be explained in detail further below: - -* it shows lists of files and directories -* eased session handling -* powerful menu entry handling - -#### 1) It shows things on start! - -If you start Vim without giving any filenames or piping text to it, Startify -will show a pretty start screen that shows a configurable list of files or -directories: - ---- - -__Custom header__ ( _empty by default_ ): - -How about some ASCII art action? - ---- - -__Files from directory__ ( _enabled by default_ ): - -This lists all files from the current directory sorted by modification time. - ---- - -__Recently used files__ ( _enabled by default_ ): - -This uses the viminfo file to get a list of most recently used files. The list -can also be filtered. - ---- - -__Sessions__ ( _enabled by default_ ): - -This will list all your sessions from a certain directory. - ---- - -__Bookmarks__ ( _empty by default_ ): - -Additionally, you can define bookmarks, thus entries for files that always -should be available on the start screen. - ---- - -__Custom footer__ ( _empty by default_ ): - -Same as the custom header.. but at the bottom. - ---- - -See `:h startify-options` for more information. - -#### 2) Easy session handling - -_Please read and understand `:help 'sessionoptions'` if you work with sessions._ - -Essentially there are two kinds of supported workflows for handling sessions -that will be shown here. - ---- - -__a)__ The Startify way. - -The handling of loading, saving and deleting sessions is eased by always -working with one and the same directory. These commands are used for -convenience: - - :SLoad load a session - :SSave save a session - :SDelete delete a session - -_See `:h startify-commands` for more information._ - -The advantage of always using the same directory is that Startify can show you a -list of all your sessions that are scattered around the system. - ---- - -__b)__ The old way. - -The old way means using `:mksession` to save a `Session.vim` file to the current -directory. Imagine a project folder with a Session.vim at its root directory. -This way makes it very portable. - -When Vim gets started and the file Session.vim is found in the current -directory, it will be shown at the top of all lists as entry `[0]` as a -shortcut. - -If you bookmark a directory (project folder, anyone?) that contains a -Session.vim, and you access that directory via Startify, that session will be -loaded automatically. - ---- - -Optionally, there is even support for persistent sessions. Thus you load a -session via Startify, add some buffers, remove some buffers, change the window -layout, .. and when you finish and exit Vim, the session will be saved -automatically. This works for both ways of handling sessions. - -_Read `:help startify-options` to learn more about how to configure session -handling to your liking._ - -#### 3) Powerful menu handling - -You can either navigate the menu by using the usual suspects (`j`, `G`, `}` -etc.) and hit `` or just key in whatever is written between the square -brackets on that line. You can even double-click anywhere on the line. - -Moreover, you can open several files at one go! Navigate to an entry and hit -either `b` (open in same window), `s` (open in split), `v` (open in vertical -split) or `t` (open in tab) for marking it. You can mark several entries and -also mix different markers. Afterwards execute all the markers in the order they -were given via ``. - -In case you don't want to open a file, there is also `e` for creating an empty -buffer, `i` for creating an empty buffer and jumping into insert mode and `q` -for quitting. - -When one or more files were opened by Startify, it will close automatically. You -can always reopen the screen via `:Startify`. - -Author & Feedback ------------------ - -If you like any of my plugins, please star it on github. That is a great way of -getting feedback. Same for issues reports or feature requests. - ---- - -Marco Hinz _aka_ mhinz _aka_ mhi^ _aka_ mhi - -Mail: `` - -Twitter: [@_mhinz_](https://twitter.com/_mhinz_) - -Stackoverflow: [mhinz](http://stackoverflow.com/users/1606959/mhinz) - ---- - -Thank you for flying mhi airlines. Get your Vim on! - -Installation & Documentation ----------------------------- - -If you have no preferred installation method, I suggest using tpope's -[pathogen](https://github.com/tpope/vim-pathogen). Afterwards installing -vim-startify is as easy as pie: - - $ git clone https://github.com/mhinz/vim-startify ~/.vim/bundle/vim-startify - $ vim - -It works without any configuration, but you might want to look into the -documentation for further customization: - - :Helptags " rebuilding tags files - :h startify - :h startify-faq - -License -------- - -MIT license. Copyright (c) 2013 Marco Hinz. diff --git a/.vim/bundle/vim-startify/startify.png b/.vim/bundle/vim-startify/startify.png deleted file mode 100644 index f103a40..0000000 Binary files a/.vim/bundle/vim-startify/startify.png and /dev/null differ diff --git a/.vim/colors/monokai.vim b/.vim/colors/monokai.vim deleted file mode 100644 index 6fbadfa..0000000 --- a/.vim/colors/monokai.vim +++ /dev/null @@ -1,107 +0,0 @@ -" Vim color file -" Converted from Textmate theme Monokai using Coloration v0.3.2 (http://github.com/sickill/coloration) - -set background=dark -highlight clear - -if exists("syntax_on") - syntax reset -endif - -let g:colors_name = "monokai" - -hi Cursor ctermfg=235 ctermbg=231 cterm=NONE guifg=#272822 guibg=#f8f8f0 gui=NONE -hi Visual ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#49483e gui=NONE -hi CursorLine ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE -hi CursorColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE -hi ColorColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE -hi LineNr ctermfg=102 ctermbg=237 cterm=NONE guifg=#90908a guibg=#3c3d37 gui=NONE -hi VertSplit ctermfg=241 ctermbg=241 cterm=NONE guifg=#64645e guibg=#64645e gui=NONE -hi MatchParen ctermfg=197 ctermbg=NONE cterm=underline guifg=#f92672 guibg=NONE gui=underline -hi StatusLine ctermfg=231 ctermbg=241 cterm=bold guifg=#f8f8f2 guibg=#64645e gui=bold -hi StatusLineNC ctermfg=231 ctermbg=241 cterm=NONE guifg=#f8f8f2 guibg=#64645e gui=NONE -hi Pmenu ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi PmenuSel ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#49483e gui=NONE -hi IncSearch ctermfg=235 ctermbg=186 cterm=NONE guifg=#272822 guibg=#e6db74 gui=NONE -hi Search ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline -hi Directory ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE -hi Folded ctermfg=242 ctermbg=235 cterm=NONE guifg=#75715e guibg=#272822 gui=NONE - -hi Normal ctermfg=231 ctermbg=235 cterm=NONE guifg=#f8f8f2 guibg=#272822 gui=NONE -hi Boolean ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE -hi Character ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE -hi Comment ctermfg=242 ctermbg=NONE cterm=NONE guifg=#75715e guibg=NONE gui=NONE -hi Conditional ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE -hi Constant ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi Define ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE -hi DiffAdd ctermfg=231 ctermbg=64 cterm=bold guifg=#f8f8f2 guibg=#46830c gui=bold -hi DiffDelete ctermfg=88 ctermbg=NONE cterm=NONE guifg=#8b0807 guibg=NONE gui=NONE -hi DiffChange ctermfg=231 ctermbg=23 cterm=NONE guifg=#f8f8f2 guibg=#243955 gui=NONE -hi DiffText ctermfg=231 ctermbg=24 cterm=bold guifg=#f8f8f2 guibg=#204a87 gui=bold -hi ErrorMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE -hi WarningMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE -hi Float ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE -hi Function ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE -hi Identifier ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic -hi Keyword ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE -hi Label ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE -hi NonText ctermfg=59 ctermbg=236 cterm=NONE guifg=#49483e guibg=#31322c gui=NONE -hi Number ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE -hi Operator ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE -hi PreProc ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE -hi Special ctermfg=231 ctermbg=NONE cterm=NONE guifg=#f8f8f2 guibg=NONE gui=NONE -hi SpecialKey ctermfg=59 ctermbg=237 cterm=NONE guifg=#49483e guibg=#3c3d37 gui=NONE -hi Statement ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE -hi StorageClass ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic -hi String ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE -hi Tag ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE -hi Title ctermfg=231 ctermbg=NONE cterm=bold guifg=#f8f8f2 guibg=NONE gui=bold -hi Todo ctermfg=95 ctermbg=NONE cterm=inverse,bold guifg=#75715e guibg=NONE gui=inverse,bold -hi Type ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline -hi rubyClass ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE -hi rubyFunction ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE -hi rubyInterpolationDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi rubySymbol ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE -hi rubyConstant ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic -hi rubyStringDelimiter ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE -hi rubyBlockParameter ctermfg=208 ctermbg=NONE cterm=NONE guifg=#fd971f guibg=NONE gui=italic -hi rubyInstanceVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi rubyInclude ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE -hi rubyGlobalVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi rubyRegexp ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE -hi rubyRegexpDelimiter ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE -hi rubyEscape ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE -hi rubyControl ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE -hi rubyClassVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi rubyOperator ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE -hi rubyException ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE -hi rubyPseudoVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi rubyRailsUserClass ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic -hi rubyRailsARAssociationMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE -hi rubyRailsARMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE -hi rubyRailsRenderMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE -hi rubyRailsMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE -hi erubyDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi erubyComment ctermfg=95 ctermbg=NONE cterm=NONE guifg=#75715e guibg=NONE gui=NONE -hi erubyRailsMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE -hi htmlTag ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi htmlEndTag ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi htmlTagName ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi htmlArg ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi htmlSpecialChar ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE -hi javaScriptFunction ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic -hi javaScriptRailsFunction ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE -hi javaScriptBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi yamlKey ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE -hi yamlAnchor ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi yamlAlias ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE -hi yamlDocumentHeader ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE -hi cssURL ctermfg=208 ctermbg=NONE cterm=NONE guifg=#fd971f guibg=NONE gui=italic -hi cssFunctionName ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE -hi cssColor ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE -hi cssPseudoClassId ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE -hi cssClassName ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE -hi cssValueLength ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE -hi cssCommonAttr ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE -hi cssBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE diff --git a/.vimrc b/.vimrc deleted file mode 100644 index 1617565..0000000 --- a/.vimrc +++ /dev/null @@ -1,46 +0,0 @@ -"█▓▒░ autoload -execute pathogen#infect() - -let g:airline#extensions#tabline#enabled = 1 -let g:airline_powerline_fonts = 0 -let g:airline_theme = 'tomorrow' -let g:airline_enable_branch = 1 -let g:airline_enable_syntastic = 1 - -if !exists('g:airline_symbols') - let g:airline_symbols = {} -endif -let g:airline_left_sep = '▒' -let g:airline_left_alt_sep = '▒' -let g:airline_right_sep = '▒' -let g:airline_right_alt_sep = '▒' -let g:airline_symbols.branch = '⎇' -let g:airline_symbols.linenr = '░' -let g:airline_symbols.linenr = '░' -let g:airline_symbols.linenr = '░' -let g:airline_symbols.branch = '⎇' -let g:airline_symbols.paste = 'ρ' -let g:airline_symbols.paste = 'Þ' -let g:airline_symbols.paste = '∥' -let g:airline_symbols.whitespace = '░' -let g:airline_symbols.readonly = 'x' - -let g:startify_custom_header = [ - \ '', - \ ' ██ ██ ████ ██ ', - \ ' ░██ ░██ ░██░ ░░ ', - \ ' █████ ░██ ██ ██ ██████ ██████ ██████ ██ ██ ██ ██████████ ', - \ ' ██░░░██ ░██░██ ░██░░░██░ ██░░░░██░░░██░ ░██ ░██░██░░██░░██░░██', - \ '░██ ░░ ░██░██ ░██ ░██ ░██ ░██ ░██ ░░██ ░██ ░██ ░██ ░██ ░██', - \ '░██ ██ ░██░██ ░██ ░██ ░██ ░██ ░██ ░░████ ░██ ░██ ░██ ░██', - \ '░░█████ ███░░██████ ░░██ ░░██████ ░██ ░░██ ░██ ███ ░██ ░██', - \ ' ░░░░░ ░░░ ░░░░░░ ░░ ░░░░░░ ░░ ░░ ░░ ░░░ ░░ ░░ ', - \ '', - \ ] - -set laststatus=2 -set lazyredraw - -syntax on -colorscheme monokai -filetype plugin indent on diff --git a/.xinitrc b/.xinitrc deleted file mode 100644 index d2f09a7..0000000 --- a/.xinitrc +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/sh -# -# ██ ██ ██ -# ░░ ░░ ░██ -# ██ ██ ██ ███████ ██ ██████ ██████ █████ -# ░░██ ██ ░██░░██░░░██░██░░░██░ ░░██░░█ ██░░░██ -# ░░███ ░██ ░██ ░██░██ ░██ ░██ ░ ░██ ░░ -# ██░██ ░██ ░██ ░██░██ ░██ ░██ ░██ ██ -# ██ ░░██░██ ███ ░██░██ ░░██ ░███ ░░█████ -# ░░ ░░ ░░ ░░░ ░░ ░░ ░░ ░░░ ░░░░░ -# -# ▓▓▓▓▓▓▓▓▓▓ -# ░▓ author ▓ xero -# ░▓ code ▓ http://code.xero.nu/dotfiles -# ░▓ mirror ▓ http://git.io/.files -# ░▓▓▓▓▓▓▓▓▓▓ -# ░░░░░░░░░░ - -# merge custom x resources -xrdb -merge "${HOME}/.Xresources" - -# start the terminal emulator daemon -urxvtd -q -f -o & - -# gnome keyring -eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg) & - -# wifi -(sleep 1s && nm-applet) & - -# power management -(sleep 2s && xfce4-power-manager) & - -# sound mixer -(sleep 2s && pnmixer) & - -# volume keys daemon -(sleep 2s && xfce4-volumed) & - -# enable backlight -(sleep 2s && xbacklight -inc 100) & - -# compositing manager -compton -b --config ~/.config/compton.conf & - -# start thunar daemon -thunar --daemon & - -# automount drives -udisks-glue -c ~/.config/.udisk-glue.conf --session & - -# wallpaper -nitrogen --restore && - -# configure touchpad -syndaemon -i 0.8 -d & -if egrep -iq 'touchpad' /proc/bus/input/devices; then - synclient VertEdgeScroll=0 & - synclient TapButton1=1 & - synclient HorizTwoFingerScroll=1 & -fi - - -# clipboard manager -(sleep 3s && clipit) & - -# keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate. -xset r rate 250 25 & - -# disable system beep -xset b off & - -# fix cursors. for a minute :/ -xsetroot -cursor_name left_ptr - -# start the rock -mpd & - -# setup fonts -xset +fp ~/.fonts -xset fp rehash - -# ░▒▓█ get awesome! █▓▒░ -exec awesome diff --git a/.zsh/colored-man-pages.zsh b/.zsh/colored-man-pages.zsh deleted file mode 100644 index 6854d97..0000000 --- a/.zsh/colored-man-pages.zsh +++ /dev/null @@ -1,8 +0,0 @@ -#█▓▒░ source: https://github.com/imkira/dotfiles/blob/master/.zsh/colored-man-pages.zsh -export LESS_TERMCAP_mb=$'\E[01;31m' -export LESS_TERMCAP_md=$'\E[01;38;5;74m' -export LESS_TERMCAP_me=$'\E[0m' -export LESS_TERMCAP_se=$'\E[0m' -export LESS_TERMCAP_so=$'\E[38;33;246m' -export LESS_TERMCAP_ue=$'\E[0m' -export LESS_TERMCAP_us=$'\E[04;38;5;146m' diff --git a/.zsh/functions/chpwd_update_git_vars b/.zsh/functions/chpwd_update_git_vars deleted file mode 100644 index 2cc7ffa..0000000 --- a/.zsh/functions/chpwd_update_git_vars +++ /dev/null @@ -1 +0,0 @@ -update_current_git_vars \ No newline at end of file diff --git a/.zsh/functions/precmd_update_git_vars b/.zsh/functions/precmd_update_git_vars deleted file mode 100644 index 7fa32df..0000000 --- a/.zsh/functions/precmd_update_git_vars +++ /dev/null @@ -1,4 +0,0 @@ -if [ -n "$__EXECUTED_GIT_COMMAND" ]; then - update_current_git_vars - unset __EXECUTED_GIT_COMMAND -fi \ No newline at end of file diff --git a/.zsh/functions/preexec_update_git_vars b/.zsh/functions/preexec_update_git_vars deleted file mode 100644 index 998de21..0000000 --- a/.zsh/functions/preexec_update_git_vars +++ /dev/null @@ -1,5 +0,0 @@ -case "$1" in - git*) - __EXECUTED_GIT_COMMAND=1 - ;; -esac \ No newline at end of file diff --git a/.zsh/functions/prompt_git_info b/.zsh/functions/prompt_git_info deleted file mode 100644 index d492ac8..0000000 --- a/.zsh/functions/prompt_git_info +++ /dev/null @@ -1,21 +0,0 @@ -if [ -n "$__CURRENT_GIT_BRANCH" ]; then - local s="%F{cyan}-[%F{white}" - s+="$__CURRENT_GIT_BRANCH" - case "$__CURRENT_GIT_BRANCH_STATUS" in - ahead) - s+="↑" - ;; - diverged) - s+="↕" - ;; - behind) - s+="↓" - ;; - esac - if [ -n "$__CURRENT_GIT_BRANCH_IS_DIRTY" ]; then - s+="⚡" - fi - s+="%F{cyan}]" - - printf "%s%s" $s -fi \ No newline at end of file diff --git a/.zsh/functions/update_current_git_vars b/.zsh/functions/update_current_git_vars deleted file mode 100644 index 716d984..0000000 --- a/.zsh/functions/update_current_git_vars +++ /dev/null @@ -1,31 +0,0 @@ -unset __CURRENT_GIT_BRANCH -unset __CURRENT_GIT_BRANCH_STATUS -unset __CURRENT_GIT_BRANCH_IS_DIRTY - -local st="$(git status 2>/dev/null)" -local st2="$(git log -1 --pretty=%h 2>/dev/null)" - -if [[ -n "$st" ]]; then - local -a arr - arr=(${(f)st}) - - if [[ $arr[1] =~ 'Not currently on any branch.' ]]; then - __CURRENT_GIT_BRANCH="$st2" - else - __CURRENT_GIT_BRANCH="${arr[1][(w)4]}"; - fi - - if [[ $arr[2] =~ 'Your branch is' ]]; then - if [[ $arr[2] =~ 'ahead' ]]; then - __CURRENT_GIT_BRANCH_STATUS='ahead' - elif [[ $arr[2] =~ 'diverged' ]]; then - __CURRENT_GIT_BRANCH_STATUS='diverged' - else - __CURRENT_GIT_BRANCH_STATUS='behind' - fi - fi - - if [[ ! $st =~ 'nothing to commit' ]]; then - __CURRENT_GIT_BRANCH_IS_DIRTY='1' - fi -fi \ No newline at end of file diff --git a/.zshrc b/.zshrc deleted file mode 100644 index 14d832f..0000000 --- a/.zshrc +++ /dev/null @@ -1,124 +0,0 @@ -# ██ -# ░██ -# ██████ ██████░██ ██████ █████ -# ░░░░██ ██░░░░ ░██████ ░░██░░█ ██░░░██ -# ██ ░░█████ ░██░░░██ ░██ ░ ░██ ░░ -# ██ ░░░░░██░██ ░██ ░██ ░██ ██ -# ██████ ██████ ░██ ░██░███ ░░█████ -# ░░░░░░ ░░░░░░ ░░ ░░ ░░░ ░░░░░ -# -# ▓▓▓▓▓▓▓▓▓▓ -# ░▓ author ▓ xero -# ░▓ code ▓ http://code.xero.nu/dotfiles -# ░▓ mirror ▓ http://git.io/.files -# ░▓▓▓▓▓▓▓▓▓▓ -# ░░░░░░░░░░ -# -# █▓▒░ timestamps -# HIST_STAMPS="mm/dd/yyyy" - -#█▓▒░ exports -export PATH=$HOME/bin:/usr/local/bin:$PATH -# export MANPATH="/usr/local/man:$MANPATH" - -#█▓▒░ preferred editor for local and remote sessions -if [[ -n $SSH_CONNECTION ]]; then - export EDITOR='nano' -else - export EDITOR='sublime_text' -fi - -#█▓▒░ aliases -alias workscreen='xrandr --output HDMI1 --left-of LVDS1 --mode 1366x768' -alias ls='ls --color=auto' -alias lsla="ls -la --color=auto" -alias "cd.."="cd ../" -alias rock="ncmpcpp" -alias genplaylist="cd ~/music;find . -name '*.mp3' -o -name '*.flac'|sed -e 's%^./%%g' > ~/.mpd/playlists/all.m3u;mpd ~/.mpd/mpd.conf;mpc clear;mpc load all.m3u;mpc update" -alias matrix="cmatrix -b -s" -alias pipes="bash ~/code/fun/pipes" -alias pipesx="bash ~/code/fun/pipesx" -alias rain="bash ~/code/fun/rain.sh" -alias sai="sudo apt-get install" -alias screenfetch="~/code/fun/screenfetch" -alias invert="xcalib -i -a" -alias mixer="alsamixer" -alias disks="palimpsest" -alias photoshop="playonlinux --run photoshop_portable" -alias tempwatch="while :; do sensors|while read x; do printf '% .23s\n' "$x"; done; sleep 1 && clear; done;" -alias term='urxvtc -hold -e ' #used for awesomewm run menu -alias fixcursor='xsetroot -cursor_name left_ptr' -alias hashcompare='bash ~/code/sys/hash-compare.sh ' -alias apachereload='sudo /etc/init.d/apache2 restart' -alias checkrootkits='sudo rkhunter --update; sudo rkhunter --propupd; sudo rkhunter --check' - -#█▓▒░ ssh -export SSH_KEY_PATH="~/.ssh/id_rsa" - -#█▓▒░ autocompletion systems -autoload -Uz compinit -compinit - -zstyle ':completion:*' auto-description 'specify: %d' -zstyle ':completion:*' completer _expand _complete _correct _approximate -zstyle ':completion:*' format 'Completing %d' -zstyle ':completion:*' group-name '' -zstyle ':completion:*' menu select=2 eval "$(dircolors -b)" -zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} -zstyle ':completion:*' list-colors '' -zstyle ':completion:*' list-prompt %SAt %p: hit TAB for more, or the character to insert%s -zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*' -zstyle ':completion:*' menu select=long -zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s -zstyle ':completion:*' use-compctl false -zstyle ':completion:*' verbose true - -zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' -zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' - -#█▓▒░ allow functions in the prompt -setopt PROMPT_SUBST - -#█▓▒░ autoload zsh functions -fpath=(~/.zsh/functions $fpath) -autoload -U ~/.zsh/functions/*(:t) - -#█▓▒░ enable auto-execution of functions -typeset -ga preexec_functions -typeset -ga precmd_functions -typeset -ga chpwd_functions - -#█▓▒░ append git functions needed for prompt. -preexec_functions+='preexec_update_git_vars' -precmd_functions+='precmd_update_git_vars' -chpwd_functions+='chpwd_update_git_vars' - -#█▓▒░ load configs -for config_file (~/.zsh/*.zsh) source $config_file - -#█▓▒░ history -HISTFILE=~/.zhistory -setopt APPEND_HISTORY -HISTSIZE=1200 -SAVEHIST=1000 -setopt HIST_EXPIRE_DUPS_FIRST -setopt EXTENDED_HISTORY -setopt SHARE_HISTORY - -#█▓▒░ custom prompts - -#█▓▒░dual line -PROMPT="%F{cyan}┌[%F{white}%n@%M%F{cyan}]─[%F{red}%~%F{cyan}] -%F{cyan}└─ %F{white}" -#RPROMPT="%F{cyan}[%F{white}%n@%M%F{cyan}]" - -#█▓▒░ ninja -PROMPT="%F{white} ▟▙ %F{red}%~%F{white} -▟▒%F{blue}░░░░░░░%F{white}▜▙▜████████████████████████████████▛ -▜▒%F{blue}░░░░░░░%F{white}▟▛▟▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▛ - ▜▛ - %F{white}" - -#█▓▒░ minial -grey="%{^[[01;30m%}" -PROMPT='%F{cyan}[%F{white}%~%F{cyan}]$(prompt_git_info)── -%f ' diff --git a/README.md b/README.md index d0c9b0f..a7cb505 100644 --- a/README.md +++ b/README.md @@ -17,17 +17,83 @@ ░░░░░░░░░░ awesome > awesome wm config and ghost theme - code/fun > term color, sys info, and other misc scripts - code/sys > system automation scripts + compton > minimal composite config for opacity + fun > term color, sys info, and other misc scripts + sys > system automation scripts fonts > config for gohu and bitmap fonts git > global git config and aliases + herbstluftwm > herbstluft wm config and greybeard theme mc > midnight commander ui colors + mpd > music player daemon setup ncmpcpp > ncurses mpc++ ui/color settings - sublime-text-2 > greybeard theme - vimrc > vim custom airline bar and plugins - Xdefaults > urxvt ui/color settings - xinitrc > x bootstrap for awesome wm on crunchbang - zshrc > z shell settings, aliases, prompts + ryu-login > ryu ansi art for /etc/issue tty login + sublime > sublime text 2 with greybeard, monokai, and gohu + vim > vim custom airline bar and plugins + urxvt > urxvt terminal colors and keyboard settings + zsh > zshell settings, aliases, and custom prompts ``` +#managing +it's been said of every console user: _"you are your dotfiles"_. -![](https://raw.github.com/xero/dotfiles/master/preview.png) +i manage mine with [gnu stow](http://www.gnu.org/software/stow/), a free, portable, lightweight symlink farm manager. this allows me to keep a versioned directory of all my config files that are virtually linked into place via a single command. this makes sharing these files among many users (root) and computers super simple. and does not clutter your home directory with version control files. + +#installing +stow is available for all gnu/linux and most other unix like distributions via your package manager. + +- `sudo pacman -S stow` +- `sudo apt-get install stow` +- `brew install stow` + +#how it works +by default the stow command will create symlinks for files in the parent directory of where you execute the command. so my dotfiles setup assumes this repo is located in the root of your home directory `~/dotfiles`. and all stow commands should be executed in that directory. otherwise you'll need to use the `-d` flag with the repo directory location. + +to install most of my configs you execute the stow command with the folder name as the only argument. + +to install **herbstluft** theme use the command: + +`stow herbstluftwm` + +this will symlink files to `~/.config/herbstluftwm` and various other places. + +but you can override the default behavior and symlink files to another location with the `-t` (target) argument flag. + +to install the **ryu-login** you need to execute the command: + +`stow -t / ryu-login` + +this will symlink the file to `/etc/issue`. + +**note:** stow can only create a symlink if a config file does not already exist. if a default file was created upon program installation you must delete it first before you can install a new one with stow. this does not apply to directories, only files. + +#tl;dr +navigate to your home directory + +`cd ~` + +clone the repo: + +`git clone http://git.xero.nu/dotfiles.git` + +enter the dotfiles directory + +`cd dotfiles` + +install the zsh settings + +`stow zsh` + +install the root zsh settings + +`sudo stow zsh-root -t /root` + +install awesomewm theme + +`stow awesome` + +uninstall awesome theme + +`stow -D awesome` + +install herbstluftwm + +`stow herbstluftwm` \ No newline at end of file diff --git a/awesome/.config/awesome/config.lua b/awesome/.config/awesome/config.lua new file mode 100644 index 0000000..b60fff2 --- /dev/null +++ b/awesome/.config/awesome/config.lua @@ -0,0 +1,55 @@ +-- a w e s o m e ███ ██ +-- ░██░ ░░ +-- █████ ██████ ███████ ██████ ██ █████ +-- ██░░░██ ██░░░░██░░██░░░██░░░██░ ░██ ██░░░██ +-- ░██ ░░ ░██ ░██ ░██ ░██ ░██ ░██░██ ░██ +-- ░██ ██░██ ░██ ░██ ░██ ░██ ░██░██ ░██ +-- ░░█████ ░░██████ ███ ░██ ░██ ░██░░██████ +-- ░░░░░ ░░░░░░ ░░░ ░░ ░░ ░░ ░░░░░██ +-- █████ +-- ░░░░░ + +-- █▓▒░ interface settings +modkey = "Mod4" +altkey = "Mod1" +bar_position = "bottom" +tag_count = 4 +tag_icon = "◊" +tag_icon_active = "◆" +clock_format = " %a %m/%d %H:%M " -- http://linux.die.net/man/3/strftime +battery_id = "BAT1" +sloppy_focus = false + +-- █▓▒░ preffered apps +terminal = "urxvtc" +rootterm = "urxvtc -hold -e sudo " +term_exec = "urxvtc -hold -e " +filegui = "thunar" +filecli = terminal.." -e mc" +cpucli = terminal.." -e htop" +editor = os.getenv("EDITOR") or "vim" +editor_cmd = terminal.." -e "..editor +apparence = "lxappearance" +archiver = "file-roller" +search = "catfish" +guieditor = "subl" +filer = "thunar" +mediaplayer = "smplayer" +musicplayer = terminal.." -e ncmpcpp" +volumecontrol = terminal.. " -T sound -e alsamixer" +irc = terminal.." -T weechat -e weechat-curses" +iptraf = terminal.." -g -e sudo iptraf-ng -i all" +burner = "xfburn" +webgui = "chromium" +webcli = terminal.." -e links2" +ftpgui = "filezilla" +torrent = "transmission-gtk" +calc = "galculator" +pdf = "evince" +imageviewer = "viewnior" +exiter = terminal.." -T goodbye -e bash /home/xero/code/sys/goodbye.sh" +passmanager = "keepassx" +runcmd = "gmrun" +mp3tag = "puddletag" +blanktag = terminal.. " -T blank" +vbox = "gksudo " ..term_exec.. "modprobe vboxdrv && virtualbox" diff --git a/awesome/.config/awesome/lain/README.rst b/awesome/.config/awesome/lain/README.rst new file mode 100644 index 0000000..ca6569b --- /dev/null +++ b/awesome/.config/awesome/lain/README.rst @@ -0,0 +1,49 @@ +Lain +==== + +--------------------------------------------- +Layouts, widgets and utilities for Awesome WM +--------------------------------------------- + +:Author: Luke Bonham +:Version: git +:License: GNU-GPLv2_ +:Source: https://github.com/copycat-killer/lain + +Description +----------- + +Successor of awesome-vain_, this module provides new layouts, a set of widgets and utility functions, in order to improve Awesome_ usability and configurability. + +Read the wiki_ for all the info. + +**Note that** this module requires Awesome version 3.5 or higher. + +Contributions +------------- + +Any contribution is welcome! Feel free to make a pull request. + +Just make sure that: + +- Your code fits with the general style of the module. In particular, you should use the same indentation pattern that the code uses, and also avoid adding space at the ends of lines. + +- Your code its easy to understand, maintainable, and modularized. You should also avoid code duplication wherever possible by adding functions or using ``lain.helpers``. If something is unclear, and you can't write it in such a way that it will be clear, explain it with a comment. + +- You test your changes before submitting to make sure that not only your code works, but did not break other parts of the module too! + +- You eventually update ``wiki`` submodule with a thorough section. + +Contributed widgets have to be put in ``lain/widgets/contrib``. + +Screenshots +----------- + +.. image:: http://i.imgur.com/8D9A7lW.png +.. image:: http://i.imgur.com/9Iv3OR3.png +.. image:: http://i.imgur.com/STCPcaJ.png + +.. _GNU-GPLv2: http://www.gnu.org/licenses/gpl-2.0.html +.. _awesome-vain: https://github.com/vain/awesome-vain +.. _Awesome: http://awesome.naquadah.org/ +.. _wiki: https://github.com/copycat-killer/lain/wiki diff --git a/awesome/.config/awesome/lain/helpers.lua b/awesome/.config/awesome/lain/helpers.lua new file mode 100644 index 0000000..863bb87 --- /dev/null +++ b/awesome/.config/awesome/lain/helpers.lua @@ -0,0 +1,103 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + +--]] + +local debug = require("debug") + +local capi = { timer = timer } +local io = { open = io.open, + lines = io.lines } +local rawget = rawget + +-- Lain helper functions for internal use +-- lain.helpers +local helpers = {} + +helpers.lain_dir = debug.getinfo(1, 'S').source:match[[^@(.*/).*$]] +helpers.icons_dir = helpers.lain_dir .. 'icons/' +helpers.scripts_dir = helpers.lain_dir .. 'scripts/' + +-- {{{ Modules loader + +function helpers.wrequire(table, key) + local module = rawget(table, key) + return module or require(table._NAME .. '.' .. key) +end + +-- }}} + +-- {{{ File operations + +-- see if the file exists and is readable +function helpers.file_exists(file) + local f = io.open(file) + if f then + local s = f:read() + f:close() + f = s + end + return f ~= nil +end + +-- get all lines from a file, returns an empty +-- list/table if the file does not exist +function helpers.lines_from(file) + if not helpers.file_exists(file) then return {} end + lines = {} + for line in io.lines(file) do + lines[#lines + 1] = line + end + return lines +end + +-- get first line of a file, return nil if +-- the file does not exist +function helpers.first_line(file) + return helpers.lines_from(file)[1] +end + +-- get first non empty line from a file, +-- returns nil otherwise +function helpers.first_nonempty_line(file) + for k,v in pairs(helpers.lines_from(file)) do + if #v then return v end + end + return nil +end + +-- }}} + +-- {{{ Timer maker + +helpers.timer_table = {} + +function helpers.newtimer(name, timeout, fun, nostart) + helpers.timer_table[name] = capi.timer({ timeout = timeout }) + helpers.timer_table[name]:connect_signal("timeout", fun) + helpers.timer_table[name]:start() + if not nostart then + helpers.timer_table[name]:emit_signal("timeout") + end +end + +-- }}} + +-- {{{ A map utility + +helpers.map_table = {} + +function helpers.set_map(element, value) + helpers.map_table[element] = value +end + +function helpers.get_map(element) + return helpers.map_table[element] +end + +-- }}} + +return helpers diff --git a/awesome/.config/awesome/lain/init.lua b/awesome/.config/awesome/lain/init.lua new file mode 100644 index 0000000..5086435 --- /dev/null +++ b/awesome/.config/awesome/lain/init.lua @@ -0,0 +1,21 @@ + +--[[ + + Lain + Layouts, widgets and utilities for Awesome WM + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + +--]] + +package.loaded.lain = nil + +local lain = +{ + layout = require("lain.layout"), + util = require("lain.util"), + widgets = require("lain.widgets") +} + +return lain diff --git a/awesome/.config/awesome/lain/layout/cascade.lua b/awesome/.config/awesome/lain/layout/cascade.lua new file mode 100644 index 0000000..cabacef --- /dev/null +++ b/awesome/.config/awesome/lain/layout/cascade.lua @@ -0,0 +1,65 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local tag = require("awful.tag") + +local cascade = +{ + name = "cascade", + nmaster = 0, + offset_x = 32, + offset_y = 8 +} + +function cascade.arrange(p) + + -- Cascade windows. + + -- Screen. + local wa = p.workarea + local cls = p.clients + + -- Opening a new window will usually force all existing windows to + -- get resized. This wastes a lot of CPU time. So let's set a lower + -- bound to "how_many": This wastes a little screen space but you'll + -- get a much better user experience. + local t = tag.selected(p.screen) + local num_c + if cascade.nmaster > 0 + then + num_c = cascade.nmaster + else + num_c = tag.getnmaster(t) + end + + local how_many = #cls + if how_many < num_c + then + how_many = num_c + end + + local current_offset_x = cascade.offset_x * (how_many - 1) + local current_offset_y = cascade.offset_y * (how_many - 1) + + -- Iterate. + for i = 1,#cls,1 + do + local c = cls[i] + local g = {} + + g.x = wa.x + (how_many - i) * cascade.offset_x + g.y = wa.y + (i - 1) * cascade.offset_y + g.width = wa.width - current_offset_x + g.height = wa.height - current_offset_y + + c:geometry(g) + end +end + +return cascade diff --git a/awesome/.config/awesome/lain/layout/cascadetile.lua b/awesome/.config/awesome/lain/layout/cascadetile.lua new file mode 100644 index 0000000..98821e3 --- /dev/null +++ b/awesome/.config/awesome/lain/layout/cascadetile.lua @@ -0,0 +1,155 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local tag = require("awful.tag") +local beautiful = require("beautiful") +local tonumber = tonumber + +local cascadetile = +{ + name = "cascadetile", + nmaster = 0, + ncol = 0, + mwfact = 0, + offset_x = 5, + offset_y = 32, + extra_padding = 0 +} + +function cascadetile.arrange(p) + + -- Layout with one fixed column meant for a master window. Its + -- width is calculated according to mwfact. Other clients are + -- cascaded or "tabbed" in a slave column on the right. + + -- It's a bit hard to demonstrate the behaviour with ASCII-images... + -- + -- (1) (2) (3) (4) + -- +-----+---+ +-----+---+ +-----+---+ +-----+---+ + -- | | | | | | | | | | | 4 | + -- | | | | | 2 | | | 3 | | | | + -- | 1 | | -> | 1 | | -> | 1 | | -> | 1 +---+ + -- | | | | +---+ | +---+ | | 3 | + -- | | | | | | | | 2 | | |---| + -- | | | | | | | |---| | | 2 | + -- | | | | | | | | | | |---| + -- +-----+---+ +-----+---+ +-----+---+ +-----+---+ + + -- A useless gap (like the dwm patch) can be defined with + -- beautiful.useless_gap_width. + local useless_gap = tonumber(beautiful.useless_gap_width) or 0 + + -- Screen. + local wa = p.workarea + local cls = p.clients + + -- Width of main column? + local t = tag.selected(p.screen) + local mwfact + if cascadetile.mwfact > 0 + then + mwfact = cascadetile.mwfact + else + mwfact = tag.getmwfact(t) + end + + -- Make slave windows overlap main window? Do this if ncol is 1. + local overlap_main + if cascadetile.ncol > 0 + then + overlap_main = cascadetile.ncol + else + overlap_main = tag.getncol(t) + end + + -- Minimum space for slave windows? See cascade.lua. + local num_c + if cascadetile.nmaster > 0 + then + num_c = cascadetile.nmaster + else + num_c = tag.getnmaster(t) + end + + local how_many = #cls - 1 + if how_many < num_c + then + how_many = num_c + end + local current_offset_x = cascadetile.offset_x * (how_many - 1) + local current_offset_y = cascadetile.offset_y * (how_many - 1) + + if #cls > 0 + then + -- Main column, fixed width and height. + local c = cls[#cls] + local g = {} + local mainwid = wa.width * mwfact + local slavewid = wa.width - mainwid + + if overlap_main == 1 + then + g.width = wa.width + + -- The size of the main window may be reduced a little bit. + -- This allows you to see if there are any windows below the + -- main window. + -- This only makes sense, though, if the main window is + -- overlapping everything else. + g.width = g.width - cascadetile.extra_padding + else + g.width = mainwid + end + + g.height = wa.height + g.x = wa.x + g.y = wa.y + if useless_gap > 0 + then + -- Reduce width once and move window to the right. Reduce + -- height twice, however. + g.width = g.width - useless_gap + g.height = g.height - 2 * useless_gap + g.x = g.x + useless_gap + g.y = g.y + useless_gap + + -- When there's no window to the right, add an additional + -- gap. + if overlap_main == 1 + then + g.width = g.width - useless_gap + end + end + c:geometry(g) + + -- Remaining clients stacked in slave column, new ones on top. + if #cls > 1 + then + for i = (#cls - 1),1,-1 + do + c = cls[i] + g = {} + g.width = slavewid - current_offset_x + g.height = wa.height - current_offset_y + g.x = wa.x + mainwid + (how_many - i) * cascadetile.offset_x + g.y = wa.y + (i - 1) * cascadetile.offset_y + if useless_gap > 0 + then + g.width = g.width - 2 * useless_gap + g.height = g.height - 2 * useless_gap + g.x = g.x + useless_gap + g.y = g.y + useless_gap + end + c:geometry(g) + end + end + end +end + +return cascadetile diff --git a/awesome/.config/awesome/lain/layout/centerfair.lua b/awesome/.config/awesome/lain/layout/centerfair.lua new file mode 100644 index 0000000..49b4a14 --- /dev/null +++ b/awesome/.config/awesome/lain/layout/centerfair.lua @@ -0,0 +1,147 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010, Nicolas Estibals + * (c) 2010-2012, Peter Hofmann + +--]] + +local tag = require("awful.tag") +local beautiful = require("beautiful") +local math = { ceil = math.ceil, + floor = math.floor, + max = math.max } +local tonumber = tonumber + +local centerfair = { name = "centerfair" } + +function centerfair.arrange(p) + -- Layout with fixed number of vertical columns (read from nmaster). + -- Cols are centerded until there is nmaster columns, then windows + -- are stacked in the slave columns, with at most ncol clients per + -- column if possible. + + -- with nmaster=3 and ncol=1 you'll have + -- (1) (2) (3) + -- +---+---+---+ +-+---+---+-+ +---+---+---+ + -- | | | | | | | | | | | | | + -- | | 1 | | -> | | 1 | 2 | | -> | 1 | 2 | 3 | -> + -- | | | | | | | | | | | | | + -- +---+---+---+ +-+---+---+-+ +---+---+---+ + + -- (4) (5) + -- +---+---+---+ +---+---+---+ + -- | | | 3 | | | 2 | 4 | + -- + 1 + 2 +---+ -> + 1 +---+---+ + -- | | | 4 | | | 3 | 5 | + -- +---+---+---+ +---+---+---+ + + -- A useless gap (like the dwm patch) can be defined with + -- beautiful.useless_gap_width . + local useless_gap = tonumber(beautiful.useless_gap_width) or 0 + + -- Screen. + local wa = p.workarea + local cls = p.clients + + -- How many vertical columns? Read from nmaster on the tag. + local t = tag.selected(p.screen) + local num_x = centerfair.nmaster or tag.getnmaster(t) + local ncol = centerfair.ncol or tag.getncol(t) + + local width = math.floor((wa.width-(num_x+1)*useless_gap) / num_x) + + local offset_y = wa.y + useless_gap + if #cls < num_x + then + -- Less clients than the number of columns, let's center it! + local offset_x = wa.x + useless_gap + (wa.width - #cls*width - (#cls+1)*useless_gap) / 2 + local g = {} + g.width = width + g.height = wa.height - 2*useless_gap - 2 + g.y = offset_y + for i = 1, #cls do + g.x = offset_x + (i - 1) * (width + useless_gap + 2) + cls[i]:geometry(g) + end + else + -- More clients than the number of columns, let's arrange it! + local offset_x = wa.x + if useless_gap > 0 then + offset_x = offset_x + end + + -- Master client deserves a special treatement + local g = {} + g.width = wa.width - (num_x-1)*width -num_x*useless_gap - 2 + g.height = wa.height - 2*useless_gap - 2 + g.x = offset_x + useless_gap + g.y = offset_y + cls[1]:geometry(g) + + -- Treat the other clients + + -- Compute distribution of clients among columns + local num_y ={} + do + local remaining_clients = #cls-1 + local ncol_min = math.ceil(remaining_clients/(num_x-1)) + if ncol >= ncol_min + then + for i = (num_x-1), 1, -1 do + if (remaining_clients-i+1) < ncol + then + num_y[i] = remaining_clients-i + 1 + else + num_y[i] = ncol + end + remaining_clients = remaining_clients - num_y[i] + end + else + local rem = remaining_clients % (num_x-1) + if rem ==0 + then + for i = 1, num_x-1 do + num_y[i] = ncol_min + end + else + for i = 1, num_x-1 do + num_y[i] = ncol_min - 1 + end + for i = 0, rem-1 do + num_y[num_x-1-i] = num_y[num_x-1-i] + 1 + end + end + end + end + + -- Compute geometry of the other clients + local nclient = 2 + g.x = g.x + g.width+useless_gap + 2 + g.width = width + + if useless_gap > 0 then + g.width = g.width - useless_gap/2 - 2 + end + + for i = 1, (num_x-1) do + to_remove = 2 + g.height = math.floor((wa.height-useless_gap)/num_y[i]) + g.y = offset_y + for j = 0, (num_y[i]-2) do + cls[nclient]:geometry(g) + nclient = nclient + 1 + g.y = g.y + g.height+useless_gap + 2 + to_remove = to_remove + 2 + end + g.height = wa.height - num_y[i]*useless_gap - (num_y[i]-1)*g.height - useless_gap - to_remove + cls[nclient]:geometry(g) + nclient = nclient + 1 + g.x = g.x+g.width+useless_gap + 2 + end + end +end + +return centerfair diff --git a/awesome/.config/awesome/lain/layout/centerwork.lua b/awesome/.config/awesome/lain/layout/centerwork.lua new file mode 100644 index 0000000..b8175ea --- /dev/null +++ b/awesome/.config/awesome/lain/layout/centerwork.lua @@ -0,0 +1,118 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local awful = require("awful") +local beautiful = require("beautiful") +local tonumber = tonumber +local math = { floor = math.floor } + +local centerwork = +{ + name = "centerwork", + top_left = 0, + top_right = 1, + bottom_left = 2, + bottom_right = 3 +} + +function centerwork.arrange(p) + -- A useless gap (like the dwm patch) can be defined with + -- beautiful.useless_gap_width . + local useless_gap = tonumber(beautiful.useless_gap_width) or 0 + + -- Screen. + local wa = p.workarea + local cls = p.clients + + -- Width of main column? + local t = awful.tag.selected(p.screen) + local mwfact = awful.tag.getmwfact(t) + + if #cls > 0 + then + -- Main column, fixed width and height. + local c = cls[#cls] + local g = {} + local mainwid = math.floor(wa.width * mwfact) + local slavewid = wa.width - mainwid + local slaveLwid = math.floor(slavewid / 2) + local slaveRwid = slavewid - slaveLwid + local slaveThei = math.floor(wa.height / 2) + local slaveBhei = wa.height - slaveThei + + g.height = wa.height - 2 * useless_gap + g.width = mainwid + g.x = wa.x + slaveLwid + g.y = wa.y + useless_gap + + c:geometry(g) + + -- Auxiliary windows. + if #cls > 1 + then + local at = 0 + for i = (#cls - 1),1,-1 + do + -- It's all fixed. If there are more than 5 clients, + -- those additional clients will float. This is + -- intentional. + if at == 4 + then + break + end + + c = cls[i] + g = {} + + if at == centerwork.top_left + then + -- top left + g.x = wa.x + useless_gap + g.y = wa.y + useless_gap + g.width = slaveLwid - 2 * useless_gap + g.height = slaveThei - useless_gap + elseif at == centerwork.top_right + then + -- top right + g.x = wa.x + slaveLwid + mainwid + useless_gap + g.y = wa.y + useless_gap + g.width = slaveRwid - 2 * useless_gap + g.height = slaveThei - useless_gap + elseif at == centerwork.bottom_left + then + -- bottom left + g.x = wa.x + useless_gap + g.y = wa.y + slaveThei + useless_gap + g.width = slaveLwid - 2 * useless_gap + g.height = slaveBhei - 2 * useless_gap + elseif at == centerwork.bottom_right + then + -- bottom right + g.x = wa.x + slaveLwid + mainwid + useless_gap + g.y = wa.y + slaveThei + useless_gap + g.width = slaveRwid - 2 * useless_gap + g.height = slaveBhei - 2 * useless_gap + end + + c:geometry(g) + + at = at + 1 + end + + -- Set remaining clients to floating. + for i = (#cls - 1 - 4),1,-1 + do + c = cls[i] + awful.client.floating.set(c, true) + end + end + end +end + +return centerwork diff --git a/awesome/.config/awesome/lain/layout/init.lua b/awesome/.config/awesome/lain/layout/init.lua new file mode 100644 index 0000000..d79679a --- /dev/null +++ b/awesome/.config/awesome/lain/layout/init.lua @@ -0,0 +1,20 @@ + +--[[ + + Lain + Layouts, widgets and utilities for Awesome WM + + Layouts section + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local wrequire = require("lain.helpers").wrequire +local setmetatable = setmetatable + +local layout = { _NAME = "lain.layout" } + +return setmetatable(layout, { __index = wrequire }) diff --git a/awesome/.config/awesome/lain/layout/termfair.lua b/awesome/.config/awesome/lain/layout/termfair.lua new file mode 100644 index 0000000..89a44bb --- /dev/null +++ b/awesome/.config/awesome/lain/layout/termfair.lua @@ -0,0 +1,141 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local tag = require("awful.tag") +local beautiful = require("beautiful") +local math = { ceil = math.ceil, + floor = math.floor, + max = math.max } +local tonumber = tonumber + +local termfair = { name = "termfair" } + +function termfair.arrange(p) + -- Layout with fixed number of vertical columns (read from nmaster). + -- New windows align from left to right. When a row is full, a now + -- one above it is created. Like this: + + -- (1) (2) (3) + -- +---+---+---+ +---+---+---+ +---+---+---+ + -- | | | | | | | | | | | | + -- | 1 | | | -> | 2 | 1 | | -> | 3 | 2 | 1 | -> + -- | | | | | | | | | | | | + -- +---+---+---+ +---+---+---+ +---+---+---+ + + -- (4) (5) (6) + -- +---+---+---+ +---+---+---+ +---+---+---+ + -- | 4 | | | | 5 | 4 | | | 6 | 5 | 4 | + -- +---+---+---+ -> +---+---+---+ -> +---+---+---+ + -- | 3 | 2 | 1 | | 3 | 2 | 1 | | 3 | 2 | 1 | + -- +---+---+---+ +---+---+---+ +---+---+---+ + + -- A useless gap (like the dwm patch) can be defined with + -- beautiful.useless_gap_width. + local useless_gap = tonumber(beautiful.useless_gap_width) or 0 + + -- Screen. + local wa = p.workarea + local cls = p.clients + + -- How many vertical columns? + local t = tag.selected(p.screen) + local num_x = termfair.nmaster or tag.getnmaster(t) + + -- Do at least "desired_y" rows. + local desired_y = termfair.ncol or tag.getncol(t) + + if #cls > 0 + then + local num_y = math.max(math.ceil(#cls / num_x), desired_y) + local cur_num_x = num_x + local at_x = 0 + local at_y = 0 + local remaining_clients = #cls + local width = math.floor(wa.width / num_x) + local height = math.floor(wa.height / num_y) + + -- We start the first row. Left-align by limiting the number of + -- available slots. + if remaining_clients < num_x + then + cur_num_x = remaining_clients + end + + -- Iterate in reversed order. + for i = #cls,1,-1 + do + -- Get x and y position. + local c = cls[i] + local this_x = cur_num_x - at_x - 1 + local this_y = num_y - at_y - 1 + + -- Calc geometry. + local g = {} + if this_x == (num_x - 1) + then + g.width = wa.width - (num_x - 1) * width + else + g.width = width + end + if this_y == (num_y - 1) + then + g.height = wa.height - (num_y - 1) * height + else + g.height = height + end + + g.x = wa.x + this_x * width + g.y = wa.y + this_y * height + + if useless_gap > 0 + then + -- Top and left clients are shrinked by two steps and + -- get moved away from the border. Other clients just + -- get shrinked in one direction. + + gap_factor = (useless_gap / 100) * 2 + + if this_x == 0 + then + g.width = g.width - (2 + gap_factor) * useless_gap + g.x = g.x + useless_gap + else + g.width = g.width - (1 + gap_factor) * useless_gap + end + + if this_y == 0 + then + g.height = g.height - (2 + gap_factor) * useless_gap + g.y = g.y + useless_gap + else + g.height = g.height - (1 + gap_factor) * useless_gap + end + end + c:geometry(g) + remaining_clients = remaining_clients - 1 + + -- Next grid position. + at_x = at_x + 1 + if at_x == num_x + then + -- Row full, create a new one above it. + at_x = 0 + at_y = at_y + 1 + + -- We start a new row. Left-align. + if remaining_clients < num_x + then + cur_num_x = remaining_clients + end + end + end + end +end + +return termfair diff --git a/awesome/.config/awesome/lain/layout/uselessfair.lua b/awesome/.config/awesome/lain/layout/uselessfair.lua new file mode 100644 index 0000000..6aa6666 --- /dev/null +++ b/awesome/.config/awesome/lain/layout/uselessfair.lua @@ -0,0 +1,121 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2012, Josh Komoroske + * (c) 2010-2012, Peter Hofmann + +--]] + +local beautiful = require("beautiful") +local ipairs = ipairs +local math = { ceil = math.ceil, sqrt = math.sqrt } +local tonumber = tonumber + +local uselessfair = {} + +local function fair(p, orientation) + -- A useless gap (like the dwm patch) can be defined with + -- beautiful.useless_gap_width. + local useless_gap = tonumber(beautiful.useless_gap_width) or 0 + + local wa = p.workarea + local cls = p.clients + + if #cls > 0 then + local cells = math.ceil(math.sqrt(#cls)) + local strips = math.ceil(#cls / cells) + + local cell = 0 + local strip = 0 + for k, c in ipairs(cls) do + local g = {} + -- Save actual grid index for use in the useless_gap + -- routine. + local this_x = 0 + local this_y = 0 + if ( orientation == "east" and #cls > 2 ) + or ( orientation == "south" and #cls <= 2 ) then + if #cls < (strips * cells) and strip == strips - 1 then + g.width = wa.width / (cells - ((strips * cells) - #cls)) + else + g.width = wa.width / cells + end + g.height = wa.height / strips + + this_x = cell + this_y = strip + + g.x = wa.x + cell * g.width + g.y = wa.y + strip * g.height + + else + if #cls < (strips * cells) and strip == strips - 1 then + g.height = wa.height / (cells - ((strips * cells) - #cls)) + else + g.height = wa.height / cells + end + g.width = wa.width / strips + + this_x = strip + this_y = cell + + g.x = wa.x + strip * g.width + g.y = wa.y + cell * g.height + end + + -- Useless gap. + if useless_gap > 0 + then + -- Top and left clients are shrinked by two steps and + -- get moved away from the border. Other clients just + -- get shrinked in one direction. + + gap_factor = (useless_gap / 100) * 2 + + if this_x == 0 + then + g.width = g.width - (2 + gap_factor) * useless_gap + g.x = g.x + useless_gap + else + g.width = g.width - (1 + gap_factor) * useless_gap + end + + if this_y == 0 + then + g.height = g.height - (2 + gap_factor) * useless_gap + g.y = g.y + useless_gap + else + g.height = g.height - (1 + gap_factor) * useless_gap + end + end + -- End of useless gap. + + c:geometry(g) + + cell = cell + 1 + if cell == cells then + cell = 0 + strip = strip + 1 + end + end + end +end + +--- Horizontal fair layout. +-- @param screen The screen to arrange. +uselessfair.horizontal = {} +uselessfair.horizontal.name = "uselessfairh" +function uselessfair.horizontal.arrange(p) + return fair(p, "east") +end + +-- Vertical fair layout. +-- @param screen The screen to arrange. +uselessfair.name = "uselessfair" +function uselessfair.arrange(p) + return fair(p, "south") +end + +return uselessfair diff --git a/awesome/.config/awesome/lain/layout/uselesspiral.lua b/awesome/.config/awesome/lain/layout/uselesspiral.lua new file mode 100644 index 0000000..3164c75 --- /dev/null +++ b/awesome/.config/awesome/lain/layout/uselesspiral.lua @@ -0,0 +1,110 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2009 Uli Schlachter + * (c) 2008 Julien Danjolu + +--]] + +local beautiful = require("beautiful") +local ipairs = ipairs +local tonumber = tonumber + +local uselesspiral = {} + +local function spiral(p, spiral) + -- A useless gap (like the dwm patch) can be defined with + -- beautiful.useless_gap_width. + local useless_gap = tonumber(beautiful.useless_gap_width) or 0 + + local wa = p.workarea + local cls = p.clients + local n = #cls + + local static_wa = wa + + for k, c in ipairs(cls) do + if k < n then + if k % 2 == 0 then + wa.height = wa.height / 2 + else + wa.width = wa.width / 2 + end + end + + if k % 4 == 0 and spiral then + wa.x = wa.x - wa.width + elseif k % 2 == 0 or + (k % 4 == 3 and k < n and spiral) then + wa.x = wa.x + wa.width + end + + if k % 4 == 1 and k ~= 1 and spiral then + wa.y = wa.y - wa.height + elseif k % 2 == 1 and k ~= 1 or + (k % 4 == 0 and k < n and spiral) then + wa.y = wa.y + wa.height + end + + local wa2 = {} + wa2.x = wa.x + wa2.y = wa.y + wa2.height = wa.height + wa2.width = wa.width + + -- Useless gap. + if useless_gap > 0 + then + -- Top and left clients are shrinked by two steps and + -- get moved away from the border. Other clients just + -- get shrinked in one direction. + + top = false + left = false + + gap_factor = (useless_gap / 100) * 2 + + if wa2.y == static_wa.y then + top = true + end + + if wa2.x == static_wa.x then + left = true + end + + if top then + wa2.height = wa2.height - (2 + gap_factor) * useless_gap + wa2.y = wa2.y + useless_gap + else + wa2.height = wa2.height - (1 + gap_factor) * useless_gap + end + + if left then + wa2.width = wa2.width - (2 + gap_factor) * useless_gap + wa2.x = wa2.x + useless_gap + else + wa2.width = wa2.width - (1 + gap_factor) * useless_gap + end + end + -- End of useless gap. + + c:geometry(wa2) + end +end + +--- Dwindle layout +uselesspiral.dwindle = {} +uselesspiral.dwindle.name = "uselessdwindle" +function uselesspiral.dwindle.arrange(p) + return spiral(p, false) +end + +--- Spiral layout +uselesspiral.name = "uselesspiral" +function uselesspiral.arrange(p) + return spiral(p, true) +end + +return uselesspiral diff --git a/awesome/.config/awesome/lain/layout/uselesstile.lua b/awesome/.config/awesome/lain/layout/uselesstile.lua new file mode 100644 index 0000000..e496500 --- /dev/null +++ b/awesome/.config/awesome/lain/layout/uselesstile.lua @@ -0,0 +1,230 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2009 Donald Ephraim Curtis + * (c) 2008 Julien Danjolu + +--]] + +local tag = require("awful.tag") +local beautiful = require("beautiful") +local ipairs = ipairs +local math = { floor = math.floor, + max = math.max, + min = math.min } +local tonumber = tonumber + +local uselesstile = {} + +local function tile_group(cls, wa, orientation, fact, group) + -- A useless gap (like the dwm patch) can be defined with + -- beautiful.useless_gap_width . + local useless_gap = tonumber(beautiful.useless_gap_width) or 0 + + -- get our orientation right + local height = "height" + local width = "width" + local x = "x" + local y = "y" + if orientation == "top" or orientation == "bottom" then + height = "width" + width = "height" + x = "y" + y = "x" + end + + -- make this more generic (not just width) + available = wa[width] - (group.coord - wa[x]) + + -- find our total values + local total_fact = 0 + local min_fact = 1 + local size = group.size + for c = group.first,group.last do + -- determine the width/height based on the size_hint + local i = c - group.first +1 + local size_hints = cls[c].size_hints + local size_hint = size_hints["min_"..width] or size_hints["base_"..width] or 0 + size_hint = size_hint + cls[c].border_width*2 + size = math.max(size_hint, size) + + -- calculate the height + if not fact[i] then + fact[i] = min_fact + else + min_fact = math.min(fact[i],min_fact) + end + total_fact = total_fact + fact[i] + end + size = math.min(size, available) + + local coord = wa[y] + local geom = {} + local used_size = 0 + local unused = wa[height] + local stat_coord = wa[x] + --stat_coord = size + for c = group.first,group.last do + local i = c - group.first +1 + geom[width] = size + geom[height] = math.floor(unused * fact[i] / total_fact) + geom[x] = group.coord + geom[y] = coord + + coord = coord + geom[height] + unused = unused - geom[height] + total_fact = total_fact - fact[i] + used_size = math.max(used_size, geom[width]) + + -- Useless gap + if useless_gap > 0 + then + -- Top and left clients are shrinked by two steps and + -- get moved away from the border. Other clients just + -- get shrinked in one direction. + + top = false + left = false + + gap_factor = (useless_gap / 100) * 2 + + if geom[y] == wa[y] then + top = true + end + + if geom[x] == 0 or geom[x] == wa[x] then + left = true + end + + if top then + geom[height] = geom[height] - (2 + gap_factor) * useless_gap + geom[y] = geom[y] + useless_gap + else + geom[height] = geom[height] - (1 + gap_factor) * useless_gap + end + + if left then + geom[width] = geom[width] - (2 + gap_factor) * useless_gap + geom[x] = geom[x] + useless_gap + else + geom[width] = geom[width] - (1 + gap_factor) * useless_gap + end + end + -- End of useless gap. + + geom = cls[c]:geometry(geom) + end + + return used_size +end + +local function tile(param, orientation) + local t = tag.selected(param.screen) + orientation = orientation or "right" + + -- this handles are different orientations + local height = "height" + local width = "width" + local x = "x" + local y = "y" + if orientation == "top" or orientation == "bottom" then + height = "width" + width = "height" + x = "y" + y = "x" + end + + local cls = param.clients + local nmaster = math.min(tag.getnmaster(t), #cls) + local nother = math.max(#cls - nmaster,0) + + local mwfact = tag.getmwfact(t) + local wa = param.workarea + local ncol = tag.getncol(t) + + local data = tag.getdata(t).windowfact + + if not data then + data = {} + tag.getdata(t).windowfact = data + end + + local coord = wa[x] + local place_master = true + if orientation == "left" or orientation == "top" then + -- if we are on the left or top we need to render the other windows first + place_master = false + end + + -- this was easier than writing functions because there is a lot of data we need + for d = 1,2 do + if place_master and nmaster > 0 then + local size = wa[width] + if nother > 0 then + size = math.min(wa[width] * mwfact, wa[width] - (coord - wa[x])) + end + if not data[0] then + data[0] = {} + end + coord = coord + tile_group(cls, wa, orientation, data[0], {first=1, last=nmaster, coord = coord, size = size}) + end + + if not place_master and nother > 0 then + local last = nmaster + + -- we have to modify the work area size to consider left and top views + local wasize = wa[width] + if nmaster > 0 and (orientation == "left" or orientation == "top") then + wasize = wa[width] - wa[width]*mwfact + end + for i = 1,ncol do + -- Try to get equal width among remaining columns + local size = math.min( (wasize - (coord - wa[x])) / (ncol - i + 1) ) + local first = last + 1 + last = last + math.floor((#cls - last)/(ncol - i + 1)) + -- tile the column and update our current x coordinate + if not data[i] then + data[i] = {} + end + coord = coord + tile_group(cls, wa, orientation, data[i], { first = first, last = last, coord = coord, size = size }) + end + end + place_master = not place_master + end + +end + +uselesstile.right = {} +uselesstile.right.name = "uselesstile" +uselesstile.right.arrange = tile + +--- The main tile algo, on left. +-- @param screen The screen number to tile. +uselesstile.left = {} +uselesstile.left.name = "uselesstileleft" +function uselesstile.left.arrange(p) + return tile(p, "left") +end + +--- The main tile algo, on bottom. +-- @param screen The screen number to tile. +uselesstile.bottom = {} +uselesstile.bottom.name = "uselesstilebottom" +function uselesstile.bottom.arrange(p) + return tile(p, "bottom") +end + +--- The main tile algo, on top. +-- @param screen The screen number to tile. +uselesstile.top = {} +uselesstile.top.name = "uselesstiletop" +function uselesstile.top.arrange(p) + return tile(p, "top") +end + +uselesstile.arrange = uselesstile.right.arrange +uselesstile.name = uselesstile.right.name + +return uselesstile diff --git a/awesome/.config/awesome/lain/scripts/dfs b/awesome/.config/awesome/lain/scripts/dfs new file mode 100755 index 0000000..d78d2bb --- /dev/null +++ b/awesome/.config/awesome/lain/scripts/dfs @@ -0,0 +1,387 @@ +#!/bin/bash +# +# Adapted from Eridan's "fs" (cleanup, enhancements and switch to bash/Linux) +# JM, 10/12/2004 +# +# Integrated into Lain in september 2013 +# https://github.com/copycat-killer/lain + +# Requires gawk + +# ------------------------------------------------------------------------- +# Decoding options +# ------------------------------------------------------------------------- +USAGE="Usage: $0 [-h(elp)] | [-n(arrow mode)] | [-w(eb output)]" + +NARROW_MODE=0 +WEB_OUTPUT=0 + +while [ $# -gt 0 ]; do +case "$1" in +"-h" ) +echo $USAGE +exit +;; +"-d" ) +DEBUG=1 +;; +"-n" ) +NARROW_MODE=1 +;; +"-w" ) +WEB_OUTPUT=1 +;; +* ) +echo $USAGE +exit +;; +esac +shift +done + +# ------------------------------------------------------------------------- +# Preparations +# ------------------------------------------------------------------------- +SYSTEM=`uname -s` +PATTERN="/" + +case "$SYSTEM" in +"Linux" ) +DF_COMMAND="/usr/bin/env df -k" +SORT_COMMAND="/usr/bin/env sort -k6" +AWK_COMMAND="/usr/bin/env awk" +;; +* ) +DF_COMMAND="/bin/df -k" +SORT_COMMAND="/usr/bin/sort -k6" +AWK_COMMAND="/usr/bin/env gawk" +;; +esac + +# ------------------------------------------------------------------------- +# Grabbing "df" result +# ------------------------------------------------------------------------- +DF_RESULT=`$DF_COMMAND` +if [ ! -z $DEBUG ]; then +echo "--> DF_RESULT:" +echo "$DF_RESULT" +echo "" +fi + +# ------------------------------------------------------------------------- +# Preprocessing "df" result, to join split logical lines +# ------------------------------------------------------------------------- +PREPROCESSING_RESULT=` \ + echo "$DF_RESULT" | $AWK_COMMAND -v PATTERN=$PATTERN \ + ' + NF == 1 { + printf ("%s", $0) + } + +NF == 5 { + printf ("%s\n", $0) +} + +NF > 6 { +} + +NF == 6 { + printf ("%s\n", $0) +}' +` +if [ ! -z $DEBUG ]; then +echo "--> PREPROCESSING_RESULT:" +echo "$PREPROCESSING_RESULT" +echo "" +fi + +SORTED_FILE_SYSTEMS_INFO=`echo "$PREPROCESSING_RESULT" | $SORT_COMMAND` + +if [ ! -z $DEBUG ]; then +echo "--> SORTED_FILE_SYSTEMS_INFO:" +echo "$SORTED_FILE_SYSTEMS_INFO" +echo "" +fi + +# ------------------------------------------------------------------------- +# Computing mount point max length +# ------------------------------------------------------------------------- +MOUNT_POINT_MAX_LENGTH=` \ + echo $SORTED_FILE_SYSTEMS_INFO | $AWK_COMMAND -v PATTERN=$PATTERN \ + ' + BEGIN { + mount_point_length_max = 15; + } + +END { + printf ("%d", mount_point_length_max); +} + +$0 ~ PATTERN { +# printf ("$6 = %s\n", $6); + + mount_point = $6; +# printf ("mount_point = %s\n", mount_point); + + mount_point_length = length (mount_point); +# printf ("mount_point_length = %d\n", mount_point_length); + + if (mount_point_length > mount_point_length_max) + mount_point_length_max = mount_point_length; +}' +` +if [ ! -z $DEBUG ]; then +echo "MOUNT_POINT_MAX_LENGTH: $MOUNT_POINT_MAX_LENGTH" +fi + +# ------------------------------------------------------------------------- +# Computing mount point data max size +# ------------------------------------------------------------------------- +MOUNT_POINT_MAX_SIZE=` \ + echo "$SORTED_FILE_SYSTEMS_INFO" | $AWK_COMMAND -v PATTERN=$PATTERN \ + ' + BEGIN { + mount_point_size_max = 0; + } + +END { + printf ("%d", mount_point_size_max); +} + +$0 ~ PATTERN { +# df -k shows k_bytes! +# printf ("$2 = %s\n", $2); + + mount_point_size = $2 * 1024; +# printf ("mount_point_size = %d\n", mount_point_size); + + if (mount_point_size > mount_point_size_max) + mount_point_size_max = mount_point_size; +}' +` +if [ ! -z $DEBUG ]; then +echo "MOUNT_POINT_MAX_SIZE: $MOUNT_POINT_MAX_SIZE" +fi + +# ------------------------------------------------------------------------- +# Let's go! +# ------------------------------------------------------------------------- +echo "$SORTED_FILE_SYSTEMS_INFO" | $AWK_COMMAND -v DEBUG=$DEBUG -v PATTERN=$PATTERN -v NARROW_MODE=$NARROW_MODE -v LEFT_COLUMN=$MOUNT_POINT_MAX_LENGTH -v MAX_SIZE=$MOUNT_POINT_MAX_SIZE -v SCALE=$SCALE -v WEB_OUTPUT=$WEB_OUTPUT \ + ' +# {printf ("$0 = %s\n", $0);} +# {printf ("$1 = %s\n", $1);} +# {printf ("PATTERN = %s\n", PATTERN);} +# {printf ("LEFT_COLUMN = %s\n", LEFT_COLUMN);} + + BEGIN { + k_bytes = 1024.0; + m_bytes = 1024.0 * k_bytes; + g_bytes = 1024.0 * m_bytes; + t_bytes = 1024.0 * g_bytes; + + if (WEB_OUTPUT) + { + all_stars = "**************************************************"; + current_date = strftime ("%d-%m-%Y @ %H:%M:%S", localtime (systime ())); + free_threshold = 10; # % + + printf ("\n"); + + printf ( \ + "\n" \ + "

%s -- STATUS OF ALCOR FILE SYSTEMS


\n", + current_date ) + + printf ("\n"); + + printf ( \ + "\n" \ + "\n" \ + "\n" \ + "\n" \ + "\n" \ + "\n" \ + "\n" ); + } + else + { + narrow_margin = " "; +# printf ("%-*s", LEFT_COLUMN + 2, "Mount point"); + if (NARROW_MODE) + printf ("\n%s", narrow_margin); + else + printf ("%-*s", LEFT_COLUMN + 2, ""); + print " Used Free Total "; + if (! NARROW_MODE) + print ""; + } + } + +END { + if (WEB_OUTPUT) + { + printf ("
Mount point%% Usato (*)" \ + " - %% Free (*)%% UsedFreeTotal
\n"); + + printf ("\n"); + } + else + { + if (NARROW_MODE) + printf ("%s", narrow_margin); + else + printf ("%-*s", LEFT_COLUMN + 2, ""); + print "|----|----|----|----|----|----|----|----|----|----|" + if (NARROW_MODE) + printf ("\n%s", narrow_margin); + else + printf ("%-*s", LEFT_COLUMN + 2, ""); + print "0 10 20 30 40 50 60 70 80 90 100"; + print ""; + } +} + +$0 ~ PATTERN { + + if (index ($0, "members") == 0 && index ($0, "Download") == 0 && index ($0, "admin") == 0) + { +# df -k shows k_bytes! + + total_size = $2 * k_bytes; + free_size = $4 * k_bytes; + percentage_occupied = substr($5, 0, 3); + mount_point = $6; + + percentage_free = int (100 - percentage_occupied); + +# reduction_factor: 2 + stars_number = int (percentage_occupied / 2); + + if (WEB_OUTPUT) + { + posGroup = index (mount_point, "scratch"); + if (posGroup == 0) + posGroup = index (mount_point, "u1"); + if (posGroup == 0) + posGroup = index (mount_point, "u2"); + if (posGroup == 0) + posGroup = index (mount_point, "u4"); + if (posGroup == 0) + posGroup = index (mount_point, "u5"); + + printf ("\n"); + + if (posGroup > 0 || percentage_free < free_threshold) + { + if (percentage_free < free_threshold) + { + class = "titlered"; + if (posGroup == 0) + posGroup = 1; # to display the whole mount_point in this color anyway + } + else if ((index (mount_point, "scratch") != 0) || (index (mount_point, "u1") != 0) || (index (mount_point, "u2") != 0)) + { + class = "titleorange"; + posGroup = 1; # to display the whole mount_point in this color + } + else if ((index (mount_point, "u4") != 0) || (index (mount_point, "u5") != 0)) + { + class = "titlebrown"; + posGroup = 1; # to display the whole mount_point in this color + } + + printf ( \ + "%s%s\n", + substr (mount_point, 1, posGroup - 1), + class, + substr (mount_point, posGroup) ); + } + else + { + printf ("%s\n", mount_point); + } + + printf ( \ + "%s%s\n", + substr (all_stars, 1, stars_number), substr (all_stars, stars_number + 1, 49) ); + + if (percentage_free < free_threshold) + { + color_beginning = ""; + color_end = "" + } + else + { + color_beginning = ""; + color_end = "" + } + + if (total_size > 1 * t_bytes) + printf ( \ + "%s%3d%%%s%5.1f Tb%5.1f Tb\n", \ + color_beginning, percentage_occupied, color_end, free_size / t_bytes, total_size / t_bytes \ + ); + else if (total_size > 1 * g_bytes) + printf ( \ + "%s%3d%%%s%5.1f Gb%5.1f Gb\n", \ + color_beginning, percentage_occupied, color_end, free_size / g_bytes, total_size / g_bytes \ + ); + else if (total_size > 1 * m_byptes) + printf ( \ + "%s%3d%%%s%5.1f Mb%5.1f Mb\n", \ + color_beginning, percentage_occupied, color_end, free_size / m_bytes, total_size / m_bytes \ + ); + else + printf ( \ + "%s%3d%%%s%5.1f Kb%5.1f Kb\n", \ + color_beginning, percentage_occupied, color_end, free_size / k_bytes, total_size / k_bytes \ + ); + + printf ("\n"); + } + + else + { +# printf ("percentage_occupied = %d\n", percentage_occupied); +# printf ("percentage_free = %d\n", percentage_free); + + printf ("%-*s", LEFT_COLUMN + 2, mount_point); + if (NARROW_MODE) + printf ("\n%s", narrow_margin); + +# printf ("stars_number = %d\n", stars_number); + + printf ("|"); + for (i = 1; i <= stars_number; i++) + { + printf ("%s", "*"); + } + for (i = stars_number + 1; i <= 49; i++) + { + printf ("%s", "-"); + } + + + if (total_size > 1 * t_bytes) + printf ( \ + "| %3d%% %5.1f %5.1f Tb\n", \ + percentage_occupied, free_size / t_bytes, total_size / t_bytes \ + ); + else if (total_size > 1 * g_bytes) + printf ( \ + "| %3d%% %5.1f %5.1f Gb\n", \ + percentage_occupied, free_size / g_bytes, total_size / g_bytes \ + ); + else if (total_size > 1 * m_byptes) + printf ( \ + "| %3d%% %5.1f %5.1f Mb\n", \ + percentage_occupied, free_size / m_bytes, total_size / m_bytes \ + ); + else + printf ( \ + "| %3d%% %5.1f %5.1f Kb\n", \ + percentage_occupied, free_size / k_bytes, total_size / k_bytes \ + ); + } + } # if +}' diff --git a/awesome/.config/awesome/lain/scripts/mpdcover b/awesome/.config/awesome/lain/scripts/mpdcover new file mode 100755 index 0000000..f6cf0d6 --- /dev/null +++ b/awesome/.config/awesome/lain/scripts/mpdcover @@ -0,0 +1,68 @@ +#!/bin/bash +# +# A simple cover fetcher script for current playing song on mpd. +# +# Author : Wolfgang Mueller +# +# Adapted for Lain internal use. +# https://github.com/copycat-killer/lain +# +# You can use, edit and redistribute this script in any way you like. +# +# Dependencies: imagemagick. +# +# Usage: mpdcover + +# Configuration------------------------------------------------------- + +# Music directory +MUSIC_DIR=$1 + +# Song file +file=$2 + +# Regex expression used for image search +IMG_REG="(Front|front|Cover|cover|Art|art|Folder|folder)\.(jpg|jpeg|png|gif)$" + +# Path of temporary resized cover +TEMP_PATH="/tmp/mpdcover.png" + +# Resize cover +COVER_RESIZE="$3x$3" + +if [ $COVER_RESIZE == "x" ]; then + COVER_RESIZE="100x100" +fi + +# The default cover to use (optional) +DEFAULT_ART=$4 + +# Thumbnail background (transparent) +COVER_BACKGROUND="none" + +#-------------------------------------------------------------------- + +# check if anything is playing at all +[[ -z $file ]] && exit 1 + +# Art directory +art="$MUSIC_DIR/${file%/*}" + +# find every file that matches IMG_REG set the first matching file to be the +# cover. +cover="$(find "$art/" -maxdepth 1 -type f | egrep -i -m1 "$IMG_REG")" + +# when no cover is found, use DEFAULT_ART as cover +cover="${cover:=$DEFAULT_ART}" + +# check if art is available +if [[ -n $cover ]]; then + if [[ -n $COVER_RESIZE ]]; then + convert "$cover" -thumbnail $COVER_RESIZE -gravity "center" -background "$COVER_BACKGROUND" -extent $COVER_RESIZE "$TEMP_PATH" + cover="$TEMP_PATH" + fi +else + rm $TEMP_PATH +fi + +exit 0 diff --git a/awesome/.config/awesome/lain/util/init.lua b/awesome/.config/awesome/lain/util/init.lua new file mode 100644 index 0000000..2f28b9a --- /dev/null +++ b/awesome/.config/awesome/lain/util/init.lua @@ -0,0 +1,213 @@ + +--[[ + + Lain + Layouts, widgets and utilities for Awesome WM + + Utilities section + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local awful = require("awful") +local beautiful = require("beautiful") +local math = { sqrt = math.sqrt } +local mouse = mouse +local pairs = pairs +local string = { gsub = string.gsub } +local client = client +local screen = screen +local tonumber = tonumber + +local wrequire = require("lain.helpers").wrequire +local setmetatable = setmetatable + +-- Lain utilities submodule +-- lain.util +local util = { _NAME = "lain.util" } + +-- Like awful.menu.clients, but only show clients of currently selected +-- tags. +function util.menu_clients_current_tags(menu, args) + -- List of currently selected tags. + local cls_tags = awful.tag.selectedlist(mouse.screen) + + -- Final list of menu items. + local cls_t = {} + + if cls_tags == nil then return nil end + + -- For each selected tag get all clients of that tag and add them to + -- the menu. A click on a menu item will raise that client. + for i = 1,#cls_tags + do + local t = cls_tags[i] + local cls = t:clients() + + for k, c in pairs(cls) + do + cls_t[#cls_t + 1] = { awful.util.escape(c.name) or "", + function () + c.minimized = false + client.focus = c + c:raise() + end, + c.icon } + end + end + + -- No clients? Then quit. + if #cls_t <= 0 then return nil end + + -- menu may contain some predefined values, otherwise start with a + -- fresh menu. + if not menu then menu = {} end + + -- Set the list of items and show the menu. + menu.items = cls_t + local m = awful.menu.new(menu) + m:show(args) + return m +end + +-- Magnify a client: Set it to "float" and resize it. +function util.magnify_client(c) + if not awful.client.floating.get(c) then + awful.client.floating.set(c, true) + + local mg = screen[mouse.screen].geometry + local tag = awful.tag.selected(mouse.screen) + local mwfact = awful.tag.getmwfact(tag) + local g = {} + g.width = math.sqrt(mwfact) * mg.width + g.height = math.sqrt(mwfact) * mg.height + g.x = mg.x + (mg.width - g.width) / 2 + g.y = mg.y + (mg.height - g.height) / 2 + c:geometry(g) + else + awful.client.floating.set(c, false) + end +end + +-- Read the nice value of pid from /proc. +local function get_nice_value(pid) + local n = first_line('/proc/' .. pid .. '/stat') + if n == nil + then + -- This should not happen. But I don't want to crash, either. + return 0 + end + + -- Remove pid and tcomm. This is necessary because tcomm may contain + -- nasty stuff such as whitespace or additional parentheses... + n = string.gsub(n, '.*%) ', '') + + -- Field number 17 now is the nice value. + fields = split(n, ' ') + return tonumber(fields[17]) +end + +-- To be used as a signal handler for "focus" +-- This requires beautiful.border_focus{,_highprio,_lowprio}. +function util.niceborder_focus(c) + local n = get_nice_value(c.pid) + if n == 0 + then + c.border_color = beautiful.border_focus + elseif n < 0 + then + c.border_color = beautiful.border_focus_highprio + else + c.border_color = beautiful.border_focus_lowprio + end +end + +-- To be used as a signal handler for "unfocus" +-- This requires beautiful.border_normal{,_highprio,_lowprio}. +function util.niceborder_unfocus(c) + local n = get_nice_value(c.pid) + if n == 0 + then + c.border_color = beautiful.border_normal + elseif n < 0 + then + c.border_color = beautiful.border_normal_highprio + else + c.border_color = beautiful.border_normal_lowprio + end +end + +-- Non-empty tag browsing +-- direction in {-1, 1} <-> {previous, next} non-empty tag +function util.tag_view_nonempty(direction, sc) + local s = sc or mouse.screen or 1 + local scr = screen[s] + + for i = 1, #awful.tag.gettags(s) do + awful.tag.viewidx(direction,s) + if #awful.client.visible(s) > 0 then + return + end + end +end + +-- {{{ Dynamic tagging +-- +-- Add a new tag +function util.add_tag(mypromptbox) + awful.prompt.run({prompt="New tag name: "}, mypromptbox[mouse.screen].widget, + function(text) + if text:len() > 0 then + props = { selected = true } + tag = awful.tag.add(new_name, props) + tag.name = text + tag:emit_signal("property::name") + end + end) +end + +-- Rename current tag +-- @author: minism +function util.rename_tag(mypromptbox) + local tag = awful.tag.selected(mouse.screen) + awful.prompt.run({prompt="Rename tag: "}, mypromptbox[mouse.screen].widget, + function(text) + if text:len() > 0 then + tag.name = text + tag:emit_signal("property::name") + end + end) +end + +-- Move current tag +-- pos in {-1, 1} <-> {previous, next} tag position +function util.move_tag(pos) + local tag = awful.tag.selected(mouse.screen) + local idx = awful.tag.getidx(tag) + if tonumber(pos) <= -1 then + awful.tag.move(idx - 1, tag) + else + awful.tag.move(idx + 1, tag) + end +end + +-- Remove current tag (if empty) +-- Any rule set on the tag shall be broken +function util.remove_tag() + local tag = awful.tag.selected(mouse.screen) + local prevtag = awful.tag.gettags(mouse.screen)[awful.tag.getidx(tag) - 1] + awful.tag.delete(tag, prevtag) +end +-- +-- }}} + +-- On the fly useless gaps change +function util.useless_gaps_resize(thatmuch) + beautiful.useless_gap_width = tonumber(beautiful.useless_gap_width) + thatmuch + awful.layout.arrange(mouse.screen) +end + +return setmetatable(util, { __index = wrequire }) diff --git a/awesome/.config/awesome/lain/util/markup.lua b/awesome/.config/awesome/lain/util/markup.lua new file mode 100644 index 0000000..d367bca --- /dev/null +++ b/awesome/.config/awesome/lain/util/markup.lua @@ -0,0 +1,69 @@ + +--[[ + + Licensed under MIT License + * (c) 2013, Luke Bonham + * (c) 2009, Uli Schlachter + * (c) 2009, Majic + +--]] + +local beautiful = require("beautiful") +local tostring = tostring +local setmetatable = setmetatable + +-- Lain markup util submodule +-- lain.util.markup +local markup = {} + +local fg = {} +local bg = {} + +-- Convenience tags. +function markup.bold(text) return '' .. tostring(text) .. '' end +function markup.italic(text) return '' .. tostring(text) .. '' end +function markup.strike(text) return '' .. tostring(text) .. '' end +function markup.underline(text) return '' .. tostring(text) .. '' end +function markup.monospace(text) return '' .. tostring(text) .. '' end +function markup.big(text) return '' .. tostring(text) .. '' end +function markup.small(text) return '' .. tostring(text) .. '' end + +-- Set the font. +function markup.font(font, text) + return '' .. tostring(text) ..'' +end + +-- Set the foreground. +function fg.color(color, text) + return '' .. tostring(text) .. '' +end + +-- Set the background. +function bg.color(color, text) + return '' .. tostring(text) .. '' +end + +-- Context: focus +function fg.focus(text) return fg.color(beautiful.fg_focus, text) end +function bg.focus(text) return bg.color(beautiful.bg_focus, text) end +function markup.focus(text) return bg.focus(fg.focus(text)) end + +-- Context: normal +function fg.normal(text) return fg.color(beautiful.fg_normal, text) end +function bg.normal(text) return bg.color(beautiful.bg_normal, text) end +function markup.normal(text) return bg.normal(fg.normal(text)) end + +-- Context: urgent +function fg.urgent(text) return fg.color(beautiful.fg_urgent, text) end +function bg.urgent(text) return bg.color(beautiful.bg_urgent, text) end +function markup.urgent(text) return bg.urgent(fg.urgent(text)) end + +markup.fg = fg +markup.bg = bg + +-- link markup.{fg,bg}(...) calls to markup.{fg,bg}.color(...) +setmetatable(markup.fg, { __call = function(_, ...) return markup.fg.color(...) end }) +setmetatable(markup.bg, { __call = function(_, ...) return markup.bg.color(...) end }) + +-- link markup(...) calls to markup.fg.color(...) +return setmetatable(markup, { __call = function(_, ...) return markup.fg.color(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/alsa.lua b/awesome/.config/awesome/lain/widgets/alsa.lua new file mode 100644 index 0000000..28bb05c --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/alsa.lua @@ -0,0 +1,65 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010, Adrian C. + +--]] + +local newtimer = require("lain.helpers").newtimer + +local wibox = require("wibox") + +local io = { popen = io.popen } +local string = { match = string.match } + +local setmetatable = setmetatable + +-- ALSA volume +-- lain.widgets.alsa +local alsa = {} + +local function worker(args) + local args = args or {} + local timeout = args.timeout or 5 + local channel = args.channel or "Master" + local settings = args.settings or function() end + + alsa.widget = wibox.widget.textbox('') + + function alsa.update() + local f = assert(io.popen('amixer get ' .. channel)) + local mixer = f:read("*all") + f:close() + + volume_now = {} + + volume_now.level, volume_now.status = string.match(mixer, "([%d]+)%%.*%[([%l]*)") + + if volume_now.level == nil + then + volume_now.level = "0" + volume_now.status = "off" + end + + if volume_now.status == "" + then + if volume_now.level == "0" + then + volume_now.status = "off" + else + volume_now.status = "on" + end + end + + widget = alsa.widget + settings() + end + + newtimer("alsa", timeout, alsa.update) + + return setmetatable(alsa, { __index = alsa.widget }) +end + +return setmetatable(alsa, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/alsabar.lua b/awesome/.config/awesome/lain/widgets/alsabar.lua new file mode 100644 index 0000000..365ac2d --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/alsabar.lua @@ -0,0 +1,175 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2013, Rman + +--]] + +local newtimer = require("lain.helpers").newtimer + +local awful = require("awful") +local beautiful = require("beautiful") +local naughty = require("naughty") + +local io = { popen = io.popen } +local math = { modf = math.modf } +local string = { format = string.format, + match = string.match, + rep = string.rep } +local tonumber = tonumber + +local setmetatable = setmetatable + +-- ALSA volume bar +-- lain.widgets.alsabar +local alsabar = +{ + channel = "Master", + step = "5%", + + colors = + { + background = beautiful.bg_normal, + mute = "#EB8F8F", + unmute = "#A4CE8A" + }, + + terminal = terminal or "xterm", + mixer = terminal .. " -e alsamixer", + + notifications = + { + font = beautiful.font:sub(beautiful.font:find(""), beautiful.font:find(" ")), + font_size = "11", + color = beautiful.fg_normal, + bar_size = 18 + }, + + _current_level = 0, + _muted = false +} + +function alsabar.notify() + alsabar.update() + + local preset = + { + title = "", + text = "", + timeout = 4, + font = alsabar.notifications.font .. " " .. + alsabar.notifications.font_size, + fg = alsabar.notifications.color + } + + if alsabar._muted + then + preset.title = alsabar.channel .. " - Muted" + else + preset.title = alsabar.channel .. " - " .. alsabar._current_level * 100 .. "%" + end + + int = math.modf(alsabar._current_level * alsabar.notifications.bar_size) + preset.text = "[" + .. string.rep("|", int) + .. string.rep(" ", alsabar.notifications.bar_size - int) + .. "]" + + if alsabar._notify ~= nil then + alsabar._notify = naughty.notify ({ + replaces_id = alsabar._notify.id, + preset = preset + }) + else + alsabar._notify = naughty.notify ({ + preset = preset + }) + end +end + +local function worker(args) + local args = args or {} + local timeout = args.timeout or 4 + local settings = args.settings or function() end + local width = args.width or 63 + local height = args.heigth or 1 + local ticks = args.ticks or false + local ticks_size = args.ticks_size or 7 + local vertical = args.vertical or false + + alsabar.channel = args.channel or alsabar.channel + alsabar.step = args.step or alsabar.step + alsabar.colors = args.colors or alsabar.colors + alsabar.notifications = args.notifications or alsabar.notifications + + alsabar.bar = awful.widget.progressbar() + + alsabar.bar:set_background_color(alsabar.colors.background) + alsabar.bar:set_color(alsabar.colors.unmute) + alsabar.tooltip = awful.tooltip({ objects = { alsabar.bar } }) + alsabar.bar:set_width(width) + alsabar.bar:set_height(height) + alsabar.bar:set_ticks(ticks) + alsabar.bar:set_ticks_size(ticks_size) + alsabar.bar:set_vertical(vertical) + + function alsabar.update() + -- Get mixer control contents + local f = io.popen("amixer get " .. alsabar.channel) + local mixer = f:read("*all") + f:close() + + -- Capture mixer control state: [5%] ... ... [on] + local volu, mute = string.match(mixer, "([%d]+)%%.*%[([%l]*)") + + if volu == nil then + volu = 0 + mute = "off" + end + + alsabar._current_level = tonumber(volu) / 100 + alsabar.bar:set_value(alsabar._current_level) + + if not mute and tonumber(volu) == 0 or mute == "off" + then + alsabar._muted = true + alsabar.tooltip:set_text (" [Muted] ") + alsabar.bar:set_color(alsabar.colors.mute) + else + alsabar._muted = false + alsabar.tooltip:set_text(string.format(" %s:%s ", alsabar.channel, volu)) + alsabar.bar:set_color(alsabar.colors.unmute) + end + + volume_now = {} + volume_now.level = tonumber(volu) + volume_now.status = mute + settings() + end + + newtimer("alsabar", timeout, alsabar.update) + + alsabar.bar:buttons (awful.util.table.join ( + awful.button ({}, 1, function() + awful.util.spawn(alsabar.mixer) + end), + awful.button ({}, 3, function() + awful.util.spawn(string.format("amixer set %s toggle", alsabar.channel)) + alsabar.update() + end), + awful.button ({}, 4, function() + awful.util.spawn(string.format("amixer set %s %s+", alsabar.channel, alsabar.step)) + alsabar.update() + end), + awful.button ({}, 5, function() + awful.util.spawn(string.format("amixer set %s %s-", alsabar.channel, alsabar.step)) + alsabar.update() + end) + )) + + return alsabar +end + +return setmetatable(alsabar, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/base.lua b/awesome/.config/awesome/lain/widgets/base.lua new file mode 100644 index 0000000..3d4ce9e --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/base.lua @@ -0,0 +1,40 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2014, Luke Bonham + +--]] + +local newtimer = require("lain.helpers").newtimer +local wibox = require("wibox") + +local io = io +local setmetatable = setmetatable + +-- Basic template for custom widgets +-- lain.widgets.base +local base = {} + +local function worker(args) + local args = args or {} + local timeout = args.timeout or 5 + local cmd = args.cmd or "" + local settings = args.settings or function() end + + base.widget = wibox.widget.textbox('') + + function base.update() + local f = assert(io.popen(cmd)) + output = f:read("*all") + f:close() + widget = base.widget + settings() + end + + newtimer(cmd, timeout, base.update) + + return setmetatable(base, { __index = base.widget }) +end + +return setmetatable(base, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/bat.lua b/awesome/.config/awesome/lain/widgets/bat.lua new file mode 100644 index 0000000..485fd57 --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/bat.lua @@ -0,0 +1,149 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local newtimer = require("lain.helpers").newtimer +local first_line = require("lain.helpers").first_line + +local naughty = require("naughty") +local wibox = require("wibox") + +local math = { floor = math.floor } +local string = { format = string.format } +local tonumber = tonumber + +local setmetatable = setmetatable + +-- Battery infos +-- lain.widgets.bat +local bat = {} + +local function worker(args) + local args = args or {} + local timeout = args.timeout or 30 + local battery = args.battery or "BAT0" + local notify = args.notify or "on" + local settings = args.settings or function() end + + bat.widget = wibox.widget.textbox('') + + bat_notification_low_preset = { + title = "Battery low", + text = "Plug the cable!", + timeout = 15, + fg = "#202020", + bg = "#CDCDCD" + } + + bat_notification_critical_preset = { + title = "Battery exhausted", + text = "Shutdown imminent", + timeout = 15, + fg = "#000000", + bg = "#FFFFFF" + } + + function update() + bat_now = { + status = "Not present", + perc = "N/A", + time = "N/A", + watt = "N/A" + } + + local bstr = "/sys/class/power_supply/" .. battery + + local present = first_line(bstr .. "/present") + + if present == "1" + then + local rate = first_line(bstr .. "/power_now") or + first_line(bstr .. "/current_now") + + local ratev = first_line(bstr .. "/voltage_now") + + local rem = first_line(bstr .. "/energy_now") or + first_line(bstr .. "/charge_now") + + local tot = first_line(bstr .. "/energy_full") or + first_line(bstr .. "/charge_full") + + bat_now.status = first_line(bstr .. "/status") or "N/A" + + rate = tonumber(rate) or 1 + ratev = tonumber(ratev) + rem = tonumber(rem) + tot = tonumber(tot) + + local time_rat = 0 + if bat_now.status == "Charging" + then + time_rat = (tot - rem) / rate + elseif bat_now.status == "Discharging" + then + time_rat = rem / rate + end + + local hrs = math.floor(time_rat) + if hrs < 0 then hrs = 0 elseif hrs > 23 then hrs = 23 end + + local min = math.floor((time_rat - hrs) * 60) + if min < 0 then min = 0 elseif min > 59 then min = 59 end + + bat_now.time = string.format("%02d:%02d", hrs, min) + + bat_now.perc = first_line(bstr .. "/capacity") + + if not bat_now.perc then + local perc = (rem / tot) * 100 + if perc <= 100 then + bat_now.perc = string.format("%d", perc) + elseif perc > 100 then + bat_now.perc = "100" + elseif perc < 0 then + bat_now.perc = "0" + end + end + + if rate ~= nil and ratev ~= nil then + bat_now.watt = string.format("%.2fW", (rate * ratev) / 1e12) + else + bat_now.watt = "N/A" + end + + end + + widget = bat.widget + settings() + + -- notifications for low and critical states + bat_now.perc = tonumber(bat_now.perc) + if bat_now.status == "Discharging" and notify == "on" and bat_now.perc ~= nil + then + if bat_now.perc <= 5 + then + bat.id = naughty.notify({ + preset = bat_notification_critical_preset, + replaces_id = bat.id + }).id + elseif bat_now.perc <= 15 + then + bat.id = naughty.notify({ + preset = bat_notification_low_preset, + replaces_id = bat.id + }).id + end + end + end + + newtimer("bat", timeout, update) + + return bat.widget +end + +return setmetatable(bat, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/borderbox.lua b/awesome/.config/awesome/lain/widgets/borderbox.lua new file mode 100644 index 0000000..c251ea8 --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/borderbox.lua @@ -0,0 +1,61 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local wibox = require("awful.wibox") +local setmetatable = setmetatable + +-- Creates a thin wibox at a position relative to another wibox +-- lain.widgets.borderbox +local borderbox = {} + +local function worker(relbox, s, args) + local where = args.position or 'top' + local color = args.color or '#FFFFFF' + local size = args.size or 1 + local box = nil + local wiboxarg = { + position = nil, + bg = color + } + + if where == 'top' + then + wiboxarg.width = relbox.width + wiboxarg.height = size + box = wibox(wiboxarg) + box.x = relbox.x + box.y = relbox.y - size + elseif where == 'bottom' + then + wiboxarg.width = relbox.width + wiboxarg.height = size + box = wibox(wiboxarg) + box.x = relbox.x + box.y = relbox.y + relbox.height + elseif where == 'left' + then + wiboxarg.width = size + wiboxarg.height = relbox.height + box = wibox(wiboxarg) + box.x = relbox.x - size + box.y = relbox.y + elseif where == 'right' + then + wiboxarg.width = size + wiboxarg.height = relbox.height + box = wibox(wiboxarg) + box.x = relbox.x + relbox.width + box.y = relbox.y + end + + box.screen = s + return box +end + +return setmetatable(borderbox, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/calendar.lua b/awesome/.config/awesome/lain/widgets/calendar.lua new file mode 100644 index 0000000..c9e265a --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/calendar.lua @@ -0,0 +1,125 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + +--]] + +local icons_dir = require("lain.helpers").icons_dir + +local awful = require("awful") +local beautiful = require("beautiful") +local naughty = require("naughty") + +local io = io +local os = { date = os.date } +local tonumber = tonumber + +local setmetatable = setmetatable + +-- Calendar notification +-- lain.widgets.calendar +local calendar = {} +local cal_notification = nil + +function calendar:hide() + if cal_notification ~= nil then + naughty.destroy(cal_notification) + cal_notification = nil + end +end + +function calendar:show(t_out, inc_offset) + calendar:hide() + + local offs = inc_offset or 0 + local tims = t_out or 0 + local f, c_text + local today = tonumber(os.date('%d')) + local init_t = '/usr/bin/cal | sed -r -e "s/(^| )( ' + + if offs == 0 + then -- current month showing, today highlighted + if today >= 10 + then + init_t = '/usr/bin/cal | sed -r -e "s/(^| )(' + end + + calendar.offset = 0 + calendar.notify_icon = calendar.icons .. today .. ".png" + + -- bg and fg inverted to highlight today + f = io.popen( init_t .. today .. + ')($| )/\\1\\2<\\/span><\\/b>\\3/"' ) + + else -- no current month showing, no day to highlight + local month = tonumber(os.date('%m')) + local year = tonumber(os.date('%Y')) + + calendar.offset = calendar.offset + offs + month = month + calendar.offset + + if month > 12 then + month = month % 12 + year = year + 1 + if month <= 0 then + month = 12 + end + elseif month < 1 then + month = month + 12 + year = year - 1 + if month <= 0 then + month = 1 + end + end + + calendar.notify_icon = nil + + f = io.popen('/usr/bin/cal ' .. month .. ' ' .. year) + end + + c_text = "" + .. f:read() .. "\n\n" + .. f:read() .. "\n" + .. f:read("*all"):gsub("\n*$", "") + .. "" + f:close() + + cal_notification = naughty.notify({ + text = c_text, + icon = calendar.notify_icon, + position = calendar.position, + fg = calendar.fg, + bg = calendar.bg, + timeout = tims + }) +end + +function calendar:attach(widget, args) + local args = args or {} + calendar.icons = args.icons or icons_dir .. "cal/white/" + calendar.font = args.font or beautiful.font:sub(beautiful.font:find(""), + beautiful.font:find(" ")) + calendar.font_size = tonumber(args.font_size) or 11 + calendar.fg = args.fg or beautiful.fg_normal or "#FFFFFF" + calendar.bg = args.bg or beautiful.bg_normal or "#FFFFFF" + calendar.position = args.position or "top_right" + + calendar.offset = 0 + calendar.notify_icon = nil + + widget:connect_signal("mouse::enter", function () calendar:show() end) + widget:connect_signal("mouse::leave", function () calendar:hide() end) + widget:buttons(awful.util.table.join( awful.button({ }, 1, function () + calendar:show(0, -1) end), + awful.button({ }, 3, function () + calendar:show(0, 1) end) )) +end + +return setmetatable(calendar, { __call = function(_, ...) return create(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/contrib/ccurr.lua b/awesome/.config/awesome/lain/widgets/contrib/ccurr.lua new file mode 100644 index 0000000..f696a35 --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/contrib/ccurr.lua @@ -0,0 +1,82 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2014, Aaron Lebo + +--]] + +local newtimer = require("lain.helpers").newtimer + +local wibox = require("wibox") +local json = require("dkjson") + +local string = { format = string.format } +local tonumber = tonumber + +-- Crypto currencies widget +-- lain.widgets.contrib.ccurr +local ccurr = {} + +-- Currently gets +-- * BTC/USD +-- * DOGE/USD +-- using Coinbase and Cryptsy APIs. + +-- requires http://dkolf.de/src/dkjson-lua.fsl/home +-- based upon http://awesome.naquadah.org/wiki/Bitcoin_Price_Widget + +local function get(url) + local f = io.popen('curl -m 5 -s "' .. url .. '"') + if not f then + return 0 + else + local s = f:read("*all") + f:close() + return s + end +end + +local function parse(j) + local obj, pos, err = json.decode(j, 1, nil) + if err then + return nil + else + return obj + end +end + +local function worker(args) + local args = args or {} + local timeout = args.timeout or 600 + local btc_url = args.btc_url or "https://coinbase.com/api/v1/prices/buy" + local doge_url = args.doge_url or "http://pubapi.cryptsy.com/api.php?method=singlemarketdata&marketid=132" + local settings = args.settings or function() end + + ccurr.widget = wibox.widget.textbox('') + + local function update() + price_now = { + btc = "N/A", + doge = "N/A" + } + + btc = parse(get(btc_url)) + doge = parse(get(doge_url)) + + if btc and doge then + price_now.btc = tonumber(btc["subtotal"]["amount"]) + price_now.doge = tonumber(doge["return"]["markets"]["DOGE"]["lasttradeprice"]) + price_now.doge = string.format("%.4f", price_now.btc * price_now.doge) + end + + widget = ccurr.widget + settings() + end + + newtimer("ccurr", timeout, update) + + return ccurr.widget +end + +return setmetatable(ccurr, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/contrib/init.lua b/awesome/.config/awesome/lain/widgets/contrib/init.lua new file mode 100644 index 0000000..9a9fa63 --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/contrib/init.lua @@ -0,0 +1,20 @@ + +--[[ + + Lain + Layouts, widgets and utilities for Awesome WM + + Users contributed widgets section + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local wrequire = require("lain.helpers").wrequire +local setmetatable = setmetatable + +local widgets = { _NAME = "lain.widgets.contrib" } + +return setmetatable(widgets, { __index = wrequire }) diff --git a/awesome/.config/awesome/lain/widgets/contrib/task.lua b/awesome/.config/awesome/lain/widgets/contrib/task.lua new file mode 100644 index 0000000..a6c9f31 --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/contrib/task.lua @@ -0,0 +1,133 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2013, Jan Xie + +--]] + +local icons_dir = require("lain.helpers").icons_dir + +local awful = require("awful") +local beautiful = require("beautiful") +local naughty = require("naughty") + +local io = io +local string = { len = string.len } +local tonumber = tonumber + +local setmetatable = setmetatable + +-- Taskwarrior notification +-- lain.widgets.task +local task = {} + +local task_notification = nil + +function task:hide() + if task_notification ~= nil then + naughty.destroy(task_notification) + task_notification = nil + end +end + +function task:show() + task:hide() + + local f, c_text + + f = io.popen('task') + c_text = "" + .. f:read("*all"):gsub("\n*$", "") + .. "" + f:close() + + task_notification = naughty.notify({ title = "[task next]", + text = c_text, + icon = task.notify_icon, + position = task.position, + fg = task.fg, + bg = task.bg, + timeout = task.timeout }) +end + +function task:prompt_add() + awful.prompt.run({ prompt = "Add task: " }, + mypromptbox[mouse.screen].widget, + function (...) + local f = io.popen("task add " .. ...) + c_text = "\n" + .. f:read("*all") + .. "" + f:close() + + naughty.notify({ + text = c_text, + icon = task.notify_icon, + position = task.position, + fg = task.fg, + bg = task.bg, + timeout = task.timeout + }) + end, + nil, + awful.util.getdir("cache") .. "/history_task_add") +end + +function task:prompt_search() + awful.prompt.run({ prompt = "Search task: " }, + mypromptbox[mouse.screen].widget, + function (...) + local f = io.popen("task " .. ...) + c_text = f:read("*all"):gsub(" \n*$", "") + f:close() + + if string.len(c_text) == 0 + then + c_text = "No results found." + else + c_text = "" + .. c_text + .. "" + end + + naughty.notify({ + title = "[task next " .. ... .. "]", + text = c_text, + icon = task.notify_icon, + position = task.position, + fg = task.fg, + bg = task.bg, + timeout = task.timeout + }) + end, + nil, + awful.util.getdir("cache") .. "/history_task") +end + +function task:attach(widget, args) + local args = args or {} + + task.font_size = tonumber(args.font_size) or 12 + task.font = beautiful.font:sub(beautiful.font:find(""), + beautiful.font:find(" ")) + task.fg = args.fg or beautiful.fg_normal or "#FFFFFF" + task.bg = args.bg or beautiful.bg_normal or "#FFFFFF" + task.position = args.position or "top_right" + task.timeout = args.timeout or 7 + + task.notify_icon = icons_dir .. "/taskwarrior/task.png" + task.notify_icon_small = icons_dir .. "/taskwarrior/tasksmall.png" + + widget:connect_signal("mouse::enter", function () task:show() end) + widget:connect_signal("mouse::leave", function () task:hide() end) +end + +return setmetatable(task, { __call = function(_, ...) return create(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/contrib/tpbat/init.lua b/awesome/.config/awesome/lain/widgets/contrib/tpbat/init.lua new file mode 100644 index 0000000..72d6453 --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/contrib/tpbat/init.lua @@ -0,0 +1,166 @@ + +--[[ + + tpbat.lua + Battery status widget for ThinkPad laptops that use SMAPI + lain.widgets.contrib.tpbat + + More on tp_smapi: http://www.thinkwiki.org/wiki/Tp_smapi + + Licensed under GNU General Public License v2 + * (c) 2013, Conor Heine + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local debug = { getinfo = debug.getinfo } +local newtimer = require("lain.helpers").newtimer +local first_line = require("lain.helpers").first_line +local beautiful = require("beautiful") +local naughty = require("naughty") +local wibox = require("wibox") + +local string = { format = string.format } +local math = { floor = math.floor } +local tostring = tostring +local setmetatable = setmetatable + +package.path = debug.getinfo(1,"S").source:match[[^@?(.*[\/])[^\/]-$]] .. "?.lua;" .. package.path +local smapi = require("smapi") + +-- ThinkPad SMAPI-enabled battery info widget +-- lain.widgets.contrib.tpbat +local tpbat = { } +local tpbat_notification = nil + +function tpbat:hide() + if tpbat_notification ~= nil + then + naughty.destroy(tpbat_notification) + tpbat_notification = nil + end +end + +function tpbat:show(t_out) + tpbat:hide() + + local bat = self.bat + local t_out = t_out or 0 + + if bat == nil or not bat:installed() then return end + + local mfgr = bat:get('manufacturer') or "no_mfgr" + local model = bat:get('model') or "no_model" + local chem = bat:get('chemistry') or "no_chem" + local status = bat:get('state') or "nil" + local time = bat:remaining_time() + local msg = "\t" + + if status ~= "idle" and status ~= "nil" + then + if time == "N/A" + then + msg = "...Calculating time remaining..." + else + msg = time .. (status == "charging" and " until charged" or " remaining") + end + else + msg = "On AC Power" + end + + local str = string.format("%s : %s %s (%s)\n", bat.name, mfgr, model, chem) + .. string.format("\n%s \t\t\t %s", status:upper(), msg) + + tpbat_notification = naughty.notify({ + preset = { fg = beautiful.fg_normal }, + text = str, + timeout = t_out + }) +end + +function tpbat.register(args) + local args = args or {} + local timeout = args.timeout or 30 + local battery = args.battery or "BAT0" + local settings = args.settings or function() end + + tpbat.bat = smapi:battery(battery) -- Create a new battery + local bat = tpbat.bat + + tpbat.widget = wibox.widget.textbox('') + + bat_notification_low_preset = { + title = "Battery low", + text = "Plug the cable!", + timeout = 15, + fg = "#202020", + bg = "#CDCDCD" + } + + bat_notification_critical_preset = { + title = "Battery exhausted", + text = "Shutdown imminent", + timeout = 15, + fg = "#000000", + bg = "#FFFFFF" + } + + if bat:get('state') == nil + then + local n = naughty.notify({ + preset = bat_notification_low_preset, + title = "SMAPI Battery Warning: Unable to read battery state!", + text = "This widget is intended for ThinkPads. Is tp_smapi installed? Check your configs & paths." + }) + end + + function update() + bat_now = { + status = "Not present", + perc = "N/A", + time = "N/A", + watt = "N/A" + } + + if bat:installed() + then + bat_now.status = bat:status() or "N/A" + bat_now.perc = bat:percent() + bat_now.time = bat:remaining_time() + -- bat_now.watt = string.format("%.2fW", (VOLTS * AMPS) / 1e12) + + -- notifications for low and critical states (when discharging) + if bat_now.status == "discharging" + then + if bat_now.perc <= 5 + then + tpbat.id = naughty.notify({ + preset = bat_notification_critical_preset, + replaces_id = tpbat.id + }).id + elseif bat_now.perc <= 15 + then + tpbat.id = naughty.notify({ + preset = bat_notification_low_preset, + replaces_id = tpbat.id + }).id + end + end + + bat_now.perc = tostring(bat_now.perc) + end + + widget = tpbat.widget + settings() + end + + newtimer("tpbat", timeout, update) + + widget:connect_signal('mouse::enter', function () tpbat:show() end) + widget:connect_signal('mouse::leave', function () tpbat:hide() end) + + return tpbat.widget +end + +return setmetatable(tpbat, { __call = function(_, ...) return tpbat.register(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/contrib/tpbat/smapi.lua b/awesome/.config/awesome/lain/widgets/contrib/tpbat/smapi.lua new file mode 100644 index 0000000..862d4cd --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/contrib/tpbat/smapi.lua @@ -0,0 +1,102 @@ + +--[[ + + smapi.lua + Interface with thinkpad battery information + + Licensed under GNU General Public License v2 + * (c) 2013, Conor Heine + +--]] + +local first_line = require("lain.helpers").first_line + +local string = { format = string.format } +local tonumber = tonumber +local setmetatable = setmetatable + +local smapi = {} + +local apipath = "/sys/devices/platform/smapi" + +-- Most are readable values, but some can be written to (not implemented, yet?) +local readable = { + barcoding = true, + charging_max_current = true, + charging_max_voltage = true, + chemistry = true, + current_avg = true, + current_now = true, + cycle_count = true, + design_capacity = true, + design_voltage = true, + dump = true, + first_use_date = true, + force_discharge = false, + group0_voltage = true, + group1_voltage = true, + group2_voltage = true, + group3_voltage = true, + inhibit_charge_minutes = false, + installed = true, + last_full_capacity = true, + manufacture_date = true, + manufacturer = true, + model = true, + power_avg = true, + power_now = true, + remaining_capacity = true, + remaining_charging_time = true, + remaining_percent = true, + remaining_percent_error = true, + remaining_running_time = true, + remaining_running_time_now = true, + serial = true, + start_charge_thresh = false, + state = true, + stop_charge_thresh = false, + temperature = true, + voltage = true, +} + +function smapi:battery(name) + local bat = {} + + bat.name = name + bat.path = apipath .. "/" .. name + + function bat:get(item) + return self.path ~= nil and readable[item] and first_line(self.path .. "/" .. item) or nil + end + + function bat:installed() + return self:get("installed") == "1" + end + + function bat:status() + return self:get('state') + end + + -- Remaining time can either be time until battery dies or time until charging completes + function bat:remaining_time() + local time_val = bat_now.status == 'discharging' and 'remaining_running_time' or 'remaining_charging_time' + local mins_left = self:get(time_val) + + if mins_left:find("^%d+") == nil + then + return "N/A" + end + + local hrs = mins_left / 60 + local min = mins_left % 60 + return string.format("%02d:%02d", hrs, min) + end + + function bat:percent() + return tonumber(self:get("remaining_percent")) + end + + return setmetatable(bat, {__metatable = false, __newindex = false}) +end + +return smapi diff --git a/awesome/.config/awesome/lain/widgets/cpu.lua b/awesome/.config/awesome/lain/widgets/cpu.lua new file mode 100644 index 0000000..0b21edc --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/cpu.lua @@ -0,0 +1,77 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local first_line = require("lain.helpers").first_line +local newtimer = require("lain.helpers").newtimer + +local wibox = require("wibox") + +local math = { ceil = math.ceil } +local string = { format = string.format, + gmatch = string.gmatch } +local tostring = tostring + +local setmetatable = setmetatable + +-- CPU usage +-- lain.widgets.cpu +local cpu = { + last_total = 0, + last_active = 0 +} + +local function worker(args) + local args = args or {} + local timeout = args.timeout or 5 + local settings = args.settings or function() end + + cpu.widget = wibox.widget.textbox('') + + function update() + -- Read the amount of time the CPUs have spent performing + -- different kinds of work. Read the first line of /proc/stat + -- which is the sum of all CPUs. + local times = first_line("/proc/stat") + local at = 1 + local idle = 0 + local total = 0 + for field in string.gmatch(times, "[%s]+([^%s]+)") + do + -- 3 = idle, 4 = ioWait. Essentially, the CPUs have done + -- nothing during these times. + if at == 3 or at == 4 + then + idle = idle + field + end + total = total + field + at = at + 1 + end + local active = total - idle + + -- Read current data and calculate relative values. + local dactive = active - cpu.last_active + local dtotal = total - cpu.last_total + + cpu_now = {} + cpu_now.usage = tostring(math.ceil((dactive / dtotal) * 100)) + + widget = cpu.widget + settings() + + -- Save current data for the next run. + cpu.last_active = active + cpu.last_total = total + end + + newtimer("cpu", timeout, update) + + return cpu.widget +end + +return setmetatable(cpu, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/fs.lua b/awesome/.config/awesome/lain/widgets/fs.lua new file mode 100644 index 0000000..7406e05 --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/fs.lua @@ -0,0 +1,120 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010, Adrian C. + * (c) 2009, Lucas de Vries + +--]] + +local helpers = require("lain.helpers") + +local beautiful = require("beautiful") +local wibox = require("wibox") +local naughty = require("naughty") + +local io = io +local pairs = pairs +local string = { match = string.match, + format = string.format } +local tonumber = tonumber + +local setmetatable = setmetatable + +-- File system disk space usage +-- lain.widgets.fs +local fs = {} + +local notification = nil +fs_notification_preset = { fg = beautiful.fg_normal } + +function fs:hide() + if notification ~= nil then + naughty.destroy(notification) + notification = nil + end +end + +function fs:show(t_out) + fs:hide() + + local f = io.popen(helpers.scripts_dir .. "dfs") + ws = f:read("*all"):gsub("\n*$", "") + f:close() + + notification = naughty.notify({ + preset = fs_notification_preset, + text = ws, + timeout = t_out + }) +end + +-- Units definitions +local unit = { ["mb"] = 1024, ["gb"] = 1024^2 } + +local function worker(args) + local args = args or {} + local timeout = args.timeout or 600 + local partition = args.partition or "/" + local settings = args.settings or function() end + + fs.widget = wibox.widget.textbox('') + + helpers.set_map("fs", false) + + function update() + fs_info = {} + fs_now = {} + + local f = io.popen("LC_ALL=C df -kP") + + for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount) + local s = string.match(line, "^.-[%s]([%d]+)") + local u,a,p = string.match(line, "([%d]+)[%D]+([%d]+)[%D]+([%d]+)%%") + local m = string.match(line, "%%[%s]([%p%w]+)") + + if u and m then -- Handle 1st line and broken regexp + fs_info[m .. " size_mb"] = string.format("%.1f", tonumber(s) / unit["mb"]) + fs_info[m .. " size_gb"] = string.format("%.1f", tonumber(s) / unit["gb"]) + fs_info[m .. " used_p"] = tonumber(p) + fs_info[m .. " avail_p"] = 100 - tonumber(p) + end + end + + f:close() + + -- chosen partition easy stuff + -- you can however check whatever partition else + fs_now.used = tonumber(fs_info[partition .. " used_p"]) or 0 + fs_now.available = tonumber(fs_info[partition .. " avail_p"]) or 0 + fs_now.size_mb = tonumber(fs_info[partition .. " size_mb"]) or 0 + fs_now.size_gb = tonumber(fs_info[partition .. " size_gb"]) or 0 + + widget = fs.widget + settings() + + if fs_now.used >= 99 and not helpers.get_map("fs") + then + naughty.notify({ + title = "warning", + text = partition .. " ran out!\nmake some room", + timeout = 8, + fg = "#000000", + bg = "#FFFFFF" + }) + helpers.set_map("fs", true) + else + helpers.set_map("fs", false) + end + end + + helpers.newtimer(partition, timeout, update) + + widget:connect_signal('mouse::enter', function () fs:show(0) end) + widget:connect_signal('mouse::leave', function () fs:hide() end) + + return setmetatable(fs, { __index = fs.widget }) +end + +return setmetatable(fs, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/imap.lua b/awesome/.config/awesome/lain/widgets/imap.lua new file mode 100644 index 0000000..39518bd --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/imap.lua @@ -0,0 +1,87 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + +--]] + +local helpers = require("lain.helpers") + +local naughty = require("naughty") +local wibox = require("wibox") + +local io = { popen = io.popen } +local string = { format = string.format, + gsub = string.gsub } +local tonumber = tonumber + +local setmetatable = setmetatable + +-- Mail IMAP check +-- lain.widgets.imap +local imap = {} + +local function worker(args) + local args = args or {} + + local server = args.server + local mail = args.mail + local password = args.password + + local port = args.port or 993 + local timeout = args.timeout or 60 + local is_plain = args.is_plain or false + local settings = args.settings or function() end + + local head_command = "curl --connect-timeout 1 -fsm 3" + local request = "-X 'SEARCH (UNSEEN)'" + + helpers.set_map(mail, 0) + + if not is_plain + then + local f = io.popen(password) + password = f:read("*all"):gsub("\n", "") + f:close() + end + + imap.widget = wibox.widget.textbox('') + + function update() + mail_notification_preset = { + icon = helpers.icons_dir .. "mail.png", + position = "top_left" + } + + curl = string.format("%s --url imaps://%s:%s/INBOX -u %s:%s %s -k", + head_command, server, port, mail, password, request) + + f = io.popen(curl) + ws = f:read("*all") + f:close() + + _, mailcount = string.gsub(ws, "%d+", "") + _ = nil + + widget = imap.widget + settings() + + if mailcount > helpers.get_map(mail) and mailcount >= 1 + then + if mailcount == 1 then + nt = mail .. " has one new message" + else + nt = mail .. " has " .. mailcount .. " new messages" + end + naughty.notify({ preset = mail_notification_preset, text = nt }) + end + + helpers.set_map(mail, mailcount) + end + + helpers.newtimer(mail, timeout, update, true) + return imap.widget +end + +return setmetatable(imap, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/init.lua b/awesome/.config/awesome/lain/widgets/init.lua new file mode 100644 index 0000000..0e863ba --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/init.lua @@ -0,0 +1,20 @@ + +--[[ + + Lain + Layouts, widgets and utilities for Awesome WM + + Widgets section + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local wrequire = require("lain.helpers").wrequire +local setmetatable = setmetatable + +local widgets = { _NAME = "lain.widgets" } + +return setmetatable(widgets, { __index = wrequire }) diff --git a/awesome/.config/awesome/lain/widgets/maildir.lua b/awesome/.config/awesome/lain/widgets/maildir.lua new file mode 100644 index 0000000..d460881 --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/maildir.lua @@ -0,0 +1,95 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local newtimer = require("lain.helpers").newtimer + +local wibox = require("wibox") + +local io = io +local os = { getenv = os.getenv } +local pairs = pairs +local string = { len = string.len, + match = string.match } +local table = { sort = table.sort } + +local setmetatable = setmetatable + +-- Maildir check +-- lain.widgets.maildir +local maildir = {} + +local function worker(args) + local args = args or {} + local timeout = args.timeout or 60 + local mailpath = args.mailpath or os.getenv("HOME") .. "/Mail" + local ignore_boxes = args.ignore_boxes or {} + local settings = args.settings or function() end + + maildir.widget = wibox.widget.textbox('') + + function update() + -- Find pathes to mailboxes. + local p = io.popen("find " .. mailpath .. + " -mindepth 1 -maxdepth 1 -type d" .. + " -not -name .git") + local boxes = {} + repeat + line = p:read("*l") + if line ~= nil + then + -- Find all files in the "new" subdirectory. For each + -- file, print a single character (no newline). Don't + -- match files that begin with a dot. + -- Afterwards the length of this string is the number of + -- new mails in that box. + local np = io.popen("find " .. line .. + "/new -mindepth 1 -type f " .. + "-not -name '.*' -printf a") + local mailstring = np:read("*all") + + -- Strip off leading mailpath. + local box = string.match(line, mailpath .. "/*([^/]+)") + local nummails = string.len(mailstring) + if nummails > 0 + then + boxes[box] = nummails + end + end + until line == nil + + table.sort(boxes) + + newmail = "no mail" + + local count = 0 + for box, number in pairs(boxes) + do + count = count + 1 + -- Add this box only if it's not to be ignored. + if not util.element_in_table(box, ignore_boxes) + then + if newmail == "" + then + newmail = box .. "(" .. number .. ")" + else + newmail = newmail .. ", " .. + box .. "(" .. number .. ")" + end + end + end + + widget = maildir.widget + settings() + end + + newtimer(mailpath, timeout, update, true) + return maildir.widget +end + +return setmetatable(maildir, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/mem.lua b/awesome/.config/awesome/lain/widgets/mem.lua new file mode 100644 index 0000000..986fa76 --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/mem.lua @@ -0,0 +1,61 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local newtimer = require("lain.helpers").newtimer + +local wibox = require("wibox") + +local io = { lines = io.lines } +local math = { floor = math.floor } +local string = { format = string.format, + gmatch = string.gmatch, + len = string.len } + +local setmetatable = setmetatable + +-- Memory usage (ignoring caches) +-- lain.widgets.mem +local mem = {} + +local function worker(args) + local args = args or {} + local timeout = args.timeout or 3 + local settings = args.settings or function() end + + mem.widget = wibox.widget.textbox('') + + function update() + mem_now = {} + for line in io.lines("/proc/meminfo") + do + for k, v in string.gmatch(line, "([%a]+):[%s]+([%d]+).+") + do + if k == "MemTotal" then mem_now.total = math.floor(v / 1024) + elseif k == "MemFree" then mem_now.free = math.floor(v / 1024) + elseif k == "Buffers" then mem_now.buf = math.floor(v / 1024) + elseif k == "Cached" then mem_now.cache = math.floor(v / 1024) + elseif k == "SwapTotal" then mem_now.swap = math.floor(v / 1024) + elseif k == "SwapFree" then mem_now.swapf = math.floor(v / 1024) + end + end + end + + mem_now.used = mem_now.total - (mem_now.free + mem_now.buf + mem_now.cache) + mem_now.swapused = mem_now.swap - mem_now.swapf + + widget = mem.widget + settings() + end + + newtimer("mem", timeout, update) + + return mem.widget +end + +return setmetatable(mem, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/mpd.lua b/awesome/.config/awesome/lain/widgets/mpd.lua new file mode 100644 index 0000000..600dbac --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/mpd.lua @@ -0,0 +1,110 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010, Adrian C. + +--]] + +local helpers = require("lain.helpers") + +local escape_f = require("awful.util").escape +local naughty = require("naughty") +local wibox = require("wibox") + +local io = { popen = io.popen } +local os = { execute = os.execute, + getenv = os.getenv } +local string = { format = string.format, + gmatch = string.gmatch } + +local setmetatable = setmetatable + +-- MPD infos +-- lain.widgets.mpd +local mpd = {} + +local function worker(args) + local args = args or {} + local timeout = args.timeout or 2 + local password = args.password or "" + local host = args.host or "127.0.0.1" + local port = args.port or "6600" + local music_dir = args.music_dir or os.getenv("HOME") .. "/Music" + local cover_size = args.cover_size or 100 + local default_art = args.default_art or "" + local settings = args.settings or function() end + + local mpdcover = helpers.scripts_dir .. "mpdcover" + local mpdh = "telnet://" .. host .. ":" .. port + local echo = "echo 'password " .. password .. "\nstatus\ncurrentsong\nclose'" + + mpd.widget = wibox.widget.textbox('') + + mpd_notification_preset = { + -- title = "now playing\n░░░░▒▒▒▒▓▓▓▓▓▓████████▓▓▓▓▓▓▒▒▒▒░░░░", + title = "now playing", + timeout = 6 + } + + helpers.set_map("current mpd track", nil) + + function mpd.update() + mpd_now = { + state = "N/A", + file = "N/A", + artist = "N/A", + title = "N/A", + album = "N/A", + date = "N/A" + } + + local f = io.popen(echo .. " | curl --connect-timeout 1 -fsm 3 " .. mpdh) + + for line in f:lines() do + for k, v in string.gmatch(line, "([%w]+):[%s](.*)$") do + if k == "state" then mpd_now.state = v + elseif k == "file" then mpd_now.file = v + elseif k == "Artist" then mpd_now.artist = escape_f(v) + elseif k == "Title" then mpd_now.title = escape_f(v) + elseif k == "Album" then mpd_now.album = escape_f(v) + elseif k == "Date" then mpd_now.date = escape_f(v) + end + end + end + + f:close() + + mpd_notification_preset.text = string.format("%s (%s) - %s\n%s", mpd_now.artist, + mpd_now.album, mpd_now.date, mpd_now.title) + widget = mpd.widget + settings() + + if mpd_now.state == "play" + then + if mpd_now.title ~= helpers.get_map("current mpd track") + then + helpers.set_map("current mpd track", mpd_now.title) + + os.execute(string.format("%s %q %q %d %q", mpdcover, music_dir, + mpd_now.file, cover_size, default_art)) + + mpd.id = naughty.notify({ + preset = mpd_notification_preset, + icon = "/tmp/mpdcover.png", + replaces_id = mpd.id + }).id + end + elseif mpd_now.state ~= "pause" + then + helpers.set_map("current mpd track", nil) + end + end + + helpers.newtimer("mpd", timeout, mpd.update) + + return setmetatable(mpd, { __index = mpd.widget }) +end + +return setmetatable(mpd, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/net.lua b/awesome/.config/awesome/lain/widgets/net.lua new file mode 100644 index 0000000..af97201 --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/net.lua @@ -0,0 +1,102 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local helpers = require("lain.helpers") + +local notify_fg = require("beautiful").fg_focus +local naughty = require("naughty") +local wibox = require("wibox") + +local io = io +local tostring = tostring +local string = { format = string.format, + gsub = string.gsub } + +local setmetatable = setmetatable + +-- Network infos +-- lain.widgets.net +local net = { + last_t = 0, + last_r = 0 +} + +function net.get_device() + f = io.popen("ip link show | cut -d' ' -f2,9") + ws = f:read("*all") + f:close() + ws = ws:match("%w+: UP") + if ws ~= nil then + return ws:gsub(": UP", "") + else + return "network off" + end +end + +local function worker(args) + local args = args or {} + local timeout = args.timeout or 2 + local iface = args.iface or net.get_device() + local units = args.units or 1024 --kb + local settings = args.settings or function() end + + net.widget = wibox.widget.textbox('') + + helpers.set_map(iface, true) + + function update() + net_now = {} + + if iface == "" then iface = net.get_device() end + + net_now.carrier = helpers.first_line('/sys/class/net/' .. iface .. + '/carrier') or "0" + net_now.state = helpers.first_line('/sys/class/net/' .. iface .. + '/operstate') or "down" + local now_t = helpers.first_line('/sys/class/net/' .. iface .. + '/statistics/tx_bytes') or 0 + local now_r = helpers.first_line('/sys/class/net/' .. iface .. + '/statistics/rx_bytes') or 0 + + net_now.sent = tostring((now_t - net.last_t) / timeout / units) + net_now.sent = string.gsub(string.format('%.1f', net_now.sent), ",", ".") + + net_now.received = tostring((now_r - net.last_r) / timeout / units) + net_now.received = string.gsub(string.format('%.1f', net_now.received), ",", ".") + + widget = net.widget + settings() + + net.last_t = now_t + net.last_r = now_r + + if net_now.carrier ~= "1" + then + if helpers.get_map(iface) + then + naughty.notify({ + title = iface, + text = "no carrier", + timeout = 7, + position = "top_left", + icon = helpers.icons_dir .. "no_net.png", + fg = notify_fg or "#FFFFFF" + }) + helpers.set_map(iface, false) + end + else + helpers.set_map(iface, true) + end + end + + helpers.newtimer(iface, timeout, update) + return net.widget +end + +return setmetatable(net, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/sysload.lua b/awesome/.config/awesome/lain/widgets/sysload.lua new file mode 100644 index 0000000..2abac33 --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/sysload.lua @@ -0,0 +1,46 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + +--]] + +local newtimer = require("lain.helpers").newtimer + +local wibox = require("wibox") + +local io = { open = io.open } +local string = { format = string.format, + match = string.match } + +local setmetatable = setmetatable + +-- System load +-- lain.widgets.sysload +local sysload = {} + +local function worker(args) + local args = args or {} + local timeout = args.timeout or 5 + local settings = args.settings or function() end + + sysload.widget = wibox.widget.textbox('') + + function update() + local f = io.open("/proc/loadavg") + local ret = f:read("*all") + f:close() + + load_1, load_5, load_15 = string.match(ret, "([^%s]+) ([^%s]+) ([^%s]+)") + + widget = sysload.widget + settings() + end + + newtimer("sysload", timeout, update) + return sysload.widget +end + +return setmetatable(sysload, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/temp.lua b/awesome/.config/awesome/lain/widgets/temp.lua new file mode 100644 index 0000000..61a9aa5 --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/temp.lua @@ -0,0 +1,48 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + +--]] + +local newtimer = require("lain.helpers").newtimer + +local wibox = require("wibox") + +local io = io +local tonumber = tonumber + +local setmetatable = setmetatable + +-- coretemp +-- lain.widgets.temp +local temp = {} + +local function worker(args) + local args = args or {} + local timeout = args.timeout or 5 + local tempfile = args.tempfile or "/sys/class/thermal/thermal_zone0/temp" + local settings = args.settings or function() end + + temp.widget = wibox.widget.textbox('') + + function update() + local f = io.open(tempfile) + if f ~= nil + then + coretemp_now = tonumber(f:read("*all")) / 1000 + f:close() + else + coretemp_now = "N/A" + end + + widget = temp.widget + settings() + end + + newtimer("coretemp", timeout, update) + return temp.widget +end + +return setmetatable(temp, { __call = function(_, ...) return worker(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/yawn/init.lua b/awesome/.config/awesome/lain/widgets/yawn/init.lua new file mode 100644 index 0000000..3f08cd5 --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/yawn/init.lua @@ -0,0 +1,200 @@ + +--[[ + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + +--]] + +local newtimer = require("lain.helpers").newtimer + +local naughty = require("naughty") +local wibox = require("wibox") + +local debug = { getinfo = debug.getinfo } +local io = io +local os = { date = os.date, + getenv = os.getenv } +local string = { find = string.find, + match = string.match, + gsub = string.gsub, + sub = string.sub } +local tonumber = tonumber + +local setmetatable = setmetatable + +-- YAhoo! Weather Notification +-- lain.widgets.yawn +local yawn = +{ + icon = wibox.widget.imagebox(), + widget = wibox.widget.textbox('') +} + +local project_path = debug.getinfo(1, 'S').source:match[[^@(.*/).*$]] +local localizations_path = project_path .. 'localizations/' +local icon_path = project_path .. 'icons/' +local api_url = 'http://weather.yahooapis.com/forecastrss' +local units_set = '?u=c&w=' -- Default is Celsius +local language = string.match(os.getenv("LANG"), "(%S*$*)[.]") +local weather_data = nil +local notification = nil +local city_id = nil +local sky = nil +local settings = function() end + +yawn_notification_preset = {} + +local function fetch_weather() + local url = api_url .. units_set .. city_id + local f = io.popen("curl --connect-timeout 1 -fsm 3 '" .. url .. "'" ) + local text = f:read("*all") + f:close() + + -- In case of no connection or invalid city ID + -- widgets won't display + if text == "" or text:match("City not found") + then + yawn.icon:set_image(icon_path .. "na.png") + if text == "" then + weather_data = "Service not available at the moment." + yawn.widget:set_text(" N/A ") + else + weather_data = "City not found!\n" .. + "Are you sure " .. city_id .. + " is your Yahoo city ID?" + yawn.widget:set_text(" ? ") + end + return + end + + -- Processing raw data + weather_data = text:gsub("<.->", "") + weather_data = weather_data:match("Current Conditions:.-Full") or "" + + -- may still happens in case of bad connectivity + if weather_data == "" then + yawn.icon:set_image(icon_path .. "na.png") + yawn.widget:set_text(" ? ") + return + end + + weather_data = weather_data:gsub("Current Conditions:.-\n", "Now: ") + weather_data = weather_data:gsub("Forecast:.-\n", "") + weather_data = weather_data:gsub("\nFull", "") + weather_data = weather_data:gsub("[\n]$", "") + weather_data = weather_data:gsub(" [-] " , ": ") + weather_data = weather_data:gsub("[.]", ",") + weather_data = weather_data:gsub("High: ", "") + weather_data = weather_data:gsub(" Low: ", " - ") + + -- Getting info for text widget + local now = weather_data:sub(weather_data:find("Now:")+5, + weather_data:find("\n")-1) + forecast = now:sub(1, now:find(",")-1) + units = now:sub(now:find(",")+2, -2) + + -- Day/Night icon change + local hour = tonumber(os.date("%H")) + sky = icon_path + + if forecast == "Clear" or + forecast == "Fair" or + forecast == "Partly Cloudy" or + forecast == "Mostly Cloudy" + then + if hour >= 6 and hour <= 18 + then + sky = sky .. "Day" + else + sky = sky .. "Night" + end + end + + sky = sky .. forecast:gsub(" ", ""):gsub("/", "") .. ".png" + + -- In case there's no defined icon for current forecast + if io.open(sky) == nil then + sky = icon_path .. "na.png" + end + + -- Localization + local f = io.open(localizations_path .. language, "r") + if language:find("en_") == nil and f ~= nil + then + f:close() + for line in io.lines(localizations_path .. language) + do + word = string.sub(line, 1, line:find("|")-1) + translation = string.sub(line, line:find("|")+1) + weather_data = string.gsub(weather_data, word, translation) + end + end + + -- Finally setting infos + yawn.icon:set_image(sky) + widget = yawn.widget + + forecast = weather_data:match(": %S.-,"):gsub(": ", ""):gsub(",", "") + units = units:gsub(" ", "") + + settings() +end + +function yawn.hide() + if notification ~= nil then + naughty.destroy(notification) + notification = nil + end +end + +function yawn.show(t_out) + if yawn.widget._layout.text:match("?") + then + fetch_weather(settings) + end + + yawn.hide() + + notification = naughty.notify({ + preset = yawn_notification_preset, + text = weather_data, + icon = sky, + timeout = t_out + }) +end + +function yawn.register(id, args) + local args = args or {} + local timeout = args.timeout or 600 + settings = args.settings or function() end + + if args.u == "f" then units_set = '?u=f&w=' end + + city_id = id + + newtimer("yawn", timeout, fetch_weather) + + yawn.icon:connect_signal("mouse::enter", function() + yawn.show(0) + end) + yawn.icon:connect_signal("mouse::leave", function() + yawn.hide() + end) + + return yawn +end + +function yawn.attach(widget, id, args) + yawn.register(id, args) + + widget:connect_signal("mouse::enter", function() + yawn.show(0) + end) + + widget:connect_signal("mouse::leave", function() + yawn.hide() + end) +end + +return setmetatable(yawn, { __call = function(_, ...) return yawn.register(...) end }) diff --git a/awesome/.config/awesome/lain/widgets/yawn/localizations/it_IT b/awesome/.config/awesome/lain/widgets/yawn/localizations/it_IT new file mode 100644 index 0000000..70b0eef --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/yawn/localizations/it_IT @@ -0,0 +1,60 @@ +Now:|Ora: +Sun:|Dom: +Mon:|Lun: +Tue:|Mar: +Wed:|Mer: +Thu:|Gio: +Fri:|Ven: +Sat:|Sab: +Mostly Sunny|Abbastanza Soleggiato +Sunny|Soleggiato +Sun|Soleggiato +Rain/Thunder|Temporali +Isolated Thunderstorms|Temporali Isolati +Scattered Thunderstorms|Temporali Sparsi +Thundershowers|Rovesci Temporaleschi +Thunderstorms|Temporali +Thunder in the Vicinity|Tuoni in prossimità +Thunder|Temporale +AM|In Mattinata +PM|Nel Pomeriggio +Early|In Mattinata +Late|In Serata +Few|Sporadiche +Severe|Forti +Clear|Sereno +Fair|Sereno +Partly|Parzialmente +Mostly|Molto +Cloudy|Nuvoloso +Clouds|Nuvoloso +Scattered Showers|Temporali Sparsi +Light Snow Showers|Nevicate Leggere +Snow Showers|Nevicate +aeavy Snow|Forti Nevicate +Scattered Snow Showers|Nevicate Sparse +Mixed Rain And Snow|Pioggia E Neve +Mixed Rain And Sleet|Pioggia E Nevischio +Mixed Snow And Sleet|Neve E Nevischio +Mixed Rain And Hail|Pioggia E Grandine +Snow Flurries|Folate Di Neve +Blowing Snow|Neve Battente +Blowing Rain|Pioggia Battente +Heavy Rain|Forti Piogge +Freezing Rain|Pioggia Congelantesi +Showers|Piogge +Light Rain|Pioggia Leggera +Heavy|Forti +Rain|Piovoso +Windy|Ventoso +Wind|Ventoso +Snow|Neve +Sleet|Nevischio +Light Drizzle|Pioggia Leggera +Drizzle|Pioggia Leggera +Freezing Drizzle|Pioggerella Congelantesi +Hail|Grandine +Fog|Nebbia +Foggy|Nebbioso +Haze|Nebbia +Light|Leggere diff --git a/awesome/.config/awesome/lain/widgets/yawn/localizations/localization_template b/awesome/.config/awesome/lain/widgets/yawn/localizations/localization_template new file mode 100644 index 0000000..453807e --- /dev/null +++ b/awesome/.config/awesome/lain/widgets/yawn/localizations/localization_template @@ -0,0 +1,60 @@ +Now:| +Sun:| +Mon:| +Tue:| +Wed:| +Thu:| +Fri:| +Sat:| +Mostly Sunny| +Sunny| +Sun| +Rain/Thunder| +Isolated Thunderstorms| +Scattered Thunderstorms| +Thundershowers| +Thunderstorms| +Thunder in the Vicinity| +Thunder| +AM| +PM| +Early| +Late| +Few| +Severe| +Clear| +Fair| +Partly| +Mostly| +Cloudy| +Clouds| +Scattered Showers| +Light Snow Showers| +Snow Showers| +Heavy Snow| +Scattered Snow Showers| +Mixed Rain And Snow| +Mixed Rain And Sleet| +Mixed Snow And Sleet| +Mixed Rain And Hail| +Snow Flurries| +Blowing Snow| +Blowing Rain| +Heavy Rain| +Freezing Rain| +Showers| +Light Rain| +Heavy| +Rain| +Windy| +Wind| +Snow| +Sleet| +Freezing Drizzle| +Light Drizzle| +Drizzle| +Hail| +Fog| +Foggy| +Haze| +Light| diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua new file mode 100755 index 0000000..49475f4 --- /dev/null +++ b/awesome/.config/awesome/rc.lua @@ -0,0 +1,911 @@ +-- ██ +-- ░██ a w e s o m e ██ +-- ░██ ░██ +-- █████ ░██████ ██████ ██████ ██████ +-- ██░░░██░██░░░██ ██░░░░██ ██░░░░ ░░░██░ +-- ██░░░██░██ ░██░██ ░██░░█████ ░██ +-- ░██ ░██░██ ░██░██ ░██ ░░░░░██ ░██ ▄▄▄ +-- ░░██████░██ ░██░░██████ ██████ ░░██ ▀█▀██ ▄ +-- ░░░░░██░░ ░░ ░░░░░░ ░░░░░░ ░░ ▀▄██████▀ +-- █████ ▀█████ +-- ░░░░░ ▓▓▓▓▓▓▓▓▓▓ ▀▀██▄ +-- ░▓ author ▓ xero ▀ +-- ░▓ code ▓ http://code.xero.nu/dotfiles +-- ░▓ mirror ▓ http://git.io/.files +-- ░▓▓▓▓▓▓▓▓▓▓ +-- ░░░░░░░░░░ + +-- █▓▒░ libraries +gears = require("gears") +awful = require("awful") +awful.rules = require("awful.rules") +require("awful.autofocus") +wibox = require("wibox") +beautiful = require("beautiful") +naughty = require("naughty") +lain = require("lain") + +-- █▓▒░ error handling +if awesome.startup_errors then + naughty.notify({ + preset = naughty.config.presets.critical, + title = "#@*! startup errors!", + text = awesome.startup_errors + }) +end +do + local in_error = false + awesome.connect_signal("debug::error", function (err) + if in_error then return end + in_error = true + naughty.notify({ + preset = naughty.config.presets.critical, + title = "#@*! an error occured!", + text = err + }) + in_error = false + end) +end + +-- █▓▒░ variables +home = os.getenv("HOME") +config_dir = awful.util.getdir("config") + +-- █▓▒░ user config +print(os.time().." : load config") +dofile(home.."/.config/awesome/config.lua") + +-- █▓▒░ autostart applications +function run_once(cmd) + findme = cmd + firstspace = cmd:find(" ") + if firstspace then + findme = cmd:sub(0, firstspace-1) + end + awful.util.spawn_with_shell("pgrep -u $USER -x "..findme.." > /dev/null || ("..cmd..")") +end + +run_once("urxvtd") +run_once("unclutter") + +-- █▓▒░ theme +beautiful.init(os.getenv("HOME").."/.config/awesome/themes/ghost/theme.lua") + +-- █▓▒░ layouts +local layouts = { + -- awful layouts + -- awful.layout.suit.floating, + -- awful.layout.suit.tile, + -- awful.layout.suit.tile.left, + -- awful.layout.suit.tile.bottom, + -- awful.layout.suit.tile.top, + -- awful.layout.suit.fair, + -- awful.layout.suit.fair.horizontal, + -- awful.layout.suit.spiral, + -- awful.layout.suit.spiral.dwindle, + -- awful.layout.suit.max, + -- awful.layout.suit.max.fullscreen, + -- awful.layout.suit.magnifier, + -- lain layouts + awful.layout.suit.floating, + lain.layout.uselesstile, + lain.layout.uselesstile.left, + lain.layout.uselesstile.top, + lain.layout.uselesstile.bottom, + lain.layout.uselessfair, + lain.layout.uselessfair.horizontal, + lain.layout.termfair, + lain.layout.centerfair, + lain.layout.centerwork, + lain.layout.uselesspiral, + lain.layout.uselesspiral.dwindle, + awful.layout.suit.max.fullscreen, + awful.layout.suit.magnifier +} + +-- █▓▒░ tag list +tags = { + names = {}, + layout = {} +} +for i = 1, tag_count do + tags.names[i] = tag_icon + tags.layout[i] = layouts[1] +end +for s = 1, screen.count() do + tags[s] = awful.tag(tags.names, s, tags.layout) +end + +-- █▓▒░ wallpaper +if beautiful.wallpaper then + for s = 1, screen.count() do + gears.wallpaper.maximized(beautiful.wallpaper, s, true) + end +end + +-- █▓▒░ menu +awesomemenu = { + {"░░▒▒▓▓███▓▓▒▒░░"}, + {"edit lua files :"}, + {"rc", editor_cmd.." "..home.."/.config/awesome/rc.lua"}, + {"config", editor_cmd.." "..home.."/.config/awesome/config.lua"}, + {"theme", editor_cmd.." "..home.."/.config/awesome/themes/ghost/theme.lua"}, + {"░░▒▒▓▓███▓▓▒▒░░"}, + {"reload", awesome.restart}, + {"exit", awesome.quit}, + {"reboot", "systemctl reboot"}, + {"showdown", "systemctl shutdown"}, +} +gfx_settings = { + {"view","bash "..home.."/code/sys/gfx-status.sh"}, + {"░░▒▒▓▓████▓▓▒▒░░"}, + {"switch to ati","bash "..home.."/code/sys/gfx-radeon.sh"}, + {"switch to intel","bash "..home.."/code/sys/gfx-intel.sh"}, + {"power off unused","bash "..home.."/code/sys/gfx-off.sh"}, + {"power on unused","bash "..home.."/code/sys/gfx-on.sh"}, +} +prefs = { + {"awesome", awesomemenu, beautiful.awesome_icon}, + {"~.xinitrc", editor_cmd.." .xinitrc"}, + {"wallpaper","nitrogen "..home.."/images/wallpaper/"}, + -- {"screensaver","xscreensaver-demo"}, + {"power manager","xfce4-power-manager-settings"}, + {"appearance","lxappearance"}, + {"resolution","arandr"}, + {"░░▒▒▓▓███▓▓▒▒░░"}, + {"graphix", gfx_settings}, +} +systemmenu = { + {"disks usage", term_exec.."ncdu"}, + {"# disks usage", rootterm.."ncdu"}, + {"cleanup","bleachbit"}, + {"# terminal", rootterm}, +} +net = { + {"chrome", webgui}, + {"iceweasel", "iceweasel"}, + {"irc", irc}, + {"filezilla", ftpgui}, +} +screenshot = { + {"screenshot", "xfce4-screenshooter"}, + {"scrot", terminal.."scrot"}, + {"scrot in 5", terminal.."scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f bash "..home.."/images/ & viewnior bash "..home.."/images/$f'"}, +} +gfx = { + {"gimp","gimp"}, + {"color picker","gcolor2"}, + {"░░▒▒▓▓███▓▓▒▒░░"}, + {"screenshot", screenshot}, +} +media = { + {"media player", mediaplayer}, + {"music player", musicplayer}, + {"mp3 metadata", mp3tag}, + {"cd/dvd burner", burner}, + {"volume", volumecontrol}, +} +office = { + {"sublime",guieditor}, + {"# sublime", "gksudo "..guieditor}, + {"word","abiword"}, +} +accessories = { + {"search",search}, + {"archive",archiver}, + {"sublime",guieditor}, + {"geany","geany"}, + {"terminal",terminal}, + { "# terminal", rootterm }, + {"files", filegui}, + {"# files", "gksudo "..filegui}, + {"images",imageviewer}, + {"calculator",calc}, + {"pdf viewer",pdf}, + {"charmap","gucharmap"}, +} +applications = { + {"internet", net}, + {"graphix", gfx}, + {"entertainment", media}, + {"office", office}, + {"accessories", accessories}, + {"vbox", vbox}, +} +fun_scripts = { + {"colors", term_exec.."bash "..home.."/code/fun/colors"}, + {"colorscheme", term_exec.."bash "..home.."/code/fun/colorscheme"}, + {"dna", term_exec.."bash "..home.."/code/fun/dna"}, + {"ghosts", term_exec.."bash "..home.."/code/fun/ghosts"}, + {"hax0r", term_exec.."lua "..home.."/code/fun/2spooky.lua"}, + {"invaders", term_exec.."bash "..home.."/code/fun/invaders"}, + {"matrix", term_exec.."cmatrix"}, + {"pacman", term_exec.."bash "..home.."/code/fun/pacman"}, + {"pipes", term_exec.."bash "..home.."/code/fun/pipes"}, + {"pipesx", term_exec.."bash "..home.."/code/fun/pipesx"}, + {"rain", term_exec.."bash "..home.."/code/fun/rain"}, + {"screenfetch", term_exec.."bash "..home.."/code/fun/screenfetch"}, + {"skull", term_exec.."bash "..home.."/code/fun/skull"}, + {"slendy", term_exec.."bash "..home.."/code/fun/slendy"}, +} +climenu = { + {"blank", blanktag}, + {"$ terminal", terminal}, + {"# terminal", rootterm}, + {"file-manager", filecli}, + {"editor", editor_cmd}, + {"music player", musicplayer}, + {"web browser", webcli}, + {"cpu usage", cpucli}, + {"fun scripts", fun_scripts}, +} +mymainmenu = awful.menu({ + items = { + {"awesome", awesomemenu, beautiful.awesome_icon}, + {"run", runcmd}, + {"cli apps", climenu}, + {"░░▒▒▓▓███▓▓▒▒░░"}, + {"terminal", terminal}, + {"file manager", filegui}, + {"# file manager", "gksudo "..filegui}, + {"web browser", webgui}, + {"text editor", guieditor}, + {"# text editor", "gksudo "..guieditor}, + {"music player", musicplayer}, + {"media player", mediaplayer}, + {"keepass", passmanager}, + {"░░▒▒▓▓███▓▓▒▒░░"}, + {"applications", applications}, + {"preferences", prefs}, + {"system", systemmenu}, + {"░░▒▒▓▓███▓▓▒▒░░"}, + {"exit menu", exiter} + }, + width = 250 +}) + +-- █▓▒░ wibox +markup = lain.util.markup + +-- █▓▒░ textclock +clockicon = wibox.widget.imagebox(beautiful.widget_clock) +mytextclock = wibox.widget.background(awful.widget.textclock(markup("#FFFFFF",clock_format)), "#000000") + +-- █▓▒░ calendar +lain.widgets.calendar:attach(mytextclock, { font_size = 10, fg = "#FFFFFF", position = "bottom_right" }) + +-- █▓▒░ MPD +-- mpdicon = wibox.widget.imagebox(beautiful.widget_music) +-- mpdicon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(musicplayer) end))) +-- mpdwidget = lain.widgets.mpd({ +-- settings = function() +-- mpdicon:set_image(beautiful.widget_music) +-- if mpd_now.state == "play" then +-- artist = " "..mpd_now.artist.." " +-- -- truncate titles if too long +-- title = string.sub(mpd_now.title, 0, 55).." " +-- else +-- artist = "" +-- title = "" +-- end + +-- widget:set_markup(markup("#74999E", artist)..title) +-- end +-- }) +-- mpdwidgetbg = mpdwidget + +-- █▓▒░ systray +systray = wibox.widget.systray() + +-- █▓▒░ memory +memicon = wibox.widget.background(wibox.widget.imagebox(beautiful.widget_mem), "#000000") +memwidget = wibox.widget.background(lain.widgets.mem({ + settings = function() + widget:set_text(" "..math.floor((mem_now.used/mem_now.total)*100).."% ") + end +}), "#000000") + +-- █▓▒░ cpu +cpuicon = wibox.widget.background(wibox.widget.imagebox(beautiful.widget_cpu), "#313131") +cpuwidget = wibox.widget.background(lain.widgets.cpu({ + settings = function() + widget:set_text(" "..cpu_now.usage.."% ") + end +}), "#313131") + +-- █▓▒░ temp +tempicon = wibox.widget.background(wibox.widget.imagebox(beautiful.widget_temp), "#313131") +tempwidget = wibox.widget.background(lain.widgets.temp({ + settings = function() + widget:set_text(" "..coretemp_now.."°C ") + end +}), "#313131") + +-- █▓▒░ file system +fsicon = wibox.widget.background(wibox.widget.imagebox(beautiful.widget_hdd), "#000000") +fswidget = wibox.widget.background(lain.widgets.fs({ + settings = function() + widget:set_text(" "..fs_now.used.."% ") + end +}), "#000000") +fswidgetbg = fswidget + +-- █▓▒░ battery +baticon = wibox.widget.imagebox(beautiful.widget_battery) +batwidget = lain.widgets.bat({ + battery = battery_id, + settings = function() + widget:set_markup(" "..bat_now.perc.."% ") + if bat_now.perc == "N/A" or bat_now.perc == "100" then + baticon:set_image(beautiful.widget_ac) + return + elseif tonumber(bat_now.perc) <= 5 then + baticon:set_image(beautiful.widget_battery_empty) + elseif tonumber(bat_now.perc) <= 15 then + baticon:set_image(beautiful.widget_battery_low) + else + baticon:set_image(beautiful.widget_battery) + end + end +}) + +-- █▓▒░ network +neticon = wibox.widget.background(wibox.widget.imagebox(beautiful.widget_net), "#313131") +neticon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(iptraf) end))) +netwidget = wibox.widget.background(lain.widgets.net({ + settings = function() + widget:set_markup(markup("#ffffff", " "..net_now.received).. + markup("#ffffff", " / "..net_now.sent.." ")) + end +}), "#313131") + +-- █▓▒░ separators +space = wibox.widget.textbox(' ') +black = wibox.widget.imagebox(beautiful.widget_black) +hash1 = wibox.widget.imagebox(beautiful.widget_hash1) +hash2 = wibox.widget.imagebox(beautiful.widget_hash2) +hash3 = wibox.widget.imagebox(beautiful.widget_hash3) +grey = wibox.widget.imagebox(beautiful.widget_grey) + +-- █▓▒░ create a wibox for each screen and add it +mywibox = {} +mypromptbox = {} +mylayoutbox = {} +mytaglist = {} +mytaglist.buttons = awful.util.table.join( + awful.button({ }, 1, awful.tag.viewonly), + awful.button({ modkey }, 1, awful.client.movetotag), + awful.button({ }, 3, awful.tag.viewtoggle), + awful.button({ modkey }, 3, awful.client.toggletag), + awful.button({ }, 4, function(t) awful.tag.viewnext(awful.tag.getscreen(t)) end), + awful.button({ }, 5, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end) + ) +for s = 1, screen.count() do + + -- create a promptbox for each screen + mypromptbox[s] = awful.widget.prompt() + + -- we need one layoutbox per screen. + mylayoutbox[s] = wibox.widget.background(awful.widget.layoutbox(s), "#313131") + mylayoutbox[s]:buttons(awful.util.table.join( + awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end), + awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end), + awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end), + awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end))) + + -- create a taglist widget + mytaglist[s] = wibox.widget.background(awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons), beautiful.tag_bg_normal) + + -- create the wibox + mywibox[s] = awful.wibox({ position = bar_position, screen = s, height = 18 }) + + -- widgets that are aligned to the upper left + local left_layout = wibox.layout.fixed.horizontal() + left_layout:add(hash3) + left_layout:add(hash3) + left_layout:add(black) + left_layout:add(mytaglist[s]) + left_layout:add(black) + left_layout:add(hash1) + left_layout:add(hash1) + left_layout:add(grey) + left_layout:add(mylayoutbox[s]) + left_layout:add(grey) + left_layout:add(hash2) + left_layout:add(hash2) + left_layout:add(mypromptbox[s]) + left_layout:add(space) + + -- widgets that are aligned to the upper right + local right_layout = wibox.layout.fixed.horizontal() + if s == 1 then + right_layout:add(hash2) + right_layout:add(hash2) + right_layout:add(grey) + right_layout:add(systray) + right_layout:add(grey) + end + right_layout:add(hash1) + right_layout:add(hash1) + right_layout:add(black) + right_layout:add(mytextclock) + right_layout:add(black) + right_layout:add(hash3) + right_layout:add(hash3) + + local middle_layout = wibox.layout.fixed.horizontal() + middle_layout:add(hash2) + middle_layout:add(hash2) + middle_layout:add(grey) + middle_layout:add(cpuicon) + middle_layout:add(cpuwidget) + middle_layout:add(grey) + middle_layout:add(hash1) + middle_layout:add(hash1) + middle_layout:add(black) + middle_layout:add(memicon) + middle_layout:add(memwidget) + middle_layout:add(black) + middle_layout:add(hash1) + middle_layout:add(hash1) + middle_layout:add(grey) + middle_layout:add(tempicon) + middle_layout:add(tempwidget) + middle_layout:add(grey) + middle_layout:add(hash1) + middle_layout:add(hash1) + middle_layout:add(space) + middle_layout:add(baticon) + middle_layout:add(batwidget) + middle_layout:add(space) + middle_layout:add(hash3) + middle_layout:add(hash3) + middle_layout:add(black) + middle_layout:add(fsicon) + middle_layout:add(fswidgetbg) + middle_layout:add(black) + middle_layout:add(hash1) + middle_layout:add(hash1) + middle_layout:add(grey) + middle_layout:add(neticon) + middle_layout:add(netwidget) + middle_layout:add(grey) + middle_layout:add(hash2) + middle_layout:add(hash2) + -- middle_layout:add(mpdicon) + -- middle_layout:add(mpdwidgetbg) + + local layout = wibox.layout.align.horizontal() + layout:set_left(left_layout) + layout:set_middle(middle_layout) + layout:set_right(right_layout) + mywibox[s]:set_widget(layout) + +end + +-- █▓▒░ mouse bindings +root.buttons(awful.util.table.join( + awful.button({ }, 3, function () mymainmenu:toggle() end) +)) + +-- █▓▒░ global key bindings +globalkeys = awful.util.table.join( + -- sreenshot + awful.key({ modkey }, "Print", + function () + awful.util.spawn("scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & viewnior ~/images/$f'") + end), + awful.key({ }, "Print", + function () + awful.util.spawn("scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & viewnior ~/images/$f'") + end), + + -- touchpad toggle + awful.key({ modkey, }, "m", + function () + awful.util.spawn('bash /home/xero/code/sys/toggle-touchpad.sh') + end), + + -- tag browsing + awful.key({ modkey }, "Left", + awful.tag.viewprev + ), + awful.key({ modkey }, "Right", + awful.tag.viewnext + ), + awful.key({ modkey }, "Escape", + awful.tag.history.restore + ), + + -- client focus + awful.key({ modkey }, "k", + function () + awful.client.focus.byidx( 1) + if client.focus then client.focus:raise() end + end), + awful.key({ modkey }, "j", + function () + awful.client.focus.byidx(-1) + if client.focus then client.focus:raise() end + end), + + -- client reorder + awful.key({ modkey, "Shift" }, "j", + function () + awful.client.swap.byidx( 1) + end), + awful.key({ modkey, "Shift" }, "k", + function () + awful.client.swap.byidx( -1) + end), + + -- resize tags/clients + awful.key({ modkey }, "l", + function () + awful.tag.incmwfact( 0.05) + end), + awful.key({ modkey }, "h", + function () + awful.tag.incmwfact(-0.05) + end), + awful.key({ modkey, "Shift" }, "l", + function () + awful.client.incwfact(-0.05) + end), + awful.key({ modkey, "Shift" }, "h", + function () + awful.client.incwfact( 0.05) + end), + + -- move tags/clients + awful.key({ modkey, "Control" }, "Next", + function () + awful.client.moveresize( 20, 20, -40, -40) + end), + awful.key({ modkey, "Control" }, "Prior", + function () + awful.client.moveresize(-20, -20, 40, 40) + end), + awful.key({ modkey, "Control" }, "Down", + function () + awful.client.moveresize( 0, 20, 0, 0) + end), + awful.key({ modkey, "Control" }, "Up", + function () + awful.client.moveresize( 0, -20, 0, 0) + end), + awful.key({ modkey, "Control" }, "Left", + function () + awful.client.moveresize(-20, 0, 0, 0) + end), + awful.key({ modkey, "Control" }, "Right", + function () + awful.client.moveresize( 20, 0, 0, 0) + end), + + -- show menu + awful.key({ modkey }, "w", + function () + mymainmenu:show({ keygrabber = true }) + end), + + -- show/hide wibox + awful.key({ modkey }, "b", function () + mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible + end), + + -- switch mouse screen + awful.key({ modkey, "Control" }, "j", + function () + awful.screen.focus_relative( 1) + end), + awful.key({ modkey, "Control" }, "k", + function () + awful.screen.focus_relative(-1) + end), + + + -- Layout manipulation + awful.key({ modkey, }, "u", awful.client.urgent.jumpto), + awful.key({ modkey, }, "space", + function () + awful.layout.inc(layouts, 1) + end), + awful.key({ modkey, "Shift" }, "space", + function () + awful.layout.inc(layouts, -1) + end), + awful.key({ modkey, "Control" }, "n", awful.client.restore), + + -- change useless gap + awful.key({ modkey, "Control" }, "=", function () lain.util.useless_gaps_resize(1) end), + awful.key({ modkey, "Control" }, "-", function () lain.util.useless_gaps_resize(- 1) end), + + -- standard program + awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), + awful.key({ modkey, "Control" }, "r", awesome.restart), + awful.key({ modkey, "Shift" }, "q", awesome.quit), + + -- widgets popups + awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end), + awful.key({ altkey, }, "h", function () fswidget.show(7) end), + + -- MPD control + -- awful.key({ altkey, "Control" }, "Up", + -- function () + -- awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle") + -- mpdwidget.update() + -- end), + -- awful.key({ altkey, "Control" }, "Down", + -- function () + -- awful.util.spawn_with_shell("mpc stop || ncmpcpp stop || ncmpc stop || pms stop") + -- mpdwidget.update() + -- end), + -- awful.key({ altkey, "Control" }, "Left", + -- function () + -- awful.util.spawn_with_shell("mpc prev || ncmpcpp prev || ncmpc prev || pms prev") + -- mpdwidget.update() + -- end), + -- awful.key({ altkey, "Control" }, "Right", + -- function () + -- awful.util.spawn_with_shell("mpc next || ncmpcpp next || ncmpc next || pms next") + -- mpdwidget.update() + -- end), + + -- clipboard + awful.key({ modkey }, "c", function () os.execute("xsel -p -o | xsel -i -b") end), + + -- prompt + awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end), + awful.key({ modkey }, "x", + function () + awful.prompt.run({ prompt = "Run Lua code: " }, + mypromptbox[mouse.screen].widget, + awful.util.eval, nil, + awful.util.getdir("cache").."/history_eval") + end) + -- help cheatsheet + -- awful.key( + -- { altkey, "Shift" }, "h", + -- function () + -- naughty.notify({ + -- title = "Command Reference: Client Keybindings" + -- , text = "WIN+SPACE : spawn terminal\nWIN+W : open menu" + -- , timeout = 10 + -- , position = "top_right" + -- , fg = beautiful.fg_focus + -- , bg = beautiful.bg_focus + -- }) + -- end + -- ) +) + +-- █▓▒░ client key bindings +clientkeys = awful.util.table.join( + awful.key({ modkey, }, "f", + function (c) + c.fullscreen = not c.fullscreen + end), + awful.key({ modkey, "Shift" }, "c", + function (c) + c:kill() + end), + awful.key({ modkey, "Control" }, "space", + awful.client.floating.toggle + ), + awful.key({ modkey, "Control" }, "Return", + function (c) + c:swap(awful.client.getmaster()) + end), + awful.key({ modkey, }, "o", + awful.client.movetoscreen + ), + awful.key({ modkey, }, "t", + function (c) + c.ontop = not c.ontop + end), + awful.key({ modkey, }, "n", + function (c) + -- The client currently has the input focus, so it cannot be + -- minimized, since minimized clients can't have the focus. + c.minimized = true + end), + awful.key({ modkey, "Shift" }, "m", + function (c) + c.maximized_horizontal = not c.maximized_horizontal + c.maximized_vertical = not c.maximized_vertical + end) +) + +-- Bind all key numbers to tags. +-- Be careful: we use keycodes to make it works on any keyboard layout. +-- This should map on the top row of your keyboard, usually 1 to 9. +for i = 1, 9 do + globalkeys = awful.util.table.join(globalkeys, + awful.key({ modkey }, "#"..i + 9, + function () + local screen = mouse.screen + local tag = awful.tag.gettags(screen)[i] + if tag then + awful.tag.viewonly(tag) + end + end), + awful.key({ modkey, "Control" }, "#"..i + 9, + function () + local screen = mouse.screen + local tag = awful.tag.gettags(screen)[i] + if tag then + awful.tag.viewtoggle(tag) + end + end), + awful.key({ modkey, "Shift" }, "#"..i + 9, + function () + local tag = awful.tag.gettags(client.focus.screen)[i] + if client.focus and tag then + awful.client.movetotag(tag) + end + end), + awful.key({ modkey, "Control", "Shift" }, "#"..i + 9, + function () + local tag = awful.tag.gettags(client.focus.screen)[i] + if client.focus and tag then + awful.client.toggletag(tag) + end + end)) +end + +clientbuttons = awful.util.table.join( + awful.button({ }, 1, + function (c) + client.focus = c; c:raise() + end), + awful.button({ modkey }, 1, + awful.mouse.client.move + ), + awful.button({ modkey }, 3, + awful.mouse.client.resize + ) +) + +-- set keys +root.keys(globalkeys) + +-- █▓▒░ rules +awful.rules.rules = { + -- catch all rules + { rule = { }, + properties = { + border_width = beautiful.border_width, + border_color = beautiful.border_normal, + focus = true, + keys = clientkeys, + buttons = clientbuttons + } }, + -- app rules + { rule = { class = "smplayer" }, + properties = { + floating = true + } + }, + { rule = { class = "gimp" }, + properties = { + floating = true + } + }, + { rule = { name = "File Operation Progress" }, + properties = { + floating = true + } + }, + { rule = { name = "blank" }, + properties = { + opacity = 0 -- works via composite manager + } + }, + { rule = { name = "goodbye" }, + properties = { + floating = true + }, + callback = function(c) + awful.placement.centered(c, nil) + end + }, + { rule = { name = "urxvt" }, + properties = { + -- fix term sizing calculation glitches + size_hints_honor = false + } + } +} +-- █▓▒░ signals +-- change tag names dynamically +dynamic_tagging = function() + for s = 1, screen.count() do + -- get a list of all tags + local atags = awful.tag.gettags(s) + -- set the standard icon + for i, t in ipairs(atags) do + t.name = tag_icon + end + + -- get a list of all running clients + local clist = client.get(s) + for i, c in ipairs(clist) do + -- get the tags on which the client is displayed + local ctags = c:tags() + for i, t in ipairs(ctags) do + -- set active icon + t.name = tag_icon_active + end + end + end +end + +-- opened client +client.connect_signal("manage", function (c, startup) + dynamic_tagging() + + if not startup and not c.size_hints.user_position + and not c.size_hints.program_position then + awful.placement.no_overlap(c) + awful.placement.no_offscreen(c) + end + -- sloppy focus + if sloppy_focus then + c:connect_signal("mouse::enter", function(c) + if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier + and awful.client.focus.filter(c) then + client.focus = c + end + end) + end +end) + +-- closed client +client.connect_signal("unmanage", function (c, startup) + dynamic_tagging() +end) + +-- border rollovers +client.connect_signal("focus", + function(c) + if c.maximized_horizontal == true and c.maximized_vertical == true then + c.border_width = 0 + c.border_color = beautiful.border_normal + else + c.border_width = beautiful.border_width + c.border_color = beautiful.border_focus + end + end) +client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) + +-- rearrange clients +for s = 1, screen.count() do screen[s]:connect_signal("arrange", function () + dynamic_tagging() + local clients = awful.client.visible(s) + local layout = awful.layout.getname(awful.layout.get(s)) + + if #clients > 0 then -- fine grained borders and floaters control + for _, c in pairs(clients) do -- floaters always have borders + if awful.client.floating.get(c) or layout == "floating" then + c.border_width = beautiful.border_width + + -- no borders with only one visible client + elseif #clients == 1 or layout == "max" then + clients[1].border_width = 0 + awful.client.moveresize(0, 0, 2, 2, clients[1]) + else + c.border_width = beautiful.border_width + end + end + end +end) +end + +-- disable startup-notification globally +local oldspawn = awful.util.spawn +awful.util.spawn = function (s) + oldspawn(s, false) +end + +run_once("nitrogen --restore") diff --git a/awesome/.config/awesome/scratchdrop/README.md b/awesome/.config/awesome/scratchdrop/README.md new file mode 100644 index 0000000..8eec9c6 --- /dev/null +++ b/awesome/.config/awesome/scratchdrop/README.md @@ -0,0 +1,3 @@ +This is the `drop` section of [scratchpad](http://awesome.naquadah.org/wiki/Scratchpad_manager). + +I cutted out the rest because I don't use it. diff --git a/awesome/.config/awesome/scratchdrop/init.lua b/awesome/.config/awesome/scratchdrop/init.lua new file mode 100644 index 0000000..e5d91c3 --- /dev/null +++ b/awesome/.config/awesome/scratchdrop/init.lua @@ -0,0 +1,133 @@ +------------------------------------------------------------------- +-- Drop-down applications manager for the awesome window manager +------------------------------------------------------------------- +-- Coded by: * Lucas de Vries +-- Hacked by: * Adrian C. (anrxc) +-- Licensed under the WTFPL version 2 +-- * http://sam.zoy.org/wtfpl/COPYING +------------------------------------------------------------------- +-- To use this module add: +-- local scratchdrop = require("scratchdrop") +-- to the top of your rc.lua, and call it from a keybinding: +-- scratchdrop(prog, vert, horiz, width, height, sticky, screen) +-- +-- Parameters: +-- prog - Program to run; "urxvt", "gmrun", "thunderbird" +-- vert - Vertical; "bottom", "center" or "top" (default) +-- horiz - Horizontal; "left", "right" or "center" (default) +-- width - Width in absolute pixels, or width percentage +-- when <= 1 (1 (100% of the screen) by default) +-- height - Height in absolute pixels, or height percentage +-- when <= 1 (0.25 (25% of the screen) by default) +-- sticky - Visible on all tags, false by default +-- screen - Screen (optional), mouse.screen by default +------------------------------------------------------------------- + +-- Grab environment +local pairs = pairs +local awful = require("awful") +local setmetatable = setmetatable +local capi = { + mouse = mouse, + client = client, + screen = screen +} + +-- Scratchdrop: drop-down applications manager for the awesome window manager +local scratchdrop = {} -- module scratch.drop + +local dropdown = {} + +-- Create a new window for the drop-down application when it doesn't +-- exist, or toggle between hidden and visible states when it does +function toggle(prog, vert, horiz, width, height, sticky, screen) + vert = vert or "top" + horiz = horiz or "center" + width = width or 1 + height = height or 0.25 + sticky = sticky or false + screen = screen or capi.mouse.screen + + -- Determine signal usage in this version of awesome + local attach_signal = capi.client.connect_signal or capi.client.add_signal + local detach_signal = capi.client.disconnect_signal or capi.client.remove_signal + + if not dropdown[prog] then + dropdown[prog] = {} + + -- Add unmanage signal for scratchdrop programs + attach_signal("unmanage", function (c) + for scr, cl in pairs(dropdown[prog]) do + if cl == c then + dropdown[prog][scr] = nil + end + end + end) + end + + if not dropdown[prog][screen] then + spawnw = function (c) + dropdown[prog][screen] = c + + -- Scratchdrop clients are floaters + awful.client.floating.set(c, true) + + -- Client geometry and placement + local screengeom = capi.screen[screen].workarea + + if width <= 1 then width = (screengeom.width * width) - 3 end + if height <= 1 then height = screengeom.height * height end + + if horiz == "left" then x = screengeom.x + elseif horiz == "right" then x = screengeom.width - width + else x = screengeom.x+(screengeom.width-width)/2 - 1 end + + if vert == "bottom" then y = screengeom.height + screengeom.y - height + elseif vert == "center" then y = screengeom.y+(screengeom.height-height)/2 + else y = screengeom.y end + + -- Client properties + c:geometry({ x = x, y = y, width = width, height = height }) + c.ontop = true + c.above = true + c.skip_taskbar = true + if sticky then c.sticky = true end + if c.titlebar then awful.titlebar.remove(c) end + + c:raise() + capi.client.focus = c + detach_signal("manage", spawnw) + end + + -- Add manage signal and spawn the program + attach_signal("manage", spawnw) + awful.util.spawn_with_shell(prog, false) -- original without '_with_shell' + else + -- Get a running client + c = dropdown[prog][screen] + + -- Switch the client to the current workspace + if c:isvisible() == false then c.hidden = true + awful.client.movetotag(awful.tag.selected(screen), c) + end + + -- Focus and raise if hidden + if c.hidden then + -- Make sure it is centered + if vert == "center" then awful.placement.center_vertical(c) end + if horiz == "center" then awful.placement.center_horizontal(c) end + c.hidden = false + c:raise() + capi.client.focus = c + else -- Hide and detach tags if not + c.hidden = true + local ctags = c:tags() + for i, t in pairs(ctags) do + ctags[i] = nil + end + c:tags(ctags) + end + end +end + +return setmetatable(scratchdrop, { __call = function(_, ...) return toggle(...) end }) diff --git a/awesome/.config/awesome/themes/ghost/gfx.png b/awesome/.config/awesome/themes/ghost/gfx.png new file mode 100644 index 0000000..b6ea8d5 Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/gfx.png differ diff --git a/awesome/.config/awesome/themes/ghost/hash.png b/awesome/.config/awesome/themes/ghost/hash.png new file mode 100644 index 0000000..59399c6 Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/hash.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/centerfair.png b/awesome/.config/awesome/themes/ghost/layouts/centerfair.png new file mode 100644 index 0000000..98dc698 Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/centerfair.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/centerwork.png b/awesome/.config/awesome/themes/ghost/layouts/centerwork.png new file mode 100644 index 0000000..8d4c362 Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/centerwork.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/cpu.png b/awesome/.config/awesome/themes/ghost/layouts/cpu.png new file mode 100644 index 0000000..6cbc5ee Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/cpu.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/dwindle.png b/awesome/.config/awesome/themes/ghost/layouts/dwindle.png new file mode 100644 index 0000000..3569d6a Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/dwindle.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/fairh.png b/awesome/.config/awesome/themes/ghost/layouts/fairh.png new file mode 100644 index 0000000..a2266f2 Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/fairh.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/fairv.png b/awesome/.config/awesome/themes/ghost/layouts/fairv.png new file mode 100644 index 0000000..82d863c Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/fairv.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/floating.png b/awesome/.config/awesome/themes/ghost/layouts/floating.png new file mode 100644 index 0000000..c3f5dfe Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/floating.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/magnifier.png b/awesome/.config/awesome/themes/ghost/layouts/magnifier.png new file mode 100644 index 0000000..01d031b Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/magnifier.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/max.png b/awesome/.config/awesome/themes/ghost/layouts/max.png new file mode 100644 index 0000000..304fb6c Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/max.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/spiral.png b/awesome/.config/awesome/themes/ghost/layouts/spiral.png new file mode 100644 index 0000000..c67c854 Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/spiral.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/termfair.png b/awesome/.config/awesome/themes/ghost/layouts/termfair.png new file mode 100644 index 0000000..3e06023 Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/termfair.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/tile.png b/awesome/.config/awesome/themes/ghost/layouts/tile.png new file mode 100644 index 0000000..762fedb Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/tile.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/tilebottom.png b/awesome/.config/awesome/themes/ghost/layouts/tilebottom.png new file mode 100644 index 0000000..166635f Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/tilebottom.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/tileleft.png b/awesome/.config/awesome/themes/ghost/layouts/tileleft.png new file mode 100644 index 0000000..f280681 Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/tileleft.png differ diff --git a/awesome/.config/awesome/themes/ghost/layouts/tiletop.png b/awesome/.config/awesome/themes/ghost/layouts/tiletop.png new file mode 100644 index 0000000..0a7edf4 Binary files /dev/null and b/awesome/.config/awesome/themes/ghost/layouts/tiletop.png differ diff --git a/awesome/.config/awesome/themes/ghost/theme.lua b/awesome/.config/awesome/themes/ghost/theme.lua new file mode 100644 index 0000000..f1df307 --- /dev/null +++ b/awesome/.config/awesome/themes/ghost/theme.lua @@ -0,0 +1,93 @@ +-- ██ +-- ░██ a w e s o m e ██ +-- ░██ ░██ +-- █████ ░██████ ██████ ██████ ██████ +-- ██░░░██░██░░░██ ██░░░░██ ██░░░░ ░░░██░ +-- ██░░░██░██ ░██░██ ░██░░█████ ░██ +-- ░██ ░██░██ ░██░██ ░██ ░░░░░██ ░██ ▄▄▄ +-- ░░██████░██ ░██░░██████ ██████ ░░██ ▀█▀██ ▄ +-- ░░░░░██░░ ░░ ░░░░░░ ░░░░░░ ░░ ▀▄██████▀ +-- █████ ▀█████ +-- ░░░░░ ▓▓▓▓▓▓▓▓▓▓ ▀▀██▄ +-- ░▓ author ▓ xero ▀ +-- ░▓ code ▓ http://code.xero.nu/dotfiles +-- ░▓ mirror ▓ http://git.io/.files +-- ░▓▓▓▓▓▓▓▓▓▓ +-- ░░░░░░░░░░ + +theme = {} + +themes_dir = os.getenv("HOME") .. "/.config/awesome/themes/ghost" +theme.wallpaper = themes_dir .. "/hash.png" + +theme.font = "gohuFont" +theme.fg_normal = "#DDDDFF" +theme.fg_focus = "#F0DFAF" +theme.fg_urgent = "#CC9393" +theme.bg_normal = "#1A1A1A" +theme.bg_focus = "#313131" +theme.bg_urgent = "#1A1A1A" +theme.bg_systray = "#2F2F2F" +theme.tag_bg_normal = "#000000" +theme.border_width = "1" +theme.border_normal = "#3F3F3F" +theme.border_focus = "#7F7F7F" +theme.border_marked = "#CC9393" +theme.titlebar_bg_focus = "#FFFFFF" +theme.titlebar_bg_normal = "#FFFFFF" +theme.textbox_widget_margin_top = 1 +theme.notify_fg = theme.fg_normal +theme.notify_bg = theme.bg_normal +theme.notify_border = theme.border_focus +theme.awful_widget_height = 14 +theme.awful_widget_margin_top = 2 +theme.useless_gap_width = 10 +theme.mouse_finder_color = "#CC9393" +theme.menu_height = "16" +theme.menu_width = "150" + +theme.menu_submenu_icon = themes_dir .. "/icons/submenu.png" +theme.tasklist_disable_icon = true -- do not display the taglist squares + +theme.layout_tile = themes_dir .. "/layouts/tile.png" +theme.layout_tilegaps = themes_dir .. "/layouts/tile.png" +theme.layout_tileleft = themes_dir .. "/layouts/tileleft.png" +theme.layout_tilebottom = themes_dir .. "/layouts/tilebottom.png" +theme.layout_tiletop = themes_dir .. "/layouts/tiletop.png" +theme.layout_fairv = themes_dir .. "/layouts/fairv.png" +theme.layout_fairh = themes_dir .. "/layouts/fairh.png" +theme.layout_spiral = themes_dir .. "/layouts/spiral.png" +theme.layout_dwindle = themes_dir .. "/layouts/dwindle.png" +theme.layout_max = themes_dir .. "/layouts/max.png" +theme.layout_fullscreen = themes_dir .. "/layouts/max.png" +theme.layout_magnifier = themes_dir .. "/layouts/magnifier.png" +theme.layout_floating = themes_dir .. "/layouts/floating.png" +theme.layout_uselesstile = themes_dir .. "/layouts/tile.png" +theme.layout_uselesstileleft = themes_dir .. "/layouts/tileleft.png" +theme.layout_uselesstiletop = themes_dir .. "/layouts/tiletop.png" +theme.layout_uselesstilebottom = themes_dir .. "/layouts/tilebottom.png" +theme.layout_uselessfair = themes_dir .. "/layouts/fairv.png" +theme.layout_uselessfairh = themes_dir .. "/layouts/fairh.png" +theme.layout_termfair = themes_dir .. "/layouts/termfair.png" +theme.layout_uselesspiral = themes_dir .. "/layouts/spiral.png" +theme.layout_uselessdwindle = themes_dir .. "/layouts/dwindle.png" +theme.layout_centerfair = themes_dir .. "/layouts/centerfair.png" +theme.layout_centerwork = themes_dir .. "/layouts/centerwork.png" + +theme.widget_hash1 = themes_dir .. "/icons/hash1.png" +theme.widget_hash2 = themes_dir .. "/icons/hash2.png" +theme.widget_hash3 = themes_dir .. "/icons/hash3.png" +theme.widget_grey = themes_dir .. "/icons/grey.png" +theme.widget_black = themes_dir .. "/icons/black.png" +theme.widget_ac = themes_dir .. "/icons/ac.png" +theme.widget_battery = themes_dir .. "/icons/battery.png" +theme.widget_battery_low = themes_dir .. "/icons/battery_low.png" +theme.widget_battery_empty = themes_dir .. "/icons/battery_empty.png" +theme.widget_mem = themes_dir .. "/icons/mem.png" +theme.widget_cpu = themes_dir .. "/icons/cpu.png" +theme.widget_temp = themes_dir .. "/icons/temp.png" +theme.widget_net = themes_dir .. "/icons/net.png" +theme.widget_hdd = themes_dir .. "/icons/hdd.png" +theme.widget_music = themes_dir .. "/icons/note.png" + +return theme diff --git a/awesome/.xinitrc b/awesome/.xinitrc new file mode 100644 index 0000000..e49a8aa --- /dev/null +++ b/awesome/.xinitrc @@ -0,0 +1,78 @@ +#!/bin/sh +# +# ██ ██ ██ +# ░░ ░░ ░██ +# ██ ██ ██ ███████ ██ ██████ ██████ █████ +# ░░██ ██ ░██░░██░░░██░██░░░██░ ░░██░░█ ██░░░██ +# ░░███ ░██ ░██ ░██░██ ░██ ░██ ░ ░██ ░░ +# ██░██ ░██ ░██ ░██░██ ░██ ░██ ░██ ██ +# ██ ░░██░██ ███ ░██░██ ░░██ ░███ ░░█████ +# ░░ ░░ ░░ ░░░ ░░ ░░ ░░ ░░░ ░░░░░ +# +# ▓▓▓▓▓▓▓▓▓▓ +# ░▓ author ▓ xero +# ░▓ code ▓ http://code.xero.nu/dotfiles +# ░▓ mirror ▓ http://git.io/.files +# ░▓▓▓▓▓▓▓▓▓▓ +# ░░░░░░░░░░ + +# merge custom x resources +xrdb -merge "${HOME}/.Xdefaults" & + +# start the terminal emulator daemon +urxvtd -q -f -o & + +# keyring +gnome-keyring-daemon & + +# wifi +/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & +(sleep 2s && nm-applet --sm-disable) & + +# power management +(sleep 2s && xfce4-power-manager) & + +# sound mixer +(sleep 2s && pnmixer) & + +# volume keys daemon +(sleep 2s && xfce4-volumed) & + +# compositing manager +compton -b --config ~/.config/compton.conf & + +# start thunar daemon +thunar --daemon & + +# wallpaper +nitrogen --restore & + +# configure touchpad +syndaemon -i 0.8 -d & +if egrep -iq 'touchpad' /proc/bus/input/devices; then + synclient VertEdgeScroll=0 & + synclient TapButton1=1 & + synclient HorizTwoFingerScroll=1 & +fi + +# clipboard manager +(sleep 3s && clipit) & + +# keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate. +xset r rate 250 25 & + +# disable system beep +xset b off & +Xdefaults +# fix cursors. for a minute :/ +xsetroot -cursor_name left_ptr + +# start the rock +mpd & + +# setup fonts +xset +fp ~/.fonts & +xset fp rehash & + +# ░▒▓█ get awesome! █▓▒░ +exec awesome diff --git a/awesome/.zprofile b/awesome/.zprofile new file mode 100644 index 0000000..3435b2c --- /dev/null +++ b/awesome/.zprofile @@ -0,0 +1 @@ +[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx diff --git a/awesome/preview.png b/awesome/preview.png new file mode 100644 index 0000000..f160a4a Binary files /dev/null and b/awesome/preview.png differ diff --git a/code/fun/2spooky.lua b/code/fun/2spooky.lua deleted file mode 100755 index a0ebc5d..0000000 --- a/code/fun/2spooky.lua +++ /dev/null @@ -1,79 +0,0 @@ - --Definitely not my best work, first script I've done in Lua 5.2 - function draw() - nissue = { - "\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[1;33m", - ",~~~~~~~~~~~~~, \027[0;31m..:::::::::.. \027[1;33m ,~~~~~~~~~~~~~,\027[1;33m", - "\027[1;33m:\027[1;32m .-======-,\027[1;33m : \027[0;31m ..:::\027[1;37maad8888888baa\027[0;31m:::.. \027[1;33m:\027[1;34mExploit-the \027[1;33m :\027[1;32m", - "\027[1;33m:\027[1;32m ||\027[0;31mH4CK3R\027[1;32m|# \027[1;33m : \027[0;31m .::::\027[1;37md:?88888888888?::8b\027[0;31m::::. \027[1;33m :\027[0;31m.-------,./|\027[1;33m :\027[1;32m", - "\027[1;33m:\027[1;32m ||______|| \027[1;33m :\027[1;34m&&&& \027[0;31m.:::\027[1;37md8888:?88888888??a888888b\027[0;31m:::. \027[1;34m &&&&\027[1;33m:\027[0;31m{ \027[1;33m VIRUS \027[0;31m /\027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;32m | ___ | \027[1;33m : \027[1;34m + \027[0;31m.:::\027[1;37md8888888a8888888aa8888888888b\027[0;31m:::. \027[1;34m + \027[1;33m :\027[0;31m \\\027[1;33m DROPPER\027[0;31m 7\027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;32m | |\027[1;35m[]\027[1;32m | | \027[1;33m : \027[1;34m &\027[0;31m::::\027[1;37mdP\027[0;31m\023\022\021\020\019\018\017\016\027[1;37m88888888888\027[0;31m\023\022\021\020\019\018\017\016\027[1;37mYb\027[0;31m::::\027[1;34m&&\027[1;33m :\027[0;31m ~. ,--.( \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;32m `-------' \027[1;33m : \027[0;31m::::\027[1;37mdP\027[0;31m\024:::::::\015\027[1;37mY888888888P\027[0;31m\024:::::::\015\027[1;37mYb\027[0;31m::::\027[1;33m : \027[0;31m '~ `;\027[1;33m :\027[1;33m", - "\027[1;33m:\027[0;31mReverse- \027[1;33m : \027[0;31m::::\027[1;37md8\027[0;31m\001:::::::::\014\027[1;37mY8888888P\027[0;31m\001:::::::::\014\027[1;37m8b\027[0;31m::::\027[1;33m :\027[1;34mNation's-\027[0;31mData\027[1;33m:\027[1;33m", - "\027[1;33m:\027[0;31mEngineering \027[1;33m: \027[0;31m.::::\027[1;37m88\027[0;31m\002\003\004\005\006\007\008\009\010\011\012\013\027[1;37mY88888P\027[0;31m\002\003\004\005\006\007\008\009\010\011\012\013\027[1;37m88\027[0;31m::::.\027[1;33m `~~~~~~~~~~~~'\027[1;33m", - "\027[1;33m `~~~~~~~~~~~~' \027[0;31m:::::\027[1;37mY8baaaaaaaaaa88P\027[0;31m:\027[1;37mT\027[0;31m:\027[1;37mY88aaaaaaaaaad8P\027[0;31m::::: \027[0;31m", - "\027[0;31m :::::::\027[1;37mY88888888888P\027[0;31m::\027[1;37m|\027[0;31m::\027[1;37mY88888888888P\027[0;31m::::::: \027[0;31m", - "\027[1;33m,~~~~~~~~~~~~~, \027[0;31m::::::::::::::::\027[1;37m888\027[0;31m:::\027[1;37m|\027[0;31m:::\027[1;37m888\027[0;31m::::::::::::::::\027[1;33m ,~~~~~~~~~~~~~,\027[1;33m", - "\027[1;33m:\027[1;34m R00T-KITS \027[1;33m : \027[0;31m`:::::::::::::::\027[1;37m8888888888888b\027[0;31m::::::::::::::' \027[1;33m :\027[0;31mHoM3-$w33t\027[1;33m :\027[1;37m", - "\027[1;33m:\027[0;31m ____ \027[1;37m __ \027[1;33m : \027[0;31m:::::::::::::::\027[1;37m88888888888888\027[0;31m:::::::::::::: \027[1;33m :\027[1;34m (I\027[1;33m :\027[1;33m", - "\027[1;33m: \027[0;31m| |\027[1;37m |\027[0;31m-_\027[1;37m| \027[1;33m:\027[0;31m :::::::::::::\027[1;37md88888888888888\027[0;31m::::::::::::: \027[1;33m :\027[1;36m^^^\027[1;34m |\027[1;36m ^^^\027[1;33m:\027[1;33m", - "\027[1;33m:\027[0;31m |____|\027[1;33m_\027[1;37m|\027[0;31m=_\027[1;37m|\027[1;33m :\027[0;31m ::::::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::\027[1;37m88\027[0;31m::::::::::::\027[1;33m :\027[1;34m|u|_\027[1;36m^^^^^\027[1;34m_|u|\027[1;33m:\027[1;33m", - "\027[1;33m:\027[1;37m ____\027[1;33m)\027[1;37m_\027[1;37m.\027[1;37m___\027[1;33m : \027[0;31m`::::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::\027[1;37m88\027[0;31m::::::::::' \027[1;33m :\027[1;34m|_ u _ u _|\027[1;33m:\027[1;33m", - "\027[1;33m: \027[1;37m/\027[1;34m:::::;\027[1;37m|\027[1;34m _\027[1;37m)\027[1;33m:\027[1;34m &\027[0;31m`:::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37mP\027[0;31m::::\027[1;37m88\027[0;31m:::::::::'\027[1;34m& \027[1;33m:\027[1;34m |__|\027[1;37m;\027[1;34m|__| \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;37m `======'\027[1;34m |_|\027[1;33m: \027[1;34m+ \027[0;31m `:::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::::::\027[1;37m88\027[0;31m:::::::' \027[1;34m + \027[1;33m :\027[1;34m /_/ \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;34mUr-Computer-\027[1;33m :\027[1;34m&&&&&&& \027[0;31m ``:::::::::::::::::::::::''\027[1;34m &&&&&&&\027[1;33m:\027[0;31mH4x0r-HoM3- \027[1;33m :\027[1;33m", - "\027[1;33m:\027[1;34mis-MY-\027[0;31mSlave \027[1;33m : \027[0;31m ``::::::::::::::''\027[1;33m :\027[0;31m *\027[1;37m127\027[0;31m.\027[1;37m0\027[0;31m.\027[1;37m0\027[0;31m.\027[1;37m1\027[0;31m* \027[1;33m:\027[1;33m", - "\027[1;33m `~~~~~~~~~~~~' `~~~~~~~~~~~~'\027[1;33m", - "\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[1;37m", - "\027[0;31m -======- \027[1;37m +\027[0;31mWARNING\027[1;37m+\027[1;33m\"\027[0;31mIllegal\027[1;37m_\027[0;31mNetwork\027[1;37m_\027[0;31mConnections\027[1;37m_\027[0;31mBeyond\027[1;37m_\027[0;31mLogin\027[1;33m\" \027[0;31m -======-\027[0;31m", - "\027[0;31m |\027[1;32mH\027[1;34m4\027[1;33mC\027[1;35mK\027[1;36m3\027[1;37mR\027[0;31m| \027[1;34m -== \027[1;37m You are at the point of \027[0;31mNO RETURN \027[1;34m ==- \027[0;31m |\027[1;32mH\027[1;34m4\027[1;33mC\027[1;35mK\027[1;36m3\027[1;37mR\027[0;31m|\027[0;31m", - "\027[0;31m |______|\027[0;31mYour Activities\027[1;37m:\027[1;33mWill\027[1;37m_\027[1;33mbe\027[1;37m_\027[1;33mKeylogged\027[1;37m_\027[1;33mand\027[1;37m_\027[1;33mTimestamped \027[1;34m\"\027[0;31mUSER_BEWARE\027[1;34m\"\027[0;31m|______|\027[0;31m", - "\027[0;31mHacking Sites\027[1;37m:\027[0;31m https\027[1;37m:\027[1;33m//\027[0;31msites\027[1;37m.\027[0;31mgoogle\027[1;37m.\027[0;31mcom\027[1;33m/\027[0;31msite\027[1;33m/\027[0;31mlazyboxx \027[1;35m*\027[0;31m http\027[1;37m:\027[1;33m//\027[0;31mwww\027[1;37m.\027[0;31mfreebsd\027[1;37m.\027[0;31morg \027[1;33m" - } - io.write("\027[1;1H") --reset cursor - for a = 7,11 do - for b = 1,24 do - if b == position then - nissue[a] = string.gsub(nissue[a],string.char(b),"\027[1;31m@\027[0;31m") - else - nissue[a] = string.gsub(nissue[a],string.char(b),":") - end - end - end - for a = 5,21 do - if bool then - nissue[a] = string.gsub(nissue[a],"&","\027[31;1m=\027[37;1m") - nissue[a] = string.gsub(nissue[a],"+","\027[31;1m|\027[37;1m") - else - nissue[a] = string.gsub(nissue[a],"&","=") - nissue[a] = string.gsub(nissue[a],"+","|") - end - end - for i = 1,28 do - print(nissue[i]) - end - bool = not bool - end - function changepos(num) - if position == 24 and num == 1 then - position = 1 - elseif position == 1 and num == -1 then - position = 24 - else - position = position + num - end - end - position = 14 - bool = true - dirs = {1,-1} - draw() - while true do - move = math.random(1,6) - dir = dirs[math.random(1,2)] - draw() - for m = 1,move do - changepos(dir) - draw() - os.execute("sleep 0.1") --Replace it with some other way to wait one tenth of a second if you're using Windows or don't have "sleep" - end --On the subject of Windows compatibility, Ansicon is a perfect way to make the Ansi escape codes work. - end diff --git a/code/fun/colors b/code/fun/colors deleted file mode 100755 index c8d527b..0000000 --- a/code/fun/colors +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -xdef="$HOME/.Xdefaults" - -colors=( $( sed -re '/^!/d; /^$/d; /^#/d; s/(\*color)([0-9]):/\10\2:/g;' $xdef | grep 'color[01][0-9]:' | sort | sed 's/^.*: *//g' ) ) - -echo -e "\e[1;37m - Black Red Green Yellow Blue Magenta Cyan White -──────────────────────────────────────────────────────────────────────\e[0m" -for i in {0..7}; do echo -en "\e[$((30+$i))m ${colors[i]} \e[0m"; done -echo -for i in {8..15}; do echo -en "\e[1;$((22+$i))m ${colors[i]} \e[0m"; done -echo -e "\n" diff --git a/code/fun/colorscheme b/code/fun/colorscheme deleted file mode 100755 index ad8ab40..0000000 --- a/code/fun/colorscheme +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -# -# This file echoes a bunch of color codes to the -# terminal to demonstrate what's available. Each -# line is the color code of one forground color, -# out of 17 (default + 16 escapes), followed by a -# test use of that color on all nine background -# colors (default + 8 escapes). -# - -T='TiP' # The test text - -echo -e "\n 40m 41m 42m 43m\ - 44m 45m 46m 47m"; - -for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \ - '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \ - ' 36m' '1;36m' ' 37m' '1;37m'; - do FG=${FGs// /} - echo -en " $FGs \033[$FG $T " - for BG in 40m 41m 42m 43m 44m 45m 46m 47m; - do echo -en "$EINS \033[$FG\033[$BG $T \033[0m"; - done - echo; -done -echo - diff --git a/code/fun/dna b/code/fun/dna deleted file mode 100755 index a049e0b..0000000 --- a/code/fun/dna +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -# -# ANSI color scheme script by pfh -# -# Initializing mod by lolilolicon from Archlinux -# - -f=3 b=4 -for j in f b; do - for i in {0..7}; do - printf -v $j$i %b "\e[${!j}${i}m" - done -done -bld=$'\e[1m' -rst=$'\e[0m' -inv=$'\e[7m' - -cat << EOF - - ${f1} █-----${bld}█ ${rst}${f2} █-----${bld}█${rst} ${f3} █-----${bld}█${rst} ${f4} █-----${bld}█${rst} ${f5} █-----${bld}█${rst} ${f6} █-----${bld}█${rst} - ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst} - ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst} - ${f1} █${rst} ${f2} █${rst} ${f3} █${rst} ${f4} █${rst} ${f5} █${rst} ${f6} █${rst} - ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █_${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst} - ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst} - ${f1}${bld} █-----${rst}${f1}█${rst} ${f2}${bld} █-----${rst}${f2}█${rst} ${f3}${bld} █-----${rst}${f3}█${rst} ${f4}${bld} █-----${rst}${f4}█${rst} ${f5}${bld} █-----${rst}${f5}█${rst} ${f6}${bld} █-----${rst}${f6}█${rst} - ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst} - ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █-${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst} - ${f1}${bld} █${rst} ${f2}${bld} █${rst} ${f3}${bld}█${rst} ${f4}${bld} █${rst} ${f5}${bld} █${rst} ${f6}${bld} █${rst} - ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst} - ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst} - ${f1} █-----${bld}█ ${rst}${f2} █-----${bld}█${rst} ${f3} █-----${bld}█${rst} ${f4} █-----${bld}█${rst} ${f5} █-----${bld}█${rst} ${f6} █-----${bld}█${rst} - ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst} - ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst} - ${f1} █${rst} ${f2}█${rst} ${f3} █${rst} ${f4} █${rst} ${f5} █${rst} ${f6} █${rst} - ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █_${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst} - ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst} - ${f1}${bld} █-----${rst}${f1}█${rst} ${f2}${bld} █-----${rst}${f2}█${rst} ${f3}${bld} █-----${rst}${f3}█${rst} ${f4}${bld} █-----${rst}${f4}█${rst} ${f5}${bld} █-----${rst}${f5}█${rst} ${f6}${bld} █-----${rst}${f6}█${rst} - ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst} - ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █-${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst} - ${f1}${bld} █${rst} ${f2}${bld} █${rst} ${f3}${bld} █${rst} ${f4}${bld} █${rst} ${f5}${bld} █${rst} ${f6}${bld} █${rst} - ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst} - ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst} - ${f1} █-----${bld}█ ${rst}${f2} █-----${bld}█${rst} ${f3} █-----${bld}█${rst} ${f4} █-----${bld}█${rst} ${f5} █-----${bld}█${rst} ${f6} █-----${bld}█${rst} - -EOF \ No newline at end of file diff --git a/code/fun/ghosts b/code/fun/ghosts deleted file mode 100755 index 2cf1727..0000000 --- a/code/fun/ghosts +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -# -# ANSI color scheme script by pfh -# -# Initializing mod by lolilolicon from Archlinux -# - -f=3 b=4 -for j in f b; do - for i in {0..7}; do - printf -v $j$i %b "\e[${!j}${i}m" - done -done -bld=$'\e[1m' -rst=$'\e[0m' -inv=$'\e[7m' -cat << EOF - -$f1 ▄▄▄ $f2 ▄▄▄ $f3 ▄▄▄ $f4 ▄▄▄ $f5 ▄▄▄ $f6 ▄▄▄ -$f1 ▀█▀██ ▄ $f2 ▀█▀██ ▄ $f3 ▀█▀██ ▄ $f4 ▀█▀██ ▄ $f5 ▀█▀██ ▄ $f6 ▀█▀██ ▄ -$f1 ▀▄██████▀ $f2 ▀▄██████▀ $f3 ▀▄██████▀ $f4 ▀▄██████▀ $f5 ▀▄██████▀ $f6 ▀▄██████▀ -$f1 ▀█████ $f2 ▀█████ $f3 ▀█████ $f4 ▀█████ $f5 ▀█████ $f6 ▀█████ -$f1 ▀▀▀▀▄ $f2 ▀▀▀▀▄ $f3 ▀▀▀▀▄ $f4 ▀▀▀▀▄ $f5 ▀▀▀▀▄ $f6 ▀▀▀▀▄ -$bld -$f1 ▄▄▄ $f2 ▄▄▄ $f3 ▄▄▄ $f4 ▄▄▄ $f5 ▄▄▄ $f6 ▄▄▄ -$f1 ▀█▀██ ▄ $f2 ▀█▀██ ▄ $f3 ▀█▀██ ▄ $f4 ▀█▀██ ▄ $f5 ▀█▀██ ▄ $f6 ▀█▀██ ▄ -$f1 ▀▄██████▀ $f2 ▀▄██████▀ $f3 ▀▄██████▀ $f4 ▀▄██████▀ $f5 ▀▄██████▀ $f6 ▀▄██████▀ -$f1 ▀█████ $f2 ▀█████ $f3 ▀█████ $f4 ▀█████ $f5 ▀█████ $f6 ▀█████ -$f1 ▀▀▀▀▄ $f2 ▀▀▀▀▄ $f3 ▀▀▀▀▄ $f4 ▀▀▀▀▄ $f5 ▀▀▀▀▄ $f6 ▀▀▀▀▄ -$rst -EOF \ No newline at end of file diff --git a/code/fun/invaders b/code/fun/invaders deleted file mode 100755 index 0ca2036..0000000 --- a/code/fun/invaders +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh - -# ANSI Color -- use these variables to easily have different color -# and format output. Make sure to output the reset sequence after -# colors (f = foreground, b = background), and use the 'off' -# feature for anything you turn on. - -initializeANSI() -{ - esc="" - - blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" - yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" - cyanf="${esc}[36m"; whitef="${esc}[37m" - - blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" - yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" - cyanb="${esc}[46m"; whiteb="${esc}[47m" - - boldon="${esc}[1m"; boldoff="${esc}[22m" - italicson="${esc}[3m"; italicsoff="${esc}[23m" - ulon="${esc}[4m"; uloff="${esc}[24m" - invon="${esc}[7m"; invoff="${esc}[27m" - - reset="${esc}[0m" -} - -# note in this first use that switching colors doesn't require a reset -# first - the new color overrides the old one. - -initializeANSI - -cat << EOF - - ${boldon}${redf}▀▄ ▄▀ ${reset} ${boldon}${greenf}▄▄▄████▄▄▄ ${reset} ${boldon}${yellowf} ▄██▄ ${reset} ${boldon}${bluef}▀▄ ▄▀ ${reset} ${boldon}${purplef}▄▄▄████▄▄▄ ${reset} ${boldon}${cyanf} ▄██▄ ${reset} - ${boldon}${redf}▄█▀███▀█▄ ${reset} ${boldon}${greenf}███▀▀██▀▀███${reset} ${boldon}${yellowf}▄█▀██▀█▄${reset} ${boldon}${bluef}▄█▀███▀█▄ ${reset} ${boldon}${purplef}███▀▀██▀▀███${reset} ${boldon}${cyanf}▄█▀██▀█▄${reset} - ${boldon}${redf}█▀███████▀█${reset} ${boldon}${greenf}▀▀▀██▀▀██▀▀▀${reset} ${boldon}${yellowf}▀▀█▀▀█▀▀${reset} ${boldon}${bluef}█▀███████▀█${reset} ${boldon}${purplef}▀▀▀██▀▀██▀▀▀${reset} ${boldon}${cyanf}▀▀█▀▀█▀▀${reset} - ${boldon}${redf}▀ ▀▄▄ ▄▄▀ ▀${reset} ${boldon}${greenf}▄▄▀▀ ▀▀ ▀▀▄▄${reset} ${boldon}${yellowf}▄▀▄▀▀▄▀▄${reset} ${boldon}${bluef}▀ ▀▄▄ ▄▄▀ ▀${reset} ${boldon}${purplef}▄▄▀▀ ▀▀ ▀▀▄▄${reset} ${boldon}${cyanf}▄▀▄▀▀▄▀▄${reset} - - ${redf}▀▄ ▄▀ ${reset} ${greenf}▄▄▄████▄▄▄ ${reset} ${yellowf} ▄██▄ ${reset} ${bluef}▀▄ ▄▀ ${reset} ${purplef}▄▄▄████▄▄▄ ${reset} ${cyanf} ▄██▄ ${reset} - ${redf}▄█▀███▀█▄ ${reset} ${greenf}███▀▀██▀▀███${reset} ${yellowf}▄█▀██▀█▄${reset} ${bluef}▄█▀███▀█▄ ${reset} ${purplef}███▀▀██▀▀███${reset} ${cyanf}▄█▀██▀█▄${reset} - ${redf}█▀███████▀█${reset} ${greenf}▀▀▀██▀▀██▀▀▀${reset} ${yellowf}▀▀█▀▀█▀▀${reset} ${bluef}█▀███████▀█${reset} ${purplef}▀▀▀██▀▀██▀▀▀${reset} ${cyanf}▀▀█▀▀█▀▀${reset} - ${redf}▀ ▀▄▄ ▄▄▀ ▀${reset} ${greenf}▄▄▀▀ ▀▀ ▀▀▄▄${reset} ${yellowf}▄▀▄▀▀▄▀▄${reset} ${bluef}▀ ▀▄▄ ▄▄▀ ▀${reset} ${purplef}▄▄▀▀ ▀▀ ▀▀▄▄${reset} ${cyanf}▄▀▄▀▀▄▀▄${reset} - - - ${whitef}▌${reset} - - ${whitef}▌${reset} - ${whitef}${reset} - ${whitef}▄█▄${reset} - ${whitef}▄█████████▄${reset} - ${whitef}▀▀▀▀▀▀▀▀▀▀▀${reset} - -EOF \ No newline at end of file diff --git a/code/fun/pacman b/code/fun/pacman deleted file mode 100755 index 51697cc..0000000 --- a/code/fun/pacman +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# ANSI color scheme script featuring PACMAN -# by pfh -# -# Initializing procedure by lolilolicon -# - -f=3 b=4 -for j in f b; do - for i in {0..7}; do - printf -v $j$i %b "\e[${!j}${i}m" - done -done -bld=$'\e[1m' -rst=$'\e[0m' -inv=$'\e[7m' - - -cat << EOF - -$rst - $f3 ▄███████▄ $f1 ▄██████▄ $f2 ▄██████▄ $f4 ▄██████▄ $f5 ▄██████▄ $f6 ▄██████▄ - $f3▄█████████▀▀ $f1▄$f7█▀█$f1██$f7█▀█$f1██▄ $f2▄█$f7███$f2██$f7███$f2█▄ $f4▄█$f7███$f4██$f7███$f4█▄ $f5▄█$f7███$f5██$f7███$f5█▄ $f6▄██$f7█▀█$f6██$f7█▀█$f6▄ - $f3███████▀ $f7▄▄ ▄▄ ▄▄ $f1█$f7▄▄█$f1██$f7▄▄█$f1███ $f2██$f7█ █$f2██$f7█ █$f2██ $f4██$f7█ █$f4██$f7█ █$f4██ $f5██$f7█ █$f5██$f7█ █$f5██ $f6███$f7█▄▄$f6██$f7█▄▄$f6█ - $f3███████▄ $f7▀▀ ▀▀ ▀▀ $f1████████████ $f2████████████ $f4████████████ $f5████████████ $f6████████████ - $f3▀█████████▄▄ $f1██▀██▀▀██▀██ $f2██▀██▀▀██▀██ $f4██▀██▀▀██▀██ $f5██▀██▀▀██▀██ $f6██▀██▀▀██▀██ - $f3 ▀███████▀ $f1▀ ▀ ▀ ▀ $f2▀ ▀ ▀ ▀ $f4▀ ▀ ▀ ▀ $f5▀ ▀ ▀ ▀ $f6▀ ▀ ▀ ▀ -$bld - $f3 ▄███████▄ $f1 ▄██████▄ $f2 ▄██████▄ $f4 ▄██████▄ $f5 ▄██████▄ $f6 ▄██████▄ - $f3▄█████████▀▀ $f1▄$f7█▀█$f1██$f7█▀█$f1██▄ $f2▄█$f7█ █$f2██$f7█ █$f2█▄ $f4▄█$f7█ █$f4██$f7█ █$f4█▄ $f5▄█$f7█ █$f5██$f7█ █$f5█▄ $f6▄██$f7█▀█$f6██$f7█▀█$f6▄ - $f3███████▀ $f7▄▄ ▄▄ ▄▄ $f1█$f7▄▄█$f1██$f7▄▄█$f1███ $f2██$f7███$f2██$f7███$f2██ $f4██$f7███$f4██$f7███$f4██ $f5██$f7███$f5██$f7███$f5██ $f6███$f7█▄▄$f6██$f7█▄▄$f6█ - $f3███████▄ $f7▀▀ ▀▀ ▀▀ $f1████████████ $f2████████████ $f4████████████ $f5████████████ $f6████████████ - $f3▀█████████▄▄ $f1██▀██▀▀██▀██ $f2██▀██▀▀██▀██ $f4██▀██▀▀██▀██ $f5██▀██▀▀██▀██ $f6██▀██▀▀██▀██ - $f3 ▀███████▀ $f1▀ ▀ ▀ ▀ $f2▀ ▀ ▀ ▀ $f4▀ ▀ ▀ ▀ $f5▀ ▀ ▀ ▀ $f6▀ ▀ ▀ ▀ -$rst -EOF diff --git a/code/fun/pipes b/code/fun/pipes deleted file mode 100755 index 43e7046..0000000 --- a/code/fun/pipes +++ /dev/null @@ -1,122 +0,0 @@ -#!/usr/bin/env bash -# pipes.sh: Animated pipes terminal screensaver. -# -# This modified version is maintained at: -# -# https://github.com/livibetter/pipes.sh - -# options: -# s = straight [5-15] -# f = rate [20-100] -# t = style [0-5] -# r = ttl - -VERSION=0.1.0 - -M=32768 -p=1 -f=75 s=13 r=2000 t=0 -w=$(tput cols) h=$(tput lines) -# ab -> idx = a*4 + b -# 0: up, 1: right, 2: down, 3: left -# 00 means going up , then going up -> ┃ -# 12 means going right, then going down -> ┓ -sets=( - "┃┏ ┓┛━┓ ┗┃┛┗ ┏━" - "│╭ ╮╯─╮ ╰│╯╰ ╭─" - "│┌ ┐┘─┐ └│┘└ ┌─" - "║╔ ╗╝═╗ ╚║╝╚ ╔═" - "|+ ++-+ +|++ +-" - "|/ \/-\ \|/\ /-" -) -v=() -RNDSTART=0 -NOCOLOR=0 - -OPTIND=1 -while getopts "p:t:f:s:r:RChv" arg; do -case $arg in - p) ((p=(OPTARG>0)?OPTARG:p));; - t) ((OPTARG>=0 && OPTARG<${#sets[@]})) && V+=($OPTARG);; - f) ((f=(OPTARG>19 && OPTARG<101)?OPTARG:f));; - s) ((s=(OPTARG>4 && OPTARG<16 )?OPTARG:s));; - r) ((r=(OPTARG>=0)?OPTARG:r));; - R) RNDSTART=1;; - C) NOCOLOR=1;; - h) echo -e "Usage: $(basename $0) [OPTION]..." - echo -e "Animated pipes terminal screensaver.\n" - echo -e " -p [1-]\tnumber of pipes (D=1)." - echo -e " -t [0-$((${#sets[@]} - 1))]\ttype of pipes, can be used more than once (D=0)." - echo -e " -f [20-100]\tframerate (D=75)." - echo -e " -s [5-15]\tprobability of a straight fitting (D=13)." - echo -e " -r LIMIT\treset after x characters, 0 if no limit (D=2000)." - echo -e " -R \t\trandom starting point." - echo -e " -C \t\tno color." - echo -e " -h\t\thelp (this screen)." - echo -e " -v\t\tprint version number.\n" - exit 0;; - v) echo "$(basename -- "$0") $VERSION" - exit 0 - esac -done - -# set default values if not by options -((${#V[@]})) || V=(0) - -# Attempt to workaround for Bash versions < 4, such as 3.2 on Mac: -# https://gist.github.com/livibetter/4689307/#comment-892368 -# Untested--in conduction of using shebang `env bash`--should fall back to -# `sleep` -printf -v SLEEP "read -t0.0$((1000/f)) -n 1" -if $SLEEP &>/dev/null; (($? != 142)); then - printf -v SLEEP "sleep 0.0$((1000/f))" -fi - -cleanup() { - # clear up standard input - read -t 0 && cat /dev/null - - tput rmcup - tput cnorm - stty echo - exit 0 -} -trap cleanup SIGHUP SIGINT SIGTERM - -for (( i=1; i<=p; i++ )); do - c[i]=$((i%8)) n[i]=0 l[i]=0 - ((x[i]=RNDSTART==1?RANDOM*w/32768:w/2)) - ((y[i]=RNDSTART==1?RANDOM*h/32768:h/2)) - v[i]=${V[${#V[@]} * RANDOM / M]} -done - -stty -echo -tput smcup -tput reset -tput civis -# any key press exits the loop and this script -while $SLEEP; (($? > 128)) || [[ $SLEEP = sleep* ]] && (($? == 0)); do - for (( i=1; i<=p; i++ )); do - # New position: - ((${l[i]}%2)) && ((x[i]+=-${l[i]}+2,1)) || ((y[i]+=${l[i]}-1)) - - # Loop on edges (change color on loop): - ((${x[i]}>w||${x[i]}<0||${y[i]}>h||${y[i]}<0)) && ((c[i]=RANDOM%8, v[i]=V[${#V[@]}*RANDOM/M])) - ((x[i]=(x[i]+w)%w)) - ((y[i]=(y[i]+h)%h)) - - # New random direction: - ((n[i]=RANDOM%s-1)) - ((n[i]=(${n[i]}>1||${n[i]}==0)?${l[i]}:${l[i]}+${n[i]})) - ((n[i]=(${n[i]}<0)?3:${n[i]}%4)) - - # Print: - tput cup ${y[i]} ${x[i]} - [[ $NOCOLOR == 0 ]] && echo -ne "\033[1;3${c[i]}m" - echo -n "${sets[v[i]]:l[i]*4+n[i]:1}" - l[i]=${n[i]} - done - ((r>0 && t*p>=r)) && tput reset && tput civis && t=0 || ((t++)) -done - -cleanup \ No newline at end of file diff --git a/code/fun/pipesx b/code/fun/pipesx deleted file mode 100755 index a937bf8..0000000 --- a/code/fun/pipesx +++ /dev/null @@ -1,193 +0,0 @@ -#!/bin/bash -# Animated pipes.sh terminal screensaver at an angle. -# Copyright (C) 2013, 2014 by Yu-Jie Lin -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. -# -# Website: https://github.com/livibetter/pipesX.sh - -VERSION=0.1.0 - -W=$(tput cols) H=$(tput lines) -# maximal random value + 1 -M=32768 - -SETS=('╱╲' '/\') -COLORS=(31 32 33 34 35 36 37) - -# default values -N=1 -T=() -I=0.05 -P=25 -R=$((W * H / 4)) - -HELP="Usage: $(basename $0) [OPTIONS] -Animated pipes.sh terminal screensaver at an angle. - -Options: - - -n [1-] number of pipes. (Default: $N) - -t [0-$((${#SETS[@]} - 1))] types of pipes, can be used more than once. (Default: $T) - -i [float] piping interval or maze generation interval. (Default: $I) - -P [0-100] probability of a turning pipe or of \\ in maze generation. (Default: $P) - -r [LIMIT] reset after x characters, 0 if no limit. (Default: $R) - -R random starting point. - -C no color. - -X maze generation. - -h this help message. - -v print version number. -" - -while getopts "n:t:i:P:r:RCXhv" arg; do - case $arg in - n) - ((N = OPTARG > 0 ? OPTARG : N)) - ;; - t) - T+=($(((OPTARG >= 0 && OPTARG < ${#SETS[@]}) ? OPTARG : T))) - ;; - i) - I=$OPTARG - ;; - P) - ((P = (OPTARG >= 0 && OPTARG <= 100) ? OPTARG : P)) - ;; - r) - ((R = OPTARG >= 0 ? OPTARG : R)) - ;; - R) - RNDSTART=1 - ;; - C) - NOCOLOR=1 - ;; - X) - MAZE=1 - ;; - h) - echo -e "$HELP" - exit 0 - ;; - v) - echo "$(basename -- "$0") $VERSION" - exit 0 - esac -done - -# set to default values if not by options -((${#T[@]})) || T=(0) - -do_exit() { - # Show cursor and echo stdin - echo -ne "\e[?25h" - stty echo - clear - exit 0 - } -trap do_exit INT TERM - -# No echo stdin and hide the cursor -stty -echo -echo -ne "\e[?25l" - -# maze geneartion -while [[ $MAZE ]] && clear; do - [[ $NOCOLOR ]] || echo -ne "\e[1;${COLORS[${#COLORS[@]} * RANDOM / M]}m" - for ((i = 0; i < W * H; i++ )); do - echo -ne ${SETS[T]:100 * RANDOM / M < P:1} - done - read -t $I -n 1 && [[ $REPLY =~ q|Q ]] && do_exit -done - -# initialze values -for ((n = 0; n < N; n++)); do - ((X[n] = RNDSTART ? (W + 2) * RANDOM / M : W / 2)) - ((Y[n] = RNDSTART ? (H + 2) * RANDOM / M : H / 2)) - D[n]=$((4 * RANDOM / M)) - C[n]=${COLORS[${#COLORS[@]} * RANDOM / M]} - t[n]=${T[${#T[@]} * RANDOM / M]} -done - -clear -while :; do - for ((n = 0; n < N; n++, CC = 0)); do - x=${X[n]} y=${Y[n]} - d=${D[n]} c=${C[n]} - - # calculate new direction `d` - # 1 0 - # \/ 4 directions 0 to 3 - # /\ - # 2 3 - # valid directions: d: dd', d' is the new direction - # d - # 0: / 00 \ 01 03 - # / / /\ - # 1: / 10 \ 11 12 - # \ \ /\ - # 2: \/ 21 / 22 / 23 - # / \ - # 3: \/ 30 \ 32 \ 33 - # / \ - ((d = (100 * RANDOM / M) < P ? ((d + 1) + 2 * (RANDOM % 2)) % 4 : d)) - ((e = (d + 1) % 4)) - - # calculate new position - # d' x' y' - # 0: x+1 y-1 - # 1: x-1 y-1 - # 2: x-1 y+1 - # 3: x+1 y+1 - ((xn = e < 2 ? x + 1 : x - 1)) - ((yn = d < 2 ? y - 1 : y + 1)) - - # adjust position and change color? - ((d < 2 && y == 0)) && ((yn--, CC=1)) - ((e > 1 && x == 0)) && ((xn--, CC=1)) - ((d > 1 && y == H)) && ((yn++, CC=1)) - ((e < 2 && x == W)) && ((xn++, CC=1)) - ((CC)) && c=${COLORS[${#COLORS[@]} * RANDOM / M]} - ((CC)) && t[n]=${T[${#T[@]} * RANDOM / M]} - - # warp pipe - ((xn = (xn + W + 1) % (W + 1))) - ((yn = (yn + H + 1) % (H + 1))) - - # calculate position in terminal - # d' xt yt - # 0: x' y'+1 - # 1: x'+1 y'+1 - # 2: x'+1 y' - # 3: x' y' - ((xt = e < 2 ? xn : xn + 1)) - ((yt = d < 2 ? yn + 1 : yn)) - - echo -ne "\e[${yt};${xt}H" - [[ $NOCOLOR ]] || echo -ne "\e[1;${c}m" - echo -n "${SETS[t[n]]:d%2:1}" - - X[n]=$xn Y[n]=$yn - D[n]=$d C[n]=$c - done - read -t $I -n 1 && [[ $REPLY =~ q|Q ]] && do_exit - ((R)) && ((r += N, r >= R)) && r=0 && clear -done - -do_exit \ No newline at end of file diff --git a/code/fun/rain b/code/fun/rain deleted file mode 100755 index 8a8d8f6..0000000 --- a/code/fun/rain +++ /dev/null @@ -1,100 +0,0 @@ -#!/bin/bash -RAINS=("|" "│" "┃" "┆" "┇" "┊" "┋" "╽" "╿") -COLORS=("\e[37m" "\e[37;1m") -# More from 256 color mode -for i in {244..255}; do - COLORS=("${COLORS[@]}" "\e[38;5;${i}m") -done -NRAINS=${#RAINS[@]} -NCOLORS=${#COLORS[@]} -NUM_RAIN_METADATA=5 - - -sigwinch() { - TERM_WIDTH=$(tput cols) - TERM_HEIGHT=$(tput lines) - STEP_DURATION=0.025 - ((MAX_RAINS = TERM_WIDTH * TERM_HEIGHT / 4)) - ((MAX_RAIN_LENGTH = TERM_HEIGHT < 10 ? 1 : TERM_HEIGHT / 10)) - # In percentage - ((NEW_RAIN_ODD = TERM_HEIGHT > 50 ? 100 : TERM_HEIGHT * 2)) - ((NEW_RAIN_ODD = NEW_RAIN_ODD * 75 / 100)) - ((FALLING_ODD = TERM_HEIGHT > 25 ? 100 : TERM_HEIGHT * 4)) - ((FALLING_ODD = FALLING_ODD * 90 / 100)) - } - -do_exit() { - echo -ne "\e[${TERM_HEIGHT};1H\e[0K" - - # Show cursor and echo stdin - echo -ne "\e[?25h" - stty echo - exit 0 - } - -do_render() { - # Clean screen first - for ((idx = 0; idx < num_rains * NUM_RAIN_METADATA; idx += NUM_RAIN_METADATA)); do - X=${rains[idx]} - Y=${rains[idx + 1]} - LENGTH=${rains[idx + 4]} - for ((y = Y; y < Y + LENGTH; y++)); do - (( y < 1 || y > TERM_HEIGHT )) && continue - echo -ne "\e[${y};${X}H " - done - done - - for ((idx = 0; idx < num_rains * NUM_RAIN_METADATA; idx += NUM_RAIN_METADATA)); do - if ((100 * RANDOM / 32768 < FALLING_ODD)); then - # Falling - if ((++rains[idx + 1] > TERM_HEIGHT)); then - # Out of screen, bye sweet <3 - rains=("${rains[@]:0:idx}" - "${rains[@]:idx+NUM_RAIN_METADATA:num_rains*NUM_RAIN_METADATA}") - ((num_rains--)) - continue - fi - fi - X=${rains[idx]} - Y=${rains[idx + 1]} - RAIN=${rains[idx + 2]} - COLOR=${rains[idx + 3]} - LENGTH=${rains[idx + 4]} - for ((y = Y; y < Y + LENGTH; y++)); do - (( y < 1 || y > TERM_HEIGHT )) && continue - echo -ne "\e[${y};${X}H${COLOR}${RAIN}" - done - done - } - -trap do_exit TERM INT -trap sigwinch WINCH -# No echo stdin and hide the cursor -stty -echo -echo -ne "\e[?25l" - -echo -ne "\e[2J" -rains=() -sigwinch -while :; do - read -n 1 -t $STEP_DURATION ch - case "$ch" in - q|Q) - do_exit - ;; - esac - - if ((num_rains < MAX_RAINS)) && ((100 * RANDOM / 32768 < NEW_RAIN_ODD)); then - # Need new |, 1-based - RAIN="${RAINS[NRAINS * RANDOM / 32768]}" - COLOR="${COLORS[NCOLORS * RANDOM / 32768]}" - LENGTH=$((MAX_RAIN_LENGTH * RANDOM / 32768 + 1)) - X=$((TERM_WIDTH * RANDOM / 32768 + 1)) - Y=$((1 - LENGTH)) - rains=("${rains[@]}" "$X" "$Y" "$RAIN" "$COLOR" "$LENGTH") - ((num_rains++)) - fi - - # Let rain fall! - do_render -done \ No newline at end of file diff --git a/code/fun/screenfetch b/code/fun/screenfetch deleted file mode 100755 index 70fc4d8..0000000 --- a/code/fun/screenfetch +++ /dev/null @@ -1,1378 +0,0 @@ -#!/bin/bash -# -# screenFetch (v2.4.0) -# -# Script to fetch system and theme settings for screenshots in most mainstream -# Linux distributions. -# -# This script is released under the General Public License (GPL). Though it's open -# source and you are free to do with it as you please, I would appreciate if you would -# send any code modifications/additions upstream to me so that I can include them in -# the official release. Please do not claim this code as your own as I have worked -# very hard on this and am quite proud to call this script my own. -# -# Yes, I do realize some of this is horribly ugly coding. Any ideas/suggestions would be -# appreciated by emailing me or by stopping by http://github.com/KittyKatt/screenFetch . You -# could also drop in on my IRC network, SilverIRC, at irc://kittykatt.silverirc.com:6667/meowz -# to put forth suggestions/ideas. Thank you. -# - -scriptVersion="2.4.0" - -###################### -# Settings for fetcher -###################### - -# This setting controls what ASCII logo is displayed. Available: Arch Linux (Old and Current Logos), Linux Mint, Ubuntu, Crunchbang, Debian, Gentoo, Mandrake/Mandriva, Slackware, SUSE, Fedora, BSD, and None -# distro="Linux" - -# This sets the information to be displayed. Available: distro, Kernel, DE, WM, Win_theme, Theme, Icons, Font, Background, ASCII. To get just the information, and not a text-art logo, you would take "ASCII" out of the below variable. -#display="host distro kernel uptime shell res de wm wmtheme gtk icons font background" -display=( host distro kernel uptime pkgs shell res de wm wmtheme gtk cpu mem ) -# Display Type: ASCII or Text -display_type="ASCII" - -# Colors to use for the information found. These are set below according to distribution. If you would like to set your OWN color scheme for these, uncomment the lines below and edit them to your heart's content. -# textcolor="\e[0m" -# labelcolor="\e[1;34m" - -# WM & DE process names -# Removed WM's: compiz -wmnames="fluxbox openbox blackbox xfwm4 metacity kwin icewm pekwm fvwm dwm awesome wmaker stumpwm xmonad musca i3 ratpoison scrotwm wmfs wmii beryl subtle e16 enlightenment sawfish emerald monsterwm dminiwm" -denames="gnome-session xfce-mcs-manage xfce4-session xfconfd ksmserver lxsession gnome-settings-daemon mate-session mate-settings-daemon" - -# Export theme settings -# screenFetch has the capability (on some WM's and GTK) to export your GTK and WM settings to an archive. Specify Yes if you want this and No if you do not. -exportTheme= - -# Screenshot Settings -# This setting lets the script know if you want to take a screenshot or not. 1=Yes 0=No -screenshot= -# You can specify a custom screenshot command here. Just uncomment and edit. Otherwise, we'll be using the default command: scrot -cd3. -# screenCommand="scrot -cd5" -hostshot= -baseurl="http://www.example.com" -serveraddr="www.example.com" -scptimeout="20" -serverdir="/path/to/directory" -shotfile=$(echo "screenFetch-`date +'%Y-%m-%d_%H-%M-%S'`.png") - -# Verbose Setting - Set to 1 for verbose output. -verbosity= - -verboseOut () { - echo -e "\e[1;31m:: \e[0m$1" -} - -errorOut () { - echo -e "\e[1;37m[[ \e[1;31m! \e[1;37m]] \e[0m$1" -} - -############################################# -#### CODE No need to edit past here CODE #### -############################################# - -#################### -# Static Variables -#################### -c0="\e[0m" # Reset Text -bold="\e[1m" # Bold Text -underline="\e[4m" # Underline Text -display_index=0 - -##################### -# Begin Flags Phase -##################### - -while getopts ":hsmevVntlc:D:o:B" flags; do - case $flags in - h) - echo -e "${underline}Usage${c0}:" - echo -e " screenFetch [OPTIONAL FLAGS]" - echo "" - echo "screenFetch - a CLI Bash script to show system/theme info in screenshots." - echo "" - echo -e "${underline}Supported Distributions${c0}: Arch Linux (Old and Current Logos), Linux Mint," - echo -e " LMDE, Ubuntu, Crunchbang, Debian, Gentoo, Fedora, SolusOS," - echo -e " Mandrake/Mandriva, Slackware, Frugalware, openSUSE, Mageia," - echo -e " Peppermint, and BSD" - echo -e "${underline}Supported Desktop Managers${c0}: KDE, GNOME, XFCE, and LXDE, and Not Present" - echo -e "${underline}Supported Window Managers${c0}: PekWM, OpenBox, FluxBox, BlackBox, Xfwm4," - echo -e " Metacity, StumpWM, KWin, IceWM, FVWM," - echo -e " DWM, Awesome, XMonad, Musca, i3, WindowMaker," - echo -e " Ratpoison, wmii, WMFS, ScrotWM, subtle," - echo -e " Emerald, E17 and Beryl." - echo "" - echo -e "${underline}Options${c0}:" - echo -e " ${bold}-v${c0} Verbose output." - echo -e " ${bold}-o 'OPTIONS'${c0} Allows for setting script variables on the" - echo -e " command line. Must be in the following format..." - echo -e " 'OPTION1=\"OPTIONARG1\";OPTION2=\"OPTIONARG2\"'" - #echo -e " ${bold}-d 'ARGUMENTS'${c0} Allows for setting what information is displayed" - #echo -e " on the command line. Format must be as follows:" - #echo -e " 'OPTION OPTION OPTION OPTION'. Valid options are" - #echo -e " host, distro, Kernel, Uptime, Shell, Resolution, DE, WM," - #echo -e " Win_theme, Theme, Icons, Font, ASCII, Background." - echo -e " ${bold}-n${c0} Do no display ASCII distribution logo." - echo -e " ${bold}-t${c0} Truncate output based on terminal width (Experimental!)." - echo -e " ${bold}-s(m)${c0} Using this flag tells the script that you want it" - echo -e " to take a screenshot. Use the -m flag if you would like" - echo -e " to move it to a new location afterwards." - echo -e " ${bold}-B${c0} Enable background detection." - echo -e " ${bold}-e${c0} When this flag is specified, screenFetch will attempt" - echo -e " to export all of your theme settings and archive them" - echo -e " up for uploading." - echo -e " ${bold}-l${c0} Specify that you have a light background. This turns" - echo -e " all white text into dark gray text (in ascii logos and" - echo -e " in information output)." - echo -e " ${bold}-c 'COMMAND'${c0} Here you can specify a custom screenshot command for" - echo -e " the script to execute. Surrounding quotes are required." - echo -e " ${bold}-D 'DISTRO'${c0} Here you can specify your distribution for the script" - echo -e " to use. Surrounding quotes are required." - echo -e " ${bold}-V${c0} Display current script version." - echo -e " ${bold}-h${c0} Display this help." - exit - ;; - s) screenshot=1; continue;; - m) hostshot=1; continue;; - e) exportTheme=1; continue;; - v) verbosity=1; continue;; - V) - echo -e $underline"screenFetch"$c0" - Version $scriptVersion" - echo "Copyright (C) Brett Bohnenkamper (kittykatt@silverirc.com)" - echo "" - echo "This is free software; see the source for copying conditions. There is NO warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - exit - ;; - D) distro=$OPTARG; continue;; - t) truncateSet="Yes";; - c) screenCommand=$OPTARG; continue;; - n) display_type="Text";; - o) overrideOpts=$OPTARG; continue;; - # d) overrideDisplay=$OPTARG; continue;; - l) c1="\e[1;30m";; - # B) background_detect="1"; continue;; - :) errorOut "Error: You're missing an argument somewhere. Exiting."; exit;; - ?) errorOut "Error: Invalid flag somewhere. Exiting."; exit;; - *) errorOut "Error"; exit;; - esac -done - -################### -# End Flags Phase -################### - - -#################### -# Override Options -#################### - -if [[ "$overrideOpts" ]]; then - [[ "$verbosity" -eq "1" ]] && verboseOut "Found 'o' flag in syntax. Overriding some script variables..." - OLD_IFS="$IFS" - IFS=";" - for overopt in "$overrideOpts"; do - eval "$overrideOpts" - done - IFS="$OLD_IFS" -fi -#if [[ "$overrideDisplay" ]]; then -# [[ "$verbosity" -eq "1" ]] && verboseOut "Found 'd' flag in syntax. Overriding some display options..." -# display="$overrideDisplay" -#fi - - -######################### -# Begin Detection Phase -######################### - - -# Host and User detection - Begin -detecthost () { - myUser=$(echo "$USER") - myHost=$(hostname) - [[ "$verbosity" -eq "1" ]] && verboseOut "Finding hostname and user...found as '$myUser@$myHost'" -} - - -######################### -# Begin Detection Phase -######################### - - -# Host and User detection - Begin -detecthost () { - myUser=$(echo "$USER") - # net-tools is becoming deprecated - # myHost=$(hostname) - myHost=$(cat /proc/sys/kernel/hostname) - [[ "$verbosity" -eq "1" ]] && verboseOut "Finding hostname and user...found as '$myUser@$myHost'" -} - -# Distro Detection - Begin -detectdistro () { - if [[ -z $distro ]]; then - distro="Unknown" - # LSB Release Check - if which lsb_release >/dev/null 2>&1; then - distro_detect=$(lsb_release -i | sed -e 's/Distributor ID://' -e 's/\t//g') - if [ "$distro_detect" == "Arch" ]; then distro="Arch Linux"; fi - if [ "$distro_detect" == "Debian" ]; then distro="CrunchBang"; fi - if [ "$distro_detect" == "SolusOS" ]; then - distro="SolusOS" - distro_codename=null - distro_release=null - fi - if [ "$distro_detect" == "LinuxMint" ]; then distro="Mint" - if [ "$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g')" == "debian" ]; then - distro="LMDE" - distro_codename=null - distro_release=null - fi - fi - if [ "$distro_detect" == "Mageia" ]; then distro="Mageia"; fi - if [ "$distro_detect" == "MandrivaLinux" ]; then distro="Mandriva" - if [ "$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g')" == "turtle" ]; then - distro="Mandriva"-lsb_release | sed -e 's/Release://' -e 's/\t//g' - distro_codename=null - fi - if [ "$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g')" == "Henry_Farman" ]; then - distro="Mandriva"-lsb_release | sed -e 's/Release://' -e 's/\t//g' - distro_codename=null - fi - if [ "$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g')" == "Farman" ]; then - distro="Mandriva"-lsb_release | sed -e 's/Release://' -e 's/\t//g' - distro_codename=null - fi - if [ "$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g')" == "Adelie" ]; then - distro="Mandriva"-lsb_release | sed -e 's/Release://' -e 's/\t//g' - distro_codename=null - fi - if [ "$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g')" == "pauillac" ]; then - distro="Mandriva"-lsb_release | sed -e 's/Release://' -e 's/\t//g' - distro_codename=null - fi - fi - if [ "$distro_detect" == "Fedora" ]; then distro="Fedora"; fi - if [ "$distro_detect" == "CrunchBang" ]; then distro="CrunchBang"; fi - if [ "$distro_detect" == "Ubuntu" ]; then distro="Ubuntu"; fi - if [ "$distro_detect" == "frugalware" ]; then - distro="Frugalware" - distro_codename=null - distro_release=null - fi - if [ "$distro_detect" == "Peppermint" ]; then - distro="Peppermint" - distro_codename=null - fi - if [ "$distro_detect" == "SUSE LINUX" ]; then distro="openSUSE"; fi - if [[ $(lsb_release -r | sed -e 's/Release://' -e 's/\t//g') != "n/a" ]] && [[ ! $distro_release ]]; then distro_release=$(lsb_release -r | sed -e 's/Release://' -e 's/\t//g') && distro_more="$distro $distro_release"; fi - if [[ $(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g') != "n/a" ]] && [[ ! $distro_codename ]]; then distro_codename=$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g') && distro_more="$distro $distro_codename"; fi - # Check and Parsing for /etc/os-release - elif [ -f /etc/os-release ]; then - distrib_id=$(awk -F'=' '/^ID/{print $2}' /etc/os-release 2>/dev/null) - if [ "$distrib_id" == "frugalware" ]; then distro="Frugalware"; fi - # Existing File Check - else - if [ -f /etc/debian_version ]; then distro="CrunchBang"; fi - if grep -i ubuntu /etc/lsb-release >/dev/null 2>&1; then distro="Ubuntu"; fi - if grep -i SolusOS /etc/issue >/dev/null 2>&1; then distro="SolusOS"; fi - if grep -i mint /etc/lsb-release >/dev/null 2>&1; then - if grep -i debian /etc/lsb-release >/dev/null 2>&1; then distro="LMDE" - else distro="Mint"; fi - fi - if [ -f /etc/arch-release ]; then distro="Arch Linux"; fi - if [ -f /etc/fedora-release ]; then distro="Fedora"; fi - if [ -f /etc/redhat-release ]; then distro="Red Hat Linux"; fi - if [ -f /etc/slackware-version ]; then distro="Slackware"; fi - if [ -f /etc/SuSE-release ]; then distro="openSUSE"; fi - if [ -f /etc/mageia-release ]; then distro="Mageia"; fi - if [ -f /etc/mandrake-release ]; then distro="Mandrake"; fi - if [ -f /etc/mandriva-release ]; then distro="Mandriva"; fi - if [ -f /etc/crunchbang-lsb-release ]; then distro="CrunchBang"; fi - if [ -f /etc/gentoo-release ]; then distro="Gentoo"; fi - if [ -f /var/run/dmesg.boot ] && grep -i bsd /var/run/dmesg.boot; then distro="BSD"; fi - if [ -f /usr/share/doc/tc/release.txt ]; then distro="TinyCore"; fi - if [ -f /etc/frugalware-release ]; then distro="Frugalware"; fi - if grep -q "SolusOS" /etc/issue; then distro="SolusOS"; fi - fi - else - - declare -l lcase - lcase=$distro - - case $lcase in - - arch*linux*old) distro="Arch Linux - Old" ;; - arch*linux) distro="Arch Linux" ;; - fedora) distro="Fedora" ;; - mageia) distro="Mageia" ;; - mandriva) distro="Mandriva" ;; - mandrake) distro="Mandrake" ;; - crunchbang) distro="CrunchBang" ;; - mint) distro="Mint" ;; - lmde) distro="LMDE" ;; - opensuse) distro="openSUSE" ;; - ubuntu) distro="Ubuntu" ;; - debain) distro="CrunchBang" ;; - bsd) distro="BSD" ;; - red*hat*) distro="Red Hat Linux" ;; - crunchbang) distro="CrunchBang" ;; - gentoo) distro="Gentoo" ;; - slackware) distro="Slackware" ;; - frugalware) distro="Frugalware" ;; - peppermint) distro="Peppermint" ;; - - esac - - fi - - [[ "$verbosity" -eq "1" ]] && verboseOut "Finding distro...found as '$distro $distro_release'" -} -# Distro Detection - End - -# Find Number of Running Processes -# processnum="$(( $( ps aux | wc -l ) - 1 ))" - -# Kernel Version Detection - Begin -detectkernel () { - kernel=`uname -r` - [[ "$verbosity" -eq "1" ]] && verboseOut "Finding kernel version...found as '$kernel'" -} -# Kernel Version Detection - End - - -# Uptime Detection - Begin -detectuptime () { - uptime=`awk -F. '{print $1}' /proc/uptime` - secs=$((${uptime}%60)) - mins=$((${uptime}/60%60)) - hours=$((${uptime}/3600%24)) - days=$((${uptime}/86400)) - uptime="${mins}m" - if [ "${hours}" -ne "0" ]; then - uptime="${hours}h ${uptime}" - fi - if [ "${days}" -ne "0" ]; then - uptime="${days}d ${uptime}" - fi - [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current uptime...found as '$uptime'" -} -# Uptime Detection - End - - -# Package Count - Begin -detectpkgs () { - case $distro in - 'Arch Linux') pkgs=$(pacman -Qq | wc -l) ;; - 'Frugalware') pkgs=$(pacman-g2 -Qq | wc -l) ;; - 'Ubuntu'|'Mint'|'SolusOS'|'Debian'|'LMDE'|'CrunchBang'|'Peppermint') pkgs=$(dpkg --get-selections | wc -l) ;; - 'Slackware') pkgs=$(ls -1 /var/log/packages | wc -l) ;; - 'Gentoo') pkgs=$(ls -d /var/db/pkg/*/* | wc -l) ;; - 'Fedora'|'openSUSE'|'Red Hat Linux'|'Mandriva'|'Mandrake'|'Mageia') pkgs=$(rpm -qa | wc -l) ;; - esac - [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current package count...found as '$pkgs'" -} - - - - -# CPU Detection - Begin -detectcpu () { - cpu=$(awk -F':' '/model name/{ print $2 }' /proc/cpuinfo | head -n 1 | tr -s " " | sed 's/^ //') - find='(R) Core(TM)' - replace='' - cpu=${cpu/$find/$replace} - # cpu_mhz=$(awk -F':' '/cpu MHz/{ print $2 }' /proc/cpuinfo | head -n 1) - # cpu_ghz=$(echo "scale=2; ${cpu_mhz} / 1000" | bc ) - [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current CPU...found as '$cpu'" -} -# CPU Detection - End - - - -# Memory Detection - Begin -detectmem () { - total_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo) - totalmem=$((${total_mem}/1024)) - if free | grep -q '/cache'; then - used_mem=$(free | awk '/cache:/ { print $3 }') - usedmem=$((${used_mem}/1024)) - else - free_mem=$(awk '/MemFree/ { print $2 }' /proc/meminfo) - used_mem=$((${total_mem} - ${free_mem})) - usedmem=$((${used_mem}/1024)) - fi - mem="${usedmem}MB / ${totalmem}MB" - [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current RAM usage...found as '$mem'" -} -# Memory Detection - End - - -# Shell Detection - Begin -detectshell () { - myShell=$(echo $SHELL | awk -F"/" '{print $NF}') - [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current shell...found as '$myShell'" -} -# Shell Detection - End - - -# Resolution Detection - Begin -detectres () { - if [[ -n $DISPLAY ]]; then - xResolution=$(xdpyinfo | sed -n 's/.*dim.* \([0-9]*x[0-9]*\) .*/\1/pg' | sed ':a;N;$!ba;s/\n/ /g') - else - xResolution="No X Server" - fi - [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current resolution(s)...found as '$xResolution'" -} -# Resolution Detection - End - - -# DE Detection - Begin -detectde () { - DE="Not Present" - for each in $denames; do - if [[ `ps aux` =~ "$each" ]]; then - [ "$each" == "gnome-session" -o "$each" == "gnome-settings-daemon" ] && DE="GNOME" && DEver=$(gnome-session --version | awk {'print $NF'}) - [ "$each" == "mate-session" -o "$each" == "mate-settings-daemon" ] && DE="MATE" && DEver=$(mate-session --version | awk {'print $NF'}) - [ "$each" == "xfce4-session" ] && DE="XFCE" && DEver=$(xfce4-settings-manager --version | grep -m 1 "" | awk {'print $2'}) - [ "$each" == "ksmserver" ] && DE="KDE" && DEver=$(kwin --version | awk '/^Qt/ {data="Qt v" $2};/^KDE/ {data=$2 " (" data ")"};END{print data}') - [ "$each" == "lxsession" ] && DE="LXDE" && DEver=$(lxpanel -v) - fi - done - [[ "$verbosity" -eq "1" ]] && verboseOut "Finding desktop environment...found as '$DE'" -} -### DE Detection - End - - -# WM Detection - Begin -detectwm () { -WM="Not Found" - userId="$(id -u ${USER})" - for each in $wmnames; do - PID="$(pgrep -U ${userId} $each)" - if [ "$PID" ]; then - case $each in - 'fluxbox') WM="FluxBox";; - 'openbox') WM="OpenBox";; - 'blackbox') WM="Blackbox";; - 'xfwm4') WM="Xfwm4";; - 'metacity') WM="Metacity";; - 'kwin') WM="KWin";; - 'icewm') WM="IceWM";; - 'pekwm') WM="PekWM";; - 'fvwm') WM="FVWM";; - 'dwm') WM="DWM";; - 'awesome') WM="Awesome";; - 'wmaker') WM="WindowMaker";; - 'stumpwm') WM="StumpWM";; - 'xmonad') WM="XMonad";; - 'musca') WM="Musca";; - 'i3') WM="i3";; - 'ratpoison') WM="Ratpoison";; - 'scrotwm') WM="ScrotWM";; - 'wmfs') WM="WMFS";; - 'wmii') WM="wmii";; - 'subtle') WM="subtle";; - 'e16') WM="E16";; - 'enlightenment') WM="E17";; - 'emerald') WM="Emerald";; - 'sawfish') WM="Sawfish";; - 'beryl') WM="Beryl";; - 'monsterwm') WM="monsterwm";; - 'dminiwm') WM="dminiwm";; - esac - fi - done - [[ "$verbosity" -eq "1" ]] && verboseOut "Finding window manager...found as '$WM'" -} -# WM Detection - End - - -# WM Theme Detection - BEGIN -detectwmtheme () { - Win_theme="Not Found" - case $WM in - 'PekWM') if [ -f $HOME/.pekwm/config ]; then Win_theme="$(awk -F"/" '/Theme/ {gsub(/\"/,""); print $NF}' $HOME/.pekwm/config)"; fi;; - 'OpenBox') - if [ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/openbox/rc.xml ]; then - Win_theme="$(awk -F"[<,>]" '/]" '//dev/null && basename "$a"; done)"; fi;; - 'FVWM') Win_theme="Not Present";; - 'DWM') Win_theme="Not Present";; - 'Awesome') if [ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/awesome/rc.lua ]; then Win_theme="$(grep -e '^[^-].*\(theme\|beautiful\).*lua' ${XDG_CONFIG_HOME:-${HOME}/.config}/awesome/rc.lua | grep '[a-zA-Z0-9]\+/[a-zA-Z0-9]\+.lua' -o | cut -d'/' -f1)"; fi;; - 'WindowMaker') Win_theme="Not Present";; - 'XMonad') Win_theme="Not Present";; - 'Musca') Win_theme="Not Present";; - 'i3') Win_theme="Not Present";; - 'Ratpoison') Win_theme="Not Present";; - 'ScrotWM') Win_theme="Not Present";; - 'WMFS') Win_theme="Not Present";; - 'wmii') Win_theme="Not Present";; - 'subtle') Win_theme="Not Present";; - 'E16') Win_theme="$(awk -F"= " '/theme.name/ {print $2}' $HOME/.e16/e_config--0.0.cfg)";; - #E17 doesn't store cfg files in text format so for now get the profile as opposed to theme. atyoung - #TODO: Find a way to extract and read E17 .cfg files ( google seems to have nothing ). atyoung - 'E17') Win_theme=${E_CONF_PROFILE};; - 'Sawfish') Win_theme="$(awk -F")" '/\(custom-set-typed-variable/{print $2}' $HOME/.sawfish/custom | sed 's/ (quote //')";; - 'Beryl') Win_theme="Not Present";; - 'monsterwm') Win_theme="Not Present";; - 'dminiwm') Win_theme="Not Present";; - esac - [[ "$verbosity" -eq "1" ]] && verboseOut "Finding window manager theme...found as '$Win_theme'" -} -# WM Theme Detection - END - -# GTK Theme\Icon\Font Detection - BEGIN -detectgtk () { - gtkTheme="Not Found" - gtkIcons="Not Found" - gtkFont="Not Found" - case $DE in - 'KDE') # Desktop Environment found as "KDE" - if [ -a $HOME/.kde/share/config/kdeglobals ]; then - if grep -q "widgetStyle=" $HOME/.kde/share/config/kdeglobals; then - gtkTheme=$(awk -F"=" '/widgetStyle=/ {print $2}' $HOME/.kde/share/config/kdeglobals) - elif grep -q "colorScheme=" $HOME/.kde/share/config/kdeglobals; then - gtkTheme=$(awk -F"=" '/colorScheme=/ {print $2}' $HOME/.kde/share/config/kdeglobals) - fi - - if grep -q "Theme=" $HOME/.kde/share/config/kdeglobals; then - gtkIcons=$(awk -F"=" '/Theme=/ {print $2}' $HOME/.kde/share/config/kdeglobals) - fi - - if grep -q "Font=" $HOME/.kde/share/config/kdeglobals; then - gtkFont=$(awk -F"=" '/font=/ {print $2}' $HOME/.kde/share/config/kdeglobals) - fi - fi - ;; - 'GNOME'|'MATE') # Desktop Environment found as "GNOME" - if which gconftool-2 >/dev/null 2>&1; then - gtkTheme=$(gconftool-2 -g /desktop/gnome/interface/gtk_theme) - fi - - if which gconftool-2 >/dev/null 2>&1; then - gtkIcons=$(gconftool-2 -g /desktop/gnome/interface/icon_theme) - fi - - if which gconftool-2 >/dev/null 2>&1; then - gtkFont=$(gconftool-2 -g /desktop/gnome/interface/font_name) - fi - if [ "$background_detect" == "1" ]; then - if which gconftool-2 >/dev/null 2>&1; then - gtkBackgroundFull=$(gconftool-2 -g /desktop/gnome/background/picture_filename) - gtkBackground=$(echo "$gtkBackgroundFull" | awk -F"/" '{print $NF}') - fi - fi - ;; - 'XFCE') # Desktop Environment found as "XFCE" - if which xfconf-query >/dev/null 2>&1; then - gtkTheme=$(xfconf-query -c xsettings -p /Net/ThemeName) - fi - - if which xfconf-query >/dev/null 2>&1; then - gtkIcons=$(xfconf-query -c xsettings -p /Net/IconThemeName) - fi - - if which xfconf-query >/dev/null 2>&1; then - gtkFont=$(xfconf-query -c xsettings -p /Gtk/FontName) - fi - ;; - 'LXDE') - if [ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/lxde/config ]; then - lxdeconf="/lxde/config" - else - lxdeconf="/lxsession/LXDE/desktop.conf" - fi - # TODO: Clean me. - if grep -q "sNet\/ThemeName" ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf; then - gtkTheme=$(awk -F'=' '/sNet\/ThemeName/ {print $2}' ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf) - fi - - if grep -q IconThemeName ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf; then - gtkIcons=$(awk -F'=' '/sNet\/IconThemeName/ {print $2}' ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf) - fi - - if grep -q FontName ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf; then - gtkFont=$(awk -F'=' '/sGtk\/FontName/ {print $2}' ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf) - fi - ;; - - # /home/me/.config/rox.sourceforge.net/ROX-Session/Settings.xml - - *) # Lightweight or No DE Found - if [ -f $HOME/.gtkrc-2.0 ]; then - if grep -q gtk-theme $HOME/.gtkrc-2.0; then - gtkTheme=$(awk -F'"' '/gtk-theme/ {print $2}' $HOME/.gtkrc-2.0) - fi - - if grep -q icon-theme $HOME/.gtkrc-2.0; then - gtkIcons=$(awk -F'"' '/icon-theme/ {print $2}' $HOME/.gtkrc-2.0) - fi - - if grep -q font $HOME/.gtkrc-2.0; then - gtkFont=$(awk -F'"' '/gtk-font-name/ {print $2}' $HOME/.gtkrc-2.0) - fi - fi - # $HOME/.gtkrc.mine theme detect only - if [ -f $HOME/.gtkrc.mine ]; then - if grep -q "^include" $HOME/.gtkrc.mine; then - gtkTheme=$(grep '^include.*gtkrc' $HOME/.gtkrc.mine | awk -F "/" '{ print $5 }') - fi - if grep -q "^gtk-icon-theme-name" $HOME/.gtkrc.mine; then - gtkIcons=$(grep 'gtk-icon-theme-name' $HOME/.gtkrc.mine | awk -F '"' '{print $2}') - fi - fi - # ROX-Filer icon detect only - if [ -a ${XDG_CONFIG_HOME:-${HOME}/.config}/rox.sourceforge.net/ROX-Filer/Options ]; then - gtkIcons=$(awk -F'[>,<]' '/icon_theme/ {print $3}' ${XDG_CONFIG_HOME:-${HOME}/.config}/rox.sourceforge.net/ROX-Filer/Options) - fi - # E17 detection - if [ $E_ICON_THEME ]; then - gtkIcons=${E_ICON_THEME} - gtkTheme="Not available." - gtkFont="Not available." - fi - # Background Detection (feh, nitrogen) - if [ "$background_detect" == "1" ]; then - if [ -a $HOME/.fehbg ]; then - gtkBackgroundFull=$(awk -F"'" '/feh --bg/{print $2}' $HOME/.fehbg 2>/dev/null) - gtkBackground=$(echo "$gtkBackgroundFull" | awk -F"/" '{print $NF}') - elif [ -a ${XDG_CONFIG_HOME:-${HOME}/.config}/nitrogen/bg-saved.cfg ]; then - gtkBackground=$(awk -F"/" '/file=/ {print $NF}' ${XDG_CONFIG_HOME:-${HOME}/.config}/nitrogen/bg-saved.cfg) - fi - fi - ;; - esac - if [[ "$verbosity" -eq "1" ]]; then - verboseOut "Finding GTK theme...found as '$gtkTheme'" - verboseOut "Finding icon theme...found as '$gtkIcons'" - verboseOut "Finding user font...found as '$gtkFont'" - [[ $gtkBackground ]] && verboseOut "Finding background...found as '$gtkBackground'" - fi -} -# GTK Theme\Icon\Font Detection - END - - -####################### -# End Detection Phase -####################### - -takeShot () { - if [[ -z $screenCommand ]]; then - if [[ "$hostshot" == "1" ]]; then - scrot -cd3 "${shotfile}" - if [ -f "${shotfile}" ]; then - [[ "$verbosity" -eq "1" ]] && verboseOut "Screenshot saved at '${shotfile}'" - scp -qo ConnectTimeout="${scptimeout}" "${shotfile}" "${serveraddr}:${serverdir}" - echo -e "${bold}==>${c0} Your screenshot can be viewed at ${baseurl}/$shotfile" - else - verboseOut "ERROR: Problem saving screenshot to ${shotfile}" - fi - else - scrot -cd3 "${shotfile}" - if [ -f "${shotfile}" ]; then - [[ "$verbosity" -eq "1" ]] && verboseOut "Screenshot saved at '${shotfile}'" - else - verboseOut "ERROR: Problem saving screenshot to ${shotfile}" - fi - fi - else - $screenCommand - fi -} - - - -asciiText () { -# Distro logos and ASCII outputs - case $distro in - "Arch Linux - Old") - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[1;34m" # Light Blue - startline="0" - fulloutput=("$c1 __ %s" -"$c1 _=(SDGJT=_ %s" -"$c1 _GTDJHGGFCVS) %s" -"$c1 ,GTDJGGDTDFBGX0 %s" -"$c1 JDJDIJHRORVFSBSVL$c2-=+=,_ %s" -"$c1 IJFDUFHJNXIXCDXDSV,$c2 \"DEBL %s" -"$c1 [LKDSDJTDU=OUSCSBFLD.$c2 '?ZWX, %s" -"$c1 ,LMDSDSWH' \`DCBOSI$c2 DRDS], %s" -"$c1 SDDFDFH' !YEWD,$c2 )HDROD %s" -"$c1 !KMDOCG &GSU|$c2\_GFHRGO\' %s" -"$c1 HKLSGP'$c2 __$c1\TKM0$c2\GHRBV)' %s" -"$c1 JSNRVW'$c2 __+MNAEC$c1\IOI,$c2\BN' %s" -"$c1 HELK['$c2 __,=OFFXCBGHC$c1\FD) %s" -"$c1 ?KGHE $c2\_-#DASDFLSV='$c1 'EF %s" -"$c1 'EHTI !H %s" -"$c1 \`0F' '!") - ;; - - "Arch Linux") - [ -z $c1 ] && c1="\e[1;36m" # Light - c2="\e[0;36m" # Dark - startline="1" - fulloutput=("${c1} -\`" -"${c1} .o+\` %s" -"${c1} \`ooo/ %s" -"${c1} \`+oooo: %s" -"${c1} \`+oooooo: %s" -"${c1} -+oooooo+: %s" -"${c1} \`/:-:++oooo+: %s" -"${c1} \`/++++/+++++++: %s" -"${c1} \`/++++++++++++++: %s" -"${c1} \`/+++o"${c2}"oooooooo"${c1}"oooo/\` %s" -"${c2} "${c1}"./"${c2}"ooosssso++osssssso"${c1}"+\` %s" -"${c2} .oossssso-\`\`\`\`/ossssss+\` %s" -"${c2} -osssssso. :ssssssso. %s" -"${c2} :osssssss/ osssso+++. %s" -"${c2} /ossssssss/ +ssssooo/- %s" -"${c2} \`/ossssso+/:- -:/+osssso+- %s" -"${c2} \`+sso+:-\` \`.-/+oso:" -"${c2} \`++:. \`-/+/" -"${c2} .\` \`/") - ;; - - "Mint") - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[1;32m" # Bold Green - startline="0" - fulloutput=("$c2 MMMMMMMMMMMMMMMMMMMMMMMMMmds+. %s" -"$c2 MMm----::-://////////////oymNMd+\` %s" -"$c2 MMd "$c1"/++ "$c2"-sNMd: %s" -"$c2 MMNso/\` "$c1"dMM \`.::-. .-::.\` "$c2".hMN: %s" -"$c2 ddddMMh "$c1"dMM :hNMNMNhNMNMNh: "$c2"\`NMm %s" -"$c2 NMm "$c1"dMM .NMN/-+MMM+-/NMN\` "$c2"dMM %s" -"$c2 NMm "$c1"dMM -MMm \`MMM dMM. "$c2"dMM %s" -"$c2 NMm "$c1"dMM -MMm \`MMM dMM. "$c2"dMM %s" -"$c2 NMm "$c1"dMM .mmd \`mmm yMM. "$c2"dMM %s" -"$c2 NMm "$c1"dMM\` ..\` ... ydm. "$c2"dMM %s" -"$c2 hMM- "$c1"+MMd/-------...-:sdds "$c2"dMM %s" -"$c2 -NMm- "$c1":hNMNNNmdddddddddy/\` "$c2"dMM %s" -"$c2 -dMNs-"$c1"\`\`-::::-------.\`\` "$c2"dMM %s" -"$c2 \`/dMNmy+/:-------------:/yMMM %s" -"$c2 ./ydNMMMMMMMMMMMMMMMMMMMMM %s") - ;; - - - "LMDE") - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[1;32m" # Bold Green - startline="1" - fulloutput=(" "${c1}"\`.-::---.." -"${c2} .:++++ooooosssoo:. %s" -"${c2} .+o++::. \`.:oos+. %s" -"${c2} :oo:.\` -+oo"${c1}": %s" -"${c2} "${c1}"\`"${c2}"+o/\` ."${c1}"::::::"${c2}"-. .++-"${c1}"\` %s" -"${c2} "${c1}"\`"${c2}"/s/ .yyyyyyyyyyo: +o-"${c1}"\` %s" -"${c2} "${c1}"\`"${c2}"so .ss ohyo\` :s-"${c1}": %s" -"${c2} "${c1}"\`"${c2}"s/ .ss h m myy/ /s\`"${c1}"\` %s" -"${c2} \`s: \`oo s m Myy+-o:\` %s" -"${c2} \`oo :+sdoohyoydyso/. %s" -"${c2} :o. .:////////++: %s" -"${c2} \`/++ "${c1}"-:::::- %s" -"${c2} "${c1}"\`"${c2}"++- %s" -"${c2} "${c1}"\`"${c2}"/+- %s" -"${c2} "${c1}"."${c2}"+/. %s" -"${c2} "${c1}"."${c2}":+-. %s" -"${c2} \`--.\`\`") - ;; - - "Ubuntu") - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[1;31m" # Light Red - c3="\e[1;33m" # Bold Yellow - startline="1" - fulloutput=("$c2 ./+o+-" -"$c1 yyyyy- $c2-yyyyyy+ %s" -"$c1 $c1://+//////$c2-yyyyyyo %s" -"$c3 .++ $c1.:/++++++/-$c2.+sss/\` %s" -"$c3 .:++o: $c1/++++++++/:--:/- %s" -"$c3 o:+o+:++.$c1\`..\`\`\`.-/oo+++++/ %s" -"$c3 .:+o:+o/.$c1 \`+sssoo+/ %s" -"$c1 .++/+:$c3+oo+o:\`$c1 /sssooo. %s" -"$c1 /+++//+:$c3\`oo+o$c1 /::--:. %s" -"$c1 \+/+o+++$c3\`o++o$c2 ++////. %s" -"$c1 .++.o+$c3++oo+:\`$c2 /dddhhh. %s" -"$c3 .+.o+oo:.$c2 \`oddhhhh+ $mygtk" -"$c3 \+.++o+o\`\`-\`\`$c2\`\`.:ohdhhhhh+ %s" -"$c3 \`:o+++ $c2\`ohhhhhhhhyo++os: %s" -"$c3 .o:$c2\`.syhhhhhhh/$c3.oo++o\` %s" -"$c2 /osyyyyyyo$c3++ooo+++/ %s" -"$c2 \`\`\`\`\` $c3+oo+++o\:" -"$c3 \`oo++.") - ;; - - "Debian") - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[1;31m" # Light Red - startline="1" - fulloutput=(" $c1 _,met\$\$\$\$\$gg." -" $c1 ,g\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$P.\t %s" -" $c1 ,g\$\$P\"\" \"\"\"Y\$\$.\".\t%s" -" $c1 ,\$\$P' \`\$\$\$.\t%s" -" $c1',\$\$P ,ggs. \`\$\$b:\t%s" -" $c1\`d\$\$' ,\$P\"\' $c2.$c1 \$\$\$\t%s" -" $c1 \$\$P d\$\' $c2,$c1 \$\$P\t%s" -" $c1 \$\$: \$\$. $c2-$c1 ,d\$\$'\t%s" -" $c1 \$\$\; Y\$b._ _,d\$P'\t%s" -" $c1 Y\$\$. $c2\`.$c1\`\"Y\$\$\$\$P\"'\t\t%s" -" $c1 \`\$\$b $c2\"-.__\t\t%s" -" $c1 \`Y\$\$\t\t\t%s" -" $c1 \`Y\$\$.\t\t\t%s" -" $c1 \`\$\$b.\t\t\t%s" -" $c1 \`Y\$\$b.\t\t\t%s" -" $c1 \`\"Y\$b._\t\t%s" -" $c1 \`\"\"\"\"") - ;; - - "CrunchBang") - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[0;34m" # Light Blue - startline="0" - fulloutput=("$c1 ███ ███ ███ %s" -"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" -"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" -"$c1 ████████████████████████████ $c2░$c1███ %s" -"$c2░$c1████████████████████████████ $c2░$c1███ %s" -"$c2░░░░░░░░░$c1███$c2░░░░░░░░$c1███$c2░░░░░ ░$c1███ %s" -"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" -"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" -"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" -"$c1 ████████████████████████████ $c2░$c1███ %s" -"$c2░$c1████████████████████████████ $c2░░░ %s" -"$c2░░░░░░░░░$c1███$c2░░░░░░░░$c1███$c2░░░░░ %s" -"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" -"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" -"$c2 ░░░ ░░░ ░░░ %s") - ;; - - - "Gentoo") - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[1;35m" # Light Purple - startline="2" - fulloutput=("$c2 -/oyddmdhs+:." -"$c2 -o"$c1"dNMMMMMMMMNNmhy+"$c2"-\`" -"$c2 -y"$c1"NMMMMMMMMMMMNNNmmdhy"$c2"+- %s" -"$c2 \`o"$c1"mMMMMMMMMMMMMNmdmmmmddhhy"$c2"/\` %s" -"$c2 om"$c1"MMMMMMMMMMMN"$c2"hhyyyo"$c1"hmdddhhhd"$c2"o\` %s" -"$c2.y"$c1"dMMMMMMMMMMd"$c2"hs++so/s"$c1"mdddhhhhdm"$c2"+\` %s" -"$c2 oy"$c1"hdmNMMMMMMMN"$c2"dyooy"$c1"dmddddhhhhyhN"$c2"d. %s" -"$c2 :o"$c1"yhhdNNMMMMMMMNNNmmdddhhhhhyym"$c2"Mh %s" -"$c2 .:"$c1"+sydNMMMMMNNNmmmdddhhhhhhmM"$c2"my %s" -"$c2 /m"$c1"MMMMMMNNNmmmdddhhhhhmMNh"$c2"s: %s" -"$c2 \`o"$c1"NMMMMMMMNNNmmmddddhhdmMNhs"$c2"+\` %s" -"$c2 \`s"$c1"NMMMMMMMMNNNmmmdddddmNMmhs"$c2"/. %s" -"$c2 /N"$c1"MMMMMMMMNNNNmmmdddmNMNdso"$c2":\` %s" -"$c2+M"$c1"MMMMMMNNNNNmmmmdmNMNdso"$c2"/- %s" -"$c2yM"$c1"MNNNNNNNmmmmmNNMmhs+/"$c2"-\` %s" -"$c2/h"$c1"MMNNNNNNNNMNdhs++/"$c2"-\`" -"$c2\`/"$c1"ohdmmddhys+++/:"$c2".\`" -"$c2 \`-//////:--.") - ;; - - "Fedora") - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[1;34m" # Light Blue - startline="1" - fulloutput=("$c2 :/------------://" -"$c2 :------------------:// %s" -"$c2 :-----------"$c1"/shhdhyo/"$c2"-:// %s" -"$c2 /-----------"$c1"omMMMNNNMMMd/"$c2"-:/ %s" -"$c2 :-----------"$c1"sMMMdo:/"$c2" -:/ %s" -"$c2 :-----------"$c1":MMMd"$c2"------- --:/ %s" -"$c2 /-----------"$c1":MMMy"$c2"------- ---/ %s" -"$c2 :------ --"$c1"/+MMMh/"$c2"-- ---: %s" -"$c2 :--- "$c1"oNMMMMMMMMMNho"$c2" -----: %s" -"$c2 :-- "$c1"+shhhMMMmhhy++"$c2" ------: %s" -"$c2 :- -----"$c1":MMMy"$c2"--------------/ %s" -"$c2 :- ------"$c1"/MMMy"$c2"-------------: %s" -"$c2 :- ----"$c1"/hMMM+"$c2"------------: %s" -"$c2 :--"$c1":dMMNdhhdNMMNo"$c2"-----------: %s" -"$c2 :---"$c1":sdNMMMMNds:"$c2"----------: %s" -"$c2 :------"$c1":://:"$c2"-----------:// %s" -"$c2 :--------------------://") - ;; - - "BSD") - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[1;31m" # Light Red - startline="2" - fulloutput=("$c2 , ," -"$c2 /( )\`" -"$c2 \ \___ / | %s" -"$c2 /- "$c1"_$c2 \`-/ ' %s" -"$c2 ($c1/\/ \ $c2\ /\\ %s" -"$c1 / / |$c2 \` \\ %s" -"$c1 O O )$c2 / | %s" -"$c1 \`-^--'\`$c2< ' %s" -"$c2 (_.) _ ) / %s" -"$c2 \`.___/\` / %s" -"$c2 \`-----' / %s" -"$c1 <----. "$c2"__/ __ \\ %s" -"$c1 <----|===="$c2"O}}}$c1==$c2} \} \/$c1==== %s" -"$c1 <----' $c2\`--' \`.__,' \\ %s" -"$c2 | | %s" -"$c2 \ / /\\ %s" -"$c2 ______( (_ / \______/ %s" -"$c2 ,' ,-----' |" -"$c2 \`--{__________)") - ;; - - "Mandriva"|"Mandrake") - c1="\e[1;34m" # Light Blue - c2="\e[1;33m" # Bold Yellow - startline="0" - fulloutput=("$c2 \`\` %s" -"$c2 \`-. %s" -"$c1 \` $c2.--- %s" -"$c1 -/ $c2-::--\` %s" -"$c1 \`++ $c2\`----...\`\`\`-:::::. %s" -"$c1 \`os. $c2.::::::::::::::-\`\`\` \` \` %s" -"$c1 +s+ $c2.::::::::::::::::---...--\` %s" -"$c1 -ss: $c2\`-::::::::::::::::-.\`\`.\`\` %s" -"$c1 /ss- $c2.::::::::::::-.\`\` \` %s" -"$c1 +ss: $c2.::::::::::::- %s" -"$c1 /sso $c2.::::::-::::::- %s" -"$c1 .sss/ $c2-:::-.\` .::::: %s" -"$c1 /sss+. $c2..\`$c1 \`--\` $c2.::: %s" -"$c1 -ossso+/:://+/-\` $c2.:\` %s" -"$c1 -/+ooo+/-. $c2\` %s") - ;; - - "openSUSE") - c1="\e[1;32m" # Bold Green - c2="\e[1;37m" # Bold White - startline="2" - fulloutput=("$c2 .;ldkO0000Okdl;." -"$c2 .;d00xl:,'....';:ok00d;." -"$c2 .d00l' ,o00d. %s" -"$c2 .d0Kd."$c1" :Okxol:;'. "$c2":O0d. %s" -"$c2 'OK"$c1"KKK0kOKKKKKKKKKKOxo:' "$c2"lKO' %s" -"$c2 ,0K"$c1"KKKKKKKKKKKKKKK0d:"$c2",,,"$c1":dx:"$c2" ;00, %s" -"$c2 .OK"$c1"KKKKKKKKKKKKKKKk."$c2".oOkdl."$c1"'0k."$c2" cKO. %s" -"$c2 :KK"$c1"KKKKKKKKKKKKKKK: "$c2"kKx..od "$c1"lKd"$c2" .OK: %s" -"$c2 dKK"$c1"KKKKKKKKKOx0KKKd "$c2";0KKKO, "$c1"kKKc"$c2" dKd %s" -"$c2 dKK"$c1"KKKKKKKKKK;.;oOKx,.."$c2"'"$c1"..;kKKK0."$c2" dKd %s" -"$c2 :KK"$c1"KKKKKKKKKK0o;...;cdxxOK0Oxc,. "$c2".0K: %s" -"$c2 kKK"$c1"KKKKKKKKKKKKK0xl;'......,cdo "$c2"lKk %s" -"$c2 '0K"$c1"KKKKKKKKKKKKKKKKKKKK00KKOo; "$c2"c00' %s" -"$c2 .kK"$c1"KKOxddxkOO00000Okxoc;'. "$c2".dKk. %s" -"$c2 l0Ko. .c00l. %s" -"$c2 .l0Kk:. .;xK0l. %s" -"$c2 ,lkK0xl:;,,,,;:ldO0kl, %s" -"$c2 .':ldxkkkkxdl:'.") - ;; - - "Slackware") - [ -z $c1 ] && c1="\e[1;34m" # Light Blue - c2="\e[1;37m" # Bold White - startline="3" - fulloutput=("$c1 :::::::" -"$c1 :::::::::::::::::::" -"$c1 :::::::::::::::::::::::::" -"$c1 ::::::::"${c2}"cllcccccllllllll"${c1}":::::: %s" -"$c1 :::::::::"${c2}"lc dc"${c1}"::::::: %s" -"$c1 ::::::::"${c2}"cl clllccllll oc"${c1}"::::::::: %s" -"$c1 :::::::::"${c2}"o lc"${c1}"::::::::"${c2}"co oc"${c1}":::::::::: %s" -"$c1 ::::::::::"${c2}"o cccclc"${c1}":::::"${c2}"clcc"${c1}":::::::::::: %s" -"$c1 :::::::::::"${c2}"lc cclccclc"${c1}"::::::::::::: %s" -"$c1 ::::::::::::::"${c2}"lcclcc lc"${c1}":::::::::::: %s" -"$c1 ::::::::::"${c2}"cclcc"${c1}":::::"${c2}"lccclc oc"${c1}"::::::::::: %s" -"$c1 ::::::::::"${c2}"o l"${c1}"::::::::::"${c2}"l lc"${c1}"::::::::::: %s" -"$c1 :::::"${c2}"cll"${c1}":"${c2}"o clcllcccll o"${c1}"::::::::::: %s" -"$c1 :::::"${c2}"occ"${c1}":"${c2}"o clc"${c1}"::::::::::: %s" -"$c1 ::::"${c2}"ocl"${c1}":"${c2}"ccslclccclclccclclc"${c1}"::::::::::::: %s" -"$c1 :::"${c2}"oclcccccccccccccllllllllllllll"${c1}"::::: %s" -"$c1 ::"${c2}"lcc1lcccccccccccccccccccccccco"${c1}":::: %s" -"$c1 :::::::::::::::::::::::::::::::: %s" -"$c1 ::::::::::::::::::::::::::::" -"$c1 ::::::::::::::::::::::" -"$c1 ::::::::::::") - ;; - - "Red Hat Linux") - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[1;31m" # Light Red - startline="0" - fulloutput=("$c2 \`.-..........\` %s" -"$c2 \`////////::.\`-/. %s" -"$c2 -: ....-////////. %s" -"$c2 //:-::///////////\` %s" -"$c2 \`--::: \`-://////////////: %s" -"$c2 //////- \`\`.-:///////// .\` %s" -"$c2 \`://////:-.\` :///////::///:\` %s" -"$c2 .-/////////:---/////////////: %s" -"$c2 .-://////////////////////. %s" -"$c1 yMN+\`.-$c2::///////////////-\` %s" -"$c1 .-\`:NMMNMs\` \`..-------..\` %s" -"$c1 MN+/mMMMMMhoooyysshsss %s" -"$c1 MMM MMMMMMMMMMMMMMyyddMMM+ %s" -"$c1 MMMM MMMMMMMMMMMMMNdyNMMh\` hyhMMM %s" -"$c1 MMMMMMMMMMMMMMMMyoNNNMMM+. MMMMMMMM %s" -"$c1 MMNMMMNNMMMMMNM+ mhsMNyyyyMNMMMMsMM") - ;; - - "Frugalware") - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[1;36m" # Light Blue - startline="5" - fulloutput=("${c2} \`++/::-.\`" -"${c2} /o+++++++++/::-.\`" -"${c2} \`o+++++++++++++++o++/::-.\`" -"${c2} /+++++++++++++++++++++++oo++/:-.\`\`" -"${c2} .o+ooooooooooooooooooosssssssso++oo++/:-\`" -"${c2} ++osoooooooooooosssssssssssssyyo+++++++o: %s" -"${c2} -o+ssoooooooooooosssssssssssssyyo+++++++s\` %s" -"${c2} o++ssoooooo++++++++++++++sssyyyyo++++++o: %s" -"${c2} :o++ssoooooo"${c1}"/-------------"${c2}"+syyyyyo+++++oo %s" -"${c2} \`o+++ssoooooo"${c1}"/-----"${c2}"+++++ooosyyyyyyo++++os: %s" -"${c2} /o+++ssoooooo"${c1}"/-----"${c2}"ooooooosyyyyyyyo+oooss %s" -"${c2} .o++++ssooooos"${c1}"/------------"${c2}"syyyyyyhsosssy- %s" -"${c2} ++++++ssooooss"${c1}"/-----"${c2}"+++++ooyyhhhhhdssssso %s" -"${c2} -s+++++syssssss"${c1}"/-----"${c2}"yyhhhhhhhhhhhddssssy. %s" -"${c2} sooooooyhyyyyyh"${c1}"/-----"${c2}"hhhhhhhhhhhddddyssy+ %s" -"${c2} :yooooooyhyyyhhhyyyyyyhhhhhhhhhhdddddyssy\` %s" -"${c2} yoooooooyhyyhhhhhhhhhhhhhhhhhhhddddddysy/ %s" -"${c2}-ysooooooydhhhhhhhhhhhddddddddddddddddssy %s" -"${c2} .-:/+osssyyyysyyyyyyyyyyyyyyyyyyyyyyssy: %s" -"${c2} \`\`.-/+oosysssssssssssssssssssssss %s" -"${c2} \`\`.:/+osyysssssssssssssh." -"${c2} \`-:/+osyyssssyo" -"${c2} .-:+++\`") - ;; - - - "Peppermint") - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[1;31m" # Light Red - startline="2" - fulloutput=("${c2} 8ZZZZZZ"${c1}"MMMMM" -"${c2} .ZZZZZZZZZ"${c1}"MMMMMMM." -"${c1} MM"${c2}"ZZZZZZZZZ"${c1}"MMMMMMM"${c2}"ZZZZ %s" -"${c1} MMMMM"${c2}"ZZZZZZZZ"${c1}"MMMMM"${c2}"ZZZZZZZM %s" -"${c1} MMMMMMM"${c2}"ZZZZZZZ"${c1}"MMMM"${c2}"ZZZZZZZZZ. %s" -"${c1} MMMMMMMMM"${c2}"ZZZZZZ"${c1}"MMM"${c2}"ZZZZZZZZZZZI %s" -"${c1} MMMMMMMMMMM"${c2}"ZZZZZZ"${c1}"MM"${c2}"ZZZZZZZZZZ"${c1}"MMM %s" -"${c2} .ZZZ"${c1}"MMMMMMMMMM"${c2}"IZZ"${c1}"MM"${c2}"ZZZZZ"${c1}"MMMMMMMMM %s" -"${c2} ZZZZZZZ"${c1}"MMMMMMMM"${c2}"ZZ"${c1}"M"${c2}"ZZZZ"${c1}"MMMMMMMMMMM %s" -"${c2} ZZZZZZZZZZZZZZZZ"${c1}"M"${c2}"Z"${c1}"MMMMMMMMMMMMMMM %s" -"${c2} .ZZZZZZZZZZZZZ"${c1}"MMM"${c2}"Z"${c1}"M"${c2}"ZZZZZZZZZZ"${c1}"MMMM %s" -"${c2} .ZZZZZZZZZZZ"${c1}"MMM"${c2}"7ZZ"${c1}"MM"${c2}"ZZZZZZZZZZ7"${c1}"M %s" -"${c2} ZZZZZZZZZ"${c1}"MMMM"${c2}"ZZZZ"${c1}"MMMM"${c2}"ZZZZZZZ77 %s" -"${c1} MMMMMMMMMMMM"${c2}"ZZZZZ"${c1}"MMMM"${c2}"ZZZZZ77 %s" -"${c1} MMMMMMMMMM"${c2}"7ZZZZZZ"${c1}"MMMMM"${c2}"ZZ77 %s" -"${c1} .MMMMMMM"${c2}"ZZZZZZZZ"${c1}"MMMMM"${c2}"Z7Z %s" -"${c1} MMMMM"${c2}"ZZZZZZZZZ"${c1}"MMMMMMM %s" -"${c2} NZZZZZZZZZZZ"${c1}"MMMMM" -"${c2} ZZZZZZZZZ"${c1}"MM") - ;; - - "SolusOS") - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[1;30m" # Light Gray - startline="2" - fulloutput=("${c1} e e" -"${c1} eee ee" -"${c1} eeee eee %s" -"${c2} wwwwwwwww"${c1}"eeeeee %s" -"${c2} wwwwwwwwwwwwwww"${c1}"eee %s" -"${c2} wwwwwwwwwwwwwwwwwww"${c1}"eeeeeeee %s" -"${c2} wwwww "${c1}"eeeee"${c2}"wwwwww"${c1}"eeee %s" -"${c2} www "${c1}"eeee"${c2}"wwwwww"${c1}"e %s" -"${c2} ww "${c1}"ee"${c2}"wwwwww %s" -"${c2} w wwwww %s" -"${c2} wwwww %s" -"${c2} wwwww %s" -"${c2} wwwww %s" -"${c2} wwww %s" -"${c2} wwww %s" -"${c2} wwww %s" -"${c2} www %s" -"${c2} ww") - ;; - - - - "Mageia") - [ -z $c1 ] && c1="\e[1;34m" # Light Blue - c2="\e[0;36m" # Light Cyan - startline="2" - fulloutput=("$c2 .'' " -"$c2 '. .. " -"$c2 .,,. %s" -"$c2 ,;;. %s" -"$c2 ... ... %s" -"$c2 ',,' .:::. %s" -"$c1 .$c2,:c,$c1 .. . %s" -"$c1 :dkxc;'. ..,cxkd; %s" -"$c1 .dkkxxkkkkkkkkkkxxkkd. %s" -"$c1 .dkko. ';cloolc;. .dkkd %s" -"$c1 ckkx. .xkk; %s" -"$c1 xOO: cOOd %s" -"$c1 xOO: lOOd %s" -"$c1 lOOx. .kOO: %s" -"$c1 .k00d. .x00x %s" -"$c1 .k00O; ;k00O. %s" -"$c1 .lO0KOdc;,,;cdO0KOc. %s" -"$c1 ;d0KKKKKKKK0d; " -"$c1 .,;::;,. ") - ;; - - *) - [ -z $c1 ] && c1="\e[1;37m" # White - c2="\e[1;30m" # Light Gray - c3="\e[1;33m" # Light Yellow - startline="0" - fulloutput=(" %s" -" %s" -"$c2 #####$c0 %s" -"$c2 ####### %s" -"$c2 ##"$c1"O$c2#"$c1"O$c2## %s" -"$c2 #$c3#####$c2# %s" -"$c2 ##$c1##$c3###$c1##$c2## %s" -"$c2 #$c1##########$c2## %s" -"$c2 #$c1############$c2## %s" -"$c2 #$c1############$c2### %s" -"$c3 ##$c2#$c1###########$c2##$c3# %s" -"$c3 ######$c2#$c1#######$c2#$c3###### %s" -"$c3 #######$c2#$c1#####$c2#$c3####### %s" -"$c3 #####$c2#######$c3##### %s" -" %s" -"$c0") - ;; - esac - - # Truncate lines based on terminal width. - if [ "$truncateSet" == "Yes" ]; then - n=${#fulloutput[*]} - for ((i=0;i/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." - fi - fi - elif [[ "$WM" =~ "Fluxbox" ]]; then - if [[ "$Win_theme" != "Not Found" ]]; then - if [[ -d "$HOME/.fluxbox/styles/$Win_theme" ]]; then - cp -r "$HOME/.fluxbox/styles/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." - fi - fi - elif [[ "$WM" =~ "Blackbox" ]]; then - if [[ "$Win_theme" != "Not Found" ]]; then - if [[ -d "$HOME/.blackbox/styles/$Win_theme" ]]; then - cp -r "$HOME/.blackbox/styles/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." - elif [[ -d "/usr/share/blackbox/styles/$Win_theme" ]]; then - cp -r "/usr/share/blackbox/styles/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." - fi - fi - elif [[ "$WM" =~ "PekWM" ]]; then - if [[ "$Win_theme" != "Not Found" ]]; then - if [[ -d "$HOME/.pekwm/themes/$Win_theme" ]]; then - cp -r "$HOME/.pekwm/themes/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." - fi - fi - elif [[ "$WM" =~ "Metacity" ]]; then - if [[ "$Win_theme" != "Not Found" ]]; then - if [[ -d "$HOME/.themes/$Win_theme" ]]; then - cp -r "$HOME/.themes/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." - elif [[ -d "/usr/share/themes/$Win_theme" ]]; then - cp -r "/usr/share/themes/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." - fi - fi - elif [[ "$WM" =~ "Xfwm4" ]]; then - if [[ "$Win_theme" != "Not Found" ]]; then - WM_theme=$(echo "$Win_theme" | awk '{print $NF}') - if [[ -d "$HOME/.themes/$Win_theme" ]]; then - cp -r "$HOME/.themes/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." - elif [[ -d "/usr/share/themes/$Win_theme" ]]; then - cp -r "/usr/share/themes/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." - fi - fi - fi - fi - if [[ "$gtkBackgroundFull" ]]; then - cp "$gtkBackgroundFull" /tmp/screenfetch-export/ - [[ "$verbosity" -eq "1" ]] && verboseOut "Found BG file. Transferring to /tmp/screenfetch-export/..." - fi - if [[ "$mygtk" ]]; then - GTK_theme=$(echo "$mygtk" | awk '{print $NF}') - if [ -d "/usr/share/themes/$GTK_theme" ]; then - cp -r "/usr/share/themes/$GTK_theme" "/tmp/screenfetch-export/GTK/Theme/$GTK_theme" &>/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found GTK theme folder. Transferring to /tmp/screenfetch-export/..." - fi - fi - if [[ "$myicons" ]]; then - GTK_icons=$(echo "$myicons" | awk '{print $NF}') - if [ -d "/usr/share/icons/$GTK_icons" ]; then - cp -r "/usr/share/icons/$GTK_icons" "/tmp/screenfetch-export/GTK/Icons/$GTK_icons" &>/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found GTK icons theme folder. Transferring to /tmp/screenfetch-export/..." - fi - if [ -d "$HOME/.icons/$GTK_icons" ]; then - cp -r "$HOME/.icons/$GTK_icons" "/tmp/screenfetch-export/GTK/Icons/$GTK_icons" &>/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found GTK icons theme folder. Transferring to /tmp/screenfetch-export/..." - fi - fi - if [[ "$myfont" ]]; then - GTK_font=$(echo "$myfont" | awk '{print $NF}') - if [ -d "/usr/share/fonts/$GTK_font" ]; then - cp -r "/usr/share/fonts/$GTK_font" "/tmp/screenfetch-export/GTK/$GTK_font" &>/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found GTK font. Transferring to /tmp/screenfetch-export/..." - elif [ -d "$HOME/.fonts/$GTK_font" ]; then - cp -r "$HOME/.fonts/$GTK_font" "/tmp/screenfetch-export/GTK/$GTK_font" &>/dev/null - [[ "$verbosity" -eq "1" ]] && verboseOut "Found GTK font. Transferring to /tmp/screenfetch-export/..." - fi - fi - if [ "$screenshot" == "1" ]; then - if [ -f "${shotfile}" ]; then - cp "${shotfile}" "/tmp/screenfetch-export/" - [[ "$verbosity" -eq "1" ]] && verboseOut "Found screenshot. Transferring to /tmp/screenfetch-export/..." - fi - fi - cd /tmp/screenfetch-export/ - [[ "$verbosity" -eq "1" ]] && verboseOut "Creating screenfetch-export.tar.gz archive in /tmp/screenfetch-export/...." - tar -czf screenfetch-export.tar.gz ../screenfetch-export &>/dev/null - mv /tmp/screenfetch-export/screenfetch-export.tar.gz $HOME/ - echo -e "${bold}==>${c0} Archive created in /tmp/ and moved to $HOME. Removing /tmp/screenfetch-export/..." - rm -rf /tmp/screenfetch-export/ -} - - -################## -# Let's Do This! -################## - -for i in "${display[@]}"; do - - if [[ $i =~ wm ]]; then - ! [[ $WM ]] && detectwm; - ! [[ $Win_theme ]] && detectwmtheme; - else - - [[ "${display[*]}" =~ "$i" ]] && detect${i} - - fi -done -infoDisplay -[ "$screenshot" == "1" ] && takeShot -[ "$exportTheme" == "1" ] && themeExport \ No newline at end of file diff --git a/code/fun/skull b/code/fun/skull deleted file mode 100755 index 91deff5..0000000 --- a/code/fun/skull +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/bash - -f=3 b=4 -for j in f b; do - for i in {0..7}; do - printf -v $j$i %b "\e[${!j}${i}m" - done -done -bld=$'\e[1m' -rst=$'\e[0m' -inv=$'\e[7m' - - -cat << EOF -$f4 ...----.... -$f4 ..-:"'' ''"-.. -$f4 .-' '-. -$f4 .' . . '. -$f4 .' . . . . .''. -$f4 .' . . . . . . . ..:. -$f4 .' . . . . . . .. . . ....::. -$f4 .. . . . . . . .. . ....:IA. -$f4 .: . . . . . . .. . .. .. ....:IA. -$f4 .: . . .. . . . . .. . ... ....:.:VHA. -$f4 '.. . .. . . . . .. . .. . .....:.::IHHB. -$f4 .:. . . . . . . . . . . ...:.:... .......:HIHMM. -$f4 .:.... . . ."::"'.. . . . .:.:.:II;,. .. ..:IHIMMA -$f4 ':.:.. ..::IHHHHHI::. . . ...:.::::.,,,. . ....VIMMHM -$f4 .:::I. .AHHHHHHHHHHAI::. .:...,:IIHHHHHHMMMHHL:. . VMMMM -$f4 .:.:V.:IVHHHHHHHMHMHHH::..:" .:HIHHHHHHHHHHHHHMHHA. .VMMM. -$f4 :..V.:IVHHHHHMMHHHHHHHB... . .:VPHHMHHHMMHHHHHHHHHAI.:VMMI -$f4 ::V..:VIHHHHHHMMMHHHHHH. . .I":IIMHHMMHHHHHHHHHHHAPI:WMM -$f4 ::". .:.HHHHHHHHMMHHHHHI. . .:..I:MHMMHHHHHHHHHMHV:':H:WM -$f4 :: . :.::IIHHHHHHMMHHHHV .ABA.:.:IMHMHMMMHMHHHHV:'. .IHWW -$f4 '. ..:..:.:IHHHHHMMHV" .AVMHMA.:.'VHMMMMHHHHHV:' . :IHWV -$f4 :. .:...:".:.:TPP" .AVMMHMMA.:. "VMMHHHP.:... .. :IVAI -$f4 .:. '... .:"' . ..HMMMHMMMA::. ."VHHI:::.... .:IHW' -$f4 ... . . ..:IIPPIH: ..HMMMI.MMMV:I:. .:ILLH:.. ...:I:IM -$f4 : . .'"' .:.V". .. . :HMMM:IMMMI::I. ..:HHIIPPHI::'.P:HM. -$f4 :. . . .. ..:.. . :AMMM IMMMM..:...:IV":T::I::.".:IHIMA -$f4 'V:.. .. . .. . . . 'VMMV..VMMV :....:V:.:..:....::IHHHMH -$f4 "IHH:.II:.. .:. . . . . " :HB"" . . ..PI:.::.:::..:IHHMMV" -$f4 :IP""HHII:. . . . . .'V:. . . ..:IH:.:.::IHIHHMMMMM" -$f4 :V:. VIMA:I.. . . . .. . . .:.I:I:..:IHHHHMMHHMMM -$f4 :"VI:.VWMA::. .: . .. .:. ..:.I::.:IVHHHMMMHMMMMI -$f4 :."VIIHHMMA:. . . .: .:.. . .:.II:I:AMMMMMMHMMMMMI -$f4 :..VIHIHMMMI...::.,:.,:!"I:!"I!"I!"V:AI:VAMMMMMMHMMMMMM' -$f4 ':.:HIHIMHHA:"!!"I.:AXXXVVXXXXXXXA:."HPHIMMMMHHMHMMMMMV -$f4 V:H:I:MA:W'I :AXXXIXII:IIIISSSSSSXXA.I.VMMMHMHMMMMMM -$f4 'I::IVA ASSSSXSSSSBBSBMBSSSSSSBBMMMBS.VVMMHIMM'"' -$f4 I:: VPAIMSSSSSSSSSBSSSMMBSSSBBMMMMXXI:MMHIMMI -$f4 .I::. "H:XIIXBBMMMMMMMMMMMMMMMMMBXIXXMMPHIIMM' -$f4 :::I. ':XSSXXIIIIXSSBMBSSXXXIIIXXSMMAMI:.IMM -$f4 :::I:. .VSSSSSISISISSSBII:ISSSSBMMB:MI:..:MM -$f4 ::.I:. ':"SSSSSSSISISSXIIXSSSSBMMB:AHI:..MMM. -$f4 ::.I:. . ..:"BBSSSSSSSSSSSSBBBMMMB:AHHI::.HMMI -$f4 :..::. . ..::":BBBBBSSBBBMMMB:MMMMHHII::IHHMI -$f4 ':.I:... ....:IHHHHHMMMMMMMMMMMMMMMHHIIIIHMMV" -$f4 "V:. ..:...:.IHHHMMMMMMMMMMMMMMMMHHHMHHMHP' -$f4 ':. .:::.:.::III::IHHHHMMMMMHMHMMHHHHM" -$f4 "::....::.:::..:..::IIIIIHHHHMMMHHMV" -$f4 "::.::.. .. . ...:::IIHHMMMMHMV" -$f4 "V::... . .I::IHHMMV"' -$f4 '"VHVHHHAHHHHMMV:"' - -$rst - -EOF - - diff --git a/code/fun/slendy b/code/fun/slendy deleted file mode 100755 index 766e06c..0000000 --- a/code/fun/slendy +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -initializeANSI() -{ - esc="" - - blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" - yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" - cyanf="${esc}[36m"; whitef="${esc}[37m" - - blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" - yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" - cyanb="${esc}[46m"; whiteb="${esc}[47m" - - boldon="${esc}[1m"; boldoff="${esc}[22m" - italicson="${esc}[3m"; italicsoff="${esc}[23m" - ulon="${esc}[4m"; uloff="${esc}[24m" - invon="${esc}[7m"; invoff="${esc}[27m" - - reset="${esc}[0m" -} - -initializeANSI - -cat << EOF - - ${reset}${blackf}| | | | |${reset} - ${redf}█ █${reset} ${blackf}|${reset} ${greenf}█ █${reset} ${blackf}|${reset} ${yellowf}█ █${reset} ${blackf}|${reset} ${bluef}█ █${reset} ${blackf}|${reset} ${purplef}█ █${reset} ${blackf}|${reset} ${cyanf}█ █${reset} - ${redf}███████${reset} ${blackf}|${reset} ${greenf}███████${reset} ${blackf}|${reset} ${yellowf}███████${reset} ${blackf}|${reset} ${bluef}███████${reset} ${blackf}|${reset} ${purplef}███████${reset} ${blackf}|${reset} ${cyanf}███████${reset} - ${redf}███${boldon}${redb}██${reset}${redf}█${boldon}${redb}██${reset}${redf}███${reset} ${blackf}|${reset} ${greenf}███${boldon}${greenb}██${reset}${greenf}█${boldon}${greenb}██${reset}${greenf}███${reset} ${blackf}|${reset} ${yellowf}███${boldon}${yellowb}██${reset}${yellowf}█${boldon}${yellowb}██${reset}${yellowf}███${reset} ${blackf}|${reset} ${bluef}███${boldon}${blueb}██${reset}${bluef}█${boldon}${blueb}██${reset}${bluef}███${reset} ${blackf}|${reset} ${purplef}███${boldon}${purpleb}██${reset}${purplef}█${boldon}${purpleb}██${reset}${purplef}███${reset} ${blackf}|${reset} ${cyanf}███${boldon}${cyanb}██${reset}${cyanf}█${boldon}${cyanb}██${reset}${cyanf}███${reset} - ${redf}████${boldon}${redb}█${reset}${redf}████${reset} ${blackf}|${reset} ${greenf}████${boldon}${greenb}█${reset}${greenf}████${reset} ${blackf}|${reset} ${yellowf}████${boldon}${yellowb}█${reset}${yellowf}████${reset} ${blackf}|${reset} ${bluef}████${boldon}${blueb}█${reset}${bluef}████${reset} ${blackf}|${reset} ${purplef}████${boldon}${purpleb}█${reset}${purplef}████${reset} ${blackf}|${reset} ${cyanf}████${boldon}${cyanb}█${reset}${cyanf}████${reset} - ${redf}█ █ ${boldon}█${reset} ${redf}█ █${reset} ${blackf}|${reset} ${greenf}█ █ ${boldon}█${reset} ${greenf}█ █${reset} ${blackf}|${reset} ${yellowf}█ █ ${boldon}█${reset} ${yellowf}█ █${reset} ${blackf}|${reset} ${bluef}█ █ ${boldon}█${reset} ${bluef}█ █${reset} ${blackf}|${reset} ${purplef}█ █ ${boldon}█${reset} ${purplef}█ █${reset} ${blackf}|${reset} ${cyanf}█ █ ${boldon}█${reset} ${cyanf}█ █${reset} - ${redf}█ █${reset} ${blackf}|${reset} ${greenf}█ █${reset} ${blackf}|${reset} ${yellowf}█ █${reset} ${blackf}|${reset} ${bluef}█ █${reset} ${blackf}|${reset} ${purplef}█ █${reset} ${blackf}|${reset} ${cyanf}█ █${reset} - ${blackf}| | | | |${reset} -EOF \ No newline at end of file diff --git a/code/sys/gfx-intel.sh b/code/sys/gfx-intel.sh deleted file mode 100755 index 804de12..0000000 --- a/code/sys/gfx-intel.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -integrated=$(echo IGD | sudo tee /sys/kernel/debug/vgaswitcheroo/switch) - -notify-send -t 5000 \ --i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ -' gfx status -░░▒▒▓▓▓████▓▓▓▒▒░░' \ -" intel powered on" \ No newline at end of file diff --git a/code/sys/gfx-off.sh b/code/sys/gfx-off.sh deleted file mode 100755 index aeb6daf..0000000 --- a/code/sys/gfx-off.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -integrated=$(echo OFF | sudo tee /sys/kernel/debug/vgaswitcheroo/switch) - -notify-send -t 5000 \ --i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ -' gfx status -░░▒▒▓▓▓████▓▓▓▒▒░░' \ -"unused powered off" \ No newline at end of file diff --git a/code/sys/gfx-on.sh b/code/sys/gfx-on.sh deleted file mode 100755 index 57d08d4..0000000 --- a/code/sys/gfx-on.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -integrated=$(echo ON | sudo tee /sys/kernel/debug/vgaswitcheroo/switch) - -notify-send -t 5000 \ --i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ -' gfx status -░░▒▒▓▓▓████▓▓▓▒▒░░' \ -" both powered on" \ No newline at end of file diff --git a/code/sys/gfx-radeon.sh b/code/sys/gfx-radeon.sh deleted file mode 100755 index a0db665..0000000 --- a/code/sys/gfx-radeon.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -integrated=$(echo DIS | sudo tee /sys/kernel/debug/vgaswitcheroo/switch) - -notify-send -t 5000 \ --i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ -' gfx status -░░▒▒▓▓▓████▓▓▓▒▒░░' \ -"radeon powered on" \ No newline at end of file diff --git a/code/sys/gfx-status.sh b/code/sys/gfx-status.sh deleted file mode 100755 index 93d564a..0000000 --- a/code/sys/gfx-status.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -pci_integrated=$(lspci | grep VGA | sed -n '1p' | cut -f 1 -d " ") -pci_discrete=$(lspci | grep VGA | sed -n '2p' | cut -f 1 -d " ") - -integrated=$(cat /sys/kernel/debug/vgaswitcheroo/switch | grep $pci_integrated | grep -o -P ':.:...:') -discrete=$(cat /sys/kernel/debug/vgaswitcheroo/switch | grep $pci_discrete | grep -o -P ':.:...:') - -name_integrated=$(lspci | grep VGA | sed -n '1p' | sed -e "s/.* VGA compatible controller[ :]*//g" | sed -e "s/ Corporation//g" | sed -e "s/ Technologies Inc//g" | sed -e 's/\[[0-9]*\]: //g' | sed -e 's/\[[0-9:a-z]*\]//g' | sed -e 's/(rev [a-z0-9]*)//g' | sed -e "s/ Integrated Graphics Controller//g") -name_discrete=$(lspci | grep VGA | sed -n '2p' | sed -e "s/.* VGA compatible controller[ :]*//g" | sed -e "s/ Corporation//g" | sed -e "s/ Technologies Inc//g" | sed -e 's/\[[0-9]*\]: //g' | sed -e 's/\[[0-9:a-z]*\]//g' | sed -e 's/(rev [a-z0-9]*)//g' | sed -e "s/ Integrated Graphics Controller//g") - -if [ "$integrated" = ":+:Pwr:" ] -then -integrated_condition="on" -elif [ "$integrated" = ": :Pwr:" ] -then -integrated_condition="on" -elif [ "$integrated" = ": :Off:" ] -then -integrated_condition="off" -fi - -if [ "$discrete" = ":+:Pwr:" ] -then -discrete_condition="on" -elif [ "$discrete" = ": :Pwr:" ] -then -discrete_condition="on" -elif [ "$discrete" = ": :Off:" ] -then -discrete_condition="off" -fi - -notify-send -t 5000 \ --i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ -' gfx status -░░▒▒▓▓███▓▓▒▒░░' \ -" intel = $integrated_condition - radeon = $discrete_condition" \ No newline at end of file diff --git a/code/sys/hash-compare.sh b/code/sys/hash-compare.sh deleted file mode 100644 index 49dad54..0000000 --- a/code/sys/hash-compare.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -if [ "$#" -ne 2 ]; then - echo "please supply two files to diff" -else - sum1=$(md5sum $1) - sum2=$(md5sum $2) - - hash1="${sum1/$1/}" - hash2="${sum2/$2/}" - - if [ "$hash1" == "$hash2" ]; then - echo "identical" - else - echo "different" - fi -fi diff --git a/code/sys/toggle-touchpad.sh b/code/sys/toggle-touchpad.sh deleted file mode 100755 index 2381a86..0000000 --- a/code/sys/toggle-touchpad.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -# -# enable/disable touchpad -# find your touchpad name: -# egrep -i 'synap|alps|etps' /proc/bus/input/devices -PAD='SynPS/2 Synaptics TouchPad' -A=`xinput list-props "$PAD" | sed -n -e 's/.*Device Enabled ([0-9][0-9]*):\t\(.*\)/\1/p' ` -if [ $A -eq 1 ]; then -xinput set-int-prop "$PAD" "Device Enabled" 8 0 -notify-send -t 5000 \ -' touchpad -░░▒▒▓▓██▓▓▒▒░░' \ -' disabled' -else -xinput set-int-prop "$PAD" "Device Enabled" 8 1 -notify-send -t 5000 \ -' touchpad -░░▒▒▓▓██▓▓▒▒░░' \ -' enabled' -fi diff --git a/compton/.config/compton.conf b/compton/.config/compton.conf new file mode 100644 index 0000000..574b1e9 --- /dev/null +++ b/compton/.config/compton.conf @@ -0,0 +1,45 @@ +# Shadow +shadow = false; +no-dnd-shadow = true; +no-dock-shadow = true; +#clear-shadow = true; +#shadow-radius = 7; +#shadow-offset-x = -7; +#shadow-offset-y = -7; +shadow-opacity = 0.4; +# shadow-red = 0.0; +# shadow-green = 0.0; +# shadow-blue = 0.0; +shadow-exclude = [ "n:e:xfce4-notifyd" ]; +#shadow-ignore-shaped = false; + +# Opacity +menu-opacity = 0.9; +#inactive-opacity = 0.8; +#frame-opacity = 0.7; +inactive-opacity-override = false; +alpha-step = 0.06; + +# Fading +fading = false; +# fade-delta = 30; +fade-in-step = 0.03; +fade-out-step = 0.03; +# no-fading-openclose = true; + +# Other +mark-wmwin-focused = true; +mark-ovredir-focused = true; +detect-rounded-corners = true; +detect-client-opacity = true; +#refresh-rate = 0; +#vsync = "none"; +dbe = false; +paint-on-overlay = false; +sw-opti = false; + +# Window type settings +wintypes: +{ + tooltip = { fade = true; shadow = false; opacity = 0.85; }; +}; diff --git a/fonts/.fonts.conf b/fonts/.fonts.conf new file mode 100644 index 0000000..fd43810 --- /dev/null +++ b/fonts/.fonts.conf @@ -0,0 +1,63 @@ + + + + + + true + + + + + true + + + + + hintslight + + + + + rgb + + + + + true + + + + + lcddefault + + + + + + Gohufont + + + + + + + Stlarch + + + + + + + terminus + + + + + + + + false + + + + diff --git a/fonts/.fonts/gohu-README b/fonts/.fonts/gohu-README new file mode 100644 index 0000000..5107f37 --- /dev/null +++ b/fonts/.fonts/gohu-README @@ -0,0 +1,13 @@ +Gohufont +A font for programming and terminal use. +Available in heights of 11 and 14 pixels. +http://font.gohu.eu + +Copyright 2010 by Hugo Chargois + +LICENSE +This font is released under the terms of the WTFPL (see COPYING-LICENSE). + +THANKS AND AKNOWLEDGMENTS +The Unicode versions of the 11px font are based extensively on the fixed 6x10 font by Markus Kuhn (http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html). +I used the Terminus font in 14 px with great satisfaction for a long time before I decided to make gohufont 14 px, so it surely inspired me and they may share some similarities in appearance. It is not a derivative work though. Thanks to Dimitar Zhekov for his great font. diff --git a/fonts/.fonts/gohufont-11.pcf.gz b/fonts/.fonts/gohufont-11.pcf.gz new file mode 100644 index 0000000..53c37e4 Binary files /dev/null and b/fonts/.fonts/gohufont-11.pcf.gz differ diff --git a/fonts/.fonts/gohufont-11b.pcf.gz b/fonts/.fonts/gohufont-11b.pcf.gz new file mode 100644 index 0000000..265b0ec Binary files /dev/null and b/fonts/.fonts/gohufont-11b.pcf.gz differ diff --git a/fonts/.fonts/gohufont-14.pcf.gz b/fonts/.fonts/gohufont-14.pcf.gz new file mode 100644 index 0000000..fe62d9a Binary files /dev/null and b/fonts/.fonts/gohufont-14.pcf.gz differ diff --git a/fonts/.fonts/gohufont-14b.pcf.gz b/fonts/.fonts/gohufont-14b.pcf.gz new file mode 100644 index 0000000..4c536f2 Binary files /dev/null and b/fonts/.fonts/gohufont-14b.pcf.gz differ diff --git a/fonts/.fonts/gohufont-uni-11.pcf.gz b/fonts/.fonts/gohufont-uni-11.pcf.gz new file mode 100644 index 0000000..2ae8317 Binary files /dev/null and b/fonts/.fonts/gohufont-uni-11.pcf.gz differ diff --git a/fonts/.fonts/gohufont-uni-11b.pcf.gz b/fonts/.fonts/gohufont-uni-11b.pcf.gz new file mode 100644 index 0000000..a3e7d5e Binary files /dev/null and b/fonts/.fonts/gohufont-uni-11b.pcf.gz differ diff --git a/fonts/.fonts/gohufont-uni-14.pcf.gz b/fonts/.fonts/gohufont-uni-14.pcf.gz new file mode 100644 index 0000000..b5f7ad7 Binary files /dev/null and b/fonts/.fonts/gohufont-uni-14.pcf.gz differ diff --git a/fonts/.fonts/gohufont-uni-14b.pcf.gz b/fonts/.fonts/gohufont-uni-14b.pcf.gz new file mode 100644 index 0000000..14b835b Binary files /dev/null and b/fonts/.fonts/gohufont-uni-14b.pcf.gz differ diff --git a/fun/code/fun/2spooky.lua b/fun/code/fun/2spooky.lua new file mode 100755 index 0000000..a0ebc5d --- /dev/null +++ b/fun/code/fun/2spooky.lua @@ -0,0 +1,79 @@ + --Definitely not my best work, first script I've done in Lua 5.2 + function draw() + nissue = { + "\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[1;33m", + ",~~~~~~~~~~~~~, \027[0;31m..:::::::::.. \027[1;33m ,~~~~~~~~~~~~~,\027[1;33m", + "\027[1;33m:\027[1;32m .-======-,\027[1;33m : \027[0;31m ..:::\027[1;37maad8888888baa\027[0;31m:::.. \027[1;33m:\027[1;34mExploit-the \027[1;33m :\027[1;32m", + "\027[1;33m:\027[1;32m ||\027[0;31mH4CK3R\027[1;32m|# \027[1;33m : \027[0;31m .::::\027[1;37md:?88888888888?::8b\027[0;31m::::. \027[1;33m :\027[0;31m.-------,./|\027[1;33m :\027[1;32m", + "\027[1;33m:\027[1;32m ||______|| \027[1;33m :\027[1;34m&&&& \027[0;31m.:::\027[1;37md8888:?88888888??a888888b\027[0;31m:::. \027[1;34m &&&&\027[1;33m:\027[0;31m{ \027[1;33m VIRUS \027[0;31m /\027[1;33m :\027[1;33m", + "\027[1;33m:\027[1;32m | ___ | \027[1;33m : \027[1;34m + \027[0;31m.:::\027[1;37md8888888a8888888aa8888888888b\027[0;31m:::. \027[1;34m + \027[1;33m :\027[0;31m \\\027[1;33m DROPPER\027[0;31m 7\027[1;33m :\027[1;33m", + "\027[1;33m:\027[1;32m | |\027[1;35m[]\027[1;32m | | \027[1;33m : \027[1;34m &\027[0;31m::::\027[1;37mdP\027[0;31m\023\022\021\020\019\018\017\016\027[1;37m88888888888\027[0;31m\023\022\021\020\019\018\017\016\027[1;37mYb\027[0;31m::::\027[1;34m&&\027[1;33m :\027[0;31m ~. ,--.( \027[1;33m :\027[1;33m", + "\027[1;33m:\027[1;32m `-------' \027[1;33m : \027[0;31m::::\027[1;37mdP\027[0;31m\024:::::::\015\027[1;37mY888888888P\027[0;31m\024:::::::\015\027[1;37mYb\027[0;31m::::\027[1;33m : \027[0;31m '~ `;\027[1;33m :\027[1;33m", + "\027[1;33m:\027[0;31mReverse- \027[1;33m : \027[0;31m::::\027[1;37md8\027[0;31m\001:::::::::\014\027[1;37mY8888888P\027[0;31m\001:::::::::\014\027[1;37m8b\027[0;31m::::\027[1;33m :\027[1;34mNation's-\027[0;31mData\027[1;33m:\027[1;33m", + "\027[1;33m:\027[0;31mEngineering \027[1;33m: \027[0;31m.::::\027[1;37m88\027[0;31m\002\003\004\005\006\007\008\009\010\011\012\013\027[1;37mY88888P\027[0;31m\002\003\004\005\006\007\008\009\010\011\012\013\027[1;37m88\027[0;31m::::.\027[1;33m `~~~~~~~~~~~~'\027[1;33m", + "\027[1;33m `~~~~~~~~~~~~' \027[0;31m:::::\027[1;37mY8baaaaaaaaaa88P\027[0;31m:\027[1;37mT\027[0;31m:\027[1;37mY88aaaaaaaaaad8P\027[0;31m::::: \027[0;31m", + "\027[0;31m :::::::\027[1;37mY88888888888P\027[0;31m::\027[1;37m|\027[0;31m::\027[1;37mY88888888888P\027[0;31m::::::: \027[0;31m", + "\027[1;33m,~~~~~~~~~~~~~, \027[0;31m::::::::::::::::\027[1;37m888\027[0;31m:::\027[1;37m|\027[0;31m:::\027[1;37m888\027[0;31m::::::::::::::::\027[1;33m ,~~~~~~~~~~~~~,\027[1;33m", + "\027[1;33m:\027[1;34m R00T-KITS \027[1;33m : \027[0;31m`:::::::::::::::\027[1;37m8888888888888b\027[0;31m::::::::::::::' \027[1;33m :\027[0;31mHoM3-$w33t\027[1;33m :\027[1;37m", + "\027[1;33m:\027[0;31m ____ \027[1;37m __ \027[1;33m : \027[0;31m:::::::::::::::\027[1;37m88888888888888\027[0;31m:::::::::::::: \027[1;33m :\027[1;34m (I\027[1;33m :\027[1;33m", + "\027[1;33m: \027[0;31m| |\027[1;37m |\027[0;31m-_\027[1;37m| \027[1;33m:\027[0;31m :::::::::::::\027[1;37md88888888888888\027[0;31m::::::::::::: \027[1;33m :\027[1;36m^^^\027[1;34m |\027[1;36m ^^^\027[1;33m:\027[1;33m", + "\027[1;33m:\027[0;31m |____|\027[1;33m_\027[1;37m|\027[0;31m=_\027[1;37m|\027[1;33m :\027[0;31m ::::::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::\027[1;37m88\027[0;31m::::::::::::\027[1;33m :\027[1;34m|u|_\027[1;36m^^^^^\027[1;34m_|u|\027[1;33m:\027[1;33m", + "\027[1;33m:\027[1;37m ____\027[1;33m)\027[1;37m_\027[1;37m.\027[1;37m___\027[1;33m : \027[0;31m`::::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::\027[1;37m88\027[0;31m::::::::::' \027[1;33m :\027[1;34m|_ u _ u _|\027[1;33m:\027[1;33m", + "\027[1;33m: \027[1;37m/\027[1;34m:::::;\027[1;37m|\027[1;34m _\027[1;37m)\027[1;33m:\027[1;34m &\027[0;31m`:::::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m::\027[1;37mP\027[0;31m::::\027[1;37m88\027[0;31m:::::::::'\027[1;34m& \027[1;33m:\027[1;34m |__|\027[1;37m;\027[1;34m|__| \027[1;33m :\027[1;33m", + "\027[1;33m:\027[1;37m `======'\027[1;34m |_|\027[1;33m: \027[1;34m+ \027[0;31m `:::::::\027[1;37m88\027[0;31m::\027[1;37m88\027[0;31m:::::::\027[1;37m88\027[0;31m:::::::' \027[1;34m + \027[1;33m :\027[1;34m /_/ \027[1;33m :\027[1;33m", + "\027[1;33m:\027[1;34mUr-Computer-\027[1;33m :\027[1;34m&&&&&&& \027[0;31m ``:::::::::::::::::::::::''\027[1;34m &&&&&&&\027[1;33m:\027[0;31mH4x0r-HoM3- \027[1;33m :\027[1;33m", + "\027[1;33m:\027[1;34mis-MY-\027[0;31mSlave \027[1;33m : \027[0;31m ``::::::::::::::''\027[1;33m :\027[0;31m *\027[1;37m127\027[0;31m.\027[1;37m0\027[0;31m.\027[1;37m0\027[0;31m.\027[1;37m1\027[0;31m* \027[1;33m:\027[1;33m", + "\027[1;33m `~~~~~~~~~~~~' `~~~~~~~~~~~~'\027[1;33m", + "\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[0;31m=\027[1;37m-\027[1;37m", + "\027[0;31m -======- \027[1;37m +\027[0;31mWARNING\027[1;37m+\027[1;33m\"\027[0;31mIllegal\027[1;37m_\027[0;31mNetwork\027[1;37m_\027[0;31mConnections\027[1;37m_\027[0;31mBeyond\027[1;37m_\027[0;31mLogin\027[1;33m\" \027[0;31m -======-\027[0;31m", + "\027[0;31m |\027[1;32mH\027[1;34m4\027[1;33mC\027[1;35mK\027[1;36m3\027[1;37mR\027[0;31m| \027[1;34m -== \027[1;37m You are at the point of \027[0;31mNO RETURN \027[1;34m ==- \027[0;31m |\027[1;32mH\027[1;34m4\027[1;33mC\027[1;35mK\027[1;36m3\027[1;37mR\027[0;31m|\027[0;31m", + "\027[0;31m |______|\027[0;31mYour Activities\027[1;37m:\027[1;33mWill\027[1;37m_\027[1;33mbe\027[1;37m_\027[1;33mKeylogged\027[1;37m_\027[1;33mand\027[1;37m_\027[1;33mTimestamped \027[1;34m\"\027[0;31mUSER_BEWARE\027[1;34m\"\027[0;31m|______|\027[0;31m", + "\027[0;31mHacking Sites\027[1;37m:\027[0;31m https\027[1;37m:\027[1;33m//\027[0;31msites\027[1;37m.\027[0;31mgoogle\027[1;37m.\027[0;31mcom\027[1;33m/\027[0;31msite\027[1;33m/\027[0;31mlazyboxx \027[1;35m*\027[0;31m http\027[1;37m:\027[1;33m//\027[0;31mwww\027[1;37m.\027[0;31mfreebsd\027[1;37m.\027[0;31morg \027[1;33m" + } + io.write("\027[1;1H") --reset cursor + for a = 7,11 do + for b = 1,24 do + if b == position then + nissue[a] = string.gsub(nissue[a],string.char(b),"\027[1;31m@\027[0;31m") + else + nissue[a] = string.gsub(nissue[a],string.char(b),":") + end + end + end + for a = 5,21 do + if bool then + nissue[a] = string.gsub(nissue[a],"&","\027[31;1m=\027[37;1m") + nissue[a] = string.gsub(nissue[a],"+","\027[31;1m|\027[37;1m") + else + nissue[a] = string.gsub(nissue[a],"&","=") + nissue[a] = string.gsub(nissue[a],"+","|") + end + end + for i = 1,28 do + print(nissue[i]) + end + bool = not bool + end + function changepos(num) + if position == 24 and num == 1 then + position = 1 + elseif position == 1 and num == -1 then + position = 24 + else + position = position + num + end + end + position = 14 + bool = true + dirs = {1,-1} + draw() + while true do + move = math.random(1,6) + dir = dirs[math.random(1,2)] + draw() + for m = 1,move do + changepos(dir) + draw() + os.execute("sleep 0.1") --Replace it with some other way to wait one tenth of a second if you're using Windows or don't have "sleep" + end --On the subject of Windows compatibility, Ansicon is a perfect way to make the Ansi escape codes work. + end diff --git a/fun/code/fun/colors b/fun/code/fun/colors new file mode 100755 index 0000000..c8d527b --- /dev/null +++ b/fun/code/fun/colors @@ -0,0 +1,13 @@ +#!/bin/bash + +xdef="$HOME/.Xdefaults" + +colors=( $( sed -re '/^!/d; /^$/d; /^#/d; s/(\*color)([0-9]):/\10\2:/g;' $xdef | grep 'color[01][0-9]:' | sort | sed 's/^.*: *//g' ) ) + +echo -e "\e[1;37m + Black Red Green Yellow Blue Magenta Cyan White +──────────────────────────────────────────────────────────────────────\e[0m" +for i in {0..7}; do echo -en "\e[$((30+$i))m ${colors[i]} \e[0m"; done +echo +for i in {8..15}; do echo -en "\e[1;$((22+$i))m ${colors[i]} \e[0m"; done +echo -e "\n" diff --git a/fun/code/fun/colorscheme b/fun/code/fun/colorscheme new file mode 100755 index 0000000..ad8ab40 --- /dev/null +++ b/fun/code/fun/colorscheme @@ -0,0 +1,27 @@ +#!/bin/bash +# +# This file echoes a bunch of color codes to the +# terminal to demonstrate what's available. Each +# line is the color code of one forground color, +# out of 17 (default + 16 escapes), followed by a +# test use of that color on all nine background +# colors (default + 8 escapes). +# + +T='TiP' # The test text + +echo -e "\n 40m 41m 42m 43m\ + 44m 45m 46m 47m"; + +for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \ + '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \ + ' 36m' '1;36m' ' 37m' '1;37m'; + do FG=${FGs// /} + echo -en " $FGs \033[$FG $T " + for BG in 40m 41m 42m 43m 44m 45m 46m 47m; + do echo -en "$EINS \033[$FG\033[$BG $T \033[0m"; + done + echo; +done +echo + diff --git a/fun/code/fun/dna b/fun/code/fun/dna new file mode 100755 index 0000000..a049e0b --- /dev/null +++ b/fun/code/fun/dna @@ -0,0 +1,46 @@ +#!/bin/bash +# +# ANSI color scheme script by pfh +# +# Initializing mod by lolilolicon from Archlinux +# + +f=3 b=4 +for j in f b; do + for i in {0..7}; do + printf -v $j$i %b "\e[${!j}${i}m" + done +done +bld=$'\e[1m' +rst=$'\e[0m' +inv=$'\e[7m' + +cat << EOF + + ${f1} █-----${bld}█ ${rst}${f2} █-----${bld}█${rst} ${f3} █-----${bld}█${rst} ${f4} █-----${bld}█${rst} ${f5} █-----${bld}█${rst} ${f6} █-----${bld}█${rst} + ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst} + ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst} + ${f1} █${rst} ${f2} █${rst} ${f3} █${rst} ${f4} █${rst} ${f5} █${rst} ${f6} █${rst} + ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █_${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst} + ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst} + ${f1}${bld} █-----${rst}${f1}█${rst} ${f2}${bld} █-----${rst}${f2}█${rst} ${f3}${bld} █-----${rst}${f3}█${rst} ${f4}${bld} █-----${rst}${f4}█${rst} ${f5}${bld} █-----${rst}${f5}█${rst} ${f6}${bld} █-----${rst}${f6}█${rst} + ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst} + ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █-${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst} + ${f1}${bld} █${rst} ${f2}${bld} █${rst} ${f3}${bld}█${rst} ${f4}${bld} █${rst} ${f5}${bld} █${rst} ${f6}${bld} █${rst} + ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst} + ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst} + ${f1} █-----${bld}█ ${rst}${f2} █-----${bld}█${rst} ${f3} █-----${bld}█${rst} ${f4} █-----${bld}█${rst} ${f5} █-----${bld}█${rst} ${f6} █-----${bld}█${rst} + ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst} + ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst} + ${f1} █${rst} ${f2}█${rst} ${f3} █${rst} ${f4} █${rst} ${f5} █${rst} ${f6} █${rst} + ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █_${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst} + ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst} + ${f1}${bld} █-----${rst}${f1}█${rst} ${f2}${bld} █-----${rst}${f2}█${rst} ${f3}${bld} █-----${rst}${f3}█${rst} ${f4}${bld} █-----${rst}${f4}█${rst} ${f5}${bld} █-----${rst}${f5}█${rst} ${f6}${bld} █-----${rst}${f6}█${rst} + ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst} + ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █-${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst} + ${f1}${bld} █${rst} ${f2}${bld} █${rst} ${f3}${bld} █${rst} ${f4}${bld} █${rst} ${f5}${bld} █${rst} ${f6}${bld} █${rst} + ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst} + ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst} + ${f1} █-----${bld}█ ${rst}${f2} █-----${bld}█${rst} ${f3} █-----${bld}█${rst} ${f4} █-----${bld}█${rst} ${f5} █-----${bld}█${rst} ${f6} █-----${bld}█${rst} + +EOF \ No newline at end of file diff --git a/fun/code/fun/ghosts b/fun/code/fun/ghosts new file mode 100755 index 0000000..2cf1727 --- /dev/null +++ b/fun/code/fun/ghosts @@ -0,0 +1,31 @@ +#!/bin/bash +# +# ANSI color scheme script by pfh +# +# Initializing mod by lolilolicon from Archlinux +# + +f=3 b=4 +for j in f b; do + for i in {0..7}; do + printf -v $j$i %b "\e[${!j}${i}m" + done +done +bld=$'\e[1m' +rst=$'\e[0m' +inv=$'\e[7m' +cat << EOF + +$f1 ▄▄▄ $f2 ▄▄▄ $f3 ▄▄▄ $f4 ▄▄▄ $f5 ▄▄▄ $f6 ▄▄▄ +$f1 ▀█▀██ ▄ $f2 ▀█▀██ ▄ $f3 ▀█▀██ ▄ $f4 ▀█▀██ ▄ $f5 ▀█▀██ ▄ $f6 ▀█▀██ ▄ +$f1 ▀▄██████▀ $f2 ▀▄██████▀ $f3 ▀▄██████▀ $f4 ▀▄██████▀ $f5 ▀▄██████▀ $f6 ▀▄██████▀ +$f1 ▀█████ $f2 ▀█████ $f3 ▀█████ $f4 ▀█████ $f5 ▀█████ $f6 ▀█████ +$f1 ▀▀▀▀▄ $f2 ▀▀▀▀▄ $f3 ▀▀▀▀▄ $f4 ▀▀▀▀▄ $f5 ▀▀▀▀▄ $f6 ▀▀▀▀▄ +$bld +$f1 ▄▄▄ $f2 ▄▄▄ $f3 ▄▄▄ $f4 ▄▄▄ $f5 ▄▄▄ $f6 ▄▄▄ +$f1 ▀█▀██ ▄ $f2 ▀█▀██ ▄ $f3 ▀█▀██ ▄ $f4 ▀█▀██ ▄ $f5 ▀█▀██ ▄ $f6 ▀█▀██ ▄ +$f1 ▀▄██████▀ $f2 ▀▄██████▀ $f3 ▀▄██████▀ $f4 ▀▄██████▀ $f5 ▀▄██████▀ $f6 ▀▄██████▀ +$f1 ▀█████ $f2 ▀█████ $f3 ▀█████ $f4 ▀█████ $f5 ▀█████ $f6 ▀█████ +$f1 ▀▀▀▀▄ $f2 ▀▀▀▀▄ $f3 ▀▀▀▀▄ $f4 ▀▀▀▀▄ $f5 ▀▀▀▀▄ $f6 ▀▀▀▀▄ +$rst +EOF \ No newline at end of file diff --git a/fun/code/fun/invaders b/fun/code/fun/invaders new file mode 100755 index 0000000..0ca2036 --- /dev/null +++ b/fun/code/fun/invaders @@ -0,0 +1,54 @@ +#!/bin/sh + +# ANSI Color -- use these variables to easily have different color +# and format output. Make sure to output the reset sequence after +# colors (f = foreground, b = background), and use the 'off' +# feature for anything you turn on. + +initializeANSI() +{ + esc="" + + blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" + yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" + cyanf="${esc}[36m"; whitef="${esc}[37m" + + blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" + yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" + cyanb="${esc}[46m"; whiteb="${esc}[47m" + + boldon="${esc}[1m"; boldoff="${esc}[22m" + italicson="${esc}[3m"; italicsoff="${esc}[23m" + ulon="${esc}[4m"; uloff="${esc}[24m" + invon="${esc}[7m"; invoff="${esc}[27m" + + reset="${esc}[0m" +} + +# note in this first use that switching colors doesn't require a reset +# first - the new color overrides the old one. + +initializeANSI + +cat << EOF + + ${boldon}${redf}▀▄ ▄▀ ${reset} ${boldon}${greenf}▄▄▄████▄▄▄ ${reset} ${boldon}${yellowf} ▄██▄ ${reset} ${boldon}${bluef}▀▄ ▄▀ ${reset} ${boldon}${purplef}▄▄▄████▄▄▄ ${reset} ${boldon}${cyanf} ▄██▄ ${reset} + ${boldon}${redf}▄█▀███▀█▄ ${reset} ${boldon}${greenf}███▀▀██▀▀███${reset} ${boldon}${yellowf}▄█▀██▀█▄${reset} ${boldon}${bluef}▄█▀███▀█▄ ${reset} ${boldon}${purplef}███▀▀██▀▀███${reset} ${boldon}${cyanf}▄█▀██▀█▄${reset} + ${boldon}${redf}█▀███████▀█${reset} ${boldon}${greenf}▀▀▀██▀▀██▀▀▀${reset} ${boldon}${yellowf}▀▀█▀▀█▀▀${reset} ${boldon}${bluef}█▀███████▀█${reset} ${boldon}${purplef}▀▀▀██▀▀██▀▀▀${reset} ${boldon}${cyanf}▀▀█▀▀█▀▀${reset} + ${boldon}${redf}▀ ▀▄▄ ▄▄▀ ▀${reset} ${boldon}${greenf}▄▄▀▀ ▀▀ ▀▀▄▄${reset} ${boldon}${yellowf}▄▀▄▀▀▄▀▄${reset} ${boldon}${bluef}▀ ▀▄▄ ▄▄▀ ▀${reset} ${boldon}${purplef}▄▄▀▀ ▀▀ ▀▀▄▄${reset} ${boldon}${cyanf}▄▀▄▀▀▄▀▄${reset} + + ${redf}▀▄ ▄▀ ${reset} ${greenf}▄▄▄████▄▄▄ ${reset} ${yellowf} ▄██▄ ${reset} ${bluef}▀▄ ▄▀ ${reset} ${purplef}▄▄▄████▄▄▄ ${reset} ${cyanf} ▄██▄ ${reset} + ${redf}▄█▀███▀█▄ ${reset} ${greenf}███▀▀██▀▀███${reset} ${yellowf}▄█▀██▀█▄${reset} ${bluef}▄█▀███▀█▄ ${reset} ${purplef}███▀▀██▀▀███${reset} ${cyanf}▄█▀██▀█▄${reset} + ${redf}█▀███████▀█${reset} ${greenf}▀▀▀██▀▀██▀▀▀${reset} ${yellowf}▀▀█▀▀█▀▀${reset} ${bluef}█▀███████▀█${reset} ${purplef}▀▀▀██▀▀██▀▀▀${reset} ${cyanf}▀▀█▀▀█▀▀${reset} + ${redf}▀ ▀▄▄ ▄▄▀ ▀${reset} ${greenf}▄▄▀▀ ▀▀ ▀▀▄▄${reset} ${yellowf}▄▀▄▀▀▄▀▄${reset} ${bluef}▀ ▀▄▄ ▄▄▀ ▀${reset} ${purplef}▄▄▀▀ ▀▀ ▀▀▄▄${reset} ${cyanf}▄▀▄▀▀▄▀▄${reset} + + + ${whitef}▌${reset} + + ${whitef}▌${reset} + ${whitef}${reset} + ${whitef}▄█▄${reset} + ${whitef}▄█████████▄${reset} + ${whitef}▀▀▀▀▀▀▀▀▀▀▀${reset} + +EOF \ No newline at end of file diff --git a/fun/code/fun/pacman b/fun/code/fun/pacman new file mode 100755 index 0000000..51697cc --- /dev/null +++ b/fun/code/fun/pacman @@ -0,0 +1,37 @@ +#!/bin/bash +# +# ANSI color scheme script featuring PACMAN +# by pfh +# +# Initializing procedure by lolilolicon +# + +f=3 b=4 +for j in f b; do + for i in {0..7}; do + printf -v $j$i %b "\e[${!j}${i}m" + done +done +bld=$'\e[1m' +rst=$'\e[0m' +inv=$'\e[7m' + + +cat << EOF + +$rst + $f3 ▄███████▄ $f1 ▄██████▄ $f2 ▄██████▄ $f4 ▄██████▄ $f5 ▄██████▄ $f6 ▄██████▄ + $f3▄█████████▀▀ $f1▄$f7█▀█$f1██$f7█▀█$f1██▄ $f2▄█$f7███$f2██$f7███$f2█▄ $f4▄█$f7███$f4██$f7███$f4█▄ $f5▄█$f7███$f5██$f7███$f5█▄ $f6▄██$f7█▀█$f6██$f7█▀█$f6▄ + $f3███████▀ $f7▄▄ ▄▄ ▄▄ $f1█$f7▄▄█$f1██$f7▄▄█$f1███ $f2██$f7█ █$f2██$f7█ █$f2██ $f4██$f7█ █$f4██$f7█ █$f4██ $f5██$f7█ █$f5██$f7█ █$f5██ $f6███$f7█▄▄$f6██$f7█▄▄$f6█ + $f3███████▄ $f7▀▀ ▀▀ ▀▀ $f1████████████ $f2████████████ $f4████████████ $f5████████████ $f6████████████ + $f3▀█████████▄▄ $f1██▀██▀▀██▀██ $f2██▀██▀▀██▀██ $f4██▀██▀▀██▀██ $f5██▀██▀▀██▀██ $f6██▀██▀▀██▀██ + $f3 ▀███████▀ $f1▀ ▀ ▀ ▀ $f2▀ ▀ ▀ ▀ $f4▀ ▀ ▀ ▀ $f5▀ ▀ ▀ ▀ $f6▀ ▀ ▀ ▀ +$bld + $f3 ▄███████▄ $f1 ▄██████▄ $f2 ▄██████▄ $f4 ▄██████▄ $f5 ▄██████▄ $f6 ▄██████▄ + $f3▄█████████▀▀ $f1▄$f7█▀█$f1██$f7█▀█$f1██▄ $f2▄█$f7█ █$f2██$f7█ █$f2█▄ $f4▄█$f7█ █$f4██$f7█ █$f4█▄ $f5▄█$f7█ █$f5██$f7█ █$f5█▄ $f6▄██$f7█▀█$f6██$f7█▀█$f6▄ + $f3███████▀ $f7▄▄ ▄▄ ▄▄ $f1█$f7▄▄█$f1██$f7▄▄█$f1███ $f2██$f7███$f2██$f7███$f2██ $f4██$f7███$f4██$f7███$f4██ $f5██$f7███$f5██$f7███$f5██ $f6███$f7█▄▄$f6██$f7█▄▄$f6█ + $f3███████▄ $f7▀▀ ▀▀ ▀▀ $f1████████████ $f2████████████ $f4████████████ $f5████████████ $f6████████████ + $f3▀█████████▄▄ $f1██▀██▀▀██▀██ $f2██▀██▀▀██▀██ $f4██▀██▀▀██▀██ $f5██▀██▀▀██▀██ $f6██▀██▀▀██▀██ + $f3 ▀███████▀ $f1▀ ▀ ▀ ▀ $f2▀ ▀ ▀ ▀ $f4▀ ▀ ▀ ▀ $f5▀ ▀ ▀ ▀ $f6▀ ▀ ▀ ▀ +$rst +EOF diff --git a/fun/code/fun/pipes b/fun/code/fun/pipes new file mode 100755 index 0000000..43e7046 --- /dev/null +++ b/fun/code/fun/pipes @@ -0,0 +1,122 @@ +#!/usr/bin/env bash +# pipes.sh: Animated pipes terminal screensaver. +# +# This modified version is maintained at: +# +# https://github.com/livibetter/pipes.sh + +# options: +# s = straight [5-15] +# f = rate [20-100] +# t = style [0-5] +# r = ttl + +VERSION=0.1.0 + +M=32768 +p=1 +f=75 s=13 r=2000 t=0 +w=$(tput cols) h=$(tput lines) +# ab -> idx = a*4 + b +# 0: up, 1: right, 2: down, 3: left +# 00 means going up , then going up -> ┃ +# 12 means going right, then going down -> ┓ +sets=( + "┃┏ ┓┛━┓ ┗┃┛┗ ┏━" + "│╭ ╮╯─╮ ╰│╯╰ ╭─" + "│┌ ┐┘─┐ └│┘└ ┌─" + "║╔ ╗╝═╗ ╚║╝╚ ╔═" + "|+ ++-+ +|++ +-" + "|/ \/-\ \|/\ /-" +) +v=() +RNDSTART=0 +NOCOLOR=0 + +OPTIND=1 +while getopts "p:t:f:s:r:RChv" arg; do +case $arg in + p) ((p=(OPTARG>0)?OPTARG:p));; + t) ((OPTARG>=0 && OPTARG<${#sets[@]})) && V+=($OPTARG);; + f) ((f=(OPTARG>19 && OPTARG<101)?OPTARG:f));; + s) ((s=(OPTARG>4 && OPTARG<16 )?OPTARG:s));; + r) ((r=(OPTARG>=0)?OPTARG:r));; + R) RNDSTART=1;; + C) NOCOLOR=1;; + h) echo -e "Usage: $(basename $0) [OPTION]..." + echo -e "Animated pipes terminal screensaver.\n" + echo -e " -p [1-]\tnumber of pipes (D=1)." + echo -e " -t [0-$((${#sets[@]} - 1))]\ttype of pipes, can be used more than once (D=0)." + echo -e " -f [20-100]\tframerate (D=75)." + echo -e " -s [5-15]\tprobability of a straight fitting (D=13)." + echo -e " -r LIMIT\treset after x characters, 0 if no limit (D=2000)." + echo -e " -R \t\trandom starting point." + echo -e " -C \t\tno color." + echo -e " -h\t\thelp (this screen)." + echo -e " -v\t\tprint version number.\n" + exit 0;; + v) echo "$(basename -- "$0") $VERSION" + exit 0 + esac +done + +# set default values if not by options +((${#V[@]})) || V=(0) + +# Attempt to workaround for Bash versions < 4, such as 3.2 on Mac: +# https://gist.github.com/livibetter/4689307/#comment-892368 +# Untested--in conduction of using shebang `env bash`--should fall back to +# `sleep` +printf -v SLEEP "read -t0.0$((1000/f)) -n 1" +if $SLEEP &>/dev/null; (($? != 142)); then + printf -v SLEEP "sleep 0.0$((1000/f))" +fi + +cleanup() { + # clear up standard input + read -t 0 && cat /dev/null + + tput rmcup + tput cnorm + stty echo + exit 0 +} +trap cleanup SIGHUP SIGINT SIGTERM + +for (( i=1; i<=p; i++ )); do + c[i]=$((i%8)) n[i]=0 l[i]=0 + ((x[i]=RNDSTART==1?RANDOM*w/32768:w/2)) + ((y[i]=RNDSTART==1?RANDOM*h/32768:h/2)) + v[i]=${V[${#V[@]} * RANDOM / M]} +done + +stty -echo +tput smcup +tput reset +tput civis +# any key press exits the loop and this script +while $SLEEP; (($? > 128)) || [[ $SLEEP = sleep* ]] && (($? == 0)); do + for (( i=1; i<=p; i++ )); do + # New position: + ((${l[i]}%2)) && ((x[i]+=-${l[i]}+2,1)) || ((y[i]+=${l[i]}-1)) + + # Loop on edges (change color on loop): + ((${x[i]}>w||${x[i]}<0||${y[i]}>h||${y[i]}<0)) && ((c[i]=RANDOM%8, v[i]=V[${#V[@]}*RANDOM/M])) + ((x[i]=(x[i]+w)%w)) + ((y[i]=(y[i]+h)%h)) + + # New random direction: + ((n[i]=RANDOM%s-1)) + ((n[i]=(${n[i]}>1||${n[i]}==0)?${l[i]}:${l[i]}+${n[i]})) + ((n[i]=(${n[i]}<0)?3:${n[i]}%4)) + + # Print: + tput cup ${y[i]} ${x[i]} + [[ $NOCOLOR == 0 ]] && echo -ne "\033[1;3${c[i]}m" + echo -n "${sets[v[i]]:l[i]*4+n[i]:1}" + l[i]=${n[i]} + done + ((r>0 && t*p>=r)) && tput reset && tput civis && t=0 || ((t++)) +done + +cleanup \ No newline at end of file diff --git a/fun/code/fun/pipesx b/fun/code/fun/pipesx new file mode 100755 index 0000000..a937bf8 --- /dev/null +++ b/fun/code/fun/pipesx @@ -0,0 +1,193 @@ +#!/bin/bash +# Animated pipes.sh terminal screensaver at an angle. +# Copyright (C) 2013, 2014 by Yu-Jie Lin +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. +# +# Website: https://github.com/livibetter/pipesX.sh + +VERSION=0.1.0 + +W=$(tput cols) H=$(tput lines) +# maximal random value + 1 +M=32768 + +SETS=('╱╲' '/\') +COLORS=(31 32 33 34 35 36 37) + +# default values +N=1 +T=() +I=0.05 +P=25 +R=$((W * H / 4)) + +HELP="Usage: $(basename $0) [OPTIONS] +Animated pipes.sh terminal screensaver at an angle. + +Options: + + -n [1-] number of pipes. (Default: $N) + -t [0-$((${#SETS[@]} - 1))] types of pipes, can be used more than once. (Default: $T) + -i [float] piping interval or maze generation interval. (Default: $I) + -P [0-100] probability of a turning pipe or of \\ in maze generation. (Default: $P) + -r [LIMIT] reset after x characters, 0 if no limit. (Default: $R) + -R random starting point. + -C no color. + -X maze generation. + -h this help message. + -v print version number. +" + +while getopts "n:t:i:P:r:RCXhv" arg; do + case $arg in + n) + ((N = OPTARG > 0 ? OPTARG : N)) + ;; + t) + T+=($(((OPTARG >= 0 && OPTARG < ${#SETS[@]}) ? OPTARG : T))) + ;; + i) + I=$OPTARG + ;; + P) + ((P = (OPTARG >= 0 && OPTARG <= 100) ? OPTARG : P)) + ;; + r) + ((R = OPTARG >= 0 ? OPTARG : R)) + ;; + R) + RNDSTART=1 + ;; + C) + NOCOLOR=1 + ;; + X) + MAZE=1 + ;; + h) + echo -e "$HELP" + exit 0 + ;; + v) + echo "$(basename -- "$0") $VERSION" + exit 0 + esac +done + +# set to default values if not by options +((${#T[@]})) || T=(0) + +do_exit() { + # Show cursor and echo stdin + echo -ne "\e[?25h" + stty echo + clear + exit 0 + } +trap do_exit INT TERM + +# No echo stdin and hide the cursor +stty -echo +echo -ne "\e[?25l" + +# maze geneartion +while [[ $MAZE ]] && clear; do + [[ $NOCOLOR ]] || echo -ne "\e[1;${COLORS[${#COLORS[@]} * RANDOM / M]}m" + for ((i = 0; i < W * H; i++ )); do + echo -ne ${SETS[T]:100 * RANDOM / M < P:1} + done + read -t $I -n 1 && [[ $REPLY =~ q|Q ]] && do_exit +done + +# initialze values +for ((n = 0; n < N; n++)); do + ((X[n] = RNDSTART ? (W + 2) * RANDOM / M : W / 2)) + ((Y[n] = RNDSTART ? (H + 2) * RANDOM / M : H / 2)) + D[n]=$((4 * RANDOM / M)) + C[n]=${COLORS[${#COLORS[@]} * RANDOM / M]} + t[n]=${T[${#T[@]} * RANDOM / M]} +done + +clear +while :; do + for ((n = 0; n < N; n++, CC = 0)); do + x=${X[n]} y=${Y[n]} + d=${D[n]} c=${C[n]} + + # calculate new direction `d` + # 1 0 + # \/ 4 directions 0 to 3 + # /\ + # 2 3 + # valid directions: d: dd', d' is the new direction + # d + # 0: / 00 \ 01 03 + # / / /\ + # 1: / 10 \ 11 12 + # \ \ /\ + # 2: \/ 21 / 22 / 23 + # / \ + # 3: \/ 30 \ 32 \ 33 + # / \ + ((d = (100 * RANDOM / M) < P ? ((d + 1) + 2 * (RANDOM % 2)) % 4 : d)) + ((e = (d + 1) % 4)) + + # calculate new position + # d' x' y' + # 0: x+1 y-1 + # 1: x-1 y-1 + # 2: x-1 y+1 + # 3: x+1 y+1 + ((xn = e < 2 ? x + 1 : x - 1)) + ((yn = d < 2 ? y - 1 : y + 1)) + + # adjust position and change color? + ((d < 2 && y == 0)) && ((yn--, CC=1)) + ((e > 1 && x == 0)) && ((xn--, CC=1)) + ((d > 1 && y == H)) && ((yn++, CC=1)) + ((e < 2 && x == W)) && ((xn++, CC=1)) + ((CC)) && c=${COLORS[${#COLORS[@]} * RANDOM / M]} + ((CC)) && t[n]=${T[${#T[@]} * RANDOM / M]} + + # warp pipe + ((xn = (xn + W + 1) % (W + 1))) + ((yn = (yn + H + 1) % (H + 1))) + + # calculate position in terminal + # d' xt yt + # 0: x' y'+1 + # 1: x'+1 y'+1 + # 2: x'+1 y' + # 3: x' y' + ((xt = e < 2 ? xn : xn + 1)) + ((yt = d < 2 ? yn + 1 : yn)) + + echo -ne "\e[${yt};${xt}H" + [[ $NOCOLOR ]] || echo -ne "\e[1;${c}m" + echo -n "${SETS[t[n]]:d%2:1}" + + X[n]=$xn Y[n]=$yn + D[n]=$d C[n]=$c + done + read -t $I -n 1 && [[ $REPLY =~ q|Q ]] && do_exit + ((R)) && ((r += N, r >= R)) && r=0 && clear +done + +do_exit \ No newline at end of file diff --git a/fun/code/fun/rain b/fun/code/fun/rain new file mode 100755 index 0000000..8a8d8f6 --- /dev/null +++ b/fun/code/fun/rain @@ -0,0 +1,100 @@ +#!/bin/bash +RAINS=("|" "│" "┃" "┆" "┇" "┊" "┋" "╽" "╿") +COLORS=("\e[37m" "\e[37;1m") +# More from 256 color mode +for i in {244..255}; do + COLORS=("${COLORS[@]}" "\e[38;5;${i}m") +done +NRAINS=${#RAINS[@]} +NCOLORS=${#COLORS[@]} +NUM_RAIN_METADATA=5 + + +sigwinch() { + TERM_WIDTH=$(tput cols) + TERM_HEIGHT=$(tput lines) + STEP_DURATION=0.025 + ((MAX_RAINS = TERM_WIDTH * TERM_HEIGHT / 4)) + ((MAX_RAIN_LENGTH = TERM_HEIGHT < 10 ? 1 : TERM_HEIGHT / 10)) + # In percentage + ((NEW_RAIN_ODD = TERM_HEIGHT > 50 ? 100 : TERM_HEIGHT * 2)) + ((NEW_RAIN_ODD = NEW_RAIN_ODD * 75 / 100)) + ((FALLING_ODD = TERM_HEIGHT > 25 ? 100 : TERM_HEIGHT * 4)) + ((FALLING_ODD = FALLING_ODD * 90 / 100)) + } + +do_exit() { + echo -ne "\e[${TERM_HEIGHT};1H\e[0K" + + # Show cursor and echo stdin + echo -ne "\e[?25h" + stty echo + exit 0 + } + +do_render() { + # Clean screen first + for ((idx = 0; idx < num_rains * NUM_RAIN_METADATA; idx += NUM_RAIN_METADATA)); do + X=${rains[idx]} + Y=${rains[idx + 1]} + LENGTH=${rains[idx + 4]} + for ((y = Y; y < Y + LENGTH; y++)); do + (( y < 1 || y > TERM_HEIGHT )) && continue + echo -ne "\e[${y};${X}H " + done + done + + for ((idx = 0; idx < num_rains * NUM_RAIN_METADATA; idx += NUM_RAIN_METADATA)); do + if ((100 * RANDOM / 32768 < FALLING_ODD)); then + # Falling + if ((++rains[idx + 1] > TERM_HEIGHT)); then + # Out of screen, bye sweet <3 + rains=("${rains[@]:0:idx}" + "${rains[@]:idx+NUM_RAIN_METADATA:num_rains*NUM_RAIN_METADATA}") + ((num_rains--)) + continue + fi + fi + X=${rains[idx]} + Y=${rains[idx + 1]} + RAIN=${rains[idx + 2]} + COLOR=${rains[idx + 3]} + LENGTH=${rains[idx + 4]} + for ((y = Y; y < Y + LENGTH; y++)); do + (( y < 1 || y > TERM_HEIGHT )) && continue + echo -ne "\e[${y};${X}H${COLOR}${RAIN}" + done + done + } + +trap do_exit TERM INT +trap sigwinch WINCH +# No echo stdin and hide the cursor +stty -echo +echo -ne "\e[?25l" + +echo -ne "\e[2J" +rains=() +sigwinch +while :; do + read -n 1 -t $STEP_DURATION ch + case "$ch" in + q|Q) + do_exit + ;; + esac + + if ((num_rains < MAX_RAINS)) && ((100 * RANDOM / 32768 < NEW_RAIN_ODD)); then + # Need new |, 1-based + RAIN="${RAINS[NRAINS * RANDOM / 32768]}" + COLOR="${COLORS[NCOLORS * RANDOM / 32768]}" + LENGTH=$((MAX_RAIN_LENGTH * RANDOM / 32768 + 1)) + X=$((TERM_WIDTH * RANDOM / 32768 + 1)) + Y=$((1 - LENGTH)) + rains=("${rains[@]}" "$X" "$Y" "$RAIN" "$COLOR" "$LENGTH") + ((num_rains++)) + fi + + # Let rain fall! + do_render +done \ No newline at end of file diff --git a/fun/code/fun/ryu b/fun/code/fun/ryu new file mode 100644 index 0000000..8c0676f --- /dev/null +++ b/fun/code/fun/ryu @@ -0,0 +1,188 @@ +#!/bin/bash +# s y n t a x . s a m u r a i +# p r e s e n t s +# +# ███████ ██ ██ ██ ██ +# ░██░░░░██ ░░██ ██ ░██ ░██ +# ░██ ░██ ░░████ ░██ ░██ +# ░███████ ░░██ ░██ ░██ +# ░██░░░██ ░██ ░██ ░██ +# ░██ ░░██ ░██ ░██ ░██ +# ░██ ░░██ ░██ ░░███████ +# ░░ ░░ ░░ ░░░░░░░ +# +# ▓▓▓▓▓▓▓▓▓▓ +# ░▓ author ▓ xero +# ░▓ code ▓ http://code.xero.nu/ryu +# ░▓ mirror ▓ http://git.io/ryu +# ░▓▓▓▓▓▓▓▓▓▓ +# ░░░░░░░░░░ + +cols=`tput cols` +if [[ $cols -lt 100 ]]; then + echo "term size must be greater than 100px wide!" + echo "call 'ryu --help' for more info" + exit +fi +pad () { + count=$1 + until [[ $count -eq 1 ]]; do + let count-=1 + echo -ne "." + done; + if [[ $2 ]]; then + echo "." + fi +} +let half=($cols-100)/2 +half=${half/.*} + +if [[ -z $1 || $1 == "--grey" || $1 == "-g" || $1 == "grey" ]]; then + pad $half; echo -en "..░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░▒▒▒▒▒▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░▒▒▒▒▒▒▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░░░░░░░░▒▒▒▒ ▒▒▒▒▒▒▒▒░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒▒▒▒▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░░░░░░▒▒▒▒ ▒▒▒▒▒░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░░░░░▒▒▒ ▒▒▒▒░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░░░░▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░░░ ░░░░░░░░░░░░░ ░░░░░░░░░░░░ ▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░░ ▒ ░░░▓▓▓▓▓▓▓▓▓▓▓▓░░ ░░░░░░░░░░░░░░░ ░ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░░ ░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░ ░░░░░░░░░░░░░░░░░░░ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░ ▒ ░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░ ░░▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░ ░ ▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░ ░ ░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░ ░ ▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░ ░ ░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░ ░ ▒ ."; pad $half true + pad $half; echo -en ".░░░░░░░░░▒ ░ ░ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓░ ░ ."; pad $half true + pad $half; echo -en "░░░░░░░░░░ ░░░ ░ ▓▓▓▓▓▓▓▓░▓▓▓▓░░░▓░░░░░░▓▓▓▓▓ ░ ░ ▒ "; pad $half true + pad $half; echo -en "░░░░░░░░▒▒ ░░░░░ ░ ▓▓▓▓▓▓░▓▓▓▓░░▓▓▓░░░░░░▓▓ ░ ░ ░ ▒ "; pad $half true + pad $half; echo -en "░░░░░░░░▒ ░░░░░░░░░ ░ ░▓░░▓▓▓▓▓░▓▓▓░░░░░ ░ ░░ ░░ ░ ▒ "; pad $half true + pad $half; echo -en "░░░░░░░▒▒ ░░░░░░░ ░░ ▓▓▓▓▓▓▓▓▓░░ ░░ ░ ░░ ░ ▒ "; pad $half true + pad $half; echo -en "░░░░░░░▒▒ ░░░░░░░░░░ ░▓▓▓▓▓▓▓░░░ ░░░ ░ ░ ░ ▒ "; pad $half true + pad $half; echo -en "░░░░░░░ ▒ ░░░░░░ ░░░▓▓▓░▓░░░░ ░ ░ ░░ ░ ▒ "; pad $half true + pad $half; echo -en "░░░░░░░ ▒ ░░░░░░░ ▓▓ ▓ ░░ ░░░░░░░░░░░░░ ░ ░░ ▓ █▓ ░ ░ ░ ▒▒ "; pad $half true + pad $half; echo -en ".░░░░░▒ ▒ ░░░░░░░░ ▓▓██ ▓ ██ ██▓ ▓ ░░░▓░ ░ ░ ░░░░ ▓ ██ ▓█ ▓ ██▓▓ ░░░░ ░ ░ ▒ ."; pad $half true + pad $half; echo -en ".░░░░░▒ ▒▒ ░░░░░░░░░ ▓██ ▓▓ ▓ ██▓ ▓░░░░▓▓░ ░░░░░░░░ ▓ ▓██ ▓ ▓ ██▓▓ ░░░░░░░ ░ ▒ ."; pad $half true + pad $half; echo -en ".░░░░░ ▒░ ░░░░░░░▓░░ ▓███ ▓▓▓▓ ███░ ░░░░▓▓░░░░░░░░░░ ░▓██ ▓▓▓ ███▓ ░░▓▓░░ ░ ▒ ▒ ."; pad $half true + pad $half; echo -en "..░░░░ ▒░ ░░░░▓▓▓▓▓▓░ ███ ██ ░░░░░▓▓▓▓▓░░░░░░░ ███ ████ ░░▓▓▓▓░░ ░ ▒ ▒ ."; pad $half true + pad $half; echo -en "..░░░░ ▒ ░▒ ░░▓▓▓▓▓▓▓▓▓▓ ██████ ▓▓▓░░ ░░░░▓▓▓▓▓▓░░░░░░░░░▓▓▓ █████ ▓▓▓▓▓▓▓░░░░ ▒▒ ▒ ."; pad $half true + pad $half; echo -en "..░░░░ ░ ░░ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█░░░░░░░▓▓▓▓▓▓▓░░░░ ░░ ░░▓░▓▓░░░░░░░▓▓▓▓▓▓░░ ▒▒ ▒ ."; pad $half true + pad $half; echo -en "..░░░░ ░ ░░ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██ ░░░░░░░▓▓▓▓▓▓▓░░░░ ░░░░░ ░░░░░░░░░▓▓▓▓▓░░ ░ ▒▒ ▒ ."; pad $half true + pad $half; echo -en "..░░░░▒░░▒░░ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░▓▓▓▓▓▓▓▓░░░ ░░░░░░░░░░░░░░░░░░▓▓░░░░ ▒▒ ▒ .."; pad $half true + pad $half; echo -en "..░░░░▒░░ ░░ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░▓▓▓▓▓▓▓▓▓░░░░ ░░░░░░░░░░░░░░░░░░░░░ ▒▒ ▒ .."; pad $half true + pad $half; echo -en "..░░░░░░░ ▒░▒ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░▓▓▓░░ ░░░░░ ░░░░░░░░░░░░░░░░░░░░ ▒ ▒ .."; pad $half true + pad $half; echo -en "..░░░░░░░░░░░ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ░ ░░░░░░░░░░░░░░░ ▒ ▒ .."; pad $half true + pad $half; echo -en "...░░░░░░░░░░░▒ ▒▒ ▓▓▓▓▓▓▓▓▓▓▓▓▓ ░░░░░░░░░░▒▒ ▒▒▒▒▒ ▒ ▒ ..."; pad $half true + pad $half; echo -en "...░░░░░░░░░░ ░▒ ▒▒▒░░░ ▓▓▓▓▓▓ ░░░░░░░░░░░░░▒▒▒ ▒▒▒▒▒░░░░▒▒ ▒▒▒▒▒▒▒ ▒▒ ▒ ..."; pad $half true + pad $half; echo -en "...░░░░░░░░░░ ░░░ ▒▒▒░░░░░░ ░░░░░ ░░░░░░░░░░▒░▒ ▒▒▒▒▒▒░░░░░░▒▒▒▒▒░▒▒▒▒ ▒▒ ..."; pad $half true + pad $half; echo -en "....░░░░░░░░░░ ░░░░░ ▒▒░░░░░░░░░░░░░░ ░░░░░░░░░ ▒░▒▒ ▒▒▒▒▒░░░░▒▒▒▒▒▒░░▒▒▒ ▒▒▒ ...."; pad $half true + pad $half; echo -en "....░░░░░░░░░░░░░░░░░░ ▒░░░░░░░░░░░ ░░░░░░░░░░░░░░ ▒ ▒▒▒▒▒▒▒░▒▒▒▒▒▒░░░░▒▒▒ ▒▒ ...."; pad $half true + pad $half; echo -en "....░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ▒▒▒▒▒▒▒ ▒ ░░░▒▒▒▒ ▒▒▒ ...."; pad $half true + pad $half; echo -en ".....░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ▒░▒▒▒ ▒▒▒ ▒░░░░░░░░░░▒ ▒▒▒▒ ▒ ....."; pad $half true + pad $half; echo -en ".....░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒ ░░▒▒▒▒▒▒░░░░░░░░░░░░░▒ ░▒▒▒▒ ▒ ....."; pad $half true + pad $half; echo -en ".....░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒ ▒▒░▒▒▒▒▒▒▒░░░░░░░░░░ ░░▒▒▒▒▒ ▒ ....."; pad $half true + pad $half; echo -en ".....░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒ ░▒▒▒▒▒▒▒▒▒░░▒░░░░░░ ░░▒▒▒▒▒▒ ▒ ....."; pad $half true + pad $half; echo -en "......░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒░░▒░▒▒▒ ▒▒▒▒▒░░░░░░░░░▒▒▒▒▒ ▒ ....."; pad $half true + pad $half; echo -en "......░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒░▒▒▒▒▒ ░░░░░░░░▒▒▒▒▒▒ ▒ ....."; pad $half true + pad $half; echo -en "......░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒░░▒░▒▒▒▒▒▒ ▒░░░░░░░▒▒▒▒▒▒ ▒ ....."; pad $half true +else + if [[ $1 == "--color" || $1 == "-c" || $1 == "color" ]]; then + pad $half; echo -en "\e[0;37m..\e[0;36m░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\e[0;34m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\e[0;34m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\e[0;34m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░░░░░░░░░░░░░░░░░░░\e[0;34m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░░░░░░░░░░░░░░░░\e[0;34m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░░░░░░░░░░░░\e[0;34m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\e[0;36m░░░░░░░░\e[0;34m▒▒▒▒▒▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░░░░░░░░░░\e[0;34m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒\e[0;36m░░\e[0;34m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\e[0;36m░░░░░░░░\e[0;34m▒▒▒▒▒▒▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░░░░░░░░\e[0;34m▒▒▒▒ ▒▒▒▒▒▒▒▒\e[0;36m░░░░░\e[0;34m▒▒▒▒▒▒▒▒▒▒▒▒▒\e[0;36m░░░░\e[0;34m▒▒▒▒▒▒▒▒▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░░░░░░\e[0;34m▒▒▒▒ ▒▒▒▒▒\e[0;36m░░░░\e[0;34m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░░░░░\e[0;34m▒▒▒ ▒▒▒▒\e[0;36m░░\e[0;34m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░░░░\e[0;34m▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░░░ \e[0;33m░░░░░░░░░░░░░ ░░░░░░░░░░░░ \e[0;34m▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░░ \e[0;34m▒ \e[0;33m░░░▓▓▓▓▓▓▓▓▓▓▓▓░░ ░░░░░░░░░░░░░░░ ░ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░░ \e[0;33m░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░ ░░░░░░░░░░░░░░░░░░░ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░ \e[0;34m▒ \e[0;33m░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░ ░░▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░ ░ \e[0;34m▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░ ░ \e[0;33m░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░ ░ \e[0;34m▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░ ░ \e[0;33m░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░ ░ \e[0;34m▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░░░░░\e[0;34m▒ \e[0;33m░ ░ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓░ ░ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m\e[0;36m░░░░░░░░░░ \e[0;33m░░░ ░ ▓▓▓▓▓▓▓▓░▓▓▓▓░░░▓░░░░░░▓▓▓▓▓ ░ ░ \e[0;34m▒ \e[0;37m."; pad $half true + pad $half; echo -en "\e[0;37m\e[0;36m░░░░░░░░\e[0;34m▒▒ \e[0;33m░░░░░ ░ ▓▓▓▓▓▓░▓▓▓▓░░▓▓▓░░░░░░▓▓ ░ ░ ░ \e[0;34m▒ \e[0;37m."; pad $half true + pad $half; echo -en "\e[0;37m\e[0;36m░░░░░░░░\e[0;34m▒ \e[0;33m░░░░░░░░░ ░ ░▓░░▓▓▓▓▓░▓▓▓░░░░░ ░ ░░ ░░ ░ \e[0;34m▒ \e[0;37m."; pad $half true + pad $half; echo -en "\e[0;37m\e[0;36m░░░░░░░\e[0;34m▒▒ \e[0;33m░░░░░░░ ░░ ▓▓▓▓▓▓▓▓▓░░ ░░ ░ ░░ ░ \e[0;34m▒ \e[0;37m."; pad $half true + pad $half; echo -en "\e[0;37m\e[0;36m░░░░░░░\e[0;34m▒▒ \e[0;33m░░░░░░░░░░ ░▓▓▓▓▓▓▓░░░ ░░░ ░ ░ ░ \e[0;34m▒ \e[0;37m."; pad $half true + pad $half; echo -en "\e[0;37m\e[0;36m░░░░░░░ \e[0;34m▒ \e[0;33m░░░░░░ ░░░▓▓▓░▓░░░░ ░ ░ ░░ ░ \e[0;34m▒ \e[0;37m."; pad $half true + pad $half; echo -en "\e[0;37m\e[0;36m░░░░░░░ \e[0;34m▒ \e[0;33m░░░░░░░ \e[0;39m▓▓ ▓ \e[0;33m░░ ░░░░░░░░░░░░░ ░ ░░ \e[0;39m▓ █▓ \e[0;33m░ ░ ░ \e[0;34m▒▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░\e[0;34m▒ ▒ \e[0;33m░░░░░░░░ \e[0;39m▓▓██ \e[0;36m▓ ██ \e[0;39m██▓ \e[0;33m▓ ░░░▓░ ░ ░ ░░░░ ▓ \e[0;39m██ \e[0;36m▓█ ▓\e[0;39m ██▓▓ \e[0;33m░░░░ ░ ░ \e[0;34m▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░\e[0;34m▒ ▒▒ \e[0;33m░░░░░░░░░ \e[0;39m▓██ \e[0;36m▓▓ ▓ \e[0;39m██▓ \e[0;33m▓░░░░▓▓░ ░░░░░░░░ ▓ \e[0;39m▓██ \e[0;36m▓ ▓\e[0;39m ██▓▓ \e[0;33m░░░░░░░ ░ \e[0;34m▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m.\e[0;36m░░░░░ \e[0;34m▒\e[0;36m░ \e[0;33m░░░░░░░▓░░ \e[0;39m▓███ \e[0;36m▓▓▓▓ \e[0;39m███░ \e[0;33m░░░░▓▓░░░░░░░░░░ \e[0;39m░▓██ \e[0;36m▓▓▓ \e[0;39m███▓ \e[0;33m░░▓▓░░ ░ \e[0;34m▒ ▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m..\e[0;36m░░░░ \e[0;34m▒\e[0;36m░ \e[0;33m░░░░▓▓▓▓▓▓░ \e[0;39m███ ██ \e[0;33m░░░░░▓▓▓▓▓░░░░░░░ \e[0;39m███ ████ \e[0;33m░░▓▓▓▓░░ ░ \e[0;34m▒ ▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m..\e[0;36m░░░░ \e[0;34m▒ \e[0;36m░\e[0;34m▒ \e[0;33m░░▓▓▓▓▓▓▓▓▓▓ \e[0;39m██████ \e[0;33m▓▓▓░░ ░░░░▓▓▓▓▓▓░░░░░░░░░▓▓▓ \e[0;39m█████ \e[0;33m▓▓▓▓▓▓▓░░░░ \e[0;34m▒▒ ▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m..\e[0;36m░░░░ ░ ░░ \e[0;33m░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█░░░░░░░▓▓▓▓▓▓▓░░░░ ░░ ░░▓░▓▓░░░░░░░▓▓▓▓▓▓░░ \e[0;34m▒▒ ▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m..\e[0;36m░░░░ ░ ░░ \e[0;33m░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██ ░░░░░░░▓▓▓▓▓▓▓░░░░ ░░░░░ ░░░░░░░░░▓▓▓▓▓░░ ░ \e[0;34m▒▒ ▒ \e[0;37m.."; pad $half true + pad $half; echo -en "\e[0;37m..\e[0;36m░░░░\e[0;34m▒\e[0;36m░░\e[0;34m▒\e[0;36m░░ \e[0;33m░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░▓▓▓▓▓▓▓▓░░░ ░░░░░░░░░░░░░░░░░░▓▓░░░░ \e[0;34m▒▒ ▒ \e[0;37m..."; pad $half true + pad $half; echo -en "\e[0;37m..\e[0;36m░░░░\e[0;34m▒\e[0;36m░░ ░░ \e[0;33m░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░▓▓▓▓▓▓▓▓▓░░░░ ░░░░░░░░░░░░░░░░░░░░░ \e[0;34m▒▒ ▒ \e[0;37m..."; pad $half true + pad $half; echo -en "\e[0;37m..\e[0;36m░░░░░░░ \e[0;34m▒\e[0;36m░\e[0;34m▒ \e[0;33m░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░▓▓▓░░ ░░░░░ ░░░░░░░░░░░░░░░░░░░░ \e[0;34m▒ ▒ \e[0;37m..."; pad $half true + pad $half; echo -en "\e[0;37m..\e[0;36m░░░░░░░░░░░ \e[0;33m░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ░ ░░░░░░░░░░░░░░░ \e[0;34m▒ ▒ \e[0;37m..."; pad $half true + pad $half; echo -en "\e[0;37m...\e[0;36m░░░░░░░░░░░\e[0;34m▒ ▒▒ \e[0;33m▓▓▓▓▓▓▓▓▓▓▓▓▓ \e[0;36m░░░░░░░░░░\e[0;34m▒▒ ▒▒▒▒▒ \e[0;34m▒ ▒ \e[0;37m...."; pad $half true + pad $half; echo -en "\e[0;37m...\e[0;36m░░░░░░░░░░ ░\e[0;34m▒ ▒▒▒\e[0;36m░░░ \e[0;33m▓▓▓▓▓▓ \e[0;36m░░░░░░░░░░░░░\e[0;34m▒▒▒ ▒▒▒▒▒\e[0;36m░░░░\e[0;34m▒▒ ▒▒▒▒▒▒▒ ▒▒ ▒ \e[0;37m...."; pad $half true + pad $half; echo -en "\e[0;37m...\e[0;36m░░░░░░░░░░ ░░░ \e[0;34m▒▒▒\e[0;36m░░░░░░ ░░░░░ ░░░░░░░░░░\e[0;34m▒\e[0;36m░\e[0;34m▒ ▒▒▒▒▒▒\e[0;36m░░░░░░\e[0;34m▒▒▒▒▒\e[0;36m░\e[0;34m▒▒▒▒ ▒▒ \e[0;37m...."; pad $half true + pad $half; echo -en "\e[0;37m....\e[0;36m░░░░░░░░░░ ░░░░░ \e[0;34m▒▒\e[0;36m░░░░░░░░░░░░░░ ░░░░░░░░░ \e[0;34m▒\e[0;36m░\e[0;34m▒▒ ▒▒▒▒▒\e[0;36m░░░░\e[0;34m▒▒▒▒▒▒\e[0;36m░░\e[0;34m▒▒▒ ▒▒▒ \e[0;37m....."; pad $half true + pad $half; echo -en "\e[0;37m....\e[0;36m░░░░░░░░░░░░░░░░░░ \e[0;34m▒\e[0;36m░░░░░░░░░░░ ░░░░░░░░░░░░░░ \e[0;34m▒ ▒▒▒▒▒▒▒\e[0;36m░\e[0;34m▒▒▒▒▒▒\e[0;36m░░░░\e[0;34m▒▒▒ ▒▒ \e[0;37m....."; pad $half true + pad $half; echo -en "\e[0;37m....\e[0;36m░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ \e[0;34m▒▒▒▒▒▒▒ \e[0;34m▒ \e[0;36m░░░\e[0;34m▒▒▒▒ ▒▒▒ \e[0;37m....."; pad $half true + pad $half; echo -en "\e[0;37m.....\e[0;36m░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ \e[0;34m▒\e[0;36m░\e[0;34m▒▒▒ ▒▒▒ ▒\e[0;36m░░░░░░░░░░\e[0;34m▒ ▒▒▒▒ ▒ \e[0;37m......"; pad $half true + pad $half; echo -en "\e[0;37m.....\e[0;36m░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\e[0;34m▒ \e[0;36m░░\e[0;34m▒▒▒▒▒▒\e[0;36m░░░░░░░░░░░░░\e[0;34m▒ \e[0;36m░\e[0;34m▒▒▒▒ ▒ \e[0;37m......"; pad $half true + pad $half; echo -en "\e[0;37m.....\e[0;36m░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\e[0;34m▒ ▒▒\e[0;36m░\e[0;34m▒▒▒▒▒▒▒\e[0;36m░░░░░░░░░░ ░░\e[0;34m▒▒▒▒▒ \e[0;34m▒ \e[0;37m......"; pad $half true + pad $half; echo -en "\e[0;37m.....\e[0;36m░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\e[0;34m▒▒ \e[0;36m░\e[0;34m▒▒▒▒▒▒▒▒▒\e[0;36m░░\e[0;34m▒\e[0;36m░░░░░░ ░░\e[0;34m▒▒▒▒▒▒ ▒ \e[0;37m......"; pad $half true + pad $half; echo -en "\e[0;37m......\e[0;36m░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\e[0;34m▒▒\e[0;36m░░\e[0;34m▒\e[0;36m░\e[0;34m▒▒▒ ▒▒▒▒▒\e[0;36m░░░░░░░░░\e[0;34m▒▒▒▒▒ ▒ \e[0;37m......"; pad $half true + pad $half; echo -en "\e[0;37m......\e[0;36m░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\e[0;34m▒▒▒▒\e[0;36m░\e[0;34m▒▒▒▒▒ \e[0;36m░░░░░░░░\e[0;34m▒▒▒▒▒▒ ▒ \e[0;37m......"; pad $half true + pad $half; echo -en "\e[0;37m......\e[0;36m░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\e[0;34m▒▒▒\e[0;36m░░\e[0;34m▒\e[0;36m░\e[0;34m▒▒▒▒▒▒ ▒\e[0;36m░░░░░░░\e[0;34m▒▒▒▒▒▒ ▒ \e[0;37m......"; pad $half true + elif [[ $1 = '--version' || $1 = '-v' || $1 == "version" ]]; then + echo "ryu version 1.0.0" + echo "xero / syntax-samurai " + echo " ▟▙" + echo "▟▒░░░░░░░▜▙▜████████████████████████████████▛" + echo "▜▒░░░░░░░▟▛▟▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▛" + echo " ▜▛" + echo "this program is free software, and distrobuted under the Creative Commons " + echo "Attribution-ShareAlike 3.0 Unported License (CC BY-SA 3.0)" + echo "http://creativecommons.org/licenses/by-sa/3.0/" + exit + elif [[ $1 = '--help' || $1 = '-h' || $1 == "help" ]]; then + echo " s y n t a x . s a m u r a i" + echo " p r e s e n t s" + echo "" + echo " ███████ ██ ██ ██ ██" + echo " ░██░░░░██ ░░██ ██ ░██ ░██" + echo " ░██ ░██ ░░████ ░██ ░██" + echo " ░███████ ░░██ ░██ ░██" + echo " ░██░░░██ ░██ ░██ ░██" + echo " ░██ ░░██ ░██ ░██ ░██" + echo " ░██ ░░██ ░██ ░░███████" + echo " ░░ ░░ ░░ ░░░░░░░" + echo "" + echo " usage: ryu [option]" + echo "" + echo " display some ansi art of ryu from ninja gaiden" + echo "" + echo " --help, -h : display this message" + echo " --version, -v : display version and license" + echo " --grey, -g : display the art [default]" + echo " --color, -c : display the art in color" + echo " ▟▙" + echo "▟▒░░░░░░░▜▙▜████████████████████████████████▛" + echo "▜▒░░░░░░░▟▛▟▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▛" + echo " ▜▛" + echo " author: xero harrison > http://xero.nu" + echo " homepage: http://git.io/ryu" + echo " crew: http://github.com/syntax-samurai" + echo "" + exit + else + echo "unknown option" + echo "call 'ryu --help' for more info" + exit + fi +fi +exit \ No newline at end of file diff --git a/fun/code/fun/screenfetch b/fun/code/fun/screenfetch new file mode 100755 index 0000000..70fc4d8 --- /dev/null +++ b/fun/code/fun/screenfetch @@ -0,0 +1,1378 @@ +#!/bin/bash +# +# screenFetch (v2.4.0) +# +# Script to fetch system and theme settings for screenshots in most mainstream +# Linux distributions. +# +# This script is released under the General Public License (GPL). Though it's open +# source and you are free to do with it as you please, I would appreciate if you would +# send any code modifications/additions upstream to me so that I can include them in +# the official release. Please do not claim this code as your own as I have worked +# very hard on this and am quite proud to call this script my own. +# +# Yes, I do realize some of this is horribly ugly coding. Any ideas/suggestions would be +# appreciated by emailing me or by stopping by http://github.com/KittyKatt/screenFetch . You +# could also drop in on my IRC network, SilverIRC, at irc://kittykatt.silverirc.com:6667/meowz +# to put forth suggestions/ideas. Thank you. +# + +scriptVersion="2.4.0" + +###################### +# Settings for fetcher +###################### + +# This setting controls what ASCII logo is displayed. Available: Arch Linux (Old and Current Logos), Linux Mint, Ubuntu, Crunchbang, Debian, Gentoo, Mandrake/Mandriva, Slackware, SUSE, Fedora, BSD, and None +# distro="Linux" + +# This sets the information to be displayed. Available: distro, Kernel, DE, WM, Win_theme, Theme, Icons, Font, Background, ASCII. To get just the information, and not a text-art logo, you would take "ASCII" out of the below variable. +#display="host distro kernel uptime shell res de wm wmtheme gtk icons font background" +display=( host distro kernel uptime pkgs shell res de wm wmtheme gtk cpu mem ) +# Display Type: ASCII or Text +display_type="ASCII" + +# Colors to use for the information found. These are set below according to distribution. If you would like to set your OWN color scheme for these, uncomment the lines below and edit them to your heart's content. +# textcolor="\e[0m" +# labelcolor="\e[1;34m" + +# WM & DE process names +# Removed WM's: compiz +wmnames="fluxbox openbox blackbox xfwm4 metacity kwin icewm pekwm fvwm dwm awesome wmaker stumpwm xmonad musca i3 ratpoison scrotwm wmfs wmii beryl subtle e16 enlightenment sawfish emerald monsterwm dminiwm" +denames="gnome-session xfce-mcs-manage xfce4-session xfconfd ksmserver lxsession gnome-settings-daemon mate-session mate-settings-daemon" + +# Export theme settings +# screenFetch has the capability (on some WM's and GTK) to export your GTK and WM settings to an archive. Specify Yes if you want this and No if you do not. +exportTheme= + +# Screenshot Settings +# This setting lets the script know if you want to take a screenshot or not. 1=Yes 0=No +screenshot= +# You can specify a custom screenshot command here. Just uncomment and edit. Otherwise, we'll be using the default command: scrot -cd3. +# screenCommand="scrot -cd5" +hostshot= +baseurl="http://www.example.com" +serveraddr="www.example.com" +scptimeout="20" +serverdir="/path/to/directory" +shotfile=$(echo "screenFetch-`date +'%Y-%m-%d_%H-%M-%S'`.png") + +# Verbose Setting - Set to 1 for verbose output. +verbosity= + +verboseOut () { + echo -e "\e[1;31m:: \e[0m$1" +} + +errorOut () { + echo -e "\e[1;37m[[ \e[1;31m! \e[1;37m]] \e[0m$1" +} + +############################################# +#### CODE No need to edit past here CODE #### +############################################# + +#################### +# Static Variables +#################### +c0="\e[0m" # Reset Text +bold="\e[1m" # Bold Text +underline="\e[4m" # Underline Text +display_index=0 + +##################### +# Begin Flags Phase +##################### + +while getopts ":hsmevVntlc:D:o:B" flags; do + case $flags in + h) + echo -e "${underline}Usage${c0}:" + echo -e " screenFetch [OPTIONAL FLAGS]" + echo "" + echo "screenFetch - a CLI Bash script to show system/theme info in screenshots." + echo "" + echo -e "${underline}Supported Distributions${c0}: Arch Linux (Old and Current Logos), Linux Mint," + echo -e " LMDE, Ubuntu, Crunchbang, Debian, Gentoo, Fedora, SolusOS," + echo -e " Mandrake/Mandriva, Slackware, Frugalware, openSUSE, Mageia," + echo -e " Peppermint, and BSD" + echo -e "${underline}Supported Desktop Managers${c0}: KDE, GNOME, XFCE, and LXDE, and Not Present" + echo -e "${underline}Supported Window Managers${c0}: PekWM, OpenBox, FluxBox, BlackBox, Xfwm4," + echo -e " Metacity, StumpWM, KWin, IceWM, FVWM," + echo -e " DWM, Awesome, XMonad, Musca, i3, WindowMaker," + echo -e " Ratpoison, wmii, WMFS, ScrotWM, subtle," + echo -e " Emerald, E17 and Beryl." + echo "" + echo -e "${underline}Options${c0}:" + echo -e " ${bold}-v${c0} Verbose output." + echo -e " ${bold}-o 'OPTIONS'${c0} Allows for setting script variables on the" + echo -e " command line. Must be in the following format..." + echo -e " 'OPTION1=\"OPTIONARG1\";OPTION2=\"OPTIONARG2\"'" + #echo -e " ${bold}-d 'ARGUMENTS'${c0} Allows for setting what information is displayed" + #echo -e " on the command line. Format must be as follows:" + #echo -e " 'OPTION OPTION OPTION OPTION'. Valid options are" + #echo -e " host, distro, Kernel, Uptime, Shell, Resolution, DE, WM," + #echo -e " Win_theme, Theme, Icons, Font, ASCII, Background." + echo -e " ${bold}-n${c0} Do no display ASCII distribution logo." + echo -e " ${bold}-t${c0} Truncate output based on terminal width (Experimental!)." + echo -e " ${bold}-s(m)${c0} Using this flag tells the script that you want it" + echo -e " to take a screenshot. Use the -m flag if you would like" + echo -e " to move it to a new location afterwards." + echo -e " ${bold}-B${c0} Enable background detection." + echo -e " ${bold}-e${c0} When this flag is specified, screenFetch will attempt" + echo -e " to export all of your theme settings and archive them" + echo -e " up for uploading." + echo -e " ${bold}-l${c0} Specify that you have a light background. This turns" + echo -e " all white text into dark gray text (in ascii logos and" + echo -e " in information output)." + echo -e " ${bold}-c 'COMMAND'${c0} Here you can specify a custom screenshot command for" + echo -e " the script to execute. Surrounding quotes are required." + echo -e " ${bold}-D 'DISTRO'${c0} Here you can specify your distribution for the script" + echo -e " to use. Surrounding quotes are required." + echo -e " ${bold}-V${c0} Display current script version." + echo -e " ${bold}-h${c0} Display this help." + exit + ;; + s) screenshot=1; continue;; + m) hostshot=1; continue;; + e) exportTheme=1; continue;; + v) verbosity=1; continue;; + V) + echo -e $underline"screenFetch"$c0" - Version $scriptVersion" + echo "Copyright (C) Brett Bohnenkamper (kittykatt@silverirc.com)" + echo "" + echo "This is free software; see the source for copying conditions. There is NO warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + exit + ;; + D) distro=$OPTARG; continue;; + t) truncateSet="Yes";; + c) screenCommand=$OPTARG; continue;; + n) display_type="Text";; + o) overrideOpts=$OPTARG; continue;; + # d) overrideDisplay=$OPTARG; continue;; + l) c1="\e[1;30m";; + # B) background_detect="1"; continue;; + :) errorOut "Error: You're missing an argument somewhere. Exiting."; exit;; + ?) errorOut "Error: Invalid flag somewhere. Exiting."; exit;; + *) errorOut "Error"; exit;; + esac +done + +################### +# End Flags Phase +################### + + +#################### +# Override Options +#################### + +if [[ "$overrideOpts" ]]; then + [[ "$verbosity" -eq "1" ]] && verboseOut "Found 'o' flag in syntax. Overriding some script variables..." + OLD_IFS="$IFS" + IFS=";" + for overopt in "$overrideOpts"; do + eval "$overrideOpts" + done + IFS="$OLD_IFS" +fi +#if [[ "$overrideDisplay" ]]; then +# [[ "$verbosity" -eq "1" ]] && verboseOut "Found 'd' flag in syntax. Overriding some display options..." +# display="$overrideDisplay" +#fi + + +######################### +# Begin Detection Phase +######################### + + +# Host and User detection - Begin +detecthost () { + myUser=$(echo "$USER") + myHost=$(hostname) + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding hostname and user...found as '$myUser@$myHost'" +} + + +######################### +# Begin Detection Phase +######################### + + +# Host and User detection - Begin +detecthost () { + myUser=$(echo "$USER") + # net-tools is becoming deprecated + # myHost=$(hostname) + myHost=$(cat /proc/sys/kernel/hostname) + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding hostname and user...found as '$myUser@$myHost'" +} + +# Distro Detection - Begin +detectdistro () { + if [[ -z $distro ]]; then + distro="Unknown" + # LSB Release Check + if which lsb_release >/dev/null 2>&1; then + distro_detect=$(lsb_release -i | sed -e 's/Distributor ID://' -e 's/\t//g') + if [ "$distro_detect" == "Arch" ]; then distro="Arch Linux"; fi + if [ "$distro_detect" == "Debian" ]; then distro="CrunchBang"; fi + if [ "$distro_detect" == "SolusOS" ]; then + distro="SolusOS" + distro_codename=null + distro_release=null + fi + if [ "$distro_detect" == "LinuxMint" ]; then distro="Mint" + if [ "$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g')" == "debian" ]; then + distro="LMDE" + distro_codename=null + distro_release=null + fi + fi + if [ "$distro_detect" == "Mageia" ]; then distro="Mageia"; fi + if [ "$distro_detect" == "MandrivaLinux" ]; then distro="Mandriva" + if [ "$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g')" == "turtle" ]; then + distro="Mandriva"-lsb_release | sed -e 's/Release://' -e 's/\t//g' + distro_codename=null + fi + if [ "$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g')" == "Henry_Farman" ]; then + distro="Mandriva"-lsb_release | sed -e 's/Release://' -e 's/\t//g' + distro_codename=null + fi + if [ "$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g')" == "Farman" ]; then + distro="Mandriva"-lsb_release | sed -e 's/Release://' -e 's/\t//g' + distro_codename=null + fi + if [ "$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g')" == "Adelie" ]; then + distro="Mandriva"-lsb_release | sed -e 's/Release://' -e 's/\t//g' + distro_codename=null + fi + if [ "$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g')" == "pauillac" ]; then + distro="Mandriva"-lsb_release | sed -e 's/Release://' -e 's/\t//g' + distro_codename=null + fi + fi + if [ "$distro_detect" == "Fedora" ]; then distro="Fedora"; fi + if [ "$distro_detect" == "CrunchBang" ]; then distro="CrunchBang"; fi + if [ "$distro_detect" == "Ubuntu" ]; then distro="Ubuntu"; fi + if [ "$distro_detect" == "frugalware" ]; then + distro="Frugalware" + distro_codename=null + distro_release=null + fi + if [ "$distro_detect" == "Peppermint" ]; then + distro="Peppermint" + distro_codename=null + fi + if [ "$distro_detect" == "SUSE LINUX" ]; then distro="openSUSE"; fi + if [[ $(lsb_release -r | sed -e 's/Release://' -e 's/\t//g') != "n/a" ]] && [[ ! $distro_release ]]; then distro_release=$(lsb_release -r | sed -e 's/Release://' -e 's/\t//g') && distro_more="$distro $distro_release"; fi + if [[ $(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g') != "n/a" ]] && [[ ! $distro_codename ]]; then distro_codename=$(lsb_release -c | sed -e 's/Codename://' -e 's/\t//g') && distro_more="$distro $distro_codename"; fi + # Check and Parsing for /etc/os-release + elif [ -f /etc/os-release ]; then + distrib_id=$(awk -F'=' '/^ID/{print $2}' /etc/os-release 2>/dev/null) + if [ "$distrib_id" == "frugalware" ]; then distro="Frugalware"; fi + # Existing File Check + else + if [ -f /etc/debian_version ]; then distro="CrunchBang"; fi + if grep -i ubuntu /etc/lsb-release >/dev/null 2>&1; then distro="Ubuntu"; fi + if grep -i SolusOS /etc/issue >/dev/null 2>&1; then distro="SolusOS"; fi + if grep -i mint /etc/lsb-release >/dev/null 2>&1; then + if grep -i debian /etc/lsb-release >/dev/null 2>&1; then distro="LMDE" + else distro="Mint"; fi + fi + if [ -f /etc/arch-release ]; then distro="Arch Linux"; fi + if [ -f /etc/fedora-release ]; then distro="Fedora"; fi + if [ -f /etc/redhat-release ]; then distro="Red Hat Linux"; fi + if [ -f /etc/slackware-version ]; then distro="Slackware"; fi + if [ -f /etc/SuSE-release ]; then distro="openSUSE"; fi + if [ -f /etc/mageia-release ]; then distro="Mageia"; fi + if [ -f /etc/mandrake-release ]; then distro="Mandrake"; fi + if [ -f /etc/mandriva-release ]; then distro="Mandriva"; fi + if [ -f /etc/crunchbang-lsb-release ]; then distro="CrunchBang"; fi + if [ -f /etc/gentoo-release ]; then distro="Gentoo"; fi + if [ -f /var/run/dmesg.boot ] && grep -i bsd /var/run/dmesg.boot; then distro="BSD"; fi + if [ -f /usr/share/doc/tc/release.txt ]; then distro="TinyCore"; fi + if [ -f /etc/frugalware-release ]; then distro="Frugalware"; fi + if grep -q "SolusOS" /etc/issue; then distro="SolusOS"; fi + fi + else + + declare -l lcase + lcase=$distro + + case $lcase in + + arch*linux*old) distro="Arch Linux - Old" ;; + arch*linux) distro="Arch Linux" ;; + fedora) distro="Fedora" ;; + mageia) distro="Mageia" ;; + mandriva) distro="Mandriva" ;; + mandrake) distro="Mandrake" ;; + crunchbang) distro="CrunchBang" ;; + mint) distro="Mint" ;; + lmde) distro="LMDE" ;; + opensuse) distro="openSUSE" ;; + ubuntu) distro="Ubuntu" ;; + debain) distro="CrunchBang" ;; + bsd) distro="BSD" ;; + red*hat*) distro="Red Hat Linux" ;; + crunchbang) distro="CrunchBang" ;; + gentoo) distro="Gentoo" ;; + slackware) distro="Slackware" ;; + frugalware) distro="Frugalware" ;; + peppermint) distro="Peppermint" ;; + + esac + + fi + + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding distro...found as '$distro $distro_release'" +} +# Distro Detection - End + +# Find Number of Running Processes +# processnum="$(( $( ps aux | wc -l ) - 1 ))" + +# Kernel Version Detection - Begin +detectkernel () { + kernel=`uname -r` + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding kernel version...found as '$kernel'" +} +# Kernel Version Detection - End + + +# Uptime Detection - Begin +detectuptime () { + uptime=`awk -F. '{print $1}' /proc/uptime` + secs=$((${uptime}%60)) + mins=$((${uptime}/60%60)) + hours=$((${uptime}/3600%24)) + days=$((${uptime}/86400)) + uptime="${mins}m" + if [ "${hours}" -ne "0" ]; then + uptime="${hours}h ${uptime}" + fi + if [ "${days}" -ne "0" ]; then + uptime="${days}d ${uptime}" + fi + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current uptime...found as '$uptime'" +} +# Uptime Detection - End + + +# Package Count - Begin +detectpkgs () { + case $distro in + 'Arch Linux') pkgs=$(pacman -Qq | wc -l) ;; + 'Frugalware') pkgs=$(pacman-g2 -Qq | wc -l) ;; + 'Ubuntu'|'Mint'|'SolusOS'|'Debian'|'LMDE'|'CrunchBang'|'Peppermint') pkgs=$(dpkg --get-selections | wc -l) ;; + 'Slackware') pkgs=$(ls -1 /var/log/packages | wc -l) ;; + 'Gentoo') pkgs=$(ls -d /var/db/pkg/*/* | wc -l) ;; + 'Fedora'|'openSUSE'|'Red Hat Linux'|'Mandriva'|'Mandrake'|'Mageia') pkgs=$(rpm -qa | wc -l) ;; + esac + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current package count...found as '$pkgs'" +} + + + + +# CPU Detection - Begin +detectcpu () { + cpu=$(awk -F':' '/model name/{ print $2 }' /proc/cpuinfo | head -n 1 | tr -s " " | sed 's/^ //') + find='(R) Core(TM)' + replace='' + cpu=${cpu/$find/$replace} + # cpu_mhz=$(awk -F':' '/cpu MHz/{ print $2 }' /proc/cpuinfo | head -n 1) + # cpu_ghz=$(echo "scale=2; ${cpu_mhz} / 1000" | bc ) + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current CPU...found as '$cpu'" +} +# CPU Detection - End + + + +# Memory Detection - Begin +detectmem () { + total_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo) + totalmem=$((${total_mem}/1024)) + if free | grep -q '/cache'; then + used_mem=$(free | awk '/cache:/ { print $3 }') + usedmem=$((${used_mem}/1024)) + else + free_mem=$(awk '/MemFree/ { print $2 }' /proc/meminfo) + used_mem=$((${total_mem} - ${free_mem})) + usedmem=$((${used_mem}/1024)) + fi + mem="${usedmem}MB / ${totalmem}MB" + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current RAM usage...found as '$mem'" +} +# Memory Detection - End + + +# Shell Detection - Begin +detectshell () { + myShell=$(echo $SHELL | awk -F"/" '{print $NF}') + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current shell...found as '$myShell'" +} +# Shell Detection - End + + +# Resolution Detection - Begin +detectres () { + if [[ -n $DISPLAY ]]; then + xResolution=$(xdpyinfo | sed -n 's/.*dim.* \([0-9]*x[0-9]*\) .*/\1/pg' | sed ':a;N;$!ba;s/\n/ /g') + else + xResolution="No X Server" + fi + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current resolution(s)...found as '$xResolution'" +} +# Resolution Detection - End + + +# DE Detection - Begin +detectde () { + DE="Not Present" + for each in $denames; do + if [[ `ps aux` =~ "$each" ]]; then + [ "$each" == "gnome-session" -o "$each" == "gnome-settings-daemon" ] && DE="GNOME" && DEver=$(gnome-session --version | awk {'print $NF'}) + [ "$each" == "mate-session" -o "$each" == "mate-settings-daemon" ] && DE="MATE" && DEver=$(mate-session --version | awk {'print $NF'}) + [ "$each" == "xfce4-session" ] && DE="XFCE" && DEver=$(xfce4-settings-manager --version | grep -m 1 "" | awk {'print $2'}) + [ "$each" == "ksmserver" ] && DE="KDE" && DEver=$(kwin --version | awk '/^Qt/ {data="Qt v" $2};/^KDE/ {data=$2 " (" data ")"};END{print data}') + [ "$each" == "lxsession" ] && DE="LXDE" && DEver=$(lxpanel -v) + fi + done + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding desktop environment...found as '$DE'" +} +### DE Detection - End + + +# WM Detection - Begin +detectwm () { +WM="Not Found" + userId="$(id -u ${USER})" + for each in $wmnames; do + PID="$(pgrep -U ${userId} $each)" + if [ "$PID" ]; then + case $each in + 'fluxbox') WM="FluxBox";; + 'openbox') WM="OpenBox";; + 'blackbox') WM="Blackbox";; + 'xfwm4') WM="Xfwm4";; + 'metacity') WM="Metacity";; + 'kwin') WM="KWin";; + 'icewm') WM="IceWM";; + 'pekwm') WM="PekWM";; + 'fvwm') WM="FVWM";; + 'dwm') WM="DWM";; + 'awesome') WM="Awesome";; + 'wmaker') WM="WindowMaker";; + 'stumpwm') WM="StumpWM";; + 'xmonad') WM="XMonad";; + 'musca') WM="Musca";; + 'i3') WM="i3";; + 'ratpoison') WM="Ratpoison";; + 'scrotwm') WM="ScrotWM";; + 'wmfs') WM="WMFS";; + 'wmii') WM="wmii";; + 'subtle') WM="subtle";; + 'e16') WM="E16";; + 'enlightenment') WM="E17";; + 'emerald') WM="Emerald";; + 'sawfish') WM="Sawfish";; + 'beryl') WM="Beryl";; + 'monsterwm') WM="monsterwm";; + 'dminiwm') WM="dminiwm";; + esac + fi + done + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding window manager...found as '$WM'" +} +# WM Detection - End + + +# WM Theme Detection - BEGIN +detectwmtheme () { + Win_theme="Not Found" + case $WM in + 'PekWM') if [ -f $HOME/.pekwm/config ]; then Win_theme="$(awk -F"/" '/Theme/ {gsub(/\"/,""); print $NF}' $HOME/.pekwm/config)"; fi;; + 'OpenBox') + if [ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/openbox/rc.xml ]; then + Win_theme="$(awk -F"[<,>]" '/]" '//dev/null && basename "$a"; done)"; fi;; + 'FVWM') Win_theme="Not Present";; + 'DWM') Win_theme="Not Present";; + 'Awesome') if [ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/awesome/rc.lua ]; then Win_theme="$(grep -e '^[^-].*\(theme\|beautiful\).*lua' ${XDG_CONFIG_HOME:-${HOME}/.config}/awesome/rc.lua | grep '[a-zA-Z0-9]\+/[a-zA-Z0-9]\+.lua' -o | cut -d'/' -f1)"; fi;; + 'WindowMaker') Win_theme="Not Present";; + 'XMonad') Win_theme="Not Present";; + 'Musca') Win_theme="Not Present";; + 'i3') Win_theme="Not Present";; + 'Ratpoison') Win_theme="Not Present";; + 'ScrotWM') Win_theme="Not Present";; + 'WMFS') Win_theme="Not Present";; + 'wmii') Win_theme="Not Present";; + 'subtle') Win_theme="Not Present";; + 'E16') Win_theme="$(awk -F"= " '/theme.name/ {print $2}' $HOME/.e16/e_config--0.0.cfg)";; + #E17 doesn't store cfg files in text format so for now get the profile as opposed to theme. atyoung + #TODO: Find a way to extract and read E17 .cfg files ( google seems to have nothing ). atyoung + 'E17') Win_theme=${E_CONF_PROFILE};; + 'Sawfish') Win_theme="$(awk -F")" '/\(custom-set-typed-variable/{print $2}' $HOME/.sawfish/custom | sed 's/ (quote //')";; + 'Beryl') Win_theme="Not Present";; + 'monsterwm') Win_theme="Not Present";; + 'dminiwm') Win_theme="Not Present";; + esac + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding window manager theme...found as '$Win_theme'" +} +# WM Theme Detection - END + +# GTK Theme\Icon\Font Detection - BEGIN +detectgtk () { + gtkTheme="Not Found" + gtkIcons="Not Found" + gtkFont="Not Found" + case $DE in + 'KDE') # Desktop Environment found as "KDE" + if [ -a $HOME/.kde/share/config/kdeglobals ]; then + if grep -q "widgetStyle=" $HOME/.kde/share/config/kdeglobals; then + gtkTheme=$(awk -F"=" '/widgetStyle=/ {print $2}' $HOME/.kde/share/config/kdeglobals) + elif grep -q "colorScheme=" $HOME/.kde/share/config/kdeglobals; then + gtkTheme=$(awk -F"=" '/colorScheme=/ {print $2}' $HOME/.kde/share/config/kdeglobals) + fi + + if grep -q "Theme=" $HOME/.kde/share/config/kdeglobals; then + gtkIcons=$(awk -F"=" '/Theme=/ {print $2}' $HOME/.kde/share/config/kdeglobals) + fi + + if grep -q "Font=" $HOME/.kde/share/config/kdeglobals; then + gtkFont=$(awk -F"=" '/font=/ {print $2}' $HOME/.kde/share/config/kdeglobals) + fi + fi + ;; + 'GNOME'|'MATE') # Desktop Environment found as "GNOME" + if which gconftool-2 >/dev/null 2>&1; then + gtkTheme=$(gconftool-2 -g /desktop/gnome/interface/gtk_theme) + fi + + if which gconftool-2 >/dev/null 2>&1; then + gtkIcons=$(gconftool-2 -g /desktop/gnome/interface/icon_theme) + fi + + if which gconftool-2 >/dev/null 2>&1; then + gtkFont=$(gconftool-2 -g /desktop/gnome/interface/font_name) + fi + if [ "$background_detect" == "1" ]; then + if which gconftool-2 >/dev/null 2>&1; then + gtkBackgroundFull=$(gconftool-2 -g /desktop/gnome/background/picture_filename) + gtkBackground=$(echo "$gtkBackgroundFull" | awk -F"/" '{print $NF}') + fi + fi + ;; + 'XFCE') # Desktop Environment found as "XFCE" + if which xfconf-query >/dev/null 2>&1; then + gtkTheme=$(xfconf-query -c xsettings -p /Net/ThemeName) + fi + + if which xfconf-query >/dev/null 2>&1; then + gtkIcons=$(xfconf-query -c xsettings -p /Net/IconThemeName) + fi + + if which xfconf-query >/dev/null 2>&1; then + gtkFont=$(xfconf-query -c xsettings -p /Gtk/FontName) + fi + ;; + 'LXDE') + if [ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/lxde/config ]; then + lxdeconf="/lxde/config" + else + lxdeconf="/lxsession/LXDE/desktop.conf" + fi + # TODO: Clean me. + if grep -q "sNet\/ThemeName" ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf; then + gtkTheme=$(awk -F'=' '/sNet\/ThemeName/ {print $2}' ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf) + fi + + if grep -q IconThemeName ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf; then + gtkIcons=$(awk -F'=' '/sNet\/IconThemeName/ {print $2}' ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf) + fi + + if grep -q FontName ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf; then + gtkFont=$(awk -F'=' '/sGtk\/FontName/ {print $2}' ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf) + fi + ;; + + # /home/me/.config/rox.sourceforge.net/ROX-Session/Settings.xml + + *) # Lightweight or No DE Found + if [ -f $HOME/.gtkrc-2.0 ]; then + if grep -q gtk-theme $HOME/.gtkrc-2.0; then + gtkTheme=$(awk -F'"' '/gtk-theme/ {print $2}' $HOME/.gtkrc-2.0) + fi + + if grep -q icon-theme $HOME/.gtkrc-2.0; then + gtkIcons=$(awk -F'"' '/icon-theme/ {print $2}' $HOME/.gtkrc-2.0) + fi + + if grep -q font $HOME/.gtkrc-2.0; then + gtkFont=$(awk -F'"' '/gtk-font-name/ {print $2}' $HOME/.gtkrc-2.0) + fi + fi + # $HOME/.gtkrc.mine theme detect only + if [ -f $HOME/.gtkrc.mine ]; then + if grep -q "^include" $HOME/.gtkrc.mine; then + gtkTheme=$(grep '^include.*gtkrc' $HOME/.gtkrc.mine | awk -F "/" '{ print $5 }') + fi + if grep -q "^gtk-icon-theme-name" $HOME/.gtkrc.mine; then + gtkIcons=$(grep 'gtk-icon-theme-name' $HOME/.gtkrc.mine | awk -F '"' '{print $2}') + fi + fi + # ROX-Filer icon detect only + if [ -a ${XDG_CONFIG_HOME:-${HOME}/.config}/rox.sourceforge.net/ROX-Filer/Options ]; then + gtkIcons=$(awk -F'[>,<]' '/icon_theme/ {print $3}' ${XDG_CONFIG_HOME:-${HOME}/.config}/rox.sourceforge.net/ROX-Filer/Options) + fi + # E17 detection + if [ $E_ICON_THEME ]; then + gtkIcons=${E_ICON_THEME} + gtkTheme="Not available." + gtkFont="Not available." + fi + # Background Detection (feh, nitrogen) + if [ "$background_detect" == "1" ]; then + if [ -a $HOME/.fehbg ]; then + gtkBackgroundFull=$(awk -F"'" '/feh --bg/{print $2}' $HOME/.fehbg 2>/dev/null) + gtkBackground=$(echo "$gtkBackgroundFull" | awk -F"/" '{print $NF}') + elif [ -a ${XDG_CONFIG_HOME:-${HOME}/.config}/nitrogen/bg-saved.cfg ]; then + gtkBackground=$(awk -F"/" '/file=/ {print $NF}' ${XDG_CONFIG_HOME:-${HOME}/.config}/nitrogen/bg-saved.cfg) + fi + fi + ;; + esac + if [[ "$verbosity" -eq "1" ]]; then + verboseOut "Finding GTK theme...found as '$gtkTheme'" + verboseOut "Finding icon theme...found as '$gtkIcons'" + verboseOut "Finding user font...found as '$gtkFont'" + [[ $gtkBackground ]] && verboseOut "Finding background...found as '$gtkBackground'" + fi +} +# GTK Theme\Icon\Font Detection - END + + +####################### +# End Detection Phase +####################### + +takeShot () { + if [[ -z $screenCommand ]]; then + if [[ "$hostshot" == "1" ]]; then + scrot -cd3 "${shotfile}" + if [ -f "${shotfile}" ]; then + [[ "$verbosity" -eq "1" ]] && verboseOut "Screenshot saved at '${shotfile}'" + scp -qo ConnectTimeout="${scptimeout}" "${shotfile}" "${serveraddr}:${serverdir}" + echo -e "${bold}==>${c0} Your screenshot can be viewed at ${baseurl}/$shotfile" + else + verboseOut "ERROR: Problem saving screenshot to ${shotfile}" + fi + else + scrot -cd3 "${shotfile}" + if [ -f "${shotfile}" ]; then + [[ "$verbosity" -eq "1" ]] && verboseOut "Screenshot saved at '${shotfile}'" + else + verboseOut "ERROR: Problem saving screenshot to ${shotfile}" + fi + fi + else + $screenCommand + fi +} + + + +asciiText () { +# Distro logos and ASCII outputs + case $distro in + "Arch Linux - Old") + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[1;34m" # Light Blue + startline="0" + fulloutput=("$c1 __ %s" +"$c1 _=(SDGJT=_ %s" +"$c1 _GTDJHGGFCVS) %s" +"$c1 ,GTDJGGDTDFBGX0 %s" +"$c1 JDJDIJHRORVFSBSVL$c2-=+=,_ %s" +"$c1 IJFDUFHJNXIXCDXDSV,$c2 \"DEBL %s" +"$c1 [LKDSDJTDU=OUSCSBFLD.$c2 '?ZWX, %s" +"$c1 ,LMDSDSWH' \`DCBOSI$c2 DRDS], %s" +"$c1 SDDFDFH' !YEWD,$c2 )HDROD %s" +"$c1 !KMDOCG &GSU|$c2\_GFHRGO\' %s" +"$c1 HKLSGP'$c2 __$c1\TKM0$c2\GHRBV)' %s" +"$c1 JSNRVW'$c2 __+MNAEC$c1\IOI,$c2\BN' %s" +"$c1 HELK['$c2 __,=OFFXCBGHC$c1\FD) %s" +"$c1 ?KGHE $c2\_-#DASDFLSV='$c1 'EF %s" +"$c1 'EHTI !H %s" +"$c1 \`0F' '!") + ;; + + "Arch Linux") + [ -z $c1 ] && c1="\e[1;36m" # Light + c2="\e[0;36m" # Dark + startline="1" + fulloutput=("${c1} -\`" +"${c1} .o+\` %s" +"${c1} \`ooo/ %s" +"${c1} \`+oooo: %s" +"${c1} \`+oooooo: %s" +"${c1} -+oooooo+: %s" +"${c1} \`/:-:++oooo+: %s" +"${c1} \`/++++/+++++++: %s" +"${c1} \`/++++++++++++++: %s" +"${c1} \`/+++o"${c2}"oooooooo"${c1}"oooo/\` %s" +"${c2} "${c1}"./"${c2}"ooosssso++osssssso"${c1}"+\` %s" +"${c2} .oossssso-\`\`\`\`/ossssss+\` %s" +"${c2} -osssssso. :ssssssso. %s" +"${c2} :osssssss/ osssso+++. %s" +"${c2} /ossssssss/ +ssssooo/- %s" +"${c2} \`/ossssso+/:- -:/+osssso+- %s" +"${c2} \`+sso+:-\` \`.-/+oso:" +"${c2} \`++:. \`-/+/" +"${c2} .\` \`/") + ;; + + "Mint") + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[1;32m" # Bold Green + startline="0" + fulloutput=("$c2 MMMMMMMMMMMMMMMMMMMMMMMMMmds+. %s" +"$c2 MMm----::-://////////////oymNMd+\` %s" +"$c2 MMd "$c1"/++ "$c2"-sNMd: %s" +"$c2 MMNso/\` "$c1"dMM \`.::-. .-::.\` "$c2".hMN: %s" +"$c2 ddddMMh "$c1"dMM :hNMNMNhNMNMNh: "$c2"\`NMm %s" +"$c2 NMm "$c1"dMM .NMN/-+MMM+-/NMN\` "$c2"dMM %s" +"$c2 NMm "$c1"dMM -MMm \`MMM dMM. "$c2"dMM %s" +"$c2 NMm "$c1"dMM -MMm \`MMM dMM. "$c2"dMM %s" +"$c2 NMm "$c1"dMM .mmd \`mmm yMM. "$c2"dMM %s" +"$c2 NMm "$c1"dMM\` ..\` ... ydm. "$c2"dMM %s" +"$c2 hMM- "$c1"+MMd/-------...-:sdds "$c2"dMM %s" +"$c2 -NMm- "$c1":hNMNNNmdddddddddy/\` "$c2"dMM %s" +"$c2 -dMNs-"$c1"\`\`-::::-------.\`\` "$c2"dMM %s" +"$c2 \`/dMNmy+/:-------------:/yMMM %s" +"$c2 ./ydNMMMMMMMMMMMMMMMMMMMMM %s") + ;; + + + "LMDE") + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[1;32m" # Bold Green + startline="1" + fulloutput=(" "${c1}"\`.-::---.." +"${c2} .:++++ooooosssoo:. %s" +"${c2} .+o++::. \`.:oos+. %s" +"${c2} :oo:.\` -+oo"${c1}": %s" +"${c2} "${c1}"\`"${c2}"+o/\` ."${c1}"::::::"${c2}"-. .++-"${c1}"\` %s" +"${c2} "${c1}"\`"${c2}"/s/ .yyyyyyyyyyo: +o-"${c1}"\` %s" +"${c2} "${c1}"\`"${c2}"so .ss ohyo\` :s-"${c1}": %s" +"${c2} "${c1}"\`"${c2}"s/ .ss h m myy/ /s\`"${c1}"\` %s" +"${c2} \`s: \`oo s m Myy+-o:\` %s" +"${c2} \`oo :+sdoohyoydyso/. %s" +"${c2} :o. .:////////++: %s" +"${c2} \`/++ "${c1}"-:::::- %s" +"${c2} "${c1}"\`"${c2}"++- %s" +"${c2} "${c1}"\`"${c2}"/+- %s" +"${c2} "${c1}"."${c2}"+/. %s" +"${c2} "${c1}"."${c2}":+-. %s" +"${c2} \`--.\`\`") + ;; + + "Ubuntu") + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[1;31m" # Light Red + c3="\e[1;33m" # Bold Yellow + startline="1" + fulloutput=("$c2 ./+o+-" +"$c1 yyyyy- $c2-yyyyyy+ %s" +"$c1 $c1://+//////$c2-yyyyyyo %s" +"$c3 .++ $c1.:/++++++/-$c2.+sss/\` %s" +"$c3 .:++o: $c1/++++++++/:--:/- %s" +"$c3 o:+o+:++.$c1\`..\`\`\`.-/oo+++++/ %s" +"$c3 .:+o:+o/.$c1 \`+sssoo+/ %s" +"$c1 .++/+:$c3+oo+o:\`$c1 /sssooo. %s" +"$c1 /+++//+:$c3\`oo+o$c1 /::--:. %s" +"$c1 \+/+o+++$c3\`o++o$c2 ++////. %s" +"$c1 .++.o+$c3++oo+:\`$c2 /dddhhh. %s" +"$c3 .+.o+oo:.$c2 \`oddhhhh+ $mygtk" +"$c3 \+.++o+o\`\`-\`\`$c2\`\`.:ohdhhhhh+ %s" +"$c3 \`:o+++ $c2\`ohhhhhhhhyo++os: %s" +"$c3 .o:$c2\`.syhhhhhhh/$c3.oo++o\` %s" +"$c2 /osyyyyyyo$c3++ooo+++/ %s" +"$c2 \`\`\`\`\` $c3+oo+++o\:" +"$c3 \`oo++.") + ;; + + "Debian") + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[1;31m" # Light Red + startline="1" + fulloutput=(" $c1 _,met\$\$\$\$\$gg." +" $c1 ,g\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$P.\t %s" +" $c1 ,g\$\$P\"\" \"\"\"Y\$\$.\".\t%s" +" $c1 ,\$\$P' \`\$\$\$.\t%s" +" $c1',\$\$P ,ggs. \`\$\$b:\t%s" +" $c1\`d\$\$' ,\$P\"\' $c2.$c1 \$\$\$\t%s" +" $c1 \$\$P d\$\' $c2,$c1 \$\$P\t%s" +" $c1 \$\$: \$\$. $c2-$c1 ,d\$\$'\t%s" +" $c1 \$\$\; Y\$b._ _,d\$P'\t%s" +" $c1 Y\$\$. $c2\`.$c1\`\"Y\$\$\$\$P\"'\t\t%s" +" $c1 \`\$\$b $c2\"-.__\t\t%s" +" $c1 \`Y\$\$\t\t\t%s" +" $c1 \`Y\$\$.\t\t\t%s" +" $c1 \`\$\$b.\t\t\t%s" +" $c1 \`Y\$\$b.\t\t\t%s" +" $c1 \`\"Y\$b._\t\t%s" +" $c1 \`\"\"\"\"") + ;; + + "CrunchBang") + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[0;34m" # Light Blue + startline="0" + fulloutput=("$c1 ███ ███ ███ %s" +"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" +"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" +"$c1 ████████████████████████████ $c2░$c1███ %s" +"$c2░$c1████████████████████████████ $c2░$c1███ %s" +"$c2░░░░░░░░░$c1███$c2░░░░░░░░$c1███$c2░░░░░ ░$c1███ %s" +"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" +"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" +"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" +"$c1 ████████████████████████████ $c2░$c1███ %s" +"$c2░$c1████████████████████████████ $c2░░░ %s" +"$c2░░░░░░░░░$c1███$c2░░░░░░░░$c1███$c2░░░░░ %s" +"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" +"$c2 ░$c1███ $c2░$c1███ $c2░$c1███ %s" +"$c2 ░░░ ░░░ ░░░ %s") + ;; + + + "Gentoo") + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[1;35m" # Light Purple + startline="2" + fulloutput=("$c2 -/oyddmdhs+:." +"$c2 -o"$c1"dNMMMMMMMMNNmhy+"$c2"-\`" +"$c2 -y"$c1"NMMMMMMMMMMMNNNmmdhy"$c2"+- %s" +"$c2 \`o"$c1"mMMMMMMMMMMMMNmdmmmmddhhy"$c2"/\` %s" +"$c2 om"$c1"MMMMMMMMMMMN"$c2"hhyyyo"$c1"hmdddhhhd"$c2"o\` %s" +"$c2.y"$c1"dMMMMMMMMMMd"$c2"hs++so/s"$c1"mdddhhhhdm"$c2"+\` %s" +"$c2 oy"$c1"hdmNMMMMMMMN"$c2"dyooy"$c1"dmddddhhhhyhN"$c2"d. %s" +"$c2 :o"$c1"yhhdNNMMMMMMMNNNmmdddhhhhhyym"$c2"Mh %s" +"$c2 .:"$c1"+sydNMMMMMNNNmmmdddhhhhhhmM"$c2"my %s" +"$c2 /m"$c1"MMMMMMNNNmmmdddhhhhhmMNh"$c2"s: %s" +"$c2 \`o"$c1"NMMMMMMMNNNmmmddddhhdmMNhs"$c2"+\` %s" +"$c2 \`s"$c1"NMMMMMMMMNNNmmmdddddmNMmhs"$c2"/. %s" +"$c2 /N"$c1"MMMMMMMMNNNNmmmdddmNMNdso"$c2":\` %s" +"$c2+M"$c1"MMMMMMNNNNNmmmmdmNMNdso"$c2"/- %s" +"$c2yM"$c1"MNNNNNNNmmmmmNNMmhs+/"$c2"-\` %s" +"$c2/h"$c1"MMNNNNNNNNMNdhs++/"$c2"-\`" +"$c2\`/"$c1"ohdmmddhys+++/:"$c2".\`" +"$c2 \`-//////:--.") + ;; + + "Fedora") + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[1;34m" # Light Blue + startline="1" + fulloutput=("$c2 :/------------://" +"$c2 :------------------:// %s" +"$c2 :-----------"$c1"/shhdhyo/"$c2"-:// %s" +"$c2 /-----------"$c1"omMMMNNNMMMd/"$c2"-:/ %s" +"$c2 :-----------"$c1"sMMMdo:/"$c2" -:/ %s" +"$c2 :-----------"$c1":MMMd"$c2"------- --:/ %s" +"$c2 /-----------"$c1":MMMy"$c2"------- ---/ %s" +"$c2 :------ --"$c1"/+MMMh/"$c2"-- ---: %s" +"$c2 :--- "$c1"oNMMMMMMMMMNho"$c2" -----: %s" +"$c2 :-- "$c1"+shhhMMMmhhy++"$c2" ------: %s" +"$c2 :- -----"$c1":MMMy"$c2"--------------/ %s" +"$c2 :- ------"$c1"/MMMy"$c2"-------------: %s" +"$c2 :- ----"$c1"/hMMM+"$c2"------------: %s" +"$c2 :--"$c1":dMMNdhhdNMMNo"$c2"-----------: %s" +"$c2 :---"$c1":sdNMMMMNds:"$c2"----------: %s" +"$c2 :------"$c1":://:"$c2"-----------:// %s" +"$c2 :--------------------://") + ;; + + "BSD") + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[1;31m" # Light Red + startline="2" + fulloutput=("$c2 , ," +"$c2 /( )\`" +"$c2 \ \___ / | %s" +"$c2 /- "$c1"_$c2 \`-/ ' %s" +"$c2 ($c1/\/ \ $c2\ /\\ %s" +"$c1 / / |$c2 \` \\ %s" +"$c1 O O )$c2 / | %s" +"$c1 \`-^--'\`$c2< ' %s" +"$c2 (_.) _ ) / %s" +"$c2 \`.___/\` / %s" +"$c2 \`-----' / %s" +"$c1 <----. "$c2"__/ __ \\ %s" +"$c1 <----|===="$c2"O}}}$c1==$c2} \} \/$c1==== %s" +"$c1 <----' $c2\`--' \`.__,' \\ %s" +"$c2 | | %s" +"$c2 \ / /\\ %s" +"$c2 ______( (_ / \______/ %s" +"$c2 ,' ,-----' |" +"$c2 \`--{__________)") + ;; + + "Mandriva"|"Mandrake") + c1="\e[1;34m" # Light Blue + c2="\e[1;33m" # Bold Yellow + startline="0" + fulloutput=("$c2 \`\` %s" +"$c2 \`-. %s" +"$c1 \` $c2.--- %s" +"$c1 -/ $c2-::--\` %s" +"$c1 \`++ $c2\`----...\`\`\`-:::::. %s" +"$c1 \`os. $c2.::::::::::::::-\`\`\` \` \` %s" +"$c1 +s+ $c2.::::::::::::::::---...--\` %s" +"$c1 -ss: $c2\`-::::::::::::::::-.\`\`.\`\` %s" +"$c1 /ss- $c2.::::::::::::-.\`\` \` %s" +"$c1 +ss: $c2.::::::::::::- %s" +"$c1 /sso $c2.::::::-::::::- %s" +"$c1 .sss/ $c2-:::-.\` .::::: %s" +"$c1 /sss+. $c2..\`$c1 \`--\` $c2.::: %s" +"$c1 -ossso+/:://+/-\` $c2.:\` %s" +"$c1 -/+ooo+/-. $c2\` %s") + ;; + + "openSUSE") + c1="\e[1;32m" # Bold Green + c2="\e[1;37m" # Bold White + startline="2" + fulloutput=("$c2 .;ldkO0000Okdl;." +"$c2 .;d00xl:,'....';:ok00d;." +"$c2 .d00l' ,o00d. %s" +"$c2 .d0Kd."$c1" :Okxol:;'. "$c2":O0d. %s" +"$c2 'OK"$c1"KKK0kOKKKKKKKKKKOxo:' "$c2"lKO' %s" +"$c2 ,0K"$c1"KKKKKKKKKKKKKKK0d:"$c2",,,"$c1":dx:"$c2" ;00, %s" +"$c2 .OK"$c1"KKKKKKKKKKKKKKKk."$c2".oOkdl."$c1"'0k."$c2" cKO. %s" +"$c2 :KK"$c1"KKKKKKKKKKKKKKK: "$c2"kKx..od "$c1"lKd"$c2" .OK: %s" +"$c2 dKK"$c1"KKKKKKKKKOx0KKKd "$c2";0KKKO, "$c1"kKKc"$c2" dKd %s" +"$c2 dKK"$c1"KKKKKKKKKK;.;oOKx,.."$c2"'"$c1"..;kKKK0."$c2" dKd %s" +"$c2 :KK"$c1"KKKKKKKKKK0o;...;cdxxOK0Oxc,. "$c2".0K: %s" +"$c2 kKK"$c1"KKKKKKKKKKKKK0xl;'......,cdo "$c2"lKk %s" +"$c2 '0K"$c1"KKKKKKKKKKKKKKKKKKKK00KKOo; "$c2"c00' %s" +"$c2 .kK"$c1"KKOxddxkOO00000Okxoc;'. "$c2".dKk. %s" +"$c2 l0Ko. .c00l. %s" +"$c2 .l0Kk:. .;xK0l. %s" +"$c2 ,lkK0xl:;,,,,;:ldO0kl, %s" +"$c2 .':ldxkkkkxdl:'.") + ;; + + "Slackware") + [ -z $c1 ] && c1="\e[1;34m" # Light Blue + c2="\e[1;37m" # Bold White + startline="3" + fulloutput=("$c1 :::::::" +"$c1 :::::::::::::::::::" +"$c1 :::::::::::::::::::::::::" +"$c1 ::::::::"${c2}"cllcccccllllllll"${c1}":::::: %s" +"$c1 :::::::::"${c2}"lc dc"${c1}"::::::: %s" +"$c1 ::::::::"${c2}"cl clllccllll oc"${c1}"::::::::: %s" +"$c1 :::::::::"${c2}"o lc"${c1}"::::::::"${c2}"co oc"${c1}":::::::::: %s" +"$c1 ::::::::::"${c2}"o cccclc"${c1}":::::"${c2}"clcc"${c1}":::::::::::: %s" +"$c1 :::::::::::"${c2}"lc cclccclc"${c1}"::::::::::::: %s" +"$c1 ::::::::::::::"${c2}"lcclcc lc"${c1}":::::::::::: %s" +"$c1 ::::::::::"${c2}"cclcc"${c1}":::::"${c2}"lccclc oc"${c1}"::::::::::: %s" +"$c1 ::::::::::"${c2}"o l"${c1}"::::::::::"${c2}"l lc"${c1}"::::::::::: %s" +"$c1 :::::"${c2}"cll"${c1}":"${c2}"o clcllcccll o"${c1}"::::::::::: %s" +"$c1 :::::"${c2}"occ"${c1}":"${c2}"o clc"${c1}"::::::::::: %s" +"$c1 ::::"${c2}"ocl"${c1}":"${c2}"ccslclccclclccclclc"${c1}"::::::::::::: %s" +"$c1 :::"${c2}"oclcccccccccccccllllllllllllll"${c1}"::::: %s" +"$c1 ::"${c2}"lcc1lcccccccccccccccccccccccco"${c1}":::: %s" +"$c1 :::::::::::::::::::::::::::::::: %s" +"$c1 ::::::::::::::::::::::::::::" +"$c1 ::::::::::::::::::::::" +"$c1 ::::::::::::") + ;; + + "Red Hat Linux") + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[1;31m" # Light Red + startline="0" + fulloutput=("$c2 \`.-..........\` %s" +"$c2 \`////////::.\`-/. %s" +"$c2 -: ....-////////. %s" +"$c2 //:-::///////////\` %s" +"$c2 \`--::: \`-://////////////: %s" +"$c2 //////- \`\`.-:///////// .\` %s" +"$c2 \`://////:-.\` :///////::///:\` %s" +"$c2 .-/////////:---/////////////: %s" +"$c2 .-://////////////////////. %s" +"$c1 yMN+\`.-$c2::///////////////-\` %s" +"$c1 .-\`:NMMNMs\` \`..-------..\` %s" +"$c1 MN+/mMMMMMhoooyysshsss %s" +"$c1 MMM MMMMMMMMMMMMMMyyddMMM+ %s" +"$c1 MMMM MMMMMMMMMMMMMNdyNMMh\` hyhMMM %s" +"$c1 MMMMMMMMMMMMMMMMyoNNNMMM+. MMMMMMMM %s" +"$c1 MMNMMMNNMMMMMNM+ mhsMNyyyyMNMMMMsMM") + ;; + + "Frugalware") + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[1;36m" # Light Blue + startline="5" + fulloutput=("${c2} \`++/::-.\`" +"${c2} /o+++++++++/::-.\`" +"${c2} \`o+++++++++++++++o++/::-.\`" +"${c2} /+++++++++++++++++++++++oo++/:-.\`\`" +"${c2} .o+ooooooooooooooooooosssssssso++oo++/:-\`" +"${c2} ++osoooooooooooosssssssssssssyyo+++++++o: %s" +"${c2} -o+ssoooooooooooosssssssssssssyyo+++++++s\` %s" +"${c2} o++ssoooooo++++++++++++++sssyyyyo++++++o: %s" +"${c2} :o++ssoooooo"${c1}"/-------------"${c2}"+syyyyyo+++++oo %s" +"${c2} \`o+++ssoooooo"${c1}"/-----"${c2}"+++++ooosyyyyyyo++++os: %s" +"${c2} /o+++ssoooooo"${c1}"/-----"${c2}"ooooooosyyyyyyyo+oooss %s" +"${c2} .o++++ssooooos"${c1}"/------------"${c2}"syyyyyyhsosssy- %s" +"${c2} ++++++ssooooss"${c1}"/-----"${c2}"+++++ooyyhhhhhdssssso %s" +"${c2} -s+++++syssssss"${c1}"/-----"${c2}"yyhhhhhhhhhhhddssssy. %s" +"${c2} sooooooyhyyyyyh"${c1}"/-----"${c2}"hhhhhhhhhhhddddyssy+ %s" +"${c2} :yooooooyhyyyhhhyyyyyyhhhhhhhhhhdddddyssy\` %s" +"${c2} yoooooooyhyyhhhhhhhhhhhhhhhhhhhddddddysy/ %s" +"${c2}-ysooooooydhhhhhhhhhhhddddddddddddddddssy %s" +"${c2} .-:/+osssyyyysyyyyyyyyyyyyyyyyyyyyyyssy: %s" +"${c2} \`\`.-/+oosysssssssssssssssssssssss %s" +"${c2} \`\`.:/+osyysssssssssssssh." +"${c2} \`-:/+osyyssssyo" +"${c2} .-:+++\`") + ;; + + + "Peppermint") + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[1;31m" # Light Red + startline="2" + fulloutput=("${c2} 8ZZZZZZ"${c1}"MMMMM" +"${c2} .ZZZZZZZZZ"${c1}"MMMMMMM." +"${c1} MM"${c2}"ZZZZZZZZZ"${c1}"MMMMMMM"${c2}"ZZZZ %s" +"${c1} MMMMM"${c2}"ZZZZZZZZ"${c1}"MMMMM"${c2}"ZZZZZZZM %s" +"${c1} MMMMMMM"${c2}"ZZZZZZZ"${c1}"MMMM"${c2}"ZZZZZZZZZ. %s" +"${c1} MMMMMMMMM"${c2}"ZZZZZZ"${c1}"MMM"${c2}"ZZZZZZZZZZZI %s" +"${c1} MMMMMMMMMMM"${c2}"ZZZZZZ"${c1}"MM"${c2}"ZZZZZZZZZZ"${c1}"MMM %s" +"${c2} .ZZZ"${c1}"MMMMMMMMMM"${c2}"IZZ"${c1}"MM"${c2}"ZZZZZ"${c1}"MMMMMMMMM %s" +"${c2} ZZZZZZZ"${c1}"MMMMMMMM"${c2}"ZZ"${c1}"M"${c2}"ZZZZ"${c1}"MMMMMMMMMMM %s" +"${c2} ZZZZZZZZZZZZZZZZ"${c1}"M"${c2}"Z"${c1}"MMMMMMMMMMMMMMM %s" +"${c2} .ZZZZZZZZZZZZZ"${c1}"MMM"${c2}"Z"${c1}"M"${c2}"ZZZZZZZZZZ"${c1}"MMMM %s" +"${c2} .ZZZZZZZZZZZ"${c1}"MMM"${c2}"7ZZ"${c1}"MM"${c2}"ZZZZZZZZZZ7"${c1}"M %s" +"${c2} ZZZZZZZZZ"${c1}"MMMM"${c2}"ZZZZ"${c1}"MMMM"${c2}"ZZZZZZZ77 %s" +"${c1} MMMMMMMMMMMM"${c2}"ZZZZZ"${c1}"MMMM"${c2}"ZZZZZ77 %s" +"${c1} MMMMMMMMMM"${c2}"7ZZZZZZ"${c1}"MMMMM"${c2}"ZZ77 %s" +"${c1} .MMMMMMM"${c2}"ZZZZZZZZ"${c1}"MMMMM"${c2}"Z7Z %s" +"${c1} MMMMM"${c2}"ZZZZZZZZZ"${c1}"MMMMMMM %s" +"${c2} NZZZZZZZZZZZ"${c1}"MMMMM" +"${c2} ZZZZZZZZZ"${c1}"MM") + ;; + + "SolusOS") + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[1;30m" # Light Gray + startline="2" + fulloutput=("${c1} e e" +"${c1} eee ee" +"${c1} eeee eee %s" +"${c2} wwwwwwwww"${c1}"eeeeee %s" +"${c2} wwwwwwwwwwwwwww"${c1}"eee %s" +"${c2} wwwwwwwwwwwwwwwwwww"${c1}"eeeeeeee %s" +"${c2} wwwww "${c1}"eeeee"${c2}"wwwwww"${c1}"eeee %s" +"${c2} www "${c1}"eeee"${c2}"wwwwww"${c1}"e %s" +"${c2} ww "${c1}"ee"${c2}"wwwwww %s" +"${c2} w wwwww %s" +"${c2} wwwww %s" +"${c2} wwwww %s" +"${c2} wwwww %s" +"${c2} wwww %s" +"${c2} wwww %s" +"${c2} wwww %s" +"${c2} www %s" +"${c2} ww") + ;; + + + + "Mageia") + [ -z $c1 ] && c1="\e[1;34m" # Light Blue + c2="\e[0;36m" # Light Cyan + startline="2" + fulloutput=("$c2 .'' " +"$c2 '. .. " +"$c2 .,,. %s" +"$c2 ,;;. %s" +"$c2 ... ... %s" +"$c2 ',,' .:::. %s" +"$c1 .$c2,:c,$c1 .. . %s" +"$c1 :dkxc;'. ..,cxkd; %s" +"$c1 .dkkxxkkkkkkkkkkxxkkd. %s" +"$c1 .dkko. ';cloolc;. .dkkd %s" +"$c1 ckkx. .xkk; %s" +"$c1 xOO: cOOd %s" +"$c1 xOO: lOOd %s" +"$c1 lOOx. .kOO: %s" +"$c1 .k00d. .x00x %s" +"$c1 .k00O; ;k00O. %s" +"$c1 .lO0KOdc;,,;cdO0KOc. %s" +"$c1 ;d0KKKKKKKK0d; " +"$c1 .,;::;,. ") + ;; + + *) + [ -z $c1 ] && c1="\e[1;37m" # White + c2="\e[1;30m" # Light Gray + c3="\e[1;33m" # Light Yellow + startline="0" + fulloutput=(" %s" +" %s" +"$c2 #####$c0 %s" +"$c2 ####### %s" +"$c2 ##"$c1"O$c2#"$c1"O$c2## %s" +"$c2 #$c3#####$c2# %s" +"$c2 ##$c1##$c3###$c1##$c2## %s" +"$c2 #$c1##########$c2## %s" +"$c2 #$c1############$c2## %s" +"$c2 #$c1############$c2### %s" +"$c3 ##$c2#$c1###########$c2##$c3# %s" +"$c3 ######$c2#$c1#######$c2#$c3###### %s" +"$c3 #######$c2#$c1#####$c2#$c3####### %s" +"$c3 #####$c2#######$c3##### %s" +" %s" +"$c0") + ;; + esac + + # Truncate lines based on terminal width. + if [ "$truncateSet" == "Yes" ]; then + n=${#fulloutput[*]} + for ((i=0;i/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." + fi + fi + elif [[ "$WM" =~ "Fluxbox" ]]; then + if [[ "$Win_theme" != "Not Found" ]]; then + if [[ -d "$HOME/.fluxbox/styles/$Win_theme" ]]; then + cp -r "$HOME/.fluxbox/styles/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." + fi + fi + elif [[ "$WM" =~ "Blackbox" ]]; then + if [[ "$Win_theme" != "Not Found" ]]; then + if [[ -d "$HOME/.blackbox/styles/$Win_theme" ]]; then + cp -r "$HOME/.blackbox/styles/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." + elif [[ -d "/usr/share/blackbox/styles/$Win_theme" ]]; then + cp -r "/usr/share/blackbox/styles/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." + fi + fi + elif [[ "$WM" =~ "PekWM" ]]; then + if [[ "$Win_theme" != "Not Found" ]]; then + if [[ -d "$HOME/.pekwm/themes/$Win_theme" ]]; then + cp -r "$HOME/.pekwm/themes/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." + fi + fi + elif [[ "$WM" =~ "Metacity" ]]; then + if [[ "$Win_theme" != "Not Found" ]]; then + if [[ -d "$HOME/.themes/$Win_theme" ]]; then + cp -r "$HOME/.themes/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." + elif [[ -d "/usr/share/themes/$Win_theme" ]]; then + cp -r "/usr/share/themes/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." + fi + fi + elif [[ "$WM" =~ "Xfwm4" ]]; then + if [[ "$Win_theme" != "Not Found" ]]; then + WM_theme=$(echo "$Win_theme" | awk '{print $NF}') + if [[ -d "$HOME/.themes/$Win_theme" ]]; then + cp -r "$HOME/.themes/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." + elif [[ -d "/usr/share/themes/$Win_theme" ]]; then + cp -r "/usr/share/themes/$Win_theme" "/tmp/screenfetch-export/WM-${WM}/$Win_theme" &>/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found WM theme folder. Transferring to /tmp/screenfetch-export/..." + fi + fi + fi + fi + if [[ "$gtkBackgroundFull" ]]; then + cp "$gtkBackgroundFull" /tmp/screenfetch-export/ + [[ "$verbosity" -eq "1" ]] && verboseOut "Found BG file. Transferring to /tmp/screenfetch-export/..." + fi + if [[ "$mygtk" ]]; then + GTK_theme=$(echo "$mygtk" | awk '{print $NF}') + if [ -d "/usr/share/themes/$GTK_theme" ]; then + cp -r "/usr/share/themes/$GTK_theme" "/tmp/screenfetch-export/GTK/Theme/$GTK_theme" &>/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found GTK theme folder. Transferring to /tmp/screenfetch-export/..." + fi + fi + if [[ "$myicons" ]]; then + GTK_icons=$(echo "$myicons" | awk '{print $NF}') + if [ -d "/usr/share/icons/$GTK_icons" ]; then + cp -r "/usr/share/icons/$GTK_icons" "/tmp/screenfetch-export/GTK/Icons/$GTK_icons" &>/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found GTK icons theme folder. Transferring to /tmp/screenfetch-export/..." + fi + if [ -d "$HOME/.icons/$GTK_icons" ]; then + cp -r "$HOME/.icons/$GTK_icons" "/tmp/screenfetch-export/GTK/Icons/$GTK_icons" &>/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found GTK icons theme folder. Transferring to /tmp/screenfetch-export/..." + fi + fi + if [[ "$myfont" ]]; then + GTK_font=$(echo "$myfont" | awk '{print $NF}') + if [ -d "/usr/share/fonts/$GTK_font" ]; then + cp -r "/usr/share/fonts/$GTK_font" "/tmp/screenfetch-export/GTK/$GTK_font" &>/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found GTK font. Transferring to /tmp/screenfetch-export/..." + elif [ -d "$HOME/.fonts/$GTK_font" ]; then + cp -r "$HOME/.fonts/$GTK_font" "/tmp/screenfetch-export/GTK/$GTK_font" &>/dev/null + [[ "$verbosity" -eq "1" ]] && verboseOut "Found GTK font. Transferring to /tmp/screenfetch-export/..." + fi + fi + if [ "$screenshot" == "1" ]; then + if [ -f "${shotfile}" ]; then + cp "${shotfile}" "/tmp/screenfetch-export/" + [[ "$verbosity" -eq "1" ]] && verboseOut "Found screenshot. Transferring to /tmp/screenfetch-export/..." + fi + fi + cd /tmp/screenfetch-export/ + [[ "$verbosity" -eq "1" ]] && verboseOut "Creating screenfetch-export.tar.gz archive in /tmp/screenfetch-export/...." + tar -czf screenfetch-export.tar.gz ../screenfetch-export &>/dev/null + mv /tmp/screenfetch-export/screenfetch-export.tar.gz $HOME/ + echo -e "${bold}==>${c0} Archive created in /tmp/ and moved to $HOME. Removing /tmp/screenfetch-export/..." + rm -rf /tmp/screenfetch-export/ +} + + +################## +# Let's Do This! +################## + +for i in "${display[@]}"; do + + if [[ $i =~ wm ]]; then + ! [[ $WM ]] && detectwm; + ! [[ $Win_theme ]] && detectwmtheme; + else + + [[ "${display[*]}" =~ "$i" ]] && detect${i} + + fi +done +infoDisplay +[ "$screenshot" == "1" ] && takeShot +[ "$exportTheme" == "1" ] && themeExport \ No newline at end of file diff --git a/fun/code/fun/skull b/fun/code/fun/skull new file mode 100755 index 0000000..91deff5 --- /dev/null +++ b/fun/code/fun/skull @@ -0,0 +1,70 @@ +#!/bin/bash + +f=3 b=4 +for j in f b; do + for i in {0..7}; do + printf -v $j$i %b "\e[${!j}${i}m" + done +done +bld=$'\e[1m' +rst=$'\e[0m' +inv=$'\e[7m' + + +cat << EOF +$f4 ...----.... +$f4 ..-:"'' ''"-.. +$f4 .-' '-. +$f4 .' . . '. +$f4 .' . . . . .''. +$f4 .' . . . . . . . ..:. +$f4 .' . . . . . . .. . . ....::. +$f4 .. . . . . . . .. . ....:IA. +$f4 .: . . . . . . .. . .. .. ....:IA. +$f4 .: . . .. . . . . .. . ... ....:.:VHA. +$f4 '.. . .. . . . . .. . .. . .....:.::IHHB. +$f4 .:. . . . . . . . . . . ...:.:... .......:HIHMM. +$f4 .:.... . . ."::"'.. . . . .:.:.:II;,. .. ..:IHIMMA +$f4 ':.:.. ..::IHHHHHI::. . . ...:.::::.,,,. . ....VIMMHM +$f4 .:::I. .AHHHHHHHHHHAI::. .:...,:IIHHHHHHMMMHHL:. . VMMMM +$f4 .:.:V.:IVHHHHHHHMHMHHH::..:" .:HIHHHHHHHHHHHHHMHHA. .VMMM. +$f4 :..V.:IVHHHHHMMHHHHHHHB... . .:VPHHMHHHMMHHHHHHHHHAI.:VMMI +$f4 ::V..:VIHHHHHHMMMHHHHHH. . .I":IIMHHMMHHHHHHHHHHHAPI:WMM +$f4 ::". .:.HHHHHHHHMMHHHHHI. . .:..I:MHMMHHHHHHHHHMHV:':H:WM +$f4 :: . :.::IIHHHHHHMMHHHHV .ABA.:.:IMHMHMMMHMHHHHV:'. .IHWW +$f4 '. ..:..:.:IHHHHHMMHV" .AVMHMA.:.'VHMMMMHHHHHV:' . :IHWV +$f4 :. .:...:".:.:TPP" .AVMMHMMA.:. "VMMHHHP.:... .. :IVAI +$f4 .:. '... .:"' . ..HMMMHMMMA::. ."VHHI:::.... .:IHW' +$f4 ... . . ..:IIPPIH: ..HMMMI.MMMV:I:. .:ILLH:.. ...:I:IM +$f4 : . .'"' .:.V". .. . :HMMM:IMMMI::I. ..:HHIIPPHI::'.P:HM. +$f4 :. . . .. ..:.. . :AMMM IMMMM..:...:IV":T::I::.".:IHIMA +$f4 'V:.. .. . .. . . . 'VMMV..VMMV :....:V:.:..:....::IHHHMH +$f4 "IHH:.II:.. .:. . . . . " :HB"" . . ..PI:.::.:::..:IHHMMV" +$f4 :IP""HHII:. . . . . .'V:. . . ..:IH:.:.::IHIHHMMMMM" +$f4 :V:. VIMA:I.. . . . .. . . .:.I:I:..:IHHHHMMHHMMM +$f4 :"VI:.VWMA::. .: . .. .:. ..:.I::.:IVHHHMMMHMMMMI +$f4 :."VIIHHMMA:. . . .: .:.. . .:.II:I:AMMMMMMHMMMMMI +$f4 :..VIHIHMMMI...::.,:.,:!"I:!"I!"I!"V:AI:VAMMMMMMHMMMMMM' +$f4 ':.:HIHIMHHA:"!!"I.:AXXXVVXXXXXXXA:."HPHIMMMMHHMHMMMMMV +$f4 V:H:I:MA:W'I :AXXXIXII:IIIISSSSSSXXA.I.VMMMHMHMMMMMM +$f4 'I::IVA ASSSSXSSSSBBSBMBSSSSSSBBMMMBS.VVMMHIMM'"' +$f4 I:: VPAIMSSSSSSSSSBSSSMMBSSSBBMMMMXXI:MMHIMMI +$f4 .I::. "H:XIIXBBMMMMMMMMMMMMMMMMMBXIXXMMPHIIMM' +$f4 :::I. ':XSSXXIIIIXSSBMBSSXXXIIIXXSMMAMI:.IMM +$f4 :::I:. .VSSSSSISISISSSBII:ISSSSBMMB:MI:..:MM +$f4 ::.I:. ':"SSSSSSSISISSXIIXSSSSBMMB:AHI:..MMM. +$f4 ::.I:. . ..:"BBSSSSSSSSSSSSBBBMMMB:AHHI::.HMMI +$f4 :..::. . ..::":BBBBBSSBBBMMMB:MMMMHHII::IHHMI +$f4 ':.I:... ....:IHHHHHMMMMMMMMMMMMMMMHHIIIIHMMV" +$f4 "V:. ..:...:.IHHHMMMMMMMMMMMMMMMMHHHMHHMHP' +$f4 ':. .:::.:.::III::IHHHHMMMMMHMHMMHHHHM" +$f4 "::....::.:::..:..::IIIIIHHHHMMMHHMV" +$f4 "::.::.. .. . ...:::IIHHMMMMHMV" +$f4 "V::... . .I::IHHMMV"' +$f4 '"VHVHHHAHHHHMMV:"' + +$rst + +EOF + + diff --git a/fun/code/fun/slendy b/fun/code/fun/slendy new file mode 100755 index 0000000..766e06c --- /dev/null +++ b/fun/code/fun/slendy @@ -0,0 +1,35 @@ +#!/bin/sh + +initializeANSI() +{ + esc="" + + blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" + yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" + cyanf="${esc}[36m"; whitef="${esc}[37m" + + blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" + yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" + cyanb="${esc}[46m"; whiteb="${esc}[47m" + + boldon="${esc}[1m"; boldoff="${esc}[22m" + italicson="${esc}[3m"; italicsoff="${esc}[23m" + ulon="${esc}[4m"; uloff="${esc}[24m" + invon="${esc}[7m"; invoff="${esc}[27m" + + reset="${esc}[0m" +} + +initializeANSI + +cat << EOF + + ${reset}${blackf}| | | | |${reset} + ${redf}█ █${reset} ${blackf}|${reset} ${greenf}█ █${reset} ${blackf}|${reset} ${yellowf}█ █${reset} ${blackf}|${reset} ${bluef}█ █${reset} ${blackf}|${reset} ${purplef}█ █${reset} ${blackf}|${reset} ${cyanf}█ █${reset} + ${redf}███████${reset} ${blackf}|${reset} ${greenf}███████${reset} ${blackf}|${reset} ${yellowf}███████${reset} ${blackf}|${reset} ${bluef}███████${reset} ${blackf}|${reset} ${purplef}███████${reset} ${blackf}|${reset} ${cyanf}███████${reset} + ${redf}███${boldon}${redb}██${reset}${redf}█${boldon}${redb}██${reset}${redf}███${reset} ${blackf}|${reset} ${greenf}███${boldon}${greenb}██${reset}${greenf}█${boldon}${greenb}██${reset}${greenf}███${reset} ${blackf}|${reset} ${yellowf}███${boldon}${yellowb}██${reset}${yellowf}█${boldon}${yellowb}██${reset}${yellowf}███${reset} ${blackf}|${reset} ${bluef}███${boldon}${blueb}██${reset}${bluef}█${boldon}${blueb}██${reset}${bluef}███${reset} ${blackf}|${reset} ${purplef}███${boldon}${purpleb}██${reset}${purplef}█${boldon}${purpleb}██${reset}${purplef}███${reset} ${blackf}|${reset} ${cyanf}███${boldon}${cyanb}██${reset}${cyanf}█${boldon}${cyanb}██${reset}${cyanf}███${reset} + ${redf}████${boldon}${redb}█${reset}${redf}████${reset} ${blackf}|${reset} ${greenf}████${boldon}${greenb}█${reset}${greenf}████${reset} ${blackf}|${reset} ${yellowf}████${boldon}${yellowb}█${reset}${yellowf}████${reset} ${blackf}|${reset} ${bluef}████${boldon}${blueb}█${reset}${bluef}████${reset} ${blackf}|${reset} ${purplef}████${boldon}${purpleb}█${reset}${purplef}████${reset} ${blackf}|${reset} ${cyanf}████${boldon}${cyanb}█${reset}${cyanf}████${reset} + ${redf}█ █ ${boldon}█${reset} ${redf}█ █${reset} ${blackf}|${reset} ${greenf}█ █ ${boldon}█${reset} ${greenf}█ █${reset} ${blackf}|${reset} ${yellowf}█ █ ${boldon}█${reset} ${yellowf}█ █${reset} ${blackf}|${reset} ${bluef}█ █ ${boldon}█${reset} ${bluef}█ █${reset} ${blackf}|${reset} ${purplef}█ █ ${boldon}█${reset} ${purplef}█ █${reset} ${blackf}|${reset} ${cyanf}█ █ ${boldon}█${reset} ${cyanf}█ █${reset} + ${redf}█ █${reset} ${blackf}|${reset} ${greenf}█ █${reset} ${blackf}|${reset} ${yellowf}█ █${reset} ${blackf}|${reset} ${bluef}█ █${reset} ${blackf}|${reset} ${purplef}█ █${reset} ${blackf}|${reset} ${cyanf}█ █${reset} + ${blackf}| | | | |${reset} +EOF \ No newline at end of file diff --git a/git/.gitconfig b/git/.gitconfig new file mode 100644 index 0000000..c6e923f --- /dev/null +++ b/git/.gitconfig @@ -0,0 +1,13 @@ +[user] + name = xero + email = x@xero.nu +[credential] + helper = cache +[alias] + graph = log --graph --color --pretty=format:"%C(yellow)%H%C(green)%d%C(reset)%n%x20%cd%n%x20%cn%x20(%ce)%n%x20%s%n" + stat = status -sb + last = log -1 --stat + unstage = reset HEAD -- + cached = diff --cached +[color] + ui = auto diff --git a/herbstluftwm/.config/herbstluftwm/autostart b/herbstluftwm/.config/herbstluftwm/autostart new file mode 100755 index 0000000..db83e85 --- /dev/null +++ b/herbstluftwm/.config/herbstluftwm/autostart @@ -0,0 +1,187 @@ +#!/bin/bash +# +# ██ ██ ██ ██ ████ ██ +# ░██ ░██ ░██ ░██ ░██░ ░██ +# ░██ █████ ██████░██ ██████ ██████ ░██ ██ ██ ██████ ██████ +# ░██████ ██░░░██░░██░░█░██████ ██░░░░ ░░░██░ ░██░██ ░██░░░██░ ░░░██░ +# ░██░░░██░███████ ░██ ░ ░██░░░██░░█████ ░██ ░██░██ ░██ ░██ ░██ +# ░██ ░██░██░░░░ ░██ ░██ ░██ ░░░░░██ ░██ ░██░██ ░██ ░██ ░██ +# ░██ ░██░░██████░███ ░██████ ██████ ░░██ ███░░██████ ░██ ░░██ +# ░░ ░░ ░░░░░░ ░░░ ░░░░░ ░░░░░░ ░░ ░░░ ░░░░░░ ░░ ░░ + +hc() { + herbstclient "$@" +} + +hc emit_hook reload + +# solid background +#xsetroot -solid '#5A8E3A' + +# remove all existing keybindings +hc keyunbind --all + +# close tray if reloading +killall stalonetray +killall conky + +# gap counter +echo 10 > /tmp/herbstluftwm-gap + +# keybindings +Mod=Mod4 +Alt=Mod1 + +# run menu +hc keybind $Mod-w spawn dmenu_run -nb '#222222' -nf '#bcbcbc' -sb '#6A8C8C' -sf '#101010' -i -fn '-Gohu-GohuFont-Medium-R-Normal' +hc keybind $Mod-r spawn dmenu_run -nb '#222222' -nf '#bcbcbc' -sb '#6A8C8C' -sf '#101010' -i -fn '-Gohu-GohuFont-Medium-R-Normal' +# toggle touchpad +hc keybind $Mod-m spawn bash /home/xero/code/sys/toggle-touchpad +# dynamic window gap +hc keybind $Mod-9 spawn bash /home/xero/code/sys/herbstluftwm-remove-gap +hc keybind $Mod-0 spawn bash /home/xero/code/sys/herbstluftwm-add-gap + +hc keybind $Mod-Shift-q quit +hc keybind $Mod-Shift-r reload +hc keybind $Mod-Shift-c close +hc keybind $Mod-Return spawn urxvtc + +# basic movement +# focusing clients +hc keybind $Mod-Left focus left +hc keybind $Mod-Down focus down +hc keybind $Mod-Up focus up +hc keybind $Mod-Right focus right +hc keybind $Mod-h focus left +hc keybind $Mod-j focus down +hc keybind $Mod-k focus up +hc keybind $Mod-l focus right + +# moving clients +hc keybind $Mod-Shift-Left shift left +hc keybind $Mod-Shift-Down shift down +hc keybind $Mod-Shift-Up shift up +hc keybind $Mod-Shift-Right shift right +hc keybind $Mod-Shift-h shift left +hc keybind $Mod-Shift-j shift down +hc keybind $Mod-Shift-k shift up +hc keybind $Mod-Shift-l shift right + +# splitting frames +# create an empty frame at the specified direction +hc keybind $Mod-u split bottom 0.5 #row +hc keybind $Mod-o split right 0.5 #column +# let the current frame explode into subframes +hc keybind $Mod-Control-space split explode + +# resizing frames +resizestep=0.05 +hc keybind $Mod-Control-h resize left +$resizestep +hc keybind $Mod-Control-j resize down +$resizestep +hc keybind $Mod-Control-k resize up +$resizestep +hc keybind $Mod-Control-l resize right +$resizestep +hc keybind $Mod-Control-Left resize left +$resizestep +hc keybind $Mod-Control-Down resize down +$resizestep +hc keybind $Mod-Control-Up resize up +$resizestep +hc keybind $Mod-Control-Right resize right +$resizestep + + +# tags +tag_names=( 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 ) +#tag_names=( {0..9} ) + +# set up normal tags +hc rename default "${tag_names[0]}" || true +for i in ${!tag_names[@]} ; do + hc add "${tag_names[$i]}" +done + +# cycle through tags +hc keybind $Mod-$Alt-Left use_index -1 --skip-visible +hc keybind $Mod-$Alt-Right use_index +1 --skip-visible + +# layouting +hc keybind $Mod-x remove +hc keybind $Mod-space cycle_layout 1 +hc keybind $Mod-Shift-space cycle_layout -1 +#hc keybind $Mod-s floating toggle +hc keybind $Mod-f fullscreen toggle +hc keybind $Mod-p pseudotile toggle + +# mouse +hc mouseunbind --all +hc mousebind $Mod-Button1 move +hc mousebind $Mod-Button2 zoom +hc mousebind $Mod-Button3 resize + +# focus +hc keybind $Mod-BackSpace cycle_monitor +hc keybind $Mod-Tab cycle_all +1 +hc keybind $Mod-Shift-Tab cycle_all -1 +hc keybind $Mod-n cycle +hc keybind $Mod-i jumpto urgent + + +# theme +hc attr theme.tiling.reset 1 +hc attr theme.floating.reset 1 +hc set frame_border_active_color '#222222' +hc set frame_border_normal_color '#222222' +hc set frame_bg_normal_color '#000000' +hc set frame_bg_active_color '#6A8C8C' +hc set frame_border_width 0 +hc set always_show_frame 0 +hc set frame_bg_transparent 1 +hc set frame_transparent_width 0 +hc set frame_gap 8 + +# hc attr theme.active.color '#222222' +#hc attr theme.active.color '#666666' +hc attr theme.active.color '#6A8C8C' +hc attr theme.normal.color '#000000' +hc attr theme.urgent.color '#6A8C8C' +hc attr theme.inner_width 0 +hc attr theme.inner_color black +hc attr theme.border_width 3 +hc attr theme.floating.border_width 3 +hc attr theme.floating.outer_width 1 +hc attr theme.floating.outer_color black +hc attr theme.active.inner_color '#222222' +hc attr theme.active.outer_color '#6A8C8C' +hc attr theme.background_color '#141414' + +hc set window_gap 10 +hc set frame_padding 0 +hc set smart_window_surroundings 0 +hc set smart_frame_surroundings 1 +hc set mouse_recenter_gap 0 + +# rules +hc unrule -F +#hc rule class=XTerm tag=3 # move all xterms to tag 3 +hc rule focus=on # normally focus new clients +#hc rule focus=off # normally do not focus new clients +# give focus to most common terminals +#hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on +hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on +hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on +hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off + +# unlock, just to be sure +hc unlock + +herbstclient set tree_style '╾│ ├└╼─┐' + +# do multi monitor setup here, e.g.: +# hc set_monitors 1280x1024+0+0 1280x1024+1280+0 +# or simply: +# hc detect_monitors + +# find the panel +#panel=~/.config/herbstluftwm/conkypanel +panel=~/.config/herbstluftwm/panel.sh +[ -x "$panel" ] || panel=/etc/xdg/herbstluftwm/panel.sh +for monitor in $(herbstclient list_monitors | cut -d: -f1) ; do + # start it on each monitor + "$panel" $monitor & +done diff --git a/herbstluftwm/.config/herbstluftwm/conkypanel b/herbstluftwm/.config/herbstluftwm/conkypanel new file mode 100755 index 0000000..2893da7 --- /dev/null +++ b/herbstluftwm/.config/herbstluftwm/conkypanel @@ -0,0 +1,24 @@ +#!/bin/bash +hc() { "${herbstclient_command[@]:-herbstclient}" "$@" ;} +monitor=${1:-0} +geometry=( $(herbstclient monitor_rect "$monitor") ) +if [ -z "$geometry" ] ;then + echo "Invalid monitor $monitor" + exit 1 +fi +# geometry has the format W H X Y +x=${geometry[0]} +y=${geometry[1]} +panel_width=${geometry[2]} +panel_height=16 +#font="-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*" +font="-Gohu-GohuFont-Medium-R-Normal--11-80-100-100-C-60-ISO10646-1" +bgcolor=$(hc get frame_border_normal_color) +fgcolor='#efefef' + +conky | dzen2 -w $panel_width -x $x -y $y -fn "$font" -h $panel_height \ + -e 'button3=;button4=exec:herbstclient use_index -1;button5=exec:herbstclient use_index +1' \ + -ta l -bg "$bgcolor" -fg "$fgcolor" & + +sleep 2 +stalonetray diff --git a/herbstluftwm/.config/herbstluftwm/panel.sh b/herbstluftwm/.config/herbstluftwm/panel.sh new file mode 100755 index 0000000..9a8928b --- /dev/null +++ b/herbstluftwm/.config/herbstluftwm/panel.sh @@ -0,0 +1,267 @@ +#!/bin/bash +# ██ ████ +# ░██ █░░░░█ +# ░██ ██████ █████ ███████ ░░ ░█ +# ██████░░░░██ ██░░░██░░██░░░██ ███ +# ██░░░██ ██ ░███████ ░██ ░██ █░░ +# ░██ ░██ ██ ░██░░░░ ░██ ░██ █░ +# ░░██████ ██████░░██████ ███ ░██░██████ +# ░░░░░░ ░░░░░░ ░░░░░░ ░░░ ░░ ░░░░░░ + +hc() { "${herbstclient_command[@]:-herbstclient}" "$@" ;} +monitor=${1:-0} +geometry=( $(herbstclient monitor_rect "$monitor") ) +if [ -z "$geometry" ] ;then + echo "Invalid monitor $monitor" + exit 1 +fi +# geometry has the format W H X Y +x=${geometry[0]} +y=${geometry[1]} +panel_width=${geometry[2]} +panel_height=16 +#font="-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*" +font="-Gohu-GohuFont-Medium-R-Normal--11-80-100-100-C-60-ISO10646-1" +#font2="-misc-stlarch-medium-r-normal--10-100-75-75-c-80-iso10646-1" + +bgcolor=$(hc get frame_border_normal_color) +selbg='#6A8C8C' +selfg='#101010' + +#### +# Try to find textwidth binary. +# In e.g. Ubuntu, this is named dzen2-textwidth. +if which textwidth &> /dev/null ; then + textwidth="textwidth"; +elif which dzen2-textwidth &> /dev/null ; then + textwidth="dzen2-textwidth"; +else + echo "This script requires the textwidth tool of the dzen2 project." + exit 1 +fi +#### +# true if we are using the svn version of dzen2 +# depending on version/distribution, this seems to have version strings like +# "dzen-" or "dzen-x.x.x-svn" +if dzen2 -v 2>&1 | head -n 1 | grep -q '^dzen-\([^,]*-svn\|\),'; then + dzen2_svn="true" +else + dzen2_svn="" +fi + +if awk -Wv 2>/dev/null | head -1 | grep -q '^mawk'; then + # mawk needs "-W interactive" to line-buffer stdout correctly + # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593504 + uniq_linebuffered() { + awk -W interactive '$0 != l { print ; l=$0 ; fflush(); }' "$@" + } +else + # other awk versions (e.g. gawk) issue a warning with "-W interactive", so + # we don't want to use it there. + uniq_linebuffered() { + awk '$0 != l { print ; l=$0 ; fflush(); }' "$@" + } +fi + +hc pad $monitor $panel_height + +{ + ### Event generator ### + # based on different input data (mpc, date, hlwm hooks, ...) this generates events, formed like this: + # \t [...] + # e.g. + # date ^fg(#efefef)18:33^fg(#909090), 2013-10-^fg(#efefef)29 + + #mpc idleloop player & + while true ; do + # "date" output is checked once a second, but an event is only + # generated if the output changed compared to the previous run. + date +$'date\t^bg(#666666) ^fg(#d9d9d9)^i(/usr/share/icons/stlarch_icons/clock1.xbm) ^fg(#efefef)%H:%M^fg(#bcbcbc) %Y-%m-^fg(#efefef)%d ' + sleep 1 || break + done > >(uniq_linebuffered) & + childpid=$! + hc --idle + kill $childpid +} 2> /dev/null | { + IFS=$'\t' read -ra tags <<< "$(hc tag_status $monitor)" + visible=true + date="" + windowtitle="" + while true ; do + + ### Output ### + # This part prints dzen data based on the _previous_ data handling run, + # and then waits for the next event to happen. + + bordercolor="#26221C"tags + separator=" " + xicon="#d9d9d9" + xtitle="#bcbcbc" + xfg="#ffffff" + xext="#909090" + cool="#6A8C8C" + hot="#990000" + # draw tags + for i in "${tags[@]}" ; do + case ${i:0:1} in + '#') + echo -n "^bg($selbg)^fg($selfg)" + ;; + '+') + echo -n "^bg(#9CA668)^fg(#141414)" + ;; + ':') + echo -n "^bg(#333333)^fg(#ffffff)" + ;; + '!') + echo -n "^bg(#FF0675)^fg(#141414)" + ;; + *) + echo -n "^bg(#111111)^fg($xtitle)" + ;; + esac + if [ ! -z "$dzen2_svn" ] ; then + # clickable tags if using SVN dzen + echo -n "^ca(1,\"${herbstclient_command[@]:-herbstclient}\" " + echo -n "focus_monitor \"$monitor\" && " + echo -n "\"${herbstclient_command[@]:-herbstclient}\" " + #echo -n "use \"${i:1}\") ^i(/usr/share/icons/stlarch_icons/diamond1.xbm) ^ca()" + echo -n "use \"${i:1}\") ${i:1} ^ca()" + else + # non-clickable tags if using older dzen + echo -n " ${i:1} " + fi + done + echo -n "$separator" + #echo -n "^bg()^fg() ${windowtitle//^/^^}" + temp=`sensors | awk '/Core\ 0/ {gsub(/\+/,"",$3); gsub(/\..+/,"",$3); print $3}'` + # temp heat colorizing + if (($temp<=50)) + then + temp="^fg($cool)$temp" + elif (($temp>50 && $temp<=75)) + then + temp="^fg($xfg)$temp" + elif (($temp>76)) + then + temp="^fg($hot)$temp" + else + temp="^fg($xfg)$temp" + fi + temp="^fg($xicon)^i(/usr/share/icons/stlarch_icons/temp1.xbm) ^fg($xtitle)temp $temp^fg($xext)°c" + #up time + upSeconds=`cat /proc/uptime`; + upSeconds=${upSeconds%%.*}; + let secs=$((${upSeconds}%60)) + let mins=$((${upSeconds}/60%60)) + let hours=$((${upSeconds}/3600%24)) + let days=$((${upSeconds}/86400)) + uptime="^fg($xicon)^i(/usr/share/icons/stlarch_icons/uparrow1.xbm) ^fg($xtitle)uptime ^fg($xfg)${days}^fg($xext)d ^fg($xfg)${hours}^fg($xext)h ^fg($xfg)${mins}^fg($xext)m" + #pacman updates + updates=`pacman -Quq | wc -l` + updates="^fg($xicon)^i(/usr/share/icons/stlarch_icons/pacman1.xbm) ^fg($xtitle)pacman ^fg($xfg)$updates" + #cpu + cpu=`mpstat | awk '$3 ~ /CPU/ { for(i=1;i<=NF;i++) { if ($i ~ /%idle/) field=i } } $3 ~ /all/ { print 100 - $field }'` + cpu="^fg($xicon)^i(/usr/share/icons/stlarch_icons/cpu1.xbm) ^fg($xtitle)cpu ^fg($xfg)$cpu^fg($xext)%" + #memory + mem=`free -om | awk '/Mem:/ {print int(($3 - $7 - $6) / $2 * 100)}'` + mem="^fg($xicon)^i(/usr/share/icons/stlarch_icons/mem1.xbm) ^fg($xtitle)ram ^fg($xfg)$mem^fg($xext)%" + #battery + bat=`cat /sys/class/power_supply/BAT1/capacity` + batstat=`cat /sys/class/power_supply/BAT1/status` + if (($batstat=='Charging')) + then + batico="^i(/usr/share/icons/stlarch_icons/ac10.xbm)" + else + batico="^i(/usr/share/icons/stlarch_icons/batt5full.xbm)" + fi + bat="^fg($xicon)$batico ^fg($xtitle)battery ^fg($xfg)$bat^fg($xext)%" + #cyberspace + # read lo int1 int2 <<< `ip link | sed -n 's/^[0-9]: \(.*\):.*$/\1/p'` + # if iwconfig $int1 >/dev/null 2>&1; then + # wifi=$int1 + # eth0=$int2 + # else + # wifi=$int2 + # eth0=$int1 + # fi + # ip link show $eth0 | grep 'state UP' >/dev/null && int=$eth0 || int=$wifi + # if (($int==$wifi)) + # then + # net="^fg($xicon)^i(/usr/share/icons/stlarch_icons/wireless5.xbm) ^fg($xtitle)network ^fg($xfg)wifi" + # elif (($int==$eth0)) + # then + # net="^fg($xicon)^i(/usr/share/icons/stlarch_icons/ac5.xbm) ^fg($xtitle)network ^fg($xfg)ethernet" + # else + # net="^fg($xicon)^i(/usr/share/icons/stlarch_icons/dice5.xbm) ^fg($xtitle)network ^fg($xfg)disconnected" + # fi + #combine + right="^bg(#333333) $cpu $separator $mem $separator $temp $separator $bat $separator $updates $separator $uptime ^bg(#444444) $date $separator $separator" + + right_text_only=$(echo -n "$right" | sed 's.\^[^(]*([^)]*)..g') + # get width of right aligned text.. and add some space.. + width=$($textwidth "$font" "$right_text_only ") + echo -n "^pa($(($panel_width - $width)))$right" + echo + + ### Data handling ### + # This part handles the events generated in the event loop, and sets + # internal variables based on them. The event and its arguments are + # read into the array cmd, then action is taken depending on the event + # name. + # "Special" events (quit_panel/togglehidepanel/reload) are also handled + # here. + + # wait for next event + IFS=$'\t' read -ra cmd || break + # find out event origin + case "${cmd[0]}" in + tag*) + #echo "resetting tags" >&2 + IFS=$'\t' read -ra tags <<< "$(hc tag_status $monitor)" + ;; + date) + #echo "resetting date" >&2 + date="${cmd[@]:1}" + ;; + quit_panel) + exit + ;; + togglehidepanel) + currentmonidx=$(hc list_monitors | sed -n '/\[FOCUS\]$/s/:.*//p') + if [ "${cmd[1]}" -ne "$monitor" ] ; then + continue + fi + if [ "${cmd[1]}" = "current" ] && [ "$currentmonidx" -ne "$monitor" ] ; then + continue + fi + echo "^togglehide()" + if $visible ; then + visible=false + hc pad $monitor 0 + else + visible=true + hc pad $monitor $panel_height + fi + ;; + reload) + exit + ;; + focus_changed|window_title_changed) + windowtitle="${cmd[@]:2}" + ;; + #player) + # ;; + esac + done + + ### dzen2 ### + # After the data is gathered and processed, the output of the previous block + # gets piped to dzen2. + +} 2> /dev/null | dzen2 -w $panel_width -x $x -y $y -fn "$font" -h $panel_height \ + -e 'button3=;button4=exec:herbstclient use_index -1;button5=exec:herbstclient use_index +1' \ + -ta l -bg "$bgcolor" -fg '#efefef' & + +sleep 2 +stalonetray diff --git a/herbstluftwm/.xinitrc b/herbstluftwm/.xinitrc new file mode 100644 index 0000000..2c96f83 --- /dev/null +++ b/herbstluftwm/.xinitrc @@ -0,0 +1,75 @@ +#!/bin/sh +# +# ██ ██ ██ +# ░░ ░░ ░██ +# ██ ██ ██ ███████ ██ ██████ ██████ █████ +# ░░██ ██ ░██░░██░░░██░██░░░██░ ░░██░░█ ██░░░██ +# ░░███ ░██ ░██ ░██░██ ░██ ░██ ░ ░██ ░░ +# ██░██ ░██ ░██ ░██░██ ░██ ░██ ░██ ██ +# ██ ░░██░██ ███ ░██░██ ░░██ ░███ ░░█████ +# ░░ ░░ ░░ ░░░ ░░ ░░ ░░ ░░░ ░░░░░ +# +# ▓▓▓▓▓▓▓▓▓▓ +# ░▓ author ▓ xero +# ░▓ code ▓ http://code.xero.nu/dotfiles +# ░▓ mirror ▓ http://git.io/.files +# ░▓▓▓▓▓▓▓▓▓▓ +# ░░░░░░░░░░ + +# merge custom x resources +xrdb -merge "${HOME}/.Xdefaults" & + +# start the terminal emulator daemon +urxvtd -q -f -o & + +# keyring +gnome-keyring-daemon & + +# wifi +/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & +(sleep 2s && nm-applet --sm-disable) & + +# power management +(sleep 2s && xfce4-power-manager) & + +# sound mixer +(sleep 2s && pnmixer) & + +# volume keys daemon +(sleep 2s && xfce4-volumed) & + +# compositing manager +compton -b --config ~/.config/compton.conf & + +# start thunar daemon +thunar --daemon & + +# wallpaper +nitrogen --restore & + +# configure touchpad +syndaemon -i 0.8 -d & +if egrep -iq 'touchpad' /proc/bus/input/devices; then + synclient VertEdgeScroll=0 & + synclient TapButton1=1 & + synclient HorizTwoFingerScroll=1 & +fi + +# clipboard manager +(sleep 3s && clipit) & + +# keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate. +xset r rate 250 25 & + +# disable system beep +xset b off & + +# start the rock +mpd & + +# setup fonts +xset +fp ~/.fonts & +xset fp rehash & + +# ░▒▓█ herbstluft █▓▒░ +exec herbstluftwm --locked diff --git a/herbstluftwm/.zprofile b/herbstluftwm/.zprofile new file mode 100644 index 0000000..3435b2c --- /dev/null +++ b/herbstluftwm/.zprofile @@ -0,0 +1 @@ +[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx diff --git a/herbstluftwm/code/sys/herbstluftwm-add-gap b/herbstluftwm/code/sys/herbstluftwm-add-gap new file mode 100755 index 0000000..08b5a03 --- /dev/null +++ b/herbstluftwm/code/sys/herbstluftwm-add-gap @@ -0,0 +1,9 @@ +#!/bin/bash +filename="/tmp/herbstluftwm-gap" +while read -r line +do + gap=$line + gap=$((gap+10)) + herbstclient set window_gap $gap + echo $gap > $filename +done < "$filename" diff --git a/herbstluftwm/code/sys/herbstluftwm-remove-gap b/herbstluftwm/code/sys/herbstluftwm-remove-gap new file mode 100755 index 0000000..65c397a --- /dev/null +++ b/herbstluftwm/code/sys/herbstluftwm-remove-gap @@ -0,0 +1,11 @@ +#!/bin/bash +filename="/tmp/herbstluftwm-gap" +while read -r line +do + gap=$line + if [ "$gap" -ge 0 ]; then + gap=$((gap-10)) + herbstclient set window_gap $gap + fi + echo $gap > $filename +done < "$filename" diff --git a/herbstluftwm/preview.png b/herbstluftwm/preview.png new file mode 100644 index 0000000..76f23f9 Binary files /dev/null and b/herbstluftwm/preview.png differ diff --git a/mc/.config/mc/ini b/mc/.config/mc/ini new file mode 100644 index 0000000..8e00a34 --- /dev/null +++ b/mc/.config/mc/ini @@ -0,0 +1,162 @@ +# ██████████ █████ +# ░░██░░██░░██ ██░░░██ +# ░██ ░██ ░██░██ ░░ +# ░██ ░██ ░██░██ ██ +# ███ ░██ ░██░░█████ +# ░░░ ░░ ░░ ░░░░░ +# +# ▓▓▓▓▓▓▓▓▓▓ +# ░▓ author ▓ xero +# ░▓ code ▓ http://code.xero.nu/dotfiles +# ░▓ mirror ▓ http://github.com/xero/dotfiles +# ░▓▓▓▓▓▓▓▓▓▓ +# ░░░░░░░░░░ +# + +[Midnight-Commander] +verbose=1 +pause_after_run=1 +shell_patterns=1 +auto_save_setup=1 +preallocate_space=0 +auto_menu=0 +use_internal_view=1 +use_internal_edit=0 +clear_before_exec=1 +confirm_delete=1 +confirm_overwrite=1 +confirm_execute=0 +confirm_history_cleanup=1 +confirm_exit=1 +confirm_directory_hotlist_delete=1 +safe_delete=0 +mouse_repeat_rate=100 +double_click_speed=250 +use_8th_bit_as_meta=0 +confirm_view_dir=0 +mouse_move_pages_viewer=1 +mouse_close_dialog=0 +fast_refresh=0 +drop_menus=0 +wrap_mode=1 +old_esc_mode=0 +old_esc_mode_timeout=1000000 +cd_symlinks=1 +show_all_if_ambiguous=0 +max_dirt_limit=10 +use_file_to_guess_type=1 +alternate_plus_minus=0 +only_leading_plus_minus=1 +show_output_starts_shell=0 +xtree_mode=0 +num_history_items_recorded=60 +file_op_compute_totals=1 +classic_progressbar=1 +vfs_timeout=60 +ftpfs_directory_timeout=900 +use_netrc=1 +ftpfs_retry_seconds=30 +ftpfs_always_use_proxy=0 +ftpfs_use_passive_connections=1 +ftpfs_use_passive_connections_over_proxy=0 +ftpfs_use_unix_list_options=1 +ftpfs_first_cd_then_ls=1 +fish_directory_timeout=900 +editor_tab_spacing=8 +editor_word_wrap_line_length=72 +editor_fill_tabs_with_spaces=0 +editor_return_does_auto_indent=0 +editor_backspace_through_tabs=0 +editor_fake_half_tabs=1 +editor_option_save_mode=0 +editor_option_save_position=1 +editor_option_auto_para_formatting=0 +editor_option_typewriter_wrap=0 +editor_edit_confirm_save=1 +editor_syntax_highlighting=1 +editor_persistent_selections=1 +editor_cursor_beyond_eol=0 +editor_visible_tabs=1 +editor_visible_spaces=1 +editor_line_state=0 +editor_simple_statusbar=0 +editor_check_new_line=0 +editor_show_right_margin=0 +editor_group_undo=0 +nice_rotating_dash=1 +mcview_remember_file_position=0 +auto_fill_mkdir_name=1 +copymove_persistent_attr=1 +select_flags=6 +editor_backup_extension=~ +mcview_eof= +ignore_ftp_chattr_errors=true +keymap=mc.keymap +skin=default + +editor_drop_selection_on_copy=1 +editor_cursor_after_inserted_block=0 +editor_ask_filename_before_edit=0 +editor_filesize_threshold=64M +editor_stop_format_chars=-+*\\,.;:&> + +[Layout] +message_visible=0 +keybar_visible=1 +xterm_title=0 +output_lines=0 +command_prompt=0 +menubar_visible=1 +free_space=1 +horizontal_split=0 +vertical_equal=1 +left_panel_size=45 +horizontal_equal=1 +top_panel_size=1 + +[Misc] +timeformat_recent=%b %e %H:%M +timeformat_old=%b %e %Y +ftp_proxy_host=gate +ftpfs_password=anonymous@ +display_codepage=UTF-8 +source_codepage=Other_8_bit +autodetect_codeset= +clipboard_store= +clipboard_paste= + +[Colors] +#base_color=linux:normal=white,black:marked=yellow,black:input=,green:menu=black:menusel=white:menuhot=red,:menuhotsel=black,red:dfocus=white,black:dhotnormal=white,black:dhotfocus=white,black:executable=,black:directory=white,black:link=white,black:device=white,black:special=white,black:core=,black:stalelink=red,black:editnormal=white,black +base_color=normal=gray,default:selected=black,cyan:marked=cyan,black:markselect=cyan,blue:errors=white,red:input=white,default:reverse=black,gray:menu=cyan,black:menusel=cyan,black:menuhot=cyan,black:menuhotsel=cyan,grey:gauge=black,cyan:dnormal=cyan,black:dfocus=black,gray:dhotnormal=black,cyan:dhotfocus=lightcyan,black:helpnormal=cyan,black:helpbold=white,blue:helpitalic=brightgreen,blue:helpslink=black,blue:helplink=yellow,blue:executable=brightgreen,default:directory=brightblue,default:link=gray,default:special=magenta,default:device=green,default:core=brightred,default:stalelink=brown,cyan:viewunderline=lightgray,cyan:editnormal=lightgray,cyan:editbold=white,cyan:editmarked=black,gray +xterm= +color_terminals= + + +rxvt-unicode-256color= + +[Panels] +show_mini_info=true +kilobyte_si=false +mix_all_files=false +show_backups=true +show_dot_files=true +fast_reload=false +fast_reload_msg_shown=false +mark_moves_down=true +reverse_files_only=true +auto_save_setup_panels=false +navigate_with_arrows=false +panel_scroll_pages=true +mouse_move_pages=true +filetype_mode=true +permission_mode=false +torben_fj_mode=false +quick_search_mode=2 + +simple_swap=false + +[Panelize] +Find *.orig after patching=find . -name \\*.orig -print +Find SUID and SGID programs=find . \\( \\( -perm -04000 -a -perm +011 \\) -o \\( -perm -02000 -a -perm +01 \\) \\) -print +Find rejects after patching=find . -name \\*.rej -print +Modified git files=git ls-files --modified diff --git a/mc/.config/mc/panels.ini b/mc/.config/mc/panels.ini new file mode 100644 index 0000000..ba3ff97 --- /dev/null +++ b/mc/.config/mc/panels.ini @@ -0,0 +1,15 @@ +# ██████████ █████ +# ░░██░░██░░██ ██░░░██ +# ░██ ░██ ░██░██ ░░ +# ░██ ░██ ░██░██ ██ +# ███ ░██ ░██░░█████ +# ░░░ ░░ ░░ ░░░░░ +# +# ▓▓▓▓▓▓▓▓▓▓ +# ░▓ author ▓ xero +# ░▓ code ▓ http://code.xero.nu/dotfiles +# ░▓ mirror ▓ http://github.com/xero/dotfiles +# ░▓▓▓▓▓▓▓▓▓▓ +# ░░░░░░░░░░ +# + diff --git a/mpd/.config/mpd/mpd.conf b/mpd/.config/mpd/mpd.conf new file mode 100755 index 0000000..1fab2fe --- /dev/null +++ b/mpd/.config/mpd/mpd.conf @@ -0,0 +1,437 @@ +# An example configuration file for MPD +# See the mpd.conf man page for a more detailed description of each parameter. + + +# Files and directories ####################################################### +# +# This setting controls the top directory which MPD will search to discover the +# available audio files and add them to the daemon's online database. This +# setting defaults to the XDG directory, otherwise the music directory will be +# be disabled and audio files will only be accepted over ipc socket (using +# file:// protocol) or streaming files over an accepted protocol. +# +music_directory "/home/xero/music" +# +# This setting sets the MPD internal playlist directory. The purpose of this +# directory is storage for playlists created by MPD. The server will use +# playlist files not created by the server but only if they are in the MPD +# format. This setting defaults to playlist saving being disabled. +# +playlist_directory "/home/xero/.config/mpd/playlists" +# +# This setting sets the location of the MPD database. This file is used to +# load the database at server start up and store the database while the +# server is not up. This setting defaults to disabled which will allow +# MPD to accept files over ipc socket (using file:// protocol) or streaming +# files over an accepted protocol. +# +db_file "/home/xero/.config/mpd/tag_cache" +# +# These settings are the locations for the daemon log files for the daemon. +# These logs are great for troubleshooting, depending on your log_level +# settings. +# +# The special value "syslog" makes MPD use the local syslog daemon. This +# setting defaults to logging to syslog, otherwise logging is disabled. +# +log_file "/home/xero/.config/mpd/mpd.log" +# +# This setting sets the location of the file which stores the process ID +# for use of mpd --kill and some init scripts. This setting is disabled by +# default and the pid file will not be stored. +# +pid_file "/home/xero/.config/mpd/mpd.pid" +# +# This setting sets the location of the file which contains information about +# most variables to get MPD back into the same general shape it was in before +# it was brought down. This setting is disabled by default and the server +# state will be reset on server start up. +# +state_file "/home/xero/.config/mpd/mpdstate" +# +# The location of the sticker database. This is a database which +# manages dynamic information attached to songs. +# +sticker_file "/home/xero/.config/mpd/sticker.sql" +# +############################################################################### + + +# General music daemon options ################################################ +# +# This setting specifies the user that MPD will run as. MPD should never run as +# root and you may use this setting to make MPD change its user ID after +# initialization. This setting is disabled by default and MPD is run as the +# current user. +# +#user "mpd" +# +# This setting specifies the group that MPD will run as. If not specified +# primary group of user specified with "user" setting will be used (if set). +# This is useful if MPD needs to be a member of group such as "audio" to +# have permission to use sound card. +# +#group "nogroup" +# +# This setting sets the address for the daemon to listen on. Careful attention +# should be paid if this is assigned to anything other then the default, any. +# This setting can deny access to control of the daemon. Choose any if you want +# to have mpd listen on every address +# +# For network +bind_to_address "127.0.0.1" +# +# And for Unix Socket +#bind_to_address "/var/run/mpd/socket" +# +# This setting is the TCP port that is desired for the daemon to get assigned +# to. +#8 +port "6600" +# +# This setting controls the type of information which is logged. Available +# setting arguments are "default", "secure" or "verbose". The "verbose" setting +# argument is recommended for troubleshooting, though can quickly stretch +# available resources on limited hardware storage. +# +#log_level "default" +# +# If you have a problem with your MP3s ending abruptly it is recommended that +# you set this argument to "no" to attempt to fix the problem. If this solves +# the problem, it is highly recommended to fix the MP3 files with vbrfix +# (available as vbrfix in the debian archive), at which +# point gapless MP3 playback can be enabled. +# +gapless_mp3_playback "yes" +# +# This setting enables MPD to create playlists in a format usable by other +# music players. +# +#save_absolute_paths_in_playlists "no" +# +# This setting defines a list of tag types that will be extracted during the +# audio file discovery process. Optionally, 'comment' can be added to this +# list. +# +#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc" +# +# This setting enables automatic update of MPD's database when files in +# music_directory are changed. +# +#auto_update "yes" +# +# Limit the depth of the directories being watched, 0 means only watch +# the music directory itself. There is no limit by default. +# +#auto_update_depth "3" +# +############################################################################### + + +# Symbolic link behavior ###################################################### +# +# If this setting is set to "yes", MPD will discover audio files by following +# symbolic links outside of the configured music_directory. +# +#follow_outside_symlinks "yes" +# +# If this setting is set to "yes", MPD will discover audio files by following +# symbolic links inside of the configured music_directory. +# +#follow_inside_symlinks "yes" +# +############################################################################### + + +# Zeroconf / Avahi Service Discovery ########################################## +# +# If this setting is set to "yes", service information will be published with +# Zeroconf / Avahi. +# +#zeroconf_enabled "yes" +# +# The argument to this setting will be the Zeroconf / Avahi unique name for +# this MPD server on the network. +# +#zeroconf_name "Music Player" +# +############################################################################### + + +# Permissions ################################################################# +# +# If this setting is set, MPD will require password authorization. The password +# can setting can be specified multiple times for different password profiles. +# +#password "password@read,add,control,admin" +# +# This setting specifies the permissions a user has who has not yet logged in. +# +#default_permissions "read,add,control,admin" +# +############################################################################### + + +# Input ####################################################################### +# + +input { + plugin "curl" +# proxy "proxy.isp.com:8080" +# proxy_user "user" +# proxy_password "password" +} + +# +############################################################################### + +# Audio Output ################################################################ +# +# MPD supports various audio output types, as well as playing through multiple +# audio outputs at the same time, through multiple audio_output settings +# blocks. Setting this block is optional, though the server will only attempt +# autodetection for one sound card. +# +# See for examples of +# other audio outputs. +# +# An example of an ALSA output: +# +audio_output { + type "alsa" + name "My ALSA Device" + device "hw:0,0" # optional + format "44100:16:2" # optional + mixer_device "default" # optional + mixer_control "PCM" # optional + mixer_index "0" # optional +} +# +# visuializer +# +audio_output { + type "fifo" + name "my_fifo" + path "/tmp/mpd.fifo" + format "44100:16:2" +} +# +# An example of an OSS output: +# +#audio_output { +# type "oss" +# name "My OSS Device" +# device "/dev/dsp" # optional +# format "44100:16:2" # optional +# mixer_device "/dev/mixer" # optional +# mixer_control "PCM" # optional +#} +# +# An example of a shout output (for streaming to Icecast): +# +#audio_output { +# type "shout" +# encoding "ogg" # optional +# name "My Shout Stream" +# host "localhost" +# port "8000" +# mount "/mpd.ogg" +# password "hackme" +# quality "5.0" +# bitrate "128" +# format "44100:16:1" +# protocol "icecast2" # optional +# user "source" # optional +# description "My Stream Description" # optional +# genre "jazz" # optional +# public "no" # optional +# timeout "2" # optional +#} +# +# An example of a recorder output: +# +#audio_output { +# type "recorder" +# name "My recorder" +# encoder "vorbis" # optional, vorbis or lame +# path "/var/lib/mpd/recorder/mpd.ogg" +## quality "5.0" # do not define if bitrate is defined +# bitrate "128" # do not define if quality is defined +# format "44100:16:1" +#} +# +# An example of a httpd output (built-in HTTP streaming server): +# +#audio_output { +# type "httpd" +# name "My HTTP Stream" +# encoder "vorbis" # optional, vorbis or lame +# port "8000" +# quality "5.0" # do not define if bitrate is defined +# bitrate "128" # do not define if quality is defined +# format "44100:16:1" +#} +# +# An example of a pulseaudio output (streaming to a remote pulseaudio server) +# +#audio_output { +# type "pulse" +# name "My Pulse Output" +# server "remote_server" # optional +# sink "remote_server_sink" # optional +#} +# +## Example "pipe" output: +# +#audio_output { +# type "pipe" +# name "my pipe" +# command "aplay -f cd 2>/dev/null" +## Or if you're want to use AudioCompress +# command "AudioCompress -m | aplay -f cd 2>/dev/null" +## Or to send raw PCM stream through PCM: +# command "nc example.org 8765" +# format "44100:16:2" +#} +# +## An example of a null output (for no audio output): +# +#audio_output { +# type "null" +# name "My Null Output" +#} +# +# This setting will change all decoded audio to be converted to the specified +# format before being passed to the audio outputs. By default, this setting is +# disabled. +# +#audio_output_format "44100:16:2" +# +# If MPD has been compiled with libsamplerate support, this setting specifies +# the sample rate converter to use. Possible values can be found in the +# mpd.conf man page or the libsamplerate documentation. By default, this is +# setting is disabled. +# +#samplerate_converter "Fastest Sinc Interpolator" +# +############################################################################### + + +# Volume control mixer ######################################################## +# +# These are the global volume control settings. By default, this setting will +# be detected to the available audio output device, with preference going to +# hardware mixing. Hardware and software mixers for individual audio_output +# sections cannot yet be mixed. +# +# An example for controlling an ALSA, OSS or Pulseaudio mixer; If this +# setting is used other sound applications will be affected by the volume +# being controlled by MPD. +# +#mixer_type "hardware" +# +# An example for controlling all mixers through software. This will control +# all controls, even if the mixer is not supported by the device and will not +# affect any other sound producing applications. +# +mixer_type "software" +# +# This example will not allow MPD to touch the mixer at all and will disable +# all volume controls. +# +#mixer_type "disabled" +# +############################################################################### + + +# Normalization automatic volume adjustments ################################## +# +# This setting specifies the type of ReplayGain to use. This setting can have +# the argument "album" or "track". See for more +# details. This setting is disabled by default. +# +#replaygain "album" +# +# This setting sets the pre-amp used for files that have ReplayGain tags. By +# default this setting is disabled. +# +#replaygain_preamp "0" +# +# This setting enables on-the-fly normalization volume adjustment. This will +# result in the volume of all playing audio to be adjusted so the output has +# equal "loudness". This setting is disabled by default. +# +#volume_normalization "no" +# +############################################################################### + + +# MPD Internal Buffering ###################################################### +# +# This setting adjusts the size of internal decoded audio buffering. Changing +# this may have undesired effects. Don't change this if you don't know what you +# are doing. +# +#audio_buffer_size "2048" +# +# This setting controls the percentage of the buffer which is filled before +# beginning to play. Increasing this reduces the chance of audio file skipping, +# at the cost of increased time prior to audio playback. +# +#buffer_before_play "10%" +# +############################################################################### + + +# Resource Limitations ######################################################## +# +# These settings are various limitations to prevent MPD from using too many +# resources. Generally, these settings should be minimized to prevent security +# risks, depending on the operating resources. +# +#connection_timeout "60" +#max_connections "10" +#max_playlist_length "16384" +#max_command_list_size "2048" +#max_output_buffer_size "8192" +# +############################################################################### + + +# Character Encoding ########################################################## +# +# If file or directory names do not display correctly for your locale then you +# may need to modify this setting. After modification of this setting mpd +# --create-db must be run to change the database. +# +filesystem_charset "UTF-8" +# +# This setting controls the encoding that ID3v1 tags should be converted from. +# +id3v1_encoding "UTF-8" +# +############################################################################### +# SIDPlay decoder ############################################################# +# +# songlength_database: +# Location of your songlengths file, as distributed with the HVSC. +# The sidplay plugin checks this for matching MD5 fingerprints. +# See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq +# +# default_songlength: +# This is the default playing time in seconds for songs not in the +# songlength database, or in case you're not using a database. +# A value of 0 means play indefinitely. +# +# filter: +# Turns the SID filter emulation on or off. +# +#decoder { +# plugin "sidplay" +# songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt" +# default_songlength "120" +# filter "true" +#} +# +############################################################################### + diff --git a/mpd/.config/mpd/mpd.db b/mpd/.config/mpd/mpd.db new file mode 100755 index 0000000..8b13789 --- /dev/null +++ b/mpd/.config/mpd/mpd.db @@ -0,0 +1 @@ + diff --git a/mpd/.config/mpd/mpd.fifo b/mpd/.config/mpd/mpd.fifo new file mode 100755 index 0000000..e69de29 diff --git a/mpd/.config/mpd/mpd.log b/mpd/.config/mpd/mpd.log new file mode 100755 index 0000000..8b13789 --- /dev/null +++ b/mpd/.config/mpd/mpd.log @@ -0,0 +1 @@ + diff --git a/mpd/.config/mpd/mpd.pid b/mpd/.config/mpd/mpd.pid new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/mpd/.config/mpd/mpd.pid @@ -0,0 +1 @@ + diff --git a/mpd/.config/mpd/mpdstate b/mpd/.config/mpd/mpdstate new file mode 100755 index 0000000..8b13789 --- /dev/null +++ b/mpd/.config/mpd/mpdstate @@ -0,0 +1 @@ + diff --git a/mpd/.config/mpd/playlists/all.m3u b/mpd/.config/mpd/playlists/all.m3u new file mode 100644 index 0000000..bb1b089 --- /dev/null +++ b/mpd/.config/mpd/playlists/all.m3u @@ -0,0 +1,145 @@ +black.wizard/06. Kill the City.mp3 +black.wizard/05. Winds of Helliwell (Acoustic).mp3 +black.wizard/07. Black Fog.mp3 +black.wizard/03. Waves.mp3 +black.wizard/02. Evergreen.mp3 +black.wizard/01. Long Way Home.mp3 +black.wizard/04. Drugs.mp3 +brimstone.coven/I/04-Brimstone Coven _ Son Of The Morning.mp3 +brimstone.coven/I/03-Brimstone Coven _ The Ancients.mp3 +brimstone.coven/I/01-Brimstone Coven _ I n t r o d u c t i o n.mp3 +brimstone.coven/I/05-Brimstone Coven _ LoSt in the oDyssey.mp3 +brimstone.coven/I/06-Brimstone Coven _ Children Of The Sun.mp3 +brimstone.coven/I/02-Brimstone Coven _ We Are Forever.mp3 +brimstone.coven/I/07-Brimstone Coven _ O u t r o.mp3 +brimstone.coven/II/06-Brimstone Coven _ Lord And Master.mp3 +brimstone.coven/II/08-Brimstone Coven _ The Seance.mp3 +brimstone.coven/II/01-Brimstone Coven _ Cosmic Communion.mp3 +brimstone.coven/II/07-Brimstone Coven _ Vying.mp3 +brimstone.coven/II/05-Brimstone Coven _ The Grave.mp3 +brimstone.coven/II/10-Brimstone Coven _ The Folly Of Faust.mp3 +brimstone.coven/II/03-Brimstone Coven _ The Black Door.mp3 +brimstone.coven/II/09-Brimstone Coven _ Hades Hymn.mp3 +brimstone.coven/II/02-Brimstone Coven _ Behold, the Anunnaki.mp3 +brimstone.coven/II/04-Brimstone Coven _ Blood On The Wall.mp3 +converge/jane.doe/05 - Converge - Homewrecker.mp3 +converge/jane.doe/02 - Converge - Fault And Fracture.mp3 +converge/jane.doe/06 - Converge - The Broken Vow.mp3 +converge/jane.doe/01 - Converge - Concubine.mp3 +converge/jane.doe/07 - Converge - Bitter And Then Some.mp3 +converge/jane.doe/08 - Converge - Heaven In Her Arms.mp3 +converge/jane.doe/11 - Converge - Thaw.mp3 +converge/jane.doe/10 - Converge - Phoenix In Flames.mp3 +converge/jane.doe/09 - Converge - Phoenix In Flight.mp3 +converge/jane.doe/03 - Converge - Distance And Meaning.mp3 +converge/jane.doe/04 - Converge - Hell To Pay.mp3 +converge/jane.doe/12 - Converge - Jane Doe.mp3 +The Black Dahlia Murder/miasma/06 Novelty Crosses.mp3 +The Black Dahlia Murder/miasma/10 Miasma.mp3 +The Black Dahlia Murder/miasma/01 Built For Sin.mp3 +The Black Dahlia Murder/miasma/04 Statutory Ape.mp3 +The Black Dahlia Murder/miasma/02 I'm Charming.mp3 +The Black Dahlia Murder/miasma/09 Spite Suicide.mp3 +The Black Dahlia Murder/miasma/07 Dave Goes To Hollywood.mp3 +The Black Dahlia Murder/miasma/05 A Vulgar Picture.mp3 +The Black Dahlia Murder/miasma/03 Flies.mp3 +The Black Dahlia Murder/miasma/08 Miscarriage.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 03 - Elder Misanthropy.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 01 - Unhallowed.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 12 - Built For Sin.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 15 - Spite Suicide.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 08 - Hymn For The Wretched.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 09 - Closed Casket Requiem.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 06 - Thy Horror Cosmic.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 04 - Contagion.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 10 - Apex.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 05 - When The Last Grave Has Emptied.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 07 - The Blackest Incarnation.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 11 - Burning The Hive.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 02 - Funeral Thirst.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 14 - A Vulgar Picture.mp3 +The Black Dahlia Murder/unhallowed/The Black Dahlia Murder - 13 - Miasma.mp3 +galaktikon/1-07 Arena War of the Immortal Masters.mp3 +galaktikon/1-08 Dangertits.mp3 +galaktikon/1-03 Beastblade.mp3 +galaktikon/1-04 Deathwaltz.mp3 +galaktikon/1-06 You Can't Run Away.mp3 +galaktikon/1-05 Truth Orb and the Kill Pool.mp3 +galaktikon/1-01 Triton.mp3 +galaktikon/1-09 On My Way.mp3 +galaktikon/1-02 Prophecy of the Lazer Witch.mp3 +Turbonegro - Party Animals - V0/04 - Turbonegro - City Of Satan.mp3 +Turbonegro - Party Animals - V0/10 - Turbonegro - Babylon Forever.mp3 +Turbonegro - Party Animals - V0/01 - Turbonegro - Intro- The Party Zone.mp3 +Turbonegro - Party Animals - V0/02 - Turbonegro - All my Friends Are Dead.mp3 +Turbonegro - Party Animals - V0/07 - Turbonegro - High On The Crime.mp3 +Turbonegro - Party Animals - V0/03 - Turbonegro - Blow Me (Like The Wind).mp3 +Turbonegro - Party Animals - V0/06 - Turbonegro - Wasted Again.mp3 +Turbonegro - Party Animals - V0/05 - Turbonegro - Death From Above.mp3 +Turbonegro - Party Animals - V0/08 - Turbonegro - If You See Kaye (Tell Her I L-O-V-E Her).mp3 +Turbonegro - Party Animals - V0/12 - Turbonegro - Final Warning.mp3 +Turbonegro - Party Animals - V0/09 - Turbonegro - Stay Free.mp3 +Turbonegro - Party Animals - V0/11 - Turbonegro - Hot Stuff,Hot Shit.mp3 +Unfortunately We're Not Robots/13 - I Lost My Job To A Machine.mp3 +Unfortunately We're Not Robots/10 - You'd Be Cuter If I Shot You In The Face.mp3 +Unfortunately We're Not Robots/05 - 100 M.P.H. Vomit Dedicated To Jon.mp3 +Unfortunately We're Not Robots/03 - All.mp3 +Unfortunately We're Not Robots/12 - Your Idea Of Fascism And Global Intervention Makes Me Puke.mp3 +Unfortunately We're Not Robots/15 - Rich Hall (Runner Up In A Carson Daly Lookalike Contest).mp3 +Unfortunately We're Not Robots/09 - Doctor Doom, A Man of Science, Doesn't Believe In Jesus, Why The Fuck Do You.mp3 +Unfortunately We're Not Robots/06 - On The Run From Johnny Law Ain't No Trip To Cleveland.mp3 +Unfortunately We're Not Robots/04 - Dead.mp3 +Unfortunately We're Not Robots/02 - Are.mp3 +Unfortunately We're Not Robots/14 - Kissing You Is Like Licking An Ashtray.mp3 +Unfortunately We're Not Robots/11 - Make Like A Computer And Get With The Program.mp3 +Unfortunately We're Not Robots/07 - Ted Nugent Goes AOL.mp3 +Unfortunately We're Not Robots/08 - Total Pandemonium.mp3 +Unfortunately We're Not Robots/01 - We.mp3 +Jane Doe/05 - Converge - Homewrecker.mp3 +Jane Doe/02 - Converge - Fault And Fracture.mp3 +Jane Doe/06 - Converge - The Broken Vow.mp3 +Jane Doe/01 - Converge - Concubine.mp3 +Jane Doe/07 - Converge - Bitter And Then Some.mp3 +Jane Doe/08 - Converge - Heaven In Her Arms.mp3 +Jane Doe/11 - Converge - Thaw.mp3 +Jane Doe/10 - Converge - Phoenix In Flames.mp3 +Jane Doe/09 - Converge - Phoenix In Flight.mp3 +Jane Doe/03 - Converge - Distance And Meaning.mp3 +Jane Doe/04 - Converge - Hell To Pay.mp3 +Jane Doe/12 - Converge - Jane Doe.mp3 +Metal Metroid/supermetroid_bossmedley.mp3 +Metal Metroid/metal.metroid_03-brinstar.mp3 +Metal Metroid/metal.metroid_04-item.room.mp3 +Metal Metroid/metal.metroid_09-tourian-motherbrain.mp3 +Metal Metroid/metal.metroid_02-theme.mp3 +Metal Metroid/metal.metroid_11-ending.mp3 +Metal Metroid/metal.metroid_01-intro.mp3 +Metal Metroid/supermetroid_maridia.mp3 +Metal Metroid/metal.metroid_05-itemcollect.mp3 +Metal Metroid/metal.metroid_10-escape.mp3 +Metal Metroid/supermetroid_lowernorfair.mp3 +Metal Metroid/supermetroid_brinstar.mp3 +Metal Metroid/metal.metroid_06-norfair.mp3 +Metal Metroid/metal.metroid_08-ridley.mp3 +Metal Metroid/metal.metroid_07-kraid.mp3 +curlupanddie/unfortunately.we.are.not.robots/13 - I Lost My Job To A Machine.mp3 +curlupanddie/unfortunately.we.are.not.robots/10 - You'd Be Cuter If I Shot You In The Face.mp3 +curlupanddie/unfortunately.we.are.not.robots/05 - 100 M.P.H. Vomit Dedicated To Jon.mp3 +curlupanddie/unfortunately.we.are.not.robots/03 - All.mp3 +curlupanddie/unfortunately.we.are.not.robots/12 - Your Idea Of Fascism And Global Intervention Makes Me Puke.mp3 +curlupanddie/unfortunately.we.are.not.robots/15 - Rich Hall (Runner Up In A Carson Daly Lookalike Contest).mp3 +curlupanddie/unfortunately.we.are.not.robots/09 - Doctor Doom, A Man of Science, Doesn't Believe In Jesus, Why The Fuck Do You.mp3 +curlupanddie/unfortunately.we.are.not.robots/06 - On The Run From Johnny Law Ain't No Trip To Cleveland.mp3 +curlupanddie/unfortunately.we.are.not.robots/04 - Dead.mp3 +curlupanddie/unfortunately.we.are.not.robots/02 - Are.mp3 +curlupanddie/unfortunately.we.are.not.robots/14 - Kissing You Is Like Licking An Ashtray.mp3 +curlupanddie/unfortunately.we.are.not.robots/11 - Make Like A Computer And Get With The Program.mp3 +curlupanddie/unfortunately.we.are.not.robots/07 - Ted Nugent Goes AOL.mp3 +curlupanddie/unfortunately.we.are.not.robots/08 - Total Pandemonium.mp3 +curlupanddie/unfortunately.we.are.not.robots/01 - We.mp3 +curlupanddie/the.old.good.bug.is.a.dead.bug/01 - And Then The Robots Killed.mp3 +curlupanddie/the.old.good.bug.is.a.dead.bug/05 - Proclaimed Bat Hunter.mp3 +curlupanddie/the.old.good.bug.is.a.dead.bug/02 - Absolute Denial Of The Ultimate Nullifier.mp3 +curlupanddie/the.old.good.bug.is.a.dead.bug/03 - Hella Vegas Kids Say Hella.mp3 +curlupanddie/the.old.good.bug.is.a.dead.bug/06 - Nest Of The Face Hugger.mp3 +curlupanddie/the.old.good.bug.is.a.dead.bug/04 - Up Up Down Down Left Right Left Right B A Start.mp3 diff --git a/mpd/.config/mpd/sticker.sql b/mpd/.config/mpd/sticker.sql new file mode 100644 index 0000000..9e3c599 Binary files /dev/null and b/mpd/.config/mpd/sticker.sql differ diff --git a/mpd/.config/mpd/tag_cache b/mpd/.config/mpd/tag_cache new file mode 100644 index 0000000..879dd6a --- /dev/null +++ b/mpd/.config/mpd/tag_cache @@ -0,0 +1,1483 @@ +info_begin +format: 1 +mpd_version: 0.18.11 +fs_charset: UTF-8 +tag: Artist +tag: ArtistSort +tag: Album +tag: AlbumArtist +tag: AlbumArtistSort +tag: Title +tag: Track +tag: Name +tag: Genre +tag: Date +tag: Composer +tag: Performer +tag: Disc +tag: MUSICBRAINZ_ARTISTID +tag: MUSICBRAINZ_ALBUMID +tag: MUSICBRAINZ_ALBUMARTISTID +tag: MUSICBRAINZ_TRACKID +info_end +directory: Jane Doe +mtime: 1401999688 +begin: Jane Doe +song_begin: 01 - Converge - Concubine.mp3 +Time: 79 +Artist: Converge +Title: Concubine +Album: Jane Doe +Track: 1 +Date: 2001 +Genre: Hardcore +mtime: 1401999682 +song_end +song_begin: 02 - Converge - Fault And Fracture.mp3 +Time: 185 +Artist: Converge +Title: Fault And Fracture +Album: Jane Doe +Track: 2 +Date: 2001 +Genre: Hardcore +mtime: 1401583232 +song_end +song_begin: 03 - Converge - Distance And Meaning.mp3 +Time: 258 +Artist: Converge +Title: Distance And Meaning +Album: Jane Doe +Track: 3 +Date: 2001 +Genre: Hardcore +mtime: 1401999771 +song_end +song_begin: 04 - Converge - Hell To Pay.mp3 +Time: 272 +Artist: Converge +Title: Hell To Pay +Album: Jane Doe +Track: 4 +Date: 2001 +Genre: Hardcore +mtime: 1401583769 +song_end +song_begin: 05 - Converge - Homewrecker.mp3 +Time: 231 +Artist: Converge +Title: Homewrecker +Album: Jane Doe +Track: 5 +Date: 2001 +Genre: Hardcore +mtime: 1401584287 +song_end +song_begin: 06 - Converge - The Broken Vow.mp3 +Time: 133 +Artist: Converge +Title: The Broken Vow +Album: Jane Doe +Track: 6 +Date: 2001 +Genre: Hardcore +mtime: 1401583980 +song_end +song_begin: 07 - Converge - Bitter And Then Some.mp3 +Time: 88 +Artist: Converge +Title: Bitter And Then Some +Album: Jane Doe +Track: 7 +Date: 2001 +Genre: Hardcore +mtime: 1401582825 +song_end +song_begin: 08 - Converge - Heaven In Her Arms.mp3 +Time: 241 +Artist: Converge +Title: Heaven In Her Arms +Album: Jane Doe +Track: 8 +Date: 2001 +Genre: Hardcore +mtime: 1401584734 +song_end +song_begin: 09 - Converge - Phoenix In Flight.mp3 +Time: 229 +Artist: Converge +Title: Phoenix In Flight +Album: Jane Doe +Track: 9 +Date: 2001 +Genre: Hardcore +mtime: 1401999769 +song_end +song_begin: 10 - Converge - Phoenix In Flames.mp3 +Time: 42 +Artist: Converge +Title: Phoenix In Flames +Album: Jane Doe +Track: 10 +Date: 2001 +Genre: Hardcore +mtime: 1401583337 +song_end +song_begin: 11 - Converge - Thaw.mp3 +Time: 270 +Artist: Converge +Title: Thaw +Album: Jane Doe +Track: 11 +Date: 2001 +Genre: Hardcore +mtime: 1401583604 +song_end +song_begin: 12 - Converge - Jane Doe.mp3 +Time: 694 +Artist: Converge +Title: Jane Doe +Album: Jane Doe +Track: 12 +Date: 2001 +Genre: Hardcore +mtime: 1401999685 +song_end +playlist_begin: Converge - Jane Doe.m3u +mtime: 1401583234 +playlist_end +end: Jane Doe +directory: Metal Metroid +mtime: 1292790433 +begin: Metal Metroid +song_begin: metal.metroid_01-intro.mp3 +Time: 27 +Artist: metal.metroid +Title: 02 - intro +Date: 2003 +Genre: Game +mtime: 1096580414 +song_end +song_begin: metal.metroid_02-theme.mp3 +Time: 153 +Artist: metal.metroid +Title: 01 - the.theme +Date: 2003 +Genre: Game +mtime: 1096580408 +song_end +song_begin: metal.metroid_03-brinstar.mp3 +Time: 145 +Artist: metal.metroid +Title: 03 - brinstar +mtime: 1096580422 +song_end +song_begin: metal.metroid_04-item.room.mp3 +Time: 133 +Artist: metal.metroid +Title: 04 - item.room +Date: 2003 +Genre: Game +mtime: 1096580430 +song_end +song_begin: metal.metroid_05-itemcollect.mp3 +Time: 57 +Artist: metal.metroid +Title: 05 - item.collect +Date: 2004 +Genre: Game +mtime: 1096580486 +song_end +song_begin: metal.metroid_06-norfair.mp3 +Time: 219 +Artist: metal.metroid +Title: 06 - norfair +Date: 2003 +Genre: Game +mtime: 1096580492 +song_end +song_begin: metal.metroid_07-kraid.mp3 +Time: 179 +Artist: metal.metroid +Title: 07 - kraid +Date: 2003 +Genre: Game +mtime: 1096580498 +song_end +song_begin: metal.metroid_08-ridley.mp3 +Time: 136 +Artist: metal.metroid +Title: 08 - ridley +Date: 2003 +Genre: Game +mtime: 1096580504 +song_end +song_begin: metal.metroid_09-tourian-motherbrain.mp3 +Time: 192 +Artist: metal.metroid +Title: 09 - tourian / mother.brain +Date: 2004 +Genre: Game +mtime: 1096580370 +song_end +song_begin: metal.metroid_10-escape.mp3 +Time: 218 +Artist: metal.metroid +Title: 10 - the escape +Date: 2004 +Genre: Game +mtime: 1096580332 +song_end +song_begin: metal.metroid_11-ending.mp3 +Time: 305 +Artist: metal.metroid +Title: 11 - the ending +Date: 2004 +Genre: Game +mtime: 1096580308 +song_end +song_begin: supermetroid_bossmedley.mp3 +Time: 420 +Artist: Stemage +Title: Super Metroid Metal - Boss Medley +Date: 2005 +Genre: Game +Genre: Game +Composer: Grant Henry +mtime: 1153151498 +song_end +song_begin: supermetroid_brinstar.mp3 +Time: 320 +Artist: Stemage +Title: Super Metroid Metal - Brinstar +Date: 2006 +Composer: Grant Henry +mtime: 1153151492 +song_end +song_begin: supermetroid_lowernorfair.mp3 +Time: 287 +Artist: Stemage +Title: Super Metroid Metal - Lower Norfair +Date: 2004 +Genre: Game +Genre: Game +Composer: Grant Henry +mtime: 1153151528 +song_end +song_begin: supermetroid_maridia.mp3 +Time: 231 +Artist: Stemage +Title: Super Metroid Metal - Maridia +Date: 2005 +Genre: Game +Genre: Game +Composer: Grant Henry +mtime: 1153151514 +song_end +end: Metal Metroid +directory: The Black Dahlia Murder +mtime: 1338068980 +begin: The Black Dahlia Murder +directory: miasma +mtime: 1338068838 +begin: The Black Dahlia Murder/miasma +song_begin: 01 Built For Sin.mp3 +Time: 75 +mtime: 1304616492 +song_end +song_begin: 02 I'm Charming.mp3 +Time: 175 +mtime: 1304616498 +song_end +song_begin: 03 Flies.mp3 +Time: 207 +mtime: 1304616502 +song_end +song_begin: 04 Statutory Ape.mp3 +Time: 222 +mtime: 1304616508 +song_end +song_begin: 05 A Vulgar Picture.mp3 +Time: 218 +mtime: 1304616522 +song_end +song_begin: 06 Novelty Crosses.mp3 +Time: 232 +mtime: 1304616532 +song_end +song_begin: 07 Dave Goes To Hollywood.mp3 +Time: 239 +mtime: 1304616534 +song_end +song_begin: 08 Miscarriage.mp3 +Time: 189 +mtime: 1304616550 +song_end +song_begin: 09 Spite Suicide.mp3 +Time: 172 +mtime: 1304616554 +song_end +song_begin: 10 Miasma.mp3 +Time: 282 +mtime: 1304616554 +song_end +end: The Black Dahlia Murder/miasma +directory: unhallowed +mtime: 1338068827 +begin: The Black Dahlia Murder/unhallowed +song_begin: The Black Dahlia Murder - 01 - Unhallowed.mp3 +Time: 122 +Artist: The Black Dahlia Murder +Title: Unhallowed +Album: Unhallowed++ +Track: 1 +Date: 2003 +Genre: Metalcore +mtime: 1150743380 +song_end +song_begin: The Black Dahlia Murder - 02 - Funeral Thirst.mp3 +Time: 237 +Artist: The Black Dahlia Murder +Title: Funeral Thirst +Album: Unhallowed++ +Track: 2 +Date: 2003 +Genre: Metalcore +mtime: 1150743400 +song_end +song_begin: The Black Dahlia Murder - 03 - Elder Misanthropy.mp3 +Time: 156 +Artist: The Black Dahlia Murder +Title: Elder Misanthropy +Album: Unhallowed++ +Track: 3 +Date: 2003 +Genre: Metalcore +mtime: 1150743410 +song_end +song_begin: The Black Dahlia Murder - 04 - Contagion.mp3 +Time: 205 +Artist: The Black Dahlia Murder +Title: Contagion +Album: Unhallowed++ +Track: 4 +Date: 2003 +Genre: Metalcore +mtime: 1150743418 +song_end +song_begin: The Black Dahlia Murder - 05 - When The Last Grave Has Emptied.mp3 +Time: 193 +Artist: The Black Dahlia Murder +Title: When The Last Grave Has Emptied +Album: Unhallowed++ +Track: 5 +Date: 2003 +Genre: Metalcore +mtime: 1150743426 +song_end +song_begin: The Black Dahlia Murder - 06 - Thy Horror Cosmic.mp3 +Time: 177 +Artist: The Black Dahlia Murder +Title: Thy Horror Cosmic +Album: Unhallowed++ +Track: 6 +Date: 2003 +Genre: Metalcore +mtime: 1150743434 +song_end +song_begin: The Black Dahlia Murder - 07 - The Blackest Incarnation.mp3 +Time: 285 +Artist: The Black Dahlia Murder +Title: The Blackest Incarnation +Album: Unhallowed++ +Track: 7 +Date: 2003 +Genre: Metalcore +mtime: 1150743444 +song_end +song_begin: The Black Dahlia Murder - 08 - Hymn For The Wretched.mp3 +Time: 261 +Artist: The Black Dahlia Murder +Title: Hymn For The Wretched +Album: Unhallowed++ +Track: 8 +Date: 2003 +Genre: Metalcore +mtime: 1150743454 +song_end +song_begin: The Black Dahlia Murder - 09 - Closed Casket Requiem.mp3 +Time: 267 +Artist: The Black Dahlia Murder +Title: Closed Casket Requiem +Album: Unhallowed++ +Track: 9 +Date: 2003 +Genre: Metalcore +mtime: 1150743464 +song_end +song_begin: The Black Dahlia Murder - 10 - Apex.mp3 +Time: 307 +Artist: The Black Dahlia Murder +Title: Apex +Album: Unhallowed++ +Track: 10 +Date: 2003 +Genre: Metalcore +mtime: 1150743476 +song_end +song_begin: The Black Dahlia Murder - 11 - Burning The Hive.mp3 +Time: 65 +Artist: The Black Dahlia Murder +Title: Burning The Hive +Album: Unhallowed++ +Track: 11 +Date: 2003 +Genre: Metalcore +mtime: 1150743478 +song_end +song_begin: The Black Dahlia Murder - 12 - Built For Sin.mp3 +Time: 242 +Artist: The Black Dahlia Murder +Title: Built For Sin +Album: Unhallowed++ +Track: 12 +Date: 2003 +Genre: Metalcore +mtime: 1150743486 +song_end +song_begin: The Black Dahlia Murder - 13 - Miasma.mp3 +Time: 234 +Artist: The Black Dahlia Murder +Title: Miasma +Album: Unhallowed++ +Track: 13 +Date: 2003 +Genre: Metalcore +mtime: 1150743496 +song_end +song_begin: The Black Dahlia Murder - 14 - A Vulgar Picture.mp3 +Time: 266 +Artist: The Black Dahlia Murder +Title: A Vulgar Picture +Album: Unhallowed++ +Track: 14 +Date: 2003 +Genre: Metalcore +mtime: 1150743504 +song_end +song_begin: The Black Dahlia Murder - 15 - Spite Suicide.mp3 +Time: 154 +Artist: The Black Dahlia Murder +Title: Spite Suicide +Album: Unhallowed++ +Track: 15 +Date: 2003 +Genre: Metalcore +mtime: 1150743510 +song_end +end: The Black Dahlia Murder/unhallowed +end: The Black Dahlia Murder +directory: Turbonegro - Party Animals - V0 +mtime: 1401582607 +begin: Turbonegro - Party Animals - V0 +song_begin: 01 - Turbonegro - Intro- The Party Zone.mp3 +Time: 119 +Artist: Turbonegro +Title: Intro: The Party Zone +Album: Party Animals +Track: 1 +Date: 2005 +Genre: Punk Rock +mtime: 1401581172 +song_end +song_begin: 02 - Turbonegro - All my Friends Are Dead.mp3 +Time: 156 +Artist: Turbonegro +Title: All my Friends Are Dead +Album: Party Animals +Track: 2 +Date: 2005 +Genre: Punk Rock +mtime: 1401582058 +song_end +song_begin: 03 - Turbonegro - Blow Me (Like The Wind).mp3 +Time: 197 +Artist: Turbonegro +Title: Blow Me (Like The Wind) +Album: Party Animals +Track: 3 +Date: 2005 +Genre: Punk Rock +mtime: 1401582392 +song_end +song_begin: 04 - Turbonegro - City Of Satan.mp3 +Time: 343 +Artist: Turbonegro +Title: City Of Satan +Album: Party Animals +Track: 4 +Date: 2005 +Genre: Punk Rock +mtime: 1401580839 +song_end +song_begin: 05 - Turbonegro - Death From Above.mp3 +Time: 183 +Artist: Turbonegro +Title: Death From Above +Album: Party Animals +Track: 5 +Date: 2005 +Genre: Punk Rock +mtime: 1401582712 +song_end +song_begin: 06 - Turbonegro - Wasted Again.mp3 +Time: 187 +Artist: Turbonegro +Title: Wasted Again +Album: Party Animals +Track: 6 +Date: 2005 +Genre: Punk Rock +mtime: 1401581477 +song_end +song_begin: 07 - Turbonegro - High On The Crime.mp3 +Time: 199 +Artist: Turbonegro +Title: High On The Crime +Album: Party Animals +Track: 7 +Date: 2005 +Genre: Punk Rock +mtime: 1401582098 +song_end +song_begin: 08 - Turbonegro - If You See Kaye (Tell Her I L-O-V-E Her).mp3 +Time: 179 +Artist: Turbonegro +Title: If You See Kaye (Tell Her I L- +Album: Party Animals +Track: 8 +Date: 2005 +Genre: Punk Rock +mtime: 1401581647 +song_end +song_begin: 09 - Turbonegro - Stay Free.mp3 +Time: 225 +Artist: Turbonegro +Title: Stay Free +Album: Party Animals +Track: 9 +Date: 2005 +Genre: Punk Rock +mtime: 1401580274 +song_end +song_begin: 10 - Turbonegro - Babylon Forever.mp3 +Time: 232 +Artist: Turbonegro +Title: Babylon Forever +Album: Party Animals +Track: 10 +Date: 2005 +Genre: Punk Rock +mtime: 1401582963 +song_end +song_begin: 11 - Turbonegro - Hot Stuff,Hot Shit.mp3 +Time: 240 +Artist: Turbonegro +Title: Hot Stuff/Hot Shit +Album: Party Animals +Track: 11 +Date: 2005 +Genre: Punk Rock +mtime: 1401582603 +song_end +song_begin: 12 - Turbonegro - Final Warning.mp3 +Time: 606 +Artist: Turbonegro +Title: Final Warning +Album: Party Animals +Track: 12 +Date: 2005 +Genre: Punk Rock +mtime: 1401580824 +song_end +end: Turbonegro - Party Animals - V0 +directory: Unfortunately We're Not Robots +mtime: 1401999819 +begin: Unfortunately We're Not Robots +song_begin: 01 - We.mp3 +Time: 5 +Artist: Curl Up And Die +Title: We +Album: Unfortunately We're Not Robots +Track: 1 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999775 +song_end +song_begin: 02 - Are.mp3 +Time: 5 +Artist: Curl Up And Die +Title: Are +Album: Unfortunately We're Not Robots +Track: 2 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999782 +song_end +song_begin: 03 - All.mp3 +Time: 5 +Artist: Curl Up And Die +Title: All +Album: Unfortunately We're Not Robots +Track: 3 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999777 +song_end +song_begin: 04 - Dead.mp3 +Time: 6 +Artist: Curl Up And Die +Title: Dead +Album: Unfortunately We're Not Robots +Track: 4 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999774 +song_end +song_begin: 05 - 100 M.P.H. Vomit Dedicated To Jon.mp3 +Time: 24 +Artist: Curl Up And Die +Title: 100 M.P.H. Vomit Dedicated To Jon +Album: Unfortunately We're Not Robots +Track: 5 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999773 +song_end +song_begin: 06 - On The Run From Johnny Law Ain't No Trip To Cleveland.mp3 +Time: 74 +Artist: Curl Up And Die +Title: On The Run From Johnny Law Ain't No Trip To Cleveland +Album: Unfortunately We're Not Robots +Track: 6 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999743 +song_end +song_begin: 07 - Ted Nugent Goes AOL.mp3 +Time: 151 +Artist: Curl Up And Die +Title: Ted Nugent Goes AOL +Album: Unfortunately We're Not Robots +Track: 7 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999769 +song_end +song_begin: 08 - Total Pandemonium.mp3 +Time: 148 +Artist: Curl Up And Die +Title: Total Pandemonium +Album: Unfortunately We're Not Robots +Track: 8 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999822 +song_end +song_begin: 09 - Doctor Doom, A Man of Science, Doesn't Believe In Jesus, Why The Fuck Do You.mp3 +Time: 159 +Artist: Curl Up And Die +Title: Doctor Doom, A Man of Science, Doesn't Believe In Jesus, Why The Fuck Do You +Album: Unfortunately We're Not Robots +Track: 9 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999814 +song_end +song_begin: 10 - You'd Be Cuter If I Shot You In The Face.mp3 +Time: 490 +Artist: Curl Up And Die +Title: You'd Be Cuter If I Shot You In The Face +Album: Unfortunately We're Not Robots +Track: 10 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1402000086 +song_end +song_begin: 11 - Make Like A Computer And Get With The Program.mp3 +Time: 296 +Artist: Curl Up And Die +Title: Make Like A Computer And Get With The Program +Album: Unfortunately We're Not Robots +Track: 11 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999801 +song_end +song_begin: 12 - Your Idea Of Fascism And Global Intervention Makes Me Puke.mp3 +Time: 157 +Artist: Curl Up And Die +Title: Your Idea Of Fascism And Global Intervention Makes Me Puke +Album: Unfortunately We're Not Robots +Track: 12 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999865 +song_end +song_begin: 13 - I Lost My Job To A Machine.mp3 +Time: 80 +Artist: Curl Up And Die +Title: I Lost My Job To A Machine +Album: Unfortunately We're Not Robots +Track: 13 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999752 +song_end +song_begin: 14 - Kissing You Is Like Licking An Ashtray.mp3 +Time: 122 +Artist: Curl Up And Die +Title: Kissing You Is Like Licking An Ashtray +Album: Unfortunately We're Not Robots +Track: 14 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999778 +song_end +song_begin: 15 - Rich Hall (Runner Up In A Carson Daly Lookalike Contest).mp3 +Time: 425 +Artist: Curl Up And Die +Title: Rich Hall (Runner Up In A Carson Daly Lookalike Contest) +Album: Unfortunately We're Not Robots +Track: 15 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1401999907 +song_end +playlist_begin: Unfortunately We're Not Robots.cue +mtime: 1401999817 +playlist_end +playlist_begin: Curl Up And Die - Unfortunately We're Not Robots.m3u +mtime: 1401999779 +playlist_end +end: Unfortunately We're Not Robots +directory: black.wizard +mtime: 1401640787 +begin: black.wizard +song_begin: 01. Long Way Home.mp3 +Time: 382 +Artist: Black Wizard +Title: Long Way Home +Album: Black Wizard +Track: 1 +Date: 2010 +Genre: Stoner Metal +mtime: 1399340593 +song_end +song_begin: 02. Evergreen.mp3 +Time: 300 +Artist: Black Wizard +Title: Evergreen +Album: Black Wizard +Track: 2 +Date: 2010 +Genre: Stoner Metal +mtime: 1399340620 +song_end +song_begin: 03. Waves.mp3 +Time: 214 +Artist: Black Wizard +Title: Waves +Album: Black Wizard +Track: 3 +Date: 2010 +Genre: Stoner Metal +mtime: 1399340587 +song_end +song_begin: 04. Drugs.mp3 +Time: 344 +Artist: Black Wizard +Title: Drugs +Album: Black Wizard +Track: 4 +Date: 2010 +Genre: Stoner Metal +mtime: 1399340628 +song_end +song_begin: 05. Winds of Helliwell (Acoustic).mp3 +Time: 125 +Artist: Black Wizard +Title: Winds of Helliwell +Album: Black Wizard +Track: 5 +Date: 2010 +Genre: Stoner Metal +mtime: 1399340553 +song_end +song_begin: 06. Kill the City.mp3 +Time: 287 +Artist: Black Wizard +Title: Kill the City +Album: Black Wizard +Track: 6 +Date: 2010 +Genre: Stoner Metal +mtime: 1399340544 +song_end +song_begin: 07. Black Fog.mp3 +Time: 361 +Artist: Black Wizard +Title: Black Fog +Album: Black Wizard +Track: 7 +Date: 2010 +Genre: Stoner Metal +mtime: 1399340645 +song_end +end: black.wizard +directory: brimstone.coven +mtime: 1401640624 +begin: brimstone.coven +directory: I +mtime: 1401640639 +begin: brimstone.coven/I +song_begin: 01-Brimstone Coven _ I n t r o d u c t i o n.mp3 +Time: 49 +Artist: Brimstone Coven +Title: Brimstone Coven / I n t r o d u c t i o n +Album: Brimstone Coven +Track: 1 +Date: 2012 +Genre: Metal +mtime: 1331156284 +song_end +song_begin: 02-Brimstone Coven _ We Are Forever.mp3 +Time: 201 +Artist: Brimstone Coven +Title: Brimstone Coven / We Are Forever +Album: Brimstone Coven +Track: 2 +Date: 2012 +Genre: Metal +mtime: 1331156378 +song_end +song_begin: 03-Brimstone Coven _ The Ancients.mp3 +Time: 193 +Artist: Brimstone Coven +Title: Brimstone Coven / The Ancients +Album: Brimstone Coven +Track: 3 +Date: 2012 +Genre: Metal +mtime: 1331156456 +song_end +song_begin: 04-Brimstone Coven _ Son Of The Morning.mp3 +Time: 335 +Artist: Brimstone Coven +Title: Brimstone Coven / Son Of The Morning +Album: Brimstone Coven +Track: 4 +Date: 2012 +Genre: Metal +mtime: 1331156586 +song_end +song_begin: 05-Brimstone Coven _ LoSt in the oDyssey.mp3 +Time: 234 +Artist: Brimstone Coven +Title: Brimstone Coven / LoSt in the oDyssey +Album: Brimstone Coven +Track: 5 +Date: 2012 +Genre: Metal +mtime: 1331156673 +song_end +song_begin: 06-Brimstone Coven _ Children Of The Sun.mp3 +Time: 311 +Artist: Brimstone Coven +Title: Brimstone Coven / Children Of The Sun +Album: Brimstone Coven +Track: 6 +Date: 2012 +Genre: Metal +mtime: 1331156787 +song_end +song_begin: 07-Brimstone Coven _ O u t r o.mp3 +Time: 641 +Artist: Brimstone Coven +Title: Brimstone Coven / O u t r o +Album: Brimstone Coven +Track: 7 +Date: 2012 +Genre: Metal +mtime: 1331157014 +song_end +end: brimstone.coven/I +directory: II +mtime: 1401640644 +begin: brimstone.coven/II +song_begin: 01-Brimstone Coven _ Cosmic Communion.mp3 +Time: 279 +Artist: Brimstone Coven +Title: Brimstone Coven / Cosmic Communion +Album: II +Track: 1 +Genre: Unknown +mtime: 1383782442 +song_end +song_begin: 02-Brimstone Coven _ Behold, the Anunnaki.mp3 +Time: 345 +Artist: Brimstone Coven +Title: Brimstone Coven / Behold, the Anunnaki +Album: II +Track: 2 +Genre: Unknown +mtime: 1383782516 +song_end +song_begin: 03-Brimstone Coven _ The Black Door.mp3 +Time: 231 +Artist: Brimstone Coven +Title: Brimstone Coven / The Black Door +Album: II +Track: 3 +Genre: Unknown +mtime: 1383782557 +song_end +song_begin: 04-Brimstone Coven _ Blood On The Wall.mp3 +Time: 271 +Artist: Brimstone Coven +Title: Brimstone Coven / Blood On The Wall +Album: II +Track: 4 +Genre: Unknown +mtime: 1383782599 +song_end +song_begin: 05-Brimstone Coven _ The Grave.mp3 +Time: 274 +Artist: Brimstone Coven +Title: Brimstone Coven / The Grave +Album: II +Track: 5 +Genre: Unknown +mtime: 1383782639 +song_end +song_begin: 06-Brimstone Coven _ Lord And Master.mp3 +Time: 372 +Artist: Brimstone Coven +Title: Brimstone Coven / Lord And Master +Album: II +Track: 6 +Genre: Unknown +mtime: 1383782695 +song_end +song_begin: 07-Brimstone Coven _ Vying.mp3 +Time: 287 +Artist: Brimstone Coven +Title: Brimstone Coven / Vying +Album: II +Track: 7 +Genre: Unknown +mtime: 1383782737 +song_end +song_begin: 08-Brimstone Coven _ The Seance.mp3 +Time: 230 +Artist: Brimstone Coven +Title: Brimstone Coven / The Seance +Album: II +Track: 8 +Genre: Unknown +mtime: 1383782770 +song_end +song_begin: 09-Brimstone Coven _ Hades Hymn.mp3 +Time: 88 +Artist: Brimstone Coven +Title: Brimstone Coven / Hades Hymn +Album: II +Track: 9 +Genre: Unknown +mtime: 1383782794 +song_end +song_begin: 10-Brimstone Coven _ The Folly Of Faust.mp3 +Time: 424 +Artist: Brimstone Coven +Title: Brimstone Coven / The Folly Of Faust +Album: II +Track: 10 +Genre: Unknown +mtime: 1383782854 +song_end +end: brimstone.coven/II +end: brimstone.coven +directory: converge +mtime: 1401640807 +begin: converge +directory: jane.doe +mtime: 1401640810 +begin: converge/jane.doe +song_begin: 01 - Converge - Concubine.mp3 +Time: 79 +Artist: Converge +Title: Concubine +Album: Jane Doe +Track: 1 +Date: 2001 +Genre: Hardcore +mtime: 1399340762 +song_end +song_begin: 02 - Converge - Fault And Fracture.mp3 +Time: 185 +Artist: Converge +Title: Fault And Fracture +Album: Jane Doe +Track: 2 +Date: 2001 +Genre: Hardcore +mtime: 1399340734 +song_end +song_begin: 03 - Converge - Distance And Meaning.mp3 +Time: 258 +Artist: Converge +Title: Distance And Meaning +Album: Jane Doe +Track: 3 +Date: 2001 +Genre: Hardcore +mtime: 1399340797 +song_end +song_begin: 04 - Converge - Hell To Pay.mp3 +Time: 272 +Artist: Converge +Title: Hell To Pay +Album: Jane Doe +Track: 4 +Date: 2001 +Genre: Hardcore +mtime: 1399340762 +song_end +song_begin: 05 - Converge - Homewrecker.mp3 +Time: 231 +Artist: Converge +Title: Homewrecker +Album: Jane Doe +Track: 5 +Date: 2001 +Genre: Hardcore +mtime: 1399340777 +song_end +song_begin: 06 - Converge - The Broken Vow.mp3 +Time: 133 +Artist: Converge +Title: The Broken Vow +Album: Jane Doe +Track: 6 +Date: 2001 +Genre: Hardcore +mtime: 1399340738 +song_end +song_begin: 07 - Converge - Bitter And Then Some.mp3 +Time: 88 +Artist: Converge +Title: Bitter And Then Some +Album: Jane Doe +Track: 7 +Date: 2001 +Genre: Hardcore +mtime: 1399340708 +song_end +song_begin: 08 - Converge - Heaven In Her Arms.mp3 +Time: 241 +Artist: Converge +Title: Heaven In Her Arms +Album: Jane Doe +Track: 8 +Date: 2001 +Genre: Hardcore +mtime: 1399340774 +song_end +song_begin: 09 - Converge - Phoenix In Flight.mp3 +Time: 229 +Artist: Converge +Title: Phoenix In Flight +Album: Jane Doe +Track: 9 +Date: 2001 +Genre: Hardcore +mtime: 1399340797 +song_end +song_begin: 10 - Converge - Phoenix In Flames.mp3 +Time: 42 +Artist: Converge +Title: Phoenix In Flames +Album: Jane Doe +Track: 10 +Date: 2001 +Genre: Hardcore +mtime: 1399340713 +song_end +song_begin: 11 - Converge - Thaw.mp3 +Time: 270 +Artist: Converge +Title: Thaw +Album: Jane Doe +Track: 11 +Date: 2001 +Genre: Hardcore +mtime: 1399340749 +song_end +song_begin: 12 - Converge - Jane Doe.mp3 +Time: 694 +Artist: Converge +Title: Jane Doe +Album: Jane Doe +Track: 12 +Date: 2001 +Genre: Hardcore +mtime: 1399340830 +song_end +playlist_begin: Converge - Jane Doe.m3u +mtime: 1399340703 +playlist_end +end: converge/jane.doe +end: converge +directory: curlupanddie +mtime: 1401640800 +begin: curlupanddie +directory: the.old.good.bug.is.a.dead.bug +mtime: 1401640799 +begin: curlupanddie/the.old.good.bug.is.a.dead.bug +song_begin: 01 - And Then The Robots Killed.mp3 +Time: 263 +Artist: Curl Up And Die +Title: And Then The Robots Killed +Album: The Only Good Bug Is A Dead Bug +Track: 1/6 +Date: 2000 +Genre: Alternative & Punk +mtime: 1399340743 +song_end +song_begin: 02 - Absolute Denial Of The Ultimate Nullifier.mp3 +Time: 251 +Artist: Curl Up And Die +Title: Absolute Denial Of The Ultimate Nullifier +Album: The Only Good Bug Is A Dead Bug +Track: 2/6 +Date: 2000 +Genre: Alternative & Punk +mtime: 1399340724 +song_end +song_begin: 03 - Hella Vegas Kids Say Hella.mp3 +Time: 196 +Artist: Curl Up And Die +Title: Hella Vegas Kids Say Hella +Album: The Only Good Bug Is A Dead Bug +Track: 3/6 +Date: 2000 +Genre: Alternative & Punk +mtime: 1399340694 +song_end +song_begin: 04 - Up Up Down Down Left Right Left Right B A Start.mp3 +Time: 157 +Artist: Curl Up And Die +Title: Up Up Down Down Left Right Left Right B A Start +Album: The Only Good Bug Is A Dead Bug +Track: 4/6 +Date: 2000 +Genre: Alternative & Punk +mtime: 1399340698 +song_end +song_begin: 05 - Proclaimed Bat Hunter.mp3 +Time: 209 +Artist: Curl Up And Die +Title: Proclaimed Bat Hunter +Album: The Only Good Bug Is A Dead Bug +Track: 5/6 +Date: 2000 +Genre: Alternative & Punk +mtime: 1399340703 +song_end +song_begin: 06 - Nest Of The Face Hugger.mp3 +Time: 354 +Artist: Curl Up And Die +Title: Nest Of The Face Hugger +Album: The Only Good Bug Is A Dead Bug +Track: 6/6 +Date: 2000 +Genre: Alternative & Punk +mtime: 1399340737 +song_end +playlist_begin: The Only Good Bug Is A Dead Bug.cue +mtime: 1399340653 +playlist_end +end: curlupanddie/the.old.good.bug.is.a.dead.bug +directory: unfortunately.we.are.not.robots +mtime: 1401640801 +begin: curlupanddie/unfortunately.we.are.not.robots +song_begin: 01 - We.mp3 +Time: 5 +Artist: Curl Up And Die +Title: We +Album: Unfortunately We're Not Robots +Track: 1 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340788 +song_end +song_begin: 02 - Are.mp3 +Time: 5 +Artist: Curl Up And Die +Title: Are +Album: Unfortunately We're Not Robots +Track: 2 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340792 +song_end +song_begin: 03 - All.mp3 +Time: 5 +Artist: Curl Up And Die +Title: All +Album: Unfortunately We're Not Robots +Track: 3 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340794 +song_end +song_begin: 04 - Dead.mp3 +Time: 6 +Artist: Curl Up And Die +Title: Dead +Album: Unfortunately We're Not Robots +Track: 4 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340787 +song_end +song_begin: 05 - 100 M.P.H. Vomit Dedicated To Jon.mp3 +Time: 24 +Artist: Curl Up And Die +Title: 100 M.P.H. Vomit Dedicated To Jon +Album: Unfortunately We're Not Robots +Track: 5 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340784 +song_end +song_begin: 06 - On The Run From Johnny Law Ain't No Trip To Cleveland.mp3 +Time: 74 +Artist: Curl Up And Die +Title: On The Run From Johnny Law Ain't No Trip To Cleveland +Album: Unfortunately We're Not Robots +Track: 6 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340776 +song_end +song_begin: 07 - Ted Nugent Goes AOL.mp3 +Time: 151 +Artist: Curl Up And Die +Title: Ted Nugent Goes AOL +Album: Unfortunately We're Not Robots +Track: 7 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340798 +song_end +song_begin: 08 - Total Pandemonium.mp3 +Time: 148 +Artist: Curl Up And Die +Title: Total Pandemonium +Album: Unfortunately We're Not Robots +Track: 8 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340825 +song_end +song_begin: 09 - Doctor Doom, A Man of Science, Doesn't Believe In Jesus, Why The Fuck Do You.mp3 +Time: 159 +Artist: Curl Up And Die +Title: Doctor Doom, A Man of Science, Doesn't Believe In Jesus, Why The Fuck Do You +Album: Unfortunately We're Not Robots +Track: 9 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340827 +song_end +song_begin: 10 - You'd Be Cuter If I Shot You In The Face.mp3 +Time: 490 +Artist: Curl Up And Die +Title: You'd Be Cuter If I Shot You In The Face +Album: Unfortunately We're Not Robots +Track: 10 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340850 +song_end +song_begin: 11 - Make Like A Computer And Get With The Program.mp3 +Time: 296 +Artist: Curl Up And Die +Title: Make Like A Computer And Get With The Program +Album: Unfortunately We're Not Robots +Track: 11 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340827 +song_end +song_begin: 12 - Your Idea Of Fascism And Global Intervention Makes Me Puke.mp3 +Time: 157 +Artist: Curl Up And Die +Title: Your Idea Of Fascism And Global Intervention Makes Me Puke +Album: Unfortunately We're Not Robots +Track: 12 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340829 +song_end +song_begin: 13 - I Lost My Job To A Machine.mp3 +Time: 80 +Artist: Curl Up And Die +Title: I Lost My Job To A Machine +Album: Unfortunately We're Not Robots +Track: 13 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340773 +song_end +song_begin: 14 - Kissing You Is Like Licking An Ashtray.mp3 +Time: 122 +Artist: Curl Up And Die +Title: Kissing You Is Like Licking An Ashtray +Album: Unfortunately We're Not Robots +Track: 14 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340799 +song_end +song_begin: 15 - Rich Hall (Runner Up In A Carson Daly Lookalike Contest).mp3 +Time: 425 +Artist: Curl Up And Die +Title: Rich Hall (Runner Up In A Carson Daly Lookalike Contest) +Album: Unfortunately We're Not Robots +Track: 15 +Date: 2001 +Genre: Chaotic Hardcore +mtime: 1399340839 +song_end +playlist_begin: Unfortunately We're Not Robots.cue +mtime: 1399340803 +playlist_end +playlist_begin: Curl Up And Die - Unfortunately We're Not Robots.m3u +mtime: 1399340796 +playlist_end +end: curlupanddie/unfortunately.we.are.not.robots +end: curlupanddie +directory: galaktikon +mtime: 1338072054 +begin: galaktikon +song_begin: 1-01 Triton.mp3 +Time: 243 +Artist: Brendon Small +AlbumArtist: Brendon Small +Title: Triton +Album: Galaktikon +Track: 1/9 +Date: 2012 +Genre: Heavy Metal +Disc: 1/1 +mtime: 1337623192 +song_end +song_begin: 1-02 Prophecy of the Lazer Witch.mp3 +Time: 274 +Artist: Brendon Small +AlbumArtist: Brendon Small +Title: Prophecy of the Lazer Witch +Album: Galaktikon +Track: 2/9 +Date: 2012 +Genre: Heavy Metal +Disc: 1/1 +mtime: 1337623192 +song_end +song_begin: 1-03 Beastblade.mp3 +Time: 287 +Artist: Brendon Small +AlbumArtist: Brendon Small +Title: Beastblade +Album: Galaktikon +Track: 3/9 +Date: 2012 +Genre: Heavy Metal +Disc: 1/1 +mtime: 1337623192 +song_end +song_begin: 1-04 Deathwaltz.mp3 +Time: 214 +Artist: Brendon Small +AlbumArtist: Brendon Small +Title: Deathwaltz +Album: Galaktikon +Track: 4/9 +Date: 2012 +Genre: Heavy Metal +Disc: 1/1 +mtime: 1337623192 +song_end +song_begin: 1-05 Truth Orb and the Kill Pool.mp3 +Time: 269 +Artist: Brendon Small +AlbumArtist: Brendon Small +Title: Truth Orb and the Kill Pool +Album: Galaktikon +Track: 5/9 +Date: 2012 +Genre: Heavy Metal +Disc: 1/1 +mtime: 1337623194 +song_end +song_begin: 1-06 You Can't Run Away.mp3 +Time: 305 +Artist: Brendon Small +AlbumArtist: Brendon Small +Title: You Can't Run Away +Album: Galaktikon +Track: 6/9 +Date: 2012 +Genre: Heavy Metal +Disc: 1/1 +mtime: 1337623192 +song_end +song_begin: 1-07 Arena War of the Immortal Masters.mp3 +Time: 288 +Artist: Brendon Small +AlbumArtist: Brendon Small +Title: Arena War of the Immortal Masters +Album: Galaktikon +Track: 7/9 +Date: 2012 +Genre: Heavy Metal +Disc: 1/1 +mtime: 1337623192 +song_end +song_begin: 1-08 Dangertits.mp3 +Time: 273 +Artist: Brendon Small +AlbumArtist: Brendon Small +Title: Dangertits +Album: Galaktikon +Track: 8/9 +Date: 2012 +Genre: Heavy Metal +Disc: 1/1 +mtime: 1337623194 +song_end +song_begin: 1-09 On My Way.mp3 +Time: 328 +Artist: Brendon Small +AlbumArtist: Brendon Small +Title: On My Way +Album: Galaktikon +Track: 9/9 +Date: 2012 +Genre: Heavy Metal +Disc: 1/1 +mtime: 1337623192 +song_end +end: galaktikon diff --git a/ncmpcpp/.ncmpcpp/config b/ncmpcpp/.ncmpcpp/config new file mode 100644 index 0000000..b4ac743 --- /dev/null +++ b/ncmpcpp/.ncmpcpp/config @@ -0,0 +1,75 @@ +# ████ ██ ██████ ████ ████ ███████ ██████ ███████ ███████ +# ░██░██ ░██ ██░░░░██░██░██ ██░██░██░░░░██ ██░░░░██░██░░░░██░██░░░░██ +# ░██░░██ ░██ ██ ░░ ░██░░██ ██ ░██░██ ░██ ██ ░░ ░██ ░██░██ ░██ +# ░██ ░░██ ░██░██ ░██ ░░███ ░██░███████ ░██ ░███████ ░███████ +# ░██ ░░██░██░██ ░██ ░░█ ░██░██░░░░ ░██ ░██░░░░ ░██░░░░ +# ░██ ░░████░░██ ██░██ ░ ░██░██ ░░██ ██░██ ░██ +# ░██ ░░███ ░░██████ ░██ ░██░██ ░░██████ ░██ ░██ +# ░░ ░░░ ░░░░░░ ░░ ░░ ░░ ░░░░░░ ░░ ░░ +# +# █▓▒░ Setup + ncmpcpp_directory = "/home/xero/.ncmpcpp" + #lyrics_directory = /home/xero/.lyrics + mpd_music_dir = "/home/xero/music" + external_editor = "/usr/bin/nano" + +# █▓▒░ MPD Settings + mpd_crossfade_time = "3" + mpd_music_dir = "/home/xero/music" + +# █▓▒░ Visualizer + visualizer_look = "▒░" + visualizer_color = "white" + visualizer_in_stereo = "yes" + visualizer_fifo_path = "/tmp/mpd.fifo" + visualizer_sync_interval = "1" + visualizer_output_name = "my_fifo" + visualizer_type = "spectrum" #"wave" + +# █▓▒░ Display Settings + song_list_format = "{$7%a $1> $6}{%t$1$R$b} [{%l}]" + song_status_format = "$7%a $1$b> $6%t $1$b> $2%b$1" + statusbar_color = "black" + visualizer_color = "cyan" + main_window_highlight_color = "red" + header_visibility = "no" + statusbar_visibility = "yes" + colors_enabled = "yes" + display_screens_numbers_on_start = "no" + now_playing_prefix = "> " + #now_playing_suffix = "" + autocenter_mode = "yes" + centered_cursor = "yes" + progressbar_look = "▒▓░" + titles_visibility = "no" + mouse_support = "no" + discard_colors_if_item_is_selected = "yes" + user_interface = "classic" #"alternative" + +# █▓▒░ cheat sheet +# %l - length +# %f - filename +# %D - directory +# %a - artist +# %t - title +# %b - album +# %y - year +# %n - track number (01/12 -> 01) +# %N - full track info (01/12 -> 01/12) +# %g - genre +# %c - composer +# %p - performer +# %d - disc +# %C - comment +# $R - begin right alignment +# █▓▒░ colors +# $0 - default window color +# $1 - black +# $2 - red +# $3 - green +# $4 - yellow +# $5 - blue +# $6 - magenta +# $7 - cyan +# $8 - white +# $9 - end of current color diff --git a/preview.png b/preview.png deleted file mode 100644 index f160a4a..0000000 Binary files a/preview.png and /dev/null differ diff --git a/ryu-login/etc/issue b/ryu-login/etc/issue new file mode 100644 index 0000000..b086144 --- /dev/null +++ b/ryu-login/etc/issue @@ -0,0 +1,50 @@ + +..................................░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ................................. +.................................░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ................................. +.................................░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ................................. +.................................░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ................................. +.................................░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ................................. +.................................░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░▒▒▒▒▒▒ ................................. +.................................░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░▒▒▒▒▒▒▒ ................................. +.................................░░░░░░░░░░░░░░░░░▒▒▒▒ ▒▒▒▒▒▒▒▒░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒▒▒▒▒ ................................. +.................................░░░░░░░░░░░░░░░▒▒▒▒ ▒▒▒▒▒░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ................................. +.................................░░░░░░░░░░░░░░▒▒▒ ▒▒▒▒░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ................................. +.................................░░░░░░░░░░░░░▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ................................. +.................................░░░░░░░░░░░░ ░░░░░░░░░░░░░ ░░░░░░░░░░░░ ▒ ................................. +.................................░░░░░░░░░░░ ▒ ░░░▓▓▓▓▓▓▓▓▓▓▓▓░░ ░░░░░░░░░░░░░░░ ░ ................................. +.................................░░░░░░░░░░░ ░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░ ░░░░░░░░░░░░░░░░░░░ ................................. +.................................░░░░░░░░░░ ▒ ░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░ ░░▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░ ░ ▒ ................................. +.................................░░░░░░░░░ ░ ░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░ ░ ▒ ................................. +.................................░░░░░░░░░ ░ ░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░ ░ ▒ ................................. +.................................░░░░░░░░░░▒ ░ ░ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓░ ░ ................................. +................................░░░░░░░░░░░ ░░░ ░ ▓▓▓▓▓▓▓▓░▓▓▓▓░░░▓░░░░░░▓▓▓▓▓ ░ ░ ▒ ................................ +................................░░░░░░░░░▒▒ ░░░░░ ░ ▓▓▓▓▓▓░▓▓▓▓░░▓▓▓░░░░░░▓▓ ░ ░ ░ ▒ ................................ +................................░░░░░░░░░▒ ░░░░░░░░░ ░ ░▓░░▓▓▓▓▓░▓▓▓░░░░░ ░ ░░ ░░ ░ ▒ ................................ +................................░░░░░░░░▒▒ ░░░░░░░ ░░ ▓▓▓▓▓▓▓▓▓░░ ░░ ░ ░░ ░ ▒ ................................ +................................░░░░░░░░▒▒ ░░░░░░░░░░ ░▓▓▓▓▓▓▓░░░ ░░░ ░ ░ ░ ▒ ................................ +................................░░░░░░░░ ▒ ░░░░░░ ░░░▓▓▓░▓░░░░ ░ ░ ░░ ░ ▒ ................................ +................................░░░░░░░░ ▒ ░░░░░░░ ▓▓ ▓ ░░ ░░░░░░░░░░░░░ ░ ░░ ▓ █▓ ░ ░ ░ ▒▒ ................................. +.................................░░░░░░▒ ▒ ░░░░░░░░ ▓▓██ ▓ ██ ██▓ ▓ ░░░▓░ ░ ░ ░░░░ ▓ ██ ▓█ ▓ ██▓▓ ░░░░ ░ ░ ▒ ................................. +.................................░░░░░░▒ ▒▒ ░░░░░░░░░ ▓██ ▓▓ ▓ ██▓ ▓░░░░▓▓░ ░░░░░░░░ ▓ ▓██ ▓ ▓ ██▓▓ ░░░░░░░ ░ ▒ ................................. +.................................░░░░░░ ▒░ ░░░░░░░▓░░ ▓███ ▓▓▓▓ ███░ ░░░░▓▓░░░░░░░░░░ ░▓██ ▓▓▓ ███▓ ░░▓▓░░ ░ ▒ ▒ ................................. +..................................░░░░░ ▒░ ░░░░▓▓▓▓▓▓░ ███ ██ ░░░░░▓▓▓▓▓░░░░░░░ ███ ████ ░░▓▓▓▓░░ ░ ▒ ▒ ................................. +..................................░░░░░ ▒ ░▒ ░░▓▓▓▓▓▓▓▓▓▓ ██████ ▓▓▓░░ ░░░░▓▓▓▓▓▓░░░░░░░░░▓▓▓ █████ ▓▓▓▓▓▓▓░░░░ ▒▒ ▒ ................................. +..................................░░░░░ ░ ░░ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█░░░░░░░▓▓▓▓▓▓▓░░░░ ░░ ░░▓░▓▓░░░░░░░▓▓▓▓▓▓░░ ▒▒ ▒ ................................. +..................................░░░░░ ░ ░░ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██ ░░░░░░░▓▓▓▓▓▓▓░░░░ ░░░░░ ░░░░░░░░░▓▓▓▓▓░░ ░ ▒▒ ▒ ................................. +..................................░░░░░▒░░▒░░ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░▓▓▓▓▓▓▓▓░░░ ░░░░░░░░░░░░░░░░░░▓▓░░░░ ▒▒ ▒ .................................. +..................................░░░░░▒░░ ░░ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░▓▓▓▓▓▓▓▓▓░░░░ ░░░░░░░░░░░░░░░░░░░░░ ▒▒ ▒ .................................. +..................................░░░░░░░░ ▒░▒ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░▓▓▓░░ ░░░░░ ░░░░░░░░░░░░░░░░░░░░ ▒ ▒ .................................. +..................................░░░░░░░░░░░░ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ░ ░░░░░░░░░░░░░░░ ▒ ▒ .................................. +...................................░░░░░░░░░░░░▒ ▒▒ ▓▓▓▓▓▓▓▓▓▓▓▓▓ ░░░░░░░░░░▒▒ ▒▒▒▒▒ ▒ ▒ ................................... +...................................░░░░░░░░░░░ ░▒ ▒▒▒░░░ ▓▓▓▓▓▓ ░░░░░░░░░░░░░▒▒▒ ▒▒▒▒▒░░░░▒▒ ▒▒▒▒▒▒▒ ▒▒ ▒ ................................... +...................................░░░░░░░░░░░ ░░░ ▒▒▒░░░░░░ ░░░░░ ░░░░░░░░░░▒░▒ ▒▒▒▒▒▒░░░░░░▒▒▒▒▒░▒▒▒▒ ▒▒ ................................... +....................................░░░░░░░░░░░ ░░░░░ ▒▒░░░░░░░░░░░░░░ ░░░░░░░░░ ▒░▒▒ ▒▒▒▒▒░░░░▒▒▒▒▒▒░░▒▒▒ ▒▒▒ .................................... +....................................░░░░░░░░░░░░░░░░░░░ ▒░░░░░░░░░░░ ░░░░░░░░░░░░░░ ▒ ▒▒▒▒▒▒▒░▒▒▒▒▒▒░░░░▒▒▒ ▒▒ .................................... +....................................░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ▒▒▒▒▒▒▒ ▒ ░░░▒▒▒▒ ▒▒▒ .................................... +.....................................░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ▒░▒▒▒ ▒▒▒ ▒░░░░░░░░░░▒ ▒▒▒▒ ▒ ..................................... +.....................................░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒ ░░▒▒▒▒▒▒░░░░░░░░░░░░░▒ ░▒▒▒▒ ▒ ..................................... +.....................................░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒ ▒▒░▒▒▒▒▒▒▒░░░░░░░░░░ ░░▒▒▒▒▒ ▒ ..................................... +.....................................░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒ ░▒▒▒▒▒▒▒▒▒░░▒░░░░░░ ░░▒▒▒▒▒▒ ▒ ..................................... +......................................░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒░░▒░▒▒▒ ▒▒▒▒▒░░░░░░░░░▒▒▒▒▒ ▒ ..................................... +......................................░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒░▒▒▒▒▒ ░░░░░░░░▒▒▒▒▒▒ ▒ ..................................... +......................................░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒░░▒░▒▒▒▒▒▒ ▒░░░░░░░▒▒▒▒▒▒ ▒ ..................................... diff --git a/stalonetray/.stalonetrayrc b/stalonetray/.stalonetrayrc new file mode 100644 index 0000000..71b28d3 --- /dev/null +++ b/stalonetray/.stalonetrayrc @@ -0,0 +1,138 @@ +# vim:filetype=config:tw=80:et +# +# This is sample ~/.stalonetrayrc, resembling default configuration. +# Remember: command line parameters take precedence. +# +# Directives introduced in 0.8 are marked with "NEW in 0.8" +# +#################################################################### +# +# stalonetray understands following directives +# +#################################################################### + +# background # color can be specified as an HTML hex triplet or + # as a name from rgb.txt, note that '#' must be quoted +background "#444444" + +# decorations # set trays window decorations; possible values for + # decspec are: all, title, border, none +decorations none + +# display # as usual + +# dockapp_mode # set dockapp mode, which can be either simple (for + # e.g. OpenBox, wmaker for WindowMaker, or none + # (default). NEW in 0.8. +dockapp_mode none + +# fuzzy_edges [] # enable fuzzy edges and set fuzziness level. level + # can be from 0 (disabled) to 3; this setting works + # with tinting and/or transparent and/or pixmap + # backgrounds +fuzzy_edges 0 + +# geometry # tray's geometry in standard X notation; width and + # height are specified in slot_size multiples +geometry 1x1+1166 + +# grow_gravity # one of N, S, E, W, NW, NE, SW, SE; tray will grow + # in the direction opposite to one specified by + # grow_gravity; if horizontal or vertical + # direction is not specified, tray will not grow in + # that direction +grow_gravity NW + +# icon_gravity # icon placement gravity, one of NW, NE, SW, SE +icon_gravity NW + +# icon_size # specifies dimensions of typical icon slot +icon_size 16 + +# log_level # controls the amount of logging output, level can + # be err (default), info, or trace (enabled only + # when stalonetray configured with --enable-debug) + # NEW in 0.8. +log_level err + +# kludges kludge[,kludge] # enable specific kludges to work around + # non-conforming WMs and/or stalonetray bugs. + # NEW in 0.8. Argument is a + # comma-separated list of + # * fix_window_pos - fix tray window position on + # erroneous moves by WM + # * force_icon_size - ignore resize events on all + # icons; force their size to be equal to + # icon_size + # * use_icon_hints - use icon window hints to + # dtermine icon size +kludges force_icons_size + +# max_geometry # maximal tray dimensions; 0 in width/height means + # no limit +max_geometry 0x0 + +# no_shrink [] # disables shrink-back mode +no_shrink false + +# parent_bg [] # whether to use pseudo-transparency + # (looks better when reparented into smth like FvwmButtons) +parent_bg false + +# pixmap_bg # use pixmap from specified xpm file for (tiled) background +# pixmap_bg /home/user/.stalonetraybg.xpm + +# scrollbars # enable/disable scrollbars; mode is either + # vertical, horizontal, all or none (default) + # NEW in 0.8. +scrollbars none + +# scrollbars-size # scrollbars step in pixels; default is slot_size / 4 +# scrollbars-step 8 + +# scrollbars-step # scrollbars step in pixels; default is slot_size / 2 +# scrollbars-step 32 + +# slot_size # specifies size of icon slot, defaults to + # icon_size NEW in 0.8. + +# skip_taskbar [] # hide tray`s window from the taskbar +skip_taskbar true + +# sticky [] # make a tray`s window sticky across the + # desktops/pages +sticky true + +# tint_color # set tinting color +tint_color white + +# tint_level # set tinting level; level ranges from 0 (disabled) + # to 255 +tint_level 0 + +# transparent [] # whether to use root-transparency (background + # image must be set with Esetroot or compatible utility) +transparent false + +# vertical [] # whether to use vertical layout (horisontal layout + # is used by default) +vertical false + +# window_layer # set the EWMH-compatible window layer; one of: + # bootom, normal, top +window_layer normal + +# window_strut # enable/disable window struts for tray window (to + # avoid converting of tray window by maximized + # windows); mode defines to which screen border tray + # will be attached; it can be either top, bottom, + # left, right, none or auto (default) +window_strut auto + +# window_type # set the EWMH-compatible window type; one of: + # desktop, dock, normal, toolbar, utility +window_type dock + +# xsync [] # whether to operate on X server synchronously (SLOOOOW) +xsync false + diff --git a/sublime-root/.config/sublime-text-2/Packages/Default/Preferences.sublime-settings b/sublime-root/.config/sublime-text-2/Packages/Default/Preferences.sublime-settings new file mode 100644 index 0000000..e71731c --- /dev/null +++ b/sublime-root/.config/sublime-text-2/Packages/Default/Preferences.sublime-settings @@ -0,0 +1,336 @@ +// While you can edit this file, it's best to put your changes in +// "User/Preferences.sublime-settings", which overrides the settings in here. +// +// Settings may also be placed in file type specific options files, for +// example, in Packages/Python/Python.sublime-settings for python files. +{ + // Sets the colors used within the text area + "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", + + // Note that the font_face and font_size are overriden in the platform + // specific settings file, for example, "Preferences (Linux).sublime-settings". + // Because of this, setting them here will have no effect: you must set them + // in your User File Preferences. + "font_face": "gohuFont", + "font_size": 11, + + // Valid options are "no_bold", "no_italic", "no_antialias", "gray_antialias", + // "subpixel_antialias", "no_round" (OS X only) and "directwrite" (Windows only) + "font_options": [], + + // Characters that are considered to separate words + "word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?", + + // Set to false to prevent line numbers being drawn in the gutter + "line_numbers": true, + + // Set to false to hide the gutter altogether + "gutter": true, + + // Spacing between the gutter and the text + "margin": 4, + + // Fold buttons are the triangles shown in the gutter to fold regions of text + "fold_buttons": true, + + // Hides the fold buttons unless the mouse is over the gutter + "fade_fold_buttons": true, + + // Columns in which to display vertical rulers + "rulers": [], + + // Set to true to turn spell checking on by default + "spell_check": false, + + // The number of spaces a tab is considered equal to + "tab_size": 4, + + // Set to true to insert spaces when tab is pressed + "translate_tabs_to_spaces": false, + + // If translate_tabs_to_spaces is true, use_tab_stops will make tab and + // backspace insert/delete up to the next tabstop + "use_tab_stops": true, + + // Set to false to disable detection of tabs vs. spaces on load + "detect_indentation": true, + + // Calculates indentation automatically when pressing enter + "auto_indent": true, + + // Makes auto indent a little smarter, e.g., by indenting the next line + // after an if statement in C. Requires auto_indent to be enabled. + "smart_indent": true, + + // Adds whitespace up to the first open bracket when indenting. Requires + // auto_indent to be enabled. + "indent_to_bracket": false, + + // Trims white space added by auto_indent when moving the caret off the + // line. + "trim_automatic_white_space": true, + + // Disables horizontal scrolling if enabled. + // May be set to true, false, or "auto", where it will be disabled for + // source code, and otherwise enabled. + "word_wrap": false, + + // Set to a value other than 0 to force wrapping at that column rather than the + // window width + "wrap_width": 0, + + // Set to false to prevent word wrapped lines from being indented to the same + // level + "indent_subsequent_lines": true, + + // Draws text centered in the window rather than left aligned + "draw_centered": false, + + // Controls auto pairing of quotes, brackets etc + "auto_match_enabled": true, + + // Word list to use for spell checking + "dictionary": "Packages/Language - English/en_US.dic", + + // Set to true to draw a border around the visible rectangle on the minimap. + // The color of the border will be determined by the "minimapBorder" key in + // the color scheme + "draw_minimap_border": false, + + // If enabled, will highlight any line with a caret + "highlight_line": false, + + // Valid values are "smooth", "phase", "blink", "wide" and "solid". + "caret_style": "smooth", + + // Set to false to disable underlining the brackets surrounding the caret + "match_brackets": true, + + // Set to false if you'd rather only highlight the brackets when the caret is + // next to one + "match_brackets_content": true, + + // Set to false to not highlight square brackets. This only takes effect if + // match_brackets is true + "match_brackets_square": true, + + // Set to false to not highlight curly brackets. This only takes effect if + // match_brackets is true + "match_brackets_braces": true, + + // Set to false to not highlight angle brackets. This only takes effect if + // match_brackets is true + "match_brackets_angle": false, + + // Enable visualization of the matching tag in HTML and XML + "match_tags": true, + + // Highlights other occurrences of the currently selected text + "match_selection": true, + + // Additional spacing at the top of each line, in pixels + "line_padding_top": 0, + + // Additional spacing at the bottom of each line, in pixels + "line_padding_bottom": 0, + + // Set to false to disable scrolling past the end of the buffer. + // On OS X, this value is overridden in the platform specific settings, so + // you'll need to place this line in your user settings to override it. + "scroll_past_end": true, + + // This controls what happens when pressing up or down when on the first + // or last line. + // On OS X, this value is overridden in the platform specific settings, so + // you'll need to place this line in your user settings to override it. + "move_to_limit_on_up_down": false, + + // Set to "none" to turn off drawing white space, "selection" to draw only the + // white space within the selection, and "all" to draw all white space + "draw_white_space": "selection", + + // Set to false to turn off the indentation guides. + // The color and width of the indent guides may be customized by editing + // the corresponding .tmTheme file, and specifying the colors "guide", + // "activeGuide" and "stackGuide" + "draw_indent_guides": true, + + // Controls how the indent guides are drawn, valid options are + // "draw_normal" and "draw_active". draw_active will draw the indent + // guides containing the caret in a different color. + "indent_guide_options": ["draw_normal"], + + // Set to true to removing trailing white space on save + "trim_trailing_white_space_on_save": false, + + // Set to true to ensure the last line of the file ends in a newline + // character when saving + "ensure_newline_at_eof_on_save": false, + + // Set to true to automatically save files when switching to a different file + // or application + "save_on_focus_lost": false, + + // The encoding to use when the encoding can't be determined automatically. + // ASCII, UTF-8 and UTF-16 encodings will be automatically detected. + "fallback_encoding": "Western (Windows 1252)", + + // Encoding used when saving new files, and files opened with an undefined + // encoding (e.g., plain ascii files). If a file is opened with a specific + // encoding (either detected or given explicitly), this setting will be + // ignored, and the file will be saved with the encoding it was opened + // with. + "default_encoding": "UTF-8", + + // Files containing null bytes are opened as hexadecimal by default + "enable_hexadecimal_encoding": true, + + // Determines what character(s) are used to terminate each line in new files. + // Valid values are 'system' (whatever the OS uses), 'windows' (CRLF) and + // 'unix' (LF only). + "default_line_ending": "system", + + // When enabled, pressing tab will insert the best matching completion. + // When disabled, tab will only trigger snippets or insert a tab. + // Shift+tab can be used to insert an explicit tab when tab_completion is + // enabled. + "tab_completion": true, + + // Enable auto complete to be triggered automatically when typing. + "auto_complete": true, + + // The maximum file size where auto complete will be automatically triggered. + "auto_complete_size_limit": 4194304, + + // The delay, in ms, before the auto complete window is shown after typing + "auto_complete_delay": 50, + + // Controls what scopes auto complete will be triggered in + "auto_complete_selector": "source - comment", + + // Additional situations to trigger auto complete + "auto_complete_triggers": [ {"selector": "text.html", "characters": "<"} ], + + // By default, auto complete will commit the current completion on enter. + // This setting can be used to make it complete on tab instead. + // Completing on tab is generally a superior option, as it removes + // ambiguity between committing the completion and inserting a newline. + "auto_complete_commit_on_tab": false, + + // Controls if auto complete is shown when snippet fields are active. + // Only relevant if auto_complete_commit_on_tab is true. + "auto_complete_with_fields": false, + + // By default, shift+tab will only unindent if the selection spans + // multiple lines. When pressing shift+tab at other times, it'll insert a + // tab character - this allows tabs to be inserted when tab_completion is + // enabled. Set this to true to make shift+tab always unindent, instead of + // inserting tabs. + "shift_tab_unindent": false, + + // If true, the copy and cut commands will operate on the current line + // when the selection is empty, rather than doing nothing. + "copy_with_empty_selection": true, + + // If true, the selected text will be copied into the find panel when it's + // shown. + // On OS X, this value is overridden in the platform specific settings, so + // you'll need to place this line in your user settings to override it. + "find_selected_text": true, + + // When drag_text is enabled, clicking on selected text will begin a + // drag-drop operation + "drag_text": true, + + // + // User Interface Settings + // + + // The theme controls the look of Sublime Text's UI (buttons, tabs, scroll bars, etc) + "theme": "Default.sublime-theme", + + // Set to 0 to disable smooth scrolling. Set to a value between 0 and 1 to + // scroll slower, or set to larger than 1 to scroll faster + "scroll_speed": 1.0, + + // Controls side bar animation when expanding or collapsing folders + "tree_animation_enabled": true, + + // Makes tabs with modified files more visible + "highlight_modified_tabs": false, + + "show_tab_close_buttons": true, + + // Show folders in the side bar in bold + "bold_folder_labels": false, + + // OS X 10.7 only: Set to true to disable Lion style full screen support. + // Sublime Text must be restarted for this to take effect. + "use_simple_full_screen": false, + + // OS X only. Valid values are true, false, and "auto". Auto will enable + // the setting when running on a screen 2880 pixels or wider (i.e., a + // Retina display). When this setting is enabled, OpenGL is used to + // accelerate drawing. Sublime Text must be restarted for changes to take + // effect. + "gpu_window_buffer": "auto", + + // Valid values are "system", "enabled" and "disabled" + "overlay_scroll_bars": "system", + + // + // Application Behavior Settings + // + + // Exiting the application with hot_exit enabled will cause it to close + // immediately without prompting. Unsaved modifications and open files will + // be preserved and restored when next starting. + // + // Closing a window with an associated project will also close the window + // without prompting, preserving unsaved changes in the workspace file + // alongside the project. + "hot_exit": true, + + // remember_open_files makes the application start up with the last set of + // open files. Changing this to false will have no effect if hot_exit is + // true + "remember_open_files": true, + + // OS X only: When files are opened from finder, or by dragging onto the + // dock icon, this controls if a new window is created or not. + "open_files_in_new_window": true, + + // OS X only: This controls if an empty window is created at startup or not. + "create_window_at_startup": true, + + // Set to true to close windows as soon as the last file is closed, unless + // there's a folder open within the window. This is always enabled on OS X, + // changing it here won't modify the behavior. + "close_windows_when_empty": false, + + // Show the full path to files in the title bar. + // On OS X, this value is overridden in the platform specific settings, so + // you'll need to place this line in your user settings to override it. + "show_full_path": true, + + // Shows the Build Results panel when building. If set to false, the Build + // Results can be shown via the Tools/Build Results menu. + "show_panel_on_build": true, + + // Preview file contents when clicking on a file in the side bar. Double + // clicking or editing the preview will open the file and assign it a tab. + "preview_on_click": true, + + // folder_exclude_patterns and file_exclude_patterns control which files + // are listed in folders on the side bar. These can also be set on a per- + // project basis. + "folder_exclude_patterns": [".svn", ".git", ".hg", "CVS"], + "file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db"], + // These files will still show up in the side bar, but won't be included in + // Goto Anything or Find in Files + "binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"], + + // List any packages to ignore here. When removing entries from this list, + // a restart may be required if the package contains plugins. + "ignored_packages": ["Vintage"] +} diff --git a/sublime-root/.config/sublime-text-2/Packages/User/Preferences.sublime-settings b/sublime-root/.config/sublime-text-2/Packages/User/Preferences.sublime-settings new file mode 100644 index 0000000..b031981 --- /dev/null +++ b/sublime-root/.config/sublime-text-2/Packages/User/Preferences.sublime-settings @@ -0,0 +1,22 @@ +{ + "color_scheme": "Packages/Monokai Extended/Monokai Extended Bright.tmTheme", + "theme": "Brogrammer.sublime-theme", + "font_face": "gohufont", + "font_size": 10, + "ignored_packages": + [ + "Vintage" + ] +} +/* █▓▒░ packages +dotfiles syntax highlighting +gitgutter +handlebars +jshint +monokai extended +package control +php completions kit +sublime codeintel +syntax highlighting for sass +theme - brogrammer +*/ \ No newline at end of file diff --git a/sublime/.config/sublime-text-2/Packages/Default/Preferences.sublime-settings b/sublime/.config/sublime-text-2/Packages/Default/Preferences.sublime-settings new file mode 100644 index 0000000..e71731c --- /dev/null +++ b/sublime/.config/sublime-text-2/Packages/Default/Preferences.sublime-settings @@ -0,0 +1,336 @@ +// While you can edit this file, it's best to put your changes in +// "User/Preferences.sublime-settings", which overrides the settings in here. +// +// Settings may also be placed in file type specific options files, for +// example, in Packages/Python/Python.sublime-settings for python files. +{ + // Sets the colors used within the text area + "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", + + // Note that the font_face and font_size are overriden in the platform + // specific settings file, for example, "Preferences (Linux).sublime-settings". + // Because of this, setting them here will have no effect: you must set them + // in your User File Preferences. + "font_face": "gohuFont", + "font_size": 11, + + // Valid options are "no_bold", "no_italic", "no_antialias", "gray_antialias", + // "subpixel_antialias", "no_round" (OS X only) and "directwrite" (Windows only) + "font_options": [], + + // Characters that are considered to separate words + "word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?", + + // Set to false to prevent line numbers being drawn in the gutter + "line_numbers": true, + + // Set to false to hide the gutter altogether + "gutter": true, + + // Spacing between the gutter and the text + "margin": 4, + + // Fold buttons are the triangles shown in the gutter to fold regions of text + "fold_buttons": true, + + // Hides the fold buttons unless the mouse is over the gutter + "fade_fold_buttons": true, + + // Columns in which to display vertical rulers + "rulers": [], + + // Set to true to turn spell checking on by default + "spell_check": false, + + // The number of spaces a tab is considered equal to + "tab_size": 4, + + // Set to true to insert spaces when tab is pressed + "translate_tabs_to_spaces": false, + + // If translate_tabs_to_spaces is true, use_tab_stops will make tab and + // backspace insert/delete up to the next tabstop + "use_tab_stops": true, + + // Set to false to disable detection of tabs vs. spaces on load + "detect_indentation": true, + + // Calculates indentation automatically when pressing enter + "auto_indent": true, + + // Makes auto indent a little smarter, e.g., by indenting the next line + // after an if statement in C. Requires auto_indent to be enabled. + "smart_indent": true, + + // Adds whitespace up to the first open bracket when indenting. Requires + // auto_indent to be enabled. + "indent_to_bracket": false, + + // Trims white space added by auto_indent when moving the caret off the + // line. + "trim_automatic_white_space": true, + + // Disables horizontal scrolling if enabled. + // May be set to true, false, or "auto", where it will be disabled for + // source code, and otherwise enabled. + "word_wrap": false, + + // Set to a value other than 0 to force wrapping at that column rather than the + // window width + "wrap_width": 0, + + // Set to false to prevent word wrapped lines from being indented to the same + // level + "indent_subsequent_lines": true, + + // Draws text centered in the window rather than left aligned + "draw_centered": false, + + // Controls auto pairing of quotes, brackets etc + "auto_match_enabled": true, + + // Word list to use for spell checking + "dictionary": "Packages/Language - English/en_US.dic", + + // Set to true to draw a border around the visible rectangle on the minimap. + // The color of the border will be determined by the "minimapBorder" key in + // the color scheme + "draw_minimap_border": false, + + // If enabled, will highlight any line with a caret + "highlight_line": false, + + // Valid values are "smooth", "phase", "blink", "wide" and "solid". + "caret_style": "smooth", + + // Set to false to disable underlining the brackets surrounding the caret + "match_brackets": true, + + // Set to false if you'd rather only highlight the brackets when the caret is + // next to one + "match_brackets_content": true, + + // Set to false to not highlight square brackets. This only takes effect if + // match_brackets is true + "match_brackets_square": true, + + // Set to false to not highlight curly brackets. This only takes effect if + // match_brackets is true + "match_brackets_braces": true, + + // Set to false to not highlight angle brackets. This only takes effect if + // match_brackets is true + "match_brackets_angle": false, + + // Enable visualization of the matching tag in HTML and XML + "match_tags": true, + + // Highlights other occurrences of the currently selected text + "match_selection": true, + + // Additional spacing at the top of each line, in pixels + "line_padding_top": 0, + + // Additional spacing at the bottom of each line, in pixels + "line_padding_bottom": 0, + + // Set to false to disable scrolling past the end of the buffer. + // On OS X, this value is overridden in the platform specific settings, so + // you'll need to place this line in your user settings to override it. + "scroll_past_end": true, + + // This controls what happens when pressing up or down when on the first + // or last line. + // On OS X, this value is overridden in the platform specific settings, so + // you'll need to place this line in your user settings to override it. + "move_to_limit_on_up_down": false, + + // Set to "none" to turn off drawing white space, "selection" to draw only the + // white space within the selection, and "all" to draw all white space + "draw_white_space": "selection", + + // Set to false to turn off the indentation guides. + // The color and width of the indent guides may be customized by editing + // the corresponding .tmTheme file, and specifying the colors "guide", + // "activeGuide" and "stackGuide" + "draw_indent_guides": true, + + // Controls how the indent guides are drawn, valid options are + // "draw_normal" and "draw_active". draw_active will draw the indent + // guides containing the caret in a different color. + "indent_guide_options": ["draw_normal"], + + // Set to true to removing trailing white space on save + "trim_trailing_white_space_on_save": false, + + // Set to true to ensure the last line of the file ends in a newline + // character when saving + "ensure_newline_at_eof_on_save": false, + + // Set to true to automatically save files when switching to a different file + // or application + "save_on_focus_lost": false, + + // The encoding to use when the encoding can't be determined automatically. + // ASCII, UTF-8 and UTF-16 encodings will be automatically detected. + "fallback_encoding": "Western (Windows 1252)", + + // Encoding used when saving new files, and files opened with an undefined + // encoding (e.g., plain ascii files). If a file is opened with a specific + // encoding (either detected or given explicitly), this setting will be + // ignored, and the file will be saved with the encoding it was opened + // with. + "default_encoding": "UTF-8", + + // Files containing null bytes are opened as hexadecimal by default + "enable_hexadecimal_encoding": true, + + // Determines what character(s) are used to terminate each line in new files. + // Valid values are 'system' (whatever the OS uses), 'windows' (CRLF) and + // 'unix' (LF only). + "default_line_ending": "system", + + // When enabled, pressing tab will insert the best matching completion. + // When disabled, tab will only trigger snippets or insert a tab. + // Shift+tab can be used to insert an explicit tab when tab_completion is + // enabled. + "tab_completion": true, + + // Enable auto complete to be triggered automatically when typing. + "auto_complete": true, + + // The maximum file size where auto complete will be automatically triggered. + "auto_complete_size_limit": 4194304, + + // The delay, in ms, before the auto complete window is shown after typing + "auto_complete_delay": 50, + + // Controls what scopes auto complete will be triggered in + "auto_complete_selector": "source - comment", + + // Additional situations to trigger auto complete + "auto_complete_triggers": [ {"selector": "text.html", "characters": "<"} ], + + // By default, auto complete will commit the current completion on enter. + // This setting can be used to make it complete on tab instead. + // Completing on tab is generally a superior option, as it removes + // ambiguity between committing the completion and inserting a newline. + "auto_complete_commit_on_tab": false, + + // Controls if auto complete is shown when snippet fields are active. + // Only relevant if auto_complete_commit_on_tab is true. + "auto_complete_with_fields": false, + + // By default, shift+tab will only unindent if the selection spans + // multiple lines. When pressing shift+tab at other times, it'll insert a + // tab character - this allows tabs to be inserted when tab_completion is + // enabled. Set this to true to make shift+tab always unindent, instead of + // inserting tabs. + "shift_tab_unindent": false, + + // If true, the copy and cut commands will operate on the current line + // when the selection is empty, rather than doing nothing. + "copy_with_empty_selection": true, + + // If true, the selected text will be copied into the find panel when it's + // shown. + // On OS X, this value is overridden in the platform specific settings, so + // you'll need to place this line in your user settings to override it. + "find_selected_text": true, + + // When drag_text is enabled, clicking on selected text will begin a + // drag-drop operation + "drag_text": true, + + // + // User Interface Settings + // + + // The theme controls the look of Sublime Text's UI (buttons, tabs, scroll bars, etc) + "theme": "Default.sublime-theme", + + // Set to 0 to disable smooth scrolling. Set to a value between 0 and 1 to + // scroll slower, or set to larger than 1 to scroll faster + "scroll_speed": 1.0, + + // Controls side bar animation when expanding or collapsing folders + "tree_animation_enabled": true, + + // Makes tabs with modified files more visible + "highlight_modified_tabs": false, + + "show_tab_close_buttons": true, + + // Show folders in the side bar in bold + "bold_folder_labels": false, + + // OS X 10.7 only: Set to true to disable Lion style full screen support. + // Sublime Text must be restarted for this to take effect. + "use_simple_full_screen": false, + + // OS X only. Valid values are true, false, and "auto". Auto will enable + // the setting when running on a screen 2880 pixels or wider (i.e., a + // Retina display). When this setting is enabled, OpenGL is used to + // accelerate drawing. Sublime Text must be restarted for changes to take + // effect. + "gpu_window_buffer": "auto", + + // Valid values are "system", "enabled" and "disabled" + "overlay_scroll_bars": "system", + + // + // Application Behavior Settings + // + + // Exiting the application with hot_exit enabled will cause it to close + // immediately without prompting. Unsaved modifications and open files will + // be preserved and restored when next starting. + // + // Closing a window with an associated project will also close the window + // without prompting, preserving unsaved changes in the workspace file + // alongside the project. + "hot_exit": true, + + // remember_open_files makes the application start up with the last set of + // open files. Changing this to false will have no effect if hot_exit is + // true + "remember_open_files": true, + + // OS X only: When files are opened from finder, or by dragging onto the + // dock icon, this controls if a new window is created or not. + "open_files_in_new_window": true, + + // OS X only: This controls if an empty window is created at startup or not. + "create_window_at_startup": true, + + // Set to true to close windows as soon as the last file is closed, unless + // there's a folder open within the window. This is always enabled on OS X, + // changing it here won't modify the behavior. + "close_windows_when_empty": false, + + // Show the full path to files in the title bar. + // On OS X, this value is overridden in the platform specific settings, so + // you'll need to place this line in your user settings to override it. + "show_full_path": true, + + // Shows the Build Results panel when building. If set to false, the Build + // Results can be shown via the Tools/Build Results menu. + "show_panel_on_build": true, + + // Preview file contents when clicking on a file in the side bar. Double + // clicking or editing the preview will open the file and assign it a tab. + "preview_on_click": true, + + // folder_exclude_patterns and file_exclude_patterns control which files + // are listed in folders on the side bar. These can also be set on a per- + // project basis. + "folder_exclude_patterns": [".svn", ".git", ".hg", "CVS"], + "file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db"], + // These files will still show up in the side bar, but won't be included in + // Goto Anything or Find in Files + "binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"], + + // List any packages to ignore here. When removing entries from this list, + // a restart may be required if the package contains plugins. + "ignored_packages": ["Vintage"] +} diff --git a/sublime/.config/sublime-text-2/Packages/User/Preferences.sublime-settings b/sublime/.config/sublime-text-2/Packages/User/Preferences.sublime-settings new file mode 100644 index 0000000..9e5292a --- /dev/null +++ b/sublime/.config/sublime-text-2/Packages/User/Preferences.sublime-settings @@ -0,0 +1,22 @@ +{ + "color_scheme": "Packages/Monokai Extended/Monokai Extended Bright.tmTheme", + "theme": "greybeard.sublime-theme", + "font_face": "gohufont", + "font_size": 10, + "ignored_packages": + [ + "Vintage" + ] +} +/* █▓▒░ packages +dotfiles syntax highlighting +gitgutter +greybeard theme +handlebars +jshint +monokai extended +package control +php completions kit +sublime codeintel +syntax highlighting for sass +*/ \ No newline at end of file diff --git a/sys/code/sys/gfx-intel b/sys/code/sys/gfx-intel new file mode 100755 index 0000000..804de12 --- /dev/null +++ b/sys/code/sys/gfx-intel @@ -0,0 +1,9 @@ +#!/bin/bash + +integrated=$(echo IGD | sudo tee /sys/kernel/debug/vgaswitcheroo/switch) + +notify-send -t 5000 \ +-i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ +' gfx status +░░▒▒▓▓▓████▓▓▓▒▒░░' \ +" intel powered on" \ No newline at end of file diff --git a/sys/code/sys/gfx-off b/sys/code/sys/gfx-off new file mode 100755 index 0000000..aeb6daf --- /dev/null +++ b/sys/code/sys/gfx-off @@ -0,0 +1,9 @@ +#!/bin/bash + +integrated=$(echo OFF | sudo tee /sys/kernel/debug/vgaswitcheroo/switch) + +notify-send -t 5000 \ +-i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ +' gfx status +░░▒▒▓▓▓████▓▓▓▒▒░░' \ +"unused powered off" \ No newline at end of file diff --git a/sys/code/sys/gfx-on b/sys/code/sys/gfx-on new file mode 100755 index 0000000..57d08d4 --- /dev/null +++ b/sys/code/sys/gfx-on @@ -0,0 +1,9 @@ +#!/bin/bash + +integrated=$(echo ON | sudo tee /sys/kernel/debug/vgaswitcheroo/switch) + +notify-send -t 5000 \ +-i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ +' gfx status +░░▒▒▓▓▓████▓▓▓▒▒░░' \ +" both powered on" \ No newline at end of file diff --git a/sys/code/sys/gfx-radeon b/sys/code/sys/gfx-radeon new file mode 100755 index 0000000..a0db665 --- /dev/null +++ b/sys/code/sys/gfx-radeon @@ -0,0 +1,9 @@ +#!/bin/bash + +integrated=$(echo DIS | sudo tee /sys/kernel/debug/vgaswitcheroo/switch) + +notify-send -t 5000 \ +-i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ +' gfx status +░░▒▒▓▓▓████▓▓▓▒▒░░' \ +"radeon powered on" \ No newline at end of file diff --git a/sys/code/sys/gfx-status b/sys/code/sys/gfx-status new file mode 100755 index 0000000..93d564a --- /dev/null +++ b/sys/code/sys/gfx-status @@ -0,0 +1,39 @@ +#!/bin/bash + +pci_integrated=$(lspci | grep VGA | sed -n '1p' | cut -f 1 -d " ") +pci_discrete=$(lspci | grep VGA | sed -n '2p' | cut -f 1 -d " ") + +integrated=$(cat /sys/kernel/debug/vgaswitcheroo/switch | grep $pci_integrated | grep -o -P ':.:...:') +discrete=$(cat /sys/kernel/debug/vgaswitcheroo/switch | grep $pci_discrete | grep -o -P ':.:...:') + +name_integrated=$(lspci | grep VGA | sed -n '1p' | sed -e "s/.* VGA compatible controller[ :]*//g" | sed -e "s/ Corporation//g" | sed -e "s/ Technologies Inc//g" | sed -e 's/\[[0-9]*\]: //g' | sed -e 's/\[[0-9:a-z]*\]//g' | sed -e 's/(rev [a-z0-9]*)//g' | sed -e "s/ Integrated Graphics Controller//g") +name_discrete=$(lspci | grep VGA | sed -n '2p' | sed -e "s/.* VGA compatible controller[ :]*//g" | sed -e "s/ Corporation//g" | sed -e "s/ Technologies Inc//g" | sed -e 's/\[[0-9]*\]: //g' | sed -e 's/\[[0-9:a-z]*\]//g' | sed -e 's/(rev [a-z0-9]*)//g' | sed -e "s/ Integrated Graphics Controller//g") + +if [ "$integrated" = ":+:Pwr:" ] +then +integrated_condition="on" +elif [ "$integrated" = ": :Pwr:" ] +then +integrated_condition="on" +elif [ "$integrated" = ": :Off:" ] +then +integrated_condition="off" +fi + +if [ "$discrete" = ":+:Pwr:" ] +then +discrete_condition="on" +elif [ "$discrete" = ": :Pwr:" ] +then +discrete_condition="on" +elif [ "$discrete" = ": :Off:" ] +then +discrete_condition="off" +fi + +notify-send -t 5000 \ +-i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ +' gfx status +░░▒▒▓▓███▓▓▒▒░░' \ +" intel = $integrated_condition + radeon = $discrete_condition" \ No newline at end of file diff --git a/sys/code/sys/gitio b/sys/code/sys/gitio new file mode 100755 index 0000000..2c4ff61 --- /dev/null +++ b/sys/code/sys/gitio @@ -0,0 +1,6 @@ +#!/bin/sh +echo -e "repo url:" +read repo +echo -e "short link:" +read link +curl -i http://git.io -F "url=$repo" -F "code=$link" \ No newline at end of file diff --git a/sys/code/sys/goodbye b/sys/code/sys/goodbye new file mode 100755 index 0000000..d08c1a2 --- /dev/null +++ b/sys/code/sys/goodbye @@ -0,0 +1,37 @@ +#!/bin/bash +echo '' +echo ' ██ ██ ' +echo ' ░██ ░██ ' +echo ' ░██ ██████ ██████ █████ ██████ ██████' +echo ' ░██ ░░░░░░██ ░░░██░ ██░░░██░░██░░█░░░░██ ' +echo ' ░██ ███████ ░██ ░███████ ░██ ░ ██ ' +echo ' ░██ ██░░░░██ ░██ ░██░░░░ ░██ ██ ' +echo ' ███░░████████ ░░██ ░░██████░███ ██████' +echo ' ░░░ ░░░░░░░░ ░░ ░░░░░░ ░░░ ░░░░░░ ' +echo '' +OPTIONS='cancel reboot shutdown' +PS3='select option (1-3): ' +select opt in $OPTIONS; +do + if [ "$opt" = "cancel" ]; then + echo '░░▒▒▓▓███▓▓▒▒░░' + echo 'nevermind...' + echo '' + exit + elif [ "$opt" = "reboot" ]; then + echo '░░▒▒▓▓███▓▓▒▒░░' + echo 'rebooting...' + echo '' + systemctl reboot + elif [ "$opt" = "shutdown" ]; then + echo '░░▒▒▓▓███▓▓▒▒░░' + echo 'shuting down...' + echo '' + systemctl poweroff + else + echo '░░▒▒▓▓███▓▓▒▒░░' + echo 'wat?' + echo '' + exit + fi +done \ No newline at end of file diff --git a/sys/code/sys/hash-compare b/sys/code/sys/hash-compare new file mode 100755 index 0000000..49dad54 --- /dev/null +++ b/sys/code/sys/hash-compare @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ "$#" -ne 2 ]; then + echo "please supply two files to diff" +else + sum1=$(md5sum $1) + sum2=$(md5sum $2) + + hash1="${sum1/$1/}" + hash2="${sum2/$2/}" + + if [ "$hash1" == "$hash2" ]; then + echo "identical" + else + echo "different" + fi +fi diff --git a/sys/code/sys/info b/sys/code/sys/info new file mode 100755 index 0000000..d435368 --- /dev/null +++ b/sys/code/sys/info @@ -0,0 +1,3414 @@ +#!/usr/bin/env bash + +# screenFetch - a CLI Bash script to show system/theme info in screenshots + +# Copyright (c) 2010-2014 Brett Bohnenkamper + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Yes, I do realize some of this is horribly ugly coding. Any ideas/suggestions would be +# appreciated by emailing me or by stopping by http://github.com/KittyKatt/screenFetch . You +# could also drop in on my IRC network, SilverIRC, at irc://kittykatt.silverirc.com/me0wz +# to put forth suggestions/ideas. Thank you. + + +LANG=C +LANGUAGE=C +LC_ALL=C + +scriptVersion="3.5.0" + +###################### +# Settings for fetcher +###################### + +# This setting controls what ASCII logo is displayed. Available: Arch Linux (Old and Current Logos), Linux Mint, Ubuntu, Crunchbang, Debian, Raspbian, Gentoo, Mandrake/Mandriva, Slackware, SUSE, Fedora, BSD, OS X and None +# distro="Linux" + +# This sets the information to be displayed. Available: distro, Kernel, DE, WM, Win_theme, Theme, Icons, Font, Background, ASCII. To get just the information, and not a text-art logo, you would take "ASCII" out of the below variable. +#display="distro host kernel uptime pkgs shell res de wm wmtheme gtk disk cpu gpu mem" +display=( distro host kernel uptime pkgs shell res de wm wmtheme gtk cpu gpu mem ) +# Display Type: ASCII or Text +display_type="ASCII" + +# Colors to use for the information found. These are set below according to distribution. If you would like to set your OWN color scheme for these, uncomment the lines below and edit them to your heart's content. +# textcolor="\e[0m" +# labelcolor="\e[1;34m" + +# WM & DE process names +# Removed WM's: compiz +wmnames=( fluxbox openbox blackbox xfwm4 metacity kwin icewm pekwm fvwm dwm awesome wmaker stumpwm musca xmonad i3 ratpoison scrotwm spectrwm wmfs wmii beryl subtle e16 enlightenment sawfish emerald monsterwm dminiwm compiz Finder herbstluftwm notion bspwm cinnamon 2bwm echinus ) +denames=( gnome-session xfce-mcs-manage xfce4-session xfconfd ksmserver lxsession gnome-settings-daemon mate-session mate-settings-daemon Finder ) + +# Screenshot Settings +# This setting lets the script know if you want to take a screenshot or not. 1=Yes 0=No +screenshot= +# You can specify a custom screenshot command here. Just uncomment and edit. Otherwise, we'll be using the default command: scrot -cd3. +# screenCommand="scrot -cd5" +hostshot= +baseurl="http://www.example.com" +serveraddr="www.example.com" +scptimeout="20" +serverdir="/path/to/directory" +shotfile=$(printf "screenFetch-`date +'%Y-%m-%d_%H-%M-%S'`.png") + +# Verbose Setting - Set to 1 for verbose output. +verbosity= + +############################################# +#### CODE No need to edit past here CODE #### +############################################# + +######################################### +# Static Variables and Common Functions # +######################################### +c0="\033[0m" # Reset Text +bold="\033[1m" # Bold Text +underline="\033[4m" # Underline Text +display_index=0 + +# User options +gtk_2line="no" + +# Static Color Definitions +colorize () { + echo -ne "\033[38;5;$1m" +} +getColor() { + if [[ -n "$1" ]]; then + if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then + if [[ ${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -gt 1 ]] || [[ ${BASH_VERSINFO[0]} -gt 4 ]]; then + tmp_color=${1,,} + else + tmp_color="$(tr '[:upper:]' '[:lower:]' <<< ${1})" + fi + else + tmp_color="$(tr '[:upper:]' '[:lower:]' <<< ${1})" + fi + case "${tmp_color}" in + 'black') color_ret='\033[0m\033[30m';; + 'red') color_ret='\033[0m\033[31m';; + 'green') color_ret='\033[0m\033[32m';; + 'brown') color_ret='\033[0m\033[33m';; + 'blue') color_ret='\033[0m\033[34m';; + 'purple') color_ret='\033[0m\033[35m';; + 'cyan') color_ret='\033[0m\033[36m';; + 'light grey') color_ret='\033[0m\033[37m';; + 'dark grey') color_ret='\033[0m\033[1;30m';; + 'light red') color_ret='\033[0m\033[1;31m';; + 'light green') color_ret='\033[0m\033[1;32m';; + 'yellow') color_ret='\033[0m\033[1;33m';; + 'light blue') color_ret='\033[0m\033[1;34m';; + 'light purple') color_ret='\033[0m\033[1;35m';; + 'light cyan') color_ret='\033[0m\033[1;36m';; + 'white') color_ret='\033[0m\033[1;37m';; + # Some 256 colors + 'orange') color_ret="$(colorize '202')";; + esac + [[ -n "${color_ret}" ]] && echo "${color_ret}" + else + : + fi +} + +function verboseOut { + printf "\033[1;31m:: \033[0m$1\n" +} + +function errorOut { + printf "\033[1;37m[[ \033[1;31m! \033[1;37m]] \033[0m$1\n" +} +function stderrOut { + while IFS='' read -r line; do printf "\033[1;37m[[ \033[1;31m! \033[1;37m]] \033[0m${line}\n"; done +} + + +#################### +# Color Defines +#################### + +detectColors() { + my_colors=$(printf "$OPTARG" | sed 's/^,/na,/;s/,$/,na/;s/,/ /') + my_lcolor=$(printf "$my_colors" | awk -F' ' '{print $1}') + if [[ "$my_lcolor" != "na" ]]; then + if [[ $(tput colors) -eq "256" ]]; then my_lcolor="\033[38;5;${my_lcolor}m" + else + case $my_lcolor in + 0|00) export my_lcolor=$(getColor 'black');; + 1|01) export my_lcolor=$(getColor 'red');; + 2|02) export my_lcolor=$(getColor 'green');; + 3|03) export my_lcolor=$(getColor 'brown');; + 4|04) export my_lcolor=$(getColor 'blue');; + 5|05) export my_lcolor=$(getColor 'purple');; + 6|06) export my_lcolor=$(getColor 'cyan');; + 7|07) export my_lcolor=$(getColor 'light grey');; + 8|08) export my_lcolor=$(getColor 'dark grey');; + 9|09) export my_lcolor=$(getColor 'light red');; + 10) export my_lcolor=$(getColor 'light green');; + 11) export my_lcolor=$(getColor 'yellow');; + 12) export my_lcolor=$(getColor 'light blue');; + 13) export my_lcolor=$(getColor 'light purple');; + 14) export my_lcolor=$(getColor 'light cyan');; + 15) export my_lcolor=$(getColor 'white');; + *) unset my_lcolor; continue ;; + esac + fi + else + unset my_lcolor + fi + my_hcolor=$(printf "$my_colors" | awk -F' ' '{print $2}') + if [[ "$my_hcolor" != "na" ]]; then + if [[ $(tput colors) -eq "256" ]]; then my_hcolor="\033[38;5;${my_hcolor}m" + else + case $my_hcolor in + 0|00) export my_hcolor=$(getColor 'black');; + 1|01) export my_hcolor=$(getColor 'red');; + 2|02) export my_hcolor=$(getColor 'green');; + 3|03) export my_hcolor=$(getColor 'brown');; + 4|04) export my_hcolor=$(getColor 'blue');; + 5|05) export my_hcolor=$(getColor 'purple');; + 6|06) export my_hcolor=$(getColor 'cyan');; + 7|07) export my_hcolor=$(getColor 'light grey');; + 8|08) export my_hcolor=$(getColor 'dark grey');; + 9|09) export my_hcolor=$(getColor 'light red');; + 10) export my_hcolor=$(getColor 'light green');; + 11) export my_hcolor=$(getColor 'yellow');; + 12) export my_hcolor=$(getColor 'light blue');; + 13) export my_hcolor=$(getColor 'light purple');; + 14) export my_hcolor=$(getColor 'light cyan');; + 15) export my_hcolor=$(getColor 'white');; + *) unset my_hcolor; continue ;; + esac + fi + else + unset my_hcolor + fi +} + + +displayHelp() { + printf "${underline}Usage${c0}:\n" +# printf " screenFetch [OPTIONAL FLAGS]\n\n" + printf " ${0} [OPTIONAL FLAGS]\n\n" + printf "screenFetch - a CLI Bash script to show system/theme info in screenshots.\n\n" + printf "${underline}Supported GNU/Linux Distributions${c0}:\n" + printf " Arch Linux (Old and Current Logos), Antergos, Chakra, CentOS, Debian,\n" + printf " CrunchBang, Raspbian, elementary OS, Fedora, Frugalware, Fuduntu, Gentoo,\n" + printf " Funtoo, Jiyuu Linux, LinuxDeepin, Kali Linux, Mageia, Mandriva, Manjaro,\n" + printf " Linux Mint, LMDE, openSUSE, Parabola GNU/Linux-libre, Peppermint,\n" + printf " Red Hat Enterprise Linux, Sabayon, Scientific Linux, Slackware, SolusOS,\n" + printf " TinyCore, Trisquel, Ubuntu and Viperr.\n\n" + printf "${underline}Other Supported Systems${c0}:\n" + printf " Mac OS X, FreeBSD, DragonFlyBSD, NetBSD, OpenBSD, Android and Cygwin.\n\n" + printf "${underline}Supported Desktop Managers${c0}:\n" + printf " KDE, Gnome, Unity, Xfce, LXDE, Cinnamon, MATE and RazorQt.\n\n" + printf "${underline}Supported Window Managers${c0}:\n" + printf " 2bwm, Awesome, Beryl, Blackbox, Cinnamon, Compiz, dminiwm, dwm, E16, E17,\n" + printf " echinus, Emerald, FluxBox, FVWM, herbstluftwm, IceWM, KWin, Metacity,\n" + printf " monsterwm, Musca, Gala, Mutter, Muffin, Notion, OpenBox, PekWM, Ratpoison,\n" + printf " Sawfish, ScrotWM, SpectrWM, StumpWM, subtle, WindowMaker, WMFS, wmii,\n" + printf " Xfwm4, XMonad and i3.\n\n" + printf "${underline}Options${c0}:\n" + printf " ${bold}-v${c0} Verbose output.\n" + printf " ${bold}-o 'OPTIONS'${c0} Allows for setting script variables on the\n" + printf " command line. Must be in the following format...\n" + printf " 'OPTION1=\"OPTIONARG1\";OPTION2=\"OPTIONARG2\"'\n" + #echo -e " ${bold}-d 'ARGUMENTS'${c0} Allows for setting what information is displayed" + #echo -e " on the command line. Format must be as follows:" + #echo -e " OPTION,OPTION,OPTION,OPTION. Valid options are" + #echo -e " host, distro, kernel, uptime, pkgs, shell, res, de, wm," + #echo -e " wmtheme, gtk, cpu, gpu, mem." + printf " ${bold}-n${c0} Do not display ASCII distribution logo.\n" + printf " ${bold}-N${c0} Strip all color from output.\n" + printf " ${bold}-t${c0} Truncate output based on terminal width (Experimental!).\n" + printf " ${bold}-s(m)${c0} Using this flag tells the script that you want it\n" + printf " to take a screenshot. Use the -m flag if you would like\n" + printf " to move it to a new location afterwards.\n" + printf " ${bold}-c string${c0} You may change the outputted colors with -c. The format is\n" + printf " as follows: [0-9][0-9],[0-9][0-9]. The first argument controls the\n" + printf " ASCII logo colors and the label colors. The second argument\n" + printf " controls the colors of the information found. One argument may be\n" + printf " used without the other.\n" + printf " ${bold}-S 'COMMAND'${c0} Here you can specify a custom screenshot command for\n" + printf " the script to execute. Surrounding quotes are required.\n" + printf " ${bold}-D 'DISTRO'${c0} Here you can specify your distribution for the script\n" + printf " to use. Surrounding quotes are required.\n" + printf " ${bold}-A 'DISTRO'${c0} Here you can specify the distribution art that you want\n" + printf " displayed. This is for when you want your distro\n" + printf " detected but want to display a different logo.\n" + printf " ${bold}-E${c0} Suppress output of errors.\n" + printf " ${bold}-V${c0} Display current script version.\n" + printf " ${bold}-h${c0} Display this help.\n" +} + +##################### +# Begin Flags Phase +##################### + +case $1 in + --help) displayHelp; exit 0;; +esac + + +while getopts ":hsmevVEnNtlS:A:D:o:Bc:d:" flags; do + case $flags in + h) displayHelp; exit 0;; + s) screenshot=1; continue;; + S) screenCommand=$OPTARG; continue;; + m) hostshot=1; continue;; + v) verbosity=1; continue;; + V) + printf $underline"screenFetch"$c0" - Version $scriptVersion\n" + printf "Created by and licensed to Brett Bohnenkamper \n" + printf "OS X porting done almost solely by shrx (https://github.com/shrx) and Hu6.\n\n" + printf "This is free software; see the source for copying conditions. There is NO warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" + exit 0 + ;; + E) errorSuppress="1";; + D) distro=$OPTARG; continue;; + A) asc_distro=$OPTARG; continue;; + t) truncateSet="Yes";; + n) display_type="Text";; + o) overrideOpts=$OPTARG; continue;; + c) detectColors "$OPTARGS"; continue;; + d) overrideDisplay=$OPTARG; continue;; + N) no_color='1';; + :) errorOut "Error: You're missing an argument somewhere. Exiting."; exit 1;; + ?) errorOut "Error: Invalid flag somewhere. Exiting."; exit 1;; + *) errorOut "Error"; exit 1;; + esac +done + +################### +# End Flags Phase +################### + + +#################### +# Override Options +#################### + +if [[ "$overrideOpts" ]]; then + [[ "$verbosity" -eq "1" ]] && verboseOut "Found 'o' flag in syntax. Overriding some script variables..." + OLD_IFS="$IFS" + IFS=";" + for overopt in "$overrideOpts"; do + eval "$overrideOpts" + done + IFS="$OLD_IFS" +fi + + +######################### +# Begin Detection Phase +######################### + +# Distro Detection - Begin +detectdistro () { + if [[ -z $distro ]]; then + distro="Unknown" + + # LSB Release Check + if type -p lsb_release >/dev/null 2>&1; then + # read distro_detect distro_release distro_codename <<< $(lsb_release -sirc) + distro_detect=( $(lsb_release -sirc) ) + if [[ ${#distro_detect[@]} -eq 3 ]]; then + distro_codename=${distro_detect[2]} + distro_release=${distro_detect[1]} + distro_detect=${distro_detect[0]} + else + for ((i=0; i<${#distro_detect[@]}; i++)); do + if [[ ${distro_detect[$i]} =~ ^[[:digit:]]+((.[[:digit:]]+|[[:digit:]]+|)+)$ ]]; then + distro_release=${distro_detect[$i]} + distro_codename=${distro_detect[@]:$(($i+1)):${#distro_detect[@]}+1} + distro_detect=${distro_detect[@]:0:${i}} + break 1 + elif [[ ${distro_detect[$i]} =~ [Nn]/[Aa] || ${distro_detect[$i]} == "rolling" ]]; then + distro_release=${distro_detect[$i]} + distro_codename=${distro_detect[@]:$(($i+1)):${#distro_detect[@]}+1} + distro_detect=${distro_detect[@]:0:${i}} + break 1 + fi + done + fi + + if [[ "${distro_detect}" == "archlinux" || "${distro_detect}" == "Arch Linux" || "${distro_detect}" == "arch" || "${distro_detect}" == "Arch" || "${distro_detect}" == "archarm" ]]; then + distro="Arch Linux" + distro_release="n/a" + if grep -q 'antergos' /etc/os-release; then + distro="Antergos" + distro_release="n/a" + fi + elif [[ "${distro_detect}" == "Chakra" ]]; then + distro="Chakra" + distro_release=null + elif [[ "${distro_detect}" == "CentOS" ]]; then + distro="CentOS" + elif [[ "${distro_detect}" == "Debian" ]]; then + if [[ -f /etc/crunchbang-lsb-release || -f /etc/lsb-release-crunchbang ]]; then + distro="CrunchBang" + distro_release=$(awk -F'=' '/^DISTRIB_RELEASE=/ {print $2}' /etc/lsb-release-crunchbang) + distro_codename=$(awk -F'=' '/^DISTRIB_DESCRIPTION=/ {print $2}' /etc/lsb-release-crunchbang) + elif [[ -f /etc/os-release ]]; then + if [[ "$(cat /etc/os-release)" =~ "Raspbian" ]]; then + distro="Raspbian" + distro_release=$(awk -F'=' '/^PRETTY_NAME=/ {print $2}' /etc/os-release) + else + distro="Debian" + fi + else + distro="Debian" + fi + elif [[ "${distro_detect}" == "elementary" || "${distro_detect}" == "elementary OS" ]]; then + distro="elementary OS" + elif [[ "${distro_detect}" == "KaOS" || "${distro_detect}" == "kaos" ]]; then + distro="KaOS" + elif [[ "${distro_detect}" == "Fedora" ]]; then + distro="Fedora" + elif [[ "${distro_detect}" == "frugalware" ]]; then + distro="Frugalware" + distro_codename=null + distro_release=null + elif [[ "${distro_detect}" == "Fuduntu" ]]; then + distro="Fuduntu" + distro_codename=null + elif [[ "${distro_detect}" == "Gentoo" ]]; then + if [[ "$(lsb_release -sd)" =~ "Funtoo" ]]; then + distro="Funtoo" + else + distro="Gentoo" + fi + elif [[ "${distro_detect}" == "Jiyuu Linux" ]]; then + distro="Jiyuu Linux" + elif [[ "${distro_detect}" == "LinuxDeepin" ]]; then + distro="LinuxDeepin" + distro_codename=null + elif [[ "${distro_detect}" == "Debian Kali Linux" ]]; then + distro="Kali Linux" + elif [[ "${distro_detect}" == "Mageia" ]]; then + distro="Mageia" + elif [[ "$distro_detect" == "MandrivaLinux" ]]; then + distro="Mandriva" + if [[ "${distro_codename}" == "turtle" ]]; then + distro="Mandriva-${distro_release}" + distro_codename=null + elif [[ "${distro_codename}" == "Henry_Farman" ]]; then + distro="Mandriva-${distro_release}" + distro_codename=null + elif [[ "${distro_codename}" == "Farman" ]]; then + distro="Mandriva-${distro_release}" + distro_codename=null + elif [[ "${distro_codename}" == "Adelie" ]]; then + distro="Mandriva-${distro_release}" + distro_codename=null + elif [[ "${distro_codename}" == "pauillac" ]]; then + distro="Mandriva-${distro_release}" + distro_codename=null + fi + elif [[ "${distro_detect}" == "ManjaroLinux" ]]; then + distro="Manjaro" + elif [[ "${distro_detect}" == "LinuxMint" ]]; then + distro="Mint" + if [[ "${distro_codename}" == "debian" ]]; then + distro="LMDE" + distro_codename="n/a" + distro_release="n/a" + fi + elif [[ "${distro_detect}" == "SUSE LINUX" || "${distro_detect}" == "openSUSE project" ]]; then + distro="openSUSE" + elif [[ "${distro_detect}" == "Parabola GNU/Linux-libre" || "${distro_detect}" == "Parabola" ]]; then + distro="Parabola GNU/Linux-libre" + distro_codename="n/a" + distro_release="n/a" + elif [[ "${distro_detect}" == "Peppermint" ]]; then + distro="Peppermint" + distro_codename=null + elif [[ "${distro_detect}" == "CentOS" || "${distro_detect}" =~ "RedHatEnterprise" ]]; then + distro="Red Hat Enterprise Linux" + elif [[ "${distro_detect}" == "Sabayon" ]]; then + distro="Sabayon" + elif [[ "${distro_detect}" == "SolusOS" ]]; then + distro="SolusOS" + elif [[ "${distro_detect}" == "Trisquel" ]]; then + distro="Trisquel" + elif [[ "${distro_detect}" == "Ubuntu" ]]; then + distro="Ubuntu" + elif [[ "${distro_detect}" == "Viperr" ]]; then + distro="Viperr" + distro_codename=null + fi + if [[ -n ${distro_release} && ${distro_release} != "n/a" ]]; then distro_more="$distro_release"; fi + if [[ -n ${distro_codename} && ${distro_codename} != "n/a" ]]; then distro_more="$distro_more $distro_codename"; fi + if [[ -n ${distro_more} ]]; then + distro_more="${distro} ${distro_more}" + fi + fi + + # Existing File Check + if [ "$distro" == "Unknown" ]; then + if [ $(uname -o 2>/dev/null) ]; then + if [ `uname -o` == "Cygwin" ]; then distro="Cygwin"; fake_distro="${distro}"; fi + fi + if [ -f /etc/os-release ]; then + distrib_id=$(/dev/null; then + distro="Mac OS X" + elif [[ -f /var/run/dmesg.boot ]]; then + distro=$(awk 'BEGIN { + distro = "Unknown" + } + { + if ($0 ~ /DragonFly/) { + distro = "DragonFlyBSD" + exit + } + else if ($0 ~ /FreeBSD/) { + distro = "FreeBSD" + exit + } + else if ($0 ~ /NetBSD/) { + distro = "NetBSD" + exit + } + else if ($0 ~ /OpenBSD/) { + distro = "OpenBSD" + exit + } + } END { + print distro + }' /var/run/dmesg.boot) + fi + fi + fi + if [[ "${distro}" == "Unknown" ]] && [[ "${OSTYPE}" == "linux-gnu" || "${OSTYPE}" == "linux" ]]; then + if [[ -f /etc/issue ]]; then + distro=$(awk 'BEGIN { + distro = "Unknown" + } + { + if ($0 ~ /"LinuxDeepin"/) { + distro = "LinuxDeepin" + exit + } + else if ($0 ~ /"Parabola GNU\/Linux-libre"/) { + distro = "Parabola GNU/Linux-libre" + exit + } + else if ($0 ~ /"SolusOS"/) { + distro = "SolusOS" + exit + } + } END { + print distro + }' /etc/issue) + fi + fi + if [[ "${distro}" == "Unknown" ]] && [[ "${OSTYPE}" == "linux-gnu" || "${OSTYPE}" == "linux" ]]; then + if [[ -f /etc/system-release ]]; then + distro=$(awk 'BEGIN { + distro = "Unknown" + } + { + if ($0 ~ /"Scientific\ Linux"/) { + distro = "Scientific Linux" + exit + } + } END { + print distro + }' /etc/system-release) + fi + fi + + + + fi + fi + if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then + if [[ ${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -gt 1 ]] || [[ ${BASH_VERSINFO[0]} -gt 4 ]]; then + distro=${distro,,} + else + distro="$(tr '[:upper:]' '[:lower:]' <<< ${distro})" + fi + else + distro="$(tr '[:upper:]' '[:lower:]' <<< ${distro})" + fi + case $distro in + antergos) distro="Antergos" ;; + arch*linux*old) distro="Arch Linux - Old" ;; + arch*linux) distro="Arch Linux" ;; + arch) distro="Arch Linux";; + 'elementary'|'elementary os') distro="elementary OS";; + fedora) distro="Fedora" ;; + mageia) distro="Mageia" ;; + mandriva) distro="Mandriva" ;; + mandrake) distro="Mandrake" ;; + mint) distro="Mint" ;; + kali*linux) distro="Kali Linux" ;; + lmde) distro="LMDE" ;; + opensuse) distro="openSUSE" ;; + ubuntu) distro="Ubuntu" ;; + debian) distro="Debian" ;; + raspbian) distro="Raspbian" ;; + freebsd) distro="FreeBSD" ;; + openbsd) distro="OpenBSD" ;; + dragonflybsd) distro="DragonFlyBSD" ;; + netbsd) distro="NetBSD" ;; + red*hat*) distro="Red Hat Enterprise Linux" ;; + crunchbang) distro="CrunchBang" ;; + gentoo) distro="Gentoo" ;; + funtoo) distro="Funtoo" ;; + slackware) distro="Slackware" ;; + frugalware) distro="Frugalware" ;; + peppermint) distro="Peppermint" ;; + solusos) distro="SolusOS" ;; + parabolagnu|parabolagnu/linux-libre|'parabola gnu/linux-libre'|parabola) distro="Parabola GNU/Linux-libre" ;; + viperr) distro="Viperr" ;; + kaos) distro="KaOS";; + linuxdeepin) distro="LinuxDeepin" ;; + chakra) distro="Chakra" ;; + centos) distro="CentOS";; + mac*os*x) distro="Mac OS X" ;; + fuduntu) distro="Fuduntu" ;; + manjaro) distro="Manjaro" ;; + cygwin) distro="Cygwin" ;; + esac + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding distro...found as '$distro $distro_release'" +} +# Distro Detection - End + +# Host and User detection - Begin +detecthost () { + myUser=${USER} + myHost=${HOSTNAME} + if [[ "${distro}" == "Mac OS X" ]]; then myHost=${myHost/.local/}; fi + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding hostname and user...found as '$myUser@$myHost'" +} + +# Find Number of Running Processes +# processnum="$(( $( ps aux | wc -l ) - 1 ))" + +# Kernel Version Detection - Begin +detectkernel () { + kernel=( $(uname -srm) ) + kernel="${kernel[${#kernel[@]}-1]} ${kernel[@]:0:${#kernel[@]}-1}" + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding kernel version...found as '$kernel'" +} +# Kernel Version Detection - End + + +# Uptime Detection - Begin +detectuptime () { + unset uptime + if [ "$distro" == "Mac OS X" ]; then + boot=`sysctl -n kern.boottime | cut -d "=" -f 2 | cut -d "," -f 1` + now=`date +%s` + uptime=$(($now-$boot)) + elif [[ "${distro}" == "FreeBSD" || "${distro}" == "OpenBSD" ]]; then + if [[ "${distro}" == "FreeBSD" ]]; then boot=`sysctl -n kern.boottime | cut -d "=" -f 2 | cut -d "," -f 1` + else boot=$(sysctl -n kern.boottime); fi + now=$(date +%s) + uptime=$((${now} - ${boot})) + else + if [[ -f /proc/uptime ]]; then + uptime=$(/dev/null 2>&1; then + port_pkgs=$(port installed 2>/dev/null | wc -l) + pkgs=$((${pkgs} + (${port_pkgs} -1))) + fi + + if type -p brew >/dev/null 2>&1; then + brew_pkgs=$(brew list -1 2>/dev/null | wc -l) + pkgs=$((${pkgs} + ${brew_pkgs})) + fi + ;; + 'OpenBSD') + pkgs=$(pkg_info | wc -l | awk '{sub(" ", "");print $1}') + if type -p portmaster >/dev/null 2>&1; then + ports=$(portmaster -l | grep -Eo '[0-9]+ total installed' | sed 's/ total installed//') + pkgs=$((${pkgs} + ${ports})) + fi + ;; + 'FreeBSD') + pkgs=$(if TMPDIR=/dev/null ASSUME_ALWAYS_YES=1 PACKAGESITE=file:///nonexistent pkg info pkg >/dev/null 2>&1; then + pkg info | wc -l | awk '{print $1}'; else pkg_info | wc -l | awk '{sub(" ", "");print $1}'; fi) + ;; + 'Cygwin') cygfix=2; pkgs=$(($(cygcheck -cd | wc -l)-$cygfix)) ;; + esac + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current package count...found as '$pkgs'" +} + + + + +# CPU Detection - Begin +detectcpu () { + REGEXP="-r" + if [ "$distro" == "Mac OS X" ]; then + cpu=$(echo $(sysctl -n machdep.cpu.brand_string)) + REGEXP="-E" + elif [ "$distro" == "FreeBSD" ]; then cpu=$(sysctl -n hw.model) + elif [ "$distro" == "DragonflyBSD" ]; then cpu=$(sysctl -n hw.model) + elif [ "$distro" == "OpenBSD" ]; then cpu=$(sysctl -n hw.model | sed 's/@.*//') + else + cpu=$(awk 'BEGIN{FS=":"} /model name/ { print $2; exit }' /proc/cpuinfo | sed 's/ @/\n/' | head -1) + if [ -z "$cpu" ]; then + cpu=$(awk 'BEGIN{FS=":"} /^cpu/ { gsub(/ +/," ",$2); print $2; exit}' /proc/cpuinfo | sed 's/, altivec supported//;s/^ //') + if [[ $cpu =~ ^(PPC)*9.+ ]]; then + model="IBM PowerPC G5 " + elif [[ $cpu =~ 740/750 ]]; then + model="IBM PowerPC G3 " + elif [[ $cpu =~ ^74.+ ]]; then + model="Motorola PowerPC G4 " + elif [[ "$(cat /proc/cpuinfo)" =~ "BCM2708" ]]; then + model="Broadcom BCM2835 ARM1176JZF-S" + else + model="IBM PowerPC G3 " + fi + cpu="${model}${cpu}" + fi + loc="/sys/devices/system/cpu/cpu0/cpufreq" + if [ -f $loc/bios_limit ];then + cpu_mhz=$(cat $loc/bios_limit | awk '{print $1/1000}') + elif [ -f $loc/scaling_max_freq ];then + cpu_mhz=$(cat $loc/scaling_max_freq | awk '{print $1/1000}') + else + cpu_mhz=$(awk -F':' '/cpu MHz/{ print int($2+.5) }' /proc/cpuinfo | head -n 1) + fi + if [ -n "$cpu_mhz" ];then + if [ $cpu_mhz -gt 999 ];then + cpu_ghz=$(echo $cpu_mhz | awk '{print $1/1000}') + cpu="$cpu @ ${cpu_ghz}GHz" + else + cpu="$cpu @ ${cpu_mhz}MHz" + fi + fi + fi + cpu=$(echo "${cpu}" | sed $REGEXP 's/\([tT][mM]\)|\([Rr]\)|[pP]rocessor//g' | xargs) + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current CPU...found as '$cpu'" +} +# CPU Detection - End + + +# GPU Detection - Begin (EXPERIMENTAL!) +detectgpu () { + if [[ "${distro}" == "FreeBSD" ]]; then + gpu_info=$(pciconf -lv 2> /dev/null | grep -B 4 VGA) + gpu_info=$(echo "${gpu_info}" | grep -E 'device.*=.*') + gpu=$(echo "${gpu_info}" | sed 's/.*device.*= //' | sed "s/'//g") + elif [[ "$distro" != "Mac OS X" ]]; then + if [ -n "$(type -p lspci)" ]; then + gpu_info=$(lspci 2> /dev/null | grep VGA) + gpu=$(echo "$gpu_info" | grep -oE '\[.*\]' | sed 's/\[//;s/\]//') + gpu=$(echo "${gpu}" | sed -n '1h;2,$H;${g;s/\n/, /g;p}') + elif [[ -n "$(type -p glxinfo)" && -z "$gpu" ]]; then + gpu_info=$(glxinfo 2>/dev/null) + gpu=$(echo "$gpu_info" | grep "OpenGL renderer string") + gpu=$(echo "$gpu" | cut -d ':' -f2) + gpu="${gpu:1}" + gpu_info=$(echo "$gpu_info" | grep "OpenGL vendor string") + fi + elif [[ "${distro}" == "Mac OS X" ]]; then + gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {print $2}' | awk '{ printf "%s / ", $0 }' | sed -e 's/\/ $//g') + elif [[ "${distro}" == "Cygwin" ]]; then + gpu=$(wmic path Win32_VideoController get caption) + gpu=$(tail -1 <<< ${gpu}) + fi + + if [ -n "$gpu" ];then + if [ $(echo "$gpu_info" | grep -i nvidia | wc -l) -gt 0 ];then + gpu_info="NVidia " + elif [ $(echo "$gpu_info" | grep -i intel | wc -l) -gt 0 ];then + gpu_info="Intel " + elif [ $(echo "$gpu_info" | grep -i amd | wc -l) -gt 0 ];then + gpu_info="AMD " + elif [[ $(echo "$gpu_info" | grep -i ati | wc -l) -gt 0 || $(echo "$gpu_info" | grep -i radeon | wc -l) -gt 0 ]]; then + gpu_info="ATI " + else + gpu_info=$(echo "$gpu_info" | cut -d ':' -f2) + gpu_info="${gpu_info:1} " + fi + gpu="${gpu}" + else + gpu="Not Found" + fi + + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current GPU...found as '$gpu'" +} +# GPU Detection - End + + +# Disk Usage Detection - Begin +detectdisk () { + diskusage="Unknown" + if type -p df >/dev/null 2>&1; then + if [[ "${distro}" =~ (Free|Net|Open|DragonFly)BSD ]]; then + totaldisk=$(df -h -c 2>/dev/null | tail -1) + elif [[ "${distro}" == "Mac OS X" ]]; then + totaldisk=$(df -H / 2>/dev/null | tail -1) + else + totaldisk=$(df -h --total 2>/dev/null | tail -1) + fi + disktotal=$(awk '{print $2}' <<< "${totaldisk}") + diskused=$(awk '{print $3}' <<< "${totaldisk}") + diskusedper=$(awk '{print $5}' <<< "${totaldisk}") + diskusage="${diskused} / ${disktotal} (${diskusedper})" + diskusage_verbose=$(sed 's/%/%%/' <<< $diskusage) + fi + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current disk usage...found as '$diskusage_verbose'" +} +# Disk Usage Detection - End + + +# Memory Detection - Begin +detectmem () { + hw_mem=0 + free_mem=0 + human=1024 + if [ "$distro" == "Mac OS X" ]; then + totalmem=$(echo "$(sysctl -n hw.memsize)"/${human}^2|bc) + usedmem=$(top -l 1 | awk '{ + if ($0 ~ /PhysMem/) { + for (x=1; x<=NF; x++) { + if ($x ~ /wired/) { + wired = $(x-1) + gsub(/[^0-9]/,"",wired) + } + + if ($x ~ /^active/) { + active = $(x-1) + gsub(/[^0-9]/,"",active) + } + + if ($x ~ /inactive/) { + inactive = $(x-1) + gsub(/[^0-9]/,"",inactive) + } + } + usedmem = wired + active + inactive + print usedmem + exit + } + }') + elif [ "$distro" == "Cygwin" ]; then + total_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo) + totalmem=$((${total_mem}/1024)) + free_mem=$(awk '/MemFree/ { print $2 }' /proc/meminfo) + used_mem=$((${total_mem} - ${free_mem})) + usedmem=$((${used_mem}/1024)) + elif [ "$distro" == "FreeBSD" ]; then + phys_mem=$(sysctl -n hw.physmem) + size_mem=$phys_mem + size_chip=1 + guess_chip=`echo "$size_mem / 8 - 1" | bc` + while [ $guess_chip != 0 ]; do + guess_chip=`echo "$guess_chip / 2" | bc` + size_chip=`echo "$size_chip * 2" | bc` + done + round_mem=`echo "( $size_mem / $size_chip + 1 ) * $size_chip " | bc` + totalmem=$(($round_mem / ($human * $human) )) + pagesize=$(sysctl -n hw.pagesize) + inactive_count=$(sysctl -n vm.stats.vm.v_inactive_count) + inactive_mem=$(($inactive_count * $pagesize)) + cache_count=$(sysctl -n vm.stats.vm.v_cache_count) + cache_mem=$(($cache_count * $pagesize)) + free_count=$(sysctl -n vm.stats.vm.v_free_count) + free_mem=$(($free_count * $pagesize)) + avail_mem=$(($inactive_mem + $cache_mem + $free_mem)) + used_mem=$(($round_mem - $avail_mem)) + usedmem=$(($used_mem / ($human * $human) )) + elif [ "$distro" == "OpenBSD" ]; then + totalmem=$(top -1 1 | awk '/Real:/ {k=split($3,a,"/");print a[k] }' | tr -d 'M') + usedmem=$(top -1 1 | awk '/Real:/ {print $3}' | sed 's/M.*//') + elif [ "$distro" == "NetBSD" ]; then + phys_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo) + totalmem=$((${phys_mem} / $human)) + if grep -q 'Cached' /proc/meminfo; then + cache=$(awk '/Cached/ {print $2}' /proc/meminfo) + usedmem=$((${cache} / $human)) + else + free_mem=$(awk '/MemFree/ { print $2 }' /proc/meminfo) + used_mem=$((${phys_mem} - ${free_mem})) + usedmem=$((${used_mem} / $human)) + fi + else + mem_info=$(1 {print $1}') + shell_type=${shell_type/-} + shell_type=${shell_type//*\/} + fi + fi + + case $shell_type in + bash) + shell_version_data=$( detectshell_ver "$shell_type" "^GNU.bash,.version" "4" ) + ;; + csh) + shell_version_data=$( detectshell_ver "$shell_type" "$shell_type" "3" ) + ;; + dash) + shell_version_data=$( detectshell_ver "$shell_type" "$shell_type" "3" ) + ;; + ksh) + shell_version_data=$( detectshell_ver "$shell_type" "version" "5" ) + ;; + tcsh) + shell_version_data=$( detectshell_ver "$shell_type" "^tcsh" "2" ) + ;; + zsh) + shell_version_data=$( detectshell_ver "$shell_type" "^zsh" "2" ) + ;; + esac + + if [[ -n $shell_version_data ]];then + shell_type="$shell_type $shell_version_data" + fi + + myShell=${shell_type} + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding current shell...found as '$myShell'" +} +# Shell Detection - End + + +# Resolution Detection - Begin +detectres () { + if [[ ${distro} != "Mac OS X" && ${distro} != "Cygwin" ]]; then + if [[ -n ${DISPLAY} ]]; then + if [[ "$distro" =~ "BSD" ]]; then + xResolution=$(xdpyinfo | sed -n 's/.*dim.* \([0-9]*x[0-9]*\) .*/\1/pg' | tr '\n' ' ') + else + xResolution=$(xdpyinfo | sed -n 's/.*dim.* \([0-9]*x[0-9]*\) .*/\1/pg' | sed ':a;N;$!ba;s/\n/ /g') + fi + fi + elif [[ ${distro} == "Mac OS X" ]]; then + xResolution=$(system_profiler SPDisplaysDataType | awk '/Resolution:/ {print $2"x"$4" "}') + if [[ "$(echo $xResolution | wc -l)" -ge 1 ]]; then + xResolution=$(echo $xResolution | tr "\\n" "," | sed 's/\(.*\),/\1/') + fi + elif [[ "${distro}" == "Cygwin" ]]; then + width=($(wmic desktopmonitor get screenwidth | grep -vE '[a-z]+' | tr '\r\n' ' ')) + height=($(wmic desktopmonitor get screenheight | grep -vE '[a-z]+' | tr '\r\n' ' ')) + + xResolution="" + len=${#width[@]} + + delim=" " + for ((i=0;i/dev/null 2>&1;then + xprop_root="$(xprop -root 2>/dev/null)" + if [[ -n ${xprop_root} ]]; then + DE=$(echo "${xprop_root}" | awk 'BEGIN { + de = "Not Present" + } + { + if ($1 ~ /^_DT_SAVE_MODE/) { + de = $NF + gsub(/\"/,"",de) + de = toupper(de) + exit + } + else if ($1 ~/^KDE_SESSION_VERSION/) { + de = "KDE"$NF + exit + } + else if ($1 ~ /^_MARCO/) { + de = "MATE" + exit + } + else if ($1 ~ /^_MUFFIN/) { + de = "Cinnamon" + exit + } + else if ($0 ~ /"xfce4"/) { + de = "XFCE4" + exit + } + else if ($0 ~ /"xfce5"/) { + de = "XFCE5" + exit + } + } END { + print de + }') + fi + fi + + if [[ ${DE} == "Not Present" ]]; then + if [[ -n ${GNOME_DESKTOP_SESSION_ID} ]]; then + DE="Gnome" + if type -p xprop >/dev/null 2>&1; then + if xprop -name "unity-launcher" >/dev/null 2>&1; then + DE="Unity" + elif xprop -name "launcher" >/dev/null 2>&1 && + xprop -name "panel" >/dev/null 2>&1; then + + DE="Unity" + fi + fi + elif [[ -n ${MATE_DESKTOP_SESSION_ID} ]]; then + DE="MATE" + elif [[ -n ${KDE_SESSION_VERSION} ]]; then + if [[ ${KDE_SESSION_VERSION} == '5' ]]; then + DE="KDE5" + elif [[ ${KDE_SESSION_VERSION} == '4' ]]; then + DE="KDE4" + fi + elif [[ -n ${KDE_FULL_SESSION} ]]; then + if [[ ${KDE_FULL_SESSION} == 'true' ]]; then + DE="KDE" + DEver_data=$( kded --version 2>/dev/null ) + DEver=$( grep -si '^KDE:' <<< "$DEver_data" | awk '{print $2}' ) + fi + fi + fi + + if [[ ${DE} != "Not Present" ]]; then + if [[ ${DE} == "Cinnamon" ]]; then + if type -p >/dev/null 2>&1; then + DEver=$(cinnamon --version) + DE="${DE} ${DEver//* }" + fi + elif [[ ${DE} == "Gnome" || ${DE} == "GNOME" ]]; then + if type -p gnome-session-properties >/dev/null 2>&1; then + DEver=$(gnome-session-properties --version) + DE="${DE} ${DEver//* }" + elif type -p gnome-session >/dev/null 2>&1; then + DEver=$(gnome-session --version) + DE="${DE} ${DEver//* }" + fi + elif [[ ${DE} == "KDE4" || ${DE} == "KDE5" ]]; then + if type -p kded${DE#KDE} >/dev/null 2>&1; then + DEver=$(kded${DE#KDE} --version) + for l in $(echo "${DEver// /_}"); do + if [[ ${l//:*} == "KDE_Development_Platform" ]]; then + DEver=${l//*:_} + DE="KDE ${DEver//_*}" + fi; + done + fi + elif [[ ${DE} == "MATE" ]]; then + if type -p mate-session >/dev/null 2>&1; then + DEver=$(mate-session --version) + DE="${DE} ${DEver//* }" + fi + + elif [[ ${DE} == "Unity" ]]; then + if type -p unity >/dev/null 2>&1; then + DEver=$(unity --version) + DE="${DE} ${DEver//* }" + fi + fi + fi + + if [[ "${DE}" == "Not Present" ]]; then + if pgrep -U ${UID} lxsession >/dev/null 2>&1; then + DE="LXDE" + if type -p lxpanel >/dev/null 2>&1; then + DEver=$(lxpanel -v) + DE="${DE} $DEver" + fi + elif pgrep -U ${UID} razor-session >/dev/null 2>&1; then + DE="RazorQt" + fi + fi + fi + elif [[ "${distro}" == "Mac OS X" ]]; then + if ps -U ${USER} | grep [F]inder >/dev/null 2>&1; then + DE="Aqua" + fi + elif [[ "${distro}" == "Cygwin" ]]; then + winver=`wmic os get version | grep -o '^[0-9]'` + if [ "$winver" == "7" ]; then DE='Aero' + elif [ "$winver" == "6" ]; then DE='Aero' + else DE='Luna'; fi + fi + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding desktop environment...found as '$DE'" +} +### DE Detection - End + + +# WM Detection - Begin +detectwm () { + WM="Not Found" + if [[ ${distro} != "Mac OS X" && ${distro} != "Cygwin" ]]; then + if [[ -n ${DISPLAY} ]]; then + for each in "${wmnames[@]}"; do + PID="$(pgrep -U ${UID} $each)" + if [ "$PID" ]; then + case $each in + '2bwm') WM="2bwm";; + 'awesome') WM="Awesome";; + 'beryl') WM="Beryl";; + 'bspwm') WM="bspwm";; + 'blackbox') WM="BlackBox";; + 'cinnamon') WM="Muffin";; + 'compiz') WM="Compiz";; + 'dminiwm') WM="dminiwm";; + 'dwm') WM="dwm";; + 'e16') WM="E16";; + 'emerald') WM="Emerald";; + 'enlightenment') WM="E17";; + 'fluxbox') WM="FluxBox";; + 'fvwm') WM="FVWM";; + 'herbstluftwm') WM="herbstluftwm";; + 'icewm') WM="IceWM";; + 'kwin') WM="KWin";; + 'metacity') WM="Metacity";; + 'monsterwm') WM="monsterwm";; + 'musca') WM="Musca";; + 'notion') WM="Notion";; + 'openbox') WM="OpenBox";; + 'pekwm') WM="PekWM";; + 'ratpoison') WM="Ratpoison";; + 'sawfish') WM="Sawfish";; + 'scrotwm') WM="ScrotWM";; + 'spectrwm') WM="SpectrWM";; + 'stumpwm') WM="StumpWM";; + 'subtle') WM="subtle";; + 'wmaker') WM="WindowMaker";; + 'wmfs') WM="WMFS";; + 'wmii') WM="wmii";; + 'xfwm4') WM="Xfwm4";; + 'i3') WM="i3";; + 'xmonad') WM="XMonad";; + esac + fi + + if [[ ${WM} != "Not Found" ]]; then + break 1 + fi + done + + if [[ ${WM} == "Not Found" ]]; then + if type -p xprop >/dev/null 2>&1; then + WM=$(xprop -root _NET_SUPPORTING_WM_CHECK) + if [[ "$WM" =~ 'not found' ]]; then + WM="Not Found" + elif [[ "$WM" =~ 'Not found' ]]; then + WM="Not Found" + elif [[ "$WM" =~ '[Ii]nvalid window id format' ]]; then + WM="Not Found" + elif [[ "$WM" =~ "no such" ]]; then + WM="Not Found" + else + WM=${WM//* } + WM=$(xprop -id ${WM} 8s _NET_WM_NAME) + WM=$(echo $(WM=${WM//*= }; echo ${WM//\"})) + fi + fi + else + if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then + if [[ ${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -gt 1 ]] || [[ ${BASH_VERSINFO[0]} -gt 4 ]]; then + WM=${WM,,} + else + WM="$(tr '[:upper:]' '[:lower:]' <<< ${WM})" + fi + else + WM="$(tr '[:upper:]' '[:lower:]' <<< ${WM})" + fi + case ${WM} in + '2bwm') WM="2bwm";; + 'awesome') WM="Awesome";; + 'beryl') WM="Beryl";; + 'blackbox') WM="BlackBox";; + 'cinnamon') WM="Cinnamon";; + 'compiz') WM="Compiz";; + 'dminiwm') WM="dminiwm";; + 'dwm') WM="dwm";; + 'e16') WM="E16";; + 'echinus') WM="echinus";; + 'emerald') WM="Emerald";; + 'enlightenment') WM="E17";; + 'fluxbox') WM="FluxBox";; + 'fvwm') WM="FVWM";; + 'herbstluftwm') WM="herbstluftwm";; + 'icewm') WM="IceWM";; + 'kwin') WM="KWin";; + 'metacity') WM="Metacity";; + 'monsterwm') WM="monsterwm";; + 'musca') WM="Musca";; + *'gala'*) WM="Gala";; + 'mutter'*) WM="Mutter";; + 'gnome shell'*) WM="Mutter";; + 'muffin') WM="Muffin";; + 'notion') WM="Notion";; + 'openbox') WM="OpenBox";; + 'pekwm') WM="PekWM";; + 'ratpoison') WM="Ratpoison";; + 'sawfish') WM="Sawfish";; + 'scrotwm') WM="ScrotWM";; + 'spectrwm') WM="SpectrWM";; + 'stumpwm') WM="StumpWM";; + 'subtle') WM="subtle";; + 'wmaker') WM="WindowMaker";; + 'wmfs') WM="WMFS";; + 'wmii') WM="wmii";; + 'xfwm4') WM="Xfwm4";; + 'xmonad') WM="XMonad";; + 'i3') WM="i3";; + esac + fi + fi + elif [[ ${distro} == "Mac OS X" && "${WM}" == "Not Found" ]]; then + if ps -U ${USER} | grep [F]inder >/dev/null 2>&1; then + WM="Quartz Compositor" + fi + elif [[ "${distro}" == "Cygwin" ]]; then + bugn=$(tasklist | grep -o 'bugn' | tr -d '\r \n') + wind=$(tasklist | grep -o 'Windawesome' | tr -d '\r \n') + if [ "$bugn" = "bugn" ]; then WM="bug.n" + elif [ "$wind" = "Windawesome" ]; then WM="Windawesome" + else WM="DWM"; fi + fi + [[ "$verbosity" -eq "1" ]] && verboseOut "Finding window manager...found as '$WM'" +} +# WM Detection - End + + +# WM Theme Detection - BEGIN +detectwmtheme () { + Win_theme="Not Found" + case $WM in + '2bwm') Win_theme="Not Present";; + 'Awesome') if [ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/awesome/rc.lua ]; then Win_theme="$(grep -e '^[^-].*\(theme\|beautiful\).*lua' ${XDG_CONFIG_HOME:-${HOME}/.config}/awesome/rc.lua | grep '[a-zA-Z0-9]\+/[a-zA-Z0-9]\+.lua' -o | cut -d'/' -f1 | head -n1)"; fi;; + 'BlackBox') if [ -f $HOME/.blackboxrc ]; then Win_theme="$(awk -F"/" '/styleFile/ {print $NF}' $HOME/.blackboxrc)"; fi;; + 'Beryl') Win_theme="Not Present";; + 'bspwm') Win_theme="Not Present";; + 'Cinnamon'|'Muffin') + de_theme="$(gsettings get org.cinnamon.theme name)" + de_theme=${de_theme//"'"} + win_theme="$(gsettings get org.cinnamon.desktop.wm.preferences theme)" + win_theme=${win_theme//"'"} + Win_theme="${de_theme} (${win_theme})" + ;; + 'Compiz'|'Mutter'*|'GNOME Shell'|'Gala') + if type -p gsettings >/dev/null 2>&1; then + Win_theme="$(gsettings get org.gnome.desktop.wm.preferences theme)" + Win_theme=${Win_theme//"'"} + elif type -p gconftool-2 >/dev/null 2>&1; then + Win_theme=$(gconftool-2 -g /apps/metacity/general/theme) + fi + ;; + 'dminiwm') Win_theme="Not Present";; + 'dwm') Win_theme="Not Present";; + 'E16') Win_theme="$(awk -F"= " '/theme.name/ {print $2}' $HOME/.e16/e_config--0.0.cfg)";; + 'E17'|'Enlightenment') + if [ "$(which eet 2>/dev/null)" ]; then + econfig="$(eet -d $HOME/.e/e/config/standard/e.cfg config | awk '/value \"file\" string.*.edj/{ print $4 }')" + econfigend="${econfig##*/}" + Win_theme=${econfigend%.*} + fi + ;; + #E17 doesn't store cfg files in text format so for now get the profile as opposed to theme. atyoung + #TODO: Find a way to extract and read E17 .cfg files ( google seems to have nothing ). atyoung + 'E17') Win_theme=${E_CONF_PROFILE};; + 'echinus') Win_theme="Not Present";; + 'Emerald') if [ -f $HOME/.emerald/theme/theme.ini ]; then Win_theme="$(for a in /usr/share/emerald/themes/* $HOME/.emerald/themes/*; do cmp "$HOME/.emerald/theme/theme.ini" "$a/theme.ini" &>/dev/null && basename "$a"; done)"; fi;; + 'Finder') Win_theme="Not Present";; + 'FluxBox'|'Fluxbox') if [ -f $HOME/.fluxbox/init ]; then Win_theme="$(awk -F"/" '/styleFile/ {print $NF}' $HOME/.fluxbox/init)"; fi;; + 'FVWM') Win_theme="Not Present";; + 'i3') Win_theme="Not Present";; + 'IceWM') if [ -f $HOME/.icewm/theme ]; then Win_theme="$(awk -F"[\",/]" '!/#/ {print $2}' $HOME/.icewm/theme)"; fi;; + 'KWin'*) + if [[ -z $KDE_CONFIG_DIR ]]; then + if type -p kde5-config >/dev/null 2>&1; then + KDE_CONFIG_DIR=$(kde5-config --localprefix) + elif type -p kde4-config >/dev/null 2>&1; then + KDE_CONFIG_DIR=$(kde4-config --localprefix) + elif type -p kde-config >/dev/null 2>&1; then + KDE_CONFIG_DIR=$(kde-config --localprefix) + fi + fi + + if [[ -n $KDE_CONFIG_DIR ]]; then + Win_theme=$(awk '/PluginLib=kwin3_/{gsub(/PluginLib=kwin3_/,"",$0); print $0; exit}' $KDE_CONFIG_DIR/share/config/kwinrc) + if [[ -z $Win_theme ]]; then + if [[ -f $KDE_CONFIG_DIR/share/config/kdebugrc ]]; then + Win_theme=$(awk '/(decoration)/ {gsub(/\[/,"",$1); print $1; exit}' $KDE_CONFIG_DIR/share/config/kdebugrc) + if [[ -z $Win_theme ]]; then + Win_theme="Not Found" + fi + else + Win_theme="Not Found" + fi + fi + + if [[ $Win_theme != 'Not Found' ]]; then + if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then + if [[ ${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -gt 1 ]] || [[ ${BASH_VERSINFO[0]} -gt 4 ]]; then + Win_theme=${Win_theme^} + else + Win_theme="$(tr '[:lower:]' '[:upper:]' <<< ${Win_theme:0:1})${Win_theme:1}" + fi + else + Win_theme="$(tr '[:lower:]' '[:upper:]' <<< ${Win_theme:0:1})${Win_theme:1}" + fi + fi + fi + ;; + 'Marco') + Win_theme="$(gsettings get org.mate.Marco.general theme)" + Win_theme=${Win_theme//"'"} + ;; + 'Metacity') if [ "`gconftool-2 -g /apps/metacity/general/theme`" ]; then Win_theme="$(gconftool-2 -g /apps/metacity/general/theme)"; fi ;; + 'monsterwm') Win_theme="Not Present";; + 'Musca') Win_theme="Not Present";;\ + 'Notion') Win_theme="Not Present";; + 'OpenBox'|'Openbox') + if [ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/openbox/rc.xml ]; then + Win_theme="$(awk -F"[<,>]" '/]" '//dev/null 2>&1; then + if [ -f ~/Library/Preferences/com.googlecode.iterm2.plist ]; then + gtkFont=$(str1=$(defaults read com.googlecode.iTerm2|grep -m 1 "Normal Font");echo ${str1:29:${#str1}-29-2}) + fi + fi + else + case $DE in + 'KDE'*) # Desktop Environment found as "KDE" + if type - p kde4-config >/dev/null 2>&1; then + KDE_CONFIG_DIR=$(kde4-config --localprefix) + if [[ -d ${KDE_CONFIG_DIR} ]]; then + if [[ -f "${KDE_CONFIG_DIR}/share/config/kdeglobals" ]]; then + KDE_CONFIG_FILE="${KDE_CONFIG_DIR}/share/config/kdeglobals" + fi + fi + elif type -p kde5-config >/dev/null 2>&1; then + KDE_CONFIG_DIR=$(kde5-config --localprefix) + if [[ -d ${KDE_CONFIG_DIR} ]]; then + if [[ -f "${KDE_CONFIG_DIR}/share/config/kdeglobals" ]]; then + KDE_CONFIG_FILE="${KDE_CONFIG_DIR}/share/config/kdeglobals" + fi + fi + elif type -p kde-config >/dev/null 2>&1; then + KDE_CONFIG_DIR=$(kde-config --localprefix) + if [[ -d ${KDE_CONFIG_DIR} ]]; then + if [[ -f "${KDE_CONFIG_DIR}/share/config/kdeglobals" ]]; then + KDE_CONFIG_FILE="${KDE_CONFIG_DIR}/share/config/kdeglobals" + fi + fi + fi + + if [[ -n ${KDE_CONFIG_FILE} ]]; then + if grep -q "widgetStyle=" "${KDE_CONFIG_FILE}"; then + gtk2Theme=$(awk -F"=" '/widgetStyle=/ {print $2}' "${KDE_CONFIG_FILE}") + elif grep -q "colorScheme=" "${KDE_CONFIG_FILE}"; then + gtk2Theme=$(awk -F"=" '/colorScheme=/ {print $2}' "${KDE_CONFIG_FILE}") + fi + + if grep -q "Theme=" "${KDE_CONFIG_FILE}"; then + gtkIcons=$(awk -F"=" '/Theme=/ {print $2}' "${KDE_CONFIG_FILE}") + fi + + if grep -q "Font=" "${KDE_CONFIG_FILE}"; then + gtkFont=$(awk -F"=" '/font=/ {print $2}' "${KDE_CONFIG_FILE}") + fi + fi + + if [[ -f $HOME/.gtkrc-2.0 ]]; then + gtk2Theme=$(grep '^gtk-theme-name' $HOME/.gtkrc-2.0 | awk -F'=' '{print $2}') + gtk2Theme=${gtk2Theme//\"/} + gtkIcons=$(grep '^gtk-icon-theme-name' $HOME/.gtkrc-2.0 | awk -F'=' '{print $2}') + gtkIcons=${gtkIcons//\"/} + gtkFont=$(grep 'font_name' $HOME/.gtkrc-2.0 | awk -F'=' '{print $2}') + gtkFont=${gtkFont//\"/} + fi + + if [[ -f $HOME/.config/gtk-3.0/settings.ini ]]; then + gtk3Theme=$(grep '^gtk-theme-name=' $HOME/.config/gtk-3.0/settings.ini | awk -F'=' '{print $2}') + fi + ;; + 'Cinnamon'*) # Desktop Environment found as "Cinnamon" + if type -p gsettings >/dev/null 2>&1; then + gtk3Theme=$(gsettings get org.cinnamon.desktop.interface gtk-theme) + gtk3Theme=${gtk3Theme//"'"} + gtk2Theme=${gtk3Theme} + + gtkIcons=$(gsettings get org.cinnamon.desktop.interface icon-theme) + gtkIcons=${gtkIcons//"'"} + gtkFont=$(gsettings get org.cinnamon.desktop.interface font-name) + gtkFont=${gtkFont//"'"} + if [ "$background_detect" == "1" ]; then gtkBackground=$(gsettings get org.gnome.desktop.background picture-uri); fi + fi + ;; + 'GNOME'*|'Gnome'*|'Unity'*) # Desktop Environment found as "GNOME" + if type -p gsettings >/dev/null 2>&1; then + gtk3Theme=$(gsettings get org.gnome.desktop.interface gtk-theme) + gtk3Theme=${gtk3Theme//"'"} + gtk2Theme=${gtk3Theme} + gtkIcons=$(gsettings get org.gnome.desktop.interface icon-theme) + gtkIcons=${gtkIcons//"'"} + gtkFont=$(gsettings get org.gnome.desktop.interface font-name) + gtkFont=${gtkFont//"'"} + if [ "$background_detect" == "1" ]; then gtkBackground=$(gsettings get org.gnome.desktop.background picture-uri); fi + elif type -p gconftool-2 >/dev/null 2>&1; then + gtk2Theme=$(gconftool-2 -g /desktop/gnome/interface/gtk_theme) + gtkIcons=$(gconftool-2 -g /desktop/gnome/interface/icon_theme) + gtkFont=$(gconftool-2 -g /desktop/gnome/interface/font_name) + if [ "$background_detect" == "1" ]; then + gtkBackgroundFull=$(gconftool-2 -g /desktop/gnome/background/picture_filename) + gtkBackground=$(echo "$gtkBackgroundFull" | awk -F"/" '{print $NF}') + fi + fi + ;; + 'MATE'*) # MATE desktop environment + #if type -p gsettings >/dev/null 2&>1; then + gtk3Theme=$(gsettings get org.mate.interface gtk-theme) + # gtk3Theme=${gtk3Theme//"'"} + gtk2Theme=${gtk3Theme} + gtkIcons=$(gsettings get org.mate.interface icon-theme) + gtkIcons=${gtkIcons//"'"} + gtkFont=$(gsettings get org.mate.interface font-name) + gtkFont=${gtkFont//"'"} + #fi + ;; + 'XFCE'*) # Desktop Environment found as "XFCE" + if type -p xfconf-query >/dev/null 2>&1; then + gtk2Theme=$(xfconf-query -c xsettings -p /Net/ThemeName) + fi + + if type -p xfconf-query >/dev/null 2>&1; then + gtkIcons=$(xfconf-query -c xsettings -p /Net/IconThemeName) + fi + + if type -p xfconf-query >/dev/null 2>&1; then + gtkFont=$(xfconf-query -c xsettings -p /Gtk/FontName) + fi + ;; + 'LXDE'*) + if [ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/lxde/config ]; then + lxdeconf="/lxde/config" + elif [ "$distro" == "Trisquel" ]; then + lxdeconf="" + elif [ "$distro" == "FreeBSD" ]; then + lxdeconf="" + else + lxdeconf="/lxsession/LXDE/desktop.conf" + fi + # TODO: Clean me. + if grep -q "sNet\/ThemeName" ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf 2>/dev/null; then + gtk2Theme=$(awk -F'=' '/sNet\/ThemeName/ {print $2}' ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf) + fi + + if grep -q IconThemeName ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf 2>/dev/null; then + gtkIcons=$(awk -F'=' '/sNet\/IconThemeName/ {print $2}' ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf) + fi + + if grep -q FontName ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf 2>/dev/null; then + gtkFont=$(awk -F'=' '/sGtk\/FontName/ {print $2}' ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf) + fi + ;; + + # /home/me/.config/rox.sourceforge.net/ROX-Session/Settings.xml + + *) # Lightweight or No DE Found + if [ -f $HOME/.gtkrc-2.0 ]; then + if grep -q gtk-theme $HOME/.gtkrc-2.0; then + gtk2Theme=$(awk -F'"' '/^gtk-theme/ {print $2}' $HOME/.gtkrc-2.0) + fi + + if grep -q icon-theme $HOME/.gtkrc-2.0; then + gtkIcons=$(awk -F'"' '/^gtk-icon-theme/ {print $2}' $HOME/.gtkrc-2.0) + fi + + if grep -q font $HOME/.gtkrc-2.0; then + gtkFont=$(awk -F'"' '/^gtk-font-name/ {print $2}' $HOME/.gtkrc-2.0) + fi + fi + # $HOME/.gtkrc.mine theme detect only + if [ -f $HOME/.gtkrc.mine ]; then + if grep -q "^include" $HOME/.gtkrc.mine; then + gtk2Theme=$(grep '^include.*gtkrc' $HOME/.gtkrc.mine | awk -F "/" '{ print $5 }') + fi + if grep -q "^gtk-icon-theme-name" $HOME/.gtkrc.mine; then + gtkIcons=$(grep '^gtk-icon-theme-name' $HOME/.gtkrc.mine | awk -F '"' '{print $2}') + fi + fi + # /etc/gtk-2.0/gtkrc compatability + if [[ -f /etc/gtk-2.0/gtkrc && ! -f $HOME/.gtkrc-2.0 && ! -f $HOME/.gtkrc.mine ]]; then + if grep -q gtk-theme-name /etc/gtk-2.0/gtkrc; then + gtk2Theme=$(awk -F'"' '/^gtk-theme-name/ {print $2}' /etc/gtk-2.0/gtkrc) + fi + if grep -q gtk-fallback-theme-name /etc/gtk-2.0/gtkrc && ! [ "x$gtk2Theme" = "x" ]; then + gtk2Theme=$(awk -F'"' '/^gtk-fallback-theme-name/ {print $2}' /etc/gtk-2.0/gtkrc) + fi + + if grep -q icon-theme /etc/gtk-2.0/gtkrc; then + gtkIcons=$(awk -F'"' '/^icon-theme/ {print $2}' /etc/gtk-2.0/gtkrc) + fi + if grep -q gtk-fallback-icon-theme /etc/gtk-2.0/gtkrc && ! [ "x$gtkIcons" = "x" ]; then + gtkIcons=$(awk -F'"' '/^gtk-fallback-icon-theme/ {print $2}' /etc/gtk-2.0/gtkrc) + fi + + if grep -q font /etc/gtk-2.0/gtkrc; then + gtkFont=$(awk -F'"' '/^gtk-font-name/ {print $2}' /etc/gtk-2.0/gtkrc) + fi + fi + + # EXPERIMENTAL gtk3 Theme detection + if [ -f $HOME/.config/gtk-3.0/settings.ini ]; then + if grep -q gtk-theme-name $HOME/.config/gtk-3.0/settings.ini; then + gtk3Theme=$(awk -F'=' '/^gtk-theme-name/ {print $2}' $HOME/.config/gtk-3.0/settings.ini) + fi + fi + + # Proper gtk3 Theme detection + #if type -p gsettings >/dev/null 2>&1; then + # gtk3Theme=$(gsettings get org.gnome.desktop.interface gtk-theme 2>/dev/null) + # gtk3Theme=${gtk3Theme//"'"} + #fi + + # ROX-Filer icon detect only + if [ -a ${XDG_CONFIG_HOME:-${HOME}/.config}/rox.sourceforge.net/ROX-Filer/Options ]; then + gtkIcons=$(awk -F'[>,<]' '/^icon_theme/ {print $3}' ${XDG_CONFIG_HOME:-${HOME}/.config}/rox.sourceforge.net/ROX-Filer/Options) + fi + + # E17 detection + if [ $E_ICON_THEME ]; then + gtkIcons=${E_ICON_THEME} + gtk2Theme="Not available." + gtkFont="Not available." + fi + + # Background Detection (feh, nitrogen) + if [ "$background_detect" == "1" ]; then + if [ -a $HOME/.fehbg ]; then + gtkBackgroundFull=$(awk -F"'" '/feh --bg/{print $2}' $HOME/.fehbg 2>/dev/null) + gtkBackground=$(echo "$gtkBackgroundFull" | awk -F"/" '{print $NF}') + elif [ -a ${XDG_CONFIG_HOME:-${HOME}/.config}/nitrogen/bg-saved.cfg ]; then + gtkBackground=$(awk -F"/" '/file=/ {print $NF}' ${XDG_CONFIG_HOME:-${HOME}/.config}/nitrogen/bg-saved.cfg) + fi + fi + + if [ "$distro" == "Cygwin" -a "$gtkFont" == "Not Found" ]; then + if [ -f $HOME/.minttyrc ]; then + gtkFont="$(cat $HOME/.minttyrc | grep '^Font=.*' | grep -o '[0-9A-z ]*$')" + fi + fi + ;; + esac + fi + if [[ "$verbosity" -eq "1" ]]; then + verboseOut "Finding GTK2 theme...found as '$gtk2Theme'" + verboseOut "Finding GTK3 theme...found as '$gtk3Theme'" + verboseOut "Finding icon theme...found as '$gtkIcons'" + verboseOut "Finding user font...found as '$gtkFont'" + [[ $gtkBackground ]] && verboseOut "Finding background...found as '$gtkBackground'" + fi +} +# GTK Theme\Icon\Font Detection - END + +# Android-specific detections +detectdroid () { + distro_ver=$(getprop ro.build.version.release) + + hostname=$(getprop net.hostname) + + _device=$(getprop ro.product.device) + _model=$(getprop ro.product.model) + device="${_model} (${_device})" + + if [[ $(getprop ro.build.host) == "cyanogenmod" ]]; then + rom=$(getprop ro.cm.version) + else + rom=$(getprop ro.build.display.id) + fi + + baseband=$(getprop ro.baseband) + + cpu=$(grep '^Processor' /proc/cpuinfo) + cpu=$(echo "$cpu" | sed 's/Processor.*: //') +} + + +####################### +# End Detection Phase +####################### + +takeShot () { + if [[ -z $screenCommand ]]; then + if [[ "$hostshot" == "1" ]]; then + shotfiles[1]=${shotfile} + if [ "$distro" == "Mac OS X" ]; then + displays="$(system_profiler SPDisplaysDataType | grep 'Resolution:' | wc -l | tr -d ' ')" + for (( i=2; i<=$displays; i++)) + do + shotfiles[$i]="$(echo ${shotfile} | sed "s/\(.*\)\./\1_${i}./")" + done + printf "Taking shot in 3.. "; sleep 1; printf "2.. "; sleep 1; printf "1.. "; sleep 1; printf "0.\n"; screencapture -x ${shotfiles[@]} &> /dev/null + else scrot -cd3 "${shotfile}"; fi + if [ -f "${shotfile}" ]; then + [[ "$verbosity" -eq "1" ]] && verboseOut "Screenshot saved at '${shotfiles[@]}'" + scp -qo ConnectTimeout="${scptimeout}" "${shotfiles[@]}" "${serveraddr}:${serverdir}" + echo -e "${bold}==>${c0} Your screenshot can be viewed at ${baseurl}/$shotfile" + else + verboseOut "ERROR: Problem saving screenshot to ${shotfiles[@]}" + fi + else + shotfiles[1]=${shotfile} + if [ "$distro" == "Mac OS X" ]; then + displays="$(system_profiler SPDisplaysDataType | grep 'Resolution:' | wc -l | tr -d ' ')" + for (( i=2; i<=$displays; i++)) + do + shotfiles[$i]="$(echo ${shotfile} | sed "s/\(.*\)\./\1_${i}./")" + done + printf "Taking shot in 3.. "; sleep 1; printf "2.. "; sleep 1; printf "1.. "; sleep 1; printf "0.\n"; screencapture -x ${shotfiles[@]} &> /dev/null + else scrot -cd3 "${shotfile}"; fi + if [ -f "${shotfile}" ]; then + [[ "$verbosity" -eq "1" ]] && verboseOut "Screenshot saved at '${shotfiles[@]}'" + else + verboseOut "ERROR: Problem saving screenshot to ${shotfiles[@]}" + fi + fi + else + $screenCommand + fi +} + + + +asciiText () { +# Distro logos and ASCII outputs + if [[ "$fake_distro" ]]; then distro="${fake_distro}"; fi + if [[ "$asc_distro" ]]; then myascii="${asc_distro}" + else myascii="${distro}"; fi + case ${myascii} in + "Arch Linux - Old") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light blue') # Light Blue + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=("$c1 __ %s" +"$c1 _=(SDGJT=_ %s" +"$c1 _GTDJHGGFCVS) %s" +"$c1 ,GTDJGGDTDFBGX0 %s" +"$c1 JDJDIJHRORVFSBSVL$c2-=+=,_ %s" +"$c1 IJFDUFHJNXIXCDXDSV,$c2 \"DEBL %s" +"$c1 [LKDSDJTDU=OUSCSBFLD.$c2 '?ZWX, %s" +"$c1 ,LMDSDSWH' \`DCBOSI$c2 DRDS], %s" +"$c1 SDDFDFH' !YEWD,$c2 )HDROD %s" +"$c1 !KMDOCG &GSU|$c2\_GFHRGO\' %s" +"$c1 HKLSGP'$c2 __$c1\TKM0$c2\GHRBV)' %s" +"$c1 JSNRVW'$c2 __+MNAEC$c1\IOI,$c2\BN' %s" +"$c1 HELK['$c2 __,=OFFXCBGHC$c1\FD) %s" +"$c1 ?KGHE $c2\_-#DASDFLSV='$c1 'EF %s" +"$c1 'EHTI !H %s" +"$c1 \`0F' '! %s" +" %s" +" %s") + ;; + + "Arch Linux") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light cyan') # Light + c2=$(getColor 'cyan') # Dark + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="15" + fulloutput=("${c1} ▒█ " +"${c1} ▒▒██ " +"${c1} ▒▒▒███ " +"${c1} ▒▒▒▒████ " +"${c1} ▒▒▒▒▒█████ " +"${c1} ▒▒▒▒▒▒██████ " +"${c1} ▒▒▒▒▒▒▒███████ " +"${c1} ▒▒▒▒▒▒▒▒████████ " +"${c1} ▒▒▒▒▒▒▒▒▒█████████ " +"${c1} ▒▒▒▒▒▒▒▒▒▒██████████ " +"${c1} ▒▒▒▒▒▒▒▒▒▒▒███████████ " +"${c1} ▒▒▒▒▒▒▒▒▒▒▒▒████████████ " +"${c1} ▒▒▒▒▒▒▒▒▒▒▒ ███████████ " +"${c1} ▒▒▒▒▒▒▒▒▒▒ ██████████ " +"${c1} " +"${c1} %s" +"${c1}%s" +"${c1}%s" +"${c1}%s" +"${c1}%s" +"${c1}%s" +"${c1}%s" +"${c1}%s" +"${c1}%s" +"${c1}%s" +"${c1}%s" +"${c1}%s" +"${c1}%s" +"${c1}%s" +"${c1}%s") + + ;; + + "Mint") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light green') # Bold Green + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=(" %s" +"$c2 MMMMMMMMMMMMMMMMMMMMMMMMMmds+. %s" +"$c2 MMm----::-://////////////oymNMd+\` %s" +"$c2 MMd "$c1"/++ "$c2"-sNMd: %s" +"$c2 MMNso/\` "$c1"dMM \`.::-. .-::.\` "$c2".hMN: %s" +"$c2 ddddMMh "$c1"dMM :hNMNMNhNMNMNh: "$c2"\`NMm %s" +"$c2 NMm "$c1"dMM .NMN/-+MMM+-/NMN\` "$c2"dMM %s" +"$c2 NMm "$c1"dMM -MMm \`MMM dMM. "$c2"dMM %s" +"$c2 NMm "$c1"dMM -MMm \`MMM dMM. "$c2"dMM %s" +"$c2 NMm "$c1"dMM .mmd \`mmm yMM. "$c2"dMM %s" +"$c2 NMm "$c1"dMM\` ..\` ... ydm. "$c2"dMM %s" +"$c2 hMM- "$c1"+MMd/-------...-:sdds "$c2"dMM %s" +"$c2 -NMm- "$c1":hNMNNNmdddddddddy/\` "$c2"dMM %s" +"$c2 -dMNs-"$c1"\`\`-::::-------.\`\` "$c2"dMM %s" +"$c2 \`/dMNmy+/:-------------:/yMMM %s" +"$c2 ./ydNMMMMMMMMMMMMMMMMMMMMM %s" +"$c2 \.MMMMMMMMMMMMMMMMMMM %s" +" %s") + ;; + + + "LMDE") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light green') # Bold Green + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=(" "${c1}"\`.-::---.. %s" +"${c2} .:++++ooooosssoo:. %s" +"${c2} .+o++::. \`.:oos+. %s" +"${c2} :oo:.\` -+oo"${c1}": %s" +"${c2} "${c1}"\`"${c2}"+o/\` ."${c1}"::::::"${c2}"-. .++-"${c1}"\` %s" +"${c2} "${c1}"\`"${c2}"/s/ .yyyyyyyyyyo: +o-"${c1}"\` %s" +"${c2} "${c1}"\`"${c2}"so .ss ohyo\` :s-"${c1}": %s" +"${c2} "${c1}"\`"${c2}"s/ .ss h m myy/ /s\`"${c1}"\` %s" +"${c2} \`s: \`oo s m Myy+-o:\` %s" +"${c2} \`oo :+sdoohyoydyso/. %s" +"${c2} :o. .:////////++: %s" +"${c2} \`/++ "${c1}"-:::::- %s" +"${c2} "${c1}"\`"${c2}"++- %s" +"${c2} "${c1}"\`"${c2}"/+- %s" +"${c2} "${c1}"."${c2}"+/. %s" +"${c2} "${c1}"."${c2}":+-. %s" +"${c2} \`--.\`\` %s" +" %s") + ;; + + "Ubuntu-3color") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light red') # Light Red + c3=$(getColor 'yellow') # Bold Yellow + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi + startline="0" + fulloutput=("$c2 ./+o+- %s" +"$c1 yyyyy- $c2-yyyyyy+ %s" +"$c1 $c1://+//////$c2-yyyyyyo %s" +"$c3 .++ $c1.:/++++++/-$c2.+sss/\` %s" +"$c3 .:++o: $c1/++++++++/:--:/- %s" +"$c3 o:+o+:++.$c1\`..\`\`\`.-/oo+++++/ %s" +"$c3 .:+o:+o/.$c1 \`+sssoo+/ %s" +"$c1 .++/+:$c3+oo+o:\`$c1 /sssooo. %s" +"$c1 /+++//+:$c3\`oo+o$c1 /::--:. %s" +"$c1 \+/+o+++$c3\`o++o$c2 ++////. %s" +"$c1 .++.o+$c3++oo+:\`$c2 /dddhhh. %s" +"$c3 .+.o+oo:.$c2 \`oddhhhh+ %s" +"$c3 \+.++o+o\`\`-\`\`$c2\`\`.:ohdhhhhh+ %s" +"$c3 \`:o+++ $c2\`ohhhhhhhhyo++os: %s" +"$c3 .o:$c2\`.syhhhhhhh/$c3.oo++o\` %s" +"$c2 /osyyyyyyo$c3++ooo+++/ %s" +"$c2 \`\`\`\`\` $c3+oo+++o\: %s" +"$c3 \`oo++. %s") + ;; + + "Ubuntu") + if [[ "$no_color" != "1" ]]; then + if [[ $(tput colors) -eq "256" ]]; then c1=$(getColor 'orange') # Orange if 256 support + else c1=$(getColor 'yellow'); fi # Bold Yellow + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c1="${my_lcolor}"; c1="${my_lcolor}"; fi + startline="0" + fulloutput=("$c1 ./+o+- %s" +"$c1 yyyyy- $c1-yyyyyy+ %s" +"$c1 $c1://+//////$c1-yyyyyyo %s" +"$c1 .++ $c1.:/++++++/-$c1.+sss/\` %s" +"$c1 .:++o: $c1/++++++++/:--:/- %s" +"$c1 o:+o+:++.$c1\`..\`\`\`.-/oo+++++/ %s" +"$c1 .:+o:+o/.$c1 \`+sssoo+/ %s" +"$c1 .++/+:$c1+oo+o:\`$c1 /sssooo. %s" +"$c1 /+++//+:$c1\`oo+o$c1 /::--:. %s" +"$c1 \+/+o+++$c1\`o++o$c1 ++////. %s" +"$c1 .++.o+$c1++oo+:\`$c1 /dddhhh. %s" +"$c1 .+.o+oo:.$c1 \`oddhhhh+ %s" +"$c1 \+.++o+o\`\`-\`\`$c1\`\`.:ohdhhhhh+ %s" +"$c1 \`:o+++ $c1\`ohhhhhhhhyo++os: %s" +"$c1 .o:$c1\`.syhhhhhhh/$c1.oo++o\` %s" +"$c1 /osyyyyyyo$c1++ooo+++/ %s" +"$c1 \`\`\`\`\` $c1+oo+++o\: %s" +"$c1 \`oo++. %s") + ;; + + "Debian") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light red') # Light Red + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=(" $c1 _,met\$\$\$\$\$gg. %s" +" $c1 ,g\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$P. %s" +" $c1 ,g\$\$P\"\" \"\"\"Y\$\$.\". %s" +" $c1 ,\$\$P' \`\$\$\$. %s" +" $c1',\$\$P ,ggs. \`\$\$b: %s" +" $c1\`d\$\$' ,\$P\"\' $c2.$c1 \$\$\$ %s" +" $c1 \$\$P d\$\' $c2,$c1 \$\$P %s" +" $c1 \$\$: \$\$. $c2-$c1 ,d\$\$' %s" +" $c1 \$\$\; Y\$b._ _,d\$P' %s" +" $c1 Y\$\$. $c2\`.$c1\`\"Y\$\$\$\$P\"' %s" +" $c1 \`\$\$b $c2\"-.__ %s" +" $c1 \`Y\$\$ %s" +" $c1 \`Y\$\$. %s" +" $c1 \`\$\$b. %s" +" $c1 \`Y\$\$b. %s" +" $c1 \`\"Y\$b._ %s" +" $c1 \`\"\"\"\" %s" +" %s") + ;; + + + "Raspbian") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light green') # Light Green + c2=$(getColor 'light red') # Light Red + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=(" $c1 .',;:cc;,'. .,;::c:,,. %s" +" $c1,ooolcloooo: 'oooooccloo: %s" +" $c1.looooc;;:ol :oc;;:ooooo' %s" +" $c1;oooooo: ,ooooooc. %s" +" $c1.,:;'. .;:;'. %s" +" $c2.... ..'''''. .... %s" +" $c2.''. ..'''''. ..''. %s" +" $c2.. ..... ..... .. %s" +" $c2. .''''''' .''''''. . %s" +" $c2.'' .'''''''' .'''''''. ''. %s" +" $c2''' ''''''' .'''''' ''' %s" +" $c2.' ........... ... .'. %s" +" $c2.... ''''''''. .''. %s" +" $c2'''''. ''''''''. .''''' %s" +" $c2'''''. .'''''. .'''''. %s" +" $c2..''. . .''.. %s" +" $c2.''''''' %s" +" $c2...... %s") + ;; + + + "CrunchBang") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=(" %s" +"$c2 "$c1"███"$c2" "$c1"███"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"███"$c2" "$c1"███"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"███"$c2" "$c1"███"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"███"$c2" "$c1"███"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"████████████████████████████"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"████████████████████████████"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"███"$c2" "$c1"███"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"███"$c2" "$c1"███"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"███"$c2" "$c1"███"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"███"$c2" "$c1"███"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"████████████████████████████"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"████████████████████████████"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"███"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"███"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"███"$c2" "$c1"███"$c2" "$c1"███"$c2" %s" +"$c2 "$c1"███"$c2" "$c1"███"$c2" "$c1"███"$c2" %s" +"$c2 %s") + ;; + + "Gentoo") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light purple') # Light Purple + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=("$c2 -/oyddmdhs+:. %s" +"$c2 -o"$c1"dNMMMMMMMMNNmhy+"$c2"-\` %s" +"$c2 -y"$c1"NMMMMMMMMMMMNNNmmdhy"$c2"+- %s" +"$c2 \`o"$c1"mMMMMMMMMMMMMNmdmmmmddhhy"$c2"/\` %s" +"$c2 om"$c1"MMMMMMMMMMMN"$c2"hhyyyo"$c1"hmdddhhhd"$c2"o\` %s" +"$c2.y"$c1"dMMMMMMMMMMd"$c2"hs++so/s"$c1"mdddhhhhdm"$c2"+\` %s" +"$c2 oy"$c1"hdmNMMMMMMMN"$c2"dyooy"$c1"dmddddhhhhyhN"$c2"d. %s" +"$c2 :o"$c1"yhhdNNMMMMMMMNNNmmdddhhhhhyym"$c2"Mh %s" +"$c2 .:"$c1"+sydNMMMMMNNNmmmdddhhhhhhmM"$c2"my %s" +"$c2 /m"$c1"MMMMMMNNNmmmdddhhhhhmMNh"$c2"s: %s" +"$c2 \`o"$c1"NMMMMMMMNNNmmmddddhhdmMNhs"$c2"+\` %s" +"$c2 \`s"$c1"NMMMMMMMMNNNmmmdddddmNMmhs"$c2"/. %s" +"$c2 /N"$c1"MMMMMMMMNNNNmmmdddmNMNdso"$c2":\` %s" +"$c2+M"$c1"MMMMMMNNNNNmmmmdmNMNdso"$c2"/- %s" +"$c2yM"$c1"MNNNNNNNmmmmmNNMmhs+/"$c2"-\` %s" +"$c2/h"$c1"MMNNNNNNNNMNdhs++/"$c2"-\` %s" +"$c2\`/"$c1"ohdmmddhys+++/:"$c2".\` %s" +"$c2 \`-//////:--. %s") + ;; + + + "Funtoo") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light purple') # Light Purple + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=(" %s" +" %s" +" %s" +" %s" +"${c1} _______ ____ %s" +"${c1} /MMMMMMM/ /MMMM| _____ _____ %s" +"${c1} __/M${c2}.MMM.${c1}M/_____________|M${c2}.M${c1}MM|/MMMMM\/MMMMM\ %s" +"${c1}|MMMM${c2}MM'${c1}MMMMMMMMMMMMMMMMMMM${c2}MM${c1}MMMM${c2}.MMMM..MMMM.${c1}MM\ %s" +"${c1}|MM${c2}MMMMMMM${c1}/m${c2}MMMMMMMMMMMMMMMMMMMMMM${c1}MMMM${c2}MM${c1}MMMM${c2}MM${c1}MM| %s" +"${c1}|MMMM${c2}MM${c1}MMM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MM${c1}MMMMM${c2}\MMM${c1}MMM${c2}MM${c1}MMMM${c2}MM${c1}MMMM${c2}MM${c1}MM| %s" +"${c1} |MM${c2}MM${c1}MMM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MMM${c1}MMMM${c2}'MMMM''MMMM'${c1}MM/ %s" +"${c1} |MM${c2}MM${c1}MMM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MMM${c1}MMM\MMMMM/\MMMMM/ %s" +"${c1} |MM${c2}MM${c1}MMM${c2}MM${c1}MMMMMM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MMMMM'${c1}M| %s" +"${c1} |MM${c2}MM${c1}MMM${c2}MMMMMMMMMMMMMMMMM MM'${c1}M/ %s" +"${c1} |MMMMMMMMMMMMMMMMMMMMMMMMMMMM/ %s" +" %s" +" %s" +" %s") + ;; + + "Fedora") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light blue') # Light Blue + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=("$c2 /:-------------:\ %s" +"$c2 :-------------------:: %s" +"$c2 :-----------"$c1"/shhOHbmp"$c2"---:\\ %s" +"$c2 /-----------"$c1"omMMMNNNMMD "$c2"---: %s" +"$c2 :-----------"$c1"sMMMMNMNMP"$c2" ---: %s" +"$c2 :-----------"$c1":MMMdP"$c2"----- --- %s" +"$c2 ,------------"$c1":MMMd"$c2"------ ---: %s" +"$c2 :------------"$c1":MMMd"$c2"----- .---: %s" +"$c2 :---- "$c1"oNMMMMMMMMMNho"$c2" .----: %s" +"$c2 :-- "$c1"+shhhMMMmhhy++"$c2" .------ %s" +"$c2 :- -----"$c1":MMMd"$c2"--------------: %s" +"$c2 :- ------"$c1"/MMMd"$c2"-------------; %s" +"$c2 :- ${c1}..${c2}----"$c1"/hMMMy"$c2"------------: %s" +"$c2 :--"$c1" :dMNdhhdNMMNo"$c2"------------; %s" +"$c2 :---"$c1":sdNMMMMNds:"$c2"------------: %s" +"$c2 :------"$c1":://:"$c2"-------------:: %s" +"$c2 :---------------------:// %s" +" %s") + ;; + + "FreeBSD") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # white + c2=$(getColor 'light red') # Light Red + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=(" %s" # user@host +" "$c1"\`\`\` "$c2"\` %s" # OS +" "$c1"\` \`.....---..."$c2"....--.\`\`\` -/ %s" # Kernel +" "$c1"+o .--\` "$c2"/y:\` +. %s" # Uptime +" "$c1" yo\`:. "$c2":o \`+- %s" # Packages +" "$c1"y/ "$c2"-/\` -o/ %s" # Shell +" "$c1".- "$c2"::/sy+:. %s" # Resolution +" "$c1"/ "$c2"\`-- / %s" # DE +" "$c1"\`: "$c2":\` %s" # WM +" "$c1"\`: "$c2":\` %s" # WM Theme +" "$c1"/ "$c2"/ %s" # GTK2 Theme +" "$c1".- "$c2"-. %s" # GTK3 Theme +" "$c1"-- "$c2"-. %s" # Icon Theme +" "$c1"\`:\` "$c2"\`:\` %s" # Font +" "$c2".-- \`--. %s" # Disk +" "$c2" .---.....----. %s" # CPU +" %s" # GPU +" %s" # RAM +) + ;; + + + "OpenBSD") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'yellow') # Light Yellow + c2=$(getColor 'brown') # Bold Yellow + c3=$(getColor 'light cyan') # Light Cyan + c4=$(getColor 'light red') # Light Red + c5=$(getColor 'dark grey') + fi + if [ -n "${my_lcolor}" ]; then c1="$my_lcolor"; c2="${my_color}"; fi + startline="3" + fulloutput=( +" "$c3" _ " +" "$c3"(_) " +""$c1" | . " +""$c1" . |L /| . "$c3" _ %s" +""$c1" _ . |\ _| \--+._/| . "$c3"(_) %s" +""$c1" / ||\| Y J ) / |/| ./ %s" +""$c1" J |)'( | \` F\`.'/ "$c3" _ %s" +""$c1" -<| F __ .-< "$c3"(_) %s" +""$c1" | / .-'"$c3". "$c1"\`. /"$c3"-. "$c1"L___ %s" +""$c1" J \ < "$c3"\ "$c1" | | "$c5"O"$c3"\\\\"$c1"|.-' "$c3" _ %s" +""$c1" _J \ .- \\\\"$c3"/ "$c5"O "$c3"| "$c1"| \ |"$c1"F "$c3"(_) %s" +""$c1" '-F -<_. \ .-' \`-' L__ %s" +""$c1"__J _ _. >-' "$c2")"$c4"._. "$c1"|-' %s " +""$c1" \`-|.' /_. "$c4"\_| "$c1" F %s " +""$c1" /.- . _.< %s" +""$c1" /' /.' .' \`\ %s" +""$c1" /L /' |/ _.-'-\ %s " +""$c1" /'J ___.---'\| %s" +""$c1" |\ .--' V | \`. \` %s " +""$c1" |/\`. \`-. \`._) %s" +""$c1" / .-.\ %s" +""$c1" \ ( \`\ " +""$c1" \`.\ " +) + ;; + + "DragonFlyBSD") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light red') # Red + c2=$(getColor 'white') # White + c3=$(getColor 'yellow') # + c4=$(getColor 'light red') + fi + startline="0" + fulloutput=(" "$c1" | %s" +" "$c1" .-. %s" +" "$c3" ()"$c1"I"$c3"() %s" +" "$c1" \"==.__:-:__.==\" %s" +" "$c1"\"==.__/~|~\__.==\" %s" +" "$c1"\"==._( Y )_.==\" %s" +" "$c2".-'~~\"\"~=--...,__"$c1"\/|\/"$c2"__,...--=~\"\"~~'-. %s" +" "$c2"( ..="$c1"\\\\="$c1"/"$c2"=.. )%s" +" "$c2"\`'-. ,.-\"\`;"$c1"/=\\\\"$c2" ;\"-.,_ .-'\`%s" +" "$c2" \`~\"-=-~\` .-~\` "$c1"|=|"$c2" \`~-. \`~-=-\"~\` %s" +" "$c2" .-~\` /"$c1"|=|"$c2"\ \`~-. %s" +" "$c2" .~\` / "$c1"|=|"$c2" \ \`~. %s" +" "$c2" .-~\` .' "$c1"|=|"$c2" \\\\\`. \`~-. %s" +" "$c2" (\` _,.-=\"\` "$c1" |=|"$c2" \`\"=-.,_ \`) %s" +" "$c2" \`~\"~\"\` "$c1" |=|"$c2" \`\"~\"~\` %s" +" "$c1" /=\ %s" +" "$c1" \=/ %s" +" "$c1" ^ %s" +) + ;; + + "NetBSD") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light red') # Light Red + c2=$(getColor 'white') # White + fi + startline="0" + fulloutput=( +" "$c1"__,gnnnOCCCCCOObaau,_ %s" +" "$c2"_._ "$c1"__,gnnCCCCCCCCOPF\"'' %s" +" "$c2"(N\\\\\\\\"$c1"XCbngg,._____.,gnnndCCCCCCCCCCCCF\"___,,,,___ %s" +" "$c2"\\\\N\\\\\\\\"$c1"XCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCOOOOPYvv. %s" +" "$c2"\\\\N\\\\\\\\"$c1"XCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCPF\"'' %s" +" "$c2"\\\\N\\\\\\\\"$c1"XCCCCCCCCCCCCCCCCCCCCCCCCCOF\"' %s" +" "$c2"\\\\N\\\\\\\\"$c1"XCCCCCCCCCCCCCCCCCCCCOF\"' %s" +" "$c2"\\\\N\\\\\\\\"$c1"XCCCCCCCCCCCCCCCPF\"' %s" +" "$c2"\\\\N\\\\\\\\"$c1"\"PCOCCCOCCFP\"\" %s" +" "$c2"\\\\N\ %s" +" "$c2"\\\\N\ %s" +" "$c2"\\\\N\ %s" +" "$c2"\\\\NN\ %s" +" "$c2"\\\\NN\ %s" +" "$c2"\\\\NNA. %s" +" "$c2"\\\\NNA, %s" +" "$c2"\\\\NNN, %s" +" "$c2"\\\\NNN\ %s" +" "$c2"\\\\NNN\ " +" "$c2"\\\\NNNA") + ;; + + "Mandriva"|"Mandrake") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light blue') # Light Blue + c2=$(getColor 'yellow') # Bold Yellow + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=(" %s" +"$c2 \`\` %s" +"$c2 \`-. %s" +"$c1 \` $c2.--- %s" +"$c1 -/ $c2-::--\` %s" +"$c1 \`++ $c2\`----...\`\`\`-:::::. %s" +"$c1 \`os. $c2.::::::::::::::-\`\`\` \` \` %s" +"$c1 +s+ $c2.::::::::::::::::---...--\` %s" +"$c1 -ss: $c2\`-::::::::::::::::-.\`\`.\`\` %s" +"$c1 /ss- $c2.::::::::::::-.\`\` \` %s" +"$c1 +ss: $c2.::::::::::::- %s" +"$c1 /sso $c2.::::::-::::::- %s" +"$c1 .sss/ $c2-:::-.\` .::::: %s" +"$c1 /sss+. $c2..\`$c1 \`--\` $c2.::: %s" +"$c1 -ossso+/:://+/-\` $c2.:\` %s" +"$c1 -/+ooo+/-. $c2\` %s" +" %s" +" %s") + ;; + + "openSUSE") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light green') # Bold Green + c2=$(getColor 'white') # Bold White + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=("$c2 .;ldkO0000Okdl;. %s" +"$c2 .;d00xl:,'....';:ok00d;. %s" +"$c2 .d00l' ,o00d. %s" +"$c2 .d0Kd."$c1" :Okxol:;'. "$c2":O0d. %s" +"$c2 'OK"$c1"KKK0kOKKKKKKKKKKOxo:' "$c2"lKO' %s" +"$c2 ,0K"$c1"KKKKKKKKKKKKKKK0d:"$c2",,,"$c1":dx:"$c2" ;00, %s" +"$c2 .OK"$c1"KKKKKKKKKKKKKKKk."$c2".oOkdl."$c1"'0k."$c2" cKO. %s" +"$c2 :KK"$c1"KKKKKKKKKKKKKKK: "$c2"kKx..od "$c1"lKd"$c2" .OK: %s" +"$c2 dKK"$c1"KKKKKKKKKOx0KKKd "$c2";0KKKO, "$c1"kKKc"$c2" dKd %s" +"$c2 dKK"$c1"KKKKKKKKKK;.;oOKx,.."$c2"'"$c1"..;kKKK0."$c2" dKd %s" +"$c2 :KK"$c1"KKKKKKKKKK0o;...;cdxxOK0Oxc,. "$c2".0K: %s" +"$c2 kKK"$c1"KKKKKKKKKKKKK0xl;'......,cdo "$c2"lKk %s" +"$c2 '0K"$c1"KKKKKKKKKKKKKKKKKKKK00KKOo; "$c2"c00' %s" +"$c2 .kK"$c1"KKOxddxkOO00000Okxoc;'. "$c2".dKk. %s" +"$c2 l0Ko. .c00l. %s" +"$c2 .l0Kk:. .;xK0l. %s" +"$c2 ,lkK0xl:;,,,,;:ldO0kl, %s" +"$c2 .':ldxkkkkxdl:'. %s") + ;; + + "Slackware") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light blue') # Light Blue + c2=$(getColor 'white') # Bold White + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="1" + fulloutput=("$c1 :::::::" +"$c1 ::::::::::::::::::: %s" +"$c1 ::::::::::::::::::::::::: %s" +"$c1 ::::::::"${c2}"cllcccccllllllll"${c1}":::::: %s" +"$c1 :::::::::"${c2}"lc dc"${c1}"::::::: %s" +"$c1 ::::::::"${c2}"cl clllccllll oc"${c1}"::::::::: %s" +"$c1 :::::::::"${c2}"o lc"${c1}"::::::::"${c2}"co oc"${c1}":::::::::: %s" +"$c1 ::::::::::"${c2}"o cccclc"${c1}":::::"${c2}"clcc"${c1}":::::::::::: %s" +"$c1 :::::::::::"${c2}"lc cclccclc"${c1}"::::::::::::: %s" +"$c1 ::::::::::::::"${c2}"lcclcc lc"${c1}":::::::::::: %s" +"$c1 ::::::::::"${c2}"cclcc"${c1}":::::"${c2}"lccclc oc"${c1}"::::::::::: %s" +"$c1 ::::::::::"${c2}"o l"${c1}"::::::::::"${c2}"l lc"${c1}"::::::::::: %s" +"$c1 :::::"${c2}"cll"${c1}":"${c2}"o clcllcccll o"${c1}"::::::::::: %s" +"$c1 :::::"${c2}"occ"${c1}":"${c2}"o clc"${c1}"::::::::::: %s" +"$c1 ::::"${c2}"ocl"${c1}":"${c2}"ccslclccclclccclclc"${c1}"::::::::::::: %s" +"$c1 :::"${c2}"oclcccccccccccccllllllllllllll"${c1}"::::: %s" +"$c1 ::"${c2}"lcc1lcccccccccccccccccccccccco"${c1}":::: %s" +"$c1 :::::::::::::::::::::::::::::::: %s" +"$c1 :::::::::::::::::::::::::::: %s" +"$c1 ::::::::::::::::::::::" +"$c1 ::::::::::::") + ;; + + "Red Hat Enterprise Linux") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light red') # Light Red + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=(" %s" +"$c2 \`.-..........\` %s" +"$c2 \`////////::.\`-/. %s" +"$c2 -: ....-////////. %s" +"$c2 //:-::///////////\` %s" +"$c2 \`--::: \`-://////////////: %s" +"$c2 //////- \`\`.-:///////// .\` %s" +"$c2 \`://////:-.\` :///////::///:\` %s" +"$c2 .-/////////:---/////////////: %s" +"$c2 .-://////////////////////. %s" +"$c1 yMN+\`.-$c2::///////////////-\` %s" +"$c1 .-\`:NMMNMs\` \`..-------..\` %s" +"$c1 MN+/mMMMMMhoooyysshsss %s" +"$c1 MMM MMMMMMMMMMMMMMyyddMMM+ %s" +"$c1 MMMM MMMMMMMMMMMMMNdyNMMh\` hyhMMM %s" +"$c1 MMMMMMMMMMMMMMMMyoNNNMMM+. MMMMMMMM %s" +"$c1 MMNMMMNNMMMMMNM+ mhsMNyyyyMNMMMMsMM %s" +" %s") + ;; + + "Frugalware") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light blue') # Light Blue + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="3" + fulloutput=("${c2} \`++/::-.\`" +"${c2} /o+++++++++/::-.\`" +"${c2} \`o+++++++++++++++o++/::-.\`" +"${c2} /+++++++++++++++++++++++oo++/:-.\`\` %s" +"${c2} .o+ooooooooooooooooooosssssssso++oo++/:-\` %s" +"${c2} ++osoooooooooooosssssssssssssyyo+++++++o: %s" +"${c2} -o+ssoooooooooooosssssssssssssyyo+++++++s\` %s" +"${c2} o++ssoooooo++++++++++++++sssyyyyo++++++o: %s" +"${c2} :o++ssoooooo"${c1}"/-------------"${c2}"+syyyyyo+++++oo %s" +"${c2} \`o+++ssoooooo"${c1}"/-----"${c2}"+++++ooosyyyyyyo++++os: %s" +"${c2} /o+++ssoooooo"${c1}"/-----"${c2}"ooooooosyyyyyyyo+oooss %s" +"${c2} .o++++ssooooos"${c1}"/------------"${c2}"syyyyyyhsosssy- %s" +"${c2} ++++++ssooooss"${c1}"/-----"${c2}"+++++ooyyhhhhhdssssso %s" +"${c2} -s+++++syssssss"${c1}"/-----"${c2}"yyhhhhhhhhhhhddssssy. %s" +"${c2} sooooooyhyyyyyh"${c1}"/-----"${c2}"hhhhhhhhhhhddddyssy+ %s" +"${c2} :yooooooyhyyyhhhyyyyyyhhhhhhhhhhdddddyssy\` %s" +"${c2} yoooooooyhyyhhhhhhhhhhhhhhhhhhhddddddysy/ %s" +"${c2}-ysooooooydhhhhhhhhhhhddddddddddddddddssy %s" +"${c2} .-:/+osssyyyysyyyyyyyyyyyyyyyyyyyyyyssy: %s" +"${c2} \`\`.-/+oosysssssssssssssssssssssss %s" +"${c2} \`\`.:/+osyysssssssssssssh. %s" +"${c2} \`-:/+osyyssssyo" +"${c2} .-:+++\`") + ;; + + + "Peppermint") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light red') # Light Red + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=("${c2} 8ZZZZZZ"${c1}"MMMMM %s" +"${c2} .ZZZZZZZZZ"${c1}"MMMMMMM. %s" +"${c1} MM"${c2}"ZZZZZZZZZ"${c1}"MMMMMMM"${c2}"ZZZZ %s" +"${c1} MMMMM"${c2}"ZZZZZZZZ"${c1}"MMMMM"${c2}"ZZZZZZZM %s" +"${c1} MMMMMMM"${c2}"ZZZZZZZ"${c1}"MMMM"${c2}"ZZZZZZZZZ. %s" +"${c1} MMMMMMMMM"${c2}"ZZZZZZ"${c1}"MMM"${c2}"ZZZZZZZZZZZI %s" +"${c1} MMMMMMMMMMM"${c2}"ZZZZZZ"${c1}"MM"${c2}"ZZZZZZZZZZ"${c1}"MMM %s" +"${c2} .ZZZ"${c1}"MMMMMMMMMM"${c2}"IZZ"${c1}"MM"${c2}"ZZZZZ"${c1}"MMMMMMMMM %s" +"${c2} ZZZZZZZ"${c1}"MMMMMMMM"${c2}"ZZ"${c1}"M"${c2}"ZZZZ"${c1}"MMMMMMMMMMM %s" +"${c2} ZZZZZZZZZZZZZZZZ"${c1}"M"${c2}"Z"${c1}"MMMMMMMMMMMMMMM %s" +"${c2} .ZZZZZZZZZZZZZ"${c1}"MMM"${c2}"Z"${c1}"M"${c2}"ZZZZZZZZZZ"${c1}"MMMM %s" +"${c2} .ZZZZZZZZZZZ"${c1}"MMM"${c2}"7ZZ"${c1}"MM"${c2}"ZZZZZZZZZZ7"${c1}"M %s" +"${c2} ZZZZZZZZZ"${c1}"MMMM"${c2}"ZZZZ"${c1}"MMMM"${c2}"ZZZZZZZ77 %s" +"${c1} MMMMMMMMMMMM"${c2}"ZZZZZ"${c1}"MMMM"${c2}"ZZZZZ77 %s" +"${c1} MMMMMMMMMM"${c2}"7ZZZZZZ"${c1}"MMMMM"${c2}"ZZ77 %s" +"${c1} .MMMMMMM"${c2}"ZZZZZZZZ"${c1}"MMMMM"${c2}"Z7Z %s" +"${c1} MMMMM"${c2}"ZZZZZZZZZ"${c1}"MMMMMMM %s" +"${c2} NZZZZZZZZZZZ"${c1}"MMMMM %s" +"${c2} ZZZZZZZZZ"${c1}"MM") + ;; + + "SolusOS") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'dark grey') # Light Gray + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=("${c1} e e %s" +"${c1} eee ee %s" +"${c1} eeee eee %s" +"${c2} wwwwwwwww"${c1}"eeeeee %s" +"${c2} wwwwwwwwwwwwwww"${c1}"eee %s" +"${c2} wwwwwwwwwwwwwwwwwww"${c1}"eeeeeeee %s" +"${c2} wwwww "${c1}"eeeee"${c2}"wwwwww"${c1}"eeee %s" +"${c2} www "${c1}"eeee"${c2}"wwwwww"${c1}"e %s" +"${c2} ww "${c1}"ee"${c2}"wwwwww %s" +"${c2} w wwwww %s" +"${c2} wwwww %s" +"${c2} wwwww %s" +"${c2} wwwww %s" +"${c2} wwww %s" +"${c2} wwww %s" +"${c2} wwww %s" +"${c2} www %s" +"${c2} ww %s") + ;; + + "Mageia") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light cyan') # Light Cyan + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=("$c2 .°°. %s" +"$c2 °° .°°. %s" +"$c2 .°°°. °° %s" +"$c2 . . %s" +"$c2 °°° .°°°. %s" +"$c2 .°°°. '___' %s" +"$c1 .${c2}'___' $c1 . %s" +"$c1 :dkxc;'. ..,cxkd; %s" +"$c1 .dkk. kkkkkkkkkk .kkd. %s" +"$c1 .dkk. ';cloolc;. .kkd %s" +"$c1 ckk. .kk; %s" +"$c1 xO: cOd %s" +"$c1 xO: lOd %s" +"$c1 lOO. .OO: %s" +"$c1 .k00. .00x %s" +"$c1 .k00; ;00O. %s" +"$c1 .lO0Kc;,,,,,,;c0KOc. %s" +"$c1 ;d00KKKKKK00d; %s" +"$c1 .,KKKK,. ") + ;; + + + "Parabola GNU/Linux-libre") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light purple') # Light Purple + c2=$(getColor 'white') # White + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=(" %s" +"${c1} eeeeeeeee %s" +"${c1} eeeeeeeeeeeeeee %s" +"${c1} eeeeee"${c2}"//////////"${c1}"eeeee %s" +"${c1} eeeee"${c2}"///////////////"${c1}"eeeee %s" +"${c1} eeeee"${c2}"/// ////"${c1}"eeee %s" +"${c1} eeee"${c2}"// ///"${c1}"eeeee %s" +"${c1} eee "${c2}"///"${c1}"eeeee %s" +"${c1}ee "${c2}"//"${c1}"eeeeee %s" +"${c1}e "${c2}"/"${c1}"eeeeeee %s" +"${c1} eeeeeee %s" +"${c1} eeeeee %s" +"${c1} eeeeee %s" +"${c1} eeeee %s" +"${c1} eeee %s" +"${c1} eee %s" +"${c1} ee %s" +"${c1} e %s") + ;; + + + "Viperr") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'dark grey') # Dark Gray + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=("${c1} wwzapd dlzazw %s" +"${c1} an"${c2}"#"${c1}"zncmqzepweeirzpas"${c2}"#"${c1}"xz %s" +"${c1} apez"${c2}"##"${c1}"qzdkawweemvmzdm"${c2}"##"${c1}"dcmv %s" +"${c1}zwepd"${c2}"####"${c1}"qzdweewksza"${c2}"####"${c1}"ezqpa %s" +"${c1}ezqpdkapeifjeeazezqpdkazdkwqz %s" +"${c1} ezqpdksz"${c2}"##"${c1}"wepuizp"${c2}"##"${c1}"wzeiapdk %s" +"${c1} zqpakdpa"${c2}"#"${c1}"azwewep"${c2}"#"${c1}"zqpdkqze %s" +"${c1} apqxalqpewenwazqmzazq %s" +"${c1} mn"${c2}"##"${c1}"=="${c2}"#######"${c1}"=="${c2}"##"${c1}"qp %s" +"${c1} qw"${c2}"##"${c1}"="${c2}"#######"${c1}"="${c2}"##"${c1}"zl %s" +"${c1} z0"${c2}"######"${c1}"="${c2}"######"${c1}"0a %s" +"${c1} qp"${c2}"#####"${c1}"="${c2}"#####"${c1}"mq %s" +"${c1} az"${c2}"####"${c1}"==="${c2}"####"${c1}"mn %s" +"${c1} ap"${c2}"#########"${c1}"qz %s" +"${c1} 9qlzskwdewz %s" +"${c1} zqwpakaiw %s" +"${c1} qoqpe %s" +" %s") + ;; + + + "LinuxDeepin") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light green') # Bold Green + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi + startline="0" + fulloutput=("${c1} eeeeeeeeeeeeeeeeeeeeeeeeeeee %s" +"${c1} eee eeeeeee eeeeeeee %s" +"${c1}ee eeeeeeeee eeeeeeeee ee %s" +"${c1}e eeeeeeeee eeeeeeeee e %s" +"${c1}e eeeeeee eeeeeeeeee e %s" +"${c1}e eeeeee eeeee e %s" +"${c1}e eeeee eee eee e %s" +"${c1}e eeeee ee eeeeee e %s" +"${c1}e eeeee eee eee e %s" +"${c1}e eeeeeeeeee eeee e %s" +"${c1}e eeeee eeee e %s" +"${c1}e eeeeee e %s" +"${c1}e eeeeeee e %s" +"${c1}e eee eeeeeeee e %s" +"${c1}eeeeeeeeeeeeeeee e %s" +"${c1}eeeeeeeeeeeee ee %s" +"${c1} eeeeeeeeeee eee %s" +"${c1} eeeeeeeeeeeeeeeeeeeeeeeeeeee %s" +" %s") + ;; + + + "Chakra") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light blue') # Light Blue + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi + startline="0" + fulloutput=("${c1} _ _ _ \"kkkkkkkk. %s" +"${c1} ,kkkkkkkk., \'kkkkkkkkk, %s" +"${c1} ,kkkkkkkkkkkk., \'kkkkkkkkk. %s" +"${c1} ,kkkkkkkkkkkkkkkk,\'kkkkkkkk, %s" +"${c1} ,kkkkkkkkkkkkkkkkkkk\'kkkkkkk. %s" +"${c1} \"\'\'\"\'\'\',;::,,\"\'\'kkk\'\'kkkkk; __ %s" +"${c1} ,kkkkkkkkkk, \"k\'\'kkkkk\' ,kkkk %s" +"${c1} ,kkkkkkk\' ., \' .: \'kkkk\',kkkkkk %s" +"${c1} ,kkkkkkkk\'.k\' , ,kkkk;kkkkkkkkk %s" +"${c1} ,kkkkkkkk\';kk \'k \"\'k\',kkkkkkkkkkkk %s" +"${c1} .kkkkkkkkk.kkkk.\'kkkkkkkkkkkkkkkkkk\' %s" +"${c1} ;kkkkkkkk\'\'kkkkkk;\'kkkkkkkkkkkkk\'\' %s" +"${c1} \'kkkkkkk; \'kkkkkkkk.,\"\"\'\'\"\'\'\"\" %s" +"${c1} \'\'kkkk; \'kkkkkkkkkk., %s" +"${c1} \';\' \'kkkkkkkkkkkk., %s" +"${c1} ';kkkkkkkkkk\' %s" +"${c1} ';kkkkkk\' %s" +"${c1} \"\'\'\" %s") + ;; + + + "Fuduntu") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'dark grey') # Dark Gray + c2=$(getColor 'yellow') # Bold Yellow + c3=$(getColor 'light red') # Light Red + c4=$(getColor 'white') # White + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi + startline="1" + fulloutput=("${c1} \`dwoapfjsod\`"${c2}" \`dwoapfjsod\`" +"${c1} \`xdwdsfasdfjaapz\`"${c2}" \`dwdsfasdfjaapzx\` %s" +"${c1} \`wadladfladlafsozmm\`"${c2}" \`wadladfladlafsozmm\` %s" +"${c1} \`aodowpwafjwodisosoaas\`"${c2}" \`odowpwafjwodisosoaaso\` %s" +"${c1} \`adowofaowiefawodpmmxs\`"${c2}" \`dowofaowiefawodpmmxso\` %s" +"${c1} \`asdjafoweiafdoafojffw\`"${c2}" \`sdjafoweiafdoafojffwq\` %s" +"${c1} \`dasdfjalsdfjasdlfjdd\`"${c2}" \`asdfjalsdfjasdlfjdda\` %s" +"${c1} \`dddwdsfasdfjaapzxaw\`"${c2}" \`ddwdsfasdfjaapzxawo\` %s" +"${c1} \`dddwoapfjsowzocmw\`"${c2}" \`ddwoapfjsowzocmwp\` %s" +"${c1} \`ddasowjfowiejao\`"${c2}" \`dasowjfowiejaow\` %s" +" %s" +"${c3} \`ddasowjfowiejao\`"${c4}" \`dasowjfowiejaow\` %s" +"${c3} \`dddwoapfjsowzocmw\`"${c4}" \`ddwoapfjsowzocmwp\` %s" +"${c3} \`dddwdsfasdfjaapzxaw\`"${c4}" \`ddwdsfasdfjaapzxawo\` %s" +"${c3} \`dasdfjalsdfjasdlfjdd\`"${c4}" \`asdfjalsdfjasdlfjdda\` %s" +"${c3} \`asdjafoweiafdoafojffw\`"${c4}" \`sdjafoweiafdoafojffwq\` %s" +"${c3} \`adowofaowiefawodpmmxs\`"${c4}" \`dowofaowiefawodpmmxso\` %s" +"${c3} \`aodowpwafjwodisosoaas\`"${c4}" \`odowpwafjwodisosoaaso\` %s" +"${c3} \`wadladfladlafsozmm\`"${c4}" \`wadladfladlafsozmm\` %s" +"${c3} \`dwdsfasdfjaapzx\`"${c4}" \`dwdsfasdfjaapzx\`" +"${c3} \`woapfjsod\`"${c4}" \`woapfjsod\`") + ;; + + "Mac OS X") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'green') # Green + c2=$(getColor 'brown') # Yellow + c3=$(getColor 'light red') # Orange + c4=$(getColor 'red') # Red + c5=$(getColor 'purple') # Purple + c6=$(getColor 'blue') # Blue + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; c4="${my_lcolor}"; c5="${my_lcolor}"; c6="${my_lcolor}"; fi + startline="0" + fulloutput=("\n${c1} -/+:. %s" +"${c1} :++++. %s" +"${c1} /+++/. %s" +"${c1} .:-::- .+/:-\`\`.::- %s" +"${c1} .:/++++++/::::/++++++/:\` %s" +"${c2} .:///////////////////////:\` %s" +"${c2} ////////////////////////\` %s" +"${c3} -+++++++++++++++++++++++\` %s" +"${c3} /++++++++++++++++++++++/ %s" +"${c4} /sssssssssssssssssssssss. %s" +"${c4} :ssssssssssssssssssssssss- %s" +"${c5} osssssssssssssssssssssssso/\` %s" +"${c5} \`syyyyyyyyyyyyyyyyyyyyyyyy+\` %s" +"${c6} \`ossssssssssssssssssssss/ %s" +"${c6} :ooooooooooooooooooo+. %s" +"${c6} \`:+oo+/:-..-:/+o+/- %s\n") + ;; + + "Windows"|"Cygwin") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light red') # Red + c2=$(getColor 'light green') # Green + c3=$(getColor 'light blue') # Blue + c4=$(getColor 'yellow') # Yellow + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; c4="${my_lcolor}"; fi + startline="0" + fulloutput=("${c1} ,.=:!!t3Z3z., %s" +"${c1} :tt:::tt333EE3 %s" +"${c1} Et:::ztt33EEEL${c2} @Ee., .., %s" +"${c1} ;tt:::tt333EE7${c2} ;EEEEEEttttt33# %s" +"${c1} :Et:::zt333EEQ.${c2} \$EEEEEttttt33QL %s" +"${c1} it::::tt333EEF${c2} @EEEEEEttttt33F %s" +"${c1} ;3=*^\`\`\`\"*4EEV${c2} :EEEEEEttttt33@. %s" +"${c3} ,.=::::!t=., ${c1}\`${c2} @EEEEEEtttz33QF %s" +"${c3} ;::::::::zt33)${c2} \"4EEEtttji3P* %s" +"${c3} :t::::::::tt33.${c4}:Z3z..${c2} \`\`${c4} ,..g. %s" +"${c3} i::::::::zt33F${c4} AEEEtttt::::ztF %s" +"${c3} ;:::::::::t33V${c4} ;EEEttttt::::t3 %s" +"${c3} E::::::::zt33L${c4} @EEEtttt::::z3F %s" +"${c3}{3=*^\`\`\`\"*4E3)${c4} ;EEEtttt:::::tZ\` %s" +"${c3} \`${c4} :EEEEtttt::::z7 %s" +"${c4} \"VEzjt:;;z>*\` %s") + ;; + + "Trisquel") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light blue') # Light Blue + c2=$(getColor 'light cyan') # Blue + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=( +"${c1} ▄▄▄▄▄▄ %s" +"${c1} ▄█████████▄ %s" +"${c1} ▄▄▄▄▄▄ ████▀ ▀████ %s" +"${c1} ▄██████████▄ ████▀ ▄▄ ▀███ %s" +"${c1} ▄███▀▀ ▀▀████ ███▄ ▄█ ███ %s" +"${c1} ▄███ ▄▄▄ ████▄ ▀██████ ▄███ %s" +"${c1} ███ █▀▀██▄ █████▄ ▀▀ ▄████ %s" +"${c1} ▀███ ███ ███████▄▄ ▄▄██████ %s" +"${c1} ▀███▄ ▄███ █████████████${c2}████▀ %s" +"${c1} ▀█████████ ███████${c2}███▀▀▀ %s" +"${c1} ▀▀███▀▀ ██${c2}████▀▀ %s" +"${c2} ██████▀ ▄▄▄▄ %s" +"${c2} █████▀ ████████ %s" +"${c2} █████ ███▀ ▀███ %s" +"${c2} ████▄ ██▄▄▄ ███ %s" +"${c2} █████▄ ▀▀ ▄██ %s" +"${c2} ██████▄▄▄████ %s" +"${c2} ▀▀█████▀▀ %s") + ;; + + "Manjaro") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light green') # Green + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi + startline="0" + fulloutput=( +"${c1} ██████████████████ ████████ %s" +"${c1} ██████████████████ ████████ %s" +"${c1} ██████████████████ ████████ %s" +"${c1} ██████████████████ ████████ %s" +"${c1} ████████ ████████ %s" +"${c1} ████████ ████████ ████████ %s" +"${c1} ████████ ████████ ████████ %s" +"${c1} ████████ ████████ %s" +"${c1} ████████ ████████ ████████ %s" +"${c1} ████████ ████████ ████████ %s" +"${c1} ████████ ████████ ████████ %s" +"${c1} ████████ ████████ ████████ %s" +"${c1} ████████ ████████ ████████ %s" +"${c1} ████████ ████████ ████████ %s" +"${c1} ████████ ████████ ████████ %s" +"${c1} ████████ ████████ ████████ %s" +"${c1} ████████ ████████ ████████ %s" +" %s") + ;; + + + "Manjaro-tree") + if [[ "$no_color" != "1" ]]; then + c1="\e[1;32m" # Green + c2="\e[1;33m" # Yellow + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=( +"${c1} ### %s" +"${c1} ### #### %s" +"${c1} ### #### %s" +"${c1} ##### ##### %s" +"${c1} ################# %s" +"${c1} ### ##### #### %s" +"${c1} ## ${c2}OOO ${c1}### %s" +"${c1} # ${c2}WW ${c1}## %s" +"${c1} ${c2}WW ${c1}# %s" +"${c2} WW %s" +"${c2} WW %s" +"${c2} WW %s" +"${c2} WW %s" +"${c2} WW %s" +"${c2} WW %s" +"${c2} WW %s" +"${c2} WW %s" +" %s") + ;; + + + + "elementary OS"|"elementary os") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi + startline="0" + fulloutput=( +" %s" +"${c1} eeeeeeeeeeeeeeeee %s" +"${c1} eeeeeeeeeeeeeeeeeeeeeee %s" +"${c1} eeeee eeeeeeeeeeee eeeee %s" +"${c1} eeee eeeee eee eeee %s" +"${c1} eeee eeee eee eeee %s" +"${c1}eee eee eee eee %s" +"${c1}eee eee eee eee %s" +"${c1}ee eee eeee eeee %s" +"${c1}ee eee eeeee eeeeee %s" +"${c1}ee eee eeeee eeeee ee %s" +"${c1}eee eeee eeeeee eeeee eee %s" +"${c1}eee eeeeeeeeee eeeeee eee %s" +"${c1} eeeeeeeeeeeeeeeeeeeeeeee eeeee %s" +"${c1} eeeeeeee eeeeeeeeeeee eeee %s" +"${c1} eeeee eeeee %s" +"${c1} eeeeeee eeeeeee %s" +"${c1} eeeeeeeeeeeeeeeee %s") + ;; + + + "Android") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light green') # Bold Green + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi + startline="2" + fulloutput=( +"${c2} ╲ ▁▂▂▂▁ ╱" +"${c2} ▄███████▄ " +"${c2} ▄██${c1} ${c2}███${c1} ${c2}██▄ %s" +"${c2} ▄███████████▄ %s" +"${c2} ▄█ ▄▄▄▄▄▄▄▄▄▄▄▄▄ █▄ %s" +"${c2} ██ █████████████ ██ %s" +"${c2} ██ █████████████ ██ %s" +"${c2} ██ █████████████ ██ %s" +"${c2} ██ █████████████ ██ %s" +"${c2} █████████████ %s" +"${c2} ███████████ %s" +"${c2} ██ ██" +"${c2} ██ ██") + ;; + + "Scientific Linux") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light blue') + c2=$(getColor 'light red') + c3=$(getColor 'white') + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="1" + fulloutput=("${c1} =/;;/-" +"${c1} +: // %s" +"${c1} /; /; %s" +"${c1} -X H. %s" +"${c1} .//;;;:;;-, X= :+ .-;:=;:;#;. %s" +"${c1} M- ,=;;;#:, ,:#;;:=, ,@ %s" +"${c1} :# :#.=/++++/=.$= #= %s" +"${c1} ,#; #/:+/;,,/++:+/ ;+. %s" +"${c1} ,+/. ,;@+, ,#H;, ,/+, %s" +"${c1} ;+;;/= @. ${c2}.H${c3}#${c2}#X ${c1}-X :///+; %s" +"${c1} ;+=;;;.@, ${c3}.X${c2}M${c3}@$. ${c1}=X.//;=#/. %s" +"${c1} ,;: :@#= =\$H: .+#- %s" +"${c1} ,#= #;-///==///-// =#, %s" +"${c1} ;+ :#-;;;:;;;;-X- +: %s" +"${c1} @- .-;;;;M- =M/;;;-. -X %s" +"${c1} :;;::;;-. #- :+ ,-;;-;:== %s" +"${c1} ,X H. %s" +"${c1} ;/ #= %s" +"${c1} // +; %s" +"${c1} '////'") + ;; + + "BackTrack Linux") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light red') # Light Red + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="1" + fulloutput=("${c1}.............." +"${c1} ..,;:ccc,. %s" +"${c1} ......''';lxO. %s" +"${c1}.....''''..........,:ld; %s" +"${c1} .';;;:::;,,.x, %s" +"${c1} ..'''. 0Xxoc:,. ... %s" +"${c1} .... ,ONkc;,;cokOdc',. %s" +"${c1} . OMo ':"${c2}"dd"${c1}"o. %s" +"${c1} dMc :OO; %s" +"${c1} 0M. .:o. %s" +"${c1} ;Wd %s" +"${c1} ;XO, %s" +"${c1} ,d0Odlc;,.. %s" +"${c1} ..',;:cdOOd::,. %s" +"${c1} .:d;.':;. %s" +"${c1} 'd, .' %s" +"${c1} ;l ..%s" +"${c1} .o %s" +"${c1} c %s" +"${c1} .'" +"${c1} .") + ;; + + "Kali Linux") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light blue') # White + c2=$(getColor 'black') # Light Red + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="1" + fulloutput=("${c1}.............." +"${c1} ..,;:ccc,. %s" +"${c1} ......''';lxO. %s" +"${c1}.....''''..........,:ld; %s" +"${c1} .';;;:::;,,.x, %s" +"${c1} ..'''. 0Xxoc:,. ... %s" +"${c1} .... ,ONkc;,;cokOdc',. %s" +"${c1} . OMo ':"${c2}"dd"${c1}"o. %s" +"${c1} dMc :OO; %s" +"${c1} 0M. .:o. %s" +"${c1} ;Wd %s" +"${c1} ;XO, %s" +"${c1} ,d0Odlc;,.. %s" +"${c1} ..',;:cdOOd::,. %s" +"${c1} .:d;.':;. %s" +"${c1} 'd, .' %s" +"${c1} ;l ..%s" +"${c1} .o %s" +"${c1} c %s" +"${c1} .'" +"${c1} .") + ;; + + "Sabayon") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'light blue') # Blue + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi + startline="0" + fulloutput=("${c2} ........... %s" +"${c2} .. .. %s" +"${c2} .. .. %s" +"${c2} .. ${c1}o ${c2}.. %s" +"${c2} .. ${c1}:W' ${c2}.. %s" +"${c2} .. ${c1}.d. ${c2}.. %s" +"${c2}:. ${c1}.KNO ${c2}.: %s" +"${c2}:. ${c1}cNNN. ${c2}.: %s" +"${c2}: ${c1}dXXX, ${c2}: %s" +"${c2}: ${c1}. dXXX, .cd, ${c2}: %s" +"${c2}: ${c1}'kc .. dKKK. ,ll;:' ${c2}: %s" +"${c2}: ${c1}.xkkxc;..dkkkc',cxkkl ${c2}: %s" +"${c2}:. ${c1}.,cdddddddddddddo:. ${c2}.: %s" +"${c2} .. ${c1}:lllllll: ${c2}.. %s" +"${c2} .. ${c1}',,,,, ${c2}.. %s" +"${c2} .. .. %s" +"${c2} .. .. %s" +"${c2} ............... %s") + ;; + + + "KaOS") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light blue') + c2=$(getColor 'light grey') + c3=$(getColor 'red') + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi + startline="0" + fulloutput=( +"${c1} ████████ ████████ %s" +"${c1} ██████ ██████ %s" +"${c1} ████ ████ %s" +"${c1} █ █ %s" +"${c1} █ %s" +"${c1} █ ${c2} ████████ ████████%s" +"${c1} █ ${c2} ██████ ██████ %s" +"${c1} █ ${c2} ████ ████ %s" +"${c1} █ ${c2} █ █ %s" +"${c1} █ ${c2} █ %s" +"${c1} ${c3}███████ ███████ %s" +"${c1} ${c3} █████ █████${c2} █ %s" +"${c1} █${c3} ███ ███ ${c2} █ %s" +"${c1} █ ${c3} █ ${c2} █ %s" +"${c1} █ ${c3}█ ${c2} █ %s" +"${c1} █ ${c3}█ ${c2} █ %s") + ;; + + + "CentOS") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'yellow') # White + c2=$(getColor 'light green') # White + c3=$(getColor 'light blue') # White + c4=$(getColor 'light purple') # White + c5=$(getColor 'white') # White + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi + startline="0" + fulloutput=("${c1} .. %s" +"${c1} .PLTJ. %s" +"${c1} <><><><> %s" +" ${c2}KKSSV' 4KKK ${c1}LJ${c4} KKKL.'VSSKK %s" +" ${c2}KKV' 4KKKKK ${c1}LJ${c4} KKKKAL 'VKK %s" +" ${c2}V' ' 'VKKKK ${c1}LJ${c4} KKKKV' ' 'V %s" +" ${c2}.4MA.' 'VKK ${c1}LJ${c4} KKV' '.4Mb. %s" +"${c4} . ${c2}KKKKKA.' 'V ${c1}LJ${c4} V' '.4KKKKK ${c3}. %s" +"${c4} .4D ${c2}KKKKKKKA.'' ${c1}LJ${c4} ''.4KKKKKKK ${c3}FA. %s" +"${c4} %s" +"${c4} 'VD ${c3}KKKKKKKK'.. ${c2}LJ ${c1}..'KKKKKKKK ${c3}FV %s" +"${c4} ' ${c3}VKKKKK'. .4 ${c2}LJ ${c1}K. .'KKKKKV ${c3}' %s" +" ${c3} 'VK'. .4KK ${c2}LJ ${c1}KKA. .'KV' %s" +" ${c3}A. . .4KKKK ${c2}LJ ${c1}KKKKA. . .4 %s" +" ${c3}KKA. 'KKKKK ${c2}LJ ${c1}KKKKK' .4KK %s" +" ${c3}KKSSA. VKKK ${c2}LJ ${c1}KKKV .4SSKK %s" +"${c2} <><><><> %s" +"${c2} 'MKKM' %s" +"${c2} ''") + ;; + + + "Jiyuu Linux") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'light blue') # Light Blue + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi + startline="0" + fulloutput=("${c1}+++++++++++++++++++++++. %s" +"${c1}ss:-......-+so/:----.os- %s" +"${c1}ss +s/ os- %s" +"${c1}ss :s+ os- %s" +"${c1}ss os. os- %s" +"${c1}ss .so os- %s" +"${c1}ss :s+ os- %s" +"${c1}ss /s/ os- %s" +"${c1}ss /s: os- %s" +"${c1}ss +s- os- %s" +"${c1}ss-.....os:..........os- %s" +"${c1}++++++++os+++++++++oooo. %s" +"${c1} os. ./oo/. %s" +"${c1} os. ./oo: %s" +"${c1} os. ./oo: %s" +"${c1} os oo+- %s" +"${c1} os+- %s" +"${c1} /. %s") + ;; + + "Antergos") + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'blue') # Light Blue + c2=$(getColor 'light blue') # Light Blue + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi + startline="1" + fulloutput=("${c1} \`.-/::/-\`\`" +"${c1} .-/osssssssso/. %s" +"${c1} :osyysssssssyyys+- %s" +"${c1} \`.+yyyysssssssssyyyyy+. %s" +"${c1} \`/syyyyyssssssssssyyyyys-\` %s" +"${c1} \`/yhyyyyysss${c2}++${c1}ssosyyyyhhy/\` %s" +"${c1} .ohhhyyyys${c2}o++/+o${c1}so${c2}+${c1}syy${c2}+${c1}shhhho. %s" +"${c1} .shhhhys${c2}oo++//+${c1}sss${c2}+++${c1}yyy${c2}+s${c1}hhhhs. %s" +"${c1} -yhhhhs${c2}+++++++o${c1}ssso${c2}+++${c1}yyy${c2}s+o${c1}hhddy: %s" +"${c1} -yddhhy${c2}o+++++o${c1}syyss${c2}++++${c1}yyy${c2}yooy${c1}hdddy- %s" +"${c1} .yddddhs${c2}o++o${c1}syyyyys${c2}+++++${c1}yyhh${c2}sos${c1}hddddy\` %s" +"${c1}\`odddddhyosyhyyyyyy${c2}++++++${c1}yhhhyosddddddo %s" +"${c1}.dmdddddhhhhhhhyyyo${c2}+++++${c1}shhhhhohddddmmh. %s" +"${c1}ddmmdddddhhhhhhhso${c2}++++++${c1}yhhhhhhdddddmmdy %s" +"${c1}dmmmdddddddhhhyso${c2}++++++${c1}shhhhhddddddmmmmh %s" +"${c1}-dmmmdddddddhhys${c2}o++++o${c1}shhhhdddddddmmmmd- %s" +"${c1} .smmmmddddddddhhhhhhhhhdddddddddmmmms. %s" +"${c1} \`+ydmmmdddddddddddddddddddmmmmdy/. %s" +"${c1} \`.:+ooyyddddddddddddyyso+:.\`") + ;; + + *) + if [[ "$no_color" != "1" ]]; then + c1=$(getColor 'white') # White + c2=$(getColor 'dark grey') # Light Gray + c3=$(getColor 'yellow') # Light Yellow + fi + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi + startline="0" + fulloutput=(" %s" +" %s" +" %s" +"$c2 #####$c0 %s" +"$c2 ####### %s" +"$c2 ##"$c1"O$c2#"$c1"O$c2## %s" +"$c2 #$c3#####$c2# %s" +"$c2 ##$c1##$c3###$c1##$c2## %s" +"$c2 #$c1##########$c2## %s" +"$c2 #$c1############$c2## %s" +"$c2 #$c1############$c2### %s" +"$c3 ##$c2#$c1###########$c2##$c3# %s" +"$c3 ######$c2#$c1#######$c2#$c3###### %s" +"$c3 #######$c2#$c1#####$c2#$c3####### %s" +"$c3 #####$c2#######$c3##### %s" +" %s" +" %s" +" %s") + ;; + esac + + + # Truncate lines based on terminal width. + if [ "$truncateSet" == "Yes" ]; then + for ((i=0; i<${#fulloutput[@]}; i++)); do + my_out=$(printf "${fulloutput[i]}$c0\n" "${out_array}") + my_out_full=$(echo "$my_out" | cat -v) + termWidth=$(tput cols) + SHOPT_EXTGLOB_STATE=$(shopt -p extglob) + read SHOPT_CMD SHOPT_STATE SHOPT_OPT <<< ${SHOPT_EXTGLOB_STATE} + if [[ ${SHOPT_STATE} == "-u" ]]; then + shopt -s extglob + fi + + stringReal="${my_out_full//\^\[\[@([0-9]|[0-9];[0-9][0-9])m}" + + if [[ ${SHOPT_STATE} == "-u" ]]; then + shopt -u extglob + fi + + if [[ "${#stringReal}" -le "${termWidth}" ]]; then + echo -e "${my_out}"$c0 + elif [[ "${#stringReal}" -gt "${termWidth}" ]]; then + ((NORMAL_CHAR_COUNT=0)) + for ((j=0; j<=${#my_out_full}; j++)); do + if [[ "${my_out_full:${j}:3}" == '^[[' ]]; then + if [[ "${my_out_full:${j}:5}" =~ ^\^\[\[[[:digit:]]m$ ]]; then + if [[ ${j} -eq 0 ]]; then + j=$((${j} + 5)) + else + j=$((${j} + 4)) + fi + elif [[ "${my_out_full:${j}:8}" =~ ^\^\[\[[[:digit:]]\;[[:digit:]][[:digit:]]m ]]; then + if [[ ${j} -eq 0 ]]; then + j=$((${j} + 8)) + else + j=$((${j} + 7)) + fi + fi + else + ((NORMAL_CHAR_COUNT++)) + if [[ ${NORMAL_CHAR_COUNT} -ge ${termWidth} ]]; then + echo -e "${my_out:0:$((${j} - 5))}"$c0 + break 1 + fi + fi + done + fi + + if [[ "$i" -ge "$startline" ]]; then + unset out_array[0] + out_array=( "${out_array[@]}" ) + fi + done + else + #n=${#fulloutput[*]} + for ((i=0; i<${#fulloutput[*]}; i++)); do + # echo "${out_array[@]}" + printf "${fulloutput[i]}$c0\n" "${out_array}" + if [[ "$i" -ge "$startline" ]]; then + unset out_array[0] + out_array=( "${out_array[@]}" ) + fi + done + fi + # Done with ASCII output +} + +infoDisplay () { + textcolor="\033[0m" + [[ "$my_hcolor" ]] && textcolor="${my_hcolor}" + #TODO: Centralize colors and use them across the board so we only change them one place. + myascii="${distro}" + [[ "${asc_distro}" ]] && myascii="${asc_distro}" + case ${myascii} in + "Arch Linux - Old"|"Fedora"|"Mandriva"|"Mandrake"|"Chakra"|"Sabayon"|"Slackware"|"Mac OS X"|"Trisquel"|"Kali Linux"|"Jiyuu Linux"|"Antergos"|"KaOS") labelcolor=$(getColor 'light blue');; + "Arch Linux"|"Frugalware"|"Mageia") labelcolor=$(getColor 'light cyan');; + "Mint"|"LMDE"|"openSUSE"|"LinuxDeepin"|"DragonflyBSD"|"Manjaro"|"Manjaro-tree"|"Android") labelcolor=$(getColor 'light green');; + "Ubuntu-3color"|"FreeBSD"|"Debian"|"Raspbian"|"BSD"|"Red Hat Enterprise Linux"|"Peppermint"|"Cygwin"|"Fuduntu"|"NetBSD"|"Scientific Linux"|"DragonFlyBSD"|"BackTrack Linux") labelcolor=$(getColor 'light red');; + "CrunchBang"|"SolusOS"|"Viperr"|"elementary"*) labelcolor=$(getColor 'dark grey');; + "Gentoo"|"Parabola GNU/Linux-libre"|"Funtoo"|"Funtoo-text") labelcolor=$(getColor 'light purple');; + "CentOS"|"Ubuntu"|*) labelcolor=$(getColor 'yellow');; + esac + [[ "$my_lcolor" ]] && labelcolor="${my_lcolor}" + if [[ "$no_color" == "1" ]]; then labelcolor=""; bold=""; c0=""; textcolor=""; fi + # Some verbosity stuff + [[ "$verbosity" == "1" ]] && [[ "$screenshot" == "1" ]] && verboseOut "Screenshot will be taken after info is displayed." + [[ "$verbosity" == "1" ]] && [[ "$hostshot" == "1" ]] && verboseOut "Screenshot will be transferred/uploaded to specified location." + ######################### + # Info Variable Setting # + ######################### + if [[ "${distro}" == "Android" ]]; then + myhostname=$(echo -e "${labelcolor}${hostname}"); out_array=( "${out_array[@]}" "$myhostname" ) + mydistro=$(echo -e "$labelcolor OS:$textcolor $distro $distro_ver"); out_array=( "${out_array[@]}" "$mydistro" ) + mydevice=$(echo -e "$labelcolor Device:$textcolor $device"); out_array=( "${out_array[@]}" "$mydevice" ) + myrom=$(echo -e "$labelcolor ROM:$textcolor $rom"); out_array=( "${out_array[@]}" "$myrom" ) + mybaseband=$(echo -e "$labelcolor Baseband:$textcolor $baseband"); out_array=( "${out_array[@]}" "$mybaseband" ) + mykernel=$(echo -e "$labelcolor Kernel:$textcolor $kernel"); out_array=( "${out_array[@]}" "$mykernel" ) + myuptime=$(echo -e "$labelcolor Uptime:$textcolor $uptime"); out_array=( "${out_array[@]}" "$myuptime" ) + mycpu=$(echo -e "$labelcolor CPU:$textcolor $cpu"); out_array=( "${out_array[@]}" "$mycpu" ) + mygpu=$(echo -e "$labelcolor GPU:$textcolor $cpu"); out_array=( "${out_array[@]}" "$mygpu" ) + mymem=$(echo -e "$labelcolor RAM:$textcolor $mem"); out_array=( "${out_array[@]}" "$mymem" ) + else + if [[ "${display[@]}" =~ "host" ]]; then myinfo=$(echo -e "${labelcolor}${myUser}$textcolor${bold}@${c0}${labelcolor}${myHost}"); out_array=( "${out_array[@]}" "$myinfo" ); ((display_index++)); fi + if [[ "${display[@]}" =~ "distro" ]]; then + if [ "$distro" == "Mac OS X" ]; then + sysArch=`str1=$(ioreg -l -p IODeviceTree | grep firmware-abi);echo ${str1: -4: 2}bit` + prodVers=`prodVers=$(sw_vers|grep ProductVersion);echo ${prodVers:15}` + buildVers=`buildVers=$(sw_vers|grep BuildVersion);echo ${buildVers:14}` + if [ -n "$distro_more" ]; then mydistro=$(echo -e "$labelcolor OS:$textcolor $distro_more $sysArch") + else mydistro=$(echo -e "$labelcolor OS:$textcolor $sysArch $distro $prodVers $buildVers"); fi + elif [[ "$distro" == "Cygwin" ]]; then + distro=$(wmic os get name | head -2 | tail -1) + distro=$(expr match "$distro" '\(Microsoft Windows [A-Za-z0-9.]\+\)') + sysArch=$(wmic os get OSArchitecture | head -2 | tail -1 | tr -d '\r ') + mydistro=$(echo -e "$labelcolor OS:$textcolor $distro $sysArch") + else + if [ -n "$distro_more" ]; then mydistro=$(echo -e "$labelcolor OS:$textcolor $distro_more") + else mydistro=$(echo -e "$labelcolor OS:$textcolor $distro $sysArch"); fi + fi + out_array=( "${out_array[@]}" "$mydistro" ) + ((display_index++)) + fi + if [[ "${display[@]}" =~ "kernel" ]]; then mykernel=$(echo -e "$labelcolor Kernel:$textcolor $kernel"); out_array=( "${out_array[@]}" "$mykernel" ); ((display_index++)); fi + if [[ "${display[@]}" =~ "uptime" ]]; then myuptime=$(echo -e "$labelcolor Uptime:$textcolor $uptime"); out_array=( "${out_array[@]}" "$myuptime" ); ((display_index++)); fi + if [[ "${display[@]}" =~ "pkgs" ]]; then mypkgs=$(echo -e "$labelcolor Packages:$textcolor $pkgs"); out_array=( "${out_array[@]}" "$mypkgs" ); ((display_index++)); fi + if [[ "${display[@]}" =~ "shell" ]]; then myshell=$(echo -e "$labelcolor Shell:$textcolor $myShell"); out_array=( "${out_array[@]}" "$myshell" ); ((display_index++)); fi + if [[ -n "$DISPLAY" || "$distro" == "Mac OS X" ]]; then + if [[ "${display[@]}" =~ "res" ]]; then myres=$(echo -e "$labelcolor Resolution:${textcolor} $xResolution"); out_array=( "${out_array[@]}" "$myres" ); ((display_index++)); fi + if [[ "${display[@]}" =~ "de" ]]; then + if [[ "${DE}" != "Not Present" ]]; then + myde=$(echo -e "$labelcolor DE:$textcolor $DE"); out_array=( "${out_array[@]}" "$myde" ); ((display_index++)) + fi + fi + if [[ "${display[@]}" =~ "wm" ]]; then mywm=$(echo -e "$labelcolor WM:$textcolor $WM"); out_array=( "${out_array[@]}" "$mywm" ); ((display_index++)); fi + if [[ "${display[@]}" =~ "wmtheme" ]]; then + if [[ "${Win_theme}" == "Not Present" ]]; then + : + else + mywmtheme=$(echo -e "$labelcolor WM Theme:$textcolor $Win_theme"); out_array=( "${out_array[@]}" "$mywmtheme" ); ((display_index++)); fi + fi + if [[ "${display[@]}" =~ "gtk" ]]; then + if [ "$distro" == "Mac OS X" ]; then + if [ "$gtkFont" != "Not Found" ]; then + if [ -n "$gtkFont" ]; then + myfont=$(echo -e "$labelcolor Font:$textcolor $gtkFont"); out_array=( "${out_array[@]}" "$myfont" ); ((display_index++)) + fi + fi + else + if [ "$gtk2Theme" != "Not Found" ]; then + if [ -n "$gtk2Theme" ]; then + mygtk2="${gtk2Theme} [GTK2]" + fi + fi + if [ "$gtk3Theme" != "Not Found" ]; then + if [ -n "$mygtk2" ]; then + mygtk3=", ${gtk3Theme} [GTK3]" + else + mygtk3="${gtk3Theme} [GTK3]" + fi + fi + if [[ "$gtk_2line" == "yes" ]]; then + mygtk2=$(echo -e "$labelcolor GTK2 Theme:$textcolor $gtk2Theme"); out_array=( "${out_array[@]}" "$mygtk2" ); ((display_index++)) + mygtk3=$(echo -e "$labelcolor GTK3 Theme:$textcolor $gtk3Theme"); out_array=( "${out_array[@]}" "$mygtk3" ); ((display_index++)) + else + mygtk=$(echo -e "$labelcolor GTK Theme:$textcolor ${mygtk2}${mygtk3}"); out_array=( "${out_array[@]}" "$mygtk" ); ((display_index++)) + fi + if [ "$gtkIcons" != "Not Found" ]; then + if [ -n "$gtkIcons" ]; then + myicons=$(echo -e "$labelcolor Icon Theme:$textcolor $gtkIcons"); out_array=( "${out_array[@]}" "$myicons" ); ((display_index++)) + fi + fi + if [ "$gtkFont" != "Not Found" ]; then + if [ -n "$gtkFont" ]; then + myfont=$(echo -e "$labelcolor Font:$textcolor $gtkFont"); out_array=( "${out_array[@]}" "$myfont" ); ((display_index++)) + fi + fi + # [ "$gtkBackground" ] && mybg=$(echo -e "$labelcolor BG:$textcolor $gtkBackground"); out_array=( "${out_array[@]}" "$mybg" ); ((display_index++)) + fi + fi + elif [[ "$fake_distro" == "Cygwin" ]]; then + if [[ "${display[@]}" =~ "res" && -n "$xResolution" ]]; then myres=$(echo -e "$labelcolor Resolution:${textcolor} $xResolution"); out_array=( "${out_array[@]}" "$myres" ); ((display_index++)); fi + if [[ "${display[@]}" =~ "de" ]]; then + if [[ "${DE}" != "Not Present" ]]; then + myde=$(echo -e "$labelcolor DE:$textcolor $DE"); out_array=( "${out_array[@]}" "$myde" ); ((display_index++)) + fi + fi + if [[ "${display[@]}" =~ "wm" ]]; then mywm=$(echo -e "$labelcolor WM:$textcolor $WM"); out_array=( "${out_array[@]}" "$mywm" ); ((display_index++)); fi + if [[ "${display[@]}" =~ "wmtheme" ]]; then + if [[ "${Win_theme}" == "Not Present" ]]; then + : + else + mywmtheme=$(echo -e "$labelcolor WM Theme:$textcolor $Win_theme"); out_array=( "${out_array[@]}" "$mywmtheme" ); ((display_index++)) + fi + fi + fi + [[ "${fake_distro}" != "Cygwin" ]] && if [[ "${display[@]}" =~ "disk" ]]; then mydisk=$(echo -e "$labelcolor Disk:$textcolor $diskusage"); out_array=( "${out_array[@]}" "$mydisk" ); ((display_index++)); fi + if [[ "${display[@]}" =~ "cpu" ]]; then mycpu=$(echo -e "$labelcolor CPU:$textcolor $cpu"); out_array=( "${out_array[@]}" "$mycpu" ); ((display_index++)); fi + if [[ "${display[@]}" =~ "gpu" ]] && [[ "$gpu" != "Not Found" ]]; then mygpu=$(echo -e "$labelcolor GPU:$textcolor $gpu"); out_array=( "${out_array[@]}" "$mygpu" ); ((display_index++)); fi + if [[ "${display[@]}" =~ "mem" ]]; then mymem=$(echo -e "$labelcolor RAM:$textcolor $mem"); out_array=( "${out_array[@]}" "$mymem" ); ((display_index++)); fi + fi + if [[ "$display_type" == "ASCII" ]]; then + asciiText + else + if [[ "${display[@]}" =~ "host" ]]; then echo -e " $myinfo"; fi + if [[ "${display[@]}" =~ "distro" ]]; then echo -e "$mydistro"; fi + if [[ "${display[@]}" =~ "kernel" ]]; then echo -e "$mykernel"; fi + if [[ "${distro}" == "Android" ]]; then + echo -e "$mydevice" + echo -e "$myrom" + echo -e "$mybaseband" + echo -e "$mykernel" + echo -e "$myuptime" + echo -e "$mycpu" + echo -e "$mymem" + else + if [[ "${display[@]}" =~ "uptime" ]]; then echo -e "$myuptime"; fi + if [[ "${display[@]}" =~ "pkgs" ]]; then echo -e "$mypkgs"; fi + if [[ "${display[@]}" =~ "shell" ]]; then echo -e "$myshell"; fi + if [[ "${display[@]}" =~ "res" ]]; then echo -e "$myres"; fi + if [[ "${display[@]}" =~ "de" ]]; then + if [[ "${DE}" != "Not Present" ]]; then echo -e "$myde"; fi + fi + if [[ "${display[@]}" =~ "wm" ]]; then + echo -e "$mywm" + if [[ "${Win_theme}" != "Not Present" ]]; then + echo -e "$mywmtheme" + fi + fi + if [[ "${display[@]}" =~ "gtk" ]]; then + echo -e "$mygtk2" + echo -e "$mygtk3" + echo -e "$myicons" + echo -e "$myfont" + fi + if [[ "${display[@]}" =~ "disk" ]]; then echo -e "$mydisk"; fi + if [[ "${display[@]}" =~ "cpu" ]]; then echo -e "$mycpu"; fi + if [[ "${display[@]}" =~ "gpu" ]]; then echo -e "$mygpu"; fi + if [[ "${display[@]}" =~ "mem" ]]; then echo -e "$mymem"; fi + fi + fi +} + +################## +# Let's Do This! +################## + +if [[ -f "$HOME/.screenfetchOR" ]]; then + source $HOME/.screenfetchOR +fi + + +if [[ "$overrideDisplay" ]]; then + [[ "$verbosity" -eq "1" ]] && verboseOut "Found 'd' flag in syntax. Overriding some display options..." + overrideDisplay=${overrideDisplay//,/ } + display=( $overrideDisplay ) +fi + +# Check for android +#if type -p getprop >/dev/null 2>&1; then +# distro="Android" +# detectmem +# detectuptime +# detectkernel +# detectdroid +# infoDisplay +# exit 0 +#fi +Win_theme='greybeard' +for i in "${display[@]}"; do + if [[ $i =~ wm ]]; then + ! [[ $WM ]] && detectwm; + ! [[ $Win_theme ]] && detectwmtheme; + else + if [[ "${display[*]}" =~ "$i" ]]; then + if [[ "$errorSuppress" == "1" ]]; then detect${i} 2>/dev/null + else + exec 3> >(stderrOut) + detect${i} 2>&3 + exec 3>&- + fi + fi + fi +done + +infoDisplay +[ "$screenshot" == "1" ] && takeShot +[ "$exportTheme" == "1" ] && themeExport + +exit 0 \ No newline at end of file diff --git a/sys/code/sys/toggle-touchpad b/sys/code/sys/toggle-touchpad new file mode 100755 index 0000000..2381a86 --- /dev/null +++ b/sys/code/sys/toggle-touchpad @@ -0,0 +1,20 @@ +#!/bin/bash +# +# enable/disable touchpad +# find your touchpad name: +# egrep -i 'synap|alps|etps' /proc/bus/input/devices +PAD='SynPS/2 Synaptics TouchPad' +A=`xinput list-props "$PAD" | sed -n -e 's/.*Device Enabled ([0-9][0-9]*):\t\(.*\)/\1/p' ` +if [ $A -eq 1 ]; then +xinput set-int-prop "$PAD" "Device Enabled" 8 0 +notify-send -t 5000 \ +' touchpad +░░▒▒▓▓██▓▓▒▒░░' \ +' disabled' +else +xinput set-int-prop "$PAD" "Device Enabled" 8 1 +notify-send -t 5000 \ +' touchpad +░░▒▒▓▓██▓▓▒▒░░' \ +' enabled' +fi diff --git a/themes/.themes/cathexis/gtk-2.0/apps/banshee.rc b/themes/.themes/cathexis/gtk-2.0/apps/banshee.rc new file mode 100755 index 0000000..d49aaf7 --- /dev/null +++ b/themes/.themes/cathexis/gtk-2.0/apps/banshee.rc @@ -0,0 +1,23 @@ +# ============================================================================== +# BANSHEE SPECIFIC SETTINGS +# ============================================================================== + +style "banshee_scrollbar" { + engine "murrine" { + roundness = 20 + } +} + +widget "__gtksharp_1*SeekSlider*" style "scale" +widget "__gtksharp_1*Player*croll*" style "banshee_scrollbar" + +widget_class "__gtksharp_1**" style "default" +widget_class "__gtksharp_1**" style "button" +#widget_class "__gtksharp_1**" style "scale" + + + + + + + diff --git a/themes/.themes/cathexis/gtk-2.0/apps/chromium.rc b/themes/.themes/cathexis/gtk-2.0/apps/chromium.rc new file mode 100755 index 0000000..c73343a --- /dev/null +++ b/themes/.themes/cathexis/gtk-2.0/apps/chromium.rc @@ -0,0 +1,40 @@ +# ============================================================================== +# CHROMIUM SPECIFIC SETTINGS +# ============================================================================== + +style "chromium_toolbar_button" { + engine "murrine" { + roundness = 3 + textstyle = 0 + } +} + +style "chrome-gtk-frame" +{ + ChromeGtkFrame::frame-color = @menu_bg_color + ChromeGtkFrame::inactive-frame-color = @menu_bg_color + + ChromeGtkFrame::frame-gradient-size = 0 + ChromeGtkFrame::frame-gradient-color = @menu_bg_color + + ChromeGtkFrame::incognito-frame-color = @selected_bg_color + ChromeGtkFrame::incognito-inactive-frame-color = @menu_bg_color + + + ChromeGtkFrame::incognito-frame-gradient-size = 0 + ChromeGtkFrame::incognito-frame-gradient-color = @selected_bg_color + + ChromeGtkFrame::scrollbar-trough-color = @bg_color + ChromeGtkFrame::scrollbar-slider-prelight-color = shade (1.04, @bg_color) + ChromeGtkFrame::scrollbar-slider-normal-color = @bg_color +} + +class "ChromeGtkFrame" style "chrome-gtk-frame" + +widget_class "*Chrome*Button*" style "chromium_toolbar_button" + + + + + + diff --git a/themes/.themes/cathexis/gtk-2.0/apps/ff.rc b/themes/.themes/cathexis/gtk-2.0/apps/ff.rc new file mode 100755 index 0000000..43a8360 --- /dev/null +++ b/themes/.themes/cathexis/gtk-2.0/apps/ff.rc @@ -0,0 +1,43 @@ +# ============================================================================== +# FIREFOX SPECIFIC SETTINGS +# ============================================================================== + +style "ff-default" { + GtkCheckButton::indicator-size = 14 + bg[NORMAL] = @menu_bg_color +} + +style "theme-toolbar" { + + bg[NORMAL] = @bg_color + bg[INSENSITIVE] = lighter (@menu_bg_color) + fg[NORMAL] = @fg_color + fg[ACTIVE] = @menu_bg_color + fg[SELECTED] =@menu_bg_color + fg[PRELIGHT] = @selected_fg_color + text[NORMAL] = @fg_color + text[ACTIVE] = @selected_fg_color + text[SELECTED] = @menu_bg_color + text[PRELIGHT] = @selected_fg_color + base[NORMAL] = @base_color + +} + +widget "MozillaGtkWidget*Toolbar*" style "theme-toolbar" +#widget "MozillaGtkWidget*Statusbar*" style "ff-statusbar" + +widget "MozillaGtkWidget*" style "ff-default" + +# ------------------------------------------------------------------------------ +# Some Firefox (3.0/3.5) GTK widgets hierarchy (maybe useful for someone) +# ------------------------------------------------------------------------------ + +# Top toolbars (and maybe others) +#widget "MozillaGtkWidget.GtkFixed.GtkHandleBox.GtkToolbar" style "theme-dark-toolbar" + +# Findbar entry, gecko (all html) entry +#widget "MozillaGtkWidget.GtkFixed.GtkEntry" style "theme-dark-entry" + +# ALL buttons +#widget "MozillaGtkWidget.GtkFixed.GtkButton" style "theme-dark-button" + diff --git a/themes/.themes/cathexis/gtk-2.0/apps/gnome-terminal.rc b/themes/.themes/cathexis/gtk-2.0/apps/gnome-terminal.rc new file mode 100755 index 0000000..403991d --- /dev/null +++ b/themes/.themes/cathexis/gtk-2.0/apps/gnome-terminal.rc @@ -0,0 +1,52 @@ +# ============================================================================== +# GNOME TERMINAL SPECIFIC SETTINGS +# ============================================================================== + +style "terminal_window" = "dark" { +} + +style "terminal_menubar" +{ + engine "murrine" { + } +} + +style "terminal_notebook" = "dark" +{ + fg[ACTIVE] = mix (0.8, "#dfdbd2", "#3c3b37") + + engine "murrine" { + } +} + +style "terminal_scrollbar" = "scrollbar" +{ + bg[NORMAL] = "#3c3b37" + bg[PRELIGHT] = shade(1.08, "#3c3b37") + bg[ACTIVE] = shade(0.94, "#3c3b37") + bg[SELECTED] = shade(1.0, @selected_bg_color) + bg[INSENSITIVE] = "#3c3b37" + + engine "murrine" { + } +} + +style "terminal_screen" +{ + text[NORMAL] = "#ffffff" + base[NORMAL] = "#300a24" + + TerminalScreen::background-darkness = 0.95 +} + +widget "*TerminalWindow*" style "terminal_window" +#widget "*TerminalWindow.*.*enu?ar" style "terminal_menubar" +widget "*TerminalWindow.*.GtkNotebook*" style "terminal_notebook" +widget "*TerminalWindow.*.GtkNotebook.*.GtkVScrollbar*" style "terminal_scrollbar" +#widget "*TerminalWindow.*.GtkNotebook*utton*" style "terminal_button" +widget "*TerminalWindow.*.TerminalScreen*" style "terminal_screen" + + + + + diff --git a/themes/.themes/cathexis/gtk-2.0/apps/nautilus.rc b/themes/.themes/cathexis/gtk-2.0/apps/nautilus.rc new file mode 100755 index 0000000..1f5fd66 --- /dev/null +++ b/themes/.themes/cathexis/gtk-2.0/apps/nautilus.rc @@ -0,0 +1,11 @@ +# ============================================================================== +# NAUTILUS SPECIFIC SETTINGS +# ============================================================================== + +style "nautilus_info_pane" { + bg[NORMAL] = @bg_color +} + +widget_class "*Nautilus**" style "nautilus_info_pane" +widget_class "*Nautilus*" style "notebook_button" +widget_class "*Nautilus**" style "notebook_button" diff --git a/themes/.themes/cathexis/gtk-2.0/gtkrc b/themes/.themes/cathexis/gtk-2.0/gtkrc new file mode 100755 index 0000000..1092a54 --- /dev/null +++ b/themes/.themes/cathexis/gtk-2.0/gtkrc @@ -0,0 +1,749 @@ +# Theme: CathexiS +# Description: Simple, minimal, distraction free foundation for building your desktop experience... +# Author: Samir Kahvedzic < akirapowered@gmail.com > +# Web: http://samirkahvedzic.deviantart.com +# ------------------------------------------------------- + +gtk_color_scheme = "fg_color:#666666" +gtk_color_scheme = "bg_color:#222222" +gtk_color_scheme = "base_color:#222222" +gtk_color_scheme = "text_color:#666666" +gtk_color_scheme = "selected_bg_color:#FEA63C" +gtk_color_scheme = "selected_fg_color:#000000" +gtk_color_scheme = "tooltip_bg_color:#B5B5B5" +gtk_color_scheme = "tooltip_fg_color:#101010" +gtk_color_scheme = "link_color:#FEA63C" +gtk_color_scheme = "menu_bg_color:#111111" +gtk_color_scheme = "menu_fg_color:#666666" + +gtk-icon-sizes = "panel-menu=22,22:gtk-button=16,16" +gtk-button-images = 0 +gtk-toolbar-style = 0 +gtk-auto-mnemonics = 1 + +style "default" { + xthickness = 1 + ythickness = 1 + + ####################### + # Style Properties + ####################### + GtkButton::child-displacement-x = 1 + GtkButton::child-displacement-y = 1 + GtkButton::default-border = { 0, 0, 0, 0 } + + GtkCheckButton::indicator-size = 16 + + GtkPaned::handle-size = 6 + + GtkRange::trough-border = 0 + GtkRange::slider-width = 14 + GtkRange::stepper-size = 13 + GtkRange::trough-under-steppers = 1 + + GtkScale::trough-border = 0 + GtkScale::slider-width = 23 + GtkScale::slider-length = 14 + GtkScale::trough-side-details = 1 + + GtkScrollbar::activate-slider = 1 + GtkScrollbar::trough-border = 1 + GtkScrollbar::slider-width = 7 + GtkScrollbar::min-slider-length = 31 + GtkScrollbar::has-backward-stepper = 0 + GtkScrollbar::has-forward-stepper = 0 + + GtkMenuBar::internal-padding = 0 + GtkMenuBar::shadow-type = GTK_SHADOW_NONE + GtkExpander::expander-size = 11 + GtkToolbar::internal-padding = 1 + GtkToolbar::shadow-type = GTK_SHADOW_NONE + GtkTreeView::expander-size = 7 + GtkTreeView::vertical-separator = 0 +# GtkTreeView::odd-row-color = shade (0.96, @base_color) + GtkNotebook::tab-overlap = -1 + + GtkMenu::horizontal-padding = 0 + GtkMenu::vertical-padding = 3 + + WnckTasklist::fade-overlay-rect = 0 + # The following line hints to gecko (and possibly other appliations) + # that the entry should be drawn transparently on the canvas. + # Without this, gecko will fill in the background of the entry. + GtkEntry::honors-transparent-bg-hint = 1 + GtkEntry::state-hint = 0 + + GtkEntry::progress-border = { 2, 2, 2, 2 } + + GtkProgressBar::min-horizontal-bar-height = 7 + GtkProgressBar::min-vertical-bar-width = 7 + + GtkImage::x-ayatana-indicator-dynamic = 1 + GtkMenuBar::window-dragging = 1 + + GtkWidget::link-color = @link_color + GtkWidget::visited-link-color = @text_color + + #################### + # Color Definitions + #################### + bg[NORMAL] = @bg_color + bg[PRELIGHT] = shade (1.02, @bg_color) + bg[SELECTED] = @selected_bg_color + bg[INSENSITIVE] = shade (0.95, @bg_color) + bg[ACTIVE] = shade (0.9, @bg_color) + + fg[NORMAL] = @fg_color + fg[PRELIGHT] = @fg_color + fg[SELECTED] = @selected_fg_color + fg[INSENSITIVE] = darker (@bg_color) + fg[ACTIVE] = @fg_color + + text[NORMAL] = @text_color + text[PRELIGHT] = @text_color + text[SELECTED] = @selected_fg_color + text[INSENSITIVE] = shade (0.8, @bg_color) + text[ACTIVE] = @selected_fg_color + + base[NORMAL] = @base_color + base[PRELIGHT] = shade (0.4, @fg_color) + base[SELECTED] = @selected_bg_color + base[INSENSITIVE] = shade (0.97, @bg_color) + base[ACTIVE] = shade (0.75, @fg_color) + engine "murrine" { + contrast = 0.6 + arrowstyle = 2 + reliefstyle = 3 + highlight_shade = 1.0 + glazestyle = 0 + default_button_color = shade (1.1, @selected_bg_color) + gradient_shades = {1.1, 1.0, 1.0, 0.9} + roundness = 0 + lightborder_shade = 1.26 + lightborderstyle = 1 + listviewstyle = 2 + progressbarstyle = 0 + colorize_scrollbar = FALSE + menubaritemstyle = 1 + menubarstyle = 1 + menustyle = 0 + focusstyle = 0 + handlestyle = 1 + sliderstyle = 3 + scrollbarstyle = 0 + stepperstyle = 3 +# rgba = TRUE + } +} + +style "dark" +{ + color["bg_color_dark"] = "#111111" + color["fg_color_dark"] = "#FFFFFF" + color["selected_fg_color_dark"] = "#111111" + + fg[NORMAL] = @fg_color_dark + fg[PRELIGHT] = shade (1.15, @fg_color_dark) + fg[ACTIVE] = @fg_color_dark + fg[SELECTED] = @selected_fg_color_dark + fg[INSENSITIVE] = shade (0.5, @fg_color_dark) + + bg[NORMAL] = @bg_color_dark + bg[ACTIVE] = shade (0.8, @bg_color_dark) + bg[SELECTED] = @selected_bg_color + bg[PRELIGHT] = shade (1.0, "#4D4C48") + bg[INSENSITIVE] = shade (0.85, @bg_color_dark) + + text[NORMAL] = @fg_color_dark + text[PRELIGHT] = shade (1.15, @fg_color_dark) + text[SELECTED] = @selected_fg_color_dark + text[ACTIVE] = @fg_color_dark + text[INSENSITIVE] = mix (0.5, @bg_color, @bg_color_dark) +} + +style "wide" { + xthickness = 5 + ythickness = 3 +} + +style "wider" { + xthickness = 7 + ythickness = 3 +} + +style "entry" { + xthickness = 3 + ythickness = 3 + + bg[NORMAL] = shade (0.70, @bg_color) + base[NORMAL] = @bg_color + bg[SELECTED] = shade (0.90, @bg_color) + fg[SELECTED] = @text_color + + engine "murrine" { + focus_color = shade (0.40, @fg_color) + roundness = 2 + } +} + +style "vscale" { +} + +style "hscale" { +} + +style "button" { + + xthickness = 3 + ythickness = 3 + + bg[NORMAL] = shade (1.03, @bg_color) + bg[PRELIGHT] = shade (0.50, @fg_color) + bg[ACTIVE] = shade (0.96, @bg_color) + bg[INSENSITIVE] = @bg_color + fg[INSENSITIVE] = lighter (@menu_bg_color) + + engine "murrine" { + contrast = 1.0 + textstyle = 1 + border_shades = {1.01, 0.8} + reliefstyle = 0 + shadow_shades = {1.0, 1.1} + glowstyle = 5 + glow_shade = 1.02 + lightborder_shade = 1.32 +# lightborderstyle = 0 + text_shade = 1.04 + } +} + +style "notebook_button" = "button" { +} + +style "spinbutton" = "notebook_button" { + xthickness = 4 + + engine "murrine" { + } +} + +style "scrollbar" = "button" { + xthickness = 2 + ythickness = 2 + + bg[NORMAL] = darker (@bg_color) + bg[PRELIGHT] = shade (1.04, @bg_color) + fg[PRELIGHT] = lighter (@fg_color) + + bg[ACTIVE] = shade (0.96, @bg_color) + + engine "murrine" + { + border_shades = {0.95, 0.90} + roundness = 20 + contrast = 1.0 + trough_shades = {0.92, 0.98} + lightborder_shade = 1.3 + glowstyle = 5 + glow_shade = 1.02 + gradient_shades = {1.2, 1.0, 1.0, 0.86} + trough_border_shades = {0.9, 0.98} + } +} + +style "hscrollbar" { +} + +style "vscrollbar" { +} + +style "overlay_scrollbar" +{ + bg[SELECTED] = shade (1.0, @selected_bg_color) + bg[INSENSITIVE] = shade (0.85, @bg_color) + bg[ACTIVE] = shade (0.6, @bg_color) +} + +style "scale" = "button" { + bg[NORMAL] = @bg_color + bg[PRELIGHT] = shade (1.06, @bg_color) + bg[ACTIVE] = shade (0.94, @bg_color) + + engine "murrine" { + contrast = 0.6 + border_shades = {0.9, 0.8} + roundness = 5 + lightborder_shade = 1.32 + gradient_shades = {1.1, 1.0, 1.0, 0.8} + handlestyle = 2 + trough_border_shades = {0.9, 1.4} + glow_shade = 1.0 +# reliefstyle = 2 +# shadow_shades = { 1.0, 0.9 } + } +} + +style "notebook_bg" { + bg[NORMAL] = shade (1.20, @bg_color) + bg[ACTIVE] = shade (0.90, @bg_color) + fg[NORMAL] = @fg_color + fg[ACTIVE] = darker (@fg_color) + fg[PRELIGHT] = lighter (@fg_color) +} + +# The color is changed by the notebook_bg style, this style +# changes the x/ythickness +style "notebook" { + xthickness = 7 + ythickness = 3 + + engine "murrine" { + focusstyle = 2 + lightborder_shade = 1.16 + gradient_shades = {1.1, 1.0, 1.0, 0.68} + contrast = 1.0 + textstyle = 1 + border_shades = {1.01, 0.8} + reliefstyle = 0 + shadow_shades = {1.0, 1.1} + glowstyle = 5 + glow_shade = 1.02 + lightborder_shade = 1.32 +# lightborderstyle = 0 + text_shade = 1.04 + } +} + +style "statusbar" { + engine "murrine" { + contrast = 1.2 + } +} + +style "comboboxentry" = "notebook_button" { + xthickness = 3 + ythickness = 3 + + engine "murrine" { + textstyle = 1 + glowstyle = 5 + glow_shade = 1.02 + } +} + +style "toolbar" { + engine "murrine" { + textstyle = 1 + text_shade = 1.32 + lightborder_shade = 1.0 + } +} + +style "toolbar-button" = "notebook_button" { + engine "murrine" { + } +} + +style "menu" { + xthickness = 0 + ythickness = 0 + + fg[PRELIGHT] = @selected_fg_color + fg[SELECTED] = @selected_bg_color + fg[ACTIVE] = @selected_bg_color + bg[NORMAL] = @menu_bg_color + + engine "murrine" + { + roundness = 2 + } +} + +style "menu_item" = "menu" { + xthickness = 2 + ythickness = 3 + + engine "murrine" + { + glowstyle = 5 + glow_shade = 1.1 + border_shades = {0.95, 0.85} + } +} + +style "menubar_item" { + xthickness = 2 + ythickness = 3 + + fg[NORMAL] = @menu_fg_color + fg[PRELIGHT] = @selected_bg_color + fg[SELECTED] = @selected_bg_color + fg[ACTIVE] = @selected_bg_color + fg[INSENSITIVE] = shade (0.49, @selected_bg_color) + + engine "murrine" { + gradient_shades = {1.1, 1.0, 1.0, 0.88} + glowstyle = 5 + glow_shade = 1.0 + border_shades = {1.0, 0.9} + lightborderstyle = 3 + lightborder_shade = 1.26 + } +} + +style "menubar" { + + bg[SELECTED] = shade (1.2, @menu_bg_color) + bg[NORMAL] = @menu_bg_color + bg[PRELIGHT] = shade (1.2, @menu_bg_color) + bg[ACTIVE] = @menu_bg_color + + engine "murrine" { + textstyle = 2 + text_shade = 0.33 + gradient_shades = {1.0, 1.0, 1.0, 1.0} + lightborder_shade = 1.0 + } +} + +style "scale_menu_item" = "scale" { + GtkScale::slider-width = 21 + GtkScale::slider-length = 13 + + bg[ACTIVE] = shade(0.98, "#4D4C48") + bg[INSENSITIVE] = shade (0.9, @bg_color) + + engine "murrine" { + roundness = 20 + border_shades = {1.4, 1.4} + reliefstyle = 0 + lightborder_shade = 1.36 + } +} + +# This style is there to modify the separator menu items. The goals are: +# 1. Get a specific height. +# 2. The line should go to the edges (ie. no border at the left/right) +style "separator_menu_item" { + xthickness = 1 + ythickness = 0 + + GtkSeparatorMenuItem::horizontal-padding = 0 + GtkWidget::wide-separators = 1 + GtkWidget::separator-width = 1 + GtkWidget::separator-height = 7 + + engine "murrine" { + contrast = 0.6 + separatorstyle = 0 + } +} + +style "separator_tool_item" { + xthickness = 0 + ythickness = 1 + + GtkVSeparator::vertical-padding = 0 + GtkWidget::wide-separators = 1 + GtkWidget::separator-width = 7 + GtkWidget::separator-height = 1 + + engine "murrine" { + contrast = 0.6 + separatorstyle = 0 + } +} + +style "frame_title" { + fg[NORMAL] = darker (@fg_color) +} + +style "treeview" { + + engine "murrine" + { + roundness = 2 + lightborder_shade = 1.1 + gradient_shades = {1.04, 1.0, 1.0, 0.96} + } +} + +style "progressbar" { + xthickness = 1 + ythickness = 1 + + fg[PRELIGHT] = shade (1.10, @selected_bg_color) + bg[NORMAL] = shade (1.10, @selected_bg_color) + bg[SELECTED] = shade (0.66, @selected_bg_color) + + engine "murrine" { + trough_shades = {0.98, 1.02} + roundness = 2 + lightborderstyle = 1 + lightborder_shade = 1.26 + border_shades = {0.95, 0.85} + gradient_shades = {1.1, 1.0, 1.0, 0.9} + trough_border_shades = {0.9, 1.4} + } +} + +style "progressbar_menu_item" = "progressbar" { + bg[ACTIVE] = shade(0.98, "#4D4C48") + + engine "murrine" { + roundness = 0 + } +} + +# This style is based on the default style, so that the colors from the button +# style are overriden again. +style "treeview_header" = "notebook_button" { + xthickness = 2 + ythickness = 1 + + engine "murrine" { + glazestyle = 1 + contrast = 0.8 + lightborder_shade = 1.16 + textstyle = 1 + glow_shade = 1.0 + } +} + +style "treeview_header_scrolled" = "treeview_header" { +} + +style "scrolledwindow" { + engine "murrine" { + contrast = 0.6 + } +} + +style "radiocheck" { + + bg[SELECTED] = @bg_color + fg[ACTIVE] = lighter (@fg_color) + text[NORMAL] = @selected_bg_color + + engine "murrine" { + reliefstyle = 3 + gradient_shades = {1.2, 1.0, 1.0, 0.9} + shadow_shades = {0.6, 0.5} + textstyle = 0 + } +} + +style "tooltips" { + xthickness = 4 + ythickness = 4 + + bg[NORMAL] = @tooltip_bg_color + fg[NORMAL] = @tooltip_fg_color + bg[SELECTED] = "#000000" + + engine "murrine" { + rgba = TRUE + } +} + +style "infobar" { + engine "murrine" { + } +} + +style "nautilus_location" { + bg[NORMAL] = mix (0.60, shade (1.05, @bg_color), @selected_bg_color) +} + +style "calendar" { + xthickness = 0 + ythickness = 0 + + engine "murrine" { + roundness = 0 + } +} + +style "calendar_menu_item" = "calendar" { + base[NORMAL] = "#605E58" + base[ACTIVE] = "#4b4944" +} + +style "iconview" { + engine "murrine" { + roundness = 6 + border_shades = {1.16, 1.0} + glow_shade = 1.1 + glowstyle = 5 + } +} + +style "soundfix" +{ +} + +# Wrokaround style for places where the text color is used instead of the fg color. +style "text_is_fg_color_workaround" { + text[NORMAL] = @fg_color + text[PRELIGHT] = @fg_color + text[SELECTED] = @selected_fg_color + text[ACTIVE] = @fg_color + text[INSENSITIVE] = darker (@bg_color) +} + +# Workaround style for menus where the text color is used instead of the fg color. +style "menuitem_text_is_fg_color_workaround" { + text[NORMAL] = @fg_color + text[PRELIGHT] = @selected_fg_color + text[SELECTED] = @selected_fg_color + text[ACTIVE] = @fg_color + text[INSENSITIVE] = "#99958b" +} + +# Workaround style for places where the fg color is used instead of the text color. +style "fg_is_text_color_workaround" { + fg[NORMAL] = @text_color + fg[PRELIGHT] = @text_color + fg[SELECTED] = @selected_fg_color + fg[ACTIVE] = @selected_fg_color + fg[INSENSITIVE] = darker (@bg_color) +} + +# Style to set the toolbar to use a flat style. This is because the "New" button in +# Evolution is not drawn transparent. So if there is a gradient in the background it will +# look really wrong. +# See http://bugzilla.gnome.org/show_bug.cgi?id=446953. +style "evo_new_button_workaround" { +} + +############################################################################### +# The following part of the gtkrc applies the different styles to the widgets. +############################################################################### + +# The default style is applied to every widget +class "GtkWidget" style "default" + +class "GtkSeparator" style "wide" +class "GtkFrame" style "wide" +class "GtkCalendar" style "wide" +class "GtkEntry" style "entry" + +class "GtkSpinButton" style "spinbutton" +class "GtkScale" style "scale" +class "GtkVScale" style "vscale" +class "GtkHScale" style "hscale" +class "GtkScrollbar" style "scrollbar" +class "GtkHScrollbar" style "hscrollbar" +class "GtkVScrollbar" style "vscrollbar" +class "GtkCalendar" style "calendar" +class "GtkInfoBar" style "infobar" +class "GtkIconView" style "iconview" + +# General matching follows. The order is choosen so that the right styles override +# each other. EG. progressbar needs to be more important than the menu match. +widget_class "*" style "notebook_bg" +# This is not perfect, it could be done better. +# (That is modify *every* widget in the notebook, and change those back that +# we really don't want changed) +widget_class "**" style "notebook_bg" +widget_class "**" style "notebook_bg" +widget_class "**" style "notebook_bg" +widget_class "**" style "notebook_bg" + +widget_class "**" style "toolbar" +widget_class "**" style "scrolledwindow" + +widget_class "*" style "button" +widget_class "**" style "button" +widget_class "*.*.*" style "notebook_button" +widget_class "*" style "notebook" +widget_class "*" style "statusbar" +widget_class "**" style "spinbutton" +widget_class "**" style "notebook_button" +widget_class "***" style "notebook_button" +widget_class "**" style "radiocheck" +widget_class "**" style "radiocheck" + +widget_class "**" style "comboboxentry" +widget_class "**" style "comboboxentry" + +widget_class "**" style "menubar" +widget_class "**" style "menu" +widget_class "**" style "menu_item" +widget_class "**" style "separator_menu_item" +widget_class "**" style "separator_tool_item" +widget_class "***" style "menubar_item" + +widget_class "*.." style "frame_title" +widget_class "*.*" style "treeview" + +widget_class "*" style "progressbar" +widget_class "*.*." style "progressbar_menu_item" +widget_class "*.*." style "scale_menu_item" +widget_class "*.*." style "calendar_menu_item" + +# Treeview headers (and similar stock GTK+ widgets) +widget_class "*.**" style "treeview_header_scrolled" +widget_class "*.." style "treeview_header" +widget_class "*.." style "treeview_header" +widget_class "*.." style "treeview_header" +widget_class "*.." style "treeview_header" +widget_class "*...*" style "treeview_header" +widget_class "*...*" style "treeview_header" +widget_class "*...*" style "treeview_header" +widget_class "*...*" style "treeview_header" + +# Overlay scrollbar +widget_class "*" style "overlay_scrollbar" +widget_class "*" style "overlay_scrollbar" + +# The window of the tooltip is called "gtk-tooltip" +################################################################## +# FIXME: +# This will not work if one embeds eg. a button into the tooltip. +# As far as I can tell right now we will need to rework the theme +# quite a bit to get this working correctly. +# (It will involve setting different priorities, etc.) +################################################################## +widget "gtk-tooltip*" style "tooltips" + +########################################################################## +# Following are special cases and workarounds for issues in applications. +########################################################################## + +# Workaround for the evolution ETable (bug #527532) +widget_class "*.ETable.ECanvas" style "treeview_header" +# Workaround for the evolution ETree +widget_class "*.ETree.ECanvas" style "treeview_header" + +# Special case the nautilus-extra-view-widget +# ToDo: A more generic approach for all applications that have a widget like this. +widget "*.nautilus-extra-view-widget" style : highest "nautilus_location" + +# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646 +# Note that this work around assumes that the combobox is _not_ in appears-as-list mode. +widget_class "*.." style "text_is_fg_color_workaround" +# This is the part of the workaround that fixes the menus +widget "*.gtk-combobox-popup-menu.*" style "menuitem_text_is_fg_color_workaround" + +# Work around the usage of GtkLabel inside GtkListItems to display text. +# This breaks because the label is shown on a background that is based on the base color. +widget_class "**" style "fg_is_text_color_workaround" +# GtkCList also uses the fg color to draw text on top of the base colors. +widget_class "*" style "fg_is_text_color_workaround" +# Nautilus when renaming files, and maybe other places. +widget_class "*" style "fg_is_text_color_workaround" +# Work around for ubuntu's lucid sound indicator +widget "ido-offscreen-scale" style "soundfix" +# Thickness for indicator menu items +widget "*IdoEntryMenuItem*" style "wide" + +# See the documentation of the style. +widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround" + +# Includes +#include "apps/banshee.rc" +include "apps/chromium.rc" +include "apps/ff.rc" +include "apps/gnome-terminal.rc" +include "apps/nautilus.rc" diff --git a/themes/.themes/cathexis/gtk-3.0/apps/baobab.css b/themes/.themes/cathexis/gtk-3.0/apps/baobab.css new file mode 100755 index 0000000..f4dcf6c --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/apps/baobab.css @@ -0,0 +1,16 @@ +.baobab-toolbar.toolbar { + border-color: shade (@bg_color, 0.9); + border-style: solid; + border-width: 0 0 1px 0; + border-radius: 0; +} + +.cell.baobab-level-cell, +.cell.baobab-level-cell:hover, +.cell.baobab-level-cell:selected, +.cell.baobab-level-cell:selected:hover { + border-color: alpha (black, 0.06); + border-width: 1px; + border-style: solid; + background-color: @base_color; +} diff --git a/themes/.themes/cathexis/gtk-3.0/apps/gedit.css b/themes/.themes/cathexis/gtk-3.0/apps/gedit.css new file mode 100755 index 0000000..a827ccc --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/apps/gedit.css @@ -0,0 +1,40 @@ +@define-color notebook_tab_gradient_b shade (@bg_color, 0.98); + +GeditWindow .pane-separator, +GeditWindow .pane-separator:hover { +} + +GeditPanel.title GtkLabel { +} + +GeditPanel .toolbar { + border-style: none; + background-color: transparent; +} + +GeditDocumentsPanel .view { +} + +GeditDocumentsPanel .view:backdrop { +} + +GeditWindow .notebook { + padding: 1px; + border-radius: 1px; +} + +GeditPanel .notebook { + padding: 3px; + border-radius: 1px; +} + +GeditPanel .notebook tab, +GeditWindow .notebook tab { + border-radius: 3px; +} + +GeditFloatingSlider .not-found { + color: @error_fg_color; + background-image: none; + background-color: @error_bg_color; +} diff --git a/themes/.themes/cathexis/gtk-3.0/apps/gnome-applications.css b/themes/.themes/cathexis/gtk-3.0/apps/gnome-applications.css new file mode 100755 index 0000000..bc7f782 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/apps/gnome-applications.css @@ -0,0 +1,558 @@ +@define-color nautilus_cluebar_color #729fcf; + +@define-color documents_selection_toolbar_a #8e9c80; +@define-color documents_selection_toolbar_b #4f6838; +@define-color documents_selection_toolbar_border #3e7b05; + +@define-color documents_selection_button_a #7fc141; +@define-color documents_selection_button_b #47850d; +@define-color documents_selection_button_c #4e9a06; + +@define-color documents_emblem_bg #3465a4; +@define-color documents_collection_bg #d3d7cf; + +@define-color documents_osd_toolbar_a alpha(#242424, 0.80); +@define-color documents_osd_toolbar_b alpha(#101010, 0.80); +@define-color documents_osd_toolbar_c alpha(#262626, 0.80); + +@define-color documents_osd_button_a @theme_base_color; +@define-color documents_osd_button_b #525252; +@define-color documents_osd_button_inset #9f9f9f; + +@define-color documents_osd_fg #bebebe; + +/**************** + * Applications * + ****************/ +ApDocView, /* Abiword */ +EogScrollView, /* Eog */ +CheeseThumbView /* Cheese */ +{ + background-color: @chrome_bg_color; + -EogScrollView-shadow-type: none; +} + +/* gnome-terminal */ +TerminalScreen { + background-color: @theme_base_color; + color: @theme_fg_color; + -TerminalScreen-background-darkness: 0.95; +} + +TerminalWindow GtkNotebook.notebook { + border-bottom-width: 0; + border-right-width: 0; + border-left-width: 0; +} + + +/* gedit */ + +GeditWindow .pane-separator, +GeditWindow .pane-separator:hover { + border-width: 0 1px 1px 1px; + border-style: solid; + border-color: @borders; + background-color: shade(@theme_bg_color, 0.95); + color: @borders; +} + +GeditPanel .toolbar { + border-style: none; + background-color: transparent; +} + +GeditWindow .sidebar { + background-color: @theme_base_color; + border-width: 0 0 1px 0; + border-style: solid; + border-color: @borders; + +} + +GeditPanel .notebook { + padding: 2px; + border-width: 1px 0; + color:#FFF; + background: #232323; +} + +GeditWindow .notebook { + border-width: 1px 0; +} + +GeditPanel .notebook tab, +GeditWindow .notebook tab { + border-width: 0; +} + +/* gnome-documents */ +.documents-dropdown, +.documents-dropdown .view { + background-color: shade (@theme_bg_color, 1.02); +} + +.documents-dropdown .frame { + border-width: 0 1px 1px 1px; + border-style: solid; + border-radius: 0 0 5px 5px; +} + +.documents-dropdown .radio, +.documents-dropdown .radio:focused, +.documents-dropdown .radio:selected { + background-image: none; + background-color: alpha(@theme_base_color, 0.0); +} + +.documents-dropdown .radio:active, +.documents-dropdown .radio:active:focused, +.documents-dropdown .radio:active:prelight { + background-image: url("assets/sidebar-radio-checked.svg"); +} + +.documents-dropdown .radio:prelight { + background-image: url("assets/sidebar-radio-prelight.svg"); +} + +.documents-dropdown .radio:active:selected, +.documents-dropdown .radio:active:selected:focused { + background-image: url("assets/sidebar-radio-selected.svg"); +} + +.documents-dropdown .radio:selected:prelight, +.documents-dropdown .radio:selected:focused { + background-image: url("assets/sidebar-radio-selected-prelight.svg"); +} + +.documents-load-more.button { + border-image-width: 0 2 2 2; + border-width: 0 1px 1px 1px; +} + +.documents-scrolledwin.frame { + border-width: 1px 0; + border-radius: 0; +} + +.documents-main-view.view { + background-color: #f1f2f1; +} + +.documents-selection-mode.toolbar { + background-image: -gtk-gradient(linear, left top, left bottom, + from(@documents_selection_toolbar_a), + to(@documents_selection_toolbar_b)); + color: @theme_base_color; + border-width: 1px 0 0 0; + border-color: @documents_selection_toolbar_border; + border-style: solid; +} + +.documents-selection-mode.toolbar .dim-label { + color: alpha(@theme_base_color, 0.50); +} + +.documents-selection-mode.toolbar .button { + background-image: -gtk-gradient(linear, left top, left bottom, + from(@documents_selection_button_a), + color-stop(0.83, @documents_selection_button_b), + to(@documents_selection_button_c)); + + border-color: @documents_selection_toolbar_border; + border-image: none; + border-style: solid; + border-width: 1px; + + color: @theme_base_color; + + text-shadow: none; + icon-shadow: none; +} + +.documents-selection-mode.toolbar .button:hover { + background-image: -gtk-gradient(linear, left top, left bottom, + from(shade(@documents_selection_button_a, 1.20)), + color-stop(0.83, shade(@documents_selection_button_b, 1.10)), + to(shade(@documents_selection_button_c, 1.10))); +} + +.documents-selection-mode.toolbar .button:active, +.documents-selection-mode.toolbar .button:hover:active { + background-image: -gtk-gradient(linear, left top, left bottom, + from(@documents_selection_button_b), + to(shade(@documents_selection_button_a, 0.90))); + + border-color: @documents_selection_toolbar_border; + border-image: none; + border-style: solid; + border-width: 1px; +} + +.documents-selection-mode.toolbar .button *:hover { + color: @theme_base_color; +} + +.documents-icon-bg { + background-color: @documents_emblem_bg; + border-radius: 4px; + + color: @theme_base_color; +} + +.documents-collection-icon { + background-color: @documents_collection_bg; + border-radius: 8px; +} + +.documents-osd { + background-image: none; + background-color: transparent; +} + +.documents-osd .toolbar { + padding: 16px; + border-style: none; + border-radius: 5px; + border-width: 0; + + background-image: -gtk-gradient(linear, left top, left bottom, + from(@documents_osd_toolbar_a), + color-stop(0.63, @documents_osd_toolbar_b), + to(@documents_osd_toolbar_c)); + color: @documents_osd_fg; + + -GtkToolbar-button-relief: normal; +} + +.documents-osd .toolbar .button { + padding: 4px; + + background-image: -gtk-gradient(linear, left top, left bottom, + from(alpha(@documents_osd_button_a, 0.16)), + color-stop(0.68, alpha(@documents_osd_button_b, 0.05)), + to(alpha(@documents_osd_button_a, 0.12))); + border-width: 1px 0; + border-style: solid; + border-image: none; + border-color: alpha(@documents_osd_button_a, 0.50); + border-radius: 0; + + color: @documents_osd_fg; + + text-shadow: none; + icon-shadow: none; + box-shadow: -1 0 inset @documents_osd_button_inset; +} + +.documents-osd .toolbar .button, +.documents-osd .toolbar .button:prelight, +.documents-osd .toolbar .button:active { + background-color: transparent; +} + +.documents-osd .toolbar .button:nth-child(first) { + border-radius: 4px 0 0 4px; + border-left-width: 1px; + box-shadow: -1 0 inset @documents_osd_button_inset; +} + +.documents-osd .toolbar .button:nth-child(last) { + box-shadow: none; + border-radius: 0 4px 4px 0; + border-right-width: 1px; +} + +.documents-osd .toolbar .button:only-child { + border-width: 1px; + border-radius: 4px; + border-style: solid; +} + +.documents-osd .toolbar .separator { + color: @documents_osd_button_inset; +} + +.documents-osd .toolbar .button:hover { + background-image: -gtk-gradient(linear, left top, left bottom, + from(alpha(@documents_osd_button_a, 0.28)), + color-stop(0.68, alpha(@documents_osd_button_b, 0.14)), + to(alpha(@documents_osd_button_a, 0.14))); +} + +.documents-osd .toolbar .button *:hover { + color: shade(@documents_osd_fg, 1.20); +} + +.documents-osd .toolbar .button:active, +.documents-osd .toolbar .button:active:hover { + background-image: -gtk-gradient(linear, left top, left bottom, + from(alpha(@documents_osd_button_b, 0.18)), + color-stop(0.68, alpha(@documents_osd_button_a, 0.23)), + to(alpha(@documents_osd_button_b, 0.17))); +} + +.documents-osd .toolbar .button.favorite, +.documents-osd .toolbar .button.favorite *:hover { + color: shade(@theme_selected_bg_color, 1.20); +} + +.documents-entry-tag { + background-color: @documents_emblem_bg; + color: @theme_base_color; + + border-radius: 4px; + border-width: 0; + + margin: 2px; + padding: 4px; +} + +.documents-entry-tag:hover { + background-color: shade(@documents_emblem_bg, 1.10); + color: @theme_base_color; +} + +.documents-entry-tag.button, +.documents-entry-tag.button:hover, +.documents-entry-tag.button:active, +.documents-entry-tag.button:active:hover { + background-color: transparent; + background-image: none; + border-image: none; + border-width: 0; +} + +.documents-entry-tag.button:hover { + color: shade(@documents_emblem_bg, 2.10); +} + +/* epiphany */ + +/* EphyToolbar.toolbar { + border-bottom: 1 solid @borders; +} + +EphyToolbar.toolbar:backdrop { + border-bottom: 1 solid @unfocused_borders; +} +*/ + +EphyToolbar .entry, +EphyToolbar .entry:focus, +EphyToolbar .entry:backdrop { + border-image-width: 3 0 4 3; + border-width: 1px 0 2px 1px; + border-bottom-right-radius: 0; + border-top-right-radius: 0; + padding-left: 4px; + padding-right: 4px; +} + +EphyToolbar .entry:focus { + box-shadow: 1 2 inset alpha(@theme_selected_bg_color, 0.1), + 1 1 inset alpha(@theme_selected_bg_color, 0.1), + 0 -1 inset alpha(@theme_selected_bg_color, 0.2); +} + +EphyToolbar .location-entry .button { + color: @internal_element_color; + -GtkButton-child-displacement-y: 0; +} + +EphyToolbar .location-entry .button:last-child { + border-image: url("borders/generic-border.svg") 3 3 4 3 / 3 3 4 0 stretch; + border-width: 1px 1px 2px 0; + border-bottom-left-radius: 0; + border-top-left-radius: 0; + padding-left: 4px; + padding-right: 2px; +} + +EphyToolbar .location-entry .button, +EphyToolbar .location-entry .button:hover, +EphyToolbar .location-entry .button:focus { + icon-shadow: none; + background-image: -gtk-gradient(linear, + left top, left bottom, + from(@entry_background_a), + to(@entry_background_b)); + box-shadow: 1 0 inset @inset_dark_color, + 0 1 inset @entry_inset, + 0 2 inset alpha(@entry_inset, 0.4); +} + +EphyToolbar .location-entry .button:active, +EphyToolbar .location-entry .button:active:hover { + background-image: -gtk-gradient(linear, left top, left bottom, + from(shade(@entry_background_a, 0.9)), + to(@entry_background_b)); + box-shadow: 1 0 inset @inset_dark_color, + 0 1 inset @entry_inset, + 0 2 inset alpha(@entry_inset, 0.4); +} + +EphyToolbar .location-entry .button:hover, +EphyToolbar .location-entry .button:focus, +EphyToolbar .location-entry .button:active, +EphyToolbar .location-entry .button *:active { + color: @theme_text_color; +} + +EphyToolbar .location-entry .button:backdrop, +EphyToolbar .location-entry .button:hover:backdrop { + background-image: none; + background-color: mix (@base_color, @bg_color, 0.4); + border-radius: 3px; + border-width: 1px 1px 2px 0; +} + +EphyNotebook.notebook { + border-width: 1px 0 1px 0; +} + +EphyNotebook.notebook tab { + border-width: 0; +} + +EphyToolbar.toolbar .button { + padding-left: 4px; + padding-right: 4px; +} + +#ephy-page-menu-button.active-menu { + background-image: none; + background-color: @bg_color; + + border-image: none; + border-color: @bg_color; + border-radius: 4px 4px 0 0; +} + +/* Gnome Contacts */ + +/* Line at top in contacts pane, similar to .documents-scrolledwin.frame */ +.contacts-content.frame { + border-width: 1px 0 0 0; + border-radius: 0; +} + +/* Background color in contacts pane, similar to .documents-main-view.view */ +.contacts-main-view.view { + background-color: #f1f2f1; +} + +.contacts-suggestion { + background-color: #434343; + color: #ffffff; + border-radius: 4px; +} + +/* Border on the right in the left menu toolbar */ +.contacts-left-toolbar.toolbar.menubar { + border-width: 0 1px 0 0; + border-style: solid; + border-color: @borders; +} + +/* Sidebar with line at top and the left */ +ContactsWindow .sidebar.frame { + border-width: 1px 1px 0 0; + border-style: solid; + border-color: @borders; + border-image: none; + border-radius: 0; + padding: 0; +} + +.contacts-avatar-frame.frame { + border-width: 1px 1px 0 1px; + border-style: solid; + border-color: @borders; + border-image: none; + border-radius: 0; + padding: 0; +} + +/* Primary toolbar with no line at top to avoid conflicts with frame border */ +ContactsWindow .primary-toolbar.toolbar { + border-width: 0 0 1px 0; +} + +ContactsWindow .sidebar .view { + background-color: #ebebeb; +} +ContactsWindow .sidebar .view:selected, +ContactsWindow .sidebar .view:selected:focus { + background-color: @selected_bg_color; +} + +.contacts-button:active { + border-color: #000000; + border-image: none; +} + +.contacts-entry { + box-shadow: none; + border-image: none; + border-width: 1px; + border-radius: 4px; + border-style: solid; + border-color: #bbbeb7; + background-image: none; + background-color: #ffffff; +} + +.contacts-entry:selected, +.contacts-entry:selected:focus { + background-color: @selected_bg_color; + color: @selected_fg_color; +} + +.contacts-entry.contacts-postal-entry { + border-radius: 0 0 0 0; + border-width: 1px 1px 0 1px; +} + +.contacts-entry.contacts-postal-entry:nth-child(first) { + border-radius: 4px 4px 0 0; +} + +.contacts-entry.contacts-postal-entry:nth-child(last) { + border-radius: 0 0 4px 4px; + border-width: 1px; +} + +.button.contacts-square { + padding: 0px; +} + +.contacts-combo .button { + border-image: none; + border-width: 1px; + border-style: solid; + border-color: #bbbeb7; + background-image: none; + background-color: #ffffff; +} + +.contacts-notification { + border-style: solid; + border-color: #949486; + border-width: 0 1px 1px 1px; + border-radius: 0 0 5px 5px; + padding: 8px; + background-color: #d8d8d8; + background-image: -gtk-gradient (linear, left top, left bottom, + from (rgba (0, 0, 0, 0.15)), + color-stop (0.15, rgba (0, 0, 0, 0.04)), + to (rgba (0, 0, 0, 0.0))); +} + +/* Gucharmap */ +GucharmapChartable:active, +GucharmapChartable:focus, +GucharmapChartable:selected { + background-color: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} diff --git a/themes/.themes/cathexis/gtk-3.0/apps/gnome-extras.css b/themes/.themes/cathexis/gtk-3.0/apps/gnome-extras.css new file mode 100644 index 0000000..e695155 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/apps/gnome-extras.css @@ -0,0 +1,6 @@ +/*calculadora*/ +MathWindow .button, +MathWindow .button:backdrop{background:none; border:5px solid transparent;} +MathWindow GtkViewport.frame, +MathWindow GtkViewport.frame:backdrop{padding:0px} +MathWindow GtkTextView {background:@bg_color;} \ No newline at end of file diff --git a/themes/.themes/cathexis/gtk-3.0/apps/gnome-panel.css b/themes/.themes/cathexis/gtk-3.0/apps/gnome-panel.css new file mode 100755 index 0000000..aa21945 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/apps/gnome-panel.css @@ -0,0 +1,99 @@ +/* Fallback Mode Panel */ +PanelWidget :backdrop, +PanelApplet :backdrop, +PanelToplevel :backdrop, +PanelWidget, +PanelApplet, +PanelToplevel { + border-image: none; + padding: 0; + + color: @dark_fg_color; +} + +PanelWidget, +PanelApplet, +PanelToplevel { + background-image: -gtk-gradient (linear, left top, left bottom, + from (shade (@dark_bg_color, 1.5)), + to (shade (@dark_bg_color, 1.05))); +} + +PanelApplet { + border-width: 0; +} + +PanelSeparator:backdrop, +PanelSeparator { + border-width: 0; + background-image: -gtk-gradient (linear, left top, left bottom, + from (shade (@dark_bg_color, 1.5)), + to (shade (@dark_bg_color, 1.05))); + + color: @dark_fg_color; +} + +.gnome-panel-menu-bar, +PanelApplet > GtkMenuBar.menubar, +PanelApplet > GtkMenuBar.menubar.menuitem, +PanelMenuBar.menubar, +PanelMenuBar.menubar.menuitem { + -PanelMenuBar-icon-visible: true; + background-image: -gtk-gradient (linear, left top, left bottom, + from (shade (@dark_bg_color, 1.5)), + to (shade (@dark_bg_color, 1.05))); +} + +PanelAppletFrame { + background-color: @dark_bg_color; + background-image: -gtk-gradient (linear, left top, left bottom, + from (shade (@dark_bg_color, 1.5)), + to (shade (@dark_bg_color, 1.05))); + border-width: 0; +} + +PanelApplet .button:backdrop, +PanelApplet .button { + -GtkButton-inner-border: 2; + + border-image: none; + background-image: -gtk-gradient (linear, left top, left bottom, + from (shade (@dark_bg_color, 1.5)), + to (shade (@dark_bg_color, 1.05))); + border-color: alpha (shade (@dark_bg_color, 1.0), 0.6); + border-left-color: alpha (shade (@dark_bg_color, 1.5), 0.3); + border-radius: 0; + border-width: 0 1px 0 1px; + + color: @dark_fg_color; + text-shadow: none; +} + +PanelApplet .button:active:prelight:backdrop, +PanelApplet .button:active:prelight, +PanelApplet .button:active:backdrop, +PanelApplet .button:active { + border-image: none; + background-image: -gtk-gradient (linear, left top, left bottom, + from (shade (@dark_bg_color, 0.85)), + to (shade (@dark_bg_color, 1.0))); + border-color: shade (@dark_bg_color, 0.9); +} + +PanelApplet .button:prelight:backdrop, +PanelApplet .button:prelight { + border-image: none; + background-image: -gtk-gradient (linear, left top, left bottom, + from (shade (@dark_bg_color, 1.7)), + to (shade (@dark_bg_color, 1.25))); + border-color: alpha (shade (@dark_bg_color, 1.0), 0.6); + border-left-color: alpha (shade (@dark_bg_color, 1.5), 0.4); +} + +ClockBox { + text-shadow: 0 -1px shade (@dark_bg_color, 0.6); +} + +WnckPager, WnckTasklist { + background-color: @dark_bg_color; +} diff --git a/themes/.themes/cathexis/gtk-3.0/apps/gnome-terminal.css b/themes/.themes/cathexis/gtk-3.0/apps/gnome-terminal.css new file mode 100755 index 0000000..9efad7f --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/apps/gnome-terminal.css @@ -0,0 +1,114 @@ +/* gnome-terminal */ +TerminalScreen { + -TerminalScreen-background-darkness: 0.95; + + background-color: #300a24; + + color: #fff; +} + +/* +TerminalWindow, +TerminalWindow.background { + background-color: @dark_bg_color; + + color: @dark_fg_color; +} +*/ +/* notebook */ +/* +TerminalWindow .notebook { + background-image: none; + background-color: shade (@dark_bg_color, 1.02); + border-radius: 3; + + -unico-border-gradient: -gtk-gradient (linear, left top, right top, + from (shade (@dark_bg_color, 0.93)), + to (shade (@dark_bg_color, 0.93))); + -unico-inner-stroke-width: 0; + -unico-outer-stroke-width: 0; +} + +TerminalWindow .notebook tab { + background-image: -gtk-gradient (linear, left top, left bottom, + from (shade (@dark_bg_color, 0.92)), + color-stop (0.60, shade (@dark_bg_color, 0.9)), + to (shade (@dark_bg_color, 0.85))); + padding: 0; + + color: @dark_fg_color; + + -unico-inner-stroke-color: alpha (shade (@dark_bg_color, 1.26), 0.2); +} + +TerminalWindow .notebook tab:active { + background-image: -gtk-gradient (linear, left top, left bottom, + from (shade (@dark_bg_color, 1.2)), + to (shade (@dark_bg_color, 1.12))); + + -unico-inner-stroke-color: alpha (shade (@dark_bg_color, 1.26), 1.0); +} + +TerminalWindow .notebook .button, +TerminalWindow .notebook .button:active { + background-image: -gtk-gradient (linear, left top, right top, + from (shade (@dark_bg_color, 1.08)), + to (shade (@dark_bg_color, 0.92))); + + -unico-border-gradient: -gtk-gradient (linear, left top, right top, + from (shade (@dark_bg_color, 0.9)), + to (shade (@dark_bg_color, 0.9))); + -unico-inner-stroke-color: alpha (shade (@dark_bg_color, 1.26), 0.7); + -unico-outer-stroke-style: none; +} +*/ +/* Scrollbars */ +/* +TerminalWindow .scrollbar { + border-radius: 20; + + -unico-border-gradient: -gtk-gradient (linear, left top, left bottom, + from (shade (@dark_bg_color, 0.74)), + to (shade (@dark_bg_color, 0.74))); +} + +TerminalWindow .scrollbar.trough { + background-image: -gtk-gradient (linear, left top, right top, + from (shade (@dark_bg_color, 0.9)), + to (shade (@dark_bg_color, 0.95))); +} + +TerminalWindow .scrollbar.trough.horizontal { + background-image: -gtk-gradient (linear, left top, left bottom, + from (shade (@dark_bg_color, 0.9)), + to (shade (@dark_bg_color, 0.95))); +} + +TerminalWindow .scrollbar.slider, +TerminalWindow .scrollbar.slider:prelight, +TerminalWindow .scrollbar.button, +TerminalWindow .scrollbar.button:insensitive { + background-image: -gtk-gradient (linear, left top, right top, + from (shade (@dark_bg_color, 1.08)), + to (shade (@dark_bg_color, 0.92))); + + -unico-border-gradient: -gtk-gradient (linear, left top, right top, + from (shade (@dark_bg_color, 0.74)), + to (shade (@dark_bg_color, 0.74))); + -unico-inner-stroke-color: alpha (shade (@dark_bg_color, 1.26), 0.7); +} + +TerminalWindow .scrollbar.slider.horizontal, +TerminalWindow .scrollbar.slider.horizontal:prelight, +TerminalWindow .scrollbar.button.horizontal, +TerminalWindow .scrollbar.button:insensitive { + background-image: -gtk-gradient (linear, left top, left bottom, + from (shade (@dark_bg_color, 1.08)), + to (shade (@dark_bg_color, 0.92))); + + -unico-border-gradient: -gtk-gradient (linear, left top, left bottom, + from (shade (@dark_bg_color, 0.74)), + to (shade (@dark_bg_color, 0.74))); + -unico-inner-stroke-color: alpha (shade (@dark_bg_color, 1.26), 0.7); +} +*/ diff --git a/themes/.themes/cathexis/gtk-3.0/apps/nautilus.css b/themes/.themes/cathexis/gtk-3.0/apps/nautilus.css new file mode 100755 index 0000000..422c5ef --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/apps/nautilus.css @@ -0,0 +1,73 @@ +@define-color cluebar_color alpha(@fg_color,0.1); + +NautilusWindow * { + -GtkPaned-handle-size: 1; +} +.nautilus-canvas-item { + border-radius: 4px; +} + +/* desktop mode */ +.nautilus-desktop.nautilus-canvas-item { + color: @fg_color; + text-shadow: 1px 1px alpha (#000000, 0.8); + background:none; +} + +.nautilus-desktop.nautilus-canvas-item:active { + background-image: none; + background-color: alpha (@bg_color, 0.84); + + color: @fg_color; +} + +.nautilus-desktop.nautilus-canvas-item:selected { + background-image: none; + background-color: alpha (@selected_bg_color, 0.84); + + color: @selected_fg_color; +} + +.nautilus-desktop.nautilus-canvas-item:active, +.nautilus-desktop.nautilus-canvas-item:prelight, +.nautilus-desktop.nautilus-canvas-item:selected { + text-shadow: none; +} + +NautilusTrashBar.info, +NautilusXContentBar.info, +NautilusSearchBar.info, +NautilusQueryEditor.info { + background-color: @cluebar_color; + +} + +NautilusWindow .toolbar, +NautilusWindow .toolbar:backdrop{ + background-image: url("../assets/toolbar.png"); + background-position:left bottom; + background-repeat:repeat-x; + padding-bottom:10px; +} +NautilusWindow .frame, +NautilusWindow .frame:backdrop{border:none; border-image:none;} + +NautilusWindow .sidebar row:selected { + background-color:alpha(@selected_bg_color,0.4); + background-image: url("../assets/sidebar-dark.png"); + background-position:right top; + background-repeat:repeat-y; +} +NautilusWindow .sidebar, +NautilusWindow .sidebar .view{background:@bg_color} + +NautilusWindow .sidebar:backdrop, +NautilusWindow .sidebar .view:backdrop{background:@backdrop_bg_color;} + +NautilusWindow .sidebar .cell, +NautilusWindow .sidebar .cell:backdrop{ + background-image: url("../assets/sidebar-dark.png"); + background-position:right top; + background-repeat:repeat-y; +} + diff --git a/themes/.themes/cathexis/gtk-3.0/apps/unity-greeter.css b/themes/.themes/cathexis/gtk-3.0/apps/unity-greeter.css new file mode 100755 index 0000000..9146368 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/apps/unity-greeter.css @@ -0,0 +1,65 @@ +.lightdm.menu { + background-image: none; + background-color: alpha (black, 0.6); + border-color: alpha (white, 0.2); + border-radius: 4px; + padding: 1px; + + color: white; +} + +.lightdm-combo .menu { + background-color: shade (@dark_bg_color, 1.08); + border-radius: 0px; + padding: 0px; + + color: white; +} + +.lightdm.menu .menuitem *, +.lightdm.menu .menuitem.check:active, +.lightdm.menu .menuitem.radio:active { + color: white; +} + +.lightdm.menubar { + background-image: none; + background-color: alpha (black, 0.5); +} + +.lightdm-combo.combobox-entry .button, +.lightdm-combo .cell, +.lightdm-combo .button, +.lightdm-combo .entry, +.lightdm.button, +.lightdm.entry { + background-image: none; + background-color: alpha (black, 0.3); + border-color: alpha (white, 0.6); + border-radius: 5px; + padding: 7px; + + color: white; + text-shadow: none; +} + +.lightdm.button, +.lightdm.button:hover, +.lightdm.button:active, +.lightdm.button:active:focused, +.lightdm.entry, +.lightdm.entry:hover, +.lightdm.entry:active, +.lightdm.entry:active:focused { + background-image: none; + border-image: none; +} + +.lightdm.button:focused, +.lightdm.entry:focused { + border-color: alpha (white, 0.9); + border-width: 1px; + border-style: solid; + + color: white; +} diff --git a/themes/.themes/cathexis/gtk-3.0/apps/unity.css b/themes/.themes/cathexis/gtk-3.0/apps/unity.css new file mode 100755 index 0000000..72bd806 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/apps/unity.css @@ -0,0 +1,32 @@ +UnityPanelWidget, +.unity-panel { + background:@dark_bg_color; + color:@dark_fg_color; + text-shadow: 0 -1px shade (#000000, 0.7); +} + +.unity-panel.menubar, +.unity-panel .menubar { +} + +.unity-panel.menuitem, +.unity-panel .menuitem { + icon-shadow: 0 -1px shade (@dark_bg_color, 0.7); + background-color:transparent; + box-shadow:none; + border:none; +} + +.unity-panel.menubar.menuitem:hover, +.unity-panel.menubar .menuitem *:hover { + background-image: -gtk-gradient (linear, 0 0, 0 1, + from (transparent), + to (alpha(@selected_bg_color,0.1))); + background-color:transparent; + border-radius:4px 4px 0 0; + border-color:transparent; + border-width:0px; + border-bottom:2px solid @selected_bg_color; + box-shadow:none; + transition: 150ms ease-in-out; +} \ No newline at end of file diff --git a/themes/.themes/cathexis/gtk-3.0/assets/.directory b/themes/.themes/cathexis/gtk-3.0/assets/.directory new file mode 100755 index 0000000..af30366 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/.directory @@ -0,0 +1,5 @@ +[Dolphin] +PreviewsShown=true +Timestamp=2013,1,19,16,49,22 +Version=3 +ViewMode=2 diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-button.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-button.png new file mode 100755 index 0000000..db4e8d9 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-button.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-alt.png new file mode 100755 index 0000000..65032ba Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-disabled-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-disabled-alt.png new file mode 100755 index 0000000..959456c Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-disabled-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-disabled.png new file mode 100755 index 0000000..4fecf9b Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-hover-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-hover-alt.png new file mode 100755 index 0000000..4333868 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-hover-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-hover.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-hover.png new file mode 100755 index 0000000..798ebe6 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed-hover.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed.png new file mode 100755 index 0000000..9d241a3 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-mixed.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-alt.png new file mode 100755 index 0000000..43141cd Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-disabled-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-disabled-alt.png new file mode 100755 index 0000000..f4d12f7 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-disabled-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-disabled.png new file mode 100755 index 0000000..cf13f76 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-hover-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-hover-alt.png new file mode 100755 index 0000000..cc2b58e Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-hover-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-hover.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-hover.png new file mode 100755 index 0000000..259e4b1 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected-hover.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected.png new file mode 100755 index 0000000..c9cea29 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-selected.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-alt.png new file mode 100755 index 0000000..08a3d15 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-disabled-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-disabled-alt.png new file mode 100755 index 0000000..c76c2ef Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-disabled-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-disabled.png new file mode 100755 index 0000000..d2079b2 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-hover-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-hover-alt.png new file mode 100755 index 0000000..af3ff17 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-hover-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-hover.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-hover.png new file mode 100755 index 0000000..0d77163 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected-hover.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected.png new file mode 100755 index 0000000..2d2e96d Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-check-unselected.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-button-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-button-disabled.png new file mode 100755 index 0000000..9702459 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-button-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-button.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-button.png new file mode 100755 index 0000000..e12d08a Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-button.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-entry-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-entry-disabled.png new file mode 100755 index 0000000..6768560 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-entry-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-entry.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-entry.png new file mode 100755 index 0000000..856c3c3 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-combobox-entry.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-entry-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-entry-disabled.png new file mode 100755 index 0000000..35003d7 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-entry-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-entry.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-entry.png new file mode 100755 index 0000000..cac6f3a Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-entry.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-alt.png new file mode 100755 index 0000000..c900a26 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-disabled-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-disabled-alt.png new file mode 100755 index 0000000..4b4df6e Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-disabled-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-disabled.png new file mode 100755 index 0000000..1cb344e Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-hover-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-hover-alt.png new file mode 100755 index 0000000..af90156 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-hover-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-hover.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-hover.png new file mode 100755 index 0000000..5ec6232 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed-hover.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed.png new file mode 100755 index 0000000..1319bfd Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-mixed.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-alt.png new file mode 100755 index 0000000..98f4b8d Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-disabled-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-disabled-alt.png new file mode 100755 index 0000000..ac46049 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-disabled-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-disabled.png new file mode 100755 index 0000000..c3e6988 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-hover-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-hover-alt.png new file mode 100755 index 0000000..b07c0e0 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-hover-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-hover.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-hover.png new file mode 100755 index 0000000..5e03c5e Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected-hover.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected.png new file mode 100755 index 0000000..b3ac353 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-selected.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-alt.png new file mode 100755 index 0000000..35abaf6 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-disabled-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-disabled-alt.png new file mode 100755 index 0000000..16b8f11 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-disabled-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-disabled.png new file mode 100755 index 0000000..622e2c2 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-hover-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-hover-alt.png new file mode 100755 index 0000000..6e7fa83 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-hover-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-hover.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-hover.png new file mode 100755 index 0000000..efc2d4c Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected-hover.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected.png b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected.png new file mode 100755 index 0000000..58a9b59 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/backdrop-radio-unselected.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/bg-sep-h.png b/themes/.themes/cathexis/gtk-3.0/assets/bg-sep-h.png new file mode 100755 index 0000000..db16d1a Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/bg-sep-h.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/bg-sep-v.png b/themes/.themes/cathexis/gtk-3.0/assets/bg-sep-v.png new file mode 100644 index 0000000..8938630 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/bg-sep-v.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/bgframe.png b/themes/.themes/cathexis/gtk-3.0/assets/bgframe.png new file mode 100644 index 0000000..974e7fc Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/bgframe.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/button-active-backdrop.png b/themes/.themes/cathexis/gtk-3.0/assets/button-active-backdrop.png new file mode 100755 index 0000000..ea2a7cb Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/button-active-backdrop.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/button-active-focus.png b/themes/.themes/cathexis/gtk-3.0/assets/button-active-focus.png new file mode 100644 index 0000000..def73d8 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/button-active-focus.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/button-active.png b/themes/.themes/cathexis/gtk-3.0/assets/button-active.png new file mode 100755 index 0000000..7cf8f3c Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/button-active.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/button-default.png b/themes/.themes/cathexis/gtk-3.0/assets/button-default.png new file mode 100755 index 0000000..6d99783 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/button-default.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/button.png b/themes/.themes/cathexis/gtk-3.0/assets/button.png new file mode 100755 index 0000000..37a2b19 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/button.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/button_bg.png b/themes/.themes/cathexis/gtk-3.0/assets/button_bg.png new file mode 100644 index 0000000..a597a2e Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/button_bg.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-active.png b/themes/.themes/cathexis/gtk-3.0/assets/check-active.png new file mode 100644 index 0000000..c82f124 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-active.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-disable.png b/themes/.themes/cathexis/gtk-3.0/assets/check-disable.png new file mode 100644 index 0000000..fde4087 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-disable.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-menuitem-dark.png b/themes/.themes/cathexis/gtk-3.0/assets/check-menuitem-dark.png new file mode 100755 index 0000000..e5ed943 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-menuitem-dark.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-menuitem-unselected.png b/themes/.themes/cathexis/gtk-3.0/assets/check-menuitem-unselected.png new file mode 100755 index 0000000..3a9a1bd Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-menuitem-unselected.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-menuitem.-png b/themes/.themes/cathexis/gtk-3.0/assets/check-menuitem.-png new file mode 100755 index 0000000..02864e7 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-menuitem.-png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-menuitem.png b/themes/.themes/cathexis/gtk-3.0/assets/check-menuitem.png new file mode 100644 index 0000000..02864e7 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-menuitem.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-alt.png new file mode 100755 index 0000000..0d7d965 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-disable.svg b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-disable.svg new file mode 100644 index 0000000..4782e48 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-disable.svg @@ -0,0 +1,81 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-disabled-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-disabled-alt.png new file mode 100755 index 0000000..0f28884 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-disabled-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-disabled.png new file mode 100755 index 0000000..a9576b9 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-hover-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-hover-alt.png new file mode 100755 index 0000000..928bc59 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-hover-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-hover.png b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-hover.png new file mode 100755 index 0000000..0fa04d8 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed-hover.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-mixed.png b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed.png new file mode 100755 index 0000000..eaac995 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-mixed.svg b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed.svg new file mode 100644 index 0000000..1a2c51f --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/check-mixed.svg @@ -0,0 +1,81 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-selected-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/check-selected-alt.png new file mode 100755 index 0000000..37e405f Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-selected-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-selected-disabled-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/check-selected-disabled-alt.png new file mode 100755 index 0000000..4052680 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-selected-disabled-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-selected-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/check-selected-disabled.png new file mode 100755 index 0000000..4c7e93e Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-selected-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-selected-hover-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/check-selected-hover-alt.png new file mode 100755 index 0000000..2209c1a Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-selected-hover-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-selected-hover.png b/themes/.themes/cathexis/gtk-3.0/assets/check-selected-hover.png new file mode 100755 index 0000000..788a174 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-selected-hover.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-selected.png b/themes/.themes/cathexis/gtk-3.0/assets/check-selected.png new file mode 100755 index 0000000..bdf7539 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-selected.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-alt.png new file mode 100755 index 0000000..08a3d15 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-disabled-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-disabled-alt.png new file mode 100755 index 0000000..c76c2ef Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-disabled-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-disabled.png new file mode 100755 index 0000000..d2079b2 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-hover-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-hover-alt.png new file mode 100755 index 0000000..af3ff17 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-hover-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-hover.png b/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-hover.png new file mode 100755 index 0000000..0d77163 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-unselected-hover.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/check-unselected.png b/themes/.themes/cathexis/gtk-3.0/assets/check-unselected.png new file mode 100755 index 0000000..2d2e96d Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/check-unselected.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/circular.png b/themes/.themes/cathexis/gtk-3.0/assets/circular.png new file mode 100755 index 0000000..dad3b98 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/circular.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-active.svg b/themes/.themes/cathexis/gtk-3.0/assets/combobox-active.svg new file mode 100644 index 0000000..df84951 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/combobox-active.svg @@ -0,0 +1,308 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow-disabled.png new file mode 100755 index 0000000..8680f1c Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow-disabled.svg b/themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow-disabled.svg new file mode 100644 index 0000000..0e4494a --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow-disabled.svg @@ -0,0 +1,318 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow.png b/themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow.png new file mode 100755 index 0000000..f553eb9 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow.svg b/themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow.svg new file mode 100644 index 0000000..b95e391 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/combobox-arrow.svg @@ -0,0 +1,318 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-button-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/combobox-button-disabled.png new file mode 100755 index 0000000..97c738f Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/combobox-button-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-button-focused.png b/themes/.themes/cathexis/gtk-3.0/assets/combobox-button-focused.png new file mode 100755 index 0000000..22289df Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/combobox-button-focused.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-button-pressed-focused.png b/themes/.themes/cathexis/gtk-3.0/assets/combobox-button-pressed-focused.png new file mode 100755 index 0000000..5b40af4 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/combobox-button-pressed-focused.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-button.png b/themes/.themes/cathexis/gtk-3.0/assets/combobox-button.png new file mode 100755 index 0000000..f57e071 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/combobox-button.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry-active.svg b/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry-active.svg new file mode 100644 index 0000000..acd7223 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry-active.svg @@ -0,0 +1,302 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry-disabled.png new file mode 100755 index 0000000..e72d66e Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry-focused.png b/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry-focused.png new file mode 100755 index 0000000..d6b094a Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry-focused.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry.png b/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry.png new file mode 100755 index 0000000..ee7a635 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry.svg b/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry.svg new file mode 100644 index 0000000..8eae7c4 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/combobox-entry.svg @@ -0,0 +1,302 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox-insensitive.svg b/themes/.themes/cathexis/gtk-3.0/assets/combobox-insensitive.svg new file mode 100644 index 0000000..d8197f0 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/combobox-insensitive.svg @@ -0,0 +1,308 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/combobox.svg b/themes/.themes/cathexis/gtk-3.0/assets/combobox.svg new file mode 100644 index 0000000..9c7a570 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/combobox.svg @@ -0,0 +1,308 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/entry-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/entry-disabled.png new file mode 100755 index 0000000..6d51dbe Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/entry-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/entry-focus.svg b/themes/.themes/cathexis/gtk-3.0/assets/entry-focus.svg new file mode 100644 index 0000000..7f5c238 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/entry-focus.svg @@ -0,0 +1,231 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/entry-focused.png b/themes/.themes/cathexis/gtk-3.0/assets/entry-focused.png new file mode 100755 index 0000000..8ae3099 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/entry-focused.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/entry-insensitive.svg b/themes/.themes/cathexis/gtk-3.0/assets/entry-insensitive.svg new file mode 100644 index 0000000..6945514 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/entry-insensitive.svg @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/entry-toolbar-focused.png b/themes/.themes/cathexis/gtk-3.0/assets/entry-toolbar-focused.png new file mode 100755 index 0000000..bcb807b Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/entry-toolbar-focused.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/entry-toolbar.png b/themes/.themes/cathexis/gtk-3.0/assets/entry-toolbar.png new file mode 100755 index 0000000..deaa2ab Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/entry-toolbar.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/entry.png b/themes/.themes/cathexis/gtk-3.0/assets/entry.png new file mode 100755 index 0000000..c8a9f41 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/entry.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/entry.svg b/themes/.themes/cathexis/gtk-3.0/assets/entry.svg new file mode 100644 index 0000000..0f25457 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/entry.svg @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/frame.png b/themes/.themes/cathexis/gtk-3.0/assets/frame.png new file mode 100755 index 0000000..12d8a80 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/frame.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/frame.svg b/themes/.themes/cathexis/gtk-3.0/assets/frame.svg new file mode 100644 index 0000000..c4084be --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/frame.svg @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/load-animate.gif b/themes/.themes/cathexis/gtk-3.0/assets/load-animate.gif new file mode 100644 index 0000000..074e95b Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/load-animate.gif differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/menubaritem.png b/themes/.themes/cathexis/gtk-3.0/assets/menubaritem.png new file mode 100755 index 0000000..c96711a Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/menubaritem.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/metal-backdrop.png b/themes/.themes/cathexis/gtk-3.0/assets/metal-backdrop.png new file mode 100644 index 0000000..cc90318 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/metal-backdrop.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/metal-backdrop2.png b/themes/.themes/cathexis/gtk-3.0/assets/metal-backdrop2.png new file mode 100755 index 0000000..56d06de Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/metal-backdrop2.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/metal.png b/themes/.themes/cathexis/gtk-3.0/assets/metal.png new file mode 100755 index 0000000..9a6da99 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/metal.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/notebook-tab-active.png b/themes/.themes/cathexis/gtk-3.0/assets/notebook-tab-active.png new file mode 100755 index 0000000..6a4a2da Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/notebook-tab-active.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/progressbar-disable.svg b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-disable.svg new file mode 100644 index 0000000..d2d7c67 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-disable.svg @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/progressbar-horizontal-fill-backdrop.png b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-horizontal-fill-backdrop.png new file mode 100755 index 0000000..ef0cf66 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-horizontal-fill-backdrop.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/progressbar-horizontal-fill.png b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-horizontal-fill.png new file mode 100755 index 0000000..f00e464 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-horizontal-fill.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/progressbar-horizontal-trough.png b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-horizontal-trough.png new file mode 100755 index 0000000..54d903f Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-horizontal-trough.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/progressbar-v-disable.svg b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-v-disable.svg new file mode 100644 index 0000000..9f87ff6 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-v-disable.svg @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/progressbar-v.svg b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-v.svg new file mode 100644 index 0000000..66d4083 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-v.svg @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/progressbar-vertical-fill-backdrop.png b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-vertical-fill-backdrop.png new file mode 100755 index 0000000..dd406cd Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-vertical-fill-backdrop.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/progressbar-vertical-fill.png b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-vertical-fill.png new file mode 100755 index 0000000..64456e9 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-vertical-fill.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/progressbar-vertical-trough.png b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-vertical-trough.png new file mode 100755 index 0000000..5ced3f1 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/progressbar-vertical-trough.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/progressbar.png b/themes/.themes/cathexis/gtk-3.0/assets/progressbar.png new file mode 100755 index 0000000..ceb356a Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/progressbar.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/progressbar.svg b/themes/.themes/cathexis/gtk-3.0/assets/progressbar.svg new file mode 100644 index 0000000..8d71cd0 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/progressbar.svg @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radiance-entry-toolbar-focused.png b/themes/.themes/cathexis/gtk-3.0/assets/radiance-entry-toolbar-focused.png new file mode 100755 index 0000000..9c8fb1d Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radiance-entry-toolbar-focused.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radiance-entry-toolbar.png b/themes/.themes/cathexis/gtk-3.0/assets/radiance-entry-toolbar.png new file mode 100755 index 0000000..93998da Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radiance-entry-toolbar.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radiance-menubaritem.png b/themes/.themes/cathexis/gtk-3.0/assets/radiance-menubaritem.png new file mode 100755 index 0000000..dc8c806 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radiance-menubaritem.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-active.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-active.png new file mode 100644 index 0000000..59fc939 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-active.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-disable.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-disable.png new file mode 100644 index 0000000..663c11b Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-disable.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-menuitem-dark.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-menuitem-dark.png new file mode 100755 index 0000000..0921f4f Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-menuitem-dark.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-menuitem.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-menuitem.png new file mode 100755 index 0000000..a11908a Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-menuitem.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-alt.png new file mode 100755 index 0000000..57b8f7a Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-disabled-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-disabled-alt.png new file mode 100755 index 0000000..4b4df6e Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-disabled-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-disabled.png new file mode 100755 index 0000000..1cb344e Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-hover-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-hover-alt.png new file mode 100755 index 0000000..9dba7f7 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-hover-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-hover.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-hover.png new file mode 100755 index 0000000..b3481d9 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed-hover.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed.png new file mode 100755 index 0000000..7b59a15 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-mixed.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-alt.png new file mode 100755 index 0000000..7fb6ba1 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-disabled-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-disabled-alt.png new file mode 100755 index 0000000..ac46049 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-disabled-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-disabled.png new file mode 100755 index 0000000..c3e6988 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-hover-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-hover-alt.png new file mode 100755 index 0000000..41192bd Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-hover-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-hover.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-hover.png new file mode 100755 index 0000000..718c0be Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-selected-hover.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-selected.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-selected.png new file mode 100755 index 0000000..5773fdd Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-selected.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-alt.png new file mode 100755 index 0000000..35abaf6 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-disabled-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-disabled-alt.png new file mode 100755 index 0000000..16b8f11 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-disabled-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-disabled.png new file mode 100755 index 0000000..622e2c2 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-hover-alt.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-hover-alt.png new file mode 100755 index 0000000..6e7fa83 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-hover-alt.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-hover.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-hover.png new file mode 100755 index 0000000..efc2d4c Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected-hover.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected.png b/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected.png new file mode 100755 index 0000000..58a9b59 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/radio-unselected.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-fill-backdrop.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-fill-backdrop.png new file mode 100755 index 0000000..4b51a94 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-fill-backdrop.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-fill-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-fill-disabled.png new file mode 100755 index 0000000..f82c818 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-fill-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-fill.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-fill.png new file mode 100755 index 0000000..6d077f0 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-fill.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-trough-backdrop.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-trough-backdrop.png new file mode 100755 index 0000000..459e0d8 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-trough-backdrop.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-trough-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-trough-disabled.png new file mode 100755 index 0000000..3c69d51 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-trough-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-trough.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-trough.png new file mode 100755 index 0000000..3c69d51 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-horizontal-trough.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-slider-disable.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-slider-disable.png new file mode 100644 index 0000000..8cd2da1 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-slider-disable.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-slider-focus.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-slider-focus.png new file mode 100644 index 0000000..429d102 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-slider-focus.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-slider-hover.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-slider-hover.png new file mode 100644 index 0000000..e59e328 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-slider-hover.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-slider.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-slider.png new file mode 100644 index 0000000..112b47e Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-slider.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-disable-v.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-disable-v.png new file mode 100755 index 0000000..98756a9 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-disable-v.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-disable.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-disable.png new file mode 100755 index 0000000..09ce36b Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-disable.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-highlight-left-v.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-highlight-left-v.png new file mode 100755 index 0000000..5995ff8 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-highlight-left-v.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-highlight-left.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-highlight-left.png new file mode 100755 index 0000000..66e7297 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-highlight-left.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-v.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-v.png new file mode 100755 index 0000000..bdf9934 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-trough-v.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-trough.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-trough.png new file mode 100755 index 0000000..ff28efd Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-trough.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-fill-backdrop.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-fill-backdrop.png new file mode 100755 index 0000000..c13366d Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-fill-backdrop.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-fill-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-fill-disabled.png new file mode 100755 index 0000000..63b0770 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-fill-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-fill.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-fill.png new file mode 100755 index 0000000..7de2b8c Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-fill.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-trough-backdrop.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-trough-backdrop.png new file mode 100755 index 0000000..0b66531 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-trough-backdrop.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-trough-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-trough-disabled.png new file mode 100755 index 0000000..9876475 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-trough-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-trough.png b/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-trough.png new file mode 100755 index 0000000..101e157 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/scale-vertical-trough.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/sidebar-dark.png b/themes/.themes/cathexis/gtk-3.0/assets/sidebar-dark.png new file mode 100644 index 0000000..28d0aa5 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/sidebar-dark.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/switch-button-off-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/switch-button-off-disabled.png new file mode 100755 index 0000000..12e8ff0 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/switch-button-off-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/switch-button-off.png b/themes/.themes/cathexis/gtk-3.0/assets/switch-button-off.png new file mode 100755 index 0000000..ab9f8a0 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/switch-button-off.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/switch-button-on-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/switch-button-on-disabled.png new file mode 100755 index 0000000..77e4a67 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/switch-button-on-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/switch-button-on.png b/themes/.themes/cathexis/gtk-3.0/assets/switch-button-on.png new file mode 100755 index 0000000..86f3f95 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/switch-button-on.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/switch-off.png b/themes/.themes/cathexis/gtk-3.0/assets/switch-off.png new file mode 100755 index 0000000..628f66e Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/switch-off.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/switch-on.png b/themes/.themes/cathexis/gtk-3.0/assets/switch-on.png new file mode 100755 index 0000000..f01bb37 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/switch-on.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-disabled.png b/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-disabled.png new file mode 100755 index 0000000..2b91d5b Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-disabled.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-focused.png b/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-focused.png new file mode 100755 index 0000000..4373bd3 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-focused.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-off.png b/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-off.png new file mode 100755 index 0000000..147341b Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-off.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-on.png b/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-on.png new file mode 100755 index 0000000..f98c595 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-on.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-toolbar-off.png b/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-toolbar-off.png new file mode 100755 index 0000000..63f192d Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-toolbar-off.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-toolbar-on.png b/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-toolbar-on.png new file mode 100755 index 0000000..ccccb40 Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/switch-trough-toolbar-on.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/toolbar.png b/themes/.themes/cathexis/gtk-3.0/assets/toolbar.png new file mode 100755 index 0000000..6ac977a Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/toolbar.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/transparent.png b/themes/.themes/cathexis/gtk-3.0/assets/transparent.png new file mode 100644 index 0000000..e61f84b Binary files /dev/null and b/themes/.themes/cathexis/gtk-3.0/assets/transparent.png differ diff --git a/themes/.themes/cathexis/gtk-3.0/assets/trough-v.svg b/themes/.themes/cathexis/gtk-3.0/assets/trough-v.svg new file mode 100644 index 0000000..ca35068 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/trough-v.svg @@ -0,0 +1,82 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/assets/trough.svg b/themes/.themes/cathexis/gtk-3.0/assets/trough.svg new file mode 100644 index 0000000..923a147 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/assets/trough.svg @@ -0,0 +1,81 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/gtk-main.css b/themes/.themes/cathexis/gtk-3.0/gtk-main.css new file mode 100755 index 0000000..036d56f --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/gtk-main.css @@ -0,0 +1,51 @@ +/*default color scheme */ +@define-color bg_color #222222; +@define-color fg_color #666666; +@define-color base_color #222222; +@define-color text_color #666666; +@define-color selected_bg_color #FEA63C; +@define-color selected_fg_color #000000; +@define-color tooltip_bg_color #111111; +@define-color tooltip_fg_color #666666; +@define-color menu_bg_color #111111; +@define-color menu_fg_color #666666; +@define-color transparent rgba (0, 0, 0, 0); + +/* misc colors used by gtk+ */ +@define-color info_fg_color #EFEFEF; +@define-color info_bg_color #33b5e5; +@define-color warning_fg_color #EFEFEF; +@define-color warning_bg_color #ff8800; +@define-color question_fg_color #EFEFEF; +@define-color question_bg_color #0099cc; +@define-color error_fg_color #EFEFEF; +@define-color error_bg_color #cc0000; +@define-color link_color #FEA63C; +@define-color success_color #669900; +@define-color error_color #cc0000; + +/* theme common colors */ +@define-color button_bg_color shade (@bg_color, 1.02); /*shade (#cdcdcd, 1.08);*/ +@define-color notebook_button_bg_color shade (@bg_color, 1.02); +@define-color button_insensitive_bg_color mix (@button_bg_color, @bg_color, 0.6); +@define-color dark_bg_color #363638; +@define-color dark_h_color #444547; +@define-color dark_fg_color #f2f2f2; +@define-color dark_borde_color #404040; + +@define-color backdrop_bg_color #515151; +@define-color backdrop_fg_color alpha(@fg_color, 0.6); +@define-color backdrop_text_color alpha(@fg_color, 0.6); +@define-color backdrop_dark_fg_color mix (@dark_bg_color, @dark_fg_color, 0.75); +@define-color backdrop_selected_bg_color shade (@bg_color, 0.92); +@define-color backdrop_selected_fg_color @fg_color; + +@import url("gtk-widgets.css"); +@import url("apps/unity.css"); +@import url("apps/baobab.css"); +@import url("apps/gedit.css"); +@import url("apps/nautilus.css"); +@import url("apps/gnome-panel.css"); +@import url("apps/gnome-terminal.css"); +@import url("apps/unity-greeter.css"); +@import url("apps/gnome-extras.css"); diff --git a/themes/.themes/cathexis/gtk-3.0/gtk-plane.css b/themes/.themes/cathexis/gtk-3.0/gtk-plane.css new file mode 100755 index 0000000..828f652 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/gtk-plane.css @@ -0,0 +1,1108 @@ +/* +los fg son para textos. +nfg_color: el texto de los botones + +bg menu:#404040 +hover:#282828; + +base_color:#ffffff // color base del sistema si el tema es claro aconsejo dejarlo en blanco y si es oscuro del background +nbg_color:#f2f1f0 // background del sistema +ntooltip_bg_color:#000000 // tooltips "consejos" del sistema +nselected_bg_color:#f07746 // objetos seleccionados +ntext_color:#3C3C3C // color del texto de cajas de texto +nfg_color:#4c4c4c // texto en general del sitio. +ntooltip_fg_color:#ffffff //texto de los tooltips "consejos" +nselected_fg_color:#ffffff //texto de los objetos seleccionados +nlink_color:#DD4814 // color de los objetos resaltados +nbg_color_dark:#3c3b37 //color del los backgrounds del sistema cuando se pide en oscuro +nfg_color_dark:#dfdbd2 //color del los textos del sistema cuando se pide en oscuro + + +*/ + + +/*color de las ventanas y sombras internas de las ventanas +GtkWidget{background:@base_color; box-shadow: inset 0px 0px 48px 48px rgba(44, 44, 44, 0.28);} +GtkWidget:backdrop{background:mix (@bg_color, #FFFFFF, 0.13);} +GtkWidget *, +GtkWidget *:backdrop, +GtkWidget *:insensitive{background:@transparent; box-shadow:none;} +*:insensitive{color:alpha(@fg_color, 0.5); text-shadow: 0 1px alpha (shade (@bg_color, 1.25), 0.1);} + +/* +Fondos negros, descomentar: +background blacks uncomment: +*/ + + + +/*****************Botones****************/ +.button, +.button:focus, +.button:hover, +.button:hover:focus{ + background:url("assets/metal.png") center center; + border:4px solid transparent; + border-image: url("assets/button.png") 6 4 4 4 / 6px 4px 4px 4px stretch; + border-radius:0px; + box-shadow:none; + text-shadow: 0px -1px 0px rgba(0,0,0,0.5); + background-clip: padding-box; + } + .button:backdrop, + .button:hover:backdrop, + .button:insensitive, + .button:insensitive:backdrop{ + background:url("assets/metal-backdrop.png") center center; + border:4px solid transparent; + border-image: url("assets/backdrop-button.png") 6 4 4 4 / 6px 4px 4px 4px stretch; + background-clip: padding-box; + } + +.button:hover{background-color:mix(@selected_bg_color,#000000,0.6);} +.button:hover:focus{background-color:mix(@selected_bg_color,#000000,0.6);} +.button:hover:backdrop{background-color:mix(@selected_bg_color,#000000,0.4);} + +.button:active, +.button:active:hover, +.button:active:focus, +.button:active:hover:focus, +.button:active:insensitive{ + background:url("assets/metal.png") center center; + background-color:mix(@link_color,#000000,0.4; + border:4px solid transparent; + border-image:url("assets/button-active.png") 6 5 5 5 / 6px 5px 5px 5px stretch; + background-clip: padding-box; +} + +.button:active:backdrop, +.button:active:hover:backdrop, +.button:active:insensitive, +.button:active:insensitive:backdrop{ + background:url("assets/metal-backdrop.png") center center; + border:4px solid transparent; + border-image: url("assets/button-active-backdrop.png") 6 5 5 5 / 6px 5px 5px 5px stretch; + background-clip: padding-box; +} + +.button:active, +.button:active:focus, +.button:active:hover:focus, +.button.default:hover{background-color:mix(@link_color,#000000,0.6);} + + +.button.default, +.button:focus, +.button.default:hover, +.button.default:focus:hover{ + background:url("assets/metal.png") center center; + border:4px solid transparent; + border-image: url("assets/button-default.png") 6 4 4 4 / 6px 4px 4px 4px stretch; + border-radius:0px; + box-shadow:none; + text-shadow: 0px -1px 0px rgba(0,0,0,0.5); + background-clip: padding-box; +} + +.button.default:focus:hover{background-color:mix(@link_color,#000000,0.6);} +.button.default:active:focus:hover{border-image:url("assets/button-active.png") 6 5 5 5 / 6px 5px 5px 5px stretch;} + +.button GtkLabel{background:none; text-shadow: 0px -1px 0px rgba(0,0,0,0.5); box-shadow:none;} + + + +/*****************Botoneras****************/ +.primary-toolbar .linked .entry, +.primary-toolbar .linked .button, +.primary-toolbar .linked .button:active, +.primary-toolbar .linked .button:active:hover, +.primary-toolbar .linked .button:insensitive, +.linked .button, +.toolbar .button.raised.linked, +.toolbar .raised.linked .button, +.inline-toolbar.toolbar .button, +.inline-toolbar.toolbar GtkToolButton .button, +.linked .button, +.linked .button:hover, +.linked .button:active:hover, +.linked .button:insensitive, +.linked .button:active:hover:insensitive, +.toolbar .button.raised.linked, +.toolbar .raised.linked .button, +.inline-toolbar.toolbar .button, +.inline-toolbar.toolbar GtkToolButton .button,.linked .button:active, +.toolbar .button.raised.linked:active, +.toolbar .raised.linked .button:active, +.inline-toolbar.toolbar .button:active, +.inline-toolbar.toolbar GtkToolButton .button:active, +.linked .button:insensitive, +.toolbar .button.raised.linked:insensitive, +.toolbar .raised.linked .button:insensitive, +.inline-toolbar.toolbar .button:insensitive, +.inline-toolbar.toolbar GtkToolButton .button:insensitive, +.linked .button:backdrop, +.toolbar .button.raised.linked:backdrop, +.toolbar .raised.linked .button:backdrop, +.inline-toolbar.toolbar .button:backdrop, +.inline-toolbar.toolbar GtkToolButton .button:backdrop, +.linked .button:insensitive:backdrop, +.toolbar .button.raised.linked:insensitive:backdrop, +.toolbar .raised.linked .button:insensitive:backdrop, +.inline-toolbar.toolbar .button:insensitive:backdrop, +.inline-toolbar.toolbar GtkToolButton .button:insensitive:backdrop{ + background:url("assets/metal.png") center center; + background-color:transparent; + border:4px solid transparent; + border-width:4px 0px; + border-image:url("assets/button.png") 6 4 4 4 / 6px 0px 4px 0px stretch; + border-radius:0px; + text-shadow: 0px -1px 0px rgba(0,0,0,0.5); + background-clip: padding-box; + box-shadow: inset 2px 0px 0px 0px shade(@fg_color, 0.52), + inset 1px 0px 0px 0px shade(@fg_color, 0.35); +} + +.linked .button:first-child, +.linked .button:active:first-child, +.linked .button:active:hover:first-child, +.linked .button:insensitive:first-child, +.linked .button:active:hover:insensitive:first-child, +.linked .button:focus:first-child, +.linked .button:active:focus:first-child, +.toolbar .button.raised.linked:first-child, +.toolbar .button.raised.linked:active:first-child, +.toolbar .raised.linked .button:first-child, +.inline-toolbar.toolbar .button:first-child, +.inline-toolbar.toolbar GtkToolButton:first-child .button, +.primary-toolbar .linked .button:first-child, +.primary-toolbar .linked .button:active:hover:first-child, +.primary-toolbar .button.raised.linked:first-child, +.primary-toolbar .raised.linked .button:active:first-child, +.primary-toolbar .raised.linked .button:active:focus:first-child, +.primary-toolbar .raised.linked .button:first-child + { + background:url("assets/metal.png") center center; + background-color:transparent; + border:4px solid transparent; + border-width:4px 0px 4px 4px; + border-image:url("assets/button.png") 6 4 4 4 / 6px 0px 4px 4px stretch; + border-radius:0px; + text-shadow: 0px -1px 0px rgba(0,0,0,0.5); + background-clip: padding-box; + box-shadow: none; +} + +.linked .button:last-child, +.linked .button:active:last-child, +.linked .button:active:hover:last-child, +.linked .button:active:hover:insensitive:last-child, +.toolbar .button.raised.linked:last-child, +.toolbar .raised.linked .button:last-child, +.inline-toolbar.toolbar .button:last-child, +.inline-toolbar.toolbar GtkToolButton:last-child .button, +.primary-toolbar .linked .button:last-child, +.primary-toolbar .linked .button:active:hover:last-child, +.primary-toolbar .button.raised.linked:last-child, +.primary-toolbar .raised.linked .button:last-child { + background:url("assets/metal.png") center center; + background-color:transparent; + border:4px solid transparent; + border-width:4px 4px 4px 0px; + border-image:url("assets/button.png") 6 4 4 4 / 6px 4px 4px 0px stretch; + border-radius:0px; + text-shadow: 0px -1px 0px rgba(0,0,0,0.5); + background-clip: padding-box; + box-shadow: inset 2px 0px 0px 0px shade(@fg_color, 0.52), + inset 1px 0px 0px 0px shade(@fg_color, 0.35); +} +.linked .button:active, +.primary-toolbar .linked .button:active, +.primary-toolbar .button.raised.linked:active, +.primary-toolbar .raised.linked .button:active, +.primary-toolbar .linked .button:insensitive, +.primary-toolbar .button.raised.linked:insensitive, +.primary-toolbar .raised.linked .button:insensitive, +.primary-toolbar .linked .button:backdrop:last-child, +.primary-toolbar .button.raised.linked:backdrop:last-child, +.primary-toolbar .raised.linked .button:backdrop:last-child{ + box-shadow: inset 2px 0px 0px 0px shade(@fg_color, 0.52), + inset 1px 0px 0px 0px shade(@fg_color, 0.35); +} + + +/* Linked single button */ +.primary-toolbar .linked .entry:only-child, +.primary-toolbar .linked .button:only-child, +.primary-toolbar .linked .button:active:only-child, +.primary-toolbar .linked .button:active:hover:only-child, +.primary-toolbar .linked .button:insensitive:only-child { + background:url("assets/metal.png") center center; + background-color:transparent; + border:4px solid transparent; + border-width:4px; + border-image:url("assets/button.png") 6 4 4 4 / 6px 4px 4px 4px stretch; + border-radius:0px; + text-shadow: 0px -1px 0px rgba(0,0,0,0.5); + background-clip: padding-box; + box-shadow: none; + +} +.linked .button:active, +.linked .button:active:hover, +.linked .button:hover:insensitive, +.linked .button:active:hover:insensitive, +.linked .button:active:first-child, +.linked .button:active:hover:first-child, +.linked .button:hover:insensitive:first-child, +.linked .button:active:hover:insensitive:first-child, +.linked .button:active:last-child, +.linked .button:active:hover:last-child, +.linked .button:hover:insensitive:last-child, +.linked .button:active:hover:insensitive:last-child, +.primary-toolbar .linked .entry:hover:only-child, +.primary-toolbar .linked .button:hover:only-child, +.primary-toolbar .linked .button:active:only-child, +.primary-toolbar .linked .button:active:hover:only-child, +.primary-toolbar .linked .button:active:focus:hover:only-child, +.primary-toolbar .linked .button:focus:hover:only-child, +.primary-toolbar .linked .entry:hover, +.primary-toolbar .linked .button:hover, +.primary-toolbar .linked .button:active:hover, +.primary-toolbar .linked .button:active:hover:hover, +.primary-toolbar .linked .button:insensitive:hover, +.linked .button:hover, +.toolbar .button.raised.linked:hover, +.toolbar .raised.linked .button:hover, +.inline-toolbar.toolbar .button:hover, +.inline-toolbar.toolbar GtkToolButton .button:hover{ + background-color:mix(@selected_bg_color,#000000,0.6); +} + +/******************* + * check and radio * + *******************/ +.check, +.check:hover, +.check:active, +.check:active:hover, +.check:backdrop, +.check:backdrop:active, +.check:backdrop:insensitive, +.check:backdrop:insensitive:active, +.check:backdrop:inconsistent, +.check:backdrop:inconsistent:insensitive, +.check:insensitive, +.check:insensitive:active, +.check:inconsistent, +.check:inconsistent:hover, +.check:inconsistent:insensitive, +.check:inconsistent:insensitive:active{ + background:alpha(@fg_color,0.1) url("assets/transparent.png"); + border:none; + box-shadow: 0 0 2px 3px alpha(#000000,0.5) inset, + 0 0 0px 1px alpha(#FFFFFF,0.2) inset; +} +.check:active, +.check:active:hover{ + background:alpha(@fg_color,0.1) url("assets/check-active.png") left center no-repeat; +} +.check:hover, +.check:inconsistent:hover{ + background-color: alpha(@selected_bg_color,0.3); +} +.check:active:hover{ + background-color: alpha(@selected_bg_color,0.15); +} +.check:insensitive:active, +.check:backdrop:active, +.check:backdrop:insensitive:active{ + background:alpha(@fg_color,0.1) url("assets/check-disable.png") left center no-repeat; +} +.check:inconsistent, +.check:inconsistent:hover{ + background:alpha(@fg_color,0.1) url("assets/check-mixed.svg") center center no-repeat; +} +.check:inconsistent:hover{ + background-color: alpha(@selected_bg_color,0.15); +} +.check:inconsistent:insensitive, +.check:backdrop:inconsistent, +.check:backdrop:inconsistent:insensitive{ + background:alpha(@fg_color,0.1) url("assets/check-mixed-disable.svg") center center no-repeat; +} +/*radio*/ +.radio, +.radio:hover, +.radio:active, +.radio:active:hover, +.radio:backdrop, +.radio:backdrop:active, +.radio:backdrop:insensitive, +.radio:backdrop:insensitive:active, +.radio:backdrop:inconsistent, +.radio:backdrop:inconsistent:insensitive, +.radio:insensitive, +.radio:insensitive:active, +.radio:inconsistent, +.radio:inconsistent:hover, +.radio:inconsistent:insensitive, +.radio:inconsistent:insensitive:active{ + background:alpha(@fg_color,0.1) url("assets/transparent.png"); + border:none; + box-shadow: 0 0 2px 3px alpha(#000000,0.5) inset, + 0 0 0px 1px alpha(#FFFFFF,0.2) inset; + border-radius:50%; +} +.radio:active, +.radio:active:hover{ + background:alpha(@fg_color,0.1) url("assets/radio-active.png") center center no-repeat; +} +.radio:hover, +.radio:inconsistent:hover{ + background-color: alpha(@selected_bg_color,0.3); +} +.radio:active:hover{ + background-color: alpha(@selected_bg_color,0.15); +} +.radio:insensitive:active, +.radio:backdrop:active, +.radio:backdrop:insensitive:active{ + background:alpha(@fg_color,0.1) url("assets/radio-disable.png") center center no-repeat; +} +.radio:inconsistent, +.radio:inconsistent:hover{ + background:alpha(@fg_color,0.1) url("assets/check-mixed.svg") center center no-repeat; +} +.radio:inconsistent:hover{ + background-color: alpha(@selected_bg_color,0.15); +} +.radio:inconsistent:insensitive, +.radio:backdrop:inconsistent, +.radio:backdrop:inconsistent:insensitive{ + background:alpha(@fg_color,0.1) url("assets/check-mixed-disable.svg") center center no-repeat; +} + +/**************** + * cell and row * + ****************/ +.cell { + -GtkCheckButton-indicator-size: 16; + -GtkWidget-focus-line-width: 0; + background:none; + border:none; + padding:0px; + box-shadow:none; +} + + +row:hover, +row:hover:focused{background:mix(@selected_bg_color,@bg_color,0.95); border:none;} + +row:selected, +row:active, +row:insensitive, +row:selected:insensitive, +row:selected:backdrop, +row:selected:focused, +row:selected:backdrop{background:mix(@selected_bg_color,#000000,0.35); border:none; } + + + +/***************** + * column-header * + *****************/ +column-header .button, +column-header .button:hover, +column-header .button:active, +column-header .button:focus, +column-header .button:hover:focus, +column-header .button:active:focus, +column-header .button:active:hover:focus, +column-header:nth-child(last) .button, +column-header .button:backdrop, +column-header .button:hover:backdrop, +column-header .button:active:backdrop, +column-header .button:focus:backdrop, +column-header .button:hover:focus:backdrop, +column-header .button:active:focus:backdrop, +column-header .button:active:hover:focus:backdrop, +column-header:nth-child(last) .button:backdrop{ + background:none; + border:none; + border-image:none; + border-radius:0px; + box-shadow: inset -1px 0 alpha(@fg_color, 0.07), + inset 0 -1px alpha(@fg_color, 0.07); + text-shadow: 0px -1px 0px rgba(0,0,0,0.5); + background-clip: padding-box; + padding: 5px 6px; +} +column-header .button:active, +column-header .button:focus, +column-header .button:active:focus, +column-header .button:active:hover:focus, +column-header .button:hover:focus, +column-header .button:focused{ + background:-gtk-gradient (linear, 0 0, 0 1, color-stop(0.84, transparent), color-stop(0.84, mix(@selected_bg_color,#000000,0.35)), color-stop(1, mix(@selected_bg_color,#000000,0.35))); + box-shadow: inset -1px 0 alpha(@fg_color, 0.07), + inset 0 -1px alpha(@fg_color, 0.07); + padding: 5px 6px; +} +column-header .button:hover, +column-header .button:active:hover, +column-header .button:focus:hover{ + background:mix(@selected_bg_color,#000000,0.35); border:none; + padding: 5px 6px; +} +column-header:nth-child(last) .button{ + border-right:0px; + box-shadow: inset 0 -1px alpha(@fg_color, 0.07); +} + + +/********* + * entry * + *********/ +.entry, +.entry:backdrop, +.entry:focus, +.entry:selected, +.entry:selected:focus, +.entry:focus, +.entry:insensitive, +.entry:insensitive:backdrop, +.primary-toolbar .entry, +.primary-toolbar .entry:focus, +.primary-toolbar .entry.progressbar, +.primary-toolbar .entry.progressbar, +.entry.progressbar{ + -GtkWidget-focus-line-width: 0; + background:none; + box-shadow:none; + border:1px solid transparent; + border-radius:0px; + padding: 5px 7px; + color: @text_color; + border-image: url("assets/entry.svg") 0 1 1 1 / 0 1 1 1 stretch; +} +.entry .button{background:none; border:none;} +.entry .button .image{background:#DD1AA8; border:4px solid #E32D2D} + +.entry:backdrop{ + background-image:none; + color: @backdrop_text_color; +} +.entry:selected, +.entry:selected:focus, +.entry:selected:focused{ + background-color:@selected_bg_color; + color: @selected_fg_color; +} + +.entry:focused, +.entry:active, +.primary-toolbar .entry:focus{ + background-color:none; + border-width:2px; + border-image: url("assets/entry-focus.svg") 0 1 1 1 / 0 1 1 1 stretch; +} + + +.entry:insensitive{ + background-color: none; + background-image: none; + border-image: url("assets/entry-insensitive.svg") 0 1 1 1 / 0 1 1 1 stretch; + color: mix (@text_color, @base_color, 0.4); +} + +.entry:insensitive:backdrop { + background-color:none; + border-image: url("assets/entry-insensitive.svg") 0 1 1 1 / 0 1 1 1 stretch; + color: mix (@text_color, @base_color, 0.4); +} + +.primary-toolbar .entry.progressbar, +.primary-toolbar .entry.progressbar, +.entry.progressbar { + background-image:none; + border-width: 0; + color: @selected_fg_color; +} + + +/***************** + * combobox * + *****************/ +/*arrow button*/ +GtkComboBox.combobox-entry .button *{-unico-arrow-texture: url("assets/combobox-arrow.svg");} +GtkComboBox.combobox-entry .button *:insensitive{-unico-arrow-texture: url("assets/combobox-arrow-disabled.svg");} +GtkComboBox .button *{-unico-arrow-texture:url("assets/transparent.png");} + +/*combobox button*/ +GtkComboBox .button, +GtkComboBox .button:backdrop, +GtkComboBox .button:insensitive, +GtkComboBox .button:hover, +GtkComboBox .button:active, +GtkComboBox .button:focus, +GtkComboBox .button:hover:focus{ + background:none; + border-width: 1px; + border-image: url('assets/combobox.svg') 0 10 10 0 / 0px 10px 10px 0px stretch; +} +GtkComboBox .button:hover{ + background:mix(@selected_bg_color,@bg_color,0.65); +} +GtkComboBox .button:active, +GtkComboBox .button:focus{ + border-image: url('assets/combobox-active.svg') 0 10 10 0 / 0px 10px 10px 0px stretch; +} +GtkComboBox .button:insensitive{ + border-image: url('assets/combobox-insensitive.svg') 0 10 10 0 / 0px 10px 10px 0px stretch; +} + +GtkComboBox .separator { + -GtkWidget-wide-separators: true; + -GtkWidget-separator-width: 0; + -GtkWidget-separator-height: 0; + -GtkWidget-horizontal-separator: 0; + -GtkWidget-vertical-separator: 0; +} + + +/*combobox entry*/ +GtkComboBox.combobox-entry .entry, +GtkComboBox.combobox-entry .entry:last-child{ + background:none; + border-width:0px 0px 1px 1px; + border-image: url("assets/entry.svg") 0 0 1 1 / 0 0 1 1 stretch; +} +GtkComboBox.combobox-entry .entry:insensitive{ + border-image: url("assets/entry-insensitive.svg") 0 0 1 1 / 0 0 1 1 stretch; +} + +GtkComboBox.combobox-entry .entry:focus, +GtkComboBox.combobox-entry:active .entry{ + border-width:0px 0px 2px 2px; + border-image: url("assets/entry-focus.svg") 0 0 1 1 / 0 0 1 1 stretch; +} + +GtkComboBox.combobox-entry .button, +GtkComboBox.combobox-entry .button:backdrop, +GtkComboBox.combobox-entry .button:last-child{ + background:none; + border-width:0px 1px 1px 0px; + border-image: url("assets/entry.svg") 0 1 1 0 / 0 1 1 0 stretch; +} + +GtkComboBox.combobox-entry .button:insensitive, +GtkComboBox.combobox-entry .button:insensitive:backdrop{ + background:none; + border-width:0px 1px 1px 0px; + border-image: url("assets/entry-insensitive.svg") 0 1 1 0 / 0 1 1 0 stretch; +} + +GtkComboBox.combobox-entry .button:active{ + background:mix(@selected_bg_color,#000000,0.35); + border-width:0px 1px 1px 0px; + border-image: url("assets/entry.svg") 0 1 1 0 / 0 1 1 0 stretch; + border-radius:0px; + padding:4px 6px; +} + +/********* + * frame * + *********/ + +.frame, +.frame:backdrop{ + border-radius:0px; + border-width: 1px 1px 0px 1px; + border-style: solid; + border-color: none; + border-image: url("assets/frame.svg") 1 1 0 1 / 1px 1px 0px 1px stretch; +} + +.frame GtkLabel{ + /*background:alpha(@fg_color, 0.1);*/ + color:@fg_color; + text-shadow:0px 0px 1px @bg_color; + padding:1px 4px; +} + +/************ + * iconview * + ************/ +GtkIconView.view.cell:selected, +GtkIconView.view.cell:selected:focused { + background:mix(@selected_bg_color,#000000,0.35); border:none; + border:none; + box-shadow:none; +} + +/*********** + * infobar * + ***********/ +.info { + background:@info_bg_color; + border:none; + color: @info_fg_color; + box-shadow:none; +} +.warning { + background:@warning_bg_color; + border:none; + color: @warning_fg_color; + box-shadow:none; +} +.question { + background:@question_bg_color; + border:none; + color: @question_fg_color; + box-shadow:none; +} + +.error { + background:@error_bg_color; + border:none; + color:@error_fg_color; + box-shadow:none; +} + +/********* + * label * + *********/ +GtkLabel, +GtkLabel:insensitive { + background-color: transparent; +} + + +/******** + * menu y listas * + ********/ +.menubar{background:none; padding:0px;} + +*.menu, +.toolbar .primary-toolbar .menu, +GtkMenuToolButton.menu, +.primary-toolbar .button .menu, +.menu { + background:#373737; + border:none; + border-image:none; + border:none; + box-shadow:none; + padding:0px; +} + +.toolbar .menu, +GtkComboBox .menu { + color:#e3e3e3; + padding:0px; + border-radius:0px; +} + +.menuitem { + border-radius:0; + border-style: solid; + border-width:0px; + padding: 3px 2px 3px 2px; + text-shadow: none; + color:mix (@fg_color, #000000, 0.05); + text-shadow: 0px 1px 0px rgba(0,0,0,0.5); +} + +.unity-panel.menubar.menuitem:hover, +.unity-panel.menubar .menuitem *:hover, +.menubar.menuitem:hover, +.menubar .menuitem:hover { + /*background:mix (@bg_color, #33b5e5, 0.15);*/ + background:#373737; + border-image:none; + border-radius:0px; + /*border-bottom:4px solid #33b5e5;*/ + color:@fg_color; +} + + +/*separadores en los menus*/ +GtkTreeMenu .menuitem.separator, +.toolbar .primary-toolbar .menuitem.separator, +GtkMenuToolButton .menuitem.separator, +.primary-toolbar .button .menuitem.separator, +.menuitem.separator { + border-width: 1px 0 1px 0; + border-image: url("assets/bg-sep-h.png") 1 0 1 0 stretch; +} + +/*combox listas desplegables*/ +GtkComboBox .menuitem * { + color:#e3e3e3; + border:none; + margin:0px; + background:none; +} +.menuitem:hover, +.menu .menuitem:hover { + background:rgba(0,0,0,0.2); + border-radius:0px; + border:0px; + background-image:none; + border-image:none; + border-image-width: 0px; + color: @selected_fg_color; + box-shadow:none; + text-shadow:none; +} +GtkComboBox .menuitem *:hover { + color: #efefef; +} + +.menuitem GtkCalendar, +.menuitem GtkCalendar.button, +.menuitem GtkCalendar.header, +.menuitem GtkCalendar.view { + background-color:none; + color: @fg_color; +} + +.menuitem GtkCalendar { + background-color:none; + background-image: none; +} + + + +/*menu*/ +.menubar .menuitem .scale.highlight.left, +.scale.highlight.left, +.progressbar, +.progressbar row, +.progressbar row:hover, +.progressbar row:selected, +.progressbar row:selected:focused { + border-radius:0px; + border-width:2px 7px 3px 0; + background-image: none; + background-color:inherit; + border-style:inherit; +} + +/****************************Tabs************************/ + +.notebook{background:none; background-clip: border-box; border-radius:0px; border:none; padding:0px;} +.notebook tab{ + background:none; + border:none; + box-shadow:none; + -unico-focus-border-color:transparent; + -unico-focus-fill-color:transparent; + -unico-focus-border-width:0px; + padding:10px 0px; +} +.notebook tab GtkLabel{background:none; border:none; padding:0px 35px; text-shadow: 0px 1px 0px rgba(0,0,0,0.5);} + +.notebook tab.top{border:none; border-image:url("assets/notebook-tab-active.png") 0 1 0 0 / 10px 1px 10px 0px stretch; padding:10px 0px;} +.notebook tab.top:active {background:-gtk-gradient (linear, 0 0, 0 1, color-stop(0.84, transparent), color-stop(0.84, @selected_bg_color), color-stop(1, @selected_bg_color)); border-left-width:0px; border-image: url("assets/notebook-tab-active.png") 0 1 0 0 / 10px 1px 10px 0px; background-clip: border-box; padding:10px 0px;} + +.notebook tab.right{border:none; border-image:url("assets/notebook-tab-active.png") 0 0 1 0 / 0px 10px 1px 10px stretch; padding:8px 0px;} +.notebook tab.right:active {background:-gtk-gradient (linear, 1 0, 0 0, color-stop(0.95, transparent), color-stop(0.95, @selected_bg_color), color-stop(1, @selected_bg_color)); border-left-width:0px; border-image: url("assets/notebook-tab-active.png") 0 0 1 0 / 0px 10px 1px 10px; background-clip: border-box; padding:8px 0px;} + +.notebook tab.bottom{border:none; border-image:url("assets/notebook-tab-active.png") 0 1 0 0 / 10px 1px 10px 0px stretch; padding:10px 0px;} +.notebook tab.bottom:active {background:-gtk-gradient (linear, 0 1, 0 0, color-stop(0.84, transparent), color-stop(0.84, @selected_bg_color), color-stop(1, @selected_bg_color)); border-left-width:0px; border-image: url("assets/notebook-tab-active.png") 0 1 0 0 / 10px 1px 10px 0px; background-clip: border-box; padding:10px 0px;} + +.notebook tab.left{border:none; border-image:url("assets/notebook-tab-active.png") 0 0 1 0 / 0px 10px 1px 10px stretch; padding:8px 0px;} +.notebook tab.left:active {background:-gtk-gradient (linear, 0 0, 1 0, color-stop(0.95, transparent), color-stop(0.95, @selected_bg_color), color-stop(1, @selected_bg_color)); border-left-width:0px; border-image: url("assets/notebook-tab-active.png") 0 0 1 0 / 0px 10px 1px 10px; background-clip: border-box; padding:8px 0px;} + + + +/********************* + * GtkScale's slider * + *********************/ +GtkScale, +GtkProgressBar{ + -GtkRange-slider-width: 28; + -GtkRange-trough-border: 0; + -GtkScale-slider-length: 28; + -GtkWidget-focus-line-width: 0; + +} +.scale.slider, +.scale.slider.horizontal, +.scale.slider:hover, +.scale.slider:focus, +.scale.slider:focus:hover, +.scale.slider:focused, +.scale.slider:backdrop{ + background:url("assets/scale-slider.png"); + border:none; + border-radius:0px; + box-shadow:none; + padding:0px; + +} +.scale.slider:focus, +.scale.slider:focused{ + background:url("assets/scale-slider-focus.png"); +} +.scale.slider:hover, +.scale.slider:focus:hover{ + background:url("assets/scale-slider-hover.png"); +} +.scale.slider:backdrop, +.scale.slider.horizontal:backdrop, +.scale.slider:insensitive, +.scale.slider.horizontal:insensitive{ + background:url("assets/scale-slider-disable.png"); +} + +.scale.trough, +.scale.trough:backdrop, +.scale.trough:insensitive, +.primary-toolbar GtkScale.trough, +.primary-toolbar GtkScale.trough:backdrop, +.menuitem GtkScale.trough{ + background-clip: content-box; + background:none; + border:none; + padding:0px; + box-shadow:none; + border-radius:0px; + margin:12px 0px 11px 0px; + border-width:2px 8px 3px 0; + border-image: url("assets/scale-trough.png") 2 8 3 0 / 2px 8px 3px 0px stretch; +} + +.scale.trough.highlight.left, +.scale.trough.highlight.left:backdrop, +.scale.trough.highlight.left:insensitive{ + background:none; + border:none; + padding:0px; + box-shadow:none; + border-radius:0px; + border-width:2px 0px 3px 8px; + border-image: url("assets/scale-trough-highlight-left.png") 2 0 3 8 / 2px 0px 3px 8px stretch; +} +.scale.trough.highlight.left:insensitive{ + border-image: url("assets/scale-trough-disable.png") 2 0 3 8 / 2px 0px 3px 8px stretch; +} + +GtkScale.vertical { + -GtkScale-slider-length: 28; +} +.scale.trough.vertical, +.scale.trough.vertical:backdrop, +.scale.trough.vertical:insensitive{ + background-clip: content-box; + background:none; + border:none; + padding:0px; + box-shadow:none; + border-radius:0px; + margin:0px 12px 0px 11px; + border-width:9px 2px 0px 3; + border-image: url("assets/scale-trough-v.png") 9 2 0 3 / 9px 2px 0px 3px stretch; +} + +.scale.trough.highlight.bottom.vertical, +.scale.trough.highlight.bottom.vertical:backdrop, +.scale.trough.highlight.bottom.vertical:insensitive{ + background:none; + border:none; + padding:0px; + box-shadow:none; + border-radius:0px; + border-width:0px 2px 9px 3px; + border-image: url("assets/scale-trough-highlight-left-v.png") 0 2 9 3 / 0px 2px 9px 3px stretch; +} +.scale.trough.highlight.bottom.vertical:insensitive{ + border-image: url("assets/scale-trough-disable-v.png") 0 2 9 3 / 0px 2px 9px 3px stretch; +} + +/*progressbar*/ + +.trough, +.trough row, +.trough row:hover, +.trough row:selected, +.trough row:selected:focused { + border:none; + box-shadow:none; + border-radius:0px; + margin:0px; + padding:0px; + background:url("assets/trough.svg") right center no-repeat; + text-shadow:0px 0px 1px #000000; +} +.progressbar, +.progressbar row, +.progressbar row:hover, +.progressbar row:selected, +.progressbar row:selected:focused, +.progressbar:backdrop, +.progressbar row:backdrop, +.progressbar row:hover:backdrop, +.progressbar row:selected:backdrop, +.progressbar row:selected:focused:backdrop, +.scale.highlight.bottom:backdrop, +.progressbar.vertical:backdrop{ + border:5px solid #404040; + border:none; + background:url("assets/progressbar.svg") right center no-repeat; + box-shadow:none; + margin:0px; +} +/********** + * switch * + **********/ +GtkSwitch { + border-radius: 0px; + padding: 0; + background:none; + -GtkRange-slider-width: 27; + -GtkRange-trough-border: 0; + -GtkScale-slider-length: 27; + -GtkWidget-focus-line-width: 0; + + +} + +GtkSwitch.trough, +GtkSwitch.trough:active, +GtkSwitch.trough:backdrop, +GtkSwitch.trough:active:backdrop{ + background:alpha(@fg_color,0.1); + border:none; + box-shadow: 0 0 2px 3px alpha(#000000,0.4) inset, + 0 0 0px 1px alpha(#FFFFFF,0.2) inset; + border-radius:18px; +} +GtkSwitch.trough:insensitive, +GtkSwitch.trough:active:insensitive{ + background:alpha(@fg_color,0.05); + border:none; + box-shadow: 0 0 2px 3px alpha(#000000,0.2) inset, + 0 0 0px 1px alpha(#FFFFFF,0.1) inset; + border-radius:18px; +} +GtkSwitch.trough:active{ + background:alpha(@selected_bg_color,0.2); +} + +GtkSwitch.slider, +GtkSwitch.slider:active, +GtkSwitch.slider:backdrop, +GtkSwitch.slider:active:insensitive, +GtkSwitch.slider:insensitive{ + padding:1px; + margin:0px; + border-radius:0px; + border:none; + background:@transparent url("assets/switch-off.png") center center no-repeat; +} + + +GtkSwitch.slider:active { + background-image:url("assets/switch-on.png"); +} + +GtkSwitch *{-GtkCheckButton-indicator-size: 27} + + + +/************** +Reproductor + + * spinbutton * + ************* +.spinbutton.button:active,*/ + + + +/*********** + * toolbar * + ***********/ +.primary-toolbar.toolbar, +.primary-toolbar.toolbar:backdrop{background:none; border:none; box-shadow:none;} + +/* Single button */ +.primary-toolbar.toolbar .button:only-child, +.primary-toolbar.toolbar .button:active:only-child, +.primary-toolbar.toolbar .button:focus:only-child, +.primary-toolbar.toolbar .button:focus:active:only-child, +.primary-toolbar.toolbar .button:insensitive:only-child, +.primary-toolbar.toolbar .button:backdrop:only-child, +.primary-toolbar.toolbar .button:backdrop:insensitive:only-child, +.primary-toolbar.toolbar GtkToolButton:only-child .button, +.primary-toolbar.toolbar GtkToolButton:only-child .button:active, +.primary-toolbar.toolbar GtkToolButton:only-child .button:focus, +.primary-toolbar.toolbar GtkToolButton:only-child .button:focus:active, +.primary-toolbar.toolbar GtkToolButton:only-child .button:insensitive, +.primary-toolbar.toolbar GtkToolButton:only-child .button:backdrop, +.primary-toolbar.toolbar GtkToolButton:only-child .button:backdrop:insensitive, +.inline-toolbar.toolbar .button:only-child, +.inline-toolbar.toolbar .button:active:only-child, +.inline-toolbar.toolbar .button:focus:only-child, +.inline-toolbar.toolbar .button:focus:active:only-child, +.inline-toolbar.toolbar .button:insensitive:only-child, +.inline-toolbar.toolbar .button:backdrop:only-child, +.inline-toolbar.toolbar .button:backdrop:insensitive:only-child, +.inline-toolbar.toolbar GtkToolButton:only-child .button, +.inline-toolbar.toolbar GtkToolButton:only-child .button:active, +.inline-toolbar.toolbar GtkToolButton:only-child .button:focus, +.inline-toolbar.toolbar GtkToolButton:only-child .button:focus:active, +.inline-toolbar.toolbar GtkToolButton:only-child .button:insensitive, +.inline-toolbar.toolbar GtkToolButton:only-child .button:backdrop, +.inline-toolbar.toolbar GtkToolButton:only-child .button:backdrop:insensitive { + background:url("assets/metal.png") center center; + background-color:transparent; + border:4px solid transparent; + border-width:4px; + border-image:url("assets/button.png") 6 4 4 4 / 6px 4px 4px 4px stretch; + border-radius:0px; + text-shadow: 0px -1px 0px rgba(0,0,0,0.5); + background-clip: padding-box; + box-shadow: none; +} +/* inline-toolbar */ +.inline-toolbar.toolbar { + background:alpha(@fg_color, 0.1); +} + +/*Unity*/ +.unity-panel{ + background-image:#bg_color; + border:none; + border-image:none; + color:mix (@fg_color, #000000, 0.05); + text-shadow: 0px 1px 0px rgba(0,0,0,0.5); +} +.unity-panel:backdrop, +.unity-panel:active, +.unity-panel:hover, +.unity-panel:focus{background-image:#bg_color; border-image:none;} + + +/*Nautilus*/ +NautilusWindow GtkContainer{background:@base_color; box-shadow: inset 0px 0px 48px 48px rgba(44, 44, 44, 0.28);} +/* darle bg al contenededor +NautilusWindow *{ background-color: #484848; + box-shadow: inset 0px 0px 48px 48px rgba(44, 44, 44, 0.28);} +*/ +.nautilus-desktop.nautilus-canvas-item +{ color: @fg_color; + text-shadow: 0px 0px 1px @bg_color; +} + + +/*buscar en la calculadora el "entry" cambiar el color +maso debe ser asi +GcalctoolWindow .entry, +GcalctoolWindow .entry:focus{background:@bg_color;} +*/ +GtkViewport.frame{padding:5px;} + + +.grip{background:#EE32C9} diff --git a/themes/.themes/cathexis/gtk-3.0/gtk-widgets-assets.css b/themes/.themes/cathexis/gtk-3.0/gtk-widgets-assets.css new file mode 100755 index 0000000..84a5f7e --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/gtk-widgets-assets.css @@ -0,0 +1,10 @@ +/*************** + * Resize grip * + ***************/ + +.grip { + background-color: transparent; + /*background-image: url("assets/resize-grip.svg");*/ +} + + diff --git a/themes/.themes/cathexis/gtk-3.0/gtk-widgets-borders.css b/themes/.themes/cathexis/gtk-3.0/gtk-widgets-borders.css new file mode 100755 index 0000000..e69de29 diff --git a/themes/.themes/cathexis/gtk-3.0/gtk-widgets.css b/themes/.themes/cathexis/gtk-3.0/gtk-widgets.css new file mode 100755 index 0000000..577bed1 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/gtk-widgets.css @@ -0,0 +1,2149 @@ +/*------------------------------------------------------------------------------------------------------------------------------------------ +Theme: CathexiS +Description: Simple, minimal, distraction free foundation for building your desktop experience... +Author: Samir Kahvedzic < akirapowered@gmail.com > +Web: http://samirkahvedzic.deviantart.com +-------------------------------------------------------------------------------------------------------------------------------------------- */ + +/* default */ +* { + -GtkArrow-arrow-scaling: 0.6; + -GtkButton-child-displacement-x: 1; + -GtkButton-child-displacement-y: 1; + -GtkButton-default-border: 0; + -GtkButton-image-spacing: 0; + -GtkButton-interior-focus: true; + -GtkButton-inner-border: 3; + -GtkCheckButton-indicator-size: 18; + -GtkCheckMenuItem-indicator-size: 16; + -GtkEntry-inner-border: 2; + -GtkEntry-progress-border: 0; + -GtkExpander-expander-size: 8; + -GtkHTML-link-color: @link_color; + -GtkIMHtml-hyperlink-color: @link_color; + -GtkMenu-horizontal-padding: 0; + -GtkMenu-vertical-padding: 5px; + -GtkMenuBar-internal-padding: 0; + -GtkMenuItem-arrow-scaling: 0.6; + -GtkNotebook-tab-overlap: 0; + -GtkPaned-handle-size: 6; + -GtkProgressBar-min-horizontal-bar-height: 14; + -GtkProgressBar-min-vertical-bar-width: 14; + -GtkRange-trough-border: 0; + -GtkRange-slider-width: 14; + -GtkRange-stepper-size: 13; + -GtkRange-trough-under-steppers: 1; + -GtkRange-stepper-spacing: 0; + -GtkScale-trough-border: 0; + -GtkScrollbar-activate-slider: 1; + -GtkScrollbar-trough-border: 0; + -GtkScrollbar-min-slider-length: 31; + -GtkScrolledWindow-scrollbar-spacing: 0; + -GtkScrolledWindow-scrollbars-within-bevel: 1; + -GtkSeparatorMenuItem-horizontal-padding: 0; + -GtkStatusbar-shadow-type: none; + -GtkTextView-error-underline-color: @error_color; + -GtkToolButton-icon-spacing: 6; + -GtkToolItemGroup-expander-size: 11; + -GtkToolbar-internal-padding: 0; + -GtkTreeView-expander-size: 8; + -GtkTreeView-vertical-separator: 0; + -GtkWidget-wide-separators: true; + -GtkWidget-separator-width: 2; + -GtkWidget-separator-height: 2; + -GtkWidget-focus-padding: 0; + -GtkWidget-focus-line-width: 1px; + -GtkWidget-link-color: @link_color; + -GtkWidget-visited-link-color: @link_color; + -GtkWindow-resize-grip-width: 0; + -GtkWindow-resize-grip-height: 0; + -WnckTasklist-fade-overlay-rect: 0; + + background-origin: border-box; + background-clip: padding-box; + border-width: 1px; + + engine: unico; + + /*-unico-arrow-texture: url("assets/combobox-arrow.png");*/ + + -unico-focus-border-color: transparent; + -unico-focus-border-radius: 0; + -unico-focus-fill-color: transparent; +} + +GtkWindow { + color: @fg_color; +} + +* { + /* inherit the color from parent by default */ + color: inherit; + background-color: @bg_color; +} + +*:backdrop, +GtkWindow:backdrop { + color: @backdrop_fg_color; + background-color:@backdrop_bg_color; +} + +/********** + * states * + **********/ +*:insensitive { + color: alpha (@menu_bg_color, 0.6); + text-shadow: 0px -1px 0px alpha(@fg_color, 0.1); +} + +*:active { +} + +*:active:hover:insensitive { +} + +*:active:insensitive { +} + +*:hover { +} + +*:hover:insensitive { +} + +*:selected, +*:selected:focused { + background-color: @selected_bg_color; + + color: @selected_fg_color; +} + +*:selected:backdrop, +*:selected:focused:backdrop { + background-color: alpha (@backdrop_selected_bg_color, 0.9); + + color: @backdrop_selected_fg_color; +} + + +/********* + * arrow * + *********/ +/*.arrow * { + background-image: url("assets/combobox-arrow.png"); +}*/ + +/************* + * assistant * + *************/ +GtkAssistant .sidebar .highlight { + color: @fg_color; + background-color: alpha (@selected_bg_color, 0.4); +} + +GtkAssistant .sidebar { + background-image: url("assets/sidebar-dark.png"); + background-position:right top; + background-repeat:repeat-y; + +} +GtkAssistant .frame, +GtkAssistant .frame:backdrop{border:none;} + +/************** + * background * + **************/ +.background { + background-color: @bg_color; + border-width: 0; +} +.background:backdrop{ + background-color:@backdrop_bg_color; +} + +/********** + * button * + **********/ +.button, +.button.default{ + -GtkWidget-focus-line-width: 0; + background-image: -gtk-gradient (linear, 0 0, 0 1, from (#232323), to (alpha(@bg_color,1.1))); + border: 1px solid #131313; + border-radius: 0; + box-shadow: inset 1px 1px 0 0 alpha(@fg_color, 0.2), inset 0 0 1px 1px alpha(@fg_color, 0.2); + text-shadow: 0 -1px 0 rgba(0,0,0,0.5); + padding: 5px 7px; + color: @fg_color; +} + +.button:insensitive{ + background: transparent; + box-shadow: inset 1px 1px 0 0 alpha(@fg_color, 0.1), inset 0 0 1px 1px alpha(@fg_color, 0.1); + border: 1px solid #1b1b1b; + color: #1b1717; +} + +.button:hover, +.button.default:hover, +.button.default:focus:hover{background: alpha (@fg_color, 0.2);} + +.button:focus { + box-shadow: inset 1px 1px 0 0 alpha(@menu_bg_color, 0.4), inset 0 0 1px 1px alpha(@menu_bg_color, 0.4); +} + +.button:active { color: alpha (@fg_color, 0.5); box-shadow: inset 1px 1px 0 0 alpha(@menu_bg_color, 0.4), inset 0 0 1px 1px alpha(@menu_bg_color, 0.4); +} +.button:active:focus{ + box-shadow: inset 1px 1px 0 0 alpha(@menu_bg_color, 0.4), inset 0 0 1px 1px alpha(@menu_bg_color, 0.4); +} +.button:active:hover:focus{} + +.button:active:hover { + background: alpha (@fg_color, 0.2); + color: @fg_color; +} + +.button:active:insensitive { + background-color:transparent; +} + + +/* Middle button */ +.primary-toolbar .linked .button{ + + +} + +/* Set up shadows and hilights for button visual separation */ +.linked .button, +.toolbar .button.raised.linked, +.toolbar .raised.linked .button, +.inline-toolbar.toolbar .button, +.inline-toolbar.toolbar GtkToolButton .button { + +} + +.linked .button:first-child, +.toolbar .button.raised.linked:first-child, +.toolbar .raised.linked .button:first-child, +.inline-toolbar.toolbar .button:first-child, +.inline-toolbar.toolbar GtkToolButton:first-child .button { + +} + +.linked .button:last-child, +.toolbar .button.raised.linked:last-child, +.toolbar .raised.linked .button:last-child, +.inline-toolbar.toolbar .button:last-child, +.inline-toolbar.toolbar GtkToolButton:last-child .button { + +} + +.linked .button:active, +.toolbar .button.raised.linked:active, +.toolbar .raised.linked .button:active, +.inline-toolbar.toolbar .button:active, +.inline-toolbar.toolbar GtkToolButton .button:active { + +} + +.linked .button:insensitive, +.toolbar .button.raised.linked:insensitive, +.toolbar .raised.linked .button:insensitive, +.inline-toolbar.toolbar .button:insensitive, +.inline-toolbar.toolbar GtkToolButton .button:insensitive { + +} + +.linked .button:backdrop, +.toolbar .button.raised.linked:backdrop, +.toolbar .raised.linked .button:backdrop, +.inline-toolbar.toolbar .button:backdrop, +.inline-toolbar.toolbar GtkToolButton .button:backdrop { + +} + +.linked .button:insensitive:backdrop, +.toolbar .button.raised.linked:insensitive:backdrop, +.toolbar .raised.linked .button:insensitive:backdrop, +.inline-toolbar.toolbar .button:insensitive:backdrop, +.inline-toolbar.toolbar GtkToolButton .button:insensitive:backdrop { + +} + + +/* Middle button */ +.linked .entry, +.linked .button, +.linked .button:active, +.linked .button:active:hover, +.linked .button:focus, +.linked .button:focus:active, +.linked .button:insensitive { + border:none; + border-bottom: 1px solid alpha(@fg_color, 0.2); + padding: 2px 10px; + box-shadow: inset 0 1px 0 0 alpha(@fg_color, 0.2), inset 0 -1px 0 0 alpha(@menu_bg_color, 0.4); + +} + +/* Leftmost button */ +.linked .entry:first-child, +.linked .button:first-child, +.linked .button:active:first-child, +.linked .button:active:hover:first-child, +.linked .button:focus:first-child, +.linked .button:focus:active:first-child, +.linked .button:insensitive:first-child { +box-shadow: inset 2px 1px 0 0 alpha(@fg_color, 0.2), inset -1px -1px 0 0 alpha(@menu_bg_color, 0.4); +} + +/* Rightmost button */ +.linked .entry:last-child, +.linked .button:last-child, +.linked .button:active:last-child, +.linked .button:active:hover:last-child, +.linked .button:focus:last-child, +.linked .button:focus:active:last-child, +.linked .button:insensitive:last-child { +box-shadow: inset 0 1px 0 0 alpha(@fg_color, 0.2), inset -2px -1px 0 0 alpha(@menu_bg_color, 0.4); +} + +/* Linked single button */ +.linked .entry:only-child, +.linked .button:only-child, +.linked .button:active:only-child, +.linked .button:active:hover:only-child, +.linked .button:focus:only-child, +.linked .button:focus:active:only-child, +.linked .button:insensitive:only-child { +} + +/* Set up shadows and hilights for button visual separation */ +.primary-toolbar .linked .button, +.primary-toolbar .button.raised.linked, +.primary-toolbar .raised.linked .button { + +} + +.primary-toolbar .linked .button:first-child, +.primary-toolbar .button.raised.linked:first-child, +.primary-toolbar .raised.linked .button:first-child { + +} + +.primary-toolbar .linked .button:last-child, +.primary-toolbar .button.raised.linked:last-child, +.primary-toolbar .raised.linked .button:last-child { + +} + +.primary-toolbar .linked .button:active, +.primary-toolbar .button.raised.linked:active, +.primary-toolbar .raised.linked .button:active { +box-shadow: inset 1px 1px 0 0 alpha(@menu_bg_color, 0.4), inset 0 0 1px 1px alpha(@menu_bg_color, 0.4); +} + +.primary-toolbar .linked .button:insensitive, +.primary-toolbar .button.raised.linked:insensitive, +.primary-toolbar .raised.linked .button:insensitive { + +} + +.primary-toolbar .linked .button:backdrop:last-child, +.primary-toolbar .button.raised.linked:backdrop:last-child, +.primary-toolbar .raised.linked .button:backdrop:last-child { + +} + +/*.primary-toolbar .linked .button:insensitive:backdrop, +.primary-toolbar .button.raised.linked:insensitive:backdrop, +.primary-toolbar .raised.linked .button:insensitive:backdrop { + box-shadow: inset -1px 0 @unfocused_insensitive_borders; +}*/ + + +/* Linked single button */ +.primary-toolbar .linked .entry:only-child, +.primary-toolbar .linked .button:only-child, +.primary-toolbar .linked .button:active:only-child, +.primary-toolbar .linked .button:active:hover:only-child, +.primary-toolbar .linked .button:insensitive:only-child { + +} + +/**************** + * cell and row * + ****************/ +.cell{ + -GtkCheckButton-indicator-size: 16; + -GtkWidget-focus-line-width: 0; + background-color: @base_color; + border-radius: 0; + border-width: 0; +} +.cell + +row:selected, +row:active, +row:selected:focused{ + background-color:@selected_bg_color; + color: @selected_fg_color; +} + +row:hover { + background-color:alpha(@fg_color, 0.2); +} + +row:insensitive, +row:backdrop{ + background-color:@backdrop_bg_color; +} + +row:selected:backdrop, +row:active:backdrop, +row:selected:focused:backdrop{ + background-color:alpha(@selected_bg_color,0.2); +} + + + +/******************* + * check and radio * + *******************/ +GtkCheckButton:hover, +GtkCheckButton:active:hover, +GtkCheckButton:selected, +GtkCheckButton:selected:focus { + background-color: transparent; +} + +.check, +.check:hover, +.check:active, +.check:active:hover, +.check:backdrop, +.check:backdrop:active, +.check:backdrop:insensitive, +.check:backdrop:insensitive:active, +.check:backdrop:inconsistent, +.check:backdrop:inconsistent:insensitive, +.check:insensitive, +.check:insensitive:active, +.check:inconsistent, +.check:inconsistent:hover, +.check:inconsistent:insensitive, +.check:inconsistent:insensitive:active, +.check row{ + background-image:url("assets/transparent.png"); + background-color:alpha(@fg_color,0.1); + background-position:left center; + background-repeat:no-repeat; + border:none; + box-shadow: 0 0 2px 3px alpha(@menu_bg_color, 0.7) inset, -1px -1px 0 0 alpha(@fg_color, 0.3) inset; + margin: 1px 0; +} +.check:active, +.check:active:hover{ + background-image:url("assets/check-active.png"); + background-color:alpha(@fg_color, 0.4); +} +.check:hover, +.check:inconsistent:hover { background-color:alpha(@fg_color, 0.4); } +.check:active:hover{ background-color:alpha(@fg_color, 0.4); } +.check:insensitive:active, +.check:backdrop:active, +.check:backdrop:insensitive:active{ + background-image:url("assets/check-disable.png"); + box-shadow: 0 0 2px 3px alpha(@menu_bg_color, 0.6) inset, -1px -1px 0 0 alpha(@fg_color, 0.1) inset; + background-color:alpha(@fg_color, 0.4); +} +.check:inconsistent, +.check:inconsistent:hover{ + background-image:url("assets/check-mixed.svg"); + background-color:alpha(@fg_color,0.1); + background-position:center center; +} +.check:inconsistent:hover{ + background-color:alpha(@fg_color, 0.4); +} +.check:inconsistent:insensitive, +.check:backdrop:inconsistent, +.check:backdrop:inconsistent:insensitive{ + background-image: url("assets/check-mixed-disable.svg"); + background-color:alpha(@fg_color,0.1); + background-position:center center; +} + +/*radio*/ +.radio, +.radio:hover, +.radio:active, +.radio:active:hover, +.radio:backdrop, +.radio:backdrop:active, +.radio:backdrop:insensitive, +.radio:backdrop:insensitive:active, +.radio:backdrop:inconsistent, +.radio:backdrop:inconsistent:insensitive, +.radio:insensitive, +.radio:insensitive:active, +.radio:inconsistent, +.radio:inconsistent:hover, +.radio:inconsistent:insensitive, +.radio:inconsistent:insensitive:active, +.radio row{ + background-color:alpha(@fg_color,0.1); + background-image:url("assets/transparent.png"); + background-position:center center; + background-repeat:no-repeat; + border:none; + box-shadow: 0 0 2px 3px alpha(@menu_bg_color, 0.7) inset, -1px -1px 0 0 alpha(@fg_color, 0.3) inset; + border-radius:50%; + margin: 1px 0; +} +.radio:active, +.radio:active:hover{ + background-image:url("assets/radio-active.png"); + background-color:alpha(@fg_color, 0.4); +} +.radio:hover, +.radio:inconsistent:hover{ + background-color:alpha(@fg_color, 0.4); +} +.radio:active:hover{ + background-color:alpha(@fg_color, 0.4); +} +.radio:insensitive:active, +.radio:backdrop:active, +.radio:backdrop:insensitive:active{ + background-image:url("assets/radio-disable.png"); + box-shadow: 0 0 2px 3px alpha(@menu_bg_color, 0.6) inset, -1px -1px 0 0 alpha(@fg_color, 0.1) inset; + background-color:alpha(@fg_color, 0.1); +} +.radio:inconsistent, +.radio:inconsistent:hover{ + background-image:url("assets/check-mixed.svg"); + background-color:alpha(@fg_color,0.1); +} +.radio:inconsistent:hover{ + background-color:alpha(@fg_color, 0.4); +} +.radio:inconsistent:insensitive, +.radio:backdrop:inconsistent, +.radio:backdrop:inconsistent:insensitive{ + background-image:url("assets/check-mixed-disable.svg"); + background-color:alpha(@fg_color,0.1); +} + +/*in menus*/ +.primary-toolbar .menu .check:active, +.toolbar .menu .check:active:hover, +.menu .check:active, +.menu .check:active:hover { + background-image: url("assets/check-menuitem.png"); + background-color:transparent; + box-shadow:none; +} +.toolbar .menu .check:active { + background-image: url("assets/check-menuitem-dark.png"); + background-color:transparent; + box-shadow:none; +} + +.primary-toolbar .menu .radio:active, +.toolbar .menu .radio:active:hover, +.menu .radio:active, +.menu .radio:active:hover { + background-image: url("assets/radio-menuitem.png"); + box-shadow:none; +} + +.toolbar .menu .radio:active { + background-image: url("assets/radio-menuitem-dark.png"); + background-color:transparent; + box-shadow:none; +} + + +.primary-toolbar .menu .check, +.menu .check, +.primary-toolbar .menu .radio, +.menu .radio, +.toolbar .menu .check, +.toolbar .menu .radio{ + background-image: url("assets/check-menuitem-unselected.png"); + background-color:transparent; + box-shadow:none; +} + + +/***************** + * column-header * + *****************/ +column-header .button, +column-header .button:hover, +column-header .button:active, +column-header .button:focus, +column-header .button:hover:focus, +column-header .button:active:focus, +column-header .button:active:hover:focus, +column-header:nth-child(last) .button, +column-header .button:backdrop, +column-header .button:hover:backdrop, +column-header .button:active:backdrop, +column-header .button:focus:backdrop, +column-header .button:hover:focus:backdrop, +column-header .button:active:focus:backdrop, +column-header .button:active:hover:focus:backdrop, +column-header:nth-child(last) .button:backdrop{ + background-image: -gtk-gradient (linear, 0 0, 0 1, from (#232323), to (alpha(@bg_color,1.1))); + border:none; + border-bottom: 1px solid alpha (@menu_bg_color, 0.4); + border-top: 1px solid alpha (@fg_color, 0.2); + border-right: 1px solid alpha (@fg_color, 0.2); + box-shadow: inset -1px 0 0 0 alpha(@menu_bg_color, 0.4); + text-shadow: 0 -1px 0 rgba(0,0,0,0.5); + padding: 5px 7px; + color: alpha (@fg_color, 0.7); +} +column-header .button:active, +column-header .button:focus, +column-header .button:active:focus, +column-header .button:active:hover:focus, +column-header .button:hover:focus, +column-header .button:focused{ + background:-gtk-gradient (linear, 0 0, 0 1, color-stop(0.84, transparent), color-stop(0.84, mix(@selected_bg_color,#000000,0.35)), color-stop(1, mix(@selected_bg_color,#000000,0.35))); + box-shadow: inset -1px 0 alpha(@fg_color, 0.07), + inset 0 -1px alpha(@fg_color, 0.07); + padding: 5px 6px; +} +column-header .button:hover, +column-header .button:active:hover, +column-header .button:focus:hover{ + background:mix(@selected_bg_color,#000000,0.35); border:none; + padding: 5px 6px; +} +column-header:nth-child(last) .button{ + border-right:0px; + box-shadow: inset 0 -1px alpha(@fg_color, 0.07); +} + + +/**************** + * Content view * + ****************/ +.content-view.view { + background-color: shade (@bg_color, 1.01); +} + +.content-view.view:prelight { + background-color: shade (@bg_color, 1.03); +} + +.content-view.view:selected, +.content-view.view:active { + /*background-color: @selected_bg_color;*/ +} + +.content-view.view:insensitive { + background-color: @bg_color; +} + +.content-view.view:backdrop { + background-color: @bg_color; +} + +.content-view.view:selected:backdrop { + background-color: @backdrop_selected_bg_color; +} + +GdMainIconView.content-view { + -GdMainIconView-icon-size: 40; +} + +GtkIconView.content-view.check { + /*background-image: url("assets/grid-selection-unchecked.svg");*/ + background-color: transparent; +} + +GtkIconView.content-view.check:active { + /*background-image: url("assets/grid-selection-checked.svg");*/ + background-color: transparent; +} + +.content-view.view.check, +.content-view.view.check:active { + background-color: transparent; +} + +GtkIconView.content-view.check:prelight, +GtkIconView.content-view.check:insensitive, +GtkIconView.content-view.check:backdrop, +GtkIconView.content-view.check:selected { + background-color: transparent; +} + +/**************** + * drawing area * + ****************/ +/* comment this out to fix applications like shotwell (LP: #931630) +GtkDrawingArea { + background-color: transparent; +} +*/ + +/********* + * entry * + *********/ +.entry, +.entry:backdrop, +.entry:focus, +.entry:selected, +.entry:selected:focus, +.entry:focus, +.entry:insensitive, +.entry:insensitive:backdrop, +.primary-toolbar .entry, +.primary-toolbar .entry:focus, +.primary-toolbar .entry.progressbar, +.primary-toolbar .entry.progressbar, +.entry.progressbar{ + -GtkWidget-focus-line-width: 0; + background:none; + box-shadow: 0 0 2px 3px alpha(@menu_bg_color, 0.7) inset, -1px -1px 0 0 alpha(@fg_color, 0.3) inset; + border: none; + border-radius:2px; + padding: 5px 7px; + color: @text_color; +} +.entry .button{background:none; border:none;} +.entry .button .image{ background:#DD1AA8; border:4px solid @fg_color; } + +.entry:selected, +.entry:selected:focus, +.entry:selected:focused{ + background-color:@selected_bg_color; + color: @selected_fg_color; +} + +.entry:focused, +.entry:active, +.primary-toolbar .entry:focus{ + background-color:transparent; + border-radius: 2px; + border-width:1px; + border: 1px solid alpha (@menu_bg_color, 0.5); + box-shadow: inset 1px 1px 0px 0px alpha(@fg_color, 0.5), inset 0px 0px 1px 1px alpha(@fg_color, 0.5); + color: alpha (@fg_color, 1.5); +} + + +.entry:insensitive{ + background-color: transparent; + background-image: none; + box-shadow: inset 1px 1px 0px 0px alpha(@menu_bg_color, 0.3), inset 0px 0px 1px 1px alpha(@menu_bg_color, 0.3); + text-shadow: 0px -1px 0px alpha(@fg_color, 0.4); + border:none; + color: alpha (@menu_bg_color, 0.5); +} + +.entry:insensitive:backdrop { + background-color:transparent; + border-image: url("assets/entry-insensitive.svg") 0 1 1 1 / 0 1 1 1 stretch; + color: mix (@text_color, @base_color, 0.4); +} + +.primary-toolbar .entry.progressbar, +.primary-toolbar .entry.progressbar, +.entry.progressbar { + background-image:none; + border-width: 0; + color: @selected_fg_color; +} + + +/***************** + * combobox * + *****************/ +/*arrow button*/ +GtkComboBox.combobox-entry .button *{-unico-arrow-texture: url("assets/combobox-arrow.svg");} +GtkComboBox.combobox-entry .button *:insensitive{-unico-arrow-texture: url("assets/combobox-arrow-disabled.svg");} +GtkComboBox .button *{-unico-arrow-texture:url("assets/transparent.png");} + +/*combobox button*/ +GtkComboBox .button, +GtkComboBox .button:backdrop, +GtkComboBox .button:insensitive, +GtkComboBox .button:hover, +GtkComboBox .button:active, +GtkComboBox .button:focus, +GtkComboBox .button:hover:focus{} + +GtkComboBox .button:hover{ + background: alpha (@fg_color, 0.2); +} +GtkComboBox .button:active, +GtkComboBox .button:focus{} + +GtkComboBox .button:insensitive{} + +GtkComboBox .separator { + -GtkWidget-wide-separators: true; + -GtkWidget-separator-width: 0; + -GtkWidget-separator-height: 0; + -GtkWidget-horizontal-separator: 0; + -GtkWidget-vertical-separator: 0; +} + + +/*combobox entry*/ +GtkComboBox.combobox-entry .entry, +GtkComboBox.combobox-entry .entry:last-child{ + background:none; + border-width:0 0 1px 1px; +} +GtkComboBox.combobox-entry .entry:insensitive{ +} + +GtkComboBox.combobox-entry .entry:focus, +GtkComboBox.combobox-entry:active .entry{ + border-width:0 0 2px 2px; +} + +GtkComboBox.combobox-entry .button, +GtkComboBox.combobox-entry .button:backdrop, +GtkComboBox.combobox-entry .button:last-child{ + background:none; + border-width:0 1px 1px 0; +} + +GtkComboBox.combobox-entry .button:insensitive, +GtkComboBox.combobox-entry .button:insensitive:backdrop{ + background:none; + border-width:0 1px 1px 0; +} + +GtkComboBox.combobox-entry .button:active{ + background:mix(@selected_bg_color,#000000,0.35); + border-width:0 1px 1px 0; + border-radius:0; + padding:4px 6px; +} + + +/************ + * expander * + ************/ +.expander { + color: @fg_color; +} + +/********* + * frame * + *********/ + +.frame, +.frame:backdrop{ + border-radius:2px; + border-width: 1px; + border-style: solid; + border-color: alpha (@menu_bg_color, 0.4); +} +.frame:backdrop{background-color:@backdrop_bg_color} +.frame GtkLabel{ color: alpha (@fg_color, 0.5); text-shadow:0 0 1px @bg_color; padding:1px 4px; } + +/************ + * iconview * + ************/ +GtkIconView.view.cell:hover{ + box-shadow:0 0 2px @selected_bg_color; +} +GtkIconView.view.cell:selected, +GtkIconView.view.cell:selected:focused { + background:alpha(@selected_bg_color,0.4); + border:none; + box-shadow:none; + border-radius:4px; + box-shadow:0 0 2px @selected_bg_color; +} + +.rubberband { + background-color: alpha (@selected_bg_color, 0.35); + border-color: @selected_bg_color; + border-radius: 0; + border-style: solid; + border-width: 1px; +} + + +/********* + * image * + *********/ +GtkImage, +GtkImage:backdrop, +GtkImage:insensitive, +GtkImage:insensitive:backdrop { + background-color: transparent; +} + + +/*********** + * infobar * + ***********/ +.info { + background:@menu_bg_color; + border:none; + color: @menu_fg_color; + box-shadow:none; +} +.warning { + background:@warning_bg_color; + border:none; + color: @warning_fg_color; + box-shadow:none; +} +.question { + background:@question_bg_color; + border:none; + color: @question_fg_color; + box-shadow:none; +} + +.error { + background:@error_bg_color; + border:none; + color:@error_fg_color; + box-shadow:none; +} + +/********* + * label * + *********/ +GtkLabel, +GtkLabel:backdrop, +GtkLabel:insensitive, +GtkLabel:insensitive:backdrop{ + background-color: transparent; +} + + +/******** + * menu * + ********/ +GtkTreeMenu.menu, +.toolbar .primary-toolbar .menu, +GtkMenuToolButton.menu, +.primary-toolbar .button .menu, +.menu, +.toolbar .menu, +GtkComboBox .menu { + background-color:@menu_bg_color; + border:none; + color: @menu_fg_color; + box-shadow: none; +} + +.menu:selected { + color: @selected_bg_color; + background-color: shade (@menu_bg_color, 1.2); +} + +.menu.button:hover, +.menu.button:active, +.menu.button:active:insensitive, +.menu.button:insensitive, +.menu.button +/*.primary-toolbar .menu.button:hover, +.primary-toolbar .menu.button:active, +.primary-toolbar .menu.button:active:insensitive, +.primary-toolbar .menu.button:insensitive, +.primary-toolbar .menu.button */ +{ + border:none; +} + + +/************ + * menuitem * + ************/ +.menuitem { + background-color:alpha(@selected_bg_color,0); + border-radius: 2px; + border-style: solid; + border-color:@dark_border_color; + border-width:0; + padding: 3px 2px 3px 2px; + text-shadow: none; + box-shadow: none; +} +.menuitem GtkLabel{text-shadow: 0 1px 0 rgba(0,0,0,0.8);} + +/* Workaround for lp:949368 */ +GtkComboBox .menuitem * { + color:@dark_fg_color; +} + +GtkComboBox .menuitem *:hover { + +} + +.menuitem:hover, +.menu .menuitem:hover { + /*background-color:@dark_h_color;*/ + background-color: @selected_bg_color; + color: @selected_fg_color; + transition: 404ms ease; +} + + +.menuitem.check:active, +.menuitem.radio:active { + color: @fg_color; +} + +.menu .menuitem.check:hover, +.menu .menuitem.radio:hover { + box-shadow: none; +} + +/*.menuitem:insensitive, +.menuitem *:insensitive { + color: mix (@fg_color, @bg_color, 0.5); + text-shadow: 0 1px shade (@bg_color, 1.14); +} +*/ + + +/*********** + * menubar * + ***********/ +.menubar { + -GtkWidget-window-dragging: true; + background: @menu_bg_color; + background-image: none; + border-width: 0; + color: @fg_color; + text-shadow: 0 -1px shade (@dark_bg_color, 0.6); +} + +.menubar:backdrop { + background:transparent; + color: @backdrop_dark_fg_color; + text-shadow: 0 -1px shade (@dark_bg_color, 0.8); +} + +/*************** + * menubaritem * + ***************/ +.menu >.menubar.menuitem, +.menubar >.menuitem{ + background-color:transparent; + box-shadow:none; + border:none; + padding: 3px 6px; +} + +.menu >.menubar.menuitem GtkLabel, +.menubar >.menuitem GtkLabel{text-shadow:none;} + +.menu >.menubar.menuitem:hover, +.menubar >.menuitem:hover { + background-image: -gtk-gradient (linear, 0 0, 0 1, + from (transparent), + to (alpha(@selected_bg_color,0.1))); + background-color: shade (@menu_bg_color, 1.2); + border-radius:4px 4px 0 0; + border-color:transparent; + border-width:0; + color: @selected_bg_color; + text-shadow: 0 -1px shade (@dark_bg_color, 0.7); + box-shadow:none; + transition: 150ms ease-in-out; +} + + +GtkTreeMenu.menu .menuitem:insensitive, +GtkTreeMenu.menu .menuitem *:insensitive, +.toolbar .primary-toolbar .menu .menuitem:insensitive, +.toolbar .primary-toolbar .menu .menuitem *:insensitive, +GtkMenuToolButton.menu .menuitem:insensitive, +GtkMenuToolButton.menu .menuitem *:insensitive, +.primary-toolbar .button .menu .menuitem:insensitive, +.primary-toolbar .button .menu .menuitem *:insensitive, +.menuitem:insensitive, +.menuitem *:insensitive { + color: mix (@dark_fg_color, @dark_bg_color, 0.5); + text-shadow: 0 -1px shade (@dark_bg_color, 0.6); +} + +.toolbar .menu .menuitem:insensitive, +.toolbar .menu .menuitem *:insensitive, +GtkComboBox .menu .menuitem:insensitive, +GtkComboBox .menu .menuitem *:insensitive { + color: mix (@fg_color, @bg_color, 0.5); + text-shadow: 0 1px shade (@bg_color, 1.14); +} + +.menuitem GtkCalendar, +.menuitem GtkCalendar.button, +.menuitem GtkCalendar.header, +.menuitem GtkCalendar.view { + background-color: @dark_bg_color; + background-image: none; + border-radius: 0; + border-style: solid; + border-width: 0; + padding: 0; + + color: @dark_fg_color; +} + +.menuitem GtkCalendar { + background-color: shade (@dark_bg_color, 1.3); + background-image: none; +} + +.menuitem .accelerator {color: alpha (@dark_fg_color, 0.5);} + +.menuitem .accelerator GtkLabel{text-shadow:none;} + +.menuitem .accelerator:insensitive { + color: alpha (mix (@dark_fg_color, @dark_bg_color, 0.5), 0.5); + text-shadow: 0 -1px shade (@dark_bg_color, 0.7); +} + +/************ + * notebook * + ************/ + +.notebook{ + background-color:shade(@bg_color, 1.20); + background-clip: border-box; + border-radius:2px; + border: 1px solid alpha (@menu_bg_color, 0.6); + -GtkNotebook-tab-overlap: -2px; +} +.notebook tab{ + box-shadow:none; + -unico-focus-border-color:transparent; + -unico-focus-fill-color:transparent; + -unico-focus-border-width:0; + border:none; +} +.notebook tab GtkLabel{background:none; border:none; padding: 0 7px; text-shadow: 0 1px 0 rgba(0,0,0,0.5);} + +.notebook tab.top { background: alpha (@menu_bg_color, 0.3); border: 1px solid alpha (@menu_bg_color, 0.3); box-shadow: inset -1px 1px 0 0 alpha(@fg_color, 0.1); padding: 4px 0; } + +.notebook tab.top:active { + background-image: -gtk-gradient(linear, left top, left bottom, from (shade(shade(@bg_color, 1.0), 1.3)),to (shade(shade(@bg_color, 1.20), 1.0))); box-shadow: inset -1px 1px 0 0 alpha(@fg_color, 0.2); border: 1px solid alpha (@menu_bg_color, 0.6); border-bottom: none; padding: 7px 0; } + +.notebook tab.right{ background: alpha (@menu_bg_color, 0.3); border: 1px solid alpha (@menu_bg_color, 0.3); border-left:none; box-shadow: inset -1px 1px 0 0 alpha(@fg_color, 0.1); padding: 4px 0; } + +.notebook tab.right:active { background-image: -gtk-gradient(linear, right top, left top, from (shade(shade(@bg_color, 1.0), 1.3)),to (shade(shade(@bg_color, 1.20), 1.0))); background-clip: border-box; padding:8px 0; border: 1px solid alpha (@menu_bg_color, 0.6); box-shadow: inset -1px 1px 0 0 alpha(@fg_color, 0.2); border-left:none; } + +.notebook tab.bottom{ background: alpha (@menu_bg_color, 0.3); border: 1px solid alpha (@menu_bg_color, 0.3); box-shadow: inset -1px -1px 0 0 alpha(@fg_color, 0.1); padding: 4px 0;} + +.notebook tab.bottom:active {background-image: -gtk-gradient(linear, left bottom, left top, from (shade(shade(@bg_color, 1.0), 1.3)),to (shade(shade(@bg_color, 1.20), 1.0))); background-clip: border-box; border: 1px solid alpha (@menu_bg_color, 0.6); box-shadow: inset -1px -1px 0 0 alpha(@fg_color, 0.2); padding: 7px 0; border-top:none; } + +.notebook tab.left{background: alpha (@menu_bg_color, 0.3); border: 1px solid alpha (@menu_bg_color, 0.3); box-shadow: inset 1px 1px 0 0 alpha(@fg_color, 0.1); padding: 4px 0; } + +.notebook tab.left:active {background-image: -gtk-gradient(linear, left bottom, right bottom, from (shade(shade(@bg_color, 1.0), 1.3)),to (shade(shade(@bg_color, 1.20), 1.0))); background-clip: border-box; border: 1px solid alpha (@menu_bg_color, 0.6); box-shadow: inset 1px 1px 0 0 alpha(@fg_color, 0.2); padding: 7px 0; border-right:none; } + +.notebook tab .button{ + background-color:@bg_color; +} +.notebook:backdrop, +.notebook tab:backdrop{ + background-color:@backdrop_bg_color; +} + +/****************** + * pane separator * + ******************/ +.sidebar .pane-separator.horizontal, +.pane-separator.horizontal{ + background-image:url("assets/bg-sep-v.png"); + background-position:center center; + background-repeat:no-repeat; +} + +.sidebar .pane-separator.vertical, +.pane-separator.vertical{ + background-image:url("assets/bg-sep-h.png"); + background-position:center center; + background-repeat:no-repeat; +} + +/************************* + * progressbar and scale * + *************************/ +GtkProgressBar { + padding: 1px; + background:none; +} + + +.trough, +.trough row, +.trough row:hover, +.trough row:selected, +.trough row:selected:focused { + background-image:url("assets/trough.svg"); + background-position:right center; + background-repeat: no-repeat; + text-shadow:0 0 1px #000000; +} + +.trough.vertical { + background-image:url("assets/trough-v.svg"); + background-position:center top; +} + + +.progressbar, +.progressbar row, +.progressbar row:hover, +.progressbar row:selected, +.progressbar row:selected:focused { + background-image:url("assets/progressbar.svg"); + background-position:right center; + background-repeat:no-repeat; + box-shadow:none; +} + +.progressbar:backdrop, +.progressbar row:backdrop, +.progressbar row:hover:backdrop, +.progressbar row:selected:backdrop, +.progressbar row:selected:focused:backdrop, +.scale.highlight.bottom:backdrop{ + background-image:url("assets/progressbar-disable.svg"); +} + +.progressbar.vertical{ + background-image:url("assets/progressbar-v.svg"); + background-position:center top; +} + +.progressbar.vertical:backdrop{ + background-image:url("assets/progressbar-v-disable.svg"); +} + + + +/* level bars as used for password quality or remaining power */ + +GtkLevelBar { + -GtkLevelBar-min-block-width: 34; + -GtkLevelBar-min-block-height: 10; +} + +GtkLevelBar.vertical { + -GtkLevelBar-min-block-width: 10; + -GtkLevelBar-min-block-height: 34; +} + +.level-bar.trough { + background:none; + +} + +.level-bar.fill-block { + background-image:url("assets/progressbar.svg"); + background-position:right center; + background-repeat:no-repeat; + background-color:transparent; +} + +.level-bar.indicator-continuous.fill-block { + +} + +.level-bar.fill-block:backdrop, +.level-bar.fill-block.level-high:backdrop, +.level-bar.fill-block.level-low:backdrop { + background-image:url("assets/progressbar-disable.svg"); + background-position:right center; + background-repeat:no-repeat; +} + + +.level-bar.indicator-discrete.fill-block.horizontal { + margin: 0 2px; +} + +.level-bar.indicator-discrete.fill-block.vertical { + margin: 2px 0; +} + +/* discrete indicator border rounding, + uncomment when :nth-child will be working + on the widget + + +.level-bar.indicator-discrete.fill-block.horizontal:first-child { + border-radius: 2px 0 0 2px; + background: #2CDEC6; +} + +.level-bar.indicator-discrete.fill-block.horizontal:last-child { + border-radius: 0 2px 2px 0; + background: #2CDEC6; +} + +.level-bar.indicator-discrete.fill-block.vertical:first-child { + border-radius: 2px 2px 0 0; + background: #2CDEC6; +} + +.level-bar.indicator-discrete.fill-block.vertical:last-child { + border-radius: 0 0 2px 2px; + background: #2CDEC6; +} +*/ + + +.level-bar.fill-block.level-high { + background:@selected_bg_color; + border-top:4px solid @bg_color; + border-bottom:4px solid @bg_color; +} + +.level-bar.fill-block.level-high:backdrop { + background:alpha(@fg_color,0.5); + border-top:4px solid @backdrop_bg_color; + border-bottom:4px solid @backdrop_bg_color; +} +.level-bar.fill-block.level-low { + +} + +.level-bar.fill-block.empty-fill-block { + background:alpha(@fg_color,0.1); + border-top:4px solid @bg_color; + border-bottom:4px solid @bg_color; +} + +.level-bar.fill-block.empty-fill-block:backdrop { + background:alpha(@fg_color,0.1); + border-top:4px solid @backdrop_bg_color; + border-bottom:4px solid @backdrop_bg_color; +} + +GtkScale { + -GtkRange-slider-width: 28; + -GtkRange-trough-border: 0; + -GtkScale-slider-length: 28; + -GtkWidget-focus-line-width: 0; +} + +.scale.slider, +.scale.slider.horizontal, +.scale.slider:hover, +.scale.slider:focus, +.scale.slider:focus:hover, +.scale.slider:focused, +.scale.slider:backdrop{ + background:url("assets/scale-slider.png"); + border:none; + border-radius:0; + box-shadow:none; + padding:0; + +} +.scale.slider:focus, +.scale.slider:focused{ + background:url("assets/scale-slider-focus.png"); +} +.scale.slider:hover, +.scale.slider:focus:hover{ + background:url("assets/scale-slider-hover.png"); +} +.scale.slider:backdrop, +.scale.slider.horizontal:backdrop, +.scale.slider:insensitive, +.scale.slider.horizontal:insensitive{ + background:url("assets/scale-slider-disable.png"); +} + +.scale.trough, +.scale.trough:backdrop, +.scale.trough:insensitive, +.primary-toolbar GtkScale.trough, +.primary-toolbar GtkScale.trough:backdrop, +.menuitem GtkScale.trough{ + background-clip: content-box; + background:none; + border:none; + padding:0; + box-shadow:none; + border-radius:0; + margin:12px 0 11px 0; + border-width:2px 8px 3px 0; + border-image: url("assets/scale-trough.png") 2 8 3 0 / 2px 8px 3px 0px stretch; +} + +.scale.trough.highlight.left, +.scale.trough.highlight.left:backdrop, +.scale.trough.highlight.left:insensitive{ + background:none; + border:none; + padding:0; + box-shadow:none; + border-radius:0; + border-width:2px 0 3px 8px; + border-image: url("assets/scale-trough-highlight-left.png") 2 0 3 8 / 2px 0 3px 8px stretch; +} +.scale.trough.highlight.left:insensitive{ + border-image: url("assets/scale-trough-disable.png") 2 0 3 8 / 2px 0 3px 8px stretch; +} + +GtkScale.vertical { + -GtkScale-slider-length: 28; +} +.scale.trough.vertical, +.scale.trough.vertical:backdrop, +.scale.trough.vertical:insensitive{ + background-clip: content-box; + background:none; + border:none; + padding:0; + box-shadow:none; + border-radius:0; + margin:0 12px 0 11px; + border-width:9px 2px 0 3px; + border-image: url("assets/scale-trough-v.png") 9 2 0 3 / 9px 2px 0 3px stretch; +} + +.scale.trough.highlight.bottom.vertical, +.scale.trough.highlight.bottom.vertical:backdrop, +.scale.trough.highlight.bottom.vertical:insensitive{ + background:none; + border:none; + padding:0; + box-shadow:none; + border-radius:0; + border-width:0 2px 9px 3px; + border-image: url("assets/scale-trough-highlight-left-v.png") 0 2 9 3 / 0 2px 9px 3px stretch; +} +.scale.trough.highlight.bottom.vertical:insensitive{ + border-image: url("assets/scale-trough-disable-v.png") 0 2 9 3 / 0 2px 9px 3px stretch; +} +GtkScale.mark { + border-color: shade (@bg_color, 0.8); + +} + +/************* + * scrollbar * + *************/ +.scrollbar, +.scrollbar.vertical { + -GtkScrollbar-has-backward-stepper: 0; + -GtkScrollbar-has-forward-stepper: 0; + -GtkRange-slider-width: 8; + background-image:none; + background-color:@bg_color; + border-radius: 4px; +} + +.scrollbar.trough, +.scrollbar.trough.vertical { + +} + +.scrollbar.trough.horizontal { +} + +.scrollbar.slider, +.scrollbar.button, +.scrollbar.slider.vertical, +.scrollbar.button.vertical { + background-color: alpha (@menu_bg_color, 0.7); + box-shadow: 1px 1px 0 0 alpha(@fg_color, 0.1) inset, + -1px 0 0 0 alpha(@fg_color, 0.05) inset; + border: 1px solid alpha (@menu_bg_color, 0.9); +} + +.scrollbar.slider:hover, .scrollbar.slider.vertical:hover, .scrollbar.slider.horizontal:hover { background-color: @bg_color; } + +.scrollbar.slider.horizontal, +.scrollbar.button.horizontal { + background-color: alpha (@menu_bg_color, 0.7); + box-shadow: -1px 1px 0 0 alpha(@fg_color, 0.1) inset, + 0 -1px 0 0 alpha(@fg_color, 0.05) inset; + border: 1px solid alpha (@menu_bg_color, 0.9); +} + +.scrollbar.button, +.scrollbar.button:insensitive { + +} + +/* overlay scrollbar */ +OsThumb { + color: shade (@fg_color, 1.6); +} + +OsThumb:selected, +GtkScrollbar:selected, +OsThumb.vertical:selected, +GtkScrollbar.vertical:selected{ + background-color: @selected_bg_color; + border-radius:4px; +} + +OsThumb:active, +GtkScrollbar:active { + background-color: shade (@bg_color, 0.6); +} + +OsThumb:insensitive, +GtkScrollbar:insensitive { + background-color: shade (@bg_color, 0.85); +} + +/******************* + * scrolled window * + *******************/ +.ubuntu-online-accounts.frame, +GtkScrolledWindow.frame { + +} + +.ubuntu-online-accounts.frame { + +} + +/************* + * separator * + *************/ +.separator { + border-width: 1px 0 1px 0; + border-image: url("assets/bg-sep-h.png") 1 0 1 0/1px 0 1px 0 stretch; +} + +GtkTreeView.view.separator, +GtkTreeView.separator, +.separator, +.separator:hover { + color: shade (@bg_color, 0.92); +} + + +.separator.vertical { + border-width: 0 1px 0 1px; + border-image: url("assets/bg-sep-v.png") 0 1 0 1/0 1px 0 1px stretch; +} + +GtkComboBox .separator { + -GtkWidget-wide-separators: true; + -GtkWidget-horizontal-separator: 0; + -GtkWidget-vertical-separator: 0; +} + +.button .separator, +.button.separator { + +} + +.button .separator:insensitive, +.button.separator:insensitive { + +} + +GtkTreeMenu .menuitem.separator, +.toolbar .primary-toolbar .menuitem.separator, +GtkMenuToolButton .menuitem.separator, +.primary-toolbar .button .menuitem.separator, +.menuitem.separator { + -GtkWidget-separator-width: 0; + -GtkWidget-separator-height: 3; + -GtkMenuItem-horizontal-padding: 0; + border:none; + border-top:2px solid rgba(0,0,0,0.1); + border-bottom:1px solid rgba(255,255,255,0.03); + padding:0; +} + + +.toolbar .menuitem.separator, +GtkComboBox .menuitem.separator { + +} + + +/*view*/ +.view:backdrop{background-color:@backdrop_bg_color;} + +/*********** + * sidebar * + ***********/ +.sidebar, +.sidebar .view { + background-image:none; + background-position:right top; + background-repeat:no-repeat; +} + +.sidebar row:selected { + +} + +.sidebar .frame { + border-width: 0; +} + +/************** + * spinbutton * + **************/ +.spinbutton.button:active, +.spinbutton.button:insensitive, +.spinbutton.button { + border-radius: 0; +} + +.spinbutton.button:active:nth-child(last), +.spinbutton.button:insensitive:nth-child(last) +.spinbutton.button:nth-child(last), +.spinbutton.button:active:backdrop:nth-child(last), +.spinbutton.button:insensitive:backdrop:nth-child(last), +.spinbutton.button:backdrop:nth-child(last) { + border-radius: 0 7px 7px 0; +} + +.spinbutton.button, +.spinbutton.button:active, +.spinbutton.button:backdrop, +.spinbutton.button:active:backdrop, +.spinbutton.button:hover, +.spinbutton.button:hover:backdrop { + background-image: none; + background-color: transparent; + border-image: none; + border-width: 0 0 0 1px; + border-left-color: alpha (shade (@bg_color, 0.6), 0.22); +} + +.spinbutton.button:active { + background-image: -gtk-gradient (radial, center center, 0.0, center center, 0.5, + from (alpha (@selected_bg_color, 0.2)), + to (alpha (@selected_bg_color, 0.0))); +} + +.spinbutton.button:insensitive, +.spinbutton.button:insensitive:backdrop { + border-left-color: alpha (shade (@bg_color, 0.6), 0.18); + + color: shade (@bg_color, 0.66); +} + +.spinbutton, +.spinbutton:hover { + color: @fg_color; +} + +/*********** + * spinner * + ***********/ +@keyframes spinner { + 0.00% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)); } + + 12.5% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)); } + + 25.0% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)); } + + 37.5% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)); } + + 50.0% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)); } + + 62.5% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)); } + + 75.0% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)); } + + 87.5% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)); } + + 100% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)); } +} + +.spinner { + background-color: transparent; + background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)), + -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)); + background-position: 14% 14%, 0% 50%, 14% 86%, 50% 100%, 86% 86%, 100% 50%, 86% 14%, 50% 0%; + background-size: 20% 20%; + background-repeat: no-repeat; +} + +.menu.spinner, +.primary-toolbar .spinner, +.primary-toolbar .spinner { + color: @selected_bg_color; +} + +.spinner:active { + animation: spinner 1s infinite linear; +} + +/************* + * statusbar * + *************/ +GtkStatusbar { +} + +/********** + * switch * + **********/ +GtkSwitch { + border-radius: 0; + padding: 0; + background:none; + -GtkRange-slider-width: 27; + -GtkRange-trough-border: 0; + -GtkScale-slider-length: 27; + -GtkWidget-focus-line-width: 0; + + +} + +GtkSwitch.trough, +GtkSwitch.trough:active, +GtkSwitch.trough:backdrop, +GtkSwitch.trough:active:backdrop{ + background:alpha(@fg_color,0.1); + border:none; + box-shadow: 0 0 2px 3px alpha(@menu_bg_color, 0.7) inset, -1px -1px 0 0 alpha(@fg_color, 0.3) inset; + border-radius:18px; +} +GtkSwitch.trough:insensitive, +GtkSwitch.trough:active:insensitive{ + background:alpha(@fg_color,0.05); + border:none; + box-shadow: 0 0 2px 3px alpha(@menu_bg_color, 0.3) inset, -1px -1px 0 0 alpha(@fg_color, 0.1) inset; + border-radius:18px; +} +GtkSwitch.trough:active{ + background:alpha(@fg_color, 0.4); +} + +GtkSwitch.slider, +GtkSwitch.slider:active, +GtkSwitch.slider:backdrop, +GtkSwitch.slider:active:insensitive, +GtkSwitch.slider:insensitive{ + padding:1px; + margin:0; + border-radius:0; + border:none; + background:@transparent url("assets/switch-off.png") center center no-repeat; +} + + +GtkSwitch.slider:active { + background-image:url("assets/switch-on.png"); +} + +GtkSwitch *{-GtkCheckButton-indicator-size: 27} + + + +/************ + * textview * + ************/ +GtkTextView { + background-color: @base_color; +} + +/*********** + * toolbar * + ***********/ +.toolbar { + padding-bottom:1px; +} + +.toolbar:backdrop { + color: @backdrop_fg_color; + background-color:@backdrop_bg_color; +} + + +/* primary-toolbar */ +.primary-toolbar{ + background-image: url("assets/toolbar.png"); + background-position:left bottom; + background-repeat:repeat-x; + padding: 2px 2px 5px 2px; +} +.primary-toolbar, +.primary-toolbar .toolbar, +.primary-toolbar.toolbar { + -GtkWidget-window-dragging: true; +} +.primary-toolbar .toolbar + +.primary-toolbar .toolbar:backdrop, +.primary-toolbar.toolbar:backdrop { + +} + +.primary-toolbar :insensitive { + text-shadow: 0 -1px shade (@dark_bg_color, 0.7); +} + +.primary-toolbar GtkComboBox, +.primary-toolbar .button { + +} + +.primary-toolbar GtkComboBox:backdrop, +.primary-toolbar .button:backdrop { + color: @backdrop_dark_fg_color; + text-shadow: 0 -1px shade (@dark_bg_color, 0.9); +} + +.primary-toolbar .raised .button, +.primary-toolbar .raised.button, +.primary-toolbar .button:hover, +.primary-toolbar .button:active, +.primary-toolbar .button:insensitive { + +} + +.primary-toolbar .raised .button:focus, +.primary-toolbar .raised.button:focus, +.primary-toolbar .button:hover:focus, +.primary-toolbar .button:active:focus, +.primary-toolbar .button:insensitive:focus { +} + +.primary-toolbar GtkComboBox.combobox-entry .button { +} + +.primary-toolbar GtkComboBox.combobox-entry .button, +.primary-toolbar .raised .button, +.primary-toolbar .raised.button, +.primary-toolbar .button:hover { + +} + +.primary-toolbar .button:active { + +} + +.primary-toolbar .button:active:hover { + +} + +.primary-toolbar .button:active:insensitive, +.primary-toolbar .button:insensitive { + text-shadow: none; +} + +.primary-toolbar .button:insensitive { + +} + +.primary-toolbar .button:active:insensitive { + +} + +.primary-toolbar .entry, +.primary-toolbar .entry:active, +.primary-toolbar .entry:focused { + + +} + +.primary-toolbar GtkSeparatorToolItem, +.primary-toolbar .separator, +.primary-toolbar .separator:insensitive { + border-width: 0 1px 0 1px; + border-image: url("assets/bg-sep-v.png") 0 1 0 1 stretch; +} + +/* inline-toolbar */ +.inline-toolbar.toolbar { + -GtkToolbar-button-relief: normal; + padding: 3px 4px 4px 4px; +} + +.inline-toolbar.toolbar .button { + icon-shadow: 0 1px shade (@bg_color, 1.16); +} + +.inline-toolbar.toolbar .button *:insensitive, +.inline-toolbar.toolbar GtkToolButton .button:insensitive { +} + +/* Middle button */ +.primary-toolbar .button.raised.linked, +.primary-toolbar .button.raised.linked:active, +.primary-toolbar .button.raised.linked:focus, +.primary-toolbar .button.raised.linked:focus:active, +.primary-toolbar .button.raised.linked:insensitive, +.primary-toolbar .button.raised.linked:backdrop, +.primary-toolbar .raised.linked .button, +.primary-toolbar .raised.linked .button:active, +.primary-toolbar .raised.linked .button:focus, +.primary-toolbar .raised.linked .button:focus:active, +.primary-toolbar .raised.linked .button:insensitive, +.primary-toolbar .raised.linked .button:backdrop, +.inline-toolbar.toolbar .button, +.inline-toolbar.toolbar .button:active, +.inline-toolbar.toolbar .button:focus, +.inline-toolbar.toolbar .button:focus:active, +.inline-toolbar.toolbar .button:insensitive, +.inline-toolbar.toolbar .button:backdrop, +.inline-toolbar.toolbar .button:backdrop:insensitive, +.inline-toolbar.toolbar GtkToolButton .button, +.inline-toolbar.toolbar GtkToolButton .button:active, +.inline-toolbar.toolbar GtkToolButton .button:focus, +.inline-toolbar.toolbar GtkToolButton .button:focus:active, +.inline-toolbar.toolbar GtkToolButton .button:insensitive, +.inline-toolbar.toolbar GtkToolButton .button:backdrop, +.inline-toolbar.toolbar GtkToolButton .button:backdrop:insensitive { + + +} + +/* Leftmost button */ +.primary-toolbar .button.raised.linked:first-child, +.primary-toolbar .button.raised.linked:active:first-child, +.primary-toolbar .button.raised.linked:focus:first-child, +.primary-toolbar .button.raised.linked:focus:active:first-child, +.primary-toolbar .button.raised.linked:insensitive:first-child, +.primary-toolbar .button.raised.linked:backdrop:first-child, +.primary-toolbar .raised.linked .button:first-child, +.primary-toolbar .raised.linked .button:active:first-child, +.primary-toolbar .raised.linked .button:focus:first-child, +.primary-toolbar .raised.linked .button:focus:active:first-child, +.primary-toolbar .raised.linked .button:insensitive:first-child, +.primary-toolbar .raised.linked .button:backdrop:first-child, +.inline-toolbar.toolbar .button:first-child, +.inline-toolbar.toolbar .button:active:first-child, +.inline-toolbar.toolbar .button:focus:first-child, +.inline-toolbar.toolbar .button:focus:active:first-child, +.inline-toolbar.toolbar .button:insensitive:first-child, +.inline-toolbar.toolbar .button:backdrop:first-child, +.inline-toolbar.toolbar .button:backdrop:insensitive:first-child, +.inline-toolbar.toolbar GtkToolButton:first-child .button, +.inline-toolbar.toolbar GtkToolButton:first-child .button:active, +.inline-toolbar.toolbar GtkToolButton:first-child .button:focus, +.inline-toolbar.toolbar GtkToolButton:first-child .button:focus:active, +.inline-toolbar.toolbar GtkToolButton:first-child .button:insensitive, +.inline-toolbar.toolbar GtkToolButton:first-child .button:backdrop, +.inline-toolbar.toolbar GtkToolButton:first-child .button:backdrop:insensitive { + +} + +/* Rightmost button */ +.primary-toolbar .button.raised.linked:last-child, +.primary-toolbar .button.raised.linked:active:last-child, +.primary-toolbar .button.raised.linked:focus:last-child, +.primary-toolbar .button.raised.linked:focus:active:last-child, +.primary-toolbar .button.raised.linked:insensitive:last-child, +.primary-toolbar .button.raised.linked:backdrop:last-child, +.primary-toolbar .raised.linked .button:last-child, +.primary-toolbar .raised.linked .button:active:last-child, +.primary-toolbar .raised.linked .button:focus:last-child, +.primary-toolbar .raised.linked .button:focus:active:last-child, +.primary-toolbar .raised.linked .button:insensitive:last-child, +.primary-toolbar .raised.linked .button:backdrop:last-child, +.inline-toolbar.toolbar .button:last-child, +.inline-toolbar.toolbar .button:active:last-child, +.inline-toolbar.toolbar .button:focus:last-child, +.inline-toolbar.toolbar .button:focus:active:last-child, +.inline-toolbar.toolbar .button:insensitive:last-child, +.inline-toolbar.toolbar .button:backdrop:last-child, +.inline-toolbar.toolbar .button:backdrop:insensitive:last-child, +.inline-toolbar.toolbar GtkToolButton:last-child .button, +.inline-toolbar.toolbar GtkToolButton:last-child .button:active, +.inline-toolbar.toolbar GtkToolButton:last-child .button:focus, +.inline-toolbar.toolbar GtkToolButton:last-child .button:focus:active, +.inline-toolbar.toolbar GtkToolButton:last-child .button:insensitive, +.inline-toolbar.toolbar GtkToolButton:last-child .button:backdrop, +.inline-toolbar.toolbar GtkToolButton:last-child .button:backdrop:insensitive { + +} + +/* Single button */ +.primary-toolbar.toolbar .button:only-child, +.primary-toolbar.toolbar .button:active:only-child, +.primary-toolbar.toolbar .button:focus:only-child, +.primary-toolbar.toolbar .button:focus:active:only-child, +.primary-toolbar.toolbar .button:insensitive:only-child, +.primary-toolbar.toolbar .button:backdrop:only-child, +.primary-toolbar.toolbar .button:backdrop:insensitive:only-child, +.primary-toolbar.toolbar GtkToolButton:only-child .button, +.primary-toolbar.toolbar GtkToolButton:only-child .button:active, +.primary-toolbar.toolbar GtkToolButton:only-child .button:focus, +.primary-toolbar.toolbar GtkToolButton:only-child .button:focus:active, +.primary-toolbar.toolbar GtkToolButton:only-child .button:insensitive, +.primary-toolbar.toolbar GtkToolButton:only-child .button:backdrop, +.primary-toolbar.toolbar GtkToolButton:only-child .button:backdrop:insensitive, +.inline-toolbar.toolbar .button:only-child, +.inline-toolbar.toolbar .button:active:only-child, +.inline-toolbar.toolbar .button:focus:only-child, +.inline-toolbar.toolbar .button:focus:active:only-child, +.inline-toolbar.toolbar .button:insensitive:only-child, +.inline-toolbar.toolbar .button:backdrop:only-child, +.inline-toolbar.toolbar .button:backdrop:insensitive:only-child, +.inline-toolbar.toolbar GtkToolButton:only-child .button, +.inline-toolbar.toolbar GtkToolButton:only-child .button:active, +.inline-toolbar.toolbar GtkToolButton:only-child .button:focus, +.inline-toolbar.toolbar GtkToolButton:only-child .button:focus:active, +.inline-toolbar.toolbar GtkToolButton:only-child .button:insensitive, +.inline-toolbar.toolbar GtkToolButton:only-child .button:backdrop, +.inline-toolbar.toolbar GtkToolButton:only-child .button:backdrop:insensitive { + background-image:url("assets/metal.png"); + background-position:center center; + border-width:4px; + border-image: url("assets/button.png") 6 4 4 4 / 6px 4px 4px 4px stretch; + border-radius:0px; +} + + + + +/*********** + * tooltip * + ***********/ +.tooltip { + background-color: @menu_bg_color; + border-color:shade(@dark_bg_color, 0.6); + border-radius: 4px; + border-style: solid; + border-width: 1px; + color: @menu_fg_color; +} + +.tooltip * { + background-color: transparent; +} + +/************ + * treeview * + ************/ +GtkTreeView.dnd { + border-color: shade (@selected_bg_color, 1.12); + border-radius: 2px; + border-width: 1px; + border-style: solid; +} + +GtkTreeView .entry { + background-image: none; + /*border-radius: 0;*/ +} + +GtkTreeView row:nth-child(even){ + background-color:shade (@base_color, 0.965); +} + +GtkTreeView row:nth-child(even):hover, +GtkTreeView row:nth-child(odd):hover{ + background-color:alpha(@selected_bg_color,0.2); +} + +GtkTreeView row:nth-child(odd):backdrop{ + background-color:@backdrop_bg_color; +} +GtkTreeView row:nth-child(even):backdrop{ + background-color:shade (@backdrop_bg_color, 0.965); +} +GtkTreeView row:nth-child(even):backdrop:hover, +GtkTreeView row:nth-child(odd):backdrop:hover{ + background-color:alpha(@selected_bg_color,0.1); +} +/************ + * viewport * + ************/ +GtkViewport.frame, +GtkViewport.frame:backdrop { + border-width: 0; + padding:5px; + border:none; +} + + +/*************** + * Resize grip * + ***************/ +.grip { + background-color: transparent; + /*background-image: url("assets/resize-grip.svg");*/ +} + + + + diff --git a/themes/.themes/cathexis/gtk-3.0/gtk.css b/themes/.themes/cathexis/gtk-3.0/gtk.css new file mode 100755 index 0000000..98e8cfe --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/gtk.css @@ -0,0 +1 @@ +@import url("gtk-main.css"); \ No newline at end of file diff --git a/themes/.themes/cathexis/gtk-3.0/settings.ini b/themes/.themes/cathexis/gtk-3.0/settings.ini new file mode 100755 index 0000000..ee9ea90 --- /dev/null +++ b/themes/.themes/cathexis/gtk-3.0/settings.ini @@ -0,0 +1,3 @@ +[Settings] +gtk-color-scheme = "base_color:#404040\nbg_color:#404040\ntooltip_bg_color:#404040\nselected_bg_color:#33b5e5\ntext_color:#EFEFEF\nfg_color:#EFEFEF\ntooltip_fg_color:#EFEFEF\nselected_fg_color:#EFEFEF\nlink_color:#0099cc\nbg_color_dark:#404040\nfg_color_dark:#EFEFEF" +gtk-auto-mnemonics = 1 diff --git a/themes/.themes/cathexis/index.theme b/themes/.themes/cathexis/index.theme new file mode 100755 index 0000000..694d6b2 --- /dev/null +++ b/themes/.themes/cathexis/index.theme @@ -0,0 +1,12 @@ +[Desktop Entry] +Type=X-GNOME-Metatheme +Name=cathexis +Comment=Simple, minimal, distraction free foundation for building your desktop experience... +Encoding=UTF-8 + +[X-GNOME-Metatheme] +GtkTheme=cathexis +MetacityTheme=cathexis +IconTheme=clarity +CursorTheme=DMZ-White +ButtonLayout=close,minimize,maximize: diff --git a/themes/.themes/cathexis/xfce-notify-4.0/gtkrc b/themes/.themes/cathexis/xfce-notify-4.0/gtkrc new file mode 100644 index 0000000..cc25c33 --- /dev/null +++ b/themes/.themes/cathexis/xfce-notify-4.0/gtkrc @@ -0,0 +1,23 @@ +style "cathexis-window" +{ + bg[NORMAL] = "#222222" + XfceNotifyWindow::border-color = "#222222" + XfceNotifyWindow::border-radius = 1 + XfceNotifyWindow::border-width = 1 +} +class "XfceNotifyWindow" style "cathexis-window" + +style "cathexis-text" +{ + font_name = "GohuFont 11" + fg[NORMAL] = "#ffffff" + GtkWidget::link-color = "#222222" +} +widget_class "XfceNotifyWindow.*." style "cathexis-text" + +style "cathexis-btn" +{ + bg[NORMAL] = "#222222" + bg[PRELIGHT] = "#272822" +} +widget "XfceNotifyWindow.*.GtkButton" style "cathexis-btn" \ No newline at end of file diff --git a/urxvt/.Xdefaults b/urxvt/.Xdefaults new file mode 100644 index 0000000..db601b6 --- /dev/null +++ b/urxvt/.Xdefaults @@ -0,0 +1,61 @@ +! ██ ██ ██ ████ ██ ██ +! ░░██ ██ ░██ ░██░ ░██ ░██ +! ░░██ ██ ░██ █████ ██████ ██████ ██ ██ ░██ ██████ ██████ +! ░░███ ██████ ██░░░██░░░██░ ░░░░░░██ ░██ ░██ ░██░░░██░ ██░░░░ +! ██░██ ██░░░██░███████ ░██ ███████ ░██ ░██ ░██ ░██ ░░█████ +! ██ ░░██ ░██ ░██░██░░░░ ░██ ██░░░░██ ░██ ░██ ░██ ░██ ░░░░░██ +! ██ ░░██░░██████░░██████ ░██ ░░████████░░██████ ███ ░░██ ██████ +! ░░ ░░ ░░░░░░ ░░░░░░ ░░ ░░░░░░░░ ░░░░░░ ░░░ ░░ ░░░░░░ +! +! ▓▓▓▓▓▓▓▓▓▓ +! ░▓ author ▓ xero +! ░▓ code ▓ http://code.xero.nu/dotfiles +! ░▓ mirror ▓ http://git.io/.files +! ░▓▓▓▓▓▓▓▓▓▓ +! ░░░░░░░░░░ +! +! █▓▒░ fonts +urxvt*font: xft:gohufont:size=11:antialias=true +urxvt*boldFont: xft:gohufont:size=11:antialias=true + +! █▓▒░ interface +urxvt*scrollBar: false +urxvt*transparent: true +urxvt*shading: 15 + +! █▓▒░ mikado colors +urxvt*foreground: #f3f3f3 +urxvt*background: #121212 +urxvt*cursorColor: #f3f3f3 +urxvt*color0: #322a2c +urxvt*color8: #46423b +urxvt*color1: #a04363 +urxvt*color9: #ae837a +urxvt*color2: #9b9329 +urxvt*color10: #b4aa30 +urxvt*color3: #bf7a29 +urxvt*color11: #c7a551 +urxvt*color4: #6a8c8c +urxvt*color12: #74999e +urxvt*color5: #856774 +urxvt*color13: #9c818e +urxvt*color6: #757978 +urxvt*color14: #9fa590 +urxvt*color7: #bcbcaf +urxvt*color15: #c1c4bc +urxvt*color0: #111111 +urxvt*color8: #666666 + +! █▓▒░ clipboard +urxvt.perl-ext-common: default,clipboard,keyboard-select +urxvt.keysym.M-Escape: perl:keyboard-select:activate +urxvt.keysym.M-c: perl:clipboard:copy +urxvt.keysym.C-v: perl:clipboard:paste +urxvt.keysym.M-C-v: perl:clipboard:paste_escaped +urxvt.clipboard.copycmd: xsel -ib +urxvt.clipboard.pastecmd: xsel -ob + +! █▓▒░ misc +urxvt.saveLines: 4095 +urxvt.iso14755: false +!URxvt*altSendsEscape: true diff --git a/vim/.vim/.netrwhist b/vim/.vim/.netrwhist new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/vim/.vim/.netrwhist @@ -0,0 +1 @@ + diff --git a/vim/.vim/.vim/.vimrc b/vim/.vim/.vim/.vimrc new file mode 100644 index 0000000..1617565 --- /dev/null +++ b/vim/.vim/.vim/.vimrc @@ -0,0 +1,46 @@ +"█▓▒░ autoload +execute pathogen#infect() + +let g:airline#extensions#tabline#enabled = 1 +let g:airline_powerline_fonts = 0 +let g:airline_theme = 'tomorrow' +let g:airline_enable_branch = 1 +let g:airline_enable_syntastic = 1 + +if !exists('g:airline_symbols') + let g:airline_symbols = {} +endif +let g:airline_left_sep = '▒' +let g:airline_left_alt_sep = '▒' +let g:airline_right_sep = '▒' +let g:airline_right_alt_sep = '▒' +let g:airline_symbols.branch = '⎇' +let g:airline_symbols.linenr = '░' +let g:airline_symbols.linenr = '░' +let g:airline_symbols.linenr = '░' +let g:airline_symbols.branch = '⎇' +let g:airline_symbols.paste = 'ρ' +let g:airline_symbols.paste = 'Þ' +let g:airline_symbols.paste = '∥' +let g:airline_symbols.whitespace = '░' +let g:airline_symbols.readonly = 'x' + +let g:startify_custom_header = [ + \ '', + \ ' ██ ██ ████ ██ ', + \ ' ░██ ░██ ░██░ ░░ ', + \ ' █████ ░██ ██ ██ ██████ ██████ ██████ ██ ██ ██ ██████████ ', + \ ' ██░░░██ ░██░██ ░██░░░██░ ██░░░░██░░░██░ ░██ ░██░██░░██░░██░░██', + \ '░██ ░░ ░██░██ ░██ ░██ ░██ ░██ ░██ ░░██ ░██ ░██ ░██ ░██ ░██', + \ '░██ ██ ░██░██ ░██ ░██ ░██ ░██ ░██ ░░████ ░██ ░██ ░██ ░██', + \ '░░█████ ███░░██████ ░░██ ░░██████ ░██ ░░██ ░██ ███ ░██ ░██', + \ ' ░░░░░ ░░░ ░░░░░░ ░░ ░░░░░░ ░░ ░░ ░░ ░░░ ░░ ░░ ', + \ '', + \ ] + +set laststatus=2 +set lazyredraw + +syntax on +colorscheme monokai +filetype plugin indent on diff --git a/vim/.vim/.vim/.zsh/colored-man-pages.zsh b/vim/.vim/.vim/.zsh/colored-man-pages.zsh new file mode 100644 index 0000000..6854d97 --- /dev/null +++ b/vim/.vim/.vim/.zsh/colored-man-pages.zsh @@ -0,0 +1,8 @@ +#█▓▒░ source: https://github.com/imkira/dotfiles/blob/master/.zsh/colored-man-pages.zsh +export LESS_TERMCAP_mb=$'\E[01;31m' +export LESS_TERMCAP_md=$'\E[01;38;5;74m' +export LESS_TERMCAP_me=$'\E[0m' +export LESS_TERMCAP_se=$'\E[0m' +export LESS_TERMCAP_so=$'\E[38;33;246m' +export LESS_TERMCAP_ue=$'\E[0m' +export LESS_TERMCAP_us=$'\E[04;38;5;146m' diff --git a/vim/.vim/.vim/.zsh/functions/chpwd_update_git_vars b/vim/.vim/.vim/.zsh/functions/chpwd_update_git_vars new file mode 100644 index 0000000..2cc7ffa --- /dev/null +++ b/vim/.vim/.vim/.zsh/functions/chpwd_update_git_vars @@ -0,0 +1 @@ +update_current_git_vars \ No newline at end of file diff --git a/vim/.vim/.vim/.zsh/functions/precmd_update_git_vars b/vim/.vim/.vim/.zsh/functions/precmd_update_git_vars new file mode 100644 index 0000000..7fa32df --- /dev/null +++ b/vim/.vim/.vim/.zsh/functions/precmd_update_git_vars @@ -0,0 +1,4 @@ +if [ -n "$__EXECUTED_GIT_COMMAND" ]; then + update_current_git_vars + unset __EXECUTED_GIT_COMMAND +fi \ No newline at end of file diff --git a/vim/.vim/.vim/.zsh/functions/preexec_update_git_vars b/vim/.vim/.vim/.zsh/functions/preexec_update_git_vars new file mode 100644 index 0000000..998de21 --- /dev/null +++ b/vim/.vim/.vim/.zsh/functions/preexec_update_git_vars @@ -0,0 +1,5 @@ +case "$1" in + git*) + __EXECUTED_GIT_COMMAND=1 + ;; +esac \ No newline at end of file diff --git a/vim/.vim/.vim/.zsh/functions/prompt_git_info b/vim/.vim/.vim/.zsh/functions/prompt_git_info new file mode 100644 index 0000000..d492ac8 --- /dev/null +++ b/vim/.vim/.vim/.zsh/functions/prompt_git_info @@ -0,0 +1,21 @@ +if [ -n "$__CURRENT_GIT_BRANCH" ]; then + local s="%F{cyan}-[%F{white}" + s+="$__CURRENT_GIT_BRANCH" + case "$__CURRENT_GIT_BRANCH_STATUS" in + ahead) + s+="↑" + ;; + diverged) + s+="↕" + ;; + behind) + s+="↓" + ;; + esac + if [ -n "$__CURRENT_GIT_BRANCH_IS_DIRTY" ]; then + s+="⚡" + fi + s+="%F{cyan}]" + + printf "%s%s" $s +fi \ No newline at end of file diff --git a/vim/.vim/.vim/.zsh/functions/update_current_git_vars b/vim/.vim/.vim/.zsh/functions/update_current_git_vars new file mode 100644 index 0000000..716d984 --- /dev/null +++ b/vim/.vim/.vim/.zsh/functions/update_current_git_vars @@ -0,0 +1,31 @@ +unset __CURRENT_GIT_BRANCH +unset __CURRENT_GIT_BRANCH_STATUS +unset __CURRENT_GIT_BRANCH_IS_DIRTY + +local st="$(git status 2>/dev/null)" +local st2="$(git log -1 --pretty=%h 2>/dev/null)" + +if [[ -n "$st" ]]; then + local -a arr + arr=(${(f)st}) + + if [[ $arr[1] =~ 'Not currently on any branch.' ]]; then + __CURRENT_GIT_BRANCH="$st2" + else + __CURRENT_GIT_BRANCH="${arr[1][(w)4]}"; + fi + + if [[ $arr[2] =~ 'Your branch is' ]]; then + if [[ $arr[2] =~ 'ahead' ]]; then + __CURRENT_GIT_BRANCH_STATUS='ahead' + elif [[ $arr[2] =~ 'diverged' ]]; then + __CURRENT_GIT_BRANCH_STATUS='diverged' + else + __CURRENT_GIT_BRANCH_STATUS='behind' + fi + fi + + if [[ ! $st =~ 'nothing to commit' ]]; then + __CURRENT_GIT_BRANCH_IS_DIRTY='1' + fi +fi \ No newline at end of file diff --git a/vim/.vim/.vim/.zshrc b/vim/.vim/.vim/.zshrc new file mode 100644 index 0000000..1a8c909 --- /dev/null +++ b/vim/.vim/.vim/.zshrc @@ -0,0 +1,144 @@ +# ██ +# ░██ +# ██████ ██████░██ ██████ █████ +# ░░░░██ ██░░░░ ░██████ ░░██░░█ ██░░░██ +# ██ ░░█████ ░██░░░██ ░██ ░ ░██ ░░ +# ██ ░░░░░██░██ ░██ ░██ ░██ ██ +# ██████ ██████ ░██ ░██░███ ░░█████ +# ░░░░░░ ░░░░░░ ░░ ░░ ░░░ ░░░░░ +# +# ▓▓▓▓▓▓▓▓▓▓ +# ░▓ author ▓ xero +# ░▓ code ▓ http://code.xero.nu/dotfiles +# ░▓ mirror ▓ http://git.io/.files +# ░▓▓▓▓▓▓▓▓▓▓ +# ░░░░░░░░░░ +# +# █▓▒░ timestamps +# HIST_STAMPS="mm/dd/yyyy" + +#█▓▒░ exports +export PATH=$HOME/bin:/usr/local/bin:$PATH +# export MANPATH="/usr/local/man:$MANPATH" + +#█▓▒░ preferred editor for local and remote sessions +if [[ -n $SSH_CONNECTION ]]; then + export EDITOR='vi' +else + export EDITOR='vim' +fi + +#█▓▒░ aliases +alias workscreen='xrandr --output HDMI1 --left-of LVDS1 --mode 1366x768' +alias ls='ls --color=auto' +alias lsla="ls -la --color=auto" +alias "cd.."="cd ../" +alias rock="ncmpcpp" +alias genplaylist="cd ~/music;find . -name '*.mp3' -o -name '*.flac'|sed -e 's%^./%%g' > ~/.mpd/playlists/all.m3u;mpd ~/.mpd/mpd.conf;mpc clear;mpc load all.m3u;mpc update" +alias matrix="cmatrix -b -s" +alias pipes="bash ~/code/fun/pipes" +alias pipesx="bash ~/code/fun/pipesx" +alias rain="bash ~/code/fun/rain.sh" +alias invert="xcalib -i -a" +alias mixer="alsamixer" +alias xdefaults="xrdb -merge ~/.Xdefaults" +alias sublime="subl" +alias tempwatch="while :; do sensors|while read x; do printf '% .23s\n' "$x"; done; sleep 1 && clear; done;" +alias term='urxvtc -hold -e ' #used for awesomewm run menu +alias fixcursor='xsetroot -cursor_name left_ptr' +alias hashcompare='bash ~/code/sys/hash-compare.sh ' +alias apachereload='sudo /etc/init.d/apache2 restart' +alias checkrootkits='sudo rkhunter --update; sudo rkhunter --propupd; sudo rkhunter --check' + +#█▓▒░ ssh +export SSH_KEY_PATH="~/.ssh/id_rsa" + +#█▓▒░ autocompletion systems +autoload -Uz compinit +compinit + +zstyle ':completion:*' auto-description 'specify: %d' +zstyle ':completion:*' completer _expand _complete _correct _approximate +zstyle ':completion:*' format 'Completing %d' +zstyle ':completion:*' group-name '' +zstyle ':completion:*' menu select=2 eval "$(dircolors -b)" +zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} +zstyle ':completion:*' list-colors '' +zstyle ':completion:*' list-prompt %SAt %p: hit TAB for more, or the character to insert%s +zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*' +zstyle ':completion:*' menu select=long +zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s +zstyle ':completion:*' use-compctl false +zstyle ':completion:*' verbose true + +zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' +zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' + +#█▓▒░ allow functions in the prompt +setopt PROMPT_SUBST + +#█▓▒░ autoload zsh functions +fpath=(~/.zsh/functions $fpath) +autoload -U ~/.zsh/functions/*(:t) + +#█▓▒░ enable auto-execution of functions +typeset -ga preexec_functions +typeset -ga precmd_functions +typeset -ga chpwd_functions + +#█▓▒░ append git functions needed for prompt. +preexec_functions+='preexec_update_git_vars' +precmd_functions+='precmd_update_git_vars' +chpwd_functions+='chpwd_update_git_vars' + +#█▓▒░ load configs +for config_file (~/.zsh/*.zsh) source $config_file + +#█▓▒░ history +HISTFILE=~/.zhistory +setopt APPEND_HISTORY +HISTSIZE=1200 +SAVEHIST=1000 +setopt HIST_EXPIRE_DUPS_FIRST +setopt EXTENDED_HISTORY +setopt SHARE_HISTORY + +#█▓▒░ keybindings +typeset -A key +key[Home]=${terminfo[khome]} +key[End]=${terminfo[kend]} +key[Insert]=${terminfo[kich1]} +key[Delete]=${terminfo[kdch1]} +key[Up]=${terminfo[kcuu1]} +key[Down]=${terminfo[kcud1]} +key[Left]=${terminfo[kcub1]} +key[Right]=${terminfo[kcuf1]} +key[PageUp]=${terminfo[kpp]} +key[PageDown]=${terminfo[knp]} + +# setup key accordingly +[[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line +[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line +[[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode +[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char +[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history +[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-history +[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char +[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char + +#█▓▒░ custom prompts + +#█▓▒░dual line +PROMPT="%F{cyan}┌[%F{white}%n@%M%F{cyan}]─[%F{red}%~%F{cyan}] +%F{cyan}└─ %F{white}" + +#█▓▒░ ninja +PROMPT="%F{white} ▟▙ %F{red}%~%F $(prompt_git_info) {white} +▟▒%F{blue}░░░░░░░%F{white}▜▙▜████████████████████████████████▛ +▜▒%F{blue}░░░░░░░%F{white}▟▛▟▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▛ + ▜▛ + %F{white}" + +#█▓▒░ minial +grey="%{^[[01;30m%}" +PROMPT='%F{cyan}[%F{white}%~%F{cyan}]$(prompt_git_info)── -%f ' diff --git a/vim/.vim/autoload/pathogen.vim b/vim/.vim/autoload/pathogen.vim new file mode 100644 index 0000000..c6d54a1 --- /dev/null +++ b/vim/.vim/autoload/pathogen.vim @@ -0,0 +1,344 @@ +" pathogen.vim - path option manipulation +" Maintainer: Tim Pope +" Version: 2.3 + +" Install in ~/.vim/autoload (or ~\vimfiles\autoload). +" +" For management of individually installed plugins in ~/.vim/bundle (or +" ~\vimfiles\bundle), adding `execute pathogen#infect()` to the top of your +" .vimrc is the only other setup necessary. +" +" The API is documented inline below. + +if exists("g:loaded_pathogen") || &cp + finish +endif +let g:loaded_pathogen = 1 + +" Point of entry for basic default usage. Give a relative path to invoke +" pathogen#interpose() (defaults to "bundle/{}"), or an absolute path to invoke +" pathogen#surround(). Curly braces are expanded with pathogen#expand(): +" "bundle/{}" finds all subdirectories inside "bundle" inside all directories +" in the runtime path. +function! pathogen#infect(...) abort + for path in a:0 ? filter(reverse(copy(a:000)), 'type(v:val) == type("")') : ['bundle/{}'] + if path =~# '^\%({\=[$~\\/]\|{\=\w:[\\/]\).*[{}*]' + call pathogen#surround(path) + elseif path =~# '^\%([$~\\/]\|\w:[\\/]\)' + call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')') + call pathogen#surround(path . '/{}') + elseif path =~# '[{}*]' + call pathogen#interpose(path) + else + call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')') + call pathogen#interpose(path . '/{}') + endif + endfor + call pathogen#cycle_filetype() + if pathogen#is_disabled($MYVIMRC) + return 'finish' + endif + return '' +endfunction + +" Split a path into a list. +function! pathogen#split(path) abort + if type(a:path) == type([]) | return a:path | endif + if empty(a:path) | return [] | endif + let split = split(a:path,'\\\@]','\\&','') + endif +endfunction + +" Like findfile(), but hardcoded to use the runtimepath. +function! pathogen#runtime_findfile(file,count) abort "{{{1 + let rtp = pathogen#join(1,pathogen#split(&rtp)) + let file = findfile(a:file,rtp,a:count) + if file ==# '' + return '' + else + return fnamemodify(file,':p') + endif +endfunction + +" Section: Deprecated + +function! s:warn(msg) abort + echohl WarningMsg + echomsg a:msg + echohl NONE +endfunction + +" Prepend all subdirectories of path to the rtp, and append all 'after' +" directories in those subdirectories. Deprecated. +function! pathogen#runtime_prepend_subdirectories(path) abort + call s:warn('Change pathogen#runtime_prepend_subdirectories('.string(a:path).') to pathogen#infect('.string(a:path.'/{}').')') + return pathogen#surround(a:path . pathogen#slash() . '{}') +endfunction + +function! pathogen#incubate(...) abort + let name = a:0 ? a:1 : 'bundle/{}' + call s:warn('Change pathogen#incubate('.(a:0 ? string(a:1) : '').') to pathogen#infect('.string(name).')') + return pathogen#interpose(name) +endfunction + +" Deprecated alias for pathogen#interpose(). +function! pathogen#runtime_append_all_bundles(...) abort + if a:0 + call s:warn('Change pathogen#runtime_append_all_bundles('.string(a:1).') to pathogen#infect('.string(a:1.'/{}').')') + else + call s:warn('Change pathogen#runtime_append_all_bundles() to pathogen#infect()') + endif + return pathogen#interpose(a:0 ? a:1 . '/{}' : 'bundle/{}') +endfunction + +if exists(':Vedit') + finish +endif + +let s:vopen_warning = 0 + +function! s:find(count,cmd,file,lcd) + let rtp = pathogen#join(1,pathogen#split(&runtimepath)) + let file = pathogen#runtime_findfile(a:file,a:count) + if file ==# '' + return "echoerr 'E345: Can''t find file \"".a:file."\" in runtimepath'" + endif + if !s:vopen_warning + let s:vopen_warning = 1 + let warning = '|echohl WarningMsg|echo "Install scriptease.vim to continue using :V'.a:cmd.'"|echohl NONE' + else + let warning = '' + endif + if a:lcd + let path = file[0:-strlen(a:file)-2] + execute 'lcd `=path`' + return a:cmd.' '.pathogen#fnameescape(a:file) . warning + else + return a:cmd.' '.pathogen#fnameescape(file) . warning + endif +endfunction + +function! s:Findcomplete(A,L,P) + let sep = pathogen#slash() + let cheats = { + \'a': 'autoload', + \'d': 'doc', + \'f': 'ftplugin', + \'i': 'indent', + \'p': 'plugin', + \'s': 'syntax'} + if a:A =~# '^\w[\\/]' && has_key(cheats,a:A[0]) + let request = cheats[a:A[0]].a:A[1:-1] + else + let request = a:A + endif + let pattern = substitute(request,'/\|\'.sep,'*'.sep,'g').'*' + let found = {} + for path in pathogen#split(&runtimepath) + let path = expand(path, ':p') + let matches = split(glob(path.sep.pattern),"\n") + call map(matches,'isdirectory(v:val) ? v:val.sep : v:val') + call map(matches,'expand(v:val, ":p")[strlen(path)+1:-1]') + for match in matches + let found[match] = 1 + endfor + endfor + return sort(keys(found)) +endfunction + +command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Ve :execute s:find(,'edit',,0) +command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(,'edit',,0) +command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(,'edit',,1) +command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(,'split',,1) +command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(,'vsplit',,1) +command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(,'tabedit',,1) +command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(,'pedit',,1) +command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(,'read',,1) + +" vim:set et sw=2 foldmethod=expr foldexpr=getline(v\:lnum)=~'^\"\ Section\:'?'>1'\:getline(v\:lnum)=~#'^fu'?'a1'\:getline(v\:lnum)=~#'^endf'?'s1'\:'=': diff --git a/vim/.vim/bundle/colorizer/Makefile b/vim/.vim/bundle/colorizer/Makefile new file mode 100644 index 0000000..7f91e3b --- /dev/null +++ b/vim/.vim/bundle/colorizer/Makefile @@ -0,0 +1,12 @@ +.PHONY: all clean install uninstall +DOTVIM=$(HOME)/.vim +FILES=plugin/colorizer.vim autoload/colorizer.vim + +all: + @echo "Available phony targets: install, uninstall" + +install: + for f in $(FILES); do install -m644 $$f $(DOTVIM)/$$f; done + +uninstall: + rm -f $(FILES) diff --git a/vim/.vim/bundle/colorizer/README.mkd b/vim/.vim/bundle/colorizer/README.mkd new file mode 100644 index 0000000..f8c4598 --- /dev/null +++ b/vim/.vim/bundle/colorizer/README.mkd @@ -0,0 +1,7 @@ +A Vim plugin to colorize all text in the form #rrggbb or #rgb. See the comment at the beginning of the [plugin](https://github.com/lilydjwg/colorizer/tree/master/plugin/colorizer.vim) for more. + +![screenshot](https://github.com/lilydjwg/colorizer/raw/master/screenshot.png) + +The `Makefile` is used to quickly install/uninstall the script. + +[colorizer.vim on vim.org](http://www.vim.org/scripts/script.php?script_id=3567) diff --git a/vim/.vim/bundle/colorizer/autoload/colorizer.vim b/vim/.vim/bundle/colorizer/autoload/colorizer.vim new file mode 100644 index 0000000..985c9f7 --- /dev/null +++ b/vim/.vim/bundle/colorizer/autoload/colorizer.vim @@ -0,0 +1,377 @@ +" colorizer.vim Colorize all text in the form #rrggbb or #rgb; autoload functions +" Maintainer: lilydjwg +" Version: 1.4.1 +" License: Vim License (see vim's :help license) +" +" See plugin/colorizer.vim for more info. + +let s:keepcpo = &cpo +set cpo&vim + +function! s:FGforBG(bg) "{{{1 + " takes a 6hex color code and returns a matching color that is visible + let pure = substitute(a:bg,'^#','','') + let r = str2nr(pure[0:1], 16) + let g = str2nr(pure[2:3], 16) + let b = str2nr(pure[4:5], 16) + let fgc = g:colorizer_fgcontrast + if r*30 + g*59 + b*11 > 12000 + return s:predefined_fgcolors['dark'][fgc] + else + return s:predefined_fgcolors['light'][fgc] + end +endfunction + +function! s:Rgb2xterm(color) "{{{1 + " selects the nearest xterm color for a rgb value like #FF0000 + let best_match=0 + let smallest_distance = 10000000000 + let r = str2nr(a:color[0:1], 16) + let g = str2nr(a:color[2:3], 16) + let b = str2nr(a:color[4:5], 16) + let colortable = s:GetXterm2rgbTable() + for c in range(0,254) + let d = pow(colortable[c][0]-r,2) + pow(colortable[c][1]-g,2) + pow(colortable[c][2]-b,2) + if d=16 && a:color<=232 + let l:color=a:color-16 + let r = s:valuerange[(l:color/36)%6] + let g = s:valuerange[(l:color/6)%6] + let b = s:valuerange[l:color%6] + endif + + " gray tone + if a:color>=233 && a:color<=253 + let r=8+(a:color-232)*0x0a + let g=r + let b=r + endif + let rgb=[r,g,b] + return rgb +endfunction + +function! s:SetMatcher(color, pat) "{{{1 + " "color" is the converted color and "pat" is what to highlight + let group = 'Color' . strpart(a:color, 1) + if !hlexists(group) || s:force_group_update + let fg = g:colorizer_fgcontrast < 0 ? a:color : s:FGforBG(a:color) + if &t_Co == 256 + exe 'hi '.group.' ctermfg='.s:Rgb2xterm(fg).' ctermbg='.s:Rgb2xterm(a:color) + endif + " Always set gui* as user may switch to GUI version and it's cheap + exe 'hi '.group.' guifg='.fg.' guibg='.a:color + endif + if !exists("w:colormatches[a:pat]") + let w:colormatches[a:pat] = matchadd(group, a:pat) + endif +endfunction + +"ColorFinders {{{1 +function! s:HexCode(str, lineno) "{{{2 + let ret = [] + let place = 0 + let colorpat = '#[0-9A-Fa-f]\{3\}\>\|#[0-9A-Fa-f]\{6\}\>' + while 1 + let foundcolor = matchstr(a:str, colorpat, place) + if foundcolor == '' + break + endif + let place = matchend(a:str, colorpat, place) + let pat = foundcolor . '\>' + if len(foundcolor) == 4 + let foundcolor = substitute(foundcolor, '[[:xdigit:]]', '&&', 'g') + endif + call add(ret, [foundcolor, pat]) + endwhile + return ret +endfunction + +function! s:RgbColor(str, lineno) "{{{2 + let ret = [] + let place = 0 + let colorpat = '\ 255 || g > 255 || b > 255 + break + endif + let pat = printf('\ 255 || ag > 255 || ab > 255 + break + endif + let alpha = str2float(foundcolor[5]) + if alpha < 0 + let alpha = 0.0 + elseif alpha > 1 + let alpha = 1.0 + endif + let pat = printf('\ 255 + let r = 255 + endif + if g > 255 + let g = 255 + endif + if b > 255 + let b = 255 + endif + let l:color = printf('#%02x%02x%02x', r, g, b) + call add(ret, [l:color, pat]) + endwhile + return ret +endfunction + +function! s:RgbaColorForTerm(str, lineno) "{{{2 + let ret = [] + let place = 0 + let colorpat = '\ 255 || ag > 255 || ab > 255 + break + endif + let pat = printf('\ 704 || v:version == 704 && has('patch143') + autocmd TextChangedI * silent call s:TextChanged() + else + " TextChangedI does not work as expected + autocmd CursorMovedI * silent call s:CursorMoved() + endif + else + autocmd CursorMoved,CursorMovedI * silent call s:CursorMoved() + endif + " rgba handles differently, so need updating + autocmd GUIEnter * silent call colorizer#ColorHighlight(1) + autocmd BufRead * silent call colorizer#ColorHighlight(1) + autocmd WinEnter * silent call colorizer#ColorHighlight(1) + autocmd ColorScheme * let s:force_group_update=1 | silent call colorizer#ColorHighlight(1) + augroup END +endfunction + +function! colorizer#ColorClear() "{{{1 + augroup Colorizer + au! + augroup END + let save_tab = tabpagenr() + let save_win = winnr() + tabdo windo call s:ClearMatches() + exe 'tabn '.save_tab + exe save_win . 'wincmd w' +endfunction + +function! s:ClearMatches() "{{{1 + if !exists('w:colormatches') + return + endif + for i in values(w:colormatches) + call matchdelete(i) + endfor + unlet w:colormatches +endfunction + +function! colorizer#ColorToggle() "{{{1 + if exists('#Colorizer#BufRead') + call colorizer#ColorClear() + echomsg 'Disabled color code highlighting.' + else + call colorizer#ColorHighlight(0) + echomsg 'Enabled color code highlighting.' + endif +endfunction + +function! s:GetXterm2rgbTable() + if !exists('s:table_xterm2rgb') + let s:table_xterm2rgb = [] + for c in range(0, 254) + let s:color = s:Xterm2rgb(c) + call add(s:table_xterm2rgb, s:color) + endfor + endif + return s:table_xterm2rgb +endfun + +" Setups {{{1 +let s:ColorFinder = [function('s:HexCode'), function('s:RgbColor'), function('s:RgbaColor')] +let s:force_group_update = 0 +let s:predefined_fgcolors = {} +let s:predefined_fgcolors['dark'] = ['#444444', '#222222', '#000000'] +let s:predefined_fgcolors['light'] = ['#bbbbbb', '#dddddd', '#ffffff'] +if !exists("g:colorizer_fgcontrast") + " Default to black / white + let g:colorizer_fgcontrast = len(s:predefined_fgcolors['dark']) - 1 +elseif g:colorizer_fgcontrast >= len(s:predefined_fgcolors['dark']) + echohl WarningMsg + echo "g:colorizer_fgcontrast value invalid, using default" + echohl None + let g:colorizer_fgcontrast = len(s:predefined_fgcolors['dark']) - 1 +endif +let s:saved_fgcontrast = g:colorizer_fgcontrast + +" Restoration and modelines {{{1 +let &cpo = s:keepcpo +unlet s:keepcpo +" vim:ft=vim:fdm=marker:fmr={{{,}}}: diff --git a/vim/.vim/bundle/colorizer/plugin/colorizer.vim b/vim/.vim/bundle/colorizer/plugin/colorizer.vim new file mode 100644 index 0000000..431098c --- /dev/null +++ b/vim/.vim/bundle/colorizer/plugin/colorizer.vim @@ -0,0 +1,62 @@ +" colorizer.vim Colorize all text in the form #rrggbb or #rgb; entrance +" Maintainer: lilydjwg +" Version: 1.4.1 +" Licence: Vim license. See ':help license' +" Derived From: css_color.vim +" http://www.vim.org/scripts/script.php?script_id=2150 +" Thanks To: Niklas Hofer (Author of css_color.vim), Ingo Karkat, rykka, +" KrzysztofUrban, blueyed, shanesmith, UncleBill +" Usage: +" +" This plugin defines three commands: +" +" ColorHighlight - start/update highlighting +" ColorClear - clear all highlights +" ColorToggle - toggle highlights +" +" By default, tc is mapped to ColorToggle. If you want to use another +" key map, do like this: +" nmap ,tc Colorizer +" +" If you want completely not to map it, set the following in your vimrc: +" let g:colorizer_nomap = 1 +" +" To use solid color highlight, set this in your vimrc (later change won't +" probably take effect unless you use ':ColorHighlight!' to force update): +" let g:colorizer_fgcontrast = -1 +" set it to 0 or 1 to use a softened foregroud color. +" +" If you don't want to enable colorizer at startup, set the following: +" let g:colorizer_startup = 0 +" +" Note: if you modify a color string in normal mode, if the cursor is still on +" that line, it'll take 'updatetime' seconds to update. You can use +" :ColorHighlight (or your key mapping) again to force update. +" +" Performace Notice: In terminal, it may take several seconds to highlight 240 +" different colors. GUI version is much quicker. + +" Reload guard and 'compatible' handling {{{1 +if exists("loaded_colorizer") || v:version < 700 || !(has("gui_running") || &t_Co == 256) + finish +endif +let loaded_colorizer = 1 + +let s:save_cpo = &cpo +set cpo&vim + +"Define commands {{{1 +command! -bar -bang ColorHighlight call colorizer#ColorHighlight(1, "") +command! -bar ColorClear call colorizer#ColorClear() +command! -bar ColorToggle call colorizer#ColorToggle() +nnoremap Colorizer :ColorToggle +if !hasmapto("Colorizer") && (!exists("g:colorizer_nomap") || g:colorizer_nomap == 0) + nmap tc Colorizer +endif +if !exists('g:colorizer_startup') || g:colorizer_startup + call colorizer#ColorHighlight(0) +endif + +" Cleanup and modelines {{{1 +let &cpo = s:save_cpo +" vim:ft=vim:fdm=marker:fmr={{{,}}}: diff --git a/vim/.vim/bundle/colorizer/screenshot.png b/vim/.vim/bundle/colorizer/screenshot.png new file mode 100644 index 0000000..e400ea2 Binary files /dev/null and b/vim/.vim/bundle/colorizer/screenshot.png differ diff --git a/vim/.vim/bundle/indentLine/.gitattributes b/vim/.vim/bundle/indentLine/.gitattributes new file mode 100644 index 0000000..412eeda --- /dev/null +++ b/vim/.vim/bundle/indentLine/.gitattributes @@ -0,0 +1,22 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp +*.sln merge=union +*.csproj merge=union +*.vbproj merge=union +*.fsproj merge=union +*.dbproj merge=union + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/vim/.vim/bundle/indentLine/.gitignore b/vim/.vim/bundle/indentLine/.gitignore new file mode 100644 index 0000000..5ebd21a --- /dev/null +++ b/vim/.vim/bundle/indentLine/.gitignore @@ -0,0 +1,163 @@ +################# +## Eclipse +################# + +*.pydevproject +.project +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.classpath +.settings/ +.loadpath + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# CDT-specific +.cproject + +# PDT-specific +.buildpath + + +################# +## Visual Studio +################# + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results +[Dd]ebug/ +[Rr]elease/ +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.vspscc +.builds +*.dotCover + +## TODO: If you have NuGet Package Restore enabled, uncomment this +#packages/ + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf + +# Visual Studio profiler +*.psess +*.vsp + +# ReSharper is a .NET coding add-in +_ReSharper* + +# Installshield output folder +[Ee]xpress + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish + +# Others +[Bb]in +[Oo]bj +sql +TestResults +*.Cache +ClientBin +stylecop.* +~$* +*.dbmdl +Generated_Code #added for RIA/Silverlight projects + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML + + + +############ +## Windows +############ + +# Windows image file caches +Thumbs.db + +# Folder config file +Desktop.ini + + +############# +## Python +############# + +*.py[co] + +# Packages +*.egg +*.egg-info +dist +build +eggs +parts +bin +var +sdist +develop-eggs +.installed.cfg + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +.coverage +.tox + +#Translations +*.mo + +#Mr Developer +.mr.developer.cfg + +# Mac crap +.DS_Store diff --git a/vim/.vim/bundle/indentLine/README.md b/vim/.vim/bundle/indentLine/README.md new file mode 100644 index 0000000..c15f359 --- /dev/null +++ b/vim/.vim/bundle/indentLine/README.md @@ -0,0 +1,34 @@ +indentLine +========== + +This plugin is used for displaying thin vertical lines at each indentation level for code indented with spaces. For code indented with tabs I think there is no need to support it, because you can use `:set list lcs=tab:\|\ ` (here is a space). + +## Requirements +This plugin takes advantage of the newly provided `conceal` feature in Vim 7.3, so this plugin will not work with lower versions of Vim. + +## Installation +To install the plugin just put the plugin files in your `~/.vim` (Linux) or `~/vimfiles` (Windows). + +If you use a plugin manager you can put the whole directory into your `~/.vim/bundle/` directory ([Pathogen][pathogen]) or add the line `Bundle 'Yggdroot/indentLine'` to your `.vimrc` ([Vundle][vundle]). + +## Customization +You can change the color of indentLines: +for Vim, set `g:indentLine_color_term` in your `.vimrc`, e.g. `let g:indentLine_color_term = 239`, +for GVim, set `g:indentLine_color_gui` in your `.vimrc`, e.g. `let g:indentLine_color_gui = '#A4E57E'` +for none X terminal, set `g:indentLine_color_tty_light` and `g:indentLine_color_tty_dark` in your `.vimrc`. e.g. `let g:indentLine_color_tty_light = 7`(default: 4), `let g:indentLine_color_dark = 1`(default: 2). + +You can also change the indentLine char: +for both Vim and GVim, set `let g:indentLine_char = 'c'` where `'c'` can be any ASCII character. You can also use one of `¦`, `┆` or `│` to display more beautiful lines. However, these characters will only work with files whose encoding is UTF-8. + +## Self promotion +If you think this script is helpful, follow the [GitHub repository][repository], and don't forget to vote for it on Vim.org! ([vimscript #4354][script]). + +[pathogen]: https://github.com/tpope/vim-pathogen +[vundle]: https://github.com/gmarik/vundle +[repository]: https://github.com/Yggdroot/indentLine +[script]: http://www.vim.org/scripts/script.php?script_id=4354 + + +## Screenshots +![Screenshot](http://i.imgur.com/KVi0T.jpg) + diff --git a/vim/.vim/bundle/indentLine/after/plugin/indentLine.vim b/vim/.vim/bundle/indentLine/after/plugin/indentLine.vim new file mode 100644 index 0000000..fc78278 --- /dev/null +++ b/vim/.vim/bundle/indentLine/after/plugin/indentLine.vim @@ -0,0 +1,166 @@ +" Script Name: indentLine.vim +" Author: Yggdroot +" +" Description: To show the indention levels with thin vertical lines + +scriptencoding utf-8 + +if ! has("conceal") || exists("g:indentLine_loaded") + finish +endif +let g:indentLine_loaded = 1 + + +let g:indentLine_char = get(g:,'indentLine_char',(&encoding is# "utf-8" && &term isnot# "linux" ? '¦' : '|')) +let g:indentLine_first_char = get(g:,'indentLine_first_char',(&encoding is# "utf-8" && &term isnot# "linux" ? '¦' : '|')) +let g:indentLine_indentLevel = get(g:,'indentLine_indentLevel',10) +let g:indentLine_enabled = get(g:,'indentLine_enabled',1) +let g:indentLine_fileType = get(g:,'indentLine_fileType',[]) +let g:indentLine_fileTypeExclude = get(g:,'indentLine_fileTypeExclude',[]) +let g:indentLine_bufNameExclude = get(g:,'indentLine_bufNameExclude',[]) +let g:indentLine_showFirstIndentLevel = get(g:,'indentLine_showFirstIndentLevel',0) +let g:indentLine_maxLines = get(g:,'indentLine_maxLines',3000) +let g:indentLine_setColors = get(g:,'indentLine_setColors',1) +let g:indentLine_faster = get(g:,'indentLine_faster',0) + +"{{{1 function! s:InitColor() +function! s:InitColor() + if ! g:indentLine_setColors + return + endif + + if ! exists("g:indentLine_color_term") + if &background is# "light" + let term_color = 249 + else + let term_color = 239 + endif + else + let term_color = g:indentLine_color_term + endif + + if ! exists("g:indentLine_color_gui") + if &background is# "light" + let gui_color = "Grey70" + else + let gui_color = "Grey30" + endif + else + let gui_color = g:indentLine_color_gui + endif + + execute "highlight Conceal ctermfg=" . term_color . " ctermbg=NONE" + execute "highlight Conceal guifg=" . gui_color . " guibg=NONE" + + if &term is# "linux" + if &background is# "light" + let tty_color = exists("g:indentLine_color_tty_light") ? g:indentLine_color_tty_light : 4 + else + let tty_color = exists("g:indentLine_color_tty_dark") ? g:indentLine_color_tty_dark : 2 + endif + execute "highlight Conceal cterm=bold ctermfg=" . tty_color . " ctermbg=NONE" + endif +endfunction + +"{{{1 function! s:SetIndentLine() +function! s:SetIndentLine() + let b:indentLine_enabled = 1 + let space = &l:shiftwidth is 0 ? &l:tabstop : &l:shiftwidth + + if g:indentLine_showFirstIndentLevel + execute 'syntax match IndentLine /^ / containedin=ALL conceal cchar=' . g:indentLine_first_char + endif + + if g:indentLine_faster + execute 'syntax match IndentLineSpace /^\s\+/ containedin=ALL contains=IndentLine' + execute 'syntax match IndentLine / \{'.(space-1).'}\zs / contained conceal cchar=' . g:indentLine_char + execute 'syntax match IndentLine /\t\zs / contained conceal cchar=' . g:indentLine_char + else + let pattern = line('$') < g:indentLine_maxLines ? 'v' : 'c' + for i in range(space+1, space * g:indentLine_indentLevel + 1, space) + execute 'syntax match IndentLine /\%(^\s\+\)\@<=\%'.i.pattern.' / containedin=ALL conceal cchar=' . g:indentLine_char + endfor + endif +endfunction + +"{{{1 function! s:ResetWidth(...) +function! s:ResetWidth(...) + if 0 < a:0 + let &l:shiftwidth = a:1 + endif + + if exists("b:indentLine_enabled") + syntax clear IndentLine + endif + call s:SetIndentLine() +endfunction + +"{{{1 function! s:IndentLinesToggle() +function! s:IndentLinesToggle() + if ! exists("b:indentLine_enabled") + let b:indentLine_enabled = 0 + endif + + if b:indentLine_enabled + let b:indentLine_enabled = 0 + syntax clear IndentLine + else + call s:SetIndentLine() + endif +endfunction + +"{{{1 function! s:Setup() +function! s:Setup() + if index(g:indentLine_fileTypeExclude, &filetype) isnot -1 + return + endif + + if len(g:indentLine_fileType) isnot 0 && index(g:indentLine_fileType, &filetype) is -1 + return + end + + for name in g:indentLine_bufNameExclude + if matchstr(bufname(''), name) is bufname('') + return + endif + endfor + + if ! exists("b:indentLine_bufNr") + let b:indentLine_bufNr = bufnr('%') + let g:indentLine_bufNr = bufnr('%') + elseif g:indentLine_bufNr != bufnr('%') && &hidden + let g:indentLine_bufNr = bufnr('%') + return + endif + + if ! exists("g:indentLine_noConcealCursor") + setlocal concealcursor=inc + endif + setlocal conceallevel=2 + + if &filetype is# "" + call s:InitColor() + endif + + if ! exists("b:indentLine_enabled") + let b:indentLine_enabled = g:indentLine_enabled + endif + + if b:indentLine_enabled + call s:SetIndentLine() + endif +endfunction + +"{{{1 augroup indentLine +augroup indentLine + autocmd! + autocmd BufWinEnter * call Setup() + autocmd BufRead,BufNewFile,ColorScheme * call InitColor() +augroup END + +"{{{1 commands +command! -nargs=? IndentLinesReset call ResetWidth() +command! IndentLinesToggle call IndentLinesToggle() + +" vim:et:ts=4:sw=4:fdm=marker:fmr={{{,}}} + diff --git a/vim/.vim/bundle/indentLine/doc/indentLine.txt b/vim/.vim/bundle/indentLine/doc/indentLine.txt new file mode 100644 index 0000000..82db783 --- /dev/null +++ b/vim/.vim/bundle/indentLine/doc/indentLine.txt @@ -0,0 +1,143 @@ +*indentLine.txt* Show vertical lines for indent with conceal feature + +CONTENTS *indentLine-contents* +Introduction |indentLine-introduction| +Config |indentLine-config| +Variables |indentLine-variables| +Commands |indentLine-commands| +FAQ |indentLine-faq| +Changelog |indentLine-changelog| +Credits |indentLine-credits| +============================================================================== +INTRODUCTION *indentLine-introduction* +This plugin is used for displaying thin vertical lines at each indentation +level for code indented with spaces. For code indented with tabs, I think +there is no need to support it, using :set list lcs=tab:\|\ (here is a space) +can achieve it. +============================================================================== +CONFIG *indentLine-config* + +============================================================================== +VARIABLES *indentLine-variables* + +g:indentLine_loaded *g:loaded_indentLine* + Whether load indentLine plugin. + Default value is 0. + +g:indentLine_char *g:indentLine_char* + Specify a character to be used as indent line. + You also can use other characters: + | ¦ ┆ │ + Default value is "|". + +g:indentLine_first_char *g:indentLine_first_char* + Specify a character to be used as indent line + on the first level. + You also can use other characters: + | ¦ ┆ │ + Default value is "|". + +g:indentLine_color_term *g:indentLine_color_term* + Specify terminal vim indent line color. + e.g. let g:indentLine_color_term = 239 + + +g:indentLine_color_gui *g:indentLine_color_gui* + Specify GUI vim indent line color. + e.g. let g:indentLine_color_gui = '#A4E57E' + +g:indentLine_color_tty_light *g:indentLine_color_tty_light* + Specify none X terminal vim indent line color in bg light. + default: 4 + e.g. let g:indentLine_color_tty_light = 7 + +g:indentLine_color_tty_dark *g:indentLine_color_tty_dark* + Specify none X terminal vim indent line color in bg dark. + default: 2 + e.g. let g:indentLine_color_tty_dark = 1 + +g:indentLine_indentLevel *g:indentLine_indentLevel* + Specify how much indent level do you want to use for + indentLine. Most program will not has bigger indent level than + 10. + Default value is 10. + +g:indentLine_showFirstIndentLevel *g:indentLine_showFirstIndentLevel* + Specify whether the first indent level should be shown. + This is useful if you use indentLine in comination with + |listchars| in order to show tabs. + Default value is 0. + +g:indentLine_enabled *g:indentLine_enabled* + Specify whether to enable indentLine plugin by default. + If value is not 0, the plugin is on by default, otherwise off. + Default value is 1. + +g:indentLine_fileType *g:indentLine_fileType* + This variable specify a list of file types. + When opening these types of files, the plugin is enabled by + default. + e.g. let g:indentLine_fileType = ['c', 'cpp'] + Default value is [] which means all file types is supported. + +g:indentLine_fileTypeExclude *g:indentLine_fileTypeExclude* + This variable specify a list of file types. + When opening these types of files, the plugin is disabled by + default. + e.g. let g:indentLine_fileTypeExclude = ['text', 'sh'] + Default value is [] which means no file types is excluded. + +g:indentLine_bufNameExclude *g:indentLine_bufNameExclude* + This variable specify a list of buffer names, which can be + regular expression. If the buffer's name fall into this list, + the indentLine won't display. + e.g. let g:indentLine_bufNameExclude = ['_.*', 'NERD_tree.*'] + Default value is []. + +g:indentLine_maxLines *g:indentLine_maxLines* + This variable specify a number, when the number of buffer's + lines exceed it, the plugin try to use another pattern to make + the performance better. + Default value is 3000. + +g:indentLine_faster *g:indentLine_faster* + If you want the performance better, you can set the value as + 1, default value is 0. But better performance may bring little + issue with it. + +g:indentLine_noConcealCursor *g:indentLine_noConcealCursor* + This variable toggles cursor lines behavior. If variable + exists, then cursorline will be above conceal chars. + Default value is not set. + +============================================================================== +COMMANDS *indentLine-commands* + +IndentLinesReset [number] + if 'shiftwidth' changes, using this command can redraw the + indentLines. number is optional, it means the width between + two indent level, if ommited, value of 'shiftwidth' is used. + +IndentLinesToggle + toggle the indent lines of the current buffer. +============================================================================== +FAQ *indentLine-faq* + +Q. How can I make the indent line visuall similar to the line used in Sublime + Text 2? + +A. Use let g:indentLine_char = '┊' + +============================================================================== +CHANGELOG *indentLine-changelog* + +============================================================================== +CREDITS *indentLine-credits* + +Thanks to the following people for suggestions and patches: + +NagatoPain +Salman Halim +Christophe +============================================================================== +vim:tw=78:ts=8:ft=help:norl diff --git a/vim/.vim/bundle/vim-airline/.gitignore b/vim/.vim/bundle/vim-airline/.gitignore new file mode 100644 index 0000000..296f094 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/.gitignore @@ -0,0 +1,3 @@ +doc/tags +*.lock +.vim-flavor diff --git a/vim/.vim/bundle/vim-airline/.travis.yml b/vim/.vim/bundle/vim-airline/.travis.yml new file mode 100644 index 0000000..9ed483e --- /dev/null +++ b/vim/.vim/bundle/vim-airline/.travis.yml @@ -0,0 +1,4 @@ +language: ruby +rvm: + - 1.9.3 +script: rake ci diff --git a/vim/.vim/bundle/vim-airline/Gemfile b/vim/.vim/bundle/vim-airline/Gemfile new file mode 100644 index 0000000..088f22e --- /dev/null +++ b/vim/.vim/bundle/vim-airline/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gem 'vim-flavor', '~> 1.1' diff --git a/vim/.vim/bundle/vim-airline/LICENSE b/vim/.vim/bundle/vim-airline/LICENSE new file mode 100644 index 0000000..9a5a8b7 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (C) 2013-2014 Bailey Ling + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE +OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vim/.vim/bundle/vim-airline/README.md b/vim/.vim/bundle/vim-airline/README.md new file mode 100644 index 0000000..b98e348 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/README.md @@ -0,0 +1,210 @@ +# vim-airline [![Build Status](https://travis-ci.org/bling/vim-airline.png)](https://travis-ci.org/bling/vim-airline) + +Lean & mean status/tabline for vim that's light as air. + +![img](https://github.com/bling/vim-airline/wiki/screenshots/demo.gif) + +# Features + +* Tiny core written with extensibility in mind ([open/closed principle][8]). +* Integrates with a variety of plugins, including: [vim-bufferline][6], [fugitive][4], [unite][9], [ctrlp][10], [minibufexpl][15], [gundo][16], [undotree][17], [nerdtree][18], [tagbar][19], [vim-gitgutter][29], [vim-signify][30], [syntastic][5], [eclim][34], [lawrencium][21], [virtualenv][31], [tmuxline][35]. +* Looks good with regular fonts and provides configuration points so you can use unicode or powerline symbols. +* Optimized for speed; it loads in under a millisecond. +* Extensive suite of themes for popular color schemes including [solarized][23] (dark and light), [tomorrow][24] (all variants), [base16][32] (all variants), [molokai][25], [jellybeans][26] and others; have a look at the [screenshots][14] in the wiki. +* Supports 7.2 as the minimum Vim version. +* The master branch tries to be as stable as possible, and new features are merged in only after they have gone through a [full regression test][33]. +* Unit testing suite. + +## Straightforward customization + +If you don't like the defaults, you can replace all sections with standard `statusline` syntax. Give your statusline that you've built over the years a face lift. + +![image](https://f.cloud.github.com/assets/306502/1009429/d69306da-0b38-11e3-94bf-7c6e3eef41e9.png) + +## Automatic truncation + +Sections and parts within sections can be configured to automatically hide when the window size shrinks. + +![image](https://f.cloud.github.com/assets/306502/1060831/05c08aac-11bc-11e3-8470-a506a3037f45.png) + +## Smarter tab line + +Automatically displays all buffers when there's only one tab open. + +![tabline](https://f.cloud.github.com/assets/306502/1072623/44c292a0-1495-11e3-9ce6-dcada3f1c536.gif) + +This is disabled by default; add the following to your vimrc to enable the extension: + + let g:airline#extensions#tabline#enabled = 1 + +Separators can be configured independently for the tabline, so here is how you can define "straight" tabs: + + let g:airline#extensions#tabline#left_sep = ' ' + let g:airline#extensions#tabline#left_alt_sep = '|' + +## Seamless integration + +vim-airline integrates with a variety of plugins out of the box. These extensions will be lazily loaded if and only if you have the other plugins installed (and of course you can turn them off). + +#### [ctrlp.vim][10] +![image](https://f.cloud.github.com/assets/306502/962258/7345a224-04ec-11e3-8b5a-f11724a47437.png) + +#### [unite.vim][9] +![image](https://f.cloud.github.com/assets/306502/962319/4d7d3a7e-04ed-11e3-9d59-ab29cb310ff8.png) + +#### [tagbar][19] +![image](https://f.cloud.github.com/assets/306502/962150/7e7bfae6-04ea-11e3-9e28-32af206aed80.png) + +#### [csv.vim][28] +![image](https://f.cloud.github.com/assets/306502/962204/cfc1210a-04eb-11e3-8a93-42e6bcd21efa.png) + +#### [syntastic][5] +![image](https://f.cloud.github.com/assets/306502/962864/9824c484-04f7-11e3-9928-da94f8c7da5a.png) + +#### hunks ([vim-gitgutter][29] & [vim-signify][30]) +![image](https://f.cloud.github.com/assets/306502/995185/73fc7054-09b9-11e3-9d45-618406c6ed98.png) + +#### [virtualenv][31] +![image](https://f.cloud.github.com/assets/390964/1022566/cf81f830-0d98-11e3-904f-cf4fe3ce201e.png) + +#### [tmuxline][35] +![image](https://f.cloud.github.com/assets/1532071/1559276/4c28fbac-4fc7-11e3-90ef-7e833d980f98.gif) + +#### [promptline][36] +![airline-promptline-sc](https://f.cloud.github.com/assets/1532071/1871900/7d4b28a0-789d-11e3-90e4-16f37269981b.gif) + +## Extras + +vim-airline also supplies some supplementary stand-alone extensions. In addition to the tabline extension mentioned earlier, there is also: + +#### whitespace +![image](https://f.cloud.github.com/assets/306502/962401/2a75385e-04ef-11e3-935c-e3b9f0e954cc.png) + +## Configurable and extensible + +#### Fine-tuned configuration + +Every section is composed of parts, and you can reorder and reconfigure them at will. + +![image](https://f.cloud.github.com/assets/306502/1073278/f291dd4c-14a3-11e3-8a83-268e2753f97d.png) + +Sections can contain accents, which allows for very granular control of visuals (see configuration [here](https://github.com/bling/vim-airline/issues/299#issuecomment-25772886)). + +![image](https://f.cloud.github.com/assets/306502/1195815/4bfa38d0-249d-11e3-823e-773cfc2ca894.png) + +#### Extensible pipeline + +Completely transform the statusline to your liking. Build out the statusline as you see fit by extracting colors from the current colorscheme's highlight groups. + +![allyourbase](https://f.cloud.github.com/assets/306502/1022714/e150034a-0da7-11e3-94a5-ca9d58a297e8.png) + +# Rationale + +There's already [powerline][2], why yet another statusline? + +* 100% vimscript; no python needed. + +What about [vim-powerline][1]? + +* vim-powerline has been deprecated in favor of the newer, unifying powerline, which is under active development; the new version is written in python at the core and exposes various bindings such that it can style statuslines not only in vim, but also tmux, bash, zsh, and others. + +# Where did the name come from? + +I wrote the initial version on an airplane, and since it's light as air it turned out to be a good name. Thanks for flying vim! + +# Installation + +This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers: + +* [Pathogen][11] + * `git clone https://github.com/bling/vim-airline ~/.vim/bundle/vim-airline` +* [NeoBundle][12] + * `NeoBundle 'bling/vim-airline'` +* [Vundle][13] + * `Plugin 'bling/vim-airline'` +* [VAM][22] + * `call vam#ActivateAddons([ 'vim-airline' ])` +* manual + * copy all of the files into your `~/.vim` directory + +# Configuration + +`:help airline` + +The default setting of 'laststatus' is for the statusline to not appear until a split is created. If you want it to appear all the time, add the following to your vimrc: +`set laststatus=2` + +# Integrating with powerline fonts + +For the nice looking powerline symbols to appear, you will need to install a patched font. Instructions can be found in the official powerline [documentation][20]. Prepatched fonts can be found in the [powerline-fonts][3] repository. + +Finally, you can add the convenience variable `let g:airline_powerline_fonts = 1` to your vimrc which will automatically populate the `g:airline_symbols` dictionary with the powerline symbols. + +# FAQ + +Solutions to common problems can be found in the [Wiki][27]. + +# Screenshots + +A full list of screenshots for various themes can be found in the [Wiki][14]. + +# Bugs + +Tracking down bugs can take a very long time due to different configurations, versions, and operating systems. To ensure a timely response, please help me out by doing the following: + +* Reproduce it with this [minivimrc][7] repository to rule out any configuration conflicts. +* A link to your vimrc or a gist which shows how you configured the plugin(s). +* And so I can reproduce; your `:version` of vim, and the commit of vim-airline you're using. + +# Contributions + +Contributions and pull requests are welcome. Please take note of the following guidelines: + +* Adhere to the existing style as much as possible; notably, 2 space indents and long-form keywords. +* Keep the history clean! squash your branches before you submit a pull request. `pull --rebase` is your friend. +* Any changes to the core should be tested against Vim 7.2. +* If you submit a theme, please create a screenshot so it can be added to the [Wiki][14]. + +# License + +MIT License. Copyright (c) 2013-2014 Bailey Ling. + + +[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/bling/vim-airline/trend.png)](https://bitdeli.com/free "Bitdeli Badge") + +[1]: https://github.com/Lokaltog/vim-powerline +[2]: https://github.com/Lokaltog/powerline +[3]: https://github.com/Lokaltog/powerline-fonts +[4]: https://github.com/tpope/vim-fugitive +[5]: https://github.com/scrooloose/syntastic +[6]: https://github.com/bling/vim-bufferline +[7]: https://github.com/bling/minivimrc +[8]: http://en.wikipedia.org/wiki/Open/closed_principle +[9]: https://github.com/Shougo/unite.vim +[10]: https://github.com/kien/ctrlp.vim +[11]: https://github.com/tpope/vim-pathogen +[12]: https://github.com/Shougo/neobundle.vim +[13]: https://github.com/gmarik/vundle +[14]: https://github.com/bling/vim-airline/wiki/Screenshots +[15]: https://github.com/techlivezheng/vim-plugin-minibufexpl +[16]: https://github.com/sjl/gundo.vim +[17]: https://github.com/mbbill/undotree +[18]: https://github.com/scrooloose/nerdtree +[19]: https://github.com/majutsushi/tagbar +[20]: https://powerline.readthedocs.org/en/latest/fontpatching.html +[21]: https://bitbucket.org/ludovicchabant/vim-lawrencium +[22]: https://github.com/MarcWeber/vim-addon-manager +[23]: https://github.com/altercation/solarized +[24]: https://github.com/chriskempson/tomorrow-theme +[25]: https://github.com/tomasr/molokai +[26]: https://github.com/nanotech/jellybeans.vim +[27]: https://github.com/bling/vim-airline/wiki/FAQ +[28]: https://github.com/chrisbra/csv.vim +[29]: https://github.com/airblade/vim-gitgutter +[30]: https://github.com/mhinz/vim-signify +[31]: https://github.com/jmcantrell/vim-virtualenv +[32]: https://github.com/chriskempson/base16-vim +[33]: https://github.com/bling/vim-airline/wiki/Test-Plan +[34]: http://eclim.org +[35]: https://github.com/edkolev/tmuxline.vim +[36]: https://github.com/edkolev/promptline.vim diff --git a/vim/.vim/bundle/vim-airline/Rakefile b/vim/.vim/bundle/vim-airline/Rakefile new file mode 100644 index 0000000..741cfc2 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/Rakefile @@ -0,0 +1,14 @@ +#!/usr/bin/env rake + +task :default => [:test] + +task :ci => [:dump, :test] + +task :dump do + sh 'vim --version' +end + +task :test do + sh 'bundle exec vim-flavor test' +end + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline.vim b/vim/.vim/bundle/vim-airline/autoload/airline.vim new file mode 100644 index 0000000..de66fba --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline.vim @@ -0,0 +1,170 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +let g:airline_statusline_funcrefs = get(g:, 'airline_statusline_funcrefs', []) + +let s:sections = ['a','b','c','gutter','x','y','z','warning'] +let s:inactive_funcrefs = [] + +function! airline#add_statusline_func(name) + call airline#add_statusline_funcref(function(a:name)) +endfunction + +function! airline#add_statusline_funcref(function) + if index(g:airline_statusline_funcrefs, a:function) >= 0 + echohl WarningMsg + echo 'The airline statusline funcref '.string(a:function).' has already been added.' + echohl NONE + return + endif + call add(g:airline_statusline_funcrefs, a:function) +endfunction + +function! airline#remove_statusline_func(name) + let i = index(g:airline_statusline_funcrefs, function(a:name)) + if i > -1 + call remove(g:airline_statusline_funcrefs, i) + endif +endfunction + +function! airline#add_inactive_statusline_func(name) + call add(s:inactive_funcrefs, function(a:name)) +endfunction + +function! airline#load_theme() + if exists('*airline#themes#{g:airline_theme}#refresh') + call airline#themes#{g:airline_theme}#refresh() + endif + + let palette = g:airline#themes#{g:airline_theme}#palette + call airline#themes#patch(palette) + + if exists('g:airline_theme_patch_func') + let Fn = function(g:airline_theme_patch_func) + call Fn(palette) + endif + + call airline#highlighter#load_theme() + call airline#extensions#load_theme() +endfunction + +function! airline#switch_theme(name) + try + let palette = g:airline#themes#{a:name}#palette "also lazy loads the theme + let g:airline_theme = a:name + catch + echohl WarningMsg | echo 'The specified theme cannot be found.' | echohl NONE + if exists('g:airline_theme') + return + else + let g:airline_theme = 'dark' + endif + endtry + + let w:airline_lastmode = '' + call airline#update_statusline() + call airline#load_theme() + + " this is required to prevent clobbering the startup info message, i don't know why... + call airline#check_mode(winnr()) +endfunction + +function! airline#switch_matching_theme() + if exists('g:colors_name') + try + let palette = g:airline#themes#{g:colors_name}#palette + call airline#switch_theme(g:colors_name) + return 1 + catch + for map in items(g:airline_theme_map) + if match(g:colors_name, map[0]) > -1 + call airline#switch_theme(map[1]) + return 1 + endif + endfor + endtry + endif + return 0 +endfunction + +function! airline#update_statusline() + for nr in filter(range(1, winnr('$')), 'v:val != winnr()') + call setwinvar(nr, 'airline_active', 0) + let context = { 'winnr': nr, 'active': 0, 'bufnr': winbufnr(nr) } + call s:invoke_funcrefs(context, s:inactive_funcrefs) + endfor + + unlet! w:airline_render_left + unlet! w:airline_render_right + for section in s:sections + unlet! w:airline_section_{section} + endfor + + let w:airline_active = 1 + let context = { 'winnr': winnr(), 'active': 1, 'bufnr': winbufnr(winnr()) } + call s:invoke_funcrefs(context, g:airline_statusline_funcrefs) +endfunction + +let s:contexts = {} +let s:core_funcrefs = [ + \ function('airline#extensions#apply'), + \ function('airline#extensions#default#apply') ] +function! s:invoke_funcrefs(context, funcrefs) + let builder = airline#builder#new(a:context) + let err = airline#util#exec_funcrefs(a:funcrefs + s:core_funcrefs, builder, a:context) + if err == 1 + let a:context.line = builder.build() + let s:contexts[a:context.winnr] = a:context + call setwinvar(a:context.winnr, '&statusline', '%!airline#statusline('.a:context.winnr.')') + endif +endfunction + +function! airline#statusline(winnr) + if has_key(s:contexts, a:winnr) + return '%{airline#check_mode('.a:winnr.')}'.s:contexts[a:winnr].line + endif + + " in rare circumstances this happens...see #276 + return '' +endfunction + +function! airline#check_mode(winnr) + let context = s:contexts[a:winnr] + + if get(w:, 'airline_active', 1) + let l:m = mode() + if l:m ==# "i" + let l:mode = ['insert'] + elseif l:m ==# "R" + let l:mode = ['replace'] + elseif l:m =~# '\v(v|V||s|S|)' + let l:mode = ['visual'] + else + let l:mode = ['normal'] + endif + let w:airline_current_mode = get(g:airline_mode_map, l:m, l:m) + else + let l:mode = ['inactive'] + let w:airline_current_mode = get(g:airline_mode_map, '__') + endif + + if g:airline_detect_modified + if &modified + call add(l:mode, 'modified') + endif + endif + + if g:airline_detect_paste && &paste + call add(l:mode, 'paste') + endif + + let mode_string = join(l:mode) + if get(w:, 'airline_lastmode', '') != mode_string + call airline#highlighter#highlight_modified_inactive(context.bufnr) + call airline#highlighter#highlight(l:mode) + let w:airline_lastmode = mode_string + endif + + return '' +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/builder.vim b/vim/.vim/bundle/vim-airline/autoload/airline/builder.vim new file mode 100644 index 0000000..d03af12 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/builder.vim @@ -0,0 +1,74 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +let s:prototype = {} + +function! s:prototype.split(...) + let self._side = 0 + let self._line .= '%#'.self._curgroup.'#'.(a:0 ? a:1 : '%=') +endfunction + +function! s:prototype.add_section_spaced(group, contents) + call self.add_section(a:group, (g:airline_symbols.space).a:contents.(g:airline_symbols.space)) +endfunction + +function! s:prototype.add_section(group, contents) + if self._curgroup != '' + if self._curgroup == a:group + let self._line .= self._side ? self._context.left_alt_sep : self._context.right_alt_sep + else + call airline#highlighter#add_separator(self._curgroup, a:group, self._side) + let self._line .= '%#'.self._curgroup.'_to_'.a:group.'#' + let self._line .= self._side ? self._context.left_sep : self._context.right_sep + endif + endif + + if self._curgroup != a:group + let self._line .= '%#'.a:group.'#' + endif + + if self._context.active + let contents = [] + let content_parts = split(a:contents, '__accent') + for cpart in content_parts + let accent = matchstr(cpart, '_\zs[^#]*\ze') + call add(contents, cpart) + endfor + let line = join(contents, a:group) + let line = substitute(line, '__restore__', a:group, 'g') + else + let line = substitute(a:contents, '%#__accent[^#]*#', '', 'g') + let line = substitute(line, '%#__restore__#', '', 'g') + endif + + let self._line .= line + let self._curgroup = a:group +endfunction + +function! s:prototype.add_raw(text) + let self._line .= a:text +endfunction + +function! s:prototype.build() + if !self._context.active + let self._line = substitute(self._line, '%#.\{-}\ze#', '\0_inactive', 'g') + endif + return self._line +endfunction + +function! airline#builder#new(context) + let builder = copy(s:prototype) + let builder._context = a:context + let builder._side = 1 + let builder._curgroup = '' + let builder._line = '' + + call extend(builder._context, { + \ 'left_sep': g:airline_left_sep, + \ 'left_alt_sep': g:airline_left_alt_sep, + \ 'right_sep': g:airline_right_sep, + \ 'right_alt_sep': g:airline_right_alt_sep, + \ }, 'keep') + return builder +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/debug.vim b/vim/.vim/bundle/vim-airline/autoload/airline/debug.vim new file mode 100644 index 0000000..28424a6 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/debug.vim @@ -0,0 +1,50 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +function! airline#debug#profile1() + profile start airline-profile-switch.log + profile func * + profile file * + split + for i in range(1, 1000) + wincmd w + redrawstatus + endfor + profile pause + noautocmd qall! +endfunction + +function! airline#debug#profile2() + profile start airline-profile-cursor.log + profile func * + profile file * + edit blank + call setline(1, 'all your base are belong to us') + call setline(2, 'all your base are belong to us') + let positions = [[1,2], [2,2], [1,2], [1,1]] + for i in range(1, 1000) + for pos in positions + call cursor(pos[0], pos[1]) + redrawstatus + endfor + endfor + profile pause + noautocmd qall! +endfunction + +function! airline#debug#profile3() + profile start airline-profile-mode.log + profile func * + profile file * + + for i in range(1000) + startinsert + redrawstatus + stopinsert + redrawstatus + endfor + + profile pause + noautocmd qall! +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/deprecation.vim b/vim/.vim/bundle/vim-airline/autoload/airline/deprecation.vim new file mode 100644 index 0000000..cf7e787 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/deprecation.vim @@ -0,0 +1,32 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +function! airline#deprecation#check() + if exists('g:airline_enable_fugitive') || exists('g:airline_fugitive_prefix') + echom 'The g:airline_enable_fugitive and g:airline_fugitive_prefix variables are obsolete. Please read the documentation about the branch extension.' + endif + + let tests = [ + \ [ 'g:airline_paste_symbol', 'g:airline_symbols.paste' ], + \ [ 'g:airline_readonly_symbol', 'g:airline_symbols.readonly' ], + \ [ 'g:airline_linecolumn_prefix', 'g:airline_symbols.linenr' ], + \ [ 'g:airline_branch_prefix', 'g:airline_symbols.branch' ], + \ [ 'g:airline_branch_empty_message', 'g:airline#extensions#branch#empty_message' ], + \ [ 'g:airline_detect_whitespace', 'g:airline#extensions#whitespace#enabled|show_message' ], + \ [ 'g:airline_enable_hunks', 'g:airline#extensions#hunks#enabled' ], + \ [ 'g:airline_enable_tagbar', 'g:airline#extensions#tagbar#enabled' ], + \ [ 'g:airline_enable_csv', 'g:airline#extensions#csv#enabled' ], + \ [ 'g:airline_enable_branch', 'g:airline#extensions#branch#enabled' ], + \ [ 'g:airline_enable_bufferline', 'g:airline#extensions#bufferline#enabled' ], + \ [ 'g:airline_enable_syntastic', 'g:airline#extensions#syntastic#enabled' ], + \ [ 'g:airline_enable_eclim', 'g:airline#extensions#eclim#enabled' ], + \ ] + for test in tests + if exists(test[0]) + let max = winwidth(0) - 16 + let msg = printf('The variable %s is deprecated and may not work in the future. It has been replaced with %s. Please read the documentation.', test[0], test[1]) + echom msg[:max].'...' + endif + endfor +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions.vim new file mode 100644 index 0000000..461d1c3 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions.vim @@ -0,0 +1,234 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +let s:ext = {} +let s:ext._theme_funcrefs = [] + +function! s:ext.add_statusline_func(name) dict + call airline#add_statusline_func(a:name) +endfunction +function! s:ext.add_statusline_funcref(function) dict + call airline#add_statusline_funcref(a:function) +endfunction +function! s:ext.add_inactive_statusline_func(name) dict + call airline#add_inactive_statusline_func(a:name) +endfunction +function! s:ext.add_theme_func(name) dict + call add(self._theme_funcrefs, function(a:name)) +endfunction + +let s:script_path = tolower(resolve(expand(':p:h'))) + +let s:filetype_overrides = { + \ 'nerdtree': [ 'NERD', '' ], + \ 'gundo': [ 'Gundo', '' ], + \ 'diff': [ 'diff', '' ], + \ 'vimfiler': [ 'vimfiler', '%{vimfiler#get_status_string()}' ], + \ 'minibufexpl': [ 'MiniBufExplorer', '' ], + \ 'startify': [ 'startify', '' ], + \ } + +let s:filetype_regex_overrides = {} + +function! s:check_defined_section(name) + if !exists('w:airline_section_{a:name}') + let w:airline_section_{a:name} = g:airline_section_{a:name} + endif +endfunction + +function! airline#extensions#append_to_section(name, value) + call check_defined_section(a:name) + let w:airline_section_{a:name} .= a:value +endfunction + +function! airline#extensions#prepend_to_section(name, value) + call check_defined_section(a:name) + let w:airline_section_{a:name} = a:value . w:airline_section_{a:name} +endfunction + +function! airline#extensions#apply_left_override(section1, section2) + let w:airline_section_a = a:section1 + let w:airline_section_b = a:section2 + let w:airline_section_c = airline#section#create(['readonly']) + let w:airline_render_left = 1 + let w:airline_render_right = 0 +endfunction + +let s:active_winnr = -1 +function! airline#extensions#apply(...) + let s:active_winnr = winnr() + + if s:is_excluded_window() + return -1 + endif + + if &buftype == 'help' + call airline#extensions#apply_left_override('Help', '%f') + let w:airline_section_x = '' + let w:airline_section_y = '' + let w:airline_render_right = 1 + endif + + if &previewwindow + let w:airline_section_a = 'Preview' + let w:airline_section_b = '' + let w:airline_section_c = bufname(winbufnr(winnr())) + endif + + if has_key(s:filetype_overrides, &ft) + let args = s:filetype_overrides[&ft] + call airline#extensions#apply_left_override(args[0], args[1]) + endif + + for item in items(s:filetype_regex_overrides) + if match(&ft, item[0]) >= 0 + call airline#extensions#apply_left_override(item[1][0], item[1][1]) + endif + endfor +endfunction + +function! s:is_excluded_window() + for matchft in g:airline_exclude_filetypes + if matchft ==# &ft + return 1 + endif + endfor + + for matchw in g:airline_exclude_filenames + if matchstr(expand('%'), matchw) ==# matchw + return 1 + endif + endfor + + if g:airline_exclude_preview && &previewwindow + return 1 + endif + + return 0 +endfunction + +function! airline#extensions#load_theme() + call airline#util#exec_funcrefs(s:ext._theme_funcrefs, g:airline#themes#{g:airline_theme}#palette) +endfunction + +function! s:sync_active_winnr() + if exists('#airline') && winnr() != s:active_winnr + call airline#update_statusline() + endif +endfunction + +function! airline#extensions#load() + " non-trivial number of external plugins use eventignore=all, so we need to account for that + autocmd CursorMoved * call sync_active_winnr() + + call airline#extensions#quickfix#init(s:ext) + + if get(g:, 'loaded_unite', 0) + call airline#extensions#unite#init(s:ext) + endif + + if exists(':NetrwSettings') + call airline#extensions#netrw#init(s:ext) + endif + + if get(g:, 'loaded_vimfiler', 0) + let g:vimfiler_force_overwrite_statusline = 0 + endif + + if get(g:, 'loaded_ctrlp', 0) + call airline#extensions#ctrlp#init(s:ext) + endif + + if get(g:, 'command_t_loaded', 0) + call airline#extensions#commandt#init(s:ext) + endif + + if exists(':UndotreeToggle') + call airline#extensions#undotree#init(s:ext) + endif + + if (get(g:, 'airline#extensions#hunks#enabled', 1) && get(g:, 'airline_enable_hunks', 1)) + \ && (exists('g:loaded_signify') || exists('g:loaded_gitgutter')) + call airline#extensions#hunks#init(s:ext) + endif + + if (get(g:, 'airline#extensions#tagbar#enabled', 1) && get(g:, 'airline_enable_tagbar', 1)) + \ && exists(':TagbarToggle') + call airline#extensions#tagbar#init(s:ext) + endif + + if (get(g:, 'airline#extensions#csv#enabled', 1) && get(g:, 'airline_enable_csv', 1)) + \ && (get(g:, 'loaded_csv', 0) || exists(':Table')) + call airline#extensions#csv#init(s:ext) + endif + + if exists(':VimShell') + let s:filetype_overrides['vimshell'] = ['vimshell','%{vimshell#get_status_string()}'] + let s:filetype_regex_overrides['^int-'] = ['vimshell','%{substitute(&ft, "int-", "", "")}'] + endif + + if (get(g:, 'airline#extensions#branch#enabled', 1) && get(g:, 'airline_enable_branch', 1)) + \ && (exists('*fugitive#head') || exists('*lawrencium#statusline') || + \ (get(g:, 'airline#extensions#branch#use_vcscommand', 0) && exists('*VCSCommandGetStatusLine'))) + call airline#extensions#branch#init(s:ext) + endif + + if (get(g:, 'airline#extensions#bufferline#enabled', 1) && get(g:, 'airline_enable_bufferline', 1)) + \ && exists('*bufferline#get_status_string') + call airline#extensions#bufferline#init(s:ext) + endif + + if get(g:, 'virtualenv_loaded', 0) && get(g:, 'airline#extensions#virtualenv#enabled', 1) + call airline#extensions#virtualenv#init(s:ext) + endif + + if (get(g:, 'airline#extensions#eclim#enabled', 1) && exists(':ProjectCreate')) + call airline#extensions#eclim#init(s:ext) + endif + + if (get(g:, 'airline#extensions#syntastic#enabled', 1) && get(g:, 'airline_enable_syntastic', 1)) + \ && exists(':SyntasticCheck') + call airline#extensions#syntastic#init(s:ext) + endif + + if (get(g:, 'airline#extensions#whitespace#enabled', 1) && get(g:, 'airline_detect_whitespace', 1)) + call airline#extensions#whitespace#init(s:ext) + endif + + if get(g:, 'airline#extensions#tabline#enabled', 0) + call airline#extensions#tabline#init(s:ext) + endif + + if get(g:, 'airline#extensions#tmuxline#enabled', 1) && exists(':Tmuxline') + call airline#extensions#tmuxline#init(s:ext) + endif + + if get(g:, 'airline#extensions#promptline#enabled', 1) && exists(':PromptlineSnapshot') && len(get(g:, 'airline#extensions#promptline#snapshot_file', '')) + call airline#extensions#promptline#init(s:ext) + endif + + if get(g:, 'airline#extensions#nrrwrgn#enabled', 1) && exists(':NR') == 2 + call airline#extensions#nrrwrgn#init(s:ext) + endif + + if !get(g:, 'airline#extensions#disable_rtp_load', 0) + " load all other extensions, which are not part of the default distribution. + " (autoload/airline/extensions/*.vim outside of our s:script_path). + for file in split(globpath(&rtp, "autoload/airline/extensions/*.vim"), "\n") + " we have to check both resolved and unresolved paths, since it's possible + " that they might not get resolved properly (see #187) + if stridx(tolower(resolve(fnamemodify(file, ':p'))), s:script_path) < 0 + \ && stridx(tolower(fnamemodify(file, ':p')), s:script_path) < 0 + let name = fnamemodify(file, ':t:r') + if !get(g:, 'airline#extensions#'.name.'#enabled', 1) + continue + endif + try + call airline#extensions#{name}#init(s:ext) + catch + endtry + endif + endfor + endif +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/branch.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/branch.vim new file mode 100644 index 0000000..ceaa44b --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/branch.vim @@ -0,0 +1,108 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +let s:has_fugitive = exists('*fugitive#head') +let s:has_lawrencium = exists('*lawrencium#statusline') +let s:has_vcscommand = get(g:, 'airline#extensions#branch#use_vcscommand', 0) && exists('*VCSCommandGetStatusLine') + +if !s:has_fugitive && !s:has_lawrencium && !s:has_vcscommand + finish +endif + +let s:git_dirs = {} +function! s:get_git_branch(path) + if has_key(s:git_dirs, a:path) + return s:git_dirs[a:path] + endif + + let dir = fugitive#extract_git_dir(a:path) + if empty(dir) + let name = '' + else + try + let line = join(readfile(dir . '/HEAD')) + let name = strpart(line, 16) + catch + let name = '' + endtry + endif + + let s:git_dirs[a:path] = name + return name +endfunction + +function! airline#extensions#branch#head() + if exists('b:airline_head') && !empty(b:airline_head) + return b:airline_head + endif + + let b:airline_head = '' + + if s:has_fugitive && !exists('b:mercurial_dir') + let b:airline_head = fugitive#head() + + if empty(b:airline_head) && !exists('b:git_dir') + let b:airline_head = s:get_git_branch(expand("%:p:h")) + endif + endif + + if empty(b:airline_head) + if s:has_lawrencium + let b:airline_head = lawrencium#statusline() + endif + endif + + if empty(b:airline_head) + if s:has_vcscommand + call VCSCommandEnableBufferSetup() + if exists('b:VCSCommandBufferInfo') + let b:airline_head = get(b:VCSCommandBufferInfo, 0, '') + endif + endif + endif + + if empty(b:airline_head) || !s:check_in_path() + let b:airline_head = '' + endif + + return b:airline_head +endfunction + +function! airline#extensions#branch#get_head() + let head = airline#extensions#branch#head() + let empty_message = get(g:, 'airline#extensions#branch#empty_message', + \ get(g:, 'airline_branch_empty_message', '')) + let symbol = get(g:, 'airline#extensions#branch#symbol', g:airline_symbols.branch) + return empty(head) + \ ? empty_message + \ : printf('%s%s', empty(symbol) ? '' : symbol.(g:airline_symbols.space), head) +endfunction + +function! s:check_in_path() + if !exists('b:airline_branch_path') + let root = get(b:, 'git_dir', get(b:, 'mercurial_dir', '')) + let bufferpath = resolve(fnamemodify(expand('%'), ':p')) + + if !filereadable(root) "not a file + " if .git is a directory, it's the old submodule format + if match(root, '\.git$') >= 0 + let root = expand(fnamemodify(root, ':h')) + else + " else it's the newer format, and we need to guesstimate + let pattern = '\.git\(\\\|\/\)modules\(\\\|\/\)' + if match(root, pattern) >= 0 + let root = substitute(root, pattern, '', '') + endif + endif + + let b:airline_file_in_root = stridx(bufferpath, root) > -1 + endif + return b:airline_file_in_root +endfunction + +function! airline#extensions#branch#init(ext) + call airline#parts#define_function('branch', 'airline#extensions#branch#get_head') + + autocmd BufReadPost * unlet! b:airline_file_in_root + autocmd CursorHold,ShellCmdPost,CmdwinLeave * unlet! b:airline_head +endfunction diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/bufferline.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/bufferline.vim new file mode 100644 index 0000000..6dc97fe --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/bufferline.vim @@ -0,0 +1,23 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !exists('*bufferline#get_status_string') + finish +endif + +let s:overwrite = get(g:, 'airline#extensions#bufferline#overwrite_variables', 1) + +function! airline#extensions#bufferline#init(ext) + if s:overwrite + highlight bufferline_selected gui=bold cterm=bold term=bold + highlight link bufferline_selected_inactive airline_c_inactive + let g:bufferline_inactive_highlight = 'airline_c' + let g:bufferline_active_highlight = 'bufferline_selected' + let g:bufferline_active_buffer_left = '' + let g:bufferline_active_buffer_right = '' + let g:bufferline_separator = g:airline_symbols.space + endif + + call airline#parts#define_raw('file', '%{bufferline#refresh_status()}'.bufferline#get_status_string()) +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/commandt.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/commandt.vim new file mode 100644 index 0000000..e549f27 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/commandt.vim @@ -0,0 +1,16 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !get(g:, 'command_t_loaded', 0) + finish +endif + +function! airline#extensions#commandt#apply(...) + if bufname('%') ==# 'GoToFile' + call airline#extensions#apply_left_override('CommandT', '') + endif +endfunction + +function! airline#extensions#commandt#init(ext) + call a:ext.add_statusline_func('airline#extensions#commandt#apply') +endfunction diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/csv.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/csv.vim new file mode 100644 index 0000000..2c296ab --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/csv.vim @@ -0,0 +1,31 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !get(g:, 'loaded_csv', 0) && !exists(':Table') + finish +endif + +let s:column_display = get(g:, 'airline#extensions#csv#column_display', 'Number') + +function! airline#extensions#csv#get_column() + if exists('*CSV_WCol') + if s:column_display ==# 'Name' + return '['.CSV_WCol('Name').CSV_WCol().']' + else + return '['.CSV_WCol().']' + endif + endif + return '' +endfunction + +function! airline#extensions#csv#apply(...) + if &ft ==# "csv" + call airline#extensions#prepend_to_section('gutter', + \ g:airline_left_alt_sep.' %{airline#extensions#csv#get_column()}') + endif +endfunction + +function! airline#extensions#csv#init(ext) + call a:ext.add_statusline_func('airline#extensions#csv#apply') +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/ctrlp.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/ctrlp.vim new file mode 100644 index 0000000..11a8922 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/ctrlp.vim @@ -0,0 +1,77 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !get(g:, 'loaded_ctrlp', 0) + finish +endif + +let s:color_template = get(g:, 'airline#extensions#ctrlp#color_template', 'insert') + +function! airline#extensions#ctrlp#generate_color_map(dark, light, white) + return { + \ 'CtrlPdark' : a:dark, + \ 'CtrlPlight' : a:light, + \ 'CtrlPwhite' : a:white, + \ 'CtrlParrow1' : [ a:light[1] , a:white[1] , a:light[3] , a:white[3] , '' ] , + \ 'CtrlParrow2' : [ a:white[1] , a:light[1] , a:white[3] , a:light[3] , '' ] , + \ 'CtrlParrow3' : [ a:light[1] , a:dark[1] , a:light[3] , a:dark[3] , '' ] , + \ } +endfunction + +function! airline#extensions#ctrlp#load_theme(palette) + if exists('a:palette.ctrlp') + let theme = a:palette.ctrlp + else + let s:color_template = has_key(a:palette, s:color_template) ? s:color_template : 'insert' + let theme = airline#extensions#ctrlp#generate_color_map( + \ a:palette[s:color_template]['airline_c'], + \ a:palette[s:color_template]['airline_b'], + \ a:palette[s:color_template]['airline_a']) + endif + for key in keys(theme) + call airline#highlighter#exec(key, theme[key]) + endfor +endfunction + +" Arguments: focus, byfname, regexp, prv, item, nxt, marked +function! airline#extensions#ctrlp#ctrlp_airline(...) + let b = airline#builder#new({'active': 1}) + if a:3 + call b.add_section_spaced('CtrlPlight', 'regex') + endif + if get(g:, 'airline#extensions#ctrlp#show_adjacent_modes', 1) + call b.add_section_spaced('CtrlPlight', a:4) + call b.add_section_spaced('CtrlPwhite', a:5) + call b.add_section_spaced('CtrlPlight', a:6) + else + call b.add_section_spaced('CtrlPwhite', a:5) + endif + call b.add_section_spaced('CtrlPdark', a:7) + call b.split() + call b.add_raw('%#CtrlPdark#'.a:1.(g:airline_symbols.space)) + call b.add_section_spaced('CtrlPdark', a:2) + call b.add_section_spaced('CtrlPlight', '%{getcwd()}') + return b.build() +endfunction + +" Argument: len +function! airline#extensions#ctrlp#ctrlp_airline_status(...) + let len = '%#CtrlPdark# '.a:1 + let dir = '%=%<%#CtrlParrow3#'.g:airline_right_sep.'%#CtrlPlight# '.getcwd().' %*' + return len.dir +endfunction + +function! airline#extensions#ctrlp#apply(...) + " disable statusline overwrite if ctrlp already did it + return match(&statusline, 'CtrlPwhite') >= 0 ? -1 : 0 +endfunction + +function! airline#extensions#ctrlp#init(ext) + let g:ctrlp_status_func = { + \ 'main': 'airline#extensions#ctrlp#ctrlp_airline', + \ 'prog': 'airline#extensions#ctrlp#ctrlp_airline_status', + \ } + call a:ext.add_statusline_func('airline#extensions#ctrlp#apply') + call a:ext.add_theme_func('airline#extensions#ctrlp#load_theme') +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim new file mode 100644 index 0000000..d01349d --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim @@ -0,0 +1,77 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +let s:section_truncate_width = get(g:, 'airline#extensions#default#section_truncate_width', { + \ 'b': 79, + \ 'x': 60, + \ 'y': 88, + \ 'z': 45, + \ }) +let s:layout = get(g:, 'airline#extensions#default#layout', [ + \ [ 'a', 'b', 'c' ], + \ [ 'x', 'y', 'z', 'warning' ] + \ ]) + +function! s:get_section(winnr, key, ...) + if has_key(s:section_truncate_width, a:key) + if winwidth(a:winnr) < s:section_truncate_width[a:key] + return '' + endif + endif + let spc = g:airline_symbols.space + let text = airline#util#getwinvar(a:winnr, 'airline_section_'.a:key, g:airline_section_{a:key}) + let [prefix, suffix] = [get(a:000, 0, '%('.spc), get(a:000, 1, spc.'%)')] + return empty(text) ? '' : prefix.text.suffix +endfunction + +function! s:build_sections(builder, context, keys) + for key in a:keys + if key == 'warning' && !a:context.active + continue + endif + call s:add_section(a:builder, a:context, key) + endfor +endfunction + +if v:version >= 704 || (v:version >= 703 && has('patch81')) + function s:add_section(builder, context, key) + " i have no idea why the warning section needs special treatment, but it's + " needed to prevent separators from showing up + if a:key == 'warning' + call a:builder.add_raw('%(') + endif + call a:builder.add_section('airline_'.a:key, s:get_section(a:context.winnr, a:key)) + if a:key == 'warning' + call a:builder.add_raw('%)') + endif + endfunction +else + " older version don't like the use of %(%) + function s:add_section(builder, context, key) + if a:key == 'warning' + call a:builder.add_raw('%#airline_warning#'.s:get_section(a:context.winnr, a:key)) + else + call a:builder.add_section('airline_'.a:key, s:get_section(a:context.winnr, a:key)) + endif + endfunction +endif + +function! airline#extensions#default#apply(builder, context) + let winnr = a:context.winnr + let active = a:context.active + + if airline#util#getwinvar(winnr, 'airline_render_left', active || (!active && !g:airline_inactive_collapse)) + call build_sections(a:builder, a:context, s:layout[0]) + else + call a:builder.add_section('airline_c'.(a:context.bufnr), ' %f%m ') + endif + + call a:builder.split(s:get_section(winnr, 'gutter', '', '')) + + if airline#util#getwinvar(winnr, 'airline_render_right', 1) + call build_sections(a:builder, a:context, s:layout[1]) + endif + + return 1 +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/eclim.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/eclim.vim new file mode 100644 index 0000000..18cbae5 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/eclim.vim @@ -0,0 +1,41 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !exists(':ProjectCreate') + finish +endif + +function! airline#extensions#eclim#creat_line(...) + if &filetype == "tree" + let builder = a:1 + call builder.add_section('airline_a', ' Project ') + call builder.add_section('airline_b', ' %f ') + call builder.add_section('airline_c', '') + return 1 + endif +endfunction + +function! airline#extensions#eclim#get_warnings() + let eclimList = eclim#display#signs#GetExisting() + + if !empty(eclimList) + " Remove any non-eclim signs (see eclim#display#signs#Update) + call filter(eclimList, 'v:val.name =~ "^\\(qf_\\)\\?\\(error\\|info\\|warning\\)$"') + + if !empty(eclimList) + let errorsLine = eclimList[0]['line'] + let errorsNumber = len(eclimList) + let errors = "[Eclim: line:".string(errorsLine)." (".string(errorsNumber).")]" + if !exists(':SyntasticCheck') || SyntasticStatuslineFlag() == '' + return errors.(g:airline_symbols.space) + endif + endif + endif + return '' +endfunction + +function! airline#extensions#eclim#init(ext) + call airline#parts#define_function('eclim', 'airline#extensions#eclim#get_warnings') + call a:ext.add_statusline_func('airline#extensions#eclim#creat_line') +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/example.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/example.vim new file mode 100644 index 0000000..4a1932d --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/example.vim @@ -0,0 +1,54 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +" we don't actually want this loaded :P +finish + +" Due to some potential rendering issues, the use of the `space` variable is +" recommended. +let s:spc = g:airline_symbols.space + +" Extension specific variables can be defined the usual fashion. +if !exists('g:airline#extensions#example#number_of_cats') + let g:airline#extensions#example#number_of_cats = 42 +endif + +" First we define an init function that will be invoked from extensions.vim +function! airline#extensions#example#init(ext) + + " Here we define a new part for the plugin. This allows users to place this + " extension in arbitrary locations. + call airline#parts#define_raw('cats', '%{airline#extensions#example#get_cats()}') + + " Next up we add a funcref so that we can run some code prior to the + " statusline getting modifed. + call a:ext.add_statusline_func('airline#extensions#example#apply') + + " You can also add a funcref for inactive statuslines. + " call a:ext.add_inactive_statusline_func('airline#extensions#example#unapply') +endfunction + +" This function will be invoked just prior to the statusline getting modified. +function! airline#extensions#example#apply(...) + " First we check for the filetype. + if &filetype == "nyancat" + + " Let's say we want to append to section_c, first we check if there's + " already a window-local override, and if not, create it off of the global + " section_c. + let w:airline_section_c = get(w:, 'airline_section_c', g:airline_section_c) + + " Then we just append this extenion to it, optionally using separators. + let w:airline_section_c .= s:spc.g:airline_left_alt_sep.s:spc.'%{airline#extensions#example#get_cats()}' + endif +endfunction + +" Finally, this function will be invoked from the statusline. +function! airline#extensions#example#get_cats() + let cats = '' + for i in range(1, g:airline#extensions#example#number_of_cats) + let cats .= ' (,,,)=(^.^)=(,,,) ' + endfor + return cats +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim new file mode 100644 index 0000000..6827f5d --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim @@ -0,0 +1,67 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !get(g:, 'loaded_signify', 0) && !get(g:, 'loaded_gitgutter', 0) + finish +endif + +let s:non_zero_only = get(g:, 'airline#extensions#hunks#non_zero_only', 0) +let s:hunk_symbols = get(g:, 'airline#extensions#hunks#hunk_symbols', ['+', '~', '-']) + +function! s:get_hunks_signify() + let hunks = sy#repo#get_stats() + if hunks[0] >= 0 + return hunks + endif + return [] +endfunction + +function! s:is_branch_empty() + return exists('*airline#extensions#branch#head') && empty(airline#extensions#branch#head()) +endfunction + +function! s:get_hunks_gitgutter() + if !get(g:, 'gitgutter_enabled', 0) || s:is_branch_empty() + return '' + endif + return GitGutterGetHunkSummary() +endfunction + +function! s:get_hunks_empty() + return '' +endfunction + +let s:source_func = '' +function! s:get_hunks() + if empty(s:source_func) + if get(g:, 'loaded_signify', 0) + let s:source_func = 's:get_hunks_signify' + elseif exists('*GitGutterGetHunkSummary') + let s:source_func = 's:get_hunks_gitgutter' + else + let s:source_func = 's:get_hunks_empty' + endif + endif + return {s:source_func}() +endfunction + +function! airline#extensions#hunks#get_hunks() + if !get(w:, 'airline_active', 0) + return '' + endif + let hunks = s:get_hunks() + let string = '' + if !empty(hunks) + for i in [0, 1, 2] + if s:non_zero_only == 0 || hunks[i] > 0 + let string .= printf('%s%s ', s:hunk_symbols[i], hunks[i]) + endif + endfor + endif + return string +endfunction + +function! airline#extensions#hunks#init(ext) + call airline#parts#define_function('hunks', 'airline#extensions#hunks#get_hunks') +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim new file mode 100644 index 0000000..debb088 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim @@ -0,0 +1,32 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !exists(':NetrwSettings') + finish +endif + +function! airline#extensions#netrw#apply(...) + if &ft == 'netrw' + let spc = g:airline_symbols.space + + call a:1.add_section('airline_a', spc.'netrw'.spc) + if exists('*airline#extensions#branch#get_head') + call a:1.add_section('airline_b', spc.'%{airline#extensions#branch#get_head()}'.spc) + endif + call a:1.add_section('airline_c', spc.'%f'.spc) + call a:1.split() + call a:1.add_section('airline_y', spc.'%{airline#extensions#netrw#sortstring()}'.spc) + return 1 + endif +endfunction + +function! airline#extensions#netrw#init(ext) + let g:netrw_force_overwrite_statusline = 0 + call a:ext.add_statusline_func('airline#extensions#netrw#apply') +endfunction + + +function! airline#extensions#netrw#sortstring() + let order = (g:netrw_sort_direction =~ 'n') ? '+' : '-' + return g:netrw_sort_by . (g:airline_symbols.space) . '[' . order . ']' +endfunction diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/nrrwrgn.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/nrrwrgn.vim new file mode 100644 index 0000000..2281598 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/nrrwrgn.vim @@ -0,0 +1,24 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !get(g:, 'loaded_nrrw_rgn', 0) + finish +endif + +function! airline#extensions#nrrwrgn#apply(...) + if exists(":WidenRegion") == 2 + let spc = g:airline_symbols.space + call a:1.add_section('airline_a', printf('%s[Narrowed%s#%d]', spc, spc, b:nrrw_instn)) + if exists('*airline#extensions#branch#get_head') + call a:1.add_section('airline_b', spc.'%{airline#extensions#branch#get_head()}'.spc) + endif + let bufname=(get(b:, 'orig_buf', 0) ? bufname(b:orig_buf) : substitute(bufname('%'), '^Nrrwrgn_\zs.*\ze_\d\+$', submatch(0), '')) + call a:1.add_section('airline_c', spc.bufname.spc) + call a:1.split() + return 1 + endif +endfunction + +function! airline#extensions#nrrwrgn#init(ext) + call a:ext.add_statusline_func('airline#extensions#nrrwrgn#apply') +endfunction diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/promptline.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/promptline.vim new file mode 100644 index 0000000..50b9708 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/promptline.vim @@ -0,0 +1,33 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !exists(':PromptlineSnapshot') + finish +endif + +if !exists('airline#extensions#promptline#snapshot_file') || !len('airline#extensions#promptline#snapshot_file') + finish +endif + +let s:prompt_snapshot_file = get(g:, 'airline#extensions#promptline#snapshot_file', '') +let s:color_template = get(g:, 'airline#extensions#promptline#color_template', 'normal') + +function! airline#extensions#promptline#init(ext) + call a:ext.add_theme_func('airline#extensions#promptline#set_prompt_colors') +endfunction + +function! airline#extensions#promptline#set_prompt_colors(palette) + let color_template = has_key(a:palette, s:color_template) ? s:color_template : 'normal' + let mode_palette = a:palette[color_template] + + if !has_key(g:, 'promptline_symbols') + let g:promptline_symbols = { + \ 'left' : g:airline_left_sep, + \ 'right' : g:airline_right_sep, + \ 'left_alt' : g:airline_left_alt_sep, + \ 'right_alt' : g:airline_right_alt_sep} + endif + + let promptline_theme = promptline#api#create_theme_from_airline(mode_palette) + call promptline#api#create_snapshot_with_theme(s:prompt_snapshot_file, promptline_theme) +endfunction diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim new file mode 100644 index 0000000..8efc527 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim @@ -0,0 +1,37 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +let g:airline#extensions#quickfix#quickfix_text = 'Quickfix' +let g:airline#extensions#quickfix#location_text = 'Location' + +function! airline#extensions#quickfix#apply(...) + if &buftype == 'quickfix' + let w:airline_section_a = s:get_text() + let w:airline_section_b = '%{get(w:, "quickfix_title", "")}' + let w:airline_section_c = '' + let w:airline_section_x = '' + endif +endfunction + +function! airline#extensions#quickfix#init(ext) + call a:ext.add_statusline_func('airline#extensions#quickfix#apply') +endfunction + +function! s:get_text() + redir => buffers + silent ls + redir END + + let nr = bufnr('%') + for buf in split(buffers, '\n') + if match(buf, '\v^\s*'.nr) > -1 + if match(buf, '\[Quickfix List\]') > -1 + return g:airline#extensions#quickfix#quickfix_text + else + return g:airline#extensions#quickfix#location_text + endif + endif + endfor + return '' +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim new file mode 100644 index 0000000..f7179af --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim @@ -0,0 +1,19 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !exists(':SyntasticCheck') + finish +endif + +function! airline#extensions#syntastic#get_warnings() + let errors = SyntasticStatuslineFlag() + if strlen(errors) > 0 + return errors.(g:airline_symbols.space) + endif + return '' +endfunction + +function! airline#extensions#syntastic#init(ext) + call airline#parts#define_function('syntastic', 'airline#extensions#syntastic#get_warnings') +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim new file mode 100644 index 0000000..ec75db7 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim @@ -0,0 +1,278 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +let s:formatter = get(g:, 'airline#extensions#tabline#formatter', 'default') +let s:excludes = get(g:, 'airline#extensions#tabline#excludes', []) +let s:tab_nr_type = get(g:, 'airline#extensions#tabline#tab_nr_type', 0) +let s:show_buffers = get(g:, 'airline#extensions#tabline#show_buffers', 1) +let s:show_tab_nr = get(g:, 'airline#extensions#tabline#show_tab_nr', 1) +let s:show_tab_type = get(g:, 'airline#extensions#tabline#show_tab_type', 1) +let s:close_symbol = get(g:, 'airline#extensions#tabline#close_symbol', 'X') + +let s:builder_context = { + \ 'active' : 1, + \ 'right_sep' : get(g:, 'airline#extensions#tabline#right_sep' , g:airline_right_sep), + \ 'right_alt_sep' : get(g:, 'airline#extensions#tabline#right_alt_sep', g:airline_right_alt_sep), + \ } +if get(g:, 'airline_powerline_fonts', 0) + let s:builder_context.left_sep = get(g:, 'airline#extensions#tabline#left_sep' , "\ue0b0") + let s:builder_context.left_alt_sep = get(g:, 'airline#extensions#tabline#left_alt_sep' , "\ue0b1") +else + let s:builder_context.left_sep = get(g:, 'airline#extensions#tabline#left_sep' , ' ') + let s:builder_context.left_alt_sep = get(g:, 'airline#extensions#tabline#left_alt_sep' , '|') +endif + +let s:buf_min_count = get(g:, 'airline#extensions#tabline#buffer_min_count', 0) +let s:tab_min_count = get(g:, 'airline#extensions#tabline#tab_min_count', 0) +let s:spc = g:airline_symbols.space + +function! airline#extensions#tabline#init(ext) + if has('gui_running') + set guioptions-=e + endif + + autocmd User AirlineToggledOn call s:toggle_on() + autocmd User AirlineToggledOff call s:toggle_off() + autocmd BufDelete * let s:current_bufnr = -1 + + call s:toggle_on() + call a:ext.add_theme_func('airline#extensions#tabline#load_theme') +endfunction + +function! s:toggle_off() + if exists('s:original_tabline') + let &tabline = s:original_tabline + let &showtabline = s:original_showtabline + endif +endfunction + +function! s:toggle_on() + let [ s:original_tabline, s:original_showtabline ] = [ &tabline, &showtabline ] + + set tabline=%!airline#extensions#tabline#get() + if s:buf_min_count <= 0 && s:tab_min_count <= 1 + set showtabline=2 + else + augroup airline_tabline + autocmd! + if s:show_buffers == 1 + autocmd CursorMoved * call on_cursormove(s:buf_min_count, len(s:get_buffer_list())) + else + autocmd TabEnter * call on_cursormove(s:tab_min_count, tabpagenr('$')) + endif + augroup END + endif +endfunction + +function! airline#extensions#tabline#load_theme(palette) + let colors = get(a:palette, 'tabline', {}) + let l:tab = get(colors, 'airline_tab', a:palette.normal.airline_b) + let l:tabsel = get(colors, 'airline_tabsel', a:palette.normal.airline_a) + let l:tabtype = get(colors, 'airline_tabtype', a:palette.visual.airline_a) + let l:tabfill = get(colors, 'airline_tabfill', a:palette.normal.airline_c) + let l:tabmod = get(colors, 'airline_tabmod', a:palette.insert.airline_a) + let l:tabhid = get(colors, 'airline_tabhid', a:palette.normal.airline_c) + call airline#highlighter#exec('airline_tab', l:tab) + call airline#highlighter#exec('airline_tabsel', l:tabsel) + call airline#highlighter#exec('airline_tabtype', l:tabtype) + call airline#highlighter#exec('airline_tabfill', l:tabfill) + call airline#highlighter#exec('airline_tabmod', l:tabmod) + call airline#highlighter#exec('airline_tabhid', l:tabhid) +endfunction + +function! s:on_cursormove(min_count, total_count) + if a:total_count >= a:min_count + if &showtabline != 2 + set showtabline=2 + endif + else + if &showtabline != 0 + set showtabline=0 + endif + endif +endfunction + +function! airline#extensions#tabline#get() + if s:show_buffers && tabpagenr('$') == 1 + return s:get_buffers() + else + return s:get_tabs() + endif +endfunction + +function! airline#extensions#tabline#title(n) + let buflist = tabpagebuflist(a:n) + let winnr = tabpagewinnr(a:n) + return airline#extensions#tabline#get_buffer_name(buflist[winnr - 1]) +endfunction + +function! airline#extensions#tabline#get_buffer_name(nr) + return airline#extensions#tabline#{s:formatter}#format(a:nr, get(s:, 'current_buffer_list', s:get_buffer_list())) +endfunction + +function! s:get_buffer_list() + let buffers = [] + let cur = bufnr('%') + for nr in range(1, bufnr('$')) + if buflisted(nr) && bufexists(nr) + for ex in s:excludes + if match(bufname(nr), ex) + continue + endif + endfor + if getbufvar(nr, 'current_syntax') == 'qf' + continue + endif + call add(buffers, nr) + endif + endfor + + let s:current_buffer_list = buffers + return buffers +endfunction + +function! s:get_visible_buffers() + let buffers = s:get_buffer_list() + let cur = bufnr('%') + + let total_width = 0 + let max_width = 0 + + for nr in buffers + let width = len(airline#extensions#tabline#get_buffer_name(nr)) + 4 + let total_width += width + let max_width = max([max_width, width]) + endfor + + " only show current and surrounding buffers if there are too many buffers + let position = index(buffers, cur) + let vimwidth = &columns + if total_width > vimwidth && position > -1 + let buf_count = len(buffers) + + " determine how many buffers to show based on the longest buffer width, + " use one on the right side and put the rest on the left + let buf_max = vimwidth / max_width + let buf_right = 1 + let buf_left = max([0, buf_max - buf_right]) + + let start = max([0, position - buf_left]) + let end = min([buf_count, position + buf_right]) + + " fill up available space on the right + if position < buf_left + let end += (buf_left - position) + endif + + " fill up available space on the left + if end > buf_count - 1 - buf_right + let start -= max([0, buf_right - (buf_count - 1 - position)]) + endif + + let buffers = eval('buffers[' . start . ':' . end . ']') + + if start > 0 + call insert(buffers, -1, 0) + endif + + if end < buf_count - 1 + call add(buffers, -1) + endif + endif + + return buffers +endfunction + +let s:current_bufnr = -1 +let s:current_tabnr = -1 +let s:current_tabline = '' +let s:current_modified = 0 +function! s:get_buffers() + let cur = bufnr('%') + if cur == s:current_bufnr + if !g:airline_detect_modified || getbufvar(cur, '&modified') == s:current_modified + return s:current_tabline + endif + endif + + let b = airline#builder#new(s:builder_context) + let tab_bufs = tabpagebuflist(tabpagenr()) + for nr in s:get_visible_buffers() + if nr < 0 + call b.add_raw('%#airline_tabhid#...') + continue + endif + if cur == nr + if g:airline_detect_modified && getbufvar(nr, '&modified') + let group = 'airline_tabmod' + else + let group = 'airline_tabsel' + endif + let s:current_modified = (group == 'airline_tabmod') ? 1 : 0 + else + if index(tab_bufs, nr) > -1 + let group = 'airline_tab' + else + let group = 'airline_tabhid' + endif + endif + call b.add_section(group, s:spc.'%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)'.s:spc) + endfor + + call b.add_section('airline_tabfill', '') + call b.split() + call b.add_section('airline_tabtype', ' buffers ') + + let s:current_bufnr = cur + let s:current_tabline = b.build() + return s:current_tabline +endfunction + +function! s:get_tabs() + let curbuf = bufnr('%') + let curtab = tabpagenr() + if curbuf == s:current_bufnr && curtab == s:current_tabnr + if !g:airline_detect_modified || getbufvar(curbuf, '&modified') == s:current_modified + return s:current_tabline + endif + endif + + let b = airline#builder#new(s:builder_context) + for i in range(1, tabpagenr('$')) + if i == curtab + let group = 'airline_tabsel' + if g:airline_detect_modified + for bi in tabpagebuflist(i) + if getbufvar(bi, '&modified') + let group = 'airline_tabmod' + endif + endfor + endif + let s:current_modified = (group == 'airline_tabmod') ? 1 : 0 + else + let group = 'airline_tab' + endif + let val = '%(' + if s:show_tab_nr + if s:tab_nr_type == 0 + let val .= ' %{len(tabpagebuflist('.i.'))}' + else + let val .= (g:airline_symbols.space).i + endif + endif + call b.add_section(group, val.'%'.i.'T %{airline#extensions#tabline#title('.i.')} %)') + endfor + + call b.add_raw('%T') + call b.add_section('airline_tabfill', '') + call b.split() + call b.add_section('airline_tab', ' %999X'.s:close_symbol.' ') + if s:show_tab_type + call b.add_section('airline_tabtype', ' tabs ') + endif + + let s:current_bufnr = curbuf + let s:current_tabnr = curtab + let s:current_tabline = b.build() + return s:current_tabline +endfunction diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/default.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/default.vim new file mode 100644 index 0000000..4f1ed40 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/default.vim @@ -0,0 +1,35 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +let s:fmod = get(g:, 'airline#extensions#tabline#fnamemod', ':~:.') +let s:fnamecollapse = get(g:, 'airline#extensions#tabline#fnamecollapse', 1) +let s:buf_nr_format = get(g:, 'airline#extensions#tabline#buffer_nr_format', '%s: ') +let s:buf_nr_show = get(g:, 'airline#extensions#tabline#buffer_nr_show', 0) +let s:buf_modified_symbol = g:airline_symbols.modified + +function! airline#extensions#tabline#default#format(bufnr, buffers) + let _ = '' + + let name = bufname(a:bufnr) + if empty(name) + let _ .= '[No Name]' + else + if s:fnamecollapse + let _ .= substitute(fnamemodify(name, s:fmod), '\v\w\zs.{-}\ze(\\|/)', '', 'g') + else + let _ .= fnamemodify(name, s:fmod) + endif + endif + + return airline#extensions#tabline#default#wrap_name(a:bufnr, _) +endfunction + +function! airline#extensions#tabline#default#wrap_name(bufnr, buffer_name) + let _ = s:buf_nr_show ? printf(s:buf_nr_format, a:bufnr) : '' + let _ .= substitute(a:buffer_name, '\\', '/', 'g') + + if getbufvar(a:bufnr, '&modified') == 1 + let _ .= s:buf_modified_symbol + endif + return _ +endfunction diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail.vim new file mode 100644 index 0000000..e4a790d --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail.vim @@ -0,0 +1,27 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +function! airline#extensions#tabline#unique_tail#format(bufnr, buffers) + let duplicates = {} + let tails = {} + let map = {} + for nr in a:buffers + let name = bufname(nr) + if empty(name) + let map[nr] = '[No Name]' + else + let tail = fnamemodify(name, ':t') + if has_key(tails, tail) + let duplicates[nr] = nr + endif + let tails[tail] = 1 + let map[nr] = airline#extensions#tabline#default#wrap_name(nr, tail) + endif + endfor + + for nr in values(duplicates) + let map[nr] = airline#extensions#tabline#default#wrap_name(nr, fnamemodify(bufname(nr), ':p:.')) + endfor + + return map[a:bufnr] +endfunction diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail_improved.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail_improved.vim new file mode 100644 index 0000000..6b13dcf --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail_improved.vim @@ -0,0 +1,89 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +let s:skip_symbol = '…' + +function! airline#extensions#tabline#unique_tail_improved#format(bufnr, buffers) + if len(a:buffers) <= 1 " don't need to compare bufnames if has less than one buffer opened + return airline#extensions#tabline#default#format(a:bufnr, a:buffers) + endif + + let curbuf_tail = fnamemodify(bufname(a:bufnr), ':t') + let do_deduplicate = 0 + let path_tokens = {} + + for nr in a:buffers + let name = bufname(nr) + if !empty(name) && nr != a:bufnr && fnamemodify(name, ':t') == curbuf_tail + let do_deduplicate = 1 + let tokens = reverse(split(substitute(fnamemodify(name, ':p:.:h'), '\\', '/', 'g'), '/')) + let token_index = 0 + for token in tokens + if token == '' | continue | endif + if token == '.' | break | endif + if !has_key(path_tokens, token_index) + let path_tokens[token_index] = {} + endif + let path_tokens[token_index][token] = 1 + let token_index += 1 + endfor + endif + endfor + + if do_deduplicate == 1 + let path = [] + let token_index = 0 + for token in reverse(split(substitute(fnamemodify(bufname(a:bufnr), ':p:.:h'), '\\', '/', 'g'), '/')) + if token == '.' | break | endif + let duplicated = 0 + let uniq = 1 + let single = 1 + if has_key(path_tokens, token_index) + let duplicated = 1 + if len(keys(path_tokens[token_index])) > 1 | let single = 0 | endif + if has_key(path_tokens[token_index], token) | let uniq = 0 | endif + endif + call insert(path, {'token': token, 'duplicated': duplicated, 'uniq': uniq, 'single': single}) + let token_index += 1 + endfor + + let buf_name = [curbuf_tail] + let has_uniq = 0 + let has_skipped = 0 + for token1 in reverse(path) + if !token1['duplicated'] && len(buf_name) > 1 + call insert(buf_name, s:skip_symbol) + let has_skipped = 0 + break + endif + + if has_uniq == 1 + call insert(buf_name, s:skip_symbol) + let has_skipped = 0 + break + endif + + if token1['uniq'] == 0 && token1['single'] == 1 + let has_skipped = 1 + else + if has_skipped == 1 + call insert(buf_name, s:skip_symbol) + let has_skipped = 0 + endif + call insert(buf_name, token1['token']) + endif + + if token1['uniq'] == 1 + let has_uniq = 1 + endif + endfor + + if has_skipped == 1 + call insert(buf_name, s:skip_symbol) + endif + + return airline#extensions#tabline#default#wrap_name(a:bufnr, join(buf_name, '/')) + else + return airline#extensions#tabline#default#format(a:bufnr, a:buffers) + endif +endfunction diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tagbar.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tagbar.vim new file mode 100644 index 0000000..56919a8 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tagbar.vim @@ -0,0 +1,45 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !exists(':TagbarToggle') + finish +endif + +let s:flags = get(g:, 'airline#extensions#tagbar#flags', '') +let s:spc = g:airline_symbols.space + +" Arguments: current, sort, fname +function! airline#extensions#tagbar#get_status(...) + let builder = airline#builder#new({ 'active': a:1 }) + call builder.add_section('airline_a', s:spc.'Tagbar'.s:spc) + call builder.add_section('airline_b', s:spc.a:2.s:spc) + call builder.add_section('airline_c', s:spc.a:3.s:spc) + return builder.build() +endfunction + +function! airline#extensions#tagbar#inactive_apply(...) + if getwinvar(a:2.winnr, '&filetype') == 'tagbar' + return -1 + endif +endfunction + +let s:airline_tagbar_last_lookup_time = 0 +let s:airline_tagbar_last_lookup_val = '' +function! airline#extensions#tagbar#currenttag() + if get(w:, 'airline_active', 0) + if s:airline_tagbar_last_lookup_time != localtime() + let s:airline_tagbar_last_lookup_val = tagbar#currenttag('%s', '', s:flags) + let s:airline_tagbar_last_lookup_time = localtime() + endif + return s:airline_tagbar_last_lookup_val + endif + return '' +endfunction + +function! airline#extensions#tagbar#init(ext) + call a:ext.add_inactive_statusline_func('airline#extensions#tagbar#inactive_apply') + let g:tagbar_status_func = 'airline#extensions#tagbar#get_status' + + call airline#parts#define_function('tagbar', 'airline#extensions#tagbar#currenttag') +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tmuxline.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tmuxline.vim new file mode 100644 index 0000000..363709b --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tmuxline.vim @@ -0,0 +1,26 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !exists(':Tmuxline') + finish +endif + +let s:tmuxline_snapshot_file = get(g:, 'airline#extensions#tmuxline#snapshot_file', '') +let s:color_template = get(g:, 'airline#extensions#tmuxline#color_template', 'normal') + +function! airline#extensions#tmuxline#init(ext) + call a:ext.add_theme_func('airline#extensions#tmuxline#set_tmux_colors') +endfunction + +function! airline#extensions#tmuxline#set_tmux_colors(palette) + let color_template = has_key(a:palette, s:color_template) ? s:color_template : 'normal' + let mode_palette = a:palette[color_template] + + let tmuxline_theme = tmuxline#api#create_theme_from_airline(mode_palette) + call tmuxline#api#set_theme(tmuxline_theme) + + if strlen(s:tmuxline_snapshot_file) + call tmuxline#api#snapshot(s:tmuxline_snapshot_file) + endif +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/undotree.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/undotree.vim new file mode 100644 index 0000000..f577ffd --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/undotree.vim @@ -0,0 +1,27 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !exists(':UndotreeToggle') + finish +endif + +function! airline#extensions#undotree#apply(...) + if exists('t:undotree') + if &ft == 'undotree' + if exists('*t:undotree.GetStatusLine') + call airline#extensions#apply_left_override('undo', '%{t:undotree.GetStatusLine()}') + else + call airline#extensions#apply_left_override('undotree', '%f') + endif + endif + + if &ft == 'diff' && exists('*t:diffpanel.GetStatusLine') + call airline#extensions#apply_left_override('diff', '%{t:diffpanel.GetStatusLine()}') + endif + endif +endfunction + +function! airline#extensions#undotree#init(ext) + call a:ext.add_statusline_func('airline#extensions#undotree#apply') +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim new file mode 100644 index 0000000..d230b6f --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim @@ -0,0 +1,23 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !get(g:, 'loaded_unite', 0) + finish +endif + +function! airline#extensions#unite#apply(...) + if &ft == 'unite' + call a:1.add_section('airline_a', ' Unite ') + call a:1.add_section('airline_b', ' %{get(unite#get_context(), "buffer_name", "")} ') + call a:1.add_section('airline_c', ' %{unite#get_status_string()} ') + call a:1.split() + call a:1.add_section('airline_y', ' %{get(unite#get_context(), "real_buffer_name", "")} ') + return 1 + endif +endfunction + +function! airline#extensions#unite#init(ext) + let g:unite_force_overwrite_statusline = 0 + call a:ext.add_statusline_func('airline#extensions#unite#apply') +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/virtualenv.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/virtualenv.vim new file mode 100644 index 0000000..f070c47 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/virtualenv.vim @@ -0,0 +1,20 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !get(g:, 'virtualenv_loaded', 0) + finish +endif + +let s:spc = g:airline_symbols.space + +function! airline#extensions#virtualenv#init(ext) + call a:ext.add_statusline_func('airline#extensions#virtualenv#apply') +endfunction + +function! airline#extensions#virtualenv#apply(...) + if &filetype =~ "python" + call airline#extensions#append_to_section('x', + \ s:spc.g:airline_right_alt_sep.s:spc.'%{virtualenv#statusline()}') + endif +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim new file mode 100644 index 0000000..8657412 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim @@ -0,0 +1,103 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +" http://got-ravings.blogspot.com/2008/10/vim-pr0n-statusline-whitespace-flags.html + +" for backwards compatibility +if exists('g:airline_detect_whitespace') + let s:show_message = g:airline_detect_whitespace == 1 +else + let s:show_message = get(g:, 'airline#extensions#whitespace#show_message', 1) +endif + +let s:symbol = get(g:, 'airline#extensions#whitespace#symbol', g:airline_symbols.whitespace) +let s:default_checks = ['indent', 'trailing'] + +let s:trailing_format = get(g:, 'airline#extensions#whitespace#trailing_format', 'trailing[%s]') +let s:mixed_indent_format = get(g:, 'airline#extensions#whitespace#mixed_indent_format', 'mixed-indent[%s]') +let s:indent_algo = get(g:, 'airline#extensions#whitespace#mixed_indent_algo', 0) + +let s:max_lines = get(g:, 'airline#extensions#whitespace#max_lines', 20000) + +let s:enabled = get(g:, 'airline#extensions#whitespace#enabled', 1) + +function! s:check_mixed_indent() + if s:indent_algo == 1 + " [] + " spaces before or between tabs are not allowed + let t_s_t = '(^\t* +\t\s*\S)' + " ( x count) + " count of spaces at the end of tabs should be less then tabstop value + let t_l_s = '(^\t+ {' . &ts . ',}' . '\S)' + return search('\v' . t_s_t . '|' . t_l_s, 'nw') + else + return search('\v(^\t+ +)|(^ +\t+)', 'nw') + endif +endfunction + +function! airline#extensions#whitespace#check() + if &readonly || !&modifiable || !s:enabled || line('$') > s:max_lines + return '' + endif + + if !exists('b:airline_whitespace_check') + let b:airline_whitespace_check = '' + let checks = get(g:, 'airline#extensions#whitespace#checks', s:default_checks) + + let trailing = 0 + if index(checks, 'trailing') > -1 + let trailing = search('\s$', 'nw') + endif + + let mixed = 0 + if index(checks, 'indent') > -1 + let mixed = s:check_mixed_indent() + endif + + if trailing != 0 || mixed != 0 + let b:airline_whitespace_check = s:symbol + if s:show_message + if trailing != 0 + let b:airline_whitespace_check .= (g:airline_symbols.space).printf(s:trailing_format, trailing) + endif + if mixed != 0 + let b:airline_whitespace_check .= (g:airline_symbols.space).printf(s:mixed_indent_format, mixed) + endif + endif + endif + endif + return b:airline_whitespace_check +endfunction! + +function! airline#extensions#whitespace#toggle() + if s:enabled + augroup airline_whitespace + autocmd! + augroup END + augroup! airline_whitespace + let s:enabled = 0 + else + call airline#extensions#whitespace#init() + let s:enabled = 1 + endif + + if exists("g:airline#extensions#whitespace#enabled") + let g:airline#extensions#whitespace#enabled = s:enabled + if s:enabled && match(g:airline_section_warning, '#whitespace#check') < 0 + let g:airline_section_warning .= airline#section#create(['whitespace']) + call airline#update_statusline() + endif + endif + echo 'Whitespace checking: '.(s:enabled ? 'Enabled' : 'Disabled') +endfunction + +function! airline#extensions#whitespace#init(...) + call airline#parts#define_function('whitespace', 'airline#extensions#whitespace#check') + + unlet! b:airline_whitespace_check + augroup airline_whitespace + autocmd! + autocmd CursorHold,BufWritePost * unlet! b:airline_whitespace_check + augroup END +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/highlighter.vim b/vim/.vim/bundle/vim-airline/autoload/airline/highlighter.vim new file mode 100644 index 0000000..65a95cc --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/highlighter.vim @@ -0,0 +1,156 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +let s:is_win32term = (has('win32') || has('win64')) && !has('gui_running') +let s:separators = {} +let s:accents = {} + +function! s:gui2cui(rgb, fallback) + if a:rgb == '' + return a:fallback + endif + let rgb = map(matchlist(a:rgb, '#\(..\)\(..\)\(..\)')[1:3], '0 + ("0x".v:val)') + let rgb = [rgb[0] > 127 ? 4 : 0, rgb[1] > 127 ? 2 : 0, rgb[2] > 127 ? 1 : 0] + return rgb[0]+rgb[1]+rgb[2] +endfunction + +function! s:get_syn(group, what) + " need to pass in mode, known to break on 7.3.547 + let mode = has('gui_running') ? 'gui' : 'cterm' + let color = synIDattr(synIDtrans(hlID(a:group)), a:what, mode) + if empty(color) || color == -1 + let color = synIDattr(synIDtrans(hlID('Normal')), a:what, mode) + endif + if empty(color) || color == -1 + if has('gui_running') + let color = a:what ==# 'fg' ? '#000000' : '#FFFFFF' + else + let color = a:what ==# 'fg' ? 0 : 1 + endif + endif + return color +endfunction + +function! s:get_array(fg, bg, opts) + let fg = a:fg + let bg = a:bg + return has('gui_running') + \ ? [ fg, bg, '', '', join(a:opts, ',') ] + \ : [ '', '', fg, bg, join(a:opts, ',') ] +endfunction + +function! airline#highlighter#get_highlight(group, ...) + let fg = s:get_syn(a:group, 'fg') + let bg = s:get_syn(a:group, 'bg') + let reverse = synIDattr(synIDtrans(hlID(a:group)), 'reverse', has('gui_running') ? 'gui' : 'term') + return reverse ? s:get_array(bg, fg, a:000) : s:get_array(fg, bg, a:000) +endfunction + +function! airline#highlighter#get_highlight2(fg, bg, ...) + let fg = s:get_syn(a:fg[0], a:fg[1]) + let bg = s:get_syn(a:bg[0], a:bg[1]) + return s:get_array(fg, bg, a:000) +endfunction + +function! airline#highlighter#exec(group, colors) + let colors = a:colors + if s:is_win32term + let colors[2] = s:gui2cui(get(colors, 0, ''), get(colors, 2, '')) + let colors[3] = s:gui2cui(get(colors, 1, ''), get(colors, 3, '')) + endif + exec printf('hi %s %s %s %s %s %s %s %s', + \ a:group, + \ get(colors, 0, '') != '' ? 'guifg='.colors[0] : '', + \ get(colors, 1, '') != '' ? 'guibg='.colors[1] : '', + \ get(colors, 2, '') != '' ? 'ctermfg='.colors[2] : '', + \ get(colors, 3, '') != '' ? 'ctermbg='.colors[3] : '', + \ get(colors, 4, '') != '' ? 'gui='.colors[4] : '', + \ get(colors, 4, '') != '' ? 'cterm='.colors[4] : '', + \ get(colors, 4, '') != '' ? 'term='.colors[4] : '') +endfunction + +function! s:exec_separator(dict, from, to, inverse, suffix) + let l:from = airline#themes#get_highlight(a:from.a:suffix) + let l:to = airline#themes#get_highlight(a:to.a:suffix) + let group = a:from.'_to_'.a:to.a:suffix + if a:inverse + let colors = [ l:from[1], l:to[1], l:from[3], l:to[3] ] + else + let colors = [ l:to[1], l:from[1], l:to[3], l:from[3] ] + endif + let a:dict[group] = colors + call airline#highlighter#exec(group, colors) +endfunction + +function! airline#highlighter#load_theme() + for winnr in filter(range(1, winnr('$')), 'v:val != winnr()') + call airline#highlighter#highlight_modified_inactive(winbufnr(winnr)) + endfor + call airline#highlighter#highlight(['inactive']) + call airline#highlighter#highlight(['normal']) +endfunction + +function! airline#highlighter#add_separator(from, to, inverse) + let s:separators[a:from.a:to] = [a:from, a:to, a:inverse] + call exec_separator({}, a:from, a:to, a:inverse, '') +endfunction + +function! airline#highlighter#add_accent(accent) + let s:accents[a:accent] = 1 +endfunction + +function! airline#highlighter#highlight_modified_inactive(bufnr) + if getbufvar(a:bufnr, '&modified') + let colors = exists('g:airline#themes#{g:airline_theme}#palette.inactive_modified.airline_c') + \ ? g:airline#themes#{g:airline_theme}#palette.inactive_modified.airline_c : [] + else + let colors = exists('g:airline#themes#{g:airline_theme}#palette.inactive.airline_c') + \ ? g:airline#themes#{g:airline_theme}#palette.inactive.airline_c : [] + endif + + if !empty(colors) + call airline#highlighter#exec('airline_c'.(a:bufnr).'_inactive', colors) + endif +endfunction + +function! airline#highlighter#highlight(modes) + let p = g:airline#themes#{g:airline_theme}#palette + + " draw the base mode, followed by any overrides + let mapped = map(a:modes, 'v:val == a:modes[0] ? v:val : a:modes[0]."_".v:val') + let suffix = a:modes[0] == 'inactive' ? '_inactive' : '' + for mode in mapped + if exists('g:airline#themes#{g:airline_theme}#palette[mode]') + let dict = g:airline#themes#{g:airline_theme}#palette[mode] + for kvp in items(dict) + let mode_colors = kvp[1] + call airline#highlighter#exec(kvp[0].suffix, mode_colors) + + for accent in keys(s:accents) + if !has_key(p.accents, accent) + continue + endif + let colors = copy(mode_colors) + if p.accents[accent][0] != '' + let colors[0] = p.accents[accent][0] + endif + if p.accents[accent][2] != '' + let colors[2] = p.accents[accent][2] + endif + if len(colors) >= 5 + let colors[4] = get(p.accents[accent], 4, '') + else + call add(colors, get(p.accents[accent], 4, '')) + endif + call airline#highlighter#exec(kvp[0].suffix.'_'.accent, colors) + endfor + endfor + + " TODO: optimize this + for sep in items(s:separators) + call exec_separator(dict, sep[1][0], sep[1][1], sep[1][2], suffix) + endfor + endif + endfor +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/init.vim b/vim/.vim/bundle/vim-airline/autoload/airline/init.vim new file mode 100644 index 0000000..a60774d --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/init.vim @@ -0,0 +1,113 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +function! s:check_defined(variable, default) + if !exists(a:variable) + let {a:variable} = a:default + endif +endfunction + +let s:loaded = 0 +function! airline#init#bootstrap() + if s:loaded + return + endif + let s:loaded = 1 + + let g:airline#init#bootstrapping = 1 + + call s:check_defined('g:airline_left_sep', get(g:, 'airline_powerline_fonts', 0)?"\ue0b0":">") + call s:check_defined('g:airline_left_alt_sep', get(g:, 'airline_powerline_fonts', 0)?"\ue0b1":">") + call s:check_defined('g:airline_right_sep', get(g:, 'airline_powerline_fonts', 0)?"\ue0b2":"<") + call s:check_defined('g:airline_right_alt_sep', get(g:, 'airline_powerline_fonts', 0)?"\ue0b3":"<") + call s:check_defined('g:airline_detect_modified', 1) + call s:check_defined('g:airline_detect_paste', 1) + call s:check_defined('g:airline_detect_iminsert', 0) + call s:check_defined('g:airline_inactive_collapse', 1) + call s:check_defined('g:airline_exclude_filenames', ['DebuggerWatch','DebuggerStack','DebuggerStatus']) + call s:check_defined('g:airline_exclude_filetypes', []) + call s:check_defined('g:airline_exclude_preview', 0) + + call s:check_defined('g:airline_mode_map', {}) + call extend(g:airline_mode_map, { + \ '__' : '------', + \ 'n' : 'NORMAL', + \ 'i' : 'INSERT', + \ 'R' : 'REPLACE', + \ 'v' : 'VISUAL', + \ 'V' : 'V-LINE', + \ 'c' : 'COMMAND', + \ '' : 'V-BLOCK', + \ 's' : 'SELECT', + \ 'S' : 'S-LINE', + \ '' : 'S-BLOCK', + \ }, 'keep') + + call s:check_defined('g:airline_theme_map', {}) + call extend(g:airline_theme_map, { + \ 'Tomorrow.*': 'tomorrow', + \ 'base16.*': 'base16', + \ 'mo[l|n]okai': 'molokai', + \ 'wombat.*': 'wombat', + \ '.*zenburn.*': 'zenburn', + \ '.*solarized.*': 'solarized', + \ }, 'keep') + + call s:check_defined('g:airline_symbols', {}) + call extend(g:airline_symbols, { + \ 'paste': get(g:, 'airline_paste_symbol', 'PASTE'), + \ 'readonly': get(g:, 'airline_readonly_symbol', get(g:, 'airline_powerline_fonts', 0) ? "\ue0a2" : 'RO'), + \ 'whitespace': get(g:, 'airline_powerline_fonts', 0) ? "\u2739" : '!', + \ 'linenr': get(g:, 'airline_linecolumn_prefix', get(g:, 'airline_powerline_fonts', 0) ? "\ue0a1" : ':' ), + \ 'branch': get(g:, 'airline_branch_prefix', get(g:, 'airline_powerline_fonts', 0) ? "\ue0a0" : ''), + \ 'modified': '+', + \ 'space': ' ', + \ }, 'keep') + + call airline#parts#define('mode', { + \ 'function': 'airline#parts#mode', + \ 'accent': 'bold', + \ }) + call airline#parts#define_function('iminsert', 'airline#parts#iminsert') + call airline#parts#define_function('paste', 'airline#parts#paste') + call airline#parts#define_function('filetype', 'airline#parts#filetype') + call airline#parts#define('readonly', { + \ 'function': 'airline#parts#readonly', + \ 'accent': 'red', + \ }) + call airline#parts#define_raw('file', '%f%m') + call airline#parts#define_raw('linenr', '%{g:airline_symbols.linenr}%#__accent_bold#%4l%#__restore__#') + call airline#parts#define_function('ffenc', 'airline#parts#ffenc') + call airline#parts#define_empty(['hunks', 'branch', 'tagbar', 'syntastic', 'eclim', 'whitespace']) + + unlet g:airline#init#bootstrapping +endfunction + +function! airline#init#sections() + let spc = g:airline_symbols.space + if !exists('g:airline_section_a') + let g:airline_section_a = airline#section#create_left(['mode', 'paste', 'iminsert']) + endif + if !exists('g:airline_section_b') + let g:airline_section_b = airline#section#create(['hunks', 'branch']) + endif + if !exists('g:airline_section_c') + let g:airline_section_c = airline#section#create(['%<', 'file', spc, 'readonly']) + endif + if !exists('g:airline_section_gutter') + let g:airline_section_gutter = airline#section#create(['%=']) + endif + if !exists('g:airline_section_x') + let g:airline_section_x = airline#section#create_right(['tagbar', 'filetype']) + endif + if !exists('g:airline_section_y') + let g:airline_section_y = airline#section#create_right(['ffenc']) + endif + if !exists('g:airline_section_z') + let g:airline_section_z = airline#section#create(['%3p%%'.spc, 'linenr', ':%3c ']) + endif + if !exists('g:airline_section_warning') + let g:airline_section_warning = airline#section#create(['syntastic', 'eclim', 'whitespace']) + endif +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/parts.vim b/vim/.vim/bundle/vim-airline/autoload/airline/parts.vim new file mode 100644 index 0000000..b0356b1 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/parts.vim @@ -0,0 +1,79 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +let s:parts = {} + +" PUBLIC API {{{ + +function! airline#parts#define(key, config) + let s:parts[a:key] = get(s:parts, a:key, {}) + if exists('g:airline#init#bootstrapping') + call extend(s:parts[a:key], a:config, 'keep') + else + call extend(s:parts[a:key], a:config, 'force') + endif +endfunction + +function! airline#parts#define_function(key, name) + call airline#parts#define(a:key, { 'function': a:name }) +endfunction + +function! airline#parts#define_text(key, text) + call airline#parts#define(a:key, { 'text': a:text }) +endfunction + +function! airline#parts#define_raw(key, raw) + call airline#parts#define(a:key, { 'raw': a:raw }) +endfunction + +function! airline#parts#define_minwidth(key, width) + call airline#parts#define(a:key, { 'minwidth': a:width }) +endfunction + +function! airline#parts#define_condition(key, predicate) + call airline#parts#define(a:key, { 'condition': a:predicate }) +endfunction + +function! airline#parts#define_accent(key, accent) + call airline#parts#define(a:key, { 'accent': a:accent }) +endfunction + +function! airline#parts#define_empty(keys) + for key in a:keys + call airline#parts#define_raw(key, '') + endfor +endfunction + +function! airline#parts#get(key) + return get(s:parts, a:key, {}) +endfunction + +" }}} + +function! airline#parts#mode() + return get(w:, 'airline_current_mode', '') +endfunction + +function! airline#parts#paste() + return g:airline_detect_paste && &paste ? g:airline_symbols.paste : '' +endfunction + +function! airline#parts#iminsert() + if g:airline_detect_iminsert && &iminsert && exists('b:keymap_name') + return toupper(b:keymap_name) + endif + return '' +endfunction + +function! airline#parts#readonly() + return &readonly ? g:airline_symbols.readonly : '' +endfunction + +function! airline#parts#filetype() + return &filetype +endfunction + +function! airline#parts#ffenc() + return printf('%s%s', &fenc, strlen(&ff) > 0 ? '['.&ff.']' : '') +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/section.vim b/vim/.vim/bundle/vim-airline/autoload/airline/section.vim new file mode 100644 index 0000000..0baf077 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/section.vim @@ -0,0 +1,73 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +call airline#init#bootstrap() +let s:spc = g:airline_symbols.space + +function! s:wrap_accent(part, value) + if exists('a:part.accent') + call airline#highlighter#add_accent(a:part.accent) + return '%#__accent_'.(a:part.accent).'#'.a:value.'%#__restore__#' + endif + return a:value +endfunction + +function! s:create(parts, append) + let _ = '' + for idx in range(len(a:parts)) + let part = airline#parts#get(a:parts[idx]) + let val = '' + + if exists('part.function') + let func = (part.function).'()' + elseif exists('part.text') + let func = '"'.(part.text).'"' + else + if a:append > 0 && idx != 0 + let val .= s:spc.g:airline_left_alt_sep.s:spc + endif + if a:append < 0 && idx != 0 + let val = s:spc.g:airline_right_alt_sep.s:spc.val + endif + if exists('part.raw') + let _ .= s:wrap_accent(part, val.(part.raw)) + continue + else + let _ .= s:wrap_accent(part, val.a:parts[idx]) + continue + endif + endif + + let minwidth = get(part, 'minwidth', 0) + + if a:append > 0 && idx != 0 + let partval = printf('%%{airline#util#append(%s,%s)}', func, minwidth) + elseif a:append < 0 && idx != len(a:parts) - 1 + let partval = printf('%%{airline#util#prepend(%s,%s)}', func, minwidth) + else + let partval = printf('%%{airline#util#wrap(%s,%s)}', func, minwidth) + endif + + if exists('part.condition') + let partval = substitute(partval, '{', '{'.(part.condition).' ? ', '') + let partval = substitute(partval, '}', ' : ""}', '') + endif + + let val .= s:wrap_accent(part, partval) + let _ .= val + endfor + return _ +endfunction + +function! airline#section#create(parts) + return s:create(a:parts, 0) +endfunction + +function! airline#section#create_left(parts) + return s:create(a:parts, 1) +endfunction + +function! airline#section#create_right(parts) + return s:create(a:parts, -1) +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes.vim new file mode 100644 index 0000000..07e0324 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes.vim @@ -0,0 +1,67 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +" generates a dictionary which defines the colors for each highlight group +function! airline#themes#generate_color_map(sect1, sect2, sect3, ...) + let palette = { + \ 'airline_a': [ a:sect1[0] , a:sect1[1] , a:sect1[2] , a:sect1[3] , get(a:sect1 , 4 , '') ] , + \ 'airline_b': [ a:sect2[0] , a:sect2[1] , a:sect2[2] , a:sect2[3] , get(a:sect2 , 4 , '') ] , + \ 'airline_c': [ a:sect3[0] , a:sect3[1] , a:sect3[2] , a:sect3[3] , get(a:sect3 , 4 , '') ] , + \ } + + if a:0 > 0 + call extend(palette, { + \ 'airline_x': [ a:1[0] , a:1[1] , a:1[2] , a:1[3] , get(a:1 , 4 , '' ) ] , + \ 'airline_y': [ a:2[0] , a:2[1] , a:2[2] , a:2[3] , get(a:2 , 4 , '' ) ] , + \ 'airline_z': [ a:3[0] , a:3[1] , a:3[2] , a:3[3] , get(a:3 , 4 , '' ) ] , + \ }) + else + call extend(palette, { + \ 'airline_x': [ a:sect3[0] , a:sect3[1] , a:sect3[2] , a:sect3[3] , '' ] , + \ 'airline_y': [ a:sect2[0] , a:sect2[1] , a:sect2[2] , a:sect2[3] , '' ] , + \ 'airline_z': [ a:sect1[0] , a:sect1[1] , a:sect1[2] , a:sect1[3] , '' ] , + \ }) + endif + + return palette +endfunction + +function! airline#themes#get_highlight(group, ...) + return call('airline#highlighter#get_highlight', [a:group] + a:000) +endfunction + +function! airline#themes#get_highlight2(fg, bg, ...) + return call('airline#highlighter#get_highlight2', [a:fg, a:bg] + a:000) +endfunction + +function! airline#themes#patch(palette) + for mode in keys(a:palette) + if !has_key(a:palette[mode], 'airline_warning') + let a:palette[mode]['airline_warning'] = [ '#000000', '#df5f00', 232, 166 ] + endif + endfor + + let a:palette.accents = get(a:palette, 'accents', {}) + let a:palette.accents.bold = [ '', '', '', '', 'bold' ] + let a:palette.accents.italic = [ '', '', '', '', 'italic' ] + + if !has_key(a:palette.accents, 'red') + let a:palette.accents.red = [ '#ff0000' , '' , 160 , '' ] + endif + if !has_key(a:palette.accents, 'green') + let a:palette.accents.green = [ '#008700' , '' , 22 , '' ] + endif + if !has_key(a:palette.accents, 'blue') + let a:palette.accents.blue = [ '#005fff' , '' , 27 , '' ] + endif + if !has_key(a:palette.accents, 'yellow') + let a:palette.accents.yellow = [ '#dfff00' , '' , 190 , '' ] + endif + if !has_key(a:palette.accents, 'orange') + let a:palette.accents.orange = [ '#df5f00' , '' , 166 , '' ] + endif + if !has_key(a:palette.accents, 'purple') + let a:palette.accents.purple = [ '#af00df' , '' , 128 , '' ] + endif +endfunction + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/badwolf.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/badwolf.vim new file mode 100644 index 0000000..41a25d1 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/badwolf.vim @@ -0,0 +1,52 @@ +let s:N1 = [ '#141413' , '#aeee00' , 232 , 154 ] " blackestgravel & lime +let s:N2 = [ '#f4cf86' , '#45413b' , 222 , 238 ] " dirtyblonde & deepgravel +let s:N3 = [ '#8cffba' , '#242321' , 121 , 235 ] " saltwatertaffy & darkgravel +let s:N4 = [ '#666462' , 241 ] " mediumgravel + +let s:I1 = [ '#141413' , '#0a9dff' , 232 , 39 ] " blackestgravel & tardis +let s:I2 = [ '#f4cf86' , '#005fff' , 222 , 27 ] " dirtyblonde & facebook +let s:I3 = [ '#0a9dff' , '#242321' , 39 , 235 ] " tardis & darkgravel + +let s:V1 = [ '#141413' , '#ffa724' , 232 , 214 ] " blackestgravel & orange +let s:V2 = [ '#000000' , '#fade3e' , 16 , 221 ] " coal & dalespale +let s:V3 = [ '#000000' , '#b88853' , 16 , 137 ] " coal & toffee +let s:V4 = [ '#c7915b' , 173 ] " coffee + +let s:PA = [ '#f4cf86' , 222 ] " dirtyblonde +let s:RE = [ '#ff9eb8' , 211 ] " dress + +let s:IA = [ s:N2[1] , s:N3[1] , s:N2[3] , s:N3[3] , '' ] + +let g:airline#themes#badwolf#palette = {} + +let g:airline#themes#badwolf#palette.accents = { + \ 'red': [ '#ff2c4b' , '' , 196 , '' , '' ] + \ } + +let g:airline#themes#badwolf#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#badwolf#palette.normal_modified = { + \ 'airline_b': [ s:N2[0] , s:N4[0] , s:N2[2] , s:N4[1] , '' ] , + \ 'airline_c': [ s:V1[1] , s:N2[1] , s:V1[3] , s:N2[3] , '' ] } + + +let g:airline#themes#badwolf#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#badwolf#palette.insert_modified = { + \ 'airline_c': [ s:V1[1] , s:N2[1] , s:V1[3] , s:N2[3] , '' ] } +let g:airline#themes#badwolf#palette.insert_paste = { + \ 'airline_a': [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] } + + +let g:airline#themes#badwolf#palette.replace = copy(airline#themes#badwolf#palette.insert) +let g:airline#themes#badwolf#palette.replace.airline_a = [ s:I1[0] , s:RE[0] , s:I1[2] , s:RE[1] , '' ] +let g:airline#themes#badwolf#palette.replace_modified = g:airline#themes#badwolf#palette.insert_modified + + +let g:airline#themes#badwolf#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#badwolf#palette.visual_modified = { + \ 'airline_c': [ s:V3[0] , s:V4[0] , s:V3[2] , s:V4[1] , '' ] } + + +let g:airline#themes#badwolf#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) +let g:airline#themes#badwolf#palette.inactive_modified = { + \ 'airline_c': [ s:V1[1] , '' , s:V1[3] , '' , '' ] } + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/base16.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/base16.vim new file mode 100644 index 0000000..469435e --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/base16.vim @@ -0,0 +1,107 @@ +if get(g:, 'airline#themes#base16#constant', 0) + let g:airline#themes#base16#palette = {} + + " Color palette + let s:gui_dark_gray = '#202020' + let s:cterm_dark_gray = 234 + let s:gui_med_gray_hi = '#303030' + let s:cterm_med_gray_hi = 236 + let s:gui_med_gray_lo = '#3a3a3a' + let s:cterm_med_gray_lo = 237 + let s:gui_light_gray = '#505050' + let s:cterm_light_gray = 239 + let s:gui_green = '#99cc99' + let s:cterm_green = 151 + let s:gui_blue = '#6a9fb5' + let s:cterm_blue = 67 + let s:gui_purple = '#aa759f' + let s:cterm_purple = 139 + let s:gui_orange = '#d28445' + let s:cterm_orange = 173 + let s:gui_red = '#ac4142' + let s:cterm_red = 131 + let s:gui_pink = '#d7afd7' + let s:cterm_pink = 182 + + " Normal mode + let s:N1 = [s:gui_dark_gray, s:gui_green, s:cterm_dark_gray, s:cterm_green] + let s:N2 = [s:gui_light_gray, s:gui_med_gray_lo, s:cterm_light_gray, s:cterm_med_gray_lo] + let s:N3 = [s:gui_green, s:gui_med_gray_hi, s:cterm_green, s:cterm_med_gray_hi] + let g:airline#themes#base16#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) + let g:airline#themes#base16#palette.normal_modified = { + \ 'airline_c': [s:gui_orange, s:gui_med_gray_hi, s:cterm_orange, s:cterm_med_gray_hi, ''], + \ } + + " Insert mode + let s:I1 = [s:gui_med_gray_hi, s:gui_blue, s:cterm_med_gray_hi, s:cterm_blue] + let s:I3 = [s:gui_blue, s:gui_med_gray_hi, s:cterm_blue, s:cterm_med_gray_hi] + let g:airline#themes#base16#palette.insert = airline#themes#generate_color_map(s:I1, s:N2, s:I3) + let g:airline#themes#base16#palette.insert_modified = copy(g:airline#themes#base16#palette.normal_modified) + let g:airline#themes#base16#palette.insert_paste = { + \ 'airline_a': [s:gui_dark_gray, s:gui_orange, s:cterm_dark_gray, s:cterm_orange, ''], + \ } + + " Replace mode + let g:airline#themes#base16#palette.replace = { + \ 'airline_a': [s:gui_dark_gray, s:gui_red, s:cterm_dark_gray, s:cterm_red, ''], + \ 'airline_c': [s:gui_red, s:gui_med_gray_hi, s:cterm_red, s:cterm_med_gray_hi, ''], + \ } + let g:airline#themes#base16#palette.replace_modified = copy(g:airline#themes#base16#palette.insert_modified) + + " Visual mode + let s:V1 = [s:gui_dark_gray, s:gui_pink, s:cterm_dark_gray, s:cterm_pink] + let s:V3 = [s:gui_pink, s:gui_med_gray_hi, s:cterm_pink, s:cterm_med_gray_hi] + let g:airline#themes#base16#palette.visual = airline#themes#generate_color_map(s:V1, s:N2, s:V3) + let g:airline#themes#base16#palette.visual_modified = copy(g:airline#themes#base16#palette.insert_modified) + + " Inactive window + let s:IA = [s:gui_dark_gray, s:gui_med_gray_hi, s:cterm_dark_gray, s:cterm_med_gray_hi, ''] + let g:airline#themes#base16#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) + let g:airline#themes#base16#palette.inactive_modified = { + \ 'airline_c': [s:gui_orange, '', s:cterm_orange, '', ''], + \ } +else + function! airline#themes#base16#refresh() + let g:airline#themes#base16#palette = {} + + let g:airline#themes#base16#palette.accents = { + \ 'red': airline#themes#get_highlight('Constant'), + \ } + + let s:N1 = airline#themes#get_highlight2(['DiffText', 'bg'], ['DiffText', 'fg'], 'bold') + let s:N2 = airline#themes#get_highlight('Visual') + let s:N3 = airline#themes#get_highlight('CursorLine') + let g:airline#themes#base16#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) + + let group = airline#themes#get_highlight('vimCommand') + let g:airline#themes#base16#palette.normal_modified = { + \ 'statusline': [ group[0], '', group[2], '', '' ] + \ } + + let s:I1 = airline#themes#get_highlight2(['DiffAdded', 'bg'], ['DiffAdded', 'fg'], 'bold') + let s:I2 = airline#themes#get_highlight2(['DiffAdded', 'fg'], ['Normal', 'bg']) + let s:I3 = s:N3 + let g:airline#themes#base16#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) + let g:airline#themes#base16#palette.insert_modified = g:airline#themes#base16#palette.normal_modified + + let s:R1 = airline#themes#get_highlight2(['WarningMsg', 'bg'], ['WarningMsg', 'fg'], 'bold') + let s:R2 = s:N2 + let s:R3 = s:N3 + let g:airline#themes#base16#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) + let g:airline#themes#base16#palette.replace_modified = g:airline#themes#base16#palette.normal_modified + + let s:V1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Constant', 'fg'], 'bold') + let s:V2 = airline#themes#get_highlight2(['Constant', 'fg'], ['Normal', 'bg']) + let s:V3 = s:N3 + let g:airline#themes#base16#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) + let g:airline#themes#base16#palette.visual_modified = g:airline#themes#base16#palette.normal_modified + + let s:IA = airline#themes#get_highlight2(['NonText', 'fg'], ['CursorLine', 'bg']) + let g:airline#themes#base16#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) + let g:airline#themes#base16#palette.inactive_modified = { + \ 'airline_c': [ group[0], '', group[2], '', '' ] + \ } + endfunction + call airline#themes#base16#refresh() +endif + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/bubblegum.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/bubblegum.vim new file mode 100644 index 0000000..d18e032 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/bubblegum.vim @@ -0,0 +1,62 @@ +" Color palette +let s:gui_dark_gray = '#303030' +let s:cterm_dark_gray = 236 +let s:gui_med_gray_hi = '#444444' +let s:cterm_med_gray_hi = 238 +let s:gui_med_gray_lo = '#3a3a3a' +let s:cterm_med_gray_lo = 237 +let s:gui_light_gray = '#b2b2b2' +let s:cterm_light_gray = 249 +let s:gui_green = '#afd787' +let s:cterm_green = 150 +let s:gui_blue = '#87afd7' +let s:cterm_blue = 110 +let s:gui_purple = '#afafd7' +let s:cterm_purple = 146 +let s:gui_orange = '#d7af5f' +let s:cterm_orange = 179 +let s:gui_red = '#d78787' +let s:cterm_red = 174 +let s:gui_pink = '#d7afd7' +let s:cterm_pink = 182 + +let g:airline#themes#bubblegum#palette = {} + +" Normal mode +let s:N1 = [s:gui_dark_gray, s:gui_green, s:cterm_dark_gray, s:cterm_green] +let s:N2 = [s:gui_light_gray, s:gui_med_gray_lo, s:cterm_light_gray, s:cterm_med_gray_lo] +let s:N3 = [s:gui_green, s:gui_med_gray_hi, s:cterm_green, s:cterm_med_gray_hi] +let g:airline#themes#bubblegum#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#bubblegum#palette.normal_modified = { + \ 'airline_c': [s:gui_orange, s:gui_med_gray_hi, s:cterm_orange, s:cterm_med_gray_hi, ''], + \ } + +" Insert mode +let s:I1 = [s:gui_med_gray_hi, s:gui_blue, s:cterm_med_gray_hi, s:cterm_blue] +let s:I3 = [s:gui_blue, s:gui_med_gray_hi, s:cterm_blue, s:cterm_med_gray_hi] +let g:airline#themes#bubblegum#palette.insert = airline#themes#generate_color_map(s:I1, s:N2, s:I3) +let g:airline#themes#bubblegum#palette.insert_modified = copy(g:airline#themes#bubblegum#palette.normal_modified) +let g:airline#themes#bubblegum#palette.insert_paste = { + \ 'airline_a': [s:gui_dark_gray, s:gui_orange, s:cterm_dark_gray, s:cterm_orange, ''], + \ } + +" Replace mode +let g:airline#themes#bubblegum#palette.replace = { + \ 'airline_a': [s:gui_dark_gray, s:gui_red, s:cterm_dark_gray, s:cterm_red, ''], + \ 'airline_c': [s:gui_red, s:gui_med_gray_hi, s:cterm_red, s:cterm_med_gray_hi, ''], + \ } +let g:airline#themes#bubblegum#palette.replace_modified = copy(g:airline#themes#bubblegum#palette.insert_modified) + +" Visual mode +let s:V1 = [s:gui_dark_gray, s:gui_pink, s:cterm_dark_gray, s:cterm_pink] +let s:V3 = [s:gui_pink, s:gui_med_gray_hi, s:cterm_pink, s:cterm_med_gray_hi] +let g:airline#themes#bubblegum#palette.visual = airline#themes#generate_color_map(s:V1, s:N2, s:V3) +let g:airline#themes#bubblegum#palette.visual_modified = copy(g:airline#themes#bubblegum#palette.insert_modified) + +" Inactive window +let s:IA = [s:gui_dark_gray, s:gui_med_gray_hi, s:cterm_dark_gray, s:cterm_med_gray_hi, ''] +let g:airline#themes#bubblegum#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) +let g:airline#themes#bubblegum#palette.inactive_modified = { + \ 'airline_c': [s:gui_orange, '', s:cterm_orange, '', ''], + \ } + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/dark.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/dark.vim new file mode 100644 index 0000000..217b2f1 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/dark.vim @@ -0,0 +1,102 @@ +" Each theme is contained in its own file and declares variables scoped to the +" file. These variables represent the possible "modes" that airline can +" detect. The mode is the return value of mode(), which gets converted to a +" readable string. The following is a list currently supported modes: normal, +" insert, replace, visual, and inactive. +" +" Each mode can also have overrides. These are small changes to the mode that +" don't require a completely different look. "modified" and "paste" are two +" such supported overrides. These are simply suffixed to the major mode, +" separated by an underscore. For example, "normal_modified" would be normal +" mode where the current buffer is modified. +" +" The theming algorithm is a 2-pass system where the mode will draw over all +" parts of the statusline, and then the override is applied after. This means +" it is possible to specify a subset of the theme in overrides, as it will +" simply overwrite the previous colors. If you want simultaneous overrides, +" then they will need to change different parts of the statusline so they do +" not conflict with each other. +" +" First, let's define an empty dictionary and assign it to the "palette" +" variable. The # is a separator that maps with the directory structure. If +" you get this wrong, Vim will complain loudly. +let g:airline#themes#dark#palette = {} + +" First let's define some arrays. The s: is just a VimL thing for scoping the +" variables to the current script. Without this, these variables would be +" declared globally. Now let's declare some colors for normal mode and add it +" to the dictionary. The array is in the format: +" [ guifg, guibg, ctermfg, ctermbg, opts ]. See "help attr-list" for valid +" values for the "opt" value. +let s:N1 = [ '#00005f' , '#dfff00' , 17 , 190 ] +let s:N2 = [ '#ffffff' , '#444444' , 255 , 238 ] +let s:N3 = [ '#9cffd3' , '#202020' , 85 , 234 ] +let g:airline#themes#dark#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) + +" Here we define overrides for when the buffer is modified. This will be +" applied after g:airline#themes#dark#palette.normal, hence why only certain keys are +" declared. +let g:airline#themes#dark#palette.normal_modified = { + \ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] , + \ } + + +let s:I1 = [ '#00005f' , '#00dfff' , 17 , 45 ] +let s:I2 = [ '#ffffff' , '#005fff' , 255 , 27 ] +let s:I3 = [ '#ffffff' , '#000080' , 15 , 17 ] +let g:airline#themes#dark#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#dark#palette.insert_modified = { + \ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] , + \ } +let g:airline#themes#dark#palette.insert_paste = { + \ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] , + \ } + + +let g:airline#themes#dark#palette.replace = copy(g:airline#themes#dark#palette.insert) +let g:airline#themes#dark#palette.replace.airline_a = [ s:I2[0] , '#af0000' , s:I2[2] , 124 , '' ] +let g:airline#themes#dark#palette.replace_modified = g:airline#themes#dark#palette.insert_modified + + +let s:V1 = [ '#000000' , '#ffaf00' , 232 , 214 ] +let s:V2 = [ '#000000' , '#ff5f00' , 232 , 202 ] +let s:V3 = [ '#ffffff' , '#5f0000' , 15 , 52 ] +let g:airline#themes#dark#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#dark#palette.visual_modified = { + \ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] , + \ } + + +let s:IA1 = [ '#4e4e4e' , '#1c1c1c' , 239 , 234 , '' ] +let s:IA2 = [ '#4e4e4e' , '#262626' , 239 , 235 , '' ] +let s:IA3 = [ '#4e4e4e' , '#303030' , 239 , 236 , '' ] +let g:airline#themes#dark#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) +let g:airline#themes#dark#palette.inactive_modified = { + \ 'airline_c': [ '#875faf' , '' , 97 , '' , '' ] , + \ } + + +" Accents are used to give parts within a section a slightly different look or +" color. Here we are defining a "red" accent, which is used by the 'readonly' +" part by default. Only the foreground colors are specified, so the background +" colors are automatically extracted from the underlying section colors. What +" this means is that regardless of which section the part is defined in, it +" will be red instead of the section's foreground color. You can also have +" multiple parts with accents within a section. +let g:airline#themes#dark#palette.accents = { + \ 'red': [ '#ff0000' , '' , 160 , '' ] + \ } + + +" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp +" variable so that related functionality is loaded iff the user is using +" ctrlp. Note that this is optional, and if you do not define ctrlp colors +" they will be chosen automatically from the existing palette. +if !get(g:, 'loaded_ctrlp', 0) + finish +endif +let g:airline#themes#dark#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#d7d7ff' , '#5f00af' , 189 , 55 , '' ], + \ [ '#ffffff' , '#875fd7' , 231 , 98 , '' ], + \ [ '#5f00af' , '#ffffff' , 55 , 231 , 'bold' ]) + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/hybrid.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/hybrid.vim new file mode 100644 index 0000000..b0df844 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/hybrid.vim @@ -0,0 +1,58 @@ +" vim-airline companion theme of Hybrid +" (https://github.com/w0ng/vim-hybrid) + +let g:airline#themes#hybrid#palette = {} + +function! airline#themes#hybrid#refresh() + let s:N1 = airline#themes#get_highlight('DiffAdd') + let s:N2 = airline#themes#get_highlight('CursorLine') + let s:N3 = airline#themes#get_highlight('PMenu') + let g:airline#themes#hybrid#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) + + let modified_group = airline#themes#get_highlight2(['Text', 'fg'], ['SpellRare', 'bg'], 'bold') + let g:airline#themes#hybrid#palette.normal_modified = { + \ 'airline_c': airline#themes#get_highlight2(['Text', 'fg'], ['SpellRare', 'bg'], 'bold') + \ } + + let warning_group = airline#themes#get_highlight('SpellRare') + let g:airline#themes#hybrid#palette.normal.airline_warning = warning_group + let g:airline#themes#hybrid#palette.normal_modified.airline_warning = warning_group + + let s:I1 = airline#themes#get_highlight2(['Text', 'fg'], ['DiffText', 'bg'], 'bold') + let s:I2 = airline#themes#get_highlight2(['Text', 'fg'], ['SpellLocal', 'bg'], 'bold') + let s:I3 = airline#themes#get_highlight2(['Text', 'fg'], ['SpellCap', 'bg'], 'bold') + let g:airline#themes#hybrid#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) + let g:airline#themes#hybrid#palette.insert_modified = g:airline#themes#hybrid#palette.normal_modified + let g:airline#themes#hybrid#palette.insert.airline_warning = g:airline#themes#hybrid#palette.normal.airline_warning + let g:airline#themes#hybrid#palette.insert_modified.airline_warning = g:airline#themes#hybrid#palette.normal_modified.airline_warning + + let s:R1 = airline#themes#get_highlight('DiffChange') + let s:R2 = s:N2 + let s:R3 = s:N3 + let g:airline#themes#hybrid#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) + let replace_group = airline#themes#get_highlight('SpellRare') + let g:airline#themes#hybrid#palette.replace_modified = g:airline#themes#hybrid#palette.normal_modified + let g:airline#themes#hybrid#palette.replace.airline_warning = g:airline#themes#hybrid#palette.normal.airline_warning + let g:airline#themes#hybrid#palette.replace_modified.airline_warning = g:airline#themes#hybrid#palette.replace_modified.airline_warning + + let s:V1 = airline#themes#get_highlight2(['Text', 'fg'], ['Folded', 'bg'], 'bold') + let s:V2 = airline#themes#get_highlight2(['Text', 'fg'], ['DiffDelete', 'bg'], 'bold') + let s:V3 = airline#themes#get_highlight2(['Text', 'fg'], ['Error', 'bg'], 'bold') + let g:airline#themes#hybrid#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) + let g:airline#themes#hybrid#palette.visual_modified = g:airline#themes#hybrid#palette.normal_modified + let g:airline#themes#hybrid#palette.visual.airline_warning = g:airline#themes#hybrid#palette.normal.airline_warning + let g:airline#themes#hybrid#palette.visual_modified.airline_warning = g:airline#themes#hybrid#palette.normal_modified.airline_warning + + let s:IA = airline#themes#get_highlight('StatusLineNC') + let g:airline#themes#hybrid#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) + let g:airline#themes#hybrid#palette.inactive_modified = { + \ 'airline_c': [ modified_group[0], '', modified_group[2], '', '' ] + \ } + + let g:airline#themes#hybrid#palette.accents = { + \ 'red': airline#themes#get_highlight('Constant'), + \ } + +endfunction + +call airline#themes#hybrid#refresh() diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/jellybeans.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/jellybeans.vim new file mode 100644 index 0000000..201068c --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/jellybeans.vim @@ -0,0 +1,52 @@ +let g:airline#themes#jellybeans#palette = {} + +" The name of the function must be 'refresh'. +function! airline#themes#jellybeans#refresh() + " This theme is an example of how to use helper functions to extract highlight + " values from the corresponding colorscheme. It was written in a hurry, so it + " is very minimalistic. If you are a jellybeans user and want to make updates, + " please send pull requests. + + " Here are examples where the entire highlight group is copied and an airline + " compatible color array is generated. + let s:N1 = airline#themes#get_highlight('DbgCurrent', 'bold') + let s:N2 = airline#themes#get_highlight('Folded') + let s:N3 = airline#themes#get_highlight('NonText') + + let g:airline#themes#jellybeans#palette.accents = { + \ 'red': airline#themes#get_highlight('Constant'), + \ } + + let g:airline#themes#jellybeans#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) + let g:airline#themes#jellybeans#palette.normal_modified = { + \ 'airline_c': [ '#ffb964', '', 215, '', '' ] + \ } + + let s:I1 = airline#themes#get_highlight('DiffAdd', 'bold') + let s:I2 = s:N2 + let s:I3 = s:N3 + let g:airline#themes#jellybeans#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) + let g:airline#themes#jellybeans#palette.insert_modified = g:airline#themes#jellybeans#palette.normal_modified + + let s:R1 = airline#themes#get_highlight('WildMenu', 'bold') + let s:R2 = s:N2 + let s:R3 = s:N3 + let g:airline#themes#jellybeans#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) + let g:airline#themes#jellybeans#palette.replace_modified = g:airline#themes#jellybeans#palette.normal_modified + + " Sometimes you want to mix and match colors from different groups, you can do + " that with this method. + let s:V1 = airline#themes#get_highlight2(['TabLineSel', 'bg'], ['DiffDelete', 'bg'], 'bold') + let s:V2 = s:N2 + let s:V3 = s:N3 + let g:airline#themes#jellybeans#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) + let g:airline#themes#jellybeans#palette.visual_modified = g:airline#themes#jellybeans#palette.normal_modified + + " And of course, you can always do it manually as well. + let s:IA = [ '#444444', '#1c1c1c', 237, 234 ] + let g:airline#themes#jellybeans#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) + let g:airline#themes#jellybeans#palette.inactive_modified = g:airline#themes#jellybeans#palette.normal_modified +endfunction + +call airline#themes#jellybeans#refresh() + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/kalisi.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/kalisi.vim new file mode 100644 index 0000000..4ff94f5 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/kalisi.vim @@ -0,0 +1,57 @@ +" +" Colorscheme: Kalisi for airline. Inspired by powerline. +" 06.02.2014 Arthur Jaron +" hifreeo@gmail.com +" + +" Insert mode +let s:I1 = [ '#ffffff' , '#e80000' , 23 , 231 ] +let s:I2 = [ '#c5c5c5' , '#901010' , 74 , 31 ] +let s:I3 = [ '#c5c5c5' , '#500000' , 117 , 24 ] + +" Visual mode +let s:V1 = [ '#005f5f' , '#ffffff' , 23 , 231 ] +let s:V2 = [ '#5fafd7' , '#0087af' , 74 , 31 ] +let s:V3 = [ '#87d7ff' , '#005f87' , 117 , 24 ] + +" Replace mode +let s:R1 = [ '#8e00da' , '#ffffff' , 23 , 231 ] +let s:R2 = [ '#8e00da' , '#ce99ff' , 74 , 31 ] +let s:R3 = [ '#ce99ff' , '#8e00da' , 117 , 24 ] + +let g:airline#themes#kalisi#palette = {} + +function! airline#themes#kalisi#refresh() + + " Normal mode + let s:N1 = [ '#005f00' , '#afd700' , 22 , 148 ] + let s:N2 = [ '#afd700' , '#005f00' , 247 , 236 ] + let s:N3 = airline#themes#get_highlight('StatusLine') + + " Tabline Plugin + let g:airline#themes#kalisi#palette.tabline = { + \ 'airline_tab': ['#A6DB29', '#005f00', 231, 29, ''], + \ 'airline_tabsel': ['#404042', '#A6DB29', 231, 36, ''], + \ 'airline_tabtype': ['#afd700', '#005f00', 231, 36, ''], + \ 'airline_tabfill': ['#ffffff', '#000000', 231, 23, ''], + \ 'airline_tabhid': ['#c5c5c5', '#404042', 231, 88, ''], + \ 'airline_tabmod': ['#ffffff', '#F1266F', 231, 88, ''], + \ } + + let g:airline#themes#kalisi#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) + let g:airline#themes#kalisi#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) + let g:airline#themes#kalisi#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) + let g:airline#themes#kalisi#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) + + " Inactive Mode + " let s:IA = [ '#c5c5c5' , '#505052' , 239 , 234 , '' ] + let s:IA = airline#themes#get_highlight('StatusLineNC') + let g:airline#themes#kalisi#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) + let g:airline#themes#kalisi#palette.inactive_modified = { + \ 'statusline': [ '#F1266F' , '' , '53' , '' , '' ] , + \ } + +endfunction + +call airline#themes#kalisi#refresh() + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/kolor.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/kolor.vim new file mode 100644 index 0000000..e61f56f --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/kolor.vim @@ -0,0 +1,59 @@ +let g:airline#themes#kolor#palette = {} + +let s:N1 = [ '#e2e2e2' , '#4f3598' , 254 , 56 ] +let s:N2 = [ '#ff5fd7' , '#242322' , 206 , 234 ] +let s:N3 = [ '#e2e2e2' , '#4a4a4a' , 254 , 238 ] + +let g:airline#themes#kolor#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) + +let g:airline#themes#kolor#palette.normal_modified = { + \ 'airline_c': [ '#e2e2e2' , '#4f3598' , 254 , 56 , '' ] , + \ } + + +let s:I1 = [ '#242322' , '#7eaefd' , 234 , 111 ] +let s:I2 = [ '#75d7d8' , '#242322' , 80 , 234 ] +let s:I3 = [ '#e2e2e2' , '#4a4a4a' , 254 , 238 ] +let g:airline#themes#kolor#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#kolor#palette.insert_modified = { + \ 'airline_c': [ '#242322' , '#7eaefd' , 234 , 111 , '' ] , + \ } + + +let g:airline#themes#kolor#palette.replace = copy(g:airline#themes#kolor#palette.insert) +let g:airline#themes#kolor#palette.replace.airline_a = [ s:I2[0] , '#005154' , s:I2[2] , 23 , '' ] +let g:airline#themes#kolor#palette.replace_modified = { + \ 'airline_c': [ '#e2e2e2' , '#005154' , 254 , 23 , '' ] , + \ } + + +let s:V1 = [ '#242322' , '#e6987a' , 234 , 180 ] +let s:V2 = [ '#dbc570' , '#242322' , 186 , 234 ] +let s:V3 = [ '#e2e2e2' , '#4a4a4a' , 254 , 238 ] +let g:airline#themes#kolor#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#kolor#palette.visual_modified = { + \ 'airline_c': [ '#242322' , '#e6987a' , 234 , 180 , '' ] , + \ } + + +let s:IA1 = [ '#b2b2b2' , '#4a4a4a' , 247 , 238 , '' ] +let s:IA2 = [ '#b2b2b2' , '#4a4a4a' , 247 , 238 ] +let s:IA3 = [ '#b2b2b2' , '#4a4a4a' , 247 , 238 , '' ] +let g:airline#themes#kolor#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) +let g:airline#themes#kolor#palette.inactive_modified = { + \ 'airline_c': [ '#875faf' , '' , 97 , '' , '' ] , + \ } + + +let g:airline#themes#kolor#palette.accents = { + \ 'red': [ '#d96e8a' , '' , 168 , '' ] + \ } + + +if !get(g:, 'loaded_ctrlp', 0) + finish +endif +let g:airline#themes#kolor#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#e2e2e2' , '#4a4a4a' , 254 , 238 , '' ], + \ [ '#e2e2e2' , '#242322' , 254 , 234 , '' ], + \ [ '#e2e2e2' , '#4f3598' , 254 , 56 , 'bold' ]) diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/laederon.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/laederon.vim new file mode 100644 index 0000000..115c107 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/laederon.vim @@ -0,0 +1,62 @@ +" vim-airline companion theme of Laederon +" (https://github.com/Donearm/Laederon) + +" Normal mode +let s:N1 = [ '#1a1a18' , '#ffffff' , 232 , 255 ] " blackestgravel & snow +let s:N2 = [ '#ffffff' , '#44403a' , 255, 238 ] " snow & deepgravel +let s:N3 = [ '#90a680' , '#2e2d2a' , 64, 235 ] " dilutedpaint & darkgravel +let s:N4 = [ '#777470' , 240 ] " gravel + +" Insert mode +let s:I1 = [ '#1a1a18' , '#1693a5' , 232 , 62 ] " blackestgravel & crystallake +let s:I2 = [ '#515744' , '#44403a' , 101 , 238 ] " lichen & deepgravel +let s:I3 = [ '#1693a5' , '#2e2d2a' , 39 , 235 ] " crystallake & darkgravel + +" Visual mode +let s:V1 = [ '#1a1a18' , '#ab3e5d' , 232 , 161 ] " blackestgravel & raspberry +let s:V2 = [ '#000000' , '#908571' , 16 , 252 ] " coal & winterterrain +let s:V3 = [ '#ab3e5d' , '#8c7f77' , 161 , 245 ] " raspberry & wetcoldterrain +let s:V4 = [ '#515744' , 101 ] " lichen + +" Replace mode +let s:RE = [ '#233e09' , 22 ] " oakleaf + +" Paste mode +let s:PA = [ '#ab3e5d' , 161 ] " raspberry + +let s:IA = [ s:N2[1] , s:N3[1] , s:N2[3], s:N3[3] , '' ] + + +let g:airline#themes#laederon#palette = {} + +let g:airline#themes#laederon#palette.accents = { + \ 'red': [ '#ef393d' , '' , 196 , '' , '' ] + \ } + +let g:airline#themes#laederon#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#laederon#palette.normal_modified = { + \ 'airline_a' : [ s:N2[0] , s:N4[0] , s:N2[2] , s:N4[1] , '' ] , + \ 'airline_c' : [ s:V1[1] , s:N2[1] , s:V1[3] , s:N2[3] , '' ] } + + +let g:airline#themes#laederon#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#laederon#palette.insert_modified = { + \ 'airline_c' : [ s:V2[1] , s:N2[1] , s:V2[3] , s:N2[3] , '' ] } +let g:airline#themes#laederon#palette.insert_paste = { + \ 'airline_a' : [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] } + + +let g:airline#themes#laederon#palette.replace = copy(airline#themes#laederon#palette.insert) +let g:airline#themes#laederon#palette.replace.airline_a = [ s:I1[0] , s:RE[0] , s:I1[2] , s:RE[1] , '' ] +let g:airline#themes#laederon#palette.replace_modified = g:airline#themes#laederon#palette.insert_modified + + +let g:airline#themes#laederon#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#laederon#palette.visual_modified = { + \ 'airline_c' : [ s:V3[0] , s:V4[0] , s:V3[2] , s:V4[1] , '' ] } + + +let g:airline#themes#laederon#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) +let g:airline#themes#laederon#palette.inactive_modified = { + \ 'airline_c' : [ s:V1[1] , '' , s:V1[3] , '' , '' ] } + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/light.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/light.vim new file mode 100644 index 0000000..d9fe844 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/light.vim @@ -0,0 +1,45 @@ +let g:airline#themes#light#palette = {} + +let s:N1 = [ '#ffffff' , '#005fff' , 255 , 27 ] +let s:N2 = [ '#000087' , '#00dfff' , 18 , 45 ] +let s:N3 = [ '#005fff' , '#afffff' , 27 , 159 ] +let g:airline#themes#light#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#light#palette.normal_modified = { + \ 'airline_c': [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] , + \ } + + +let s:I1 = [ '#ffffff' , '#00875f' , 255 , 29 ] +let s:I2 = [ '#005f00' , '#00df87' , 22 , 42 ] +let s:I3 = [ '#005f5f' , '#afff87' , 23 , 156 ] +let g:airline#themes#light#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#light#palette.insert_modified = { + \ 'airline_c': [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] , + \ } +let g:airline#themes#light#palette.insert_paste = { + \ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] , + \ } + + +let g:airline#themes#light#palette.replace = copy(g:airline#themes#light#palette.insert) +let g:airline#themes#light#palette.replace.airline_a = [ s:I2[0] , '#ff0000' , s:I1[2] , 196 , '' ] +let g:airline#themes#light#palette.replace_modified = g:airline#themes#light#palette.insert_modified + + +let s:V1 = [ '#ffffff' , '#ff5f00' , 255 , 202 ] +let s:V2 = [ '#5f0000' , '#ffaf00' , 52 , 214 ] +let s:V3 = [ '#df5f00' , '#ffff87' , 166 , 228 ] +let g:airline#themes#light#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#light#palette.visual_modified = { + \ 'airline_c': [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] , + \ } + + +let s:IA1 = [ '#666666' , '#b2b2b2' , 242 , 249 , '' ] +let s:IA2 = [ '#8a8a8a' , '#d0d0d0' , 245 , 252 , '' ] +let s:IA3 = [ '#a8a8a8' , '#ffffff' , 248 , 255 , '' ] +let g:airline#themes#light#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) +let g:airline#themes#light#palette.inactive_modified = { + \ 'airline_c': [ '#df0000' , '' , 160 , '' , '' ] , + \ } + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/lucius.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/lucius.vim new file mode 100644 index 0000000..e386900 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/lucius.vim @@ -0,0 +1,56 @@ +let g:airline#themes#lucius#palette = {} + +function! airline#themes#lucius#refresh() + + let s:N1 = airline#themes#get_highlight('StatusLine') + let s:N2 = airline#themes#get_highlight('Folded') + let s:N3 = airline#themes#get_highlight('CursorLine') + let g:airline#themes#lucius#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) + + let modified_group = airline#themes#get_highlight('Statement') + let g:airline#themes#lucius#palette.normal_modified = { + \ 'airline_c': [modified_group[0], '', modified_group[2], '', ''] + \ } + + let warning_group = airline#themes#get_highlight('DiffDelete') + let g:airline#themes#lucius#palette.normal.airline_warning = warning_group + let g:airline#themes#lucius#palette.normal_modified.airline_warning = warning_group + + let s:I1 = airline#themes#get_highlight('DiffAdd') + let s:I2 = s:N2 + let s:I3 = s:N3 + let g:airline#themes#lucius#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) + let g:airline#themes#lucius#palette.insert_modified = g:airline#themes#lucius#palette.normal_modified + let g:airline#themes#lucius#palette.insert.airline_warning = g:airline#themes#lucius#palette.normal.airline_warning + let g:airline#themes#lucius#palette.insert_modified.airline_warning = g:airline#themes#lucius#palette.normal_modified.airline_warning + + let s:R1 = airline#themes#get_highlight('DiffChange') + let s:R2 = s:N2 + let s:R3 = s:N3 + let g:airline#themes#lucius#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) + let g:airline#themes#lucius#palette.replace_modified = g:airline#themes#lucius#palette.normal_modified + let g:airline#themes#lucius#palette.replace.airline_warning = g:airline#themes#lucius#palette.normal.airline_warning + let g:airline#themes#lucius#palette.replace_modified.airline_warning = g:airline#themes#lucius#palette.normal_modified.airline_warning + + let s:V1 = airline#themes#get_highlight('Cursor') + let s:V2 = s:N2 + let s:V3 = s:N3 + let g:airline#themes#lucius#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) + let g:airline#themes#lucius#palette.visual_modified = g:airline#themes#lucius#palette.normal_modified + let g:airline#themes#lucius#palette.visual.airline_warning = g:airline#themes#lucius#palette.normal.airline_warning + let g:airline#themes#lucius#palette.visual_modified.airline_warning = g:airline#themes#lucius#palette.normal_modified.airline_warning + + let s:IA = airline#themes#get_highlight('StatusLineNC') + let g:airline#themes#lucius#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) + let g:airline#themes#lucius#palette.inactive_modified = { + \ 'airline_c': [ modified_group[0], '', modified_group[2], '', '' ] + \ } + + let g:airline#themes#lucius#palette.accents = { + \ 'red': airline#themes#get_highlight('Constant'), + \ } + +endfunction + +call airline#themes#lucius#refresh() + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/luna.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/luna.vim new file mode 100644 index 0000000..879d862 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/luna.vim @@ -0,0 +1,92 @@ +" vim-airline companion theme of Luna +" (https://github.com/Pychimp/vim-luna) + +let g:airline#themes#luna#palette = {} + +let g:airline#themes#luna#palette.accents = { + \ 'red': [ '#ffffff' , '' , 231 , '' , '' ], + \ } + + +let s:N1 = [ '#ffffff' , '#005252' , 231 , 36 ] +let s:N2 = [ '#ffffff' , '#003f3f' , 231 , 29 ] +let s:N3 = [ '#ffffff' , '#002b2b' , 231 , 23 ] +let g:airline#themes#luna#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#luna#palette.normal_modified = { + \ 'airline_c': [ '#ffffff' , '#450000' , 231 , 52 , '' ] , + \ } + + +let s:I1 = [ '#ffffff' , '#789f00' , 231 , 106 ] +let s:I2 = [ '#ffffff' , '#003f3f' , 231 , 29 ] +let s:I3 = [ '#ffffff' , '#002b2b' , 231 , 23 ] +let g:airline#themes#luna#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#luna#palette.insert_modified = { + \ 'airline_c': [ '#ffffff' , '#005e5e' , 255 , 52 , '' ] , + \ } +let g:airline#themes#luna#palette.insert_paste = { + \ 'airline_a': [ s:I1[0] , '#789f00' , s:I1[2] , 106 , '' ] , + \ } + + +let g:airline#themes#luna#palette.replace = copy(g:airline#themes#luna#palette.insert) +let g:airline#themes#luna#palette.replace.airline_a = [ s:I2[0] , '#920000' , s:I2[2] , 88 , '' ] +let g:airline#themes#luna#palette.replace_modified = g:airline#themes#luna#palette.insert_modified + +let s:V1 = [ '#ffff9a' , '#ff8036' , 222 , 208 ] +let s:V2 = [ '#ffffff' , '#003f3f' , 231 , 29 ] +let s:V3 = [ '#ffffff' , '#002b2b' , 231 , 23 ] +let g:airline#themes#luna#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#luna#palette.visual_modified = { + \ 'airline_c': [ '#ffffff' , '#450000' , 231 , 52 , '' ] , + \ } + +let s:IA = [ '#4e4e4e' , '#002b2b' , 59 , 23 , '' ] +let g:airline#themes#luna#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) +let g:airline#themes#luna#palette.inactive_modified = { + \ 'airline_c': [ '#e20000' , '' , 166 , '' , '' ] , + \ } + +let g:airline#themes#luna#palette.tabline = { + \ 'airline_tab': ['#2aa198', '#003f3f', 231, 29, ''], + \ 'airline_tabsel': ['#ffffff', '#2e8b57', 231, 36, ''], + \ 'airline_tabtype': ['#ffffff', '#005252', 231, 36, ''], + \ 'airline_tabfill': ['#ffffff', '#002b2b', 231, 23, ''], + \ 'airline_tabmod': ['#ffffff', '#780000', 231, 88, ''], + \ } + +let s:WI = [ '#ffffff', '#5f0000', 231, 88 ] +let g:airline#themes#luna#palette.normal.airline_warning = [ + \ s:WI[0], s:WI[1], s:WI[2], s:WI[3] + \ ] + +let g:airline#themes#luna#palette.normal_modified.airline_warning = + \ g:airline#themes#luna#palette.normal.airline_warning + +let g:airline#themes#luna#palette.insert.airline_warning = + \ g:airline#themes#luna#palette.normal.airline_warning + +let g:airline#themes#luna#palette.insert_modified.airline_warning = + \ g:airline#themes#luna#palette.normal.airline_warning + +let g:airline#themes#luna#palette.visual.airline_warning = + \ g:airline#themes#luna#palette.normal.airline_warning + +let g:airline#themes#luna#palette.visual_modified.airline_warning = + \ g:airline#themes#luna#palette.normal.airline_warning + +let g:airline#themes#luna#palette.replace.airline_warning = + \ g:airline#themes#luna#palette.normal.airline_warning + +let g:airline#themes#luna#palette.replace_modified.airline_warning = + \ g:airline#themes#luna#palette.normal.airline_warning + + +if !get(g:, 'loaded_ctrlp', 0) + finish +endif +let g:airline#themes#luna#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#ffffff' , '#002b2b' , 231 , 23 , '' ] , + \ [ '#ffffff' , '#005252' , 231 , 36 , '' ] , + \ [ '#ffffff' , '#973d45' , 231 , 95 , '' ] ) + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/molokai.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/molokai.vim new file mode 100644 index 0000000..1998f00 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/molokai.vim @@ -0,0 +1,65 @@ +let g:airline#themes#molokai#palette = {} + +let g:airline#themes#molokai#palette.accents = { + \ 'red': [ '#66d9ef' , '' , 81 , '' , '' ], + \ } + + +" Normal mode +let s:N1 = [ '#080808' , '#e6db74' , 232 , 144 ] " mode +let s:N2 = [ '#f8f8f0' , '#232526' , 253 , 16 ] " info +let s:N3 = [ '#f8f8f0' , '#465457' , 253 , 67 ] " statusline + +let g:airline#themes#molokai#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#molokai#palette.normal_modified = { + \ 'airline_c': [ '#080808' , '#e6db74' , 232 , 144 , '' ] , + \ } + + +" Insert mode +let s:I1 = [ '#080808' , '#66d9ef' , 232 , 81 ] +let s:I2 = [ '#f8f8f0' , '#232526' , 253 , 16 ] +let s:I3 = [ '#f8f8f0' , '#465457' , 253 , 67 ] + +let g:airline#themes#molokai#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#molokai#palette.insert_modified = { + \ 'airline_c': [ '#080808' , '#66d9ef' , 232 , 81 , '' ] , + \ } + + +" Replace mode +let g:airline#themes#molokai#palette.replace = copy(g:airline#themes#molokai#palette.insert) +let g:airline#themes#molokai#palette.replace.airline_a = [ s:I1[0] , '#ef5939' , s:I1[2] , 166 , '' ] +let g:airline#themes#molokai#palette.replace_modified = { + \ 'airline_c': [ '#080808' , '#ef5939' , 232 , 166 , '' ] , + \ } + + +" Visual mode +let s:V1 = [ '#080808' , '#fd971f' , 232 , 208 ] +let s:V2 = [ '#f8f8f0' , '#232526' , 253 , 16 ] +let s:V3 = [ '#f8f8f0' , '#465457' , 253 , 67 ] + +let g:airline#themes#molokai#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#molokai#palette.visual_modified = { + \ 'airline_c': [ '#080808' , '#fd971f' , 232 , 208 , '' ] , + \ } + + +" Inactive +let s:IA = [ '#1b1d1e' , '#465457' , 233 , 67 , '' ] +let g:airline#themes#molokai#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) +let g:airline#themes#molokai#palette.inactive_modified = { + \ 'airline_c': [ '#f8f8f0' , '' , 253 , '' , '' ] , + \ } + + +" CtrlP +if !get(g:, 'loaded_ctrlp', 0) + finish +endif +let g:airline#themes#molokai#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#f8f8f0' , '#465457' , 253 , 67 , '' ] , + \ [ '#f8f8f0' , '#232526' , 253 , 16 , '' ] , + \ [ '#080808' , '#e6db74' , 232 , 144 , 'bold' ] ) + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/monochrome.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/monochrome.vim new file mode 100644 index 0000000..7dd1a17 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/monochrome.vim @@ -0,0 +1,15 @@ +let g:airline#themes#monochrome#palette = {} + +function! airline#themes#monochrome#refresh() + let s:SL = airline#themes#get_highlight('StatusLine') + let g:airline#themes#monochrome#palette.normal = airline#themes#generate_color_map(s:SL, s:SL, s:SL) + let g:airline#themes#monochrome#palette.insert = g:airline#themes#monochrome#palette.normal + let g:airline#themes#monochrome#palette.replace = g:airline#themes#monochrome#palette.normal + let g:airline#themes#monochrome#palette.visual = g:airline#themes#monochrome#palette.normal + + let s:SLNC = airline#themes#get_highlight('StatusLineNC') + let g:airline#themes#monochrome#palette.inactive = airline#themes#generate_color_map(s:SLNC, s:SLNC, s:SLNC) +endfunction + +call airline#themes#monochrome#refresh() + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/murmur.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/murmur.vim new file mode 100644 index 0000000..adebf3b --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/murmur.vim @@ -0,0 +1,46 @@ +let g:airline#themes#murmur#palette = {} + +let s:termbg = 237 " Background for branch and file format blocks +let s:termbg2= 234 " Background for middle block +let s:normalbg= 27 " Background for normal mode and file position blocks +let s:insertbg= 70 " Background for insert mode and file position blocks +let s:visualbg= 166 " Background for visual mode and file position blocks +let s:replacebg=88 " Background for replace mode and file position blocks +let s:alert= 88 " Modefied file alert color + +let s:BB = ['#AFAF87', '#5F5F5F', 144, s:termbg] " Branch and file format blocks + +let s:N1 = ['#FFFFFF', '#5F87FF', 15, s:normalbg] " Outside blocks in normal mode +let s:N2 = ['#AFAF87', '#5F5F5F', 39, s:termbg2] " Middle block +let g:airline#themes#murmur#palette.normal = airline#themes#generate_color_map(s:N1, s:BB, s:N2) +let g:airline#themes#murmur#palette.normal_modified = {'airline_c': ['#ffffff', '#5f005f', s:alert, s:termbg2, 'bold'] ,} + +let s:I1 = ['#FFFFFF', '#87AF5F', 15, s:insertbg] " Outside blocks in insert mode +let s:I2 = ['#AFAF87', '#5F5F5F', s:insertbg, s:termbg2] " Middle block +let g:airline#themes#murmur#palette.insert = airline#themes#generate_color_map(s:I1, s:BB, s:I2) +let g:airline#themes#murmur#palette.insert_modified = {'airline_c': ['#AFAF87', '#5F5F5F', s:alert, s:termbg2, 'bold'] ,} + +let s:R1 = ['#FFFFFF', '#870000', 15, s:replacebg] " Outside blocks in replace mode +let s:R2 = ['#AFAF87', '#5F5F5F', 255, s:termbg2] " Middle block +let g:airline#themes#murmur#palette.replace = airline#themes#generate_color_map(s:R1, s:BB, s:R2) +let g:airline#themes#murmur#palette.replace_modified = {'airline_c': ['#AFAF87', '#5f005f', s:alert, s:termbg2, 'bold'] ,} + +let s:V1 = ['#FFFFFF', '#AF5F00', 15, s:visualbg] " Outside blocks in visual mode +let s:V2 = ['#AFAF87', '#5F5F5F', s:visualbg, s:termbg2] " Middle block +let g:airline#themes#murmur#palette.visual = airline#themes#generate_color_map(s:V1, s:BB, s:V2) +let g:airline#themes#murmur#palette.visual_modified = {'airline_c': [ '#AFAF87', '#5f005f', s:alert, s:termbg2, 'bold'] ,} + +" Inactive mode +let s:IA1 = ['#4E4E4E', '#1C1C1C', 239, 234, ''] +let s:IA2 = ['#4E4E4E', '#1C1C1C', 239, 234, ''] +let s:IA3 = ['#4E4E4E', '#1C1C1C', 239, 234, ''] +let g:airline#themes#murmur#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) + +" CtrlP plugin colors +if !get(g:, 'loaded_ctrlp', 0) + finish +endif +let g:airline#themes#murmur#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ ['#FFFFFF', '#5F87FF', 15, s:normalbg, ''], + \ ['#AFAF87', '#5F5F5F', 144, s:termbg, ''], + \ ['#AFAF87', '#5F5F5F', 39, s:termbg2, 'bold']) diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/powerlineish.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/powerlineish.vim new file mode 100644 index 0000000..d550e11 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/powerlineish.vim @@ -0,0 +1,46 @@ +" Theme to mimic the default colorscheme of powerline +" Not 100% the same so it's powerline... ish. +" +" Differences from default powerline: +" * Paste indicator isn't colored different +" * Far right hand section matches the color of the mode indicator +" +" Differences from other airline themes: +" * No color differences when you're in a modified buffer +" * Visual mode only changes the mode section. Otherwise +" it appears the same as normal mode + +" Normal mode " fg & bg +let s:N1 = [ '#005f00' , '#afd700' , 22 , 148 ] " darkestgreen & brightgreen +let s:N2 = [ '#9e9e9e' , '#303030' , 247 , 236 ] " gray8 & gray2 +let s:N3 = [ '#ffffff' , '#121212' , 231 , 233 ] " white & gray4 + +" Insert mode " fg & bg +let s:I1 = [ '#005f5f' , '#ffffff' , 23 , 231 ] " darkestcyan & white +let s:I2 = [ '#5fafd7' , '#0087af' , 74 , 31 ] " darkcyan & darkblue +let s:I3 = [ '#87d7ff' , '#005f87' , 117 , 24 ] " mediumcyan & darkestblue + +" Visual mode " fg & bg +let s:V1 = [ '#080808' , '#ffaf00' , 232 , 214 ] " gray3 & brightestorange + +" Replace mode " fg & bg +let s:RE = [ '#ffffff' , '#d70000' , 231 , 160 ] " white & brightred + +let g:airline#themes#powerlineish#palette = {} + +let g:airline#themes#powerlineish#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) + +let g:airline#themes#powerlineish#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#powerlineish#palette.insert_replace = { + \ 'airline_a': [ s:RE[0] , s:I1[1] , s:RE[1] , s:I1[3] , '' ] } + +let g:airline#themes#powerlineish#palette.visual = { + \ 'airline_a': [ s:V1[0] , s:V1[1] , s:V1[2] , s:V1[3] , '' ] } + +let g:airline#themes#powerlineish#palette.replace = copy(airline#themes#powerlineish#palette.normal) +let g:airline#themes#powerlineish#palette.replace.airline_a = [ s:RE[0] , s:RE[1] , s:RE[2] , s:RE[3] , '' ] + + +let s:IA = [ s:N2[1] , s:N3[1] , s:N2[3] , s:N3[3] , '' ] +let g:airline#themes#powerlineish#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/serene.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/serene.vim new file mode 100644 index 0000000..9191c07 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/serene.vim @@ -0,0 +1,41 @@ +let g:airline#themes#serene#palette = {} + +let s:guibg = '#080808' +let s:termbg = 232 +let s:termsep = 236 +let s:guisep = '#303030' + +let s:N1 = [ '#00dfff' , s:guibg , 45 , s:termbg ] +let s:N2 = [ '#ff5f00' , s:guibg , 202 , s:termbg ] +let s:N3 = [ '#767676' , s:guibg , 7 , s:termbg ] + +let g:airline#themes#serene#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#serene#palette.normal_modified = { + \ 'airline_c': [ '#df0000' , s:guibg, 160 , s:termbg , '' ] , + \ } + +let s:I1 = [ '#5fff00' , s:guibg , 82 , s:termbg ] +let s:I2 = [ '#ff5f00' , s:guibg , 202 , s:termbg ] +let s:I3 = [ '#767676' , s:guibg , 7 , s:termbg ] +let g:airline#themes#serene#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#serene#palette.insert_modified = copy(g:airline#themes#serene#palette.normal_modified) +let g:airline#themes#serene#palette.insert_paste = { + \ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] , + \ } + +let g:airline#themes#serene#palette.replace = { + \ 'airline_a': [ s:I1[0] , '#af0000' , s:I1[2] , 124 , '' ] , + \ } +let g:airline#themes#serene#palette.replace_modified = copy(g:airline#themes#serene#palette.normal_modified) + +let s:V1 = [ '#dfdf00' , s:guibg , 184 , s:termbg ] +let s:V2 = [ '#ff5f00' , s:guibg , 202 , s:termbg ] +let s:V3 = [ '#767676' , s:guibg , 7 , s:termbg ] +let g:airline#themes#serene#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#serene#palette.visual_modified = copy(g:airline#themes#serene#palette.normal_modified) + +let s:IA = [ '#4e4e4e' , s:guibg , 239 , s:termbg , '' ] +let s:IA2 = [ '#4e4e4e' , s:guisep , 239 , s:termsep , '' ] +let g:airline#themes#serene#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA2, s:IA2) +let g:airline#themes#serene#palette.inactive_modified = copy(g:airline#themes#serene#palette.normal_modified) + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/simple.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/simple.vim new file mode 100644 index 0000000..a111a1c --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/simple.vim @@ -0,0 +1,46 @@ +let g:airline#themes#simple#palette = {} + +let s:guibg = '#080808' +let s:guibg2 = '#1c1c1c' +let s:termbg = 232 +let s:termbg2= 234 + +let s:N1 = [ s:guibg , '#00dfff' , s:termbg , 45 ] +let s:N2 = [ '#ff5f00' , s:guibg2, 202 , s:termbg2 ] +let s:N3 = [ '#767676' , s:guibg, 243 , s:termbg] +let g:airline#themes#simple#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#simple#palette.normal_modified = { + \ 'airline_c': [ '#df0000' , s:guibg, 160 , s:termbg , '' ] , + \ } + + +let s:I1 = [ s:guibg, '#5fff00' , s:termbg , 82 ] +let s:I2 = [ '#ff5f00' , s:guibg2, 202 , s:termbg2 ] +let s:I3 = [ '#767676' , s:guibg, 243 , s:termbg ] +let g:airline#themes#simple#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#simple#palette.insert_modified = copy(g:airline#themes#simple#palette.normal_modified) +let g:airline#themes#simple#palette.insert_paste = { + \ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] , + \ } + + +let g:airline#themes#simple#palette.replace = { + \ 'airline_a': [ s:I1[0] , '#af0000' , s:I1[2] , 124 , '' ] , + \ } +let g:airline#themes#simple#palette.replace_modified = copy(g:airline#themes#simple#palette.normal_modified) + + +let s:V1 = [ s:guibg, '#dfdf00' , s:termbg , 184 ] +let s:V2 = [ '#ff5f00' , s:guibg2, 202 , s:termbg2 ] +let s:V3 = [ '#767676' , s:guibg, 243 , s:termbg ] +let g:airline#themes#simple#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#simple#palette.visual_modified = copy(g:airline#themes#simple#palette.normal_modified) + + +let s:IA = [ '#4e4e4e' , s:guibg , 239 , s:termbg , '' ] +let s:IA2 = [ '#4e4e4e' , s:guibg2 , 239 , s:termbg2 , '' ] +let g:airline#themes#simple#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA2, s:IA2) +let g:airline#themes#simple#palette.inactive_modified = { + \ 'airline_c': [ '#df0000', '', 160, '', '' ] , + \ } + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/sol.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/sol.vim new file mode 100644 index 0000000..89ea505 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/sol.vim @@ -0,0 +1,90 @@ +" vim-airline companion theme of Sol +" (https://github.com/Pychimp/vim-sol) + +let g:airline#themes#sol#palette = {} + +let g:airline#themes#sol#palette.accents = { + \ 'red': [ '#ffffff' , '' , 231 , '' , '' ], + \ } + +let s:N1 = [ '#343434' , '#a0a0a0' , 237 , 248 ] +let s:N2 = [ '#343434' , '#b3b3b3' , 237 , 250 ] +let s:N3 = [ '#343434' , '#c7c7c7' , 237 , 252 ] +let g:airline#themes#sol#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#sol#palette.normal_modified = { + \ 'airline_c': [ '#ffffff' , '#ff6868' , 237 , 209 , '' ] , + \ } + + +let s:I1 = [ '#eeeeee' , '#09643f' , 255 , 30 ] +let s:I2 = [ '#343434' , '#a3a3a3' , 237 , 249 ] +let s:I3 = [ '#343434' , '#b0b0b0' , 237 , 250 ] +let g:airline#themes#sol#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#sol#palette.insert_modified = { + \ 'airline_c': [ '#343434' , '#ffdbc7' , 237 , 216 , '' ] , + \ } +let g:airline#themes#sol#palette.insert_paste = { + \ 'airline_a': [ s:I1[0] , '#09643f' , s:I1[2] , 30 , '' ] , + \ } + + +let g:airline#themes#sol#palette.replace = copy(g:airline#themes#sol#palette.insert) +let g:airline#themes#sol#palette.replace.airline_a = [ s:I1[0] , '#ff2121' , s:I1[2] , 196 , '' ] +let g:airline#themes#sol#palette.replace.airline_z = [ s:I1[0] , '#ff2121' , s:I1[2] , 196 , '' ] +let g:airline#themes#sol#palette.replace_modified = g:airline#themes#sol#palette.insert_modified + +let s:V1 = [ '#ffff9a' , '#ff6003' , 222 , 202 ] +let s:V2 = [ '#343434' , '#a3a3a3' , 237 , 249 ] +let s:V3 = [ '#343434' , '#b0b0b0' , 237 , 250 ] +let g:airline#themes#sol#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#sol#palette.visual_modified = { + \ 'airline_c': [ '#343434' , '#ffdbc7' , 237 , 216 , '' ] , + \ } + +let s:IA = [ '#777777' , '#c7c7c7' , 244 , 251 , '' ] +let g:airline#themes#sol#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) +let g:airline#themes#sol#palette.inactive_modified = { + \ 'airline_c': [ '#ff3535' , '' , 203 , '' , '' ] , + \ } + +let g:airline#themes#sol#palette.tabline = { + \ 'airline_tab': ['#343434', '#b3b3b3', 237, 250, ''], + \ 'airline_tabsel': ['#ffffff', '#004b9a', 231, 31 , ''], + \ 'airline_tabtype': ['#343434', '#a0a0a0', 237, 248, ''], + \ 'airline_tabfill': ['#343434', '#c7c7c7', 237, 251, ''], + \ 'airline_tabmod': ['#343434', '#ffdbc7', 237, 216, ''], + \ } + +let s:WI = [ '#eeeeee', '#e33900', 255, 166 ] +let g:airline#themes#sol#palette.normal.airline_warning = [ + \ s:WI[0], s:WI[1], s:WI[2], s:WI[3] + \ ] + +let g:airline#themes#sol#palette.normal_modified.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning + +let g:airline#themes#sol#palette.insert.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning + +let g:airline#themes#sol#palette.insert_modified.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning + +let g:airline#themes#sol#palette.visual.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning + +let g:airline#themes#sol#palette.visual_modified.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning + +let g:airline#themes#sol#palette.replace.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning + +let g:airline#themes#sol#palette.replace_modified.airline_warning = + \ g:airline#themes#sol#palette.normal.airline_warning + +if !get(g:, 'loaded_ctrlp', 0) + finish +endif +let g:airline#themes#sol#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#343434' , '#c7c7c7' , 237 , 251 , '' ] , + \ [ '#343434' , '#b3b3b3' , 237 , 250 , '' ] , + \ [ '#eeeeee' , '#007fff' , 255 , 27 , '' ] ) diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/solarized.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/solarized.vim new file mode 100644 index 0000000..30ba47e --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/solarized.vim @@ -0,0 +1,176 @@ +let g:airline#themes#solarized#palette = {} + +function! airline#themes#solarized#refresh() + """""""""""""""""""""""""""""""""""""""""""""""" + " Options + """""""""""""""""""""""""""""""""""""""""""""""" + let s:background = get(g:, 'airline_solarized_bg', &background) + let s:ansi_colors = get(g:, 'solarized_termcolors', 16) != 256 && &t_Co >= 16 ? 1 : 0 + let s:tty = &t_Co == 8 + + """""""""""""""""""""""""""""""""""""""""""""""" + " Colors + """""""""""""""""""""""""""""""""""""""""""""""" + " Base colors + let s:base03 = {'t': s:ansi_colors ? 8 : (s:tty ? '0' : 234), 'g': '#002b36'} + let s:base02 = {'t': s:ansi_colors ? '0' : (s:tty ? '0' : 235), 'g': '#073642'} + let s:base01 = {'t': s:ansi_colors ? 10 : (s:tty ? '0' : 240), 'g': '#586e75'} + let s:base00 = {'t': s:ansi_colors ? 11 : (s:tty ? '7' : 241), 'g': '#657b83'} + let s:base0 = {'t': s:ansi_colors ? 12 : (s:tty ? '7' : 244), 'g': '#839496'} + let s:base1 = {'t': s:ansi_colors ? 14 : (s:tty ? '7' : 245), 'g': '#93a1a1'} + let s:base2 = {'t': s:ansi_colors ? 7 : (s:tty ? '7' : 254), 'g': '#eee8d5'} + let s:base3 = {'t': s:ansi_colors ? 15 : (s:tty ? '7' : 230), 'g': '#fdf6e3'} + let s:yellow = {'t': s:ansi_colors ? 3 : (s:tty ? '3' : 136), 'g': '#b58900'} + let s:orange = {'t': s:ansi_colors ? 9 : (s:tty ? '1' : 166), 'g': '#cb4b16'} + let s:red = {'t': s:ansi_colors ? 1 : (s:tty ? '1' : 160), 'g': '#dc322f'} + let s:magenta = {'t': s:ansi_colors ? 5 : (s:tty ? '5' : 125), 'g': '#d33682'} + let s:violet = {'t': s:ansi_colors ? 13 : (s:tty ? '5' : 61 ), 'g': '#6c71c4'} + let s:blue = {'t': s:ansi_colors ? 4 : (s:tty ? '4' : 33 ), 'g': '#268bd2'} + let s:cyan = {'t': s:ansi_colors ? 6 : (s:tty ? '6' : 37 ), 'g': '#2aa198'} + let s:green = {'t': s:ansi_colors ? 2 : (s:tty ? '2' : 64 ), 'g': '#859900'} + + """""""""""""""""""""""""""""""""""""""""""""""" + " Simple mappings + " NOTE: These are easily tweakable mappings. The actual mappings get + " the specific gui and terminal colors from the base color dicts. + """""""""""""""""""""""""""""""""""""""""""""""" + " Normal mode + if s:background == 'dark' + let s:N1 = [s:base3, s:base1, 'bold'] + let s:N2 = [s:base2, (s:tty ? s:base01 : s:base00), ''] + let s:N3 = [s:base01, s:base02, ''] + else + let s:N1 = [s:base2, s:base00, 'bold'] + let s:N2 = [(s:tty ? s:base01 : s:base2), s:base1, ''] + let s:N3 = [s:base1, s:base2, ''] + endif + let s:NF = [s:orange, s:N3[1], ''] + let s:NW = [s:base3, s:orange, ''] + if s:background == 'dark' + let s:NM = [s:base1, s:N3[1], ''] + let s:NMi = [s:base2, s:N3[1], ''] + else + let s:NM = [s:base01, s:N3[1], ''] + let s:NMi = [s:base02, s:N3[1], ''] + endif + + " Insert mode + let s:I1 = [s:N1[0], s:yellow, 'bold'] + let s:I2 = s:N2 + let s:I3 = s:N3 + let s:IF = s:NF + let s:IM = s:NM + + " Visual mode + let s:V1 = [s:N1[0], s:magenta, 'bold'] + let s:V2 = s:N2 + let s:V3 = s:N3 + let s:VF = s:NF + let s:VM = s:NM + + " Replace mode + let s:R1 = [s:N1[0], s:red, ''] + let s:R2 = s:N2 + let s:R3 = s:N3 + let s:RM = s:NM + let s:RF = s:NF + + " Inactive, according to VertSplit in solarized + " (bg dark: base00; bg light: base0) + if s:background == 'dark' + let s:IA = [s:base02, s:base00, ''] + else + let s:IA = [s:base2, s:base0, ''] + endif + + """""""""""""""""""""""""""""""""""""""""""""""" + " Actual mappings + " WARNING: Don't modify this section unless necessary. + """""""""""""""""""""""""""""""""""""""""""""""" + let s:NFa = [s:NF[0].g, s:NF[1].g, s:NF[0].t, s:NF[1].t, s:NF[2]] + let s:IFa = [s:IF[0].g, s:IF[1].g, s:IF[0].t, s:IF[1].t, s:IF[2]] + let s:VFa = [s:VF[0].g, s:VF[1].g, s:VF[0].t, s:VF[1].t, s:VF[2]] + let s:RFa = [s:RF[0].g, s:RF[1].g, s:RF[0].t, s:RF[1].t, s:RF[2]] + + let g:airline#themes#solarized#palette.accents = { + \ 'red': s:NFa, + \ } + + let g:airline#themes#solarized#palette.inactive = airline#themes#generate_color_map( + \ [s:IA[0].g, s:IA[1].g, s:IA[0].t, s:IA[1].t, s:IA[2]], + \ [s:IA[0].g, s:IA[1].g, s:IA[0].t, s:IA[1].t, s:IA[2]], + \ [s:IA[0].g, s:IA[1].g, s:IA[0].t, s:IA[1].t, s:IA[2]]) + let g:airline#themes#solarized#palette.inactive_modified = { + \ 'airline_c': [s:NMi[0].g, '', s:NMi[0].t, '', s:NMi[2]]} + + let g:airline#themes#solarized#palette.normal = airline#themes#generate_color_map( + \ [s:N1[0].g, s:N1[1].g, s:N1[0].t, s:N1[1].t, s:N1[2]], + \ [s:N2[0].g, s:N2[1].g, s:N2[0].t, s:N2[1].t, s:N2[2]], + \ [s:N3[0].g, s:N3[1].g, s:N3[0].t, s:N3[1].t, s:N3[2]]) + + let g:airline#themes#solarized#palette.normal.airline_warning = [ + \ s:NW[0].g, s:NW[1].g, s:NW[0].t, s:NW[1].t, s:NW[2]] + + let g:airline#themes#solarized#palette.normal_modified = { + \ 'airline_c': [s:NM[0].g, s:NM[1].g, + \ s:NM[0].t, s:NM[1].t, s:NM[2]]} + + let g:airline#themes#solarized#palette.normal_modified.airline_warning = + \ g:airline#themes#solarized#palette.normal.airline_warning + + let g:airline#themes#solarized#palette.insert = airline#themes#generate_color_map( + \ [s:I1[0].g, s:I1[1].g, s:I1[0].t, s:I1[1].t, s:I1[2]], + \ [s:I2[0].g, s:I2[1].g, s:I2[0].t, s:I2[1].t, s:I2[2]], + \ [s:I3[0].g, s:I3[1].g, s:I3[0].t, s:I3[1].t, s:I3[2]]) + + let g:airline#themes#solarized#palette.insert.airline_warning = + \ g:airline#themes#solarized#palette.normal.airline_warning + + let g:airline#themes#solarized#palette.insert_modified = { + \ 'airline_c': [s:IM[0].g, s:IM[1].g, + \ s:IM[0].t, s:IM[1].t, s:IM[2]]} + + let g:airline#themes#solarized#palette.insert_modified.airline_warning = + \ g:airline#themes#solarized#palette.normal.airline_warning + + let g:airline#themes#solarized#palette.visual = airline#themes#generate_color_map( + \ [s:V1[0].g, s:V1[1].g, s:V1[0].t, s:V1[1].t, s:V1[2]], + \ [s:V2[0].g, s:V2[1].g, s:V2[0].t, s:V2[1].t, s:V2[2]], + \ [s:V3[0].g, s:V3[1].g, s:V3[0].t, s:V3[1].t, s:V3[2]]) + + let g:airline#themes#solarized#palette.visual.airline_warning = + \ g:airline#themes#solarized#palette.normal.airline_warning + + let g:airline#themes#solarized#palette.visual_modified = { + \ 'airline_c': [s:VM[0].g, s:VM[1].g, + \ s:VM[0].t, s:VM[1].t, s:VM[2]]} + + let g:airline#themes#solarized#palette.visual_modified.airline_warning = + \ g:airline#themes#solarized#palette.normal.airline_warning + + let g:airline#themes#solarized#palette.replace = airline#themes#generate_color_map( + \ [s:R1[0].g, s:R1[1].g, s:R1[0].t, s:R1[1].t, s:R1[2]], + \ [s:R2[0].g, s:R2[1].g, s:R2[0].t, s:R2[1].t, s:R2[2]], + \ [s:R3[0].g, s:R3[1].g, s:R3[0].t, s:R3[1].t, s:R3[2]]) + + let g:airline#themes#solarized#palette.replace.airline_warning = + \ g:airline#themes#solarized#palette.normal.airline_warning + + let g:airline#themes#solarized#palette.replace_modified = { + \ 'airline_c': [s:RM[0].g, s:RM[1].g, + \ s:RM[0].t, s:RM[1].t, s:RM[2]]} + + let g:airline#themes#solarized#palette.replace_modified.airline_warning = + \ g:airline#themes#solarized#palette.normal.airline_warning + + let g:airline#themes#solarized#palette.tabline = {} + + let g:airline#themes#solarized#palette.tabline.airline_tab = [ + \ s:I2[0].g, s:I2[1].g, s:I2[0].t, s:I2[1].t, s:I2[2]] + + let g:airline#themes#solarized#palette.tabline.airline_tabtype = [ + \ s:N2[0].g, s:N2[1].g, s:N2[0].t, s:N2[1].t, s:N2[2]] +endfunction + +call airline#themes#solarized#refresh() + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/tomorrow.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/tomorrow.vim new file mode 100644 index 0000000..f382fc1 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/tomorrow.vim @@ -0,0 +1,44 @@ +let g:airline#themes#tomorrow#palette = {} + +function! airline#themes#tomorrow#refresh() + let g:airline#themes#tomorrow#palette.accents = { + \ 'red': airline#themes#get_highlight('Constant'), + \ } + + let s:N1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Directory', 'fg'], 'bold') + let s:N2 = airline#themes#get_highlight('Pmenu') + let s:N3 = airline#themes#get_highlight('CursorLine') + let g:airline#themes#tomorrow#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) + + let group = airline#themes#get_highlight('vimCommand') + let g:airline#themes#tomorrow#palette.normal_modified = { + \ 'airline_c': [ group[0], '', group[2], '', '' ] + \ } + + let s:I1 = airline#themes#get_highlight2(['Normal', 'bg'], ['MoreMsg', 'fg'], 'bold') + let s:I2 = airline#themes#get_highlight2(['MoreMsg', 'fg'], ['Normal', 'bg']) + let s:I3 = s:N3 + let g:airline#themes#tomorrow#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) + let g:airline#themes#tomorrow#palette.insert_modified = g:airline#themes#tomorrow#palette.normal_modified + + let s:R1 = airline#themes#get_highlight('Error', 'bold') + let s:R2 = s:N2 + let s:R3 = s:N3 + let g:airline#themes#tomorrow#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) + let g:airline#themes#tomorrow#palette.replace_modified = g:airline#themes#tomorrow#palette.normal_modified + + let s:V1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Constant', 'fg'], 'bold') + let s:V2 = airline#themes#get_highlight2(['Constant', 'fg'], ['Normal', 'bg']) + let s:V3 = s:N3 + let g:airline#themes#tomorrow#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) + let g:airline#themes#tomorrow#palette.visual_modified = g:airline#themes#tomorrow#palette.normal_modified + + let s:IA = airline#themes#get_highlight2(['NonText', 'fg'], ['CursorLine', 'bg']) + let g:airline#themes#tomorrow#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) + let g:airline#themes#tomorrow#palette.inactive_modified = { + \ 'airline_c': [ group[0], '', group[2], '', '' ] + \ } +endfunction + +call airline#themes#tomorrow#refresh() + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/ubaryd.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/ubaryd.vim new file mode 100644 index 0000000..70232ef --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/ubaryd.vim @@ -0,0 +1,64 @@ +" vim-airline companion theme of Ubaryd +" (https://github.com/Donearm/Ubaryd) + +" Normal mode +let s:N1 = [ '#141413' , '#c7b386' , 232 , 252 ] " blackestgravel & bleaksand +let s:N2 = [ '#c7b386' , '#45413b' , 252, 238 ] " bleaksand & deepgravel +let s:N3 = [ '#b88853' , '#242321' , 137, 235 ] " toffee & darkgravel +let s:N4 = [ '#857f78' , 243 ] " gravel + +" Insert mode +let s:I1 = [ '#1a1a18' , '#fade3e' , 232 , 221 ] " blackestgravel & warmcorn +let s:I2 = [ '#c7b386' , '#45413b' , 252 , 238 ] " bleaksand & deepgravel +let s:I3 = [ '#f4cf86' , '#242321' , 222 , 235 ] " lighttannedskin & darkgravel + +" Visual mode +let s:V1 = [ '#1c1b1a' , '#9a4820' , 233 , 88 ] " blackgravel & warmadobe +let s:V2 = [ '#000000' , '#88633f' , 16 , 95 ] " coal & cappuccino +let s:V3 = [ '#88633f' , '#c7b386' , 95 , 252 ] " cappuccino & bleaksand +let s:V4 = [ '#c14c3d' , 160 ] " tannedumbrella + +" Replace mode +let s:RE = [ '#c7915b' , 173 ] " nut + +" Paste mode +let s:PA = [ '#f9ef6d' , 154 ] " bleaklemon + +let s:IA = [ s:N2[1], s:N3[1], s:N2[3], s:N3[3], '' ] + +let g:airline#themes#ubaryd#palette = {} + +let g:airline#themes#ubaryd#palette.accents = { + \ 'red': [ '#ff7400' , '' , 196 , '' , '' ], + \ } + +let g:airline#themes#ubaryd#palette.inactive = { + \ 'airline_a' : [ s:N2[1] , s:N3[1] , s:N2[3] , s:N3[3] , '' ] } + + +let g:airline#themes#ubaryd#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#ubaryd#palette.normal_modified = { + \ 'airline_a' : [ s:N2[0] , s:N4[0] , s:N2[2] , s:N4[1] , '' ] , + \ 'airline_c' : [ s:V1[1] , s:N2[1] , s:V1[3] , s:N2[3] , '' ] } + + +let g:airline#themes#ubaryd#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#ubaryd#palette.insert_modified = { + \ 'airline_c' : [ s:V2[1] , s:N2[1] , s:V2[3] , s:N2[3] , '' ] } +let g:airline#themes#ubaryd#palette.insert_paste = { + \ 'airline_a' : [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] } + + +let g:airline#themes#ubaryd#palette.replace = copy(airline#themes#ubaryd#palette.insert) +let g:airline#themes#ubaryd#palette.replace.airline_a = [ s:I1[0] , s:RE[0] , s:I1[2] , s:RE[1] , '' ] +let g:airline#themes#ubaryd#palette.replace_modified = g:airline#themes#ubaryd#palette.insert_modified + + +let g:airline#themes#ubaryd#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#ubaryd#palette.visual_modified = { + \ 'airline_c' : [ s:V3[0] , s:V4[0] , s:V3[2] , s:V4[1] , '' ] } + +let g:airline#themes#ubaryd#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) +let g:airline#themes#ubaryd#palette.inactive_modified = { + \ 'airline_c' : [ s:V1[1] , '' , s:V1[3] , '' , '' ] } + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/understated.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/understated.vim new file mode 100644 index 0000000..b3e7917 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/understated.vim @@ -0,0 +1,43 @@ +let g:airline#themes#understated#palette = {} + +let s:N1 = ['#FFFFFF', '#5F87FF', 15, 69] " Outside blocks in normal mode (mode and file position) +let s:N2 = ['#AFAF87', '#5F5F5F', 144, 59] " Next blocks inside (branch and file format) +let s:N3 = ['#AFAF87', '#5F5F5F', 144, 59] " The middle block + +let g:airline#themes#understated#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#understated#palette.normal_modified = {'airline_c': ['#ffffff', '#5f005f', 144, 59, 'bold'] ,} + +let s:I1 = ['#FFFFFF', '#87AF5F', 15, 107] " Outside blocks in normal mode (mode and file position) +let s:I2 = ['#AFAF87', '#5F5F5F', 144, 59] " Next blocks inside (branch and file format) +let s:I3 = ['#AFAF87', '#5F5F5F', 144, 59] " The middle block +let g:airline#themes#understated#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#understated#palette.insert_modified = {'airline_c': ['#AFAF87', '#5F5F5F', 144, 59, 'bold'] ,} +let g:airline#themes#understated#palette.insert_paste = {'airline_c': ['#AFAF87', '#5F5F5F', 144, 59, ''] ,} + +let g:airline#themes#understated#palette.replace = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#understated#palette.replace.airline_a = ['#FFFFFF', '#870000', 15, 88, ''] +let g:airline#themes#understated#palette.replace_modified = {'airline_c': ['#AFAF87', '#5F5F5F', 144, 59, 'bold'] ,} + +let s:V1 = ['#FFFFFF', '#AF5F00', 15, 130] +let s:V2 = ['#AFAF87', '#5F5F5F', 144, 59] +let s:V3 = ['#AFAF87', '#5F5F5F', 144, 59] +let g:airline#themes#understated#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#understated#palette.visual_modified = {'airline_c': [ '#AFAF87', '#5f005f', 144, 59, 'bold'] ,} + +let s:V1 = ['#080808', '#FFAF00', 232, 214] +let s:IA1 = ['#4E4E4E', '#1C1C1C', 239, 234, ''] +let s:IA2 = ['#4E4E4E', '#1C1C1C', 239, 234, ''] +let s:IA3 = ['#4E4E4E', '#1C1C1C', 239, 234, ''] +let g:airline#themes#understated#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) +let g:airline#themes#understated#palette.inactive_modified = {'airline_c': ['#4E4E4E', '', 239, '', 'bold'] ,} + +let g:airline#themes#understated#palette.accents = {'red': ['#FF0000', '', 88, '']} + +if !get(g:, 'loaded_ctrlp', 0) + finish +endif +let g:airline#themes#understated#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ ['#FFFFFF', '#1C1C1C', 15, 234, '' ], + \ ['#FFFFFF', '#262626', 15, 235, '' ], + \ ['#FFFFFF', '#303030', 15, 236, 'bold']) + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/wombat.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/wombat.vim new file mode 100644 index 0000000..39fdc4c --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/wombat.vim @@ -0,0 +1,90 @@ +" vim-airline companion theme of Wombat +" looks great with wombat256 vim colorscheme + +" Normal mode +" [ guifg, guibg, ctermfg, ctermbg, opts ] +let s:N1 = [ '#141413' , '#CAE682' , 232 , 192 ] " mode +let s:N2 = [ '#CAE682' , '#32322F' , 192 , 236 ] " info +let s:N3 = [ '#CAE682' , '#242424' , 192 , 234 ] " statusline +let s:N4 = [ '#86CD74' , 113 ] " mode modified + +" Insert mode +let s:I1 = [ '#141413' , '#FDE76E' , 232 , 227 ] +let s:I2 = [ '#FDE76E' , '#32322F' , 227 , 236 ] +let s:I3 = [ '#FDE76E' , '#242424' , 227 , 234 ] +let s:I4 = [ '#FADE3E' , 221 ] + +" Visual mode +let s:V1 = [ '#141413' , '#B5D3F3' , 232 , 153 ] +let s:V2 = [ '#B5D3F3' , '#32322F' , 153 , 236 ] +let s:V3 = [ '#B5D3F3' , '#242424' , 153 , 234 ] +let s:V4 = [ '#7CB0E6' , 111 ] + +" Replace mode +let s:R1 = [ '#141413' , '#E5786D' , 232 , 173 ] +let s:R2 = [ '#E5786D' , '#32322F' , 173 , 236 ] +let s:R3 = [ '#E5786D' , '#242424' , 173 , 234 ] +let s:R4 = [ '#E55345' , 203 ] + +" Paste mode +let s:PA = [ '#94E42C' , 47 ] + +" Info modified +let s:IM = [ '#40403C' , 238 ] + +" Inactive mode +let s:IA = [ '#767676' , s:N3[1] , 243 , s:N3[3] , '' ] + +let g:airline#themes#wombat#palette = {} + +let g:airline#themes#wombat#palette.accents = { + \ 'red': [ '#E5786D' , '' , 203 , '' , '' ], + \ } + +let g:airline#themes#wombat#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#wombat#palette.normal_modified = { + \ 'airline_a': [ s:N1[0] , s:N4[0] , s:N1[2] , s:N4[1] , '' ] , + \ 'airline_b': [ s:N4[0] , s:IM[0] , s:N4[1] , s:IM[1] , '' ] , + \ 'airline_c': [ s:N4[0] , s:N3[1] , s:N4[1] , s:N3[3] , '' ] } + + +let g:airline#themes#wombat#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#wombat#palette.insert_modified = { + \ 'airline_a': [ s:I1[0] , s:I4[0] , s:I1[2] , s:I4[1] , '' ] , + \ 'airline_b': [ s:I4[0] , s:IM[0] , s:I4[1] , s:IM[1] , '' ] , + \ 'airline_c': [ s:I4[0] , s:N3[1] , s:I4[1] , s:N3[3] , '' ] } + + +let g:airline#themes#wombat#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#wombat#palette.visual_modified = { + \ 'airline_a': [ s:V1[0] , s:V4[0] , s:V1[2] , s:V4[1] , '' ] , + \ 'airline_b': [ s:V4[0] , s:IM[0] , s:V4[1] , s:IM[1] , '' ] , + \ 'airline_c': [ s:V4[0] , s:N3[1] , s:V4[1] , s:N3[3] , '' ] } + + +let g:airline#themes#wombat#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) +let g:airline#themes#wombat#palette.replace_modified = { + \ 'airline_a': [ s:R1[0] , s:R4[0] , s:R1[2] , s:R4[1] , '' ] , + \ 'airline_b': [ s:R4[0] , s:IM[0] , s:R4[1] , s:IM[1] , '' ] , + \ 'airline_c': [ s:R4[0] , s:N3[1] , s:R4[1] , s:N3[3] , '' ] } + + +let g:airline#themes#wombat#palette.insert_paste = { + \ 'airline_a': [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] , + \ 'airline_b': [ s:PA[0] , s:IM[0] , s:PA[1] , s:IM[1] , '' ] , + \ 'airline_c': [ s:PA[0] , s:N3[1] , s:PA[1] , s:N3[3] , '' ] } + + +let g:airline#themes#wombat#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) +let g:airline#themes#wombat#palette.inactive_modified = { + \ 'airline_c': [ s:N4[0] , '' , s:N4[1] , '' , '' ] } + + +if !get(g:, 'loaded_ctrlp', 0) + finish +endif +let g:airline#themes#wombat#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#DADADA' , '#242424' , 253 , 234 , '' ] , + \ [ '#DADADA' , '#40403C' , 253 , 238 , '' ] , + \ [ '#141413' , '#DADADA' , 232 , 253 , 'bold' ] ) + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/zenburn.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/zenburn.vim new file mode 100644 index 0000000..9883c21 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/zenburn.vim @@ -0,0 +1,44 @@ +let g:airline#themes#zenburn#palette = {} + +function! airline#themes#zenburn#refresh() + let g:airline#themes#zenburn#palette.accents = { + \ 'red': airline#themes#get_highlight('Constant'), + \ } + + let s:N1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['Folded', 'fg'], 'bold') + let s:N2 = airline#themes#get_highlight('Folded') + let s:N3 = airline#themes#get_highlight('NonText') + + let g:airline#themes#zenburn#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) + let s:Nmod = airline#themes#get_highlight('Comment') + let g:airline#themes#zenburn#palette.normal_modified = { + \ 'airline_c': s:Nmod + \ } + + let s:I1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['String', 'fg'], 'bold') + let s:I2 = airline#themes#get_highlight2(['String', 'fg'], ['Folded', 'bg']) + let s:I3 = s:N3 + let g:airline#themes#zenburn#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) + let g:airline#themes#zenburn#palette.insert_modified = g:airline#themes#zenburn#palette.normal_modified + + let s:R1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['Comment', 'fg'], 'bold') + let s:R2 = airline#themes#get_highlight2(['Comment', 'fg'], ['Folded', 'bg']) + let s:R3 = s:N3 + let g:airline#themes#zenburn#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) + let g:airline#themes#zenburn#palette.replace_modified = g:airline#themes#zenburn#palette.normal_modified + + let s:V1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['Identifier', 'fg'], 'bold') + let s:V2 = airline#themes#get_highlight2(['Identifier', 'fg'], ['Folded', 'bg']) + let s:V3 = s:N3 + let g:airline#themes#zenburn#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) + let g:airline#themes#zenburn#palette.visual_modified = g:airline#themes#zenburn#palette.normal_modified + + let s:IA = airline#themes#get_highlight('NonText') + let g:airline#themes#zenburn#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) + let g:airline#themes#zenburn#palette.inactive_modified = { + \ 'airline_c': s:Nmod + \ } +endfunction + +call airline#themes#zenburn#refresh() + diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/util.vim b/vim/.vim/bundle/vim-airline/autoload/airline/util.vim new file mode 100644 index 0000000..a04bd0b --- /dev/null +++ b/vim/.vim/bundle/vim-airline/autoload/airline/util.vim @@ -0,0 +1,64 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +call airline#init#bootstrap() +let s:spc = g:airline_symbols.space + +function! airline#util#wrap(text, minwidth) + if a:minwidth > 0 && winwidth(0) < a:minwidth + return '' + endif + return a:text +endfunction + +function! airline#util#append(text, minwidth) + if a:minwidth > 0 && winwidth(0) < a:minwidth + return '' + endif + let prefix = s:spc == "\ua0" ? s:spc : s:spc.s:spc + return empty(a:text) ? '' : prefix.g:airline_left_alt_sep.s:spc.a:text +endfunction + +function! airline#util#prepend(text, minwidth) + if a:minwidth > 0 && winwidth(0) < a:minwidth + return '' + endif + return empty(a:text) ? '' : a:text.s:spc.g:airline_right_alt_sep.s:spc +endfunction + +if v:version >= 704 + function! airline#util#getwinvar(winnr, key, def) + return getwinvar(a:winnr, a:key, a:def) + endfunction +else + function! airline#util#getwinvar(winnr, key, def) + let winvals = getwinvar(a:winnr, '') + return get(winvals, a:key, a:def) + endfunction +endif + +if v:version >= 704 + function! airline#util#exec_funcrefs(list, ...) + for Fn in a:list + let code = call(Fn, a:000) + if code != 0 + return code + endif + endfor + return 0 + endfunction +else + function! airline#util#exec_funcrefs(list, ...) + " for 7.2; we cannot iterate the list, hence why we use range() + " for 7.3-[97, 328]; we cannot reuse the variable, hence the {} + for i in range(0, len(a:list) - 1) + let Fn{i} = a:list[i] + let code = call(Fn{i}, a:000) + if code != 0 + return code + endif + endfor + return 0 + endfunction +endif + diff --git a/vim/.vim/bundle/vim-airline/doc/airline.txt b/vim/.vim/bundle/vim-airline/doc/airline.txt new file mode 100644 index 0000000..0ae928a --- /dev/null +++ b/vim/.vim/bundle/vim-airline/doc/airline.txt @@ -0,0 +1,752 @@ +*airline.txt* Lean and mean status/tabline that's light as air +*airline* + _ _ _ _ ~ + __ _(_)_ __ ___ __ _(_)_ __| (_)_ __ ___ ~ + \ \ / / | '_ ` _ \ _____ / _` | | '__| | | '_ \ / _ \ ~ + \ V /| | | | | | |_____| (_| | | | | | | | | | __/ ~ + \_/ |_|_| |_| |_| \__,_|_|_| |_|_|_| |_|\___| ~ + ~ +============================================================================== +CONTENTS *airline-contents* + + 01. Intro ............................................... |airline-intro| + 02. Features ......................................... |airline-features| + 03. Name ................................................. |airline-name| + 04. Configuration ............................... |airline-configuration| + 05. Commands ......................................... |airline-commands| + 06. Customization ............................... |airline-customization| + 07. Extensions ..................................... |airline-extensions| + 08. Advanced Customization ............. |airline-advanced-customization| + 09. Funcrefs ......................................... |airline-funcrefs| + 10. Pipeline ......................................... |airline-pipeline| + 11. Writing Extensions ..................... |airline-writing-extensions| + 12. Writing Themes ..................................... |airline-themes| + 13. Troubleshooting ........................... |airline-troubleshooting| + 14. Contributions ............................... |airline-contributions| + 15. License ........................................... |airline-license| + +============================================================================== +INTRODUCTION *airline-intro* + +vim-airline is a fast and lightweight alternative to powerline, written +in 100% vimscript with no outside dependencies. + +============================================================================== +FEATURES *airline-features* + +* tiny core written with extensibility in mind. +* integrates with many popular plugins. +* looks good with regular fonts, and provides configuration points so you + can use unicode or powerline symbols. +* optimized for speed; it loads in under a millisecond. +* fully customizable; if you know a little 'statusline' syntax you can + tweak it to your needs. +* extremely easy to write themes. + +============================================================================== +NAME *airline-name* + +Where did the name come from? + +I wrote this on an airplane, and since it's light as air it turned out to be a +good name :-) + +============================================================================== +CONFIGURATION *airline-configuration* + +There are a couple configuration values available (shown with their default +values): + +* the separator used on the left side > + let g:airline_left_sep='>' +< +* the separator used on the right side > + let g:airline_right_sep='<' +< +* enable modified detection > + let g:airline_detect_modified=1 + +* enable paste detection > + let g:airline_detect_paste=1 +< +* enable iminsert detection > + let g:airline_detect_iminsert=0 +< +* determine whether inactive windows should have the left section collapsed to + only the filename of that buffer. > + let g:airline_inactive_collapse=1 +< +* themes are automatically selected based on the matching colorscheme. this + can be overridden by defining a value. > + let g:airline_theme= +< +* if you want to patch the airline theme before it gets applied, you can + supply the name of a function where you can modify the palette. > + let g:airline_theme_patch_func = 'AirlineThemePatch' + function! AirlineThemePatch(palette) + if g:airline_theme == 'badwolf' + for colors in values(a:palette.inactive) + let colors[3] = 245 + endfor + endif + endfunction +< +* enable/disable automatic population of the `g:airline_symbols` dictionary + with powerline symbols. > + let g:airline_powerline_fonts=0 +< +* define the set of text to display for each mode. > + let g:airline_mode_map = {} " see source for the defaults + + " or copy paste the following into your vimrc for shortform text + let g:airline_mode_map = { + \ '__' : '-', + \ 'n' : 'N', + \ 'i' : 'I', + \ 'R' : 'R', + \ 'c' : 'C', + \ 'v' : 'V', + \ 'V' : 'V', + \ '' : 'V', + \ 's' : 'S', + \ 'S' : 'S', + \ '' : 'S', + \ } +< +* define the set of filename match queries which excludes a window from having + its statusline modified > + let g:airline_exclude_filenames = [] " see source for current list +< +* define the set of filetypes which are excluded from having its window + statusline modified > + let g:airline_exclude_filetypes = [] " see source for current list +< +* defines whether the preview window should be excluded from have its window + statusline modified (may help with plugins which use the preview window + heavily) > + let g:airline_exclude_preview = 0 +< +============================================================================== +COMMANDS *airline-commands* + +:AirlineTheme {theme-name} *:AirlineTheme* + Displays or changes the current theme. + +:AirlineToggleWhitespace *:AirlineToggleWhitespace* + Toggles whitespace detection. + +:AirlineToggle *:AirlineToggle* + Toggles between the standard 'statusline' and airline. + +:AirlineRefresh *:AirlineRefresh* + Refreshes all highlight groups. + +============================================================================== +CUSTOMIZATION *airline-customization* + +The following are some unicode symbols for customizing the left/right +separators, as well as the powerline font glyths. + +Note: You must define the dictionary first before setting values. Also, it's a +good idea to check whether if it exists as to avoid accidentally overwritting +its contents. > + if !exists('g:airline_symbols') + let g:airline_symbols = {} + endif + + " unicode symbols + let g:airline_left_sep = '»' + let g:airline_left_sep = '▶' + let g:airline_right_sep = '«' + let g:airline_right_sep = '◀' + let g:airline_symbols.linenr = '␊' + let g:airline_symbols.linenr = '␤' + let g:airline_symbols.linenr = '¶' + let g:airline_symbols.branch = '⎇' + let g:airline_symbols.paste = 'ρ' + let g:airline_symbols.paste = 'Þ' + let g:airline_symbols.paste = '∥' + let g:airline_symbols.whitespace = 'Ξ' + + " powerline symbols + let g:airline_left_sep = '' + let g:airline_left_alt_sep = '' + let g:airline_right_sep = '' + let g:airline_right_alt_sep = '' + let g:airline_symbols.branch = '' + let g:airline_symbols.readonly = '' + let g:airline_symbols.linenr = '' + + " old vim-powerline symbols + let g:airline_left_sep = '⮀' + let g:airline_left_alt_sep = '⮁' + let g:airline_right_sep = '⮂' + let g:airline_right_alt_sep = '⮃' + let g:airline_symbols.branch = '⭠' + let g:airline_symbols.readonly = '⭤' + let g:airline_symbols.linenr = '⭡' +< + +For more intricate customizations, you can replace the predefined sections +with the usual statusline syntax. + +Note: If you define any section variables it will replace the default values +entirely. If you want to disable only certain parts of a section you can try +using variables defined in the |airline-configuration| or |airline-extensions| +section. +> + variable names default contents + ---------------------------------------------------------------------------- + let g:airline_section_a (mode, paste, iminsert) + let g:airline_section_b (hunks, branch) + let g:airline_section_c (bufferline or filename) + let g:airline_section_gutter (readonly, csv) + let g:airline_section_x (tagbar, filetype, virtualenv) + let g:airline_section_y (fileencoding, fileformat) + let g:airline_section_z (percentage, line number, column number) + let g:airline_section_warning (syntastic, whitespace) + + " here is an example of how you could replace the branch indicator with + " the current working directory, followed by the filename. + let g:airline_section_b = '%{getcwd()}' + let g:airline_section_c = '%t' +< +============================================================================== +EXTENSIONS *airline-extensions* + +Most extensions are enabled by default and lazily loaded when the +corresponding plugin (if any) is detected. + +By default, airline will attempt to load any extension it can find in the +'runtimepath'. On some systems this can result in an undersirable startup +cost. You can disable the check with the following flag. > + let g:airline#extensions#disable_rtp_load = 1 +< + Note: Third party plugins that rely on this behavior will be affected. You + will need to manually load them. + +------------------------------------- *airline-default* +The default extension understands all of the `g:` variables in the +|airline-configuration| section, however it also has some more fine-tuned +configuration values that you can use. + +* control which sections get truncated and at what width. > + let g:airline#extensions#default#section_truncate_width = { + \ 'b': 79, + \ 'x': 60, + \ 'y': 88, + \ 'z': 45, + \ } + + " Note: set to an empty dictionary to disable truncation. + let g:airline#extensions#default#section_truncate_width = {} +< +* configure the layout of the sections by specificing an array of two arrays + (first array is the left side, second array is the right side). > + let g:airline#extensions#default#layout = [ + \ [ 'a', 'b', 'c' ], + \ [ 'x', 'y', 'z', 'warning' ] + \ ] +< +------------------------------------- *airline-quickfix* +The quickfix extension is a simple built-in extension which determines +whether the buffer is a quickfix or location list buffer, and adjusts the +title accordingly. + +* configure the title text for quickfix buffers > + let g:airline#extensions#quickfix#quickfix_text = 'Quickfix' +< +* configure the title text for location list buffers > + let g:airline#extensions#quickfix#location_text = 'Location' +< + +------------------------------------- *airline-bufferline* +vim-bufferline + +* enable/disable bufferline integration > + let g:airline#extensions#bufferline#enabled = 1 +< +* determine whether bufferline will overwrite customization variables > + let g:airline#extensions#bufferline#overwrite_variables = 1 +< +------------------------------------- *airline-branch* +fugitive.vim +lawrencium +vcscommand + +* enable/disable fugitive/lawrencium integration > + let g:airline#extensions#branch#enabled = 1 +< +* change the text for when no branch is detected > + let g:airline#extensions#branch#empty_message = '' + +* use vcscommand.vim if available > + let g:airline#extensions#branch#use_vcscommand = 0 +< +------------------------------------- *airline-syntastic* +syntastic + +* enable/disable syntastic integration > + let g:airline#extensions#syntastic#enabled = 1 +< +------------------------------------- *airline-tagbar* +tagbar + +* enable/disable tagbar integration > + let g:airline#extensions#tagbar#enabled = 1 +< +* change how tags are displayed (:help tagbar-statusline) > + let g:airline#extensions#tagbar#flags = '' (default) + let g:airline#extensions#tagbar#flags = 'f' + let g:airline#extensions#tagbar#flags = 's' + let g:airline#extensions#tagbar#flags = 'p' +< +------------------------------------- *airline-csv* +csv.vim + +* enable/disable csv integration for displaying the current column. > + let g:airline#extensions#csv#enabled = 1 +< +* change how columns are displayed. > + let g:airline#extensions#csv#column_display = 'Number' (default) + let g:airline#extensions#csv#column_display = 'Name' +< +------------------------------------- *airline-hunks* +vim-gitgutter +vim-signify + +* enable/disable showing a summary of changed hunks under source control. > + let g:airline#extensions#hunks#enabled = 1 +< +* enable/disable showing only non-zero hunks. > + let g:airline#extensions#hunks#non_zero_only = 0 +< +* set hunk count symbols. > + let g:airline#extensions#hunks#hunk_symbols = ['+', '~', '-'] +< +------------------------------------- *airline-ctrlp* +ctrlp + +* configure which mode colors should ctrlp window use (takes effect + only if the active airline theme doesn't define ctrlp colors) > + let g:airline#extensions#ctrlp#color_template = 'insert' (default) + let g:airline#extensions#ctrlp#color_template = 'normal' + let g:airline#extensions#ctrlp#color_template = 'visual' + let g:airline#extensions#ctrlp#color_template = 'replace' +< + +* configure whether to show the previous and next modes (mru, buffer, etc...) +> + let g:airline#extensions#ctrlp#show_adjacent_modes = 1 +< +------------------------------------- *airline-virtualenv* +virtualenv + +* enable/disable virtualenv integration > + let g:airline#extensions#virtualenv#enabled = 1 +< +------------------------------------- *airline-eclim* +eclim + +* enable/disable eclim integration, which works well with the + |airline-syntastic| extension. > + let g:airline#extensions#eclim#enabled = 1 + +------------------------------------- *airline-whitespace* +* enable/disable detection of whitespace errors. > + let g:airline#extensions#whitespace#enabled = 1 +< +* customize the type of mixed indent checking to perform. > + " must be all spaces or all tabs before the first non-whitespace character + let g:airline#extensions#whitespace#mixed_indent_algo = 0 (default) + + " certain number of spaces are allowed after tabs, but not in between + " this algorithm works well for /** */ style comments in a tab-indented file + let g:airline#extensions#whitespace#mixed_indent_algo = 1 +< +* customize the whitespace symbol. > + let g:airline#extensions#whitespace#symbol = '!' +< +* configure which whitespace checks to enable. > + let g:airline#extensions#whitespace#checks = [ 'indent', 'trailing' ] +< +* configure the maximum number of lines where whitespace checking is enabled. > + let g:airline#extensions#whitespace#max_lines = 20000 +< +* configure whether a message should be displayed. > + let g:airline#extensions#whitespace#show_message = 1 +< +* configure the formatting of the warning messages. > + let g:airline#extensions#whitespace#trailing_format = 'trailing[%s]' + let g:airline#extensions#whitespace#mixed_indent_format = 'mixed-indent[%s]' +< +------------------------------------- *airline-tabline* +* enable/disable enhanced tabline. > + let g:airline#extensions#tabline#enabled = 0 +< +* enable/disable displaying buffers with a single tab. > + let g:airline#extensions#tabline#show_buffers = 1 +< +* configure filename match rules to exclude from the tabline. > + let g:airline#extensions#tabline#excludes = [] +< +* configure how numbers are calculated in tab mode. > + let g:airline#extensions#tabline#tab_nr_type = 0 " # of splits (default) + let g:airline#extensions#tabline#tab_nr_type = 1 " tab number +< +* enable/disable displaying tab number in tabs mode. > + let g:airline#extensions#tabline#show_tab_nr = 1 + +* enable/disable displaying tab type (far right) + let g:airline#extensions#tabline#show_tab_type = 1 + +* defines the name of a formatter for how buffer names are displayed. > + let g:airline#extensions#tabline#formatter = 'default' + + " here is how you can define a 'foo' formatter: + function! airline#extensions#tabline#foo#format(bufnr, buffers) + return fnamemodify(bufname(a:bufnr), ':t') + endfunction + let g:airline#extensions#tabline#formatter = 'foo' +< + Note: the following variables are only used by the 'default' formatter. + + * configure whether buffer numbers should be shown. > + let g:airline#extensions#tabline#buffer_nr_show = 0 +< + * configure how buffer numbers should be formatted with |printf|. > + let g:airline#extensions#tabline#buffer_nr_format = '%s: ' +< + * configure the formatting of filenames (see |filename-modifiers|). > + let g:airline#extensions#tabline#fnamemod = ':p:.' +< + * configure collapsing parent directories in buffer name. > + let g:airline#extensions#tabline#fnamecollapse = 1 + + " The `unique_tail` algorithm will display the tail of the filename, unless + " there is another file of the same name, in which it will display it along + " with the containing parent directory. + let g:airline#extensions#tabline#formatter = 'unique_tail' + + " The `unique_tail_improved` - another algorithm, that will smartly uniquify + " buffers names with similar filename, suppressing common parts of paths. + let g:airline#extensions#tabline#formatter = 'unique_tail_improved' +< +* configure the minimum number of buffers needed to show the tabline. > + let g:airline#extensions#tabline#buffer_min_count = 0 +< + Note: this setting only applies to a single tab and when `show_buffers` is + true. + +* configure the minimum number of tabs needed to show the tabline. > + let g:airline#extensions#tabline#tab_min_count = 0 +< + Note: this setting only applies when `show_buffers` is false. + +* configure separators for the tabline only. > + let g:airline#extensions#tabline#left_sep = '' + let g:airline#extensions#tabline#left_alt_sep = '' + let g:airline#extensions#tabline#right_sep = '' + let g:airline#extensions#tabline#right_alt_sep = '' + +* configure symbol used to represent close button + let g:airline#extensions#tabline#close_symbol = 'X' + +< +Note: Enabling this extension will modify 'showtabline' and 'guioptions'. + +------------------------------------- *airline-tmuxline* +tmuxline + +* enable/disable tmuxline integration > + let g:airline#extensions#tmuxline#enabled = 0 +< +* configure which mode colors should be used in tmux statusline > + let airline#extensions#tmuxline#color_template = 'normal' (default) + let airline#extensions#tmuxline#color_template = 'insert' + let airline#extensions#tmuxline#color_template = 'visual' + let airline#extensions#tmuxline#color_template = 'replace' +< +* if specified, setting this option will trigger writing to the file whenever the + airline theme is applied, i.e. when :AirlineTheme is executed and on vim + startup > + airline#extensions#tmuxline#snapshot_file = "~/.tmux-statusline-colors.conf" +< +------------------------------------- *airline-promptline* +promptline + +* configure the path to the snapshot .sh file. Mandatory option. The created + file should be sourced by the shell on login > + " in .vimrc + airline#extensions#promptline#snapshot_file = "~/.shell_prompt.sh" + + " in .bashrc/.zshrc + [ -f ~/.shell_prompt.sh ] && source ~/.shell_prompt.sh +< +* enable/disable promptline integration > + let g:airline#extensions#promptline#enabled = 0 +< +* configure which mode colors should be used in prompt > + let airline#extensions#promptline#color_template = 'normal' (default) + let airline#extensions#promptline#color_template = 'insert' + let airline#extensions#promptline#color_template = 'visual' + let airline#extensions#promptline#color_template = 'replace' +< +------------------------------------- *airline-nrrwrgn* +NrrwRgn + +* enable/disable NrrwRgn integration > + let g:airline#extensions#nrrwrgn#enabled = 1 + +============================================================================== +ADVANCED CUSTOMIZATION *airline-advanced-customization* + +The defaults will accomodate the mass majority of users with minimal +configuration. However, if you want to reposition sections or contents you can +do so with built-in helper functions, which makes it possible to create +sections in a more declarative style. + +------------------------------------- *airline-parts* +A part is something that contains metadata that eventually gets rendered into +the statusline. You can define parts that contain constant strings or +functions. Defining parts is needed if you want to use features like automatic +insertion of separators or hiding based on window width. + +For example, this is how you would define a part function: > + call airline#parts#define_function('foo', 'GetFooText') +< +Here is how you would define a part that is visible only if the window width +greater than a minimum width. > + call airline#parts#define_minwidth('foo', 50) +< +Parts can be configured to be visible conditionally. > + call airline#parts#define_condition('foo', 'getcwd() =~ "work_dir"') +< +Note: Part definitions are combinative; e.g. the two examples above modify the +same `foo` part. + +Note: Look at the source code and tests for the full API. + +------------------------------------- *airline-predefined-parts* +Before is a list of parts that are predefined by vim-airline. + +* `mode` displays the current mode +* `iminsert` displays the current insert method +* `paste` displays the paste indicator +* `filetype` displays the file type +* `readonly` displays the read only indicator +* `file` displays the filename and modified indicator +* `ffenc` displays the file format and encoding + +And the following are defined for their respective extensions: + +`hunks`, `branch`, `tagbar`, `syntastic`, `whitespace` + +------------------------------------- *airline-accents* +Accents can be defined on any part, like so: > + call airline#parts#define_accent('foo', 'red') +< +This will override the colors of that part by using what is defined in that +particular accent. In the above example, the `red` accent is used, which means +regardless of which section the part is used in, it will have red foreground +colors instead of the section's default foreground color. + +The following accents are defined by default. Themes can define their variants +of the colors, but defaults will be provided if missing. > + bold, italic, red, green, blue, yellow, orange, purple +< +The defaults configure the mode and line number parts to be bold, and the +readonly part to be red. + +------------------------------------- *airline-sections* +Once a part is defined, you can use helper functions to generate the +statuslines for each section. For example, to use the part above, we could +define a section like this: > + function! AirlineInit() + let g:airline_section_a = airline#section#create(['mode', ' ', 'foo']) + let g:airline_section_b = airline#section#create_left(['ffenc','file']) + let g:airline_section_c = airline#section#create(['%{getcwd()}']) + endfunction + autocmd VimEnter * call AirlineInit() +< +This will create a section with the `mode`, followed by a space, and our `foo` +part in section `a`. Section `b` will have two parts with a left-side +separator. And section `c` will contain the current path. You may notice that +the space and cwd are not defined parts. For convenience, if a part of that +key does not exist, it will be inserted as is. The unit tests will be a good +resource for possibilities. + +Note: The use of |VimEnter| is important, because most extensions are lazily +loaded, so we must give them a chance to define their parts before we can use +them. + +Note: The `airline#section#create` function and friends will do its best to +create a section with the appropriate separators, but it only works for +function and text parts. Special 'statusline' items like %f or raw/undefined +parts will not work as it is not possible to inspect their widths/contents +before rendering to the statusline. + +============================================================================== +FUNCREFS *airline-funcrefs* + +vim-airline internally uses funcrefs to integrate with third party plugins, +and you can tap into this functionality to extend it for you needs. This is +the most powerful way to customize the statusline, and sometimes it may be +easier to go this route than the above methods. + +Every section can have two values. The default value is the global `g:` +variable which is used in the absense of a `w:` value. This makes it very easy +to override only certain parts of the statusline by only defining window-local +variables for a subset of all sections. + +------------------------------------- *add_statusline_func* +The following is an example of how you can extend vim-airline to support a +new plugin. > + function! MyPlugin(...) + if &filetype == 'MyPluginFileType' + let w:airline_section_a = 'MyPlugin' + let w:airline_section_b = '%f' + let w:airline_section_c = '%{MyPlugin#function()}' + let g:airline_variable_referenced_in_statusline = 'foo' + endif + endfunction + call airline#add_statusline_func('MyPlugin') +< +Notice that only the left side of the statusline is overwritten. This means +the right side (the line/column numbers, etc) will be intact. + +------------------------------------- *remove_statusline_func* +You can also remove a function as well, which is useful for when you want a +temporary override. > + call airline#remove_statusline_func('MyPlugin') +< + +============================================================================== +PIPELINE *airline-pipeline* + +Sometimes you want to do more than just use overrides. The statusline funcref +is invoked and passed two arguments. The first of these arguments is the +statusline builder. You can use this to build completely custom statuslines +to your liking. Here is an example: > +> + function! MyPlugin(...) + " first variable is the statusline builder + let builder = a:1 + + " WARNING: the API for the builder is not finalized and may change + call builder.add_section('Normal', '%f') + call builder.add_section('WarningMsg', '%{getcwd()}') + call builder.split() + call builder.add_section('airline_z', '%p%%') + + " tell the core to use the contents of the builder + return 1 + endfunction +< +The above example uses various example highlight groups to demonstrate +that you can use any combination from the loaded colorscheme. However, if +you want colors to change between modes, you should use one of the section +highlight groups, e.g. `airline_a` and `airline_b`. + +The second variable is the context, which is a dictionary containing various +values such as whether the statusline is active or not, and the window number. +> + context = { + 'winnr': 'the window number for the statusline', + 'active': 'whether the window is active or not', + 'bufnr': 'the current buffer for this window', + } +< +------------------------------------- *airline-pipeline-return-codes* +The pipeline accepts various return codes and can be used to determine the +next action. The following are the supported codes: > + 0 the default, continue on with the next funcref + -1 do not modify the statusline + 1 modify the statusline with the current contents of the builder +< +Note: Any value other than 0 will halt the pipeline and prevent the next +funcref from executing. + +============================================================================== +WRITING EXTENSIONS *airline-writing-extensions* + +For contributions into the plugin, here are the following guidelines: + +1. For simple 'filetype' checks, they can be added directly into the +`extensions.vim` file. + +2. Pretty much everything else should live as a separate file under the +`extensions/` directory. + + a. Inside `extensions.vim`, add a check for some variable or command that + is always available (these must be defined in `plugin/`, and _not_ + `autoload/` of the other plugin). If it exists, then initialize the + extension. This ensures that the extension is loaded if and only if the + user has the other plugin installed. Also, a check to + `airline#extensions#foo_plugin#enabled` should be performed to allow the + user to disable it. + + b. Configuration variables for the extension should reside in the + extension, e.g. `g:airline#extensions#foo_plugin#bar_variable`. + +See the source of |example.vim| for documented code of how to write one. +Looking at the other extensions is also a good resource. + +============================================================================== +WRITING THEMES *airline-themes* + +Themes are written "close to the metal" -- you will need to know some basic +VimL syntax to write a theme, but if you've written in any programming +language before it will be easy to pick up. + +The |dark.vim| theme fully documents this procedure and will guide you through +the process. The |jellybeans.vim| theme is another example of how to write a +theme, but instead of manually declaring colors, it extracts the values from +highlight groups. + +============================================================================== +TROUBLESHOOTING *airline-troubleshooting* + +Q. There are no colors. +A. You need to set up your terminal correctly. For more details, see + . Alternatively, if you want + to bypass the automatic detection of terminal colors, you can force Vim + into 256 color mode with this: > + set t_Co=256 +< +Q. The statusline does not appear until I create a split. +A. This is the default setting of 'laststatus'. If you want it to appear all + the time, add the following to your vimrc: > + set laststatus=2 +< +Q. Powerline symbols are not showing up. +A. First, you must install patched powerline fonts. Second, you must enable + unicode in vim. > + set encoding=utf-8 +< +Q. There is a pause when leaving insert mode. +A. Add the following to your vimrc. > + set ttimeoutlen=50 +< +Q. The colors look a little off for some themes. +A. Certain themes are derived from the active colorscheme by extracting colors + from predefined highlight groups. These airline themes will look good for + their intended matching colorschemes, but will be hit or miss when loaded + with other colorschemes. + + +Solutions to other common problems can be found in the Wiki: + + +============================================================================== +CONTRIBUTIONS *airline-contributions* + +Contributions and pull requests are welcome. + +============================================================================== +LICENSE *airline-license* + +MIT License. Copyright © 2013-2014 Bailey Ling. + + + vim:tw=78:ts=8:ft=help:norl: diff --git a/vim/.vim/bundle/vim-airline/plugin/airline.vim b/vim/.vim/bundle/vim-airline/plugin/airline.vim new file mode 100644 index 0000000..e75535f --- /dev/null +++ b/vim/.vim/bundle/vim-airline/plugin/airline.vim @@ -0,0 +1,109 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if &cp || v:version < 702 || (exists('g:loaded_airline') && g:loaded_airline) + finish +endif +let g:loaded_airline = 1 + +" autocmd VimEnter * call airline#deprecation#check() + +let s:airline_initialized = 0 +let s:airline_theme_defined = 0 +function! s:init() + if !s:airline_initialized + let s:airline_initialized = 1 + + call airline#init#bootstrap() + call airline#extensions#load() + call airline#init#sections() + + let s:airline_theme_defined = exists('g:airline_theme') + if s:airline_theme_defined || !airline#switch_matching_theme() + let g:airline_theme = get(g:, 'airline_theme', 'dark') + call airline#switch_theme(g:airline_theme) + endif + endif +endfunction + +function! s:on_window_changed() + if pumvisible() + return + endif + call init() + call airline#update_statusline() +endfunction + +function! s:on_colorscheme_changed() + call init() + if !s:airline_theme_defined + if airline#switch_matching_theme() + return + endif + endif + + " couldn't find a match, or theme was defined, just refresh + call airline#load_theme() +endfunction + +function airline#cmdwinenter(...) + call airline#extensions#apply_left_override('Command Line', '') +endfunction + +function! s:airline_toggle() + if exists("#airline") + augroup airline + au! + augroup END + augroup! airline + + if exists("s:stl") + let &stl = s:stl + endif + + silent doautocmd User AirlineToggledOff + else + let s:stl = &statusline + augroup airline + autocmd! + + autocmd CmdwinEnter * + \ call airline#add_statusline_func('airline#cmdwinenter') + \ | call on_window_changed() + autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter') + + autocmd ColorScheme * call on_colorscheme_changed() + autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload,VimResized * + \ call on_window_changed() + + autocmd BufWritePost */autoload/airline/themes/*.vim + \ exec 'source '.split(globpath(&rtp, 'autoload/airline/themes/'.g:airline_theme.'.vim', 1), "\n")[0] + \ | call airline#load_theme() + augroup END + + silent doautocmd User AirlineToggledOn + + if s:airline_initialized + call on_window_changed() + endif + endif +endfunction + +function! s:get_airline_themes(a, l, p) + let files = split(globpath(&rtp, 'autoload/airline/themes/'.a:a.'*'), "\n") + return map(files, 'fnamemodify(v:val, ":t:r")') +endfunction +function! s:airline_theme(...) + if a:0 + call airline#switch_theme(a:1) + else + echo g:airline_theme + endif +endfunction +command! -nargs=? -complete=customlist,get_airline_themes AirlineTheme call airline_theme() +command! AirlineToggleWhitespace call airline#extensions#whitespace#toggle() +command! AirlineToggle call airline_toggle() +command! AirlineRefresh call airline#load_theme() + +call airline_toggle() + diff --git a/vim/.vim/bundle/vim-airline/t/airline.vim b/vim/.vim/bundle/vim-airline/t/airline.vim new file mode 100644 index 0000000..78ab6d7 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/t/airline.vim @@ -0,0 +1,87 @@ +let g:airline_theme = 'dark' +call airline#init#bootstrap() +call airline#init#sections() +source plugin/airline.vim + +function! MyFuncref(...) + call a:1.add_raw('hello world') + return 1 +endfunction + +function! MyIgnoreFuncref(...) + return -1 +endfunction + +function! MyAppend1(...) + call a:1.add_raw('hello') +endfunction + +function! MyAppend2(...) + call a:1.add_raw('world') +endfunction + +describe 'airline' + before + let g:airline_statusline_funcrefs = [] + end + + it 'should run user funcrefs first' + call airline#add_statusline_func('MyFuncref') + let &statusline = '' + call airline#update_statusline() + Expect airline#statusline(1) =~ 'hello world' + end + + it 'should not change the statusline with -1' + call airline#add_statusline_funcref(function('MyIgnoreFuncref')) + let &statusline = 'foo' + call airline#update_statusline() + Expect &statusline == 'foo' + end + + it 'should support multiple chained funcrefs' + call airline#add_statusline_func('MyAppend1') + call airline#add_statusline_func('MyAppend2') + call airline#update_statusline() + Expect airline#statusline(1) =~ 'helloworld' + end + + it 'should allow users to redefine sections' + let g:airline_section_a = airline#section#create(['mode', 'mode']) + call airline#update_statusline() + Expect airline#statusline(1) =~ '%{airline#util#wrap(airline#parts#mode(),0)}%#airline_a#%#airline_a_bold#%{airline#util#wrap(airline#parts#mode(),0)}%#airline_a#' + end + + it 'should remove funcrefs properly' + let c = len(g:airline_statusline_funcrefs) + call airline#add_statusline_func('MyIgnoreFuncref') + call airline#remove_statusline_func('MyIgnoreFuncref') + Expect len(g:airline_statusline_funcrefs) == c + end + + it 'should overwrite the statusline with active and inactive splits' + wincmd s + Expect airline#statusline(1) !~ 'inactive' + Expect airline#statusline(2) =~ 'inactive' + wincmd c + end + + it 'should collapse the inactive split if the variable is set true' + let g:airline_inactive_collapse = 1 + wincmd s + Expect getwinvar(2, '&statusline') !~ 'airline#parts#mode' + wincmd c + end + + it 'should not collapse the inactive split if the variable is set false' + let g:airline_inactive_collapse = 0 + wincmd s + Expect getwinvar(2, '&statusline') != 'airline#parts#mode' + wincmd c + end + + it 'should include check_mode' + Expect airline#statusline(1) =~ 'airline#check_mode' + end +end + diff --git a/vim/.vim/bundle/vim-airline/t/builder.vim b/vim/.vim/bundle/vim-airline/t/builder.vim new file mode 100644 index 0000000..3d1afcd --- /dev/null +++ b/vim/.vim/bundle/vim-airline/t/builder.vim @@ -0,0 +1,80 @@ +let g:airline_theme = 'dark' +call airline#init#bootstrap() + +describe 'active builder' + before + let s:builder = airline#builder#new({'active': 1}) + end + + it 'should start with an empty statusline' + let stl = s:builder.build() + Expect stl == '' + end + + it 'should transition colors from one to the next' + call s:builder.add_section('Normal', 'hello') + call s:builder.add_section('NonText', 'world') + let stl = s:builder.build() + Expect stl =~ '%#Normal#hello%#Normal_to_NonText#>%#NonText#world' + end + + it 'should split left/right sections' + call s:builder.split() + let stl = s:builder.build() + Expect stl =~ '%=' + end + + it 'after split, sections use the right separator' + call s:builder.split() + call s:builder.add_section('Normal', 'hello') + call s:builder.add_section('NonText', 'world') + let stl = s:builder.build() + Expect stl =~ '%#Normal#hello%#Normal_to_NonText#<%#NonText#world' + end + + it 'should not repeat the same highlight group' + call s:builder.add_section('Normal', 'hello') + call s:builder.add_section('Normal', 'hello') + let stl = s:builder.build() + Expect stl == '%#Normal#hello>hello' + end + + it 'should replace accent groups with the specified group' + call s:builder.add_section('Normal', '%#__accent_foo#hello') + let stl = s:builder.build() + Expect stl == '%#Normal#%#Normal_foo#hello' + end + + it 'should replace two accent groups with correct groups' + call s:builder.add_section('Normal', '%#__accent_foo#hello%#__accent_bar#world') + let stl = s:builder.build() + Expect stl =~ '%#Normal_foo#hello%#Normal_bar#world' + end + + it 'should special restore group should go back to previous group' + call s:builder.add_section('Normal', '%#__restore__#') + let stl = s:builder.build() + Expect stl !~ '%#__restore__#' + Expect stl =~ '%#Normal#' + end +end + +describe 'inactive builder' + before + let s:builder = airline#builder#new({'active': 0}) + end + + it 'should transition colors from one to the next' + call s:builder.add_section('Normal', 'hello') + call s:builder.add_section('NonText', 'world') + let stl = s:builder.build() + Expect stl =~ '%#Normal_inactive#hello%#Normal_to_NonText_inactive#>%#NonText_inactive#world' + end + + it 'should not render accents' + call s:builder.add_section('Normal', '%#__accent_foo#hello%#foo#foo%#__accent_bar#world') + let stl = s:builder.build() + Expect stl == '%#Normal_inactive#hello%#foo_inactive#fooworld' + end +end + diff --git a/vim/.vim/bundle/vim-airline/t/commands.vim b/vim/.vim/bundle/vim-airline/t/commands.vim new file mode 100644 index 0000000..b56b881 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/t/commands.vim @@ -0,0 +1,33 @@ +call airline#init#bootstrap() +call airline#init#sections() + +source plugin/airline.vim + +describe 'commands' + it 'should toggle off and on' + execute 'AirlineToggle' + Expect exists('#airline') to_be_false + execute 'AirlineToggle' + Expect exists('#airline') to_be_true + end + + it 'should toggle whitespace off and on' + call airline#extensions#load() + execute 'AirlineToggleWhitespace' + Expect exists('#airline_whitespace') to_be_false + execute 'AirlineToggleWhitespace' + Expect exists('#airline_whitespace') to_be_true + end + + it 'should display theme name with no args' + execute 'AirlineTheme simple' + Expect g:airline_theme == 'simple' + execute 'AirlineTheme dark' + Expect g:airline_theme == 'dark' + end + + it 'should have a refresh command' + Expect exists(':AirlineRefresh') to_be_true + end +end + diff --git a/vim/.vim/bundle/vim-airline/t/extensions_default.vim b/vim/.vim/bundle/vim-airline/t/extensions_default.vim new file mode 100644 index 0000000..b98e816 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/t/extensions_default.vim @@ -0,0 +1,32 @@ +let g:airline_theme = 'dark' +call airline#init#bootstrap() +call airline#init#sections() +source plugin/airline.vim + +describe 'default' + before + let s:builder = airline#builder#new({'active': 1}) + end + + it 'should use the layout' + let g:airline#extensions#default#layout = [ + \ [ 'c', 'a', 'b', 'warning' ], + \ [ 'x', 'z', 'y' ] + \ ] + call airline#extensions#default#apply(s:builder, { 'winnr': 1, 'active': 1 }) + let stl = s:builder.build() + Expect stl =~ 'airline_c_to_airline_a' + Expect stl =~ 'airline_a_to_airline_b' + Expect stl =~ 'airline_b_to_airline_warning' + Expect stl =~ 'airline_x_to_airline_z' + Expect stl =~ 'airline_z_to_airline_y' + end + + it 'should only render warning section in active splits' + wincmd s + Expect airline#statusline(1) =~ 'warning' + Expect airline#statusline(2) !~ 'warning' + wincmd c + end +end + diff --git a/vim/.vim/bundle/vim-airline/t/highlighter.vim b/vim/.vim/bundle/vim-airline/t/highlighter.vim new file mode 100644 index 0000000..a1ed490 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/t/highlighter.vim @@ -0,0 +1,21 @@ +let g:airline_theme = 'dark' + +describe 'highlighter' + it 'should create separator highlight groups' + hi Foo1 ctermfg=1 ctermbg=2 + hi Foo2 ctermfg=3 ctermbg=4 + call airline#highlighter#add_separator('Foo1', 'Foo2', 0) + let hl = airline#highlighter#get_highlight('Foo1_to_Foo2') + Expect hl == [ '', '', '4', '2', '' ] + end + + it 'should populate accent colors' + Expect exists('g:airline#themes#dark#palette.normal.airline_c_red') to_be_false + Expect hlID('airline_c_red') == 0 + call airline#themes#patch(g:airline#themes#dark#palette) + call airline#highlighter#add_accent('red') + call airline#highlighter#highlight(['normal']) + Expect hlID('airline_c_red') != 0 + end +end + diff --git a/vim/.vim/bundle/vim-airline/t/init.vim b/vim/.vim/bundle/vim-airline/t/init.vim new file mode 100644 index 0000000..86efe58 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/t/init.vim @@ -0,0 +1,77 @@ +let s:sections = ['a', 'b', 'c', 'gutter', 'x', 'y', 'z', 'warning'] + +function! s:clear() + for key in s:sections + unlet! g:airline_section_{key} + endfor +endfunction + +call airline#init#bootstrap() + +describe 'init sections' + before + call s:clear() + call airline#init#sections() + end + + after + call s:clear() + end + + it 'section a should have mode, paste, iminsert' + Expect g:airline_section_a =~ 'mode' + Expect g:airline_section_a =~ 'paste' + Expect g:airline_section_a =~ 'iminsert' + end + + it 'section b should be blank because no extensions are installed' + Expect g:airline_section_b == '' + end + + it 'section c should be file' + Expect g:airline_section_c == '%<%f%m %#__accent_red#%{airline#util#wrap(airline#parts#readonly(),0)}%#__restore__#' + end + + it 'section x should be filetype' + Expect g:airline_section_x == '%{airline#util#wrap(airline#parts#filetype(),0)}' + end + + it 'section y should be fenc and ff' + Expect g:airline_section_y =~ 'ff' + Expect g:airline_section_y =~ 'fenc' + end + + it 'section z should be line numbers' + Expect g:airline_section_z =~ '%3p%%' + Expect g:airline_section_z =~ '%4l' + Expect g:airline_section_z =~ '%3c' + end + + it 'should not redefine sections already defined' + for s in s:sections + let g:airline_section_{s} = s + endfor + call airline#init#bootstrap() + for s in s:sections + Expect g:airline_section_{s} == s + endfor + end + + it 'all default statusline extensions should be blank' + Expect airline#parts#get('hunks').raw == '' + Expect airline#parts#get('branch').raw == '' + Expect airline#parts#get('tagbar').raw == '' + Expect airline#parts#get('syntastic').raw == '' + Expect airline#parts#get('eclim').raw == '' + Expect airline#parts#get('whitespace').raw == '' + end +end + +describe 'init parts' + it 'should not redefine parts already defined' + call airline#parts#define_raw('linenr', 'bar') + call airline#init#sections() + Expect g:airline_section_z =~ 'bar' + end +end + diff --git a/vim/.vim/bundle/vim-airline/t/parts.vim b/vim/.vim/bundle/vim-airline/t/parts.vim new file mode 100644 index 0000000..ee7c92e --- /dev/null +++ b/vim/.vim/bundle/vim-airline/t/parts.vim @@ -0,0 +1,39 @@ +describe 'parts' + it 'overwrites existing values' + call airline#parts#define('foo', { 'test': '123' }) + Expect airline#parts#get('foo').test == '123' + call airline#parts#define('foo', { 'test': '321' }) + Expect airline#parts#get('foo').test == '321' + end + + it 'can define a function part' + call airline#parts#define_function('func', 'bar') + Expect airline#parts#get('func').function == 'bar' + end + + it 'can define a text part' + call airline#parts#define_text('text', 'bar') + Expect airline#parts#get('text').text == 'bar' + end + + it 'can define a raw part' + call airline#parts#define_raw('raw', 'bar') + Expect airline#parts#get('raw').raw == 'bar' + end + + it 'can define a minwidth' + call airline#parts#define_minwidth('mw', 123) + Expect airline#parts#get('mw').minwidth == 123 + end + + it 'can define a condition' + call airline#parts#define_condition('part', '1') + Expect airline#parts#get('part').condition == '1' + end + + it 'can define a accent' + call airline#parts#define_accent('part', 'red') + Expect airline#parts#get('part').accent == 'red' + end +end + diff --git a/vim/.vim/bundle/vim-airline/t/section.vim b/vim/.vim/bundle/vim-airline/t/section.vim new file mode 100644 index 0000000..034440c --- /dev/null +++ b/vim/.vim/bundle/vim-airline/t/section.vim @@ -0,0 +1,76 @@ +function! SectionSpec() +endfunction + +describe 'section' + before + call airline#parts#define_text('text', 'text') + call airline#parts#define_raw('raw', 'raw') + call airline#parts#define_function('func', 'SectionSpec') + end + + it 'should be able to reference default parts' + let s = airline#section#create(['paste']) + Expect s == '%{airline#util#wrap(airline#parts#paste(),0)}' + end + + it 'should create sections with no separators' + let s = airline#section#create(['text', 'raw', 'func']) + Expect s == '%{airline#util#wrap("text",0)}raw%{airline#util#wrap(SectionSpec(),0)}' + end + + it 'should create left sections with separators' + let s = airline#section#create_left(['text', 'text']) + Expect s == '%{airline#util#wrap("text",0)}%{airline#util#append("text",0)}' + end + + it 'should create right sections with separators' + let s = airline#section#create_right(['text', 'text']) + Expect s == '%{airline#util#prepend("text",0)}%{airline#util#wrap("text",0)}' + end + + it 'should prefix with accent group if provided and restore afterwards' + call airline#parts#define('hi', { + \ 'raw': 'hello', + \ 'accent': 'red', + \ }) + let s = airline#section#create(['hi']) + Expect s == '%#__accent_red#hello%#__restore__#' + end + + it 'should accent functions' + call airline#parts#define_function('hi', 'Hello') + call airline#parts#define_accent('hi', 'bold') + let s = airline#section#create(['hi']) + Expect s == '%#__accent_bold#%{airline#util#wrap(Hello(),0)}%#__restore__#' + end + + it 'should parse out a section from the distro' + call airline#extensions#load() + let s = airline#section#create(['whitespace']) + Expect s =~ 'airline#extensions#whitespace#check' + end + + it 'should use parts as is if they are not found' + let s = airline#section#create(['asdf', 'func']) + Expect s == 'asdf%{airline#util#wrap(SectionSpec(),0)}' + end + + it 'should force add separators for raw and missing keys' + let s = airline#section#create_left(['asdf', 'raw']) + Expect s == 'asdf > raw' + let s = airline#section#create_left(['asdf', 'aaaa', 'raw']) + Expect s == 'asdf > aaaa > raw' + let s = airline#section#create_right(['raw', '%f']) + Expect s == 'raw < %f' + let s = airline#section#create_right(['%t', 'asdf', '%{getcwd()}']) + Expect s == '%t < asdf < %{getcwd()}' + end + + it 'should empty out parts that do not pass their condition' + call airline#parts#define_text('conditional', 'conditional') + call airline#parts#define_condition('conditional', '0') + let s = airline#section#create(['conditional']) + Expect s == '%{0 ? airline#util#wrap("conditional",0) : ""}' + end +end + diff --git a/vim/.vim/bundle/vim-airline/t/themes.vim b/vim/.vim/bundle/vim-airline/t/themes.vim new file mode 100644 index 0000000..d735229 --- /dev/null +++ b/vim/.vim/bundle/vim-airline/t/themes.vim @@ -0,0 +1,68 @@ +describe 'themes' + after + highlight clear Foo + highlight clear Normal + end + + it 'should extract correct colors' + highlight Foo ctermfg=1 ctermbg=2 + let colors = airline#themes#get_highlight('Foo') + Expect colors[2] == '1' + Expect colors[3] == '2' + end + + it 'should extract from normal if colors unavailable' + highlight Normal ctermfg=100 ctermbg=200 + highlight Foo ctermbg=2 + let colors = airline#themes#get_highlight('Foo') + Expect colors[2] == '100' + Expect colors[3] == '2' + end + + it 'should flip target group if it is reversed' + highlight Foo ctermbg=222 ctermfg=103 term=reverse + let colors = airline#themes#get_highlight('Foo') + Expect colors[2] == '222' + Expect colors[3] == '103' + end + + it 'should pass args through correctly' + let hl = airline#themes#get_highlight('Foo', 'bold', 'italic') + Expect hl == ['', '', 0, 1, 'bold,italic'] + + let hl = airline#themes#get_highlight2(['Foo','bg'], ['Foo','fg'], 'italic', 'bold') + Expect hl == ['', '', 1, 0, 'italic,bold'] + end + + it 'should generate color map with mirroring' + let map = airline#themes#generate_color_map( + \ [ 1, 1, 1, 1, '1' ], + \ [ 2, 2, 2, 2, '2' ], + \ [ 3, 3, 3, 3, '3' ], + \ ) + Expect map.airline_a[0] == 1 + Expect map.airline_b[0] == 2 + Expect map.airline_c[0] == 3 + Expect map.airline_x[0] == 3 + Expect map.airline_y[0] == 2 + Expect map.airline_z[0] == 1 + end + + it 'should generate color map with full set of colors' + let map = airline#themes#generate_color_map( + \ [ 1, 1, 1, 1, '1' ], + \ [ 2, 2, 2, 2, '2' ], + \ [ 3, 3, 3, 3, '3' ], + \ [ 4, 4, 4, 4, '4' ], + \ [ 5, 5, 5, 5, '5' ], + \ [ 6, 6, 6, 6, '6' ], + \ ) + Expect map.airline_a[0] == 1 + Expect map.airline_b[0] == 2 + Expect map.airline_c[0] == 3 + Expect map.airline_x[0] == 4 + Expect map.airline_y[0] == 5 + Expect map.airline_z[0] == 6 + end +end + diff --git a/vim/.vim/bundle/vim-airline/t/util.vim b/vim/.vim/bundle/vim-airline/t/util.vim new file mode 100644 index 0000000..913de9d --- /dev/null +++ b/vim/.vim/bundle/vim-airline/t/util.vim @@ -0,0 +1,54 @@ +call airline#init#bootstrap() + +function! Util1() + let g:count += 1 +endfunction +function! Util2() + let g:count += 2 +endfunction +function! Util3(...) + let g:count = a:0 +endfunction + +describe 'util' + before + let g:count = 0 + end + + it 'has append wrapper function' + Expect airline#util#append('', 0) == '' + Expect airline#util#append('1', 0) == ' > 1' + end + + it 'has prepend wrapper function' + Expect airline#util#prepend('', 0) == '' + Expect airline#util#prepend('1', 0) == '1 < ' + end + + it 'has getwinvar function' + Expect airline#util#getwinvar(1, 'asdf', '123') == '123' + call setwinvar(1, 'vspec', 'is cool') + Expect airline#util#getwinvar(1, 'vspec', '') == 'is cool' + end + + it 'has exec funcrefs helper functions' + call airline#util#exec_funcrefs([function('Util1'), function('Util2')]) + Expect g:count == 3 + + call airline#util#exec_funcrefs([function('Util3')], 1, 2, 3, 4) + Expect g:count == 4 + end + + it 'should ignore minwidth if less than 0' + Expect airline#util#append('foo', -1) == ' > foo' + Expect airline#util#prepend('foo', -1) == 'foo < ' + Expect airline#util#wrap('foo', -1) == 'foo' + end + + it 'should return empty if winwidth() > minwidth' + Expect airline#util#append('foo', 99999) == '' + Expect airline#util#prepend('foo', 99999) == '' + Expect airline#util#wrap('foo', 99999) == '' + end +end + diff --git a/vim/.vim/bundle/vim-fugitive/.gitignore b/vim/.vim/bundle/vim-fugitive/.gitignore new file mode 100644 index 0000000..0a56e3f --- /dev/null +++ b/vim/.vim/bundle/vim-fugitive/.gitignore @@ -0,0 +1 @@ +/doc/tags diff --git a/vim/.vim/bundle/vim-fugitive/CONTRIBUTING.markdown b/vim/.vim/bundle/vim-fugitive/CONTRIBUTING.markdown new file mode 100644 index 0000000..e651dca --- /dev/null +++ b/vim/.vim/bundle/vim-fugitive/CONTRIBUTING.markdown @@ -0,0 +1,18 @@ +Before reporting a bug, you should try stripping down your Vim configuration +and removing other plugins. The sad truth about VimScript is that it is +fraught with incompatibilities waiting to happen. I'm happy to work around +them where I can, but it's up to you to isolate the conflict. + +Fugitive is particularly prone to regressions due to Git version issues, +platform issues, and interactions with other plugins. I end up bisecting a +lot more than other projects, and thus I'm especially meticulous here about +maintaining a clean, readable, history. Squash and force push any requested +changes to a pull request. And if your [commit message +sucks](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html), +I'm not going to accept it. Period. + +Beyond that, don't be shy about asking before patching. What takes you hours +might take me minutes simply because I have both domain knowledge and a +perverse knowledge of VimScript so vast that many would consider it a symptom +of mental illness. On the flip side, some ideas I'll reject no matter how +good the implementation is. "Send a patch" is an edge case answer in my book. diff --git a/vim/.vim/bundle/vim-fugitive/README.markdown b/vim/.vim/bundle/vim-fugitive/README.markdown new file mode 100644 index 0000000..68a61e6 --- /dev/null +++ b/vim/.vim/bundle/vim-fugitive/README.markdown @@ -0,0 +1,120 @@ +# fugitive.vim + +I'm not going to lie to you; fugitive.vim may very well be the best +Git wrapper of all time. Check out these features: + +View any blob, tree, commit, or tag in the repository with `:Gedit` (and +`:Gsplit`, `:Gvsplit`, `:Gtabedit`, ...). Edit a file in the index and +write to it to stage the changes. Use `:Gdiff` to bring up the staged +version of the file side by side with the working tree version and use +Vim's diff handling capabilities to stage a subset of the file's +changes. + +Bring up the output of `git status` with `:Gstatus`. Press `-` to +`add`/`reset` a file's changes, or `p` to `add`/`reset` `--patch` that +mofo. And guess what `:Gcommit` does! + +`:Gblame` brings up an interactive vertical split with `git blame` +output. Press enter on a line to edit the commit where the line +changed, or `o` to open it in a split. When you're done, use `:Gedit` +in the historic buffer to go back to the work tree version. + +`:Gmove` does a `git mv` on a file and simultaneously renames the +buffer. `:Gremove` does a `git rm` on a file and simultaneously deletes +the buffer. + +Use `:Ggrep` to search the work tree (or any arbitrary commit) with +`git grep`, skipping over that which is not tracked in the repository. +`:Glog` loads all previous revisions of a file into the quickfix list so +you can iterate over them and watch the file evolve! + +`:Gread` is a variant of `git checkout -- filename` that operates on the +buffer rather than the filename. This means you can use `u` to undo it +and you never get any warnings about the file changing outside Vim. +`:Gwrite` writes to both the work tree and index versions of a file, +making it like `git add` when called from a work tree file and like +`git checkout` when called from the index or a blob in history. + +Use `:Gbrowse` to open the current file on GitHub, with optional line +range (try it in visual mode!). If your current repository isn't on +GitHub, `git instaweb` will be spun up instead. + +Add `%{fugitive#statusline()}` to `'statusline'` to get an indicator +with the current branch in (surprise!) your statusline. + +Last but not least, there's `:Git` for running any arbitrary command, +and `Git!` to open the output of a command in a temp file. + +## Screencasts + +* [A complement to command line git](http://vimcasts.org/e/31) +* [Working with the git index](http://vimcasts.org/e/32) +* [Resolving merge conflicts with vimdiff](http://vimcasts.org/e/33) +* [Browsing the git object database](http://vimcasts.org/e/34) +* [Exploring the history of a git repository](http://vimcasts.org/e/35) + +## Installation + +If you don't have a preferred installation method, I recommend +installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and +then simply copy and paste: + + cd ~/.vim/bundle + git clone git://github.com/tpope/vim-fugitive.git + +Once help tags have been generated, you can view the manual with +`:help fugitive`. + +If your Vim version is below 7.2, I recommend also installing +[vim-git](https://github.com/tpope/vim-git) for syntax highlighting and +other Git niceties. + +## FAQ + +> I installed the plugin and started Vim. Why don't any of the commands +> exist? + +Fugitive cares about the current file, not the current working +directory. Edit a file from the repository. + +> I opened a new tab. Why don't any of the commands exist? + +Fugitive cares about the current file, not the current working +directory. Edit a file from the repository. + +> Why is `:Gbrowse` not using the right browser? + +`:Gbrowse` delegates to `git web--browse`, which is less than perfect +when it comes to finding the right browser. You can tell it the correct +browser to use with `git config --global web.browser ...`. On OS X, for +example, you might want to set this to `open`. See `git web--browse --help` +for details. + +> Here's a patch that automatically opens the quickfix window after +> `:Ggrep`. + +This is a great example of why I recommend asking before patching. +There are valid arguments to be made both for and against automatically +opening the quickfix window. Whenever I have to make an arbitrary +decision like this, I ask what Vim would do. And Vim does not open a +quickfix window after `:grep`. + +Luckily, it's easy to implement the desired behavior without changing +fugitive.vim. The following autocommand will cause the quickfix window +to open after any grep invocation: + + autocmd QuickFixCmdPost *grep* cwindow + +## Self-Promotion + +Like fugitive.vim? Follow the repository on +[GitHub](https://github.com/tpope/vim-fugitive) and vote for it on +[vim.org](http://www.vim.org/scripts/script.php?script_id=2975). And if +you're feeling especially charitable, follow [tpope](http://tpo.pe/) on +[Twitter](http://twitter.com/tpope) and +[GitHub](https://github.com/tpope). + +## License + +Copyright (c) Tim Pope. Distributed under the same terms as Vim itself. +See `:help license`. diff --git a/vim/.vim/bundle/vim-fugitive/doc/fugitive.txt b/vim/.vim/bundle/vim-fugitive/doc/fugitive.txt new file mode 100644 index 0000000..5870837 --- /dev/null +++ b/vim/.vim/bundle/vim-fugitive/doc/fugitive.txt @@ -0,0 +1,319 @@ +*fugitive.txt* A Git wrapper so awesome, it should be illegal + +Author: Tim Pope +License: Same terms as Vim itself (see |license|) + +This plugin is only available if 'compatible' is not set. + +INTRODUCTION *fugitive* + +Whenever you edit a file from a Git repository, a set of commands is defined +that serve as a gateway to Git. + +COMMANDS *fugitive-commands* + +These commands are local to the buffers in which they work (generally, buffers +that are part of Git repositories). + + *fugitive-:Git* +:Git [args] Run an arbitrary git command. Similar to :!git [args] + but chdir to the repository tree first. + + *fugitive-:Git!* +:Git! [args] Like |:Git|, but capture the output into a temp file, + and edit that temp file. + + *fugitive-:Gcd* +:Gcd [directory] |:cd| relative to the repository. + + *fugitive-:Glcd* +:Glcd [directory] |:lcd| relative to the repository. + + *fugitive-:Gstatus* +:Gstatus Bring up the output of git-status in the preview + window. The following maps, which work on the cursor + line file where sensible, are provided: + + g? show this help + next file + previous file + |:Gedit| + - |:Git| add + - |:Git| reset (staged files) + cA |:Gcommit| --amend --reuse-message=HEAD + ca |:Gcommit| --amend + cc |:Gcommit| + cva |:Gcommit| --amend --verbose + cvc |:Gcommit| --verbose + D |:Gdiff| + ds |:Gsdiff| + dp |:Git!| diff (p for patch; use :Gw to apply) + dp |:Git| add --intent-to-add (untracked files) + dv |:Gvdiff| + O |:Gtabedit| + o |:Gsplit| + p |:Git| add --patch + p |:Git| reset --patch (staged files) + q close status + R reload status + S |:Gvsplit| + + *fugitive-:Gcommit* +:Gcommit [args] A wrapper around git-commit. If there is nothing + to commit, |:Gstatus| is called instead. Unless the + arguments given would skip the invocation of an editor + (e.g., -m), a split window will be used to obtain a + commit message. Write and close that window (:wq or + |:Gwrite|) to finish the commit. Unlike when running + the actual git-commit command, it is possible (but + unadvisable) to muck with the index with commands like + git-add and git-reset while a commit message is + pending. + + *fugitive-:Ggrep* +:Ggrep [args] |:grep| with git-grep as 'grepprg'. + + *fugitive-:Glgrep* +:Glgrep [args] |:lgrep| with git-grep as 'grepprg'. + + *fugitive-:Glog* +:Glog [args] Load all previous revisions of the current file into + the quickfix list. Additional git-log arguments can + be given (for example, --reverse). If "--" appears as + an argument, no file specific filtering is done, and + previous commits rather than previous file revisions + are loaded. + + *fugitive-:Gllog* +:Gllog [args] Like |:Glog|, but use the location list instead of the + quickfix list. + + *fugitive-:Gedit* *fugitive-:Ge* +:Gedit [revision] |:edit| a |fugitive-revision|. + + *fugitive-:Gsplit* +:Gsplit [revision] |:split| a |fugitive-revision|. + + *fugitive-:Gvsplit* +:Gvsplit [revision] |:vsplit| a |fugitive-revision|. + + *fugitive-:Gtabedit* +:Gtabedit [revision] |:tabedit| a |fugitive-revision|. + + *fugitive-:Gpedit* +:Gpedit [revision] |:pedit| a |fugitive-revision|. + +:Gsplit! [args] *fugitive-:Gsplit!* *fugitive-:Gvsplit!* +:Gvsplit! [args] *fugitive-:Gtabedit!* *fugitive-:Gpedit!* +:Gtabedit! [args] Like |:Git!|, but open the resulting temp file in a +:Gpedit! [args] split, tab, or preview window. + + *fugitive-:Gread* +:Gread [revision] Empty the buffer and |:read| a |fugitive-revision|. + When the argument is omitted, this is similar to + git-checkout on a work tree file or git-add on a stage + file, but without writing anything to disk. + +:{range}Gread [revision] + |:read| in a |fugitive-revision| after {range}. + + *fugitive-:Gread!* +:Gread! [args] Empty the buffer and |:read| the output of a Git + command. For example, :Gread! show HEAD:%. + +:{range}Gread! [args] |:read| the output of a Git command after {range}. + + *fugitive-:Gw* *fugitive-:Gwrite* +:Gwrite Write to the current file's path and stage the results. + When run in a work tree file, it is effectively git + add. Elsewhere, it is effectively git-checkout. A + great deal of effort is expended to behave sensibly + when the work tree or index version of the file is + open in another buffer. + +:Gwrite {path} You can give |:Gwrite| an explicit path of where in + the work tree to write. You can also give a path like + :0:foo.txt or even :0 to write to just that stage in + the index. + + *fugitive-:Gwq* +:Gwq [path] Like |:Gwrite| followed by |:quit| if the write + succeeded. + +:Gwq! [path] Like |:Gwrite|! followed by |:quit|! if the write + succeeded. + + *fugitive-:Gdiff* +:Gdiff [revision] Perform a |vimdiff| against the current file in the + given revision. With no argument, the version in the + index is used (which means a three-way diff during a + merge conflict, making it a git-mergetool + alternative). The newer of the two files is placed + to the right. Use |do| and |dp| and write to the + index file to simulate "git add --patch". + + *fugitive-:Gsdiff* +:Gsdiff [revision] Like |:Gdiff|, but split horizontally. + + *fugitive-:Gvdiff* +:Gvdiff [revision] Identical to |:Gdiff|. For symmetry with |:Gsdiff|. + + *fugitive-:Gmove* +:Gmove {destination} Wrapper around git-mv that renames the buffer + afterward. The destination is relative to the current + directory except when started with a /, in which case + it is relative to the work tree. Add a ! to pass -f. + + *fugitive-:Gremove* +:Gremove Wrapper around git-rm that deletes the buffer + afterward. When invoked in an index file, --cached is + passed. Add a ! to pass -f and forcefully discard the + buffer. + + *fugitive-:Gblame* +:Gblame [flags] Run git-blame on the file and open the results in a + scroll bound vertical split. Press enter on a line to + reblame the file as it was in that commit. You can + give any of ltfnsewMC as flags and they will be passed + along to git-blame. The following maps, which work on + the cursor line commit where sensible, are provided: + + g? show this help + A resize to end of author column + C resize to end of commit column + D resize to end of date/time column + q close blame and return to blamed window + gq q, then |:Gedit| to return to work tree version + q, then open commit + o open commit in horizontal split + O open commit in new tab + - reblame at commit + ~ reblame at [count]th first grandparent + P reblame at [count]th parent (like HEAD^[count]) + +:[range]Gblame [flags] Run git-blame on the given range. + + *fugitive-:Gbrowse* +:[range]Gbrowse If the remote for the current branch is on GitHub, + open the current file, blob, tree, commit, or tag + (with git-web--browse) on GitHub. Otherwise, open the + current file, blob, tree, commit, or tag in + git-instaweb (if you have issues, verify you can run + "git instaweb" from a terminal). If a range is given, + it is appropriately appended to the URL as an anchor. + + To use with GitHub FI, point g:fugitive_github_domains + at a list of domains: +> + let g:fugitive_github_domains = ['https://example.com'] +~ +:[range]Gbrowse! Like :Gbrowse, but put the URL on the clipboard rather + than opening it. + +:[range]Gbrowse {revision} + Like :Gbrowse, but for a given |fugitive-revision|. A + useful value here is -, which ties the URL to the + latest commit rather than a volatile branch. + +:[range]Gbrowse [...]@{remote} + Force using the given remote rather than the remote + for the current branch. The remote is used to + determine which GitHub repository to link to. + +MAPPINGS *fugitive-mappings* + +These maps are available everywhere. + + *fugitive-c_CTRL-R_CTRL-G* + On the command line, recall the path to the current + object (that is, a representation of the object + recognized by |:Gedit|). + + *fugitive-y_CTRL-G* +["x]y Yank the commit SHA and path to the current object. + +These maps are available in Git objects. + + *fugitive-* + Jump to the revision under the cursor. + + *fugitive-o* +o Jump to the revision under the cursor in a new split. + + *fugitive-S* +S Jump to the revision under the cursor in a new + vertical split. + + *fugitive-O* +O Jump to the revision under the cursor in a new tab. + + *fugitive--* +- Go to the tree containing the current tree or blob. + + *fugitive-~* +~ Go to the current file in the [count]th first + ancestor. + + *fugitive-P* +P Go to the current file in the [count]th parent. + + *fugitive-C* +C Go to the commit containing the current file. + + *fugitive-.* +. Start a |:| command line with the current revision + prepopulated at the end of the line. + + *fugitive-a* +a Show the current tag, commit, or tree in an alternate + format. + +SPECIFYING REVISIONS *fugitive-revision* + +Fugitive revisions are similar to Git revisions as defined in the "SPECIFYING +REVISIONS" section in the git-rev-parse man page. For commands that accept an +optional revision, the default is the file in the index for work tree files +and the work tree file for everything else. Example revisions follow. + +Revision Meaning ~ +HEAD .git/HEAD +master .git/refs/heads/master +HEAD^{} The commit referenced by HEAD +HEAD^ The parent of the commit referenced by HEAD +HEAD: The tree referenced by HEAD +/HEAD The file named HEAD in the work tree +Makefile The file named Makefile in the work tree +HEAD^:Makefile The file named Makefile in the parent of HEAD +:Makefile The file named Makefile in the index (writable) +- The current file in HEAD +^ The current file in the previous commit +~3 The current file 3 commits ago +: .git/index (Same as |:Gstatus|) +:0 The current file in the index +:1 The current file's common ancestor during a conflict +:2 The current file in the target branch during a conflict +:3 The current file in the merged branch during a conflict +:/foo The most recent commit with "foo" in the message + +STATUSLINE *fugitive-statusline* + + *fugitive#statusline()* +Add %{fugitive#statusline()} to your statusline to get an indicator including +the current branch and the currently edited file's commit. If you don't have +a statusline, this one matches the default when 'ruler' is set: +> + set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P +< + *fugitive#head(...)* +Use fugitive#head() to return the name of the current branch. If the current +HEAD is detached, fugitive#head() will return the empty string, unless the +optional argument is given, in which case the hash of the current commit will +be truncated to the given number of characters. + +ABOUT *fugitive-about* + +Grab the latest version or report a bug on GitHub: + +http://github.com/tpope/vim-fugitive + + vim:tw=78:et:ft=help:norl: diff --git a/vim/.vim/bundle/vim-fugitive/plugin/fugitive.vim b/vim/.vim/bundle/vim-fugitive/plugin/fugitive.vim new file mode 100644 index 0000000..2043dfe --- /dev/null +++ b/vim/.vim/bundle/vim-fugitive/plugin/fugitive.vim @@ -0,0 +1,2624 @@ +" fugitive.vim - A Git wrapper so awesome, it should be illegal +" Maintainer: Tim Pope +" Version: 2.0 +" GetLatestVimScripts: 2975 1 :AutoInstall: fugitive.vim + +if exists('g:loaded_fugitive') || &cp + finish +endif +let g:loaded_fugitive = 1 + +if !exists('g:fugitive_git_executable') + let g:fugitive_git_executable = 'git' +endif + +" Utility {{{1 + +function! s:function(name) abort + return function(substitute(a:name,'^s:',matchstr(expand(''), '\d\+_'),'')) +endfunction + +function! s:sub(str,pat,rep) abort + return substitute(a:str,'\v\C'.a:pat,a:rep,'') +endfunction + +function! s:gsub(str,pat,rep) abort + return substitute(a:str,'\v\C'.a:pat,a:rep,'g') +endfunction + +function! s:shellesc(arg) abort + if a:arg =~ '^[A-Za-z0-9_/.-]\+$' + return a:arg + elseif &shell =~# 'cmd' || &shell =~# 'power' + return '"'.s:gsub(s:gsub(a:arg, '"', '""'), '\%', '"%"').'"' + else + return shellescape(a:arg) + endif +endfunction + +function! s:fnameescape(file) abort + if exists('*fnameescape') + return fnameescape(a:file) + else + return escape(a:file," \t\n*?[{`$\\%#'\"|!<") + endif +endfunction + +function! s:throw(string) abort + let v:errmsg = 'fugitive: '.a:string + throw v:errmsg +endfunction + +function! s:warn(str) abort + echohl WarningMsg + echomsg a:str + echohl None + let v:warningmsg = a:str +endfunction + +function! s:shellslash(path) abort + if exists('+shellslash') && !&shellslash + return s:gsub(a:path,'\\','/') + else + return a:path + endif +endfunction + +let s:git_versions = {} + +function! fugitive#git_version(...) abort + if !has_key(s:git_versions, g:fugitive_git_executable) + let s:git_versions[g:fugitive_git_executable] = matchstr(system(g:fugitive_git_executable.' --version'), "\\S\\+\n") + endif + return s:git_versions[g:fugitive_git_executable] +endfunction + +function! s:recall() abort + let rev = s:sub(s:buffer().rev(), '^/', '') + if rev ==# ':' + return matchstr(getline('.'),'^#\t\%([[:alpha:] ]\+: *\)\=\zs.\{-\}\ze\%( ([^()[:digit:]]\+)\)\=$\|^\d\{6} \x\{40\} \d\t\zs.*') + elseif s:buffer().type('tree') + let file = matchstr(getline('.'), '\t\zs.*') + if empty(file) && line('.') > 2 + let file = s:sub(getline('.'), '/$', '') + endif + if !empty(file) && rev !~# ':$' + return rev . '/' . file + else + return rev . file + endif + endif + return rev +endfunction + +function! s:add_methods(namespace, method_names) abort + for name in a:method_names + let s:{a:namespace}_prototype[name] = s:function('s:'.a:namespace.'_'.name) + endfor +endfunction + +let s:commands = [] +function! s:command(definition) abort + let s:commands += [a:definition] +endfunction + +function! s:define_commands() abort + for command in s:commands + exe 'command! -buffer '.command + endfor +endfunction + +augroup fugitive_utility + autocmd! + autocmd User Fugitive call s:define_commands() +augroup END + +let s:abstract_prototype = {} + +" }}}1 +" Initialization {{{1 + +function! fugitive#is_git_dir(path) abort + let path = s:sub(a:path, '[\/]$', '') . '/' + return isdirectory(path.'objects') && isdirectory(path.'refs') && getfsize(path.'HEAD') > 10 +endfunction + +function! fugitive#extract_git_dir(path) abort + if s:shellslash(a:path) =~# '^fugitive://.*//' + return matchstr(s:shellslash(a:path), '\C^fugitive://\zs.\{-\}\ze//') + endif + let root = s:shellslash(simplify(fnamemodify(a:path, ':p:s?[\/]$??'))) + let previous = "" + while root !=# previous + if root =~# '\v^//%([^/]+/?)?$' + " This is for accessing network shares from Cygwin Vim. There won't be + " any git directory called //.git or //serverName/.git so let's avoid + " checking for them since such checks are extremely slow. + break + endif + if index(split($GIT_CEILING_DIRECTORIES, ':'), root) >= 0 + break + endif + if root ==# $GIT_WORK_TREE && fugitive#is_git_dir($GIT_DIR) + return $GIT_DIR + endif + let dir = s:sub(root, '[\/]$', '') . '/.git' + let type = getftype(dir) + if type ==# 'dir' && fugitive#is_git_dir(dir) + return dir + elseif type ==# 'link' && fugitive#is_git_dir(dir) + return resolve(dir) + elseif type !=# '' && filereadable(dir) + let line = get(readfile(dir, '', 1), 0, '') + if line =~# '^gitdir: \.' && fugitive#is_git_dir(root.'/'.line[8:-1]) + return simplify(root.'/'.line[8:-1]) + elseif line =~# '^gitdir: ' && fugitive#is_git_dir(line[8:-1]) + return line[8:-1] + endif + elseif fugitive#is_git_dir(root) + return root + endif + let previous = root + let root = fnamemodify(root, ':h') + endwhile + return '' +endfunction + +function! fugitive#detect(path) abort + if exists('b:git_dir') && (b:git_dir ==# '' || b:git_dir =~# '/$') + unlet b:git_dir + endif + if !exists('b:git_dir') + let dir = fugitive#extract_git_dir(a:path) + if dir !=# '' + let b:git_dir = dir + endif + endif + if exists('b:git_dir') + silent doautocmd User FugitiveBoot + cnoremap fnameescape(recall()) + nnoremap y :call setreg(v:register, recall()) + let buffer = fugitive#buffer() + if expand('%:p') =~# '//' + call buffer.setvar('&path', s:sub(buffer.getvar('&path'), '^\.%(,|$)', '')) + endif + if stridx(buffer.getvar('&tags'), escape(b:git_dir.'/tags', ', ')) == -1 + call buffer.setvar('&tags', escape(b:git_dir.'/tags', ', ').','.buffer.getvar('&tags')) + if &filetype !=# '' + call buffer.setvar('&tags', escape(b:git_dir.'/'.&filetype.'.tags', ', ').','.buffer.getvar('&tags')) + endif + endif + silent doautocmd User Fugitive + endif +endfunction + +augroup fugitive + autocmd! + autocmd BufNewFile,BufReadPost * call fugitive#detect(expand(':p')) + autocmd FileType netrw call fugitive#detect(expand('%:p')) + autocmd User NERDTreeInit,NERDTreeNewRoot call fugitive#detect(b:NERDTreeRoot.path.str()) + autocmd VimEnter * if expand('')==''|call fugitive#detect(getcwd())|endif + autocmd CmdWinEnter * call fugitive#detect(expand('#:p')) + autocmd BufWinLeave * execute getwinvar(+bufwinnr(+expand('')), 'fugitive_leave') +augroup END + +" }}}1 +" Repository {{{1 + +let s:repo_prototype = {} +let s:repos = {} + +function! s:repo(...) abort + let dir = a:0 ? a:1 : (exists('b:git_dir') && b:git_dir !=# '' ? b:git_dir : fugitive#extract_git_dir(expand('%:p'))) + if dir !=# '' + if has_key(s:repos, dir) + let repo = get(s:repos, dir) + else + let repo = {'git_dir': dir} + let s:repos[dir] = repo + endif + return extend(extend(repo, s:repo_prototype, 'keep'), s:abstract_prototype, 'keep') + endif + call s:throw('not a git repository: '.expand('%:p')) +endfunction + +function! fugitive#repo(...) abort + return call('s:repo', a:000) +endfunction + +function! s:repo_dir(...) dict abort + return join([self.git_dir]+a:000,'/') +endfunction + +function! s:repo_configured_tree() dict abort + if !has_key(self,'_tree') + let self._tree = '' + if filereadable(self.dir('config')) + let config = readfile(self.dir('config'),'',10) + call filter(config,'v:val =~# "^\\s*worktree *="') + if len(config) == 1 + let self._tree = matchstr(config[0], '= *\zs.*') + endif + endif + endif + if self._tree =~# '^\.' + return simplify(self.dir(self._tree)) + else + return self._tree + endif +endfunction + +function! s:repo_tree(...) dict abort + if self.dir() =~# '/\.git$' + let dir = self.dir()[0:-6] + else + let dir = self.configured_tree() + endif + if dir ==# '' + call s:throw('no work tree') + else + return join([dir]+a:000,'/') + endif +endfunction + +function! s:repo_bare() dict abort + if self.dir() =~# '/\.git$' + return 0 + else + return self.configured_tree() ==# '' + endif +endfunction + +function! s:repo_translate(spec) dict abort + if a:spec ==# '.' || a:spec ==# '/.' + return self.bare() ? self.dir() : self.tree() + elseif a:spec =~# '^/\=\.git$' && self.bare() + return self.dir() + elseif a:spec =~# '^/\=\.git/' + return self.dir(s:sub(a:spec, '^/=\.git/', '')) + elseif a:spec =~# '^/' + return self.tree().a:spec + elseif a:spec =~# '^:[0-3]:' + return 'fugitive://'.self.dir().'//'.a:spec[1].'/'.a:spec[3:-1] + elseif a:spec ==# ':' + if $GIT_INDEX_FILE =~# '/[^/]*index[^/]*\.lock$' && fnamemodify($GIT_INDEX_FILE,':p')[0:strlen(self.dir())] ==# self.dir('') && filereadable($GIT_INDEX_FILE) + return fnamemodify($GIT_INDEX_FILE,':p') + else + return self.dir('index') + endif + elseif a:spec =~# '^:/' + let ref = self.rev_parse(matchstr(a:spec,'.[^:]*')) + return 'fugitive://'.self.dir().'//'.ref + elseif a:spec =~# '^:' + return 'fugitive://'.self.dir().'//0/'.a:spec[1:-1] + elseif a:spec =~# 'HEAD\|^refs/' && a:spec !~ ':' && filereadable(self.dir(a:spec)) + return self.dir(a:spec) + elseif filereadable(self.dir('refs/'.a:spec)) + return self.dir('refs/'.a:spec) + elseif filereadable(self.dir('refs/tags/'.a:spec)) + return self.dir('refs/tags/'.a:spec) + elseif filereadable(self.dir('refs/heads/'.a:spec)) + return self.dir('refs/heads/'.a:spec) + elseif filereadable(self.dir('refs/remotes/'.a:spec)) + return self.dir('refs/remotes/'.a:spec) + elseif filereadable(self.dir('refs/remotes/'.a:spec.'/HEAD')) + return self.dir('refs/remotes/'.a:spec,'/HEAD') + else + try + let ref = self.rev_parse(matchstr(a:spec,'[^:]*')) + let path = s:sub(matchstr(a:spec,':.*'),'^:','/') + return 'fugitive://'.self.dir().'//'.ref.path + catch /^fugitive:/ + return self.tree(a:spec) + endtry + endif +endfunction + +function! s:repo_head(...) dict abort + let head = s:repo().head_ref() + + if head =~# '^ref: ' + let branch = s:sub(head,'^ref: %(refs/%(heads/|remotes/|tags/)=)=','') + elseif head =~# '^\x\{40\}$' + " truncate hash to a:1 characters if we're in detached head mode + let len = a:0 ? a:1 : 0 + let branch = len ? head[0:len-1] : '' + else + return '' + endif + + return branch +endfunction + +call s:add_methods('repo',['dir','configured_tree','tree','bare','translate','head']) + +function! s:repo_git_command(...) dict abort + let git = g:fugitive_git_executable . ' --git-dir='.s:shellesc(self.git_dir) + return git.join(map(copy(a:000),'" ".s:shellesc(v:val)'),'') +endfunction + +function! s:repo_git_chomp(...) dict abort + return s:sub(system(call(self.git_command,a:000,self)),'\n$','') +endfunction + +function! s:repo_git_chomp_in_tree(...) dict abort + let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' + let dir = getcwd() + try + execute cd.'`=s:repo().tree()`' + return call(s:repo().git_chomp, a:000, s:repo()) + finally + execute cd.'`=dir`' + endtry +endfunction + +function! s:repo_rev_parse(rev) dict abort + let hash = self.git_chomp('rev-parse','--verify',a:rev) + if hash =~ '\<\x\{40\}$' + return matchstr(hash,'\<\x\{40\}$') + endif + call s:throw('rev-parse '.a:rev.': '.hash) +endfunction + +call s:add_methods('repo',['git_command','git_chomp','git_chomp_in_tree','rev_parse']) + +function! s:repo_dirglob(base) dict abort + let base = s:sub(a:base,'^/','') + let matches = split(glob(self.tree(s:gsub(base,'/','*&').'*/')),"\n") + call map(matches,'v:val[ strlen(self.tree())+(a:base !~ "^/") : -1 ]') + return matches +endfunction + +function! s:repo_superglob(base) dict abort + if a:base =~# '^/' || a:base !~# ':' + let results = [] + if a:base !~# '^/' + let heads = ["HEAD","ORIG_HEAD","FETCH_HEAD","MERGE_HEAD"] + let heads += sort(split(s:repo().git_chomp("rev-parse","--symbolic","--branches","--tags","--remotes"),"\n")) + call filter(heads,'v:val[ 0 : strlen(a:base)-1 ] ==# a:base') + let results += heads + endif + if !self.bare() + let base = s:sub(a:base,'^/','') + let matches = split(glob(self.tree(s:gsub(base,'/','*&').'*')),"\n") + call map(matches,'s:shellslash(v:val)') + call map(matches,'v:val !~ "/$" && isdirectory(v:val) ? v:val."/" : v:val') + call map(matches,'v:val[ strlen(self.tree())+(a:base !~ "^/") : -1 ]') + let results += matches + endif + return results + + elseif a:base =~# '^:' + let entries = split(self.git_chomp('ls-files','--stage'),"\n") + call map(entries,'s:sub(v:val,".*(\\d)\\t(.*)",":\\1:\\2")') + if a:base !~# '^:[0-3]\%(:\|$\)' + call filter(entries,'v:val[1] == "0"') + call map(entries,'v:val[2:-1]') + endif + call filter(entries,'v:val[ 0 : strlen(a:base)-1 ] ==# a:base') + return entries + + else + let tree = matchstr(a:base,'.*[:/]') + let entries = split(self.git_chomp('ls-tree',tree),"\n") + call map(entries,'s:sub(v:val,"^04.*\\zs$","/")') + call map(entries,'tree.s:sub(v:val,".*\t","")') + return filter(entries,'v:val[ 0 : strlen(a:base)-1 ] ==# a:base') + endif +endfunction + +call s:add_methods('repo',['dirglob','superglob']) + +function! s:repo_config(conf) dict abort + return matchstr(system(s:repo().git_command('config').' '.a:conf),"[^\r\n]*") +endfun + +function! s:repo_user() dict abort + let username = s:repo().config('user.name') + let useremail = s:repo().config('user.email') + return username.' <'.useremail.'>' +endfun + +function! s:repo_aliases() dict abort + if !has_key(self,'_aliases') + let self._aliases = {} + for line in split(self.git_chomp('config','--get-regexp','^alias[.]'),"\n") + let self._aliases[matchstr(line,'\.\zs\S\+')] = matchstr(line,' \zs.*') + endfor + endif + return self._aliases +endfunction + +call s:add_methods('repo',['config', 'user', 'aliases']) + +function! s:repo_keywordprg() dict abort + let args = ' --git-dir='.escape(self.dir(),"\\\"' ") + if has('gui_running') && !has('win32') + return g:fugitive_git_executable . ' --no-pager' . args . ' log -1' + else + return g:fugitive_git_executable . args . ' show' + endif +endfunction + +call s:add_methods('repo',['keywordprg']) + +" }}}1 +" Buffer {{{1 + +let s:buffer_prototype = {} + +function! s:buffer(...) abort + let buffer = {'#': bufnr(a:0 ? a:1 : '%')} + call extend(extend(buffer,s:buffer_prototype,'keep'),s:abstract_prototype,'keep') + if buffer.getvar('git_dir') !=# '' + return buffer + endif + call s:throw('not a git repository: '.expand('%:p')) +endfunction + +function! fugitive#buffer(...) abort + return s:buffer(a:0 ? a:1 : '%') +endfunction + +function! s:buffer_getvar(var) dict abort + return getbufvar(self['#'],a:var) +endfunction + +function! s:buffer_setvar(var,value) dict abort + return setbufvar(self['#'],a:var,a:value) +endfunction + +function! s:buffer_getline(lnum) dict abort + return get(getbufline(self['#'], a:lnum), 0, '') +endfunction + +function! s:buffer_repo() dict abort + return s:repo(self.getvar('git_dir')) +endfunction + +function! s:buffer_type(...) dict abort + if self.getvar('fugitive_type') != '' + let type = self.getvar('fugitive_type') + elseif fnamemodify(self.spec(),':p') =~# '.\git/refs/\|\.git/\w*HEAD$' + let type = 'head' + elseif self.getline(1) =~ '^tree \x\{40\}$' && self.getline(2) == '' + let type = 'tree' + elseif self.getline(1) =~ '^\d\{6\} \w\{4\} \x\{40\}\>\t' + let type = 'tree' + elseif self.getline(1) =~ '^\d\{6\} \x\{40\}\> \d\t' + let type = 'index' + elseif isdirectory(self.spec()) + let type = 'directory' + elseif self.spec() == '' + let type = 'null' + else + let type = 'file' + endif + if a:0 + return !empty(filter(copy(a:000),'v:val ==# type')) + else + return type + endif +endfunction + +if has('win32') + + function! s:buffer_spec() dict abort + let bufname = bufname(self['#']) + let retval = '' + for i in split(bufname,'[^:]\zs\\') + let retval = fnamemodify((retval==''?'':retval.'\').i,':.') + endfor + return s:shellslash(fnamemodify(retval,':p')) + endfunction + +else + + function! s:buffer_spec() dict abort + let bufname = bufname(self['#']) + return s:shellslash(bufname == '' ? '' : fnamemodify(bufname,':p')) + endfunction + +endif + +function! s:buffer_name() dict abort + return self.spec() +endfunction + +function! s:buffer_commit() dict abort + return matchstr(self.spec(),'^fugitive://.\{-\}//\zs\w*') +endfunction + +function! s:buffer_path(...) dict abort + let rev = matchstr(self.spec(),'^fugitive://.\{-\}//\zs.*') + if rev != '' + let rev = s:sub(rev,'\w*','') + elseif self.spec()[0 : len(self.repo().dir())] ==# self.repo().dir() . '/' + let rev = '/.git'.self.spec()[strlen(self.repo().dir()) : -1] + elseif !self.repo().bare() && self.spec()[0 : len(self.repo().tree())] ==# self.repo().tree() . '/' + let rev = self.spec()[strlen(self.repo().tree()) : -1] + endif + return s:sub(s:sub(rev,'.\zs/$',''),'^/',a:0 ? a:1 : '') +endfunction + +function! s:buffer_rev() dict abort + let rev = matchstr(self.spec(),'^fugitive://.\{-\}//\zs.*') + if rev =~ '^\x/' + return ':'.rev[0].':'.rev[2:-1] + elseif rev =~ '.' + return s:sub(rev,'/',':') + elseif self.spec() =~ '\.git/index$' + return ':' + elseif self.spec() =~ '\.git/refs/\|\.git/.*HEAD$' + return self.spec()[strlen(self.repo().dir())+1 : -1] + else + return self.path('/') + endif +endfunction + +function! s:buffer_sha1() dict abort + if self.spec() =~ '^fugitive://' || self.spec() =~ '\.git/refs/\|\.git/.*HEAD$' + return self.repo().rev_parse(self.rev()) + else + return '' + endif +endfunction + +function! s:buffer_expand(rev) dict abort + if a:rev =~# '^:[0-3]$' + let file = a:rev.self.path(':') + elseif a:rev =~# '^[-:]/$' + let file = '/'.self.path() + elseif a:rev =~# '^-' + let file = 'HEAD^{}'.a:rev[1:-1].self.path(':') + elseif a:rev =~# '^@{' + let file = 'HEAD'.a:rev.self.path(':') + elseif a:rev =~# '^[~^]' + let commit = s:sub(self.commit(),'^\d=$','HEAD') + let file = commit.a:rev.self.path(':') + else + let file = a:rev + endif + return s:sub(s:sub(file,'\%$',self.path()),'\.\@<=/$','') +endfunction + +function! s:buffer_containing_commit() dict abort + if self.commit() =~# '^\d$' + return ':' + elseif self.commit() =~# '.' + return self.commit() + else + return 'HEAD' + endif +endfunction + +function! s:buffer_up(...) dict abort + let rev = self.rev() + let c = a:0 ? a:1 : 1 + while c + if rev =~# '^[/:]$' + let rev = 'HEAD' + elseif rev =~# '^:' + let rev = ':' + elseif rev =~# '^refs/[^^~:]*$\|^[^^~:]*HEAD$' + let rev .= '^{}' + elseif rev =~# '^/\|:.*/' + let rev = s:sub(rev, '.*\zs/.*', '') + elseif rev =~# ':.' + let rev = matchstr(rev, '^[^:]*:') + elseif rev =~# ':$' + let rev = rev[0:-2] + else + return rev.'~'.c + endif + let c -= 1 + endwhile + return rev +endfunction + +call s:add_methods('buffer',['getvar','setvar','getline','repo','type','spec','name','commit','path','rev','sha1','expand','containing_commit','up']) + +" }}}1 +" Git {{{1 + +call s:command("-bang -nargs=? -complete=customlist,s:GitComplete Git :execute s:Git(0,)") + +function! s:ExecuteInTree(cmd) abort + let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' + let dir = getcwd() + try + execute cd.'`=s:repo().tree()`' + execute a:cmd + finally + execute cd.'`=dir`' + endtry +endfunction + +function! s:Git(bang,cmd) abort + if a:bang + return s:Edit('edit',1,a:cmd) + endif + let git = s:repo().git_command() + if has('gui_running') && !has('win32') + let git .= ' --no-pager' + endif + let cmd = matchstr(a:cmd,'\v\C.{-}%($|\\@ `=s:repo().bare() ? s:repo().dir() : s:repo().tree()`") +call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Glcd :lcd `=s:repo().bare() ? s:repo().dir() : s:repo().tree()`") + +" }}}1 +" Gstatus {{{1 + +call s:command("-bar Gstatus :execute s:Status()") +augroup fugitive_status + autocmd! + if !has('win32') + autocmd FocusGained,ShellCmdPost * call fugitive#reload_status() + endif +augroup END + +function! s:Status() abort + try + Gpedit : + wincmd P + setlocal foldmethod=syntax foldlevel=1 + nnoremap q :bdelete + catch /^fugitive:/ + return 'echoerr v:errmsg' + endtry + return '' +endfunction + +function! fugitive#reload_status() abort + if exists('s:reloading_status') + return + endif + try + let s:reloading_status = 1 + let mytab = tabpagenr() + for tab in [mytab] + range(1,tabpagenr('$')) + for winnr in range(1,tabpagewinnr(tab,'$')) + if getbufvar(tabpagebuflist(tab)[winnr-1],'fugitive_type') ==# 'index' + execute 'tabnext '.tab + if winnr != winnr() + execute winnr.'wincmd w' + let restorewinnr = 1 + endif + try + if !&modified + call s:BufReadIndex() + endif + finally + if exists('restorewinnr') + wincmd p + endif + execute 'tabnext '.mytab + endtry + endif + endfor + endfor + finally + unlet! s:reloading_status + endtry +endfunction + +function! s:stage_info(lnum) abort + let filename = matchstr(getline(a:lnum),'^#\t\zs.\{-\}\ze\%( ([^()[:digit:]]\+)\)\=$') + let lnum = a:lnum + if has('multi_byte_encoding') + let colon = '\%(:\|\%uff1a\)' + else + let colon = ':' + endif + while lnum && getline(lnum) !~# colon.'$' + let lnum -= 1 + endwhile + if !lnum + return ['', ''] + elseif (getline(lnum+1) =~# '^# .*\$' + return 'CtrlP '.fnameescape(s:repo().tree()) + else + for i in range(a:count) + call search('^#\t.*','Wbe') + endfor + return '.' + endif +endfunction + +function! s:StageReloadSeek(target,lnum1,lnum2) abort + let jump = a:target + let f = matchstr(getline(a:lnum1-1),'^#\t\%([[:alpha:] ]\+: *\|.*\%uff1a *\)\=\zs.*') + if f !=# '' | let jump = f | endif + let f = matchstr(getline(a:lnum2+1),'^#\t\%([[:alpha:] ]\+: *\|.*\%uff1a *\)\=\zs.*') + if f !=# '' | let jump = f | endif + silent! edit! + 1 + redraw + call search('^#\t\%([[:alpha:] ]\+: *\|.*\%uff1a *\)\=\V'.jump.'\%( ([^()[:digit:]]\+)\)\=\$','W') +endfunction + +function! s:StageDiff(diff) abort + let [filename, section] = s:stage_info(line('.')) + if filename ==# '' && section ==# 'staged' + return 'Git! diff --no-ext-diff --cached' + elseif filename ==# '' + return 'Git! diff --no-ext-diff' + elseif filename =~# ' -> ' + let [old, new] = split(filename,' -> ') + execute 'Gedit '.s:fnameescape(':0:'.new) + return a:diff.' HEAD:'.s:fnameescape(old) + elseif section ==# 'staged' + execute 'Gedit '.s:fnameescape(':0:'.filename) + return a:diff.' -' + else + execute 'Gedit '.s:fnameescape('/'.filename) + return a:diff + endif +endfunction + +function! s:StageDiffEdit() abort + let [filename, section] = s:stage_info(line('.')) + let arg = (filename ==# '' ? '.' : filename) + if section ==# 'staged' + return 'Git! diff --no-ext-diff --cached '.s:shellesc(arg) + elseif section ==# 'untracked' + let repo = s:repo() + call repo.git_chomp_in_tree('add','--intent-to-add',arg) + if arg ==# '.' + silent! edit! + 1 + if !search('^# .*:\n#.*\n# .*"git checkout \|^# Changes not staged for commit:$','W') + call search('^# .*:$','W') + endif + else + call s:StageReloadSeek(arg,line('.'),line('.')) + endif + return '' + else + return 'Git! diff --no-ext-diff '.s:shellesc(arg) + endif +endfunction + +function! s:StageToggle(lnum1,lnum2) abort + if a:lnum1 == 1 && a:lnum2 == 1 + return 'Gedit /.git|call search("^index$", "wc")' + endif + try + let output = '' + for lnum in range(a:lnum1,a:lnum2) + let [filename, section] = s:stage_info(lnum) + let repo = s:repo() + if getline('.') =~# '^# .*:$' + if section ==# 'staged' + call repo.git_chomp_in_tree('reset','-q') + silent! edit! + 1 + if !search('^# .*:\n# .*"git add .*\n#\n\|^# Untracked files:$','W') + call search('^# .*:$','W') + endif + return '' + elseif section ==# 'unstaged' + call repo.git_chomp_in_tree('add','-u') + silent! edit! + 1 + if !search('^# .*:\n# .*"git add .*\n#\n\|^# Untracked files:$','W') + call search('^# .*:$','W') + endif + return '' + else + call repo.git_chomp_in_tree('add','.') + silent! edit! + 1 + call search('^# .*:$','W') + return '' + endif + endif + if filename ==# '' + continue + endif + if !exists('first_filename') + let first_filename = filename + endif + execute lnum + if filename =~ ' -> ' + let cmd = ['mv','--'] + reverse(split(filename,' -> ')) + let filename = cmd[-1] + elseif section ==# 'staged' + let cmd = ['reset','-q','--',filename] + elseif getline(lnum) =~# '^#\tdeleted:' + let cmd = ['rm','--',filename] + elseif getline(lnum) =~# '^#\tmodified:' + let cmd = ['add','--',filename] + else + let cmd = ['add','-A','--',filename] + endif + let output .= call(repo.git_chomp_in_tree,cmd,s:repo())."\n" + endfor + if exists('first_filename') + call s:StageReloadSeek(first_filename,a:lnum1,a:lnum2) + endif + echo s:sub(s:gsub(output,'\n+','\n'),'\n$','') + catch /^fugitive:/ + return 'echoerr v:errmsg' + endtry + return 'checktime' +endfunction + +function! s:StagePatch(lnum1,lnum2) abort + let add = [] + let reset = [] + + for lnum in range(a:lnum1,a:lnum2) + let [filename, section] = s:stage_info(lnum) + if getline('.') =~# '^# .*:$' && section ==# 'staged' + return 'Git reset --patch' + elseif getline('.') =~# '^# .*:$' && section ==# 'unstaged' + return 'Git add --patch' + elseif getline('.') =~# '^# .*:$' && section ==# 'untracked' + return 'Git add -N .' + elseif filename ==# '' + continue + endif + if !exists('first_filename') + let first_filename = filename + endif + execute lnum + if filename =~ ' -> ' + let reset += [split(filename,' -> ')[1]] + elseif section ==# 'staged' + let reset += [filename] + elseif getline(lnum) !~# '^#\tdeleted:' + let add += [filename] + endif + endfor + try + if !empty(add) + execute "Git add --patch -- ".join(map(add,'s:shellesc(v:val)')) + endif + if !empty(reset) + execute "Git reset --patch -- ".join(map(add,'s:shellesc(v:val)')) + endif + if exists('first_filename') + silent! edit! + 1 + redraw + call search('^#\t\%([[:alpha:] ]\+: *\)\=\V'.first_filename.'\%( ([^()[:digit:]]\+)\)\=\$','W') + endif + catch /^fugitive:/ + return 'echoerr v:errmsg' + endtry + return 'checktime' +endfunction + +" }}}1 +" Gcommit {{{1 + +call s:command("-nargs=? -complete=customlist,s:CommitComplete Gcommit :execute s:Commit()") + +function! s:Commit(args) abort + let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' + let dir = getcwd() + let msgfile = s:repo().dir('COMMIT_EDITMSG') + let outfile = tempname() + let errorfile = tempname() + try + try + execute cd.s:fnameescape(s:repo().tree()) + if &shell =~# 'cmd' || &shell =~# 'power' + let command = '' + let old_editor = $GIT_EDITOR + let $GIT_EDITOR = 'false' + else + let command = 'env GIT_EDITOR=false ' + endif + let command .= s:repo().git_command('commit').' '.a:args + if &shell =~# 'csh' + noautocmd silent execute '!('.command.' > '.outfile.') >& '.errorfile + elseif a:args =~# '\%(^\| \)-\%(-interactive\|p\|-patch\)\>' + noautocmd execute '!'.command.' 2> '.errorfile + else + noautocmd silent execute '!'.command.' > '.outfile.' 2> '.errorfile + endif + finally + execute cd.'`=dir`' + endtry + if !has('gui_running') + redraw! + endif + if !v:shell_error + if filereadable(outfile) + for line in readfile(outfile) + echo line + endfor + endif + return '' + else + let errors = readfile(errorfile) + let error = get(errors,-2,get(errors,-1,'!')) + if error =~# 'false''\=\.$' + let args = a:args + let args = s:gsub(args,'%(%(^| )-- )@' + let args = '--cleanup=strip '.args + endif + if bufname('%') == '' && line('$') == 1 && getline(1) == '' && !&mod + execute 'keepalt edit '.s:fnameescape(msgfile) + elseif s:buffer().type() ==# 'index' + execute 'keepalt edit '.s:fnameescape(msgfile) + execute (search('^#','n')+1).'wincmd+' + setlocal nopreviewwindow + else + execute 'keepalt split '.s:fnameescape(msgfile) + endif + let b:fugitive_commit_arguments = args + setlocal bufhidden=wipe filetype=gitcommit + return '1' + elseif error ==# '!' + return s:Status() + else + call s:throw(error) + endif + endif + catch /^fugitive:/ + return 'echoerr v:errmsg' + finally + if exists('old_editor') + let $GIT_EDITOR = old_editor + endif + call delete(outfile) + call delete(errorfile) + call fugitive#reload_status() + endtry +endfunction + +function! s:CommitComplete(A,L,P) abort + if a:A =~ '^-' || type(a:A) == type(0) " a:A is 0 on :Gcommit - + let args = ['-C', '-F', '-a', '-c', '-e', '-i', '-m', '-n', '-o', '-q', '-s', '-t', '-u', '-v', '--all', '--allow-empty', '--amend', '--author=', '--cleanup=', '--dry-run', '--edit', '--file=', '--include', '--interactive', '--message=', '--no-verify', '--only', '--quiet', '--reedit-message=', '--reuse-message=', '--signoff', '--template=', '--untracked-files', '--verbose'] + return filter(args,'v:val[0 : strlen(a:A)-1] ==# a:A') + else + return s:repo().superglob(a:A) + endif +endfunction + +function! s:FinishCommit() abort + let args = getbufvar(+expand(''),'fugitive_commit_arguments') + if !empty(args) + call setbufvar(+expand(''),'fugitive_commit_arguments','') + return s:Commit(args) + endif + return '' +endfunction + +augroup fugitive_commit + autocmd! + autocmd VimLeavePre,BufDelete COMMIT_EDITMSG execute s:sub(s:FinishCommit(), '^echoerr (.*)', 'echohl ErrorMsg|echo \1|echohl NONE') +augroup END + +" }}}1 +" Ggrep, Glog {{{1 + +if !exists('g:fugitive_summary_format') + let g:fugitive_summary_format = '%s' +endif + +call s:command("-bang -nargs=? -complete=customlist,s:EditComplete Ggrep :execute s:Grep('grep',0,)") +call s:command("-bang -nargs=? -complete=customlist,s:EditComplete Glgrep :execute s:Grep('lgrep',0,)") +call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Glog :execute s:Log('grep',)") +call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gllog :execute s:Log('lgrep',)") + +function! s:Grep(cmd,bang,arg) abort + let grepprg = &grepprg + let grepformat = &grepformat + let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' + let dir = getcwd() + try + execute cd.'`=s:repo().tree()`' + let &grepprg = s:repo().git_command('--no-pager', 'grep', '-n') + let &grepformat = '%f:%l:%m' + exe a:cmd.'! '.escape(matchstr(a:arg,'\v\C.{-}%($|[''" ]\@=\|)@='),'|') + let list = a:cmd =~# '^l' ? getloclist(0) : getqflist() + for entry in list + if bufname(entry.bufnr) =~ ':' + let entry.filename = s:repo().translate(bufname(entry.bufnr)) + unlet! entry.bufnr + elseif a:arg =~# '\%(^\| \)--cached\>' + let entry.filename = s:repo().translate(':0:'.bufname(entry.bufnr)) + unlet! entry.bufnr + endif + endfor + if a:cmd =~# '^l' + call setloclist(0, list, 'r') + else + call setqflist(list, 'r') + endif + if !a:bang && !empty(list) + return (a:cmd =~# '^l' ? 'l' : 'c').'first'.matchstr(a:arg,'\v\C[''" ]\zs\|.*') + else + return matchstr(a:arg,'\v\C[''" ]\|\zs.*') + endif + finally + let &grepprg = grepprg + let &grepformat = grepformat + execute cd.'`=dir`' + endtry +endfunction + +function! s:Log(cmd,...) abort + let path = s:buffer().path('/') + if path =~# '^/\.git\%(/\|$\)' || index(a:000,'--') != -1 + let path = '' + endif + let cmd = ['--no-pager', 'log', '--no-color'] + let cmd += ['--pretty=format:fugitive://'.s:repo().dir().'//%H'.path.'::'.g:fugitive_summary_format] + if empty(filter(a:000[0 : index(a:000,'--')],'v:val !~# "^-"')) + if s:buffer().commit() =~# '\x\{40\}' + let cmd += [s:buffer().commit()] + elseif s:buffer().path() =~# '^\.git/refs/\|^\.git/.*HEAD$' + let cmd += [s:buffer().path()[5:-1]] + endif + end + let cmd += map(copy(a:000),'s:sub(v:val,"^\\%(%(:\\w)*)","\\=fnamemodify(s:buffer().path(),submatch(1))")') + if path =~# '/.' + let cmd += ['--',path[1:-1]] + endif + let grepformat = &grepformat + let grepprg = &grepprg + let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' + let dir = getcwd() + try + execute cd.'`=s:repo().tree()`' + let &grepprg = escape(call(s:repo().git_command,cmd,s:repo()),'%#') + let &grepformat = '%f::%m' + exe a:cmd + finally + let &grepformat = grepformat + let &grepprg = grepprg + execute cd.'`=dir`' + endtry +endfunction + +" }}}1 +" Gedit, Gpedit, Gsplit, Gvsplit, Gtabedit, Gread {{{1 + +function! s:Edit(cmd,bang,...) abort + let buffer = s:buffer() + if a:cmd !~# 'read' + if &previewwindow && getbufvar('','fugitive_type') ==# 'index' + wincmd p + if &diff + let mywinnr = winnr() + for winnr in range(winnr('$'),1,-1) + if winnr != mywinnr && getwinvar(winnr,'&diff') + execute winnr.'wincmd w' + close + wincmd p + endif + endfor + endif + endif + endif + + if a:bang + let arglist = map(copy(a:000), 's:gsub(v:val, ''\\@>>>>>> + if getline(1) !~# '^diff ' + setlocal readonly nomodifiable + endif + if a:cmd =~# 'pedit' + wincmd p + endif + return echo + endif + return '' + endif + + if a:0 && a:1 == '' + return '' + elseif a:0 + let file = buffer.expand(join(a:000, ' ')) + elseif expand('%') ==# '' + let file = ':' + elseif buffer.commit() ==# '' && buffer.path('/') !~# '^/.git\>' + let file = buffer.path(':') + else + let file = buffer.path('/') + endif + try + let file = buffer.repo().translate(file) + catch /^fugitive:/ + return 'echoerr v:errmsg' + endtry + if a:cmd ==# 'read' + return 'silent %delete_|read '.s:fnameescape(file).'|silent 1delete_|diffupdate|'.line('.') + else + return a:cmd.' '.s:fnameescape(file) + endif +endfunction + +function! s:EditComplete(A,L,P) abort + return map(s:repo().superglob(a:A), 'fnameescape(v:val)') +endfunction + +function! s:EditRunComplete(A,L,P) abort + if a:L =~# '^\w\+!' + return s:GitComplete(a:A,a:L,a:P) + else + return s:repo().superglob(a:A) + endif +endfunction + +call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Ge :execute s:Edit('edit',0,)") +call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gedit :execute s:Edit('edit',0,)") +call s:command("-bar -bang -nargs=* -complete=customlist,s:EditRunComplete Gpedit :execute s:Edit('pedit',0,)") +call s:command("-bar -bang -nargs=* -complete=customlist,s:EditRunComplete Gsplit :execute s:Edit('split',0,)") +call s:command("-bar -bang -nargs=* -complete=customlist,s:EditRunComplete Gvsplit :execute s:Edit('vsplit',0,)") +call s:command("-bar -bang -nargs=* -complete=customlist,s:EditRunComplete Gtabedit :execute s:Edit('tabedit',0,)") +call s:command("-bar -bang -nargs=* -count -complete=customlist,s:EditRunComplete Gread :execute s:Edit((! && ? '' : ).'read',0,)") + +" }}}1 +" Gwrite, Gwq {{{1 + +call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gwrite :execute s:Write(0,)") +call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gw :execute s:Write(0,)") +call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gwq :execute s:Wq(0,)") + +function! s:Write(force,...) abort + if exists('b:fugitive_commit_arguments') + return 'write|bdelete' + elseif expand('%:t') == 'COMMIT_EDITMSG' && $GIT_INDEX_FILE != '' + return 'wq' + elseif s:buffer().type() == 'index' + return 'Gcommit' + elseif s:buffer().path() ==# '' && getline(4) =~# '^+++ ' + let filename = getline(4)[6:-1] + setlocal buftype= + silent write + setlocal buftype=nowrite + if matchstr(getline(2),'index [[:xdigit:]]\+\.\.\zs[[:xdigit:]]\{7\}') ==# s:repo().rev_parse(':0:'.filename)[0:6] + let err = s:repo().git_chomp('apply','--cached','--reverse',s:buffer().spec()) + else + let err = s:repo().git_chomp('apply','--cached',s:buffer().spec()) + endif + if err !=# '' + let v:errmsg = split(err,"\n")[0] + return 'echoerr v:errmsg' + elseif a:force + return 'bdelete' + else + return 'Gedit '.fnameescape(filename) + endif + endif + let mytab = tabpagenr() + let mybufnr = bufnr('') + let path = a:0 ? join(a:000, ' ') : s:buffer().path() + if path =~# '^:\d\>' + return 'write'.(a:force ? '! ' : ' ').s:fnameescape(s:repo().translate(s:buffer().expand(path))) + endif + let always_permitted = (s:buffer().path() ==# path && s:buffer().commit() =~# '^0\=$') + if !always_permitted && !a:force && s:repo().git_chomp_in_tree('diff','--name-status','HEAD','--',path) . s:repo().git_chomp_in_tree('ls-files','--others','--',path) !=# '' + let v:errmsg = 'fugitive: file has uncommitted changes (use ! to override)' + return 'echoerr v:errmsg' + endif + let file = s:repo().translate(path) + let treebufnr = 0 + for nr in range(1,bufnr('$')) + if fnamemodify(bufname(nr),':p') ==# file + let treebufnr = nr + endif + endfor + + if treebufnr > 0 && treebufnr != bufnr('') + let temp = tempname() + silent execute '%write '.temp + for tab in [mytab] + range(1,tabpagenr('$')) + for winnr in range(1,tabpagewinnr(tab,'$')) + if tabpagebuflist(tab)[winnr-1] == treebufnr + execute 'tabnext '.tab + if winnr != winnr() + execute winnr.'wincmd w' + let restorewinnr = 1 + endif + try + let lnum = line('.') + let last = line('$') + silent execute '$read '.temp + silent execute '1,'.last.'delete_' + silent write! + silent execute lnum + let did = 1 + finally + if exists('restorewinnr') + wincmd p + endif + execute 'tabnext '.mytab + endtry + endif + endfor + endfor + if !exists('did') + call writefile(readfile(temp,'b'),file,'b') + endif + else + execute 'write! '.s:fnameescape(s:repo().translate(path)) + endif + + if a:force + let error = s:repo().git_chomp_in_tree('add', '--force', file) + else + let error = s:repo().git_chomp_in_tree('add', file) + endif + if v:shell_error + let v:errmsg = 'fugitive: '.error + return 'echoerr v:errmsg' + endif + if s:buffer().path() ==# path && s:buffer().commit() =~# '^\d$' + set nomodified + endif + + let one = s:repo().translate(':1:'.path) + let two = s:repo().translate(':2:'.path) + let three = s:repo().translate(':3:'.path) + for nr in range(1,bufnr('$')) + let name = fnamemodify(bufname(nr), ':p') + if bufloaded(nr) && !getbufvar(nr,'&modified') && (name ==# one || name ==# two || name ==# three) + execute nr.'bdelete' + endif + endfor + + unlet! restorewinnr + let zero = s:repo().translate(':0:'.path) + for tab in range(1,tabpagenr('$')) + for winnr in range(1,tabpagewinnr(tab,'$')) + let bufnr = tabpagebuflist(tab)[winnr-1] + let bufname = fnamemodify(bufname(bufnr), ':p') + if bufname ==# zero && bufnr != mybufnr + execute 'tabnext '.tab + if winnr != winnr() + execute winnr.'wincmd w' + let restorewinnr = 1 + endif + try + let lnum = line('.') + let last = line('$') + silent execute '$read '.s:fnameescape(file) + silent execute '1,'.last.'delete_' + silent execute lnum + set nomodified + diffupdate + finally + if exists('restorewinnr') + wincmd p + endif + execute 'tabnext '.mytab + endtry + break + endif + endfor + endfor + call fugitive#reload_status() + return 'checktime' +endfunction + +function! s:Wq(force,...) abort + let bang = a:force ? '!' : '' + if exists('b:fugitive_commit_arguments') + return 'wq'.bang + endif + let result = call(s:function('s:Write'),[a:force]+a:000) + if result =~# '^\%(write\|wq\|echoerr\)' + return s:sub(result,'^write','wq') + else + return result.'|quit'.bang + endif +endfunction + +" }}}1 +" Gdiff {{{1 + +call s:command("-bang -bar -nargs=* -complete=customlist,s:EditComplete Gdiff :execute s:Diff(0,)") +call s:command("-bar -nargs=* -complete=customlist,s:EditComplete Gvdiff :execute s:Diff(0,)") +call s:command("-bar -nargs=* -complete=customlist,s:EditComplete Gsdiff :execute s:Diff(1,)") + +augroup fugitive_diff + autocmd! + autocmd BufWinLeave * if &diff && s:diff_window_count() == 2 && getbufvar(+expand(''), 'git_dir') !=# '' | call s:diffoff_all(getbufvar(+expand(''), 'git_dir')) | endif + autocmd BufWinEnter * if &diff && s:diff_window_count() == 1 && getbufvar(+expand(''), 'git_dir') !=# '' | call s:diffoff() | endif +augroup END + +function! s:diff_window_count() abort + let c = 0 + for nr in range(1,winnr('$')) + let c += getwinvar(nr,'&diff') + endfor + return c +endfunction + +function! s:diff_restore() abort + let restore = 'setlocal nodiff noscrollbind' + \ . ' scrollopt=' . &l:scrollopt + \ . (&l:wrap ? ' wrap' : ' nowrap') + \ . ' foldlevel=999' + \ . ' foldmethod=' . &l:foldmethod + \ . ' foldcolumn=' . &l:foldcolumn + \ . ' foldlevel=' . &l:foldlevel + if has('cursorbind') + let restore .= (&l:cursorbind ? ' ' : ' no') . 'cursorbind' + endif + return restore +endfunction + +function! s:diffthis() abort + if !&diff + let w:fugitive_diff_restore = s:diff_restore() + diffthis + endif +endfunction + +function! s:diffoff() abort + if exists('w:fugitive_diff_restore') + execute w:fugitive_diff_restore + unlet w:fugitive_diff_restore + else + diffoff + endif +endfunction + +function! s:diffoff_all(dir) abort + for nr in range(1,winnr('$')) + if getwinvar(nr,'&diff') + if nr != winnr() + execute nr.'wincmd w' + let restorewinnr = 1 + endif + if exists('b:git_dir') && b:git_dir ==# a:dir + call s:diffoff() + endif + endif + endfor +endfunction + +function! s:buffer_compare_age(commit) dict abort + let scores = {':0': 1, ':1': 2, ':2': 3, ':': 4, ':3': 5} + let my_score = get(scores,':'.self.commit(),0) + let their_score = get(scores,':'.a:commit,0) + if my_score || their_score + return my_score < their_score ? -1 : my_score != their_score + elseif self.commit() ==# a:commit + return 0 + endif + let base = self.repo().git_chomp('merge-base',self.commit(),a:commit) + if base ==# self.commit() + return -1 + elseif base ==# a:commit + return 1 + endif + let my_time = +self.repo().git_chomp('log','--max-count=1','--pretty=format:%at',self.commit()) + let their_time = +self.repo().git_chomp('log','--max-count=1','--pretty=format:%at',a:commit) + return my_time < their_time ? -1 : my_time != their_time +endfunction + +call s:add_methods('buffer',['compare_age']) + +function! s:Diff(bang,...) abort + let vert = a:bang ? '' : 'vertical ' + if exists(':DiffGitCached') + return 'DiffGitCached' + elseif (!a:0 || a:1 == ':') && s:buffer().commit() =~# '^[0-1]\=$' && s:repo().git_chomp_in_tree('ls-files', '--unmerged', '--', s:buffer().path()) !=# '' + let nr = bufnr('') + execute 'leftabove '.vert.'split `=fugitive#buffer().repo().translate(s:buffer().expand('':2''))`' + execute 'nnoremap dp :diffput '.nr.'diffupdate' + call s:diffthis() + wincmd p + execute 'rightbelow '.vert.'split `=fugitive#buffer().repo().translate(s:buffer().expand('':3''))`' + execute 'nnoremap dp :diffput '.nr.'diffupdate' + call s:diffthis() + wincmd p + call s:diffthis() + return '' + elseif a:0 + let arg = join(a:000, ' ') + if arg ==# '' + return '' + elseif arg ==# '/' + let file = s:buffer().path('/') + elseif arg ==# ':' + let file = s:buffer().path(':0:') + elseif arg =~# '^:/.' + try + let file = s:repo().rev_parse(arg).s:buffer().path(':') + catch /^fugitive:/ + return 'echoerr v:errmsg' + endtry + else + let file = s:buffer().expand(arg) + endif + if file !~# ':' && file !~# '^/' && s:repo().git_chomp('cat-file','-t',file) =~# '^\%(tag\|commit\)$' + let file = file.s:buffer().path(':') + endif + else + let file = s:buffer().path(s:buffer().commit() == '' ? ':0:' : '/') + endif + try + let spec = s:repo().translate(file) + let commit = matchstr(spec,'\C[^:/]//\zs\x\+') + let restore = s:diff_restore() + if exists('+cursorbind') + setlocal cursorbind + endif + let w:fugitive_diff_restore = restore + if s:buffer().compare_age(commit) < 0 + execute 'rightbelow '.vert.'diffsplit '.s:fnameescape(spec) + else + execute 'leftabove '.vert.'diffsplit '.s:fnameescape(spec) + endif + let w:fugitive_diff_restore = restore + let winnr = winnr() + if getwinvar('#', '&diff') + wincmd p + call feedkeys("\p", 'n') + endif + return '' + catch /^fugitive:/ + return 'echoerr v:errmsg' + endtry +endfunction + +" }}}1 +" Gmove, Gremove {{{1 + +function! s:Move(force,destination) abort + if a:destination =~# '^/' + let destination = a:destination[1:-1] + else + let destination = s:shellslash(fnamemodify(s:sub(a:destination,'[%#]%(:\w)*','\=expand(submatch(0))'),':p')) + if destination[0:strlen(s:repo().tree())] ==# s:repo().tree('') + let destination = destination[strlen(s:repo().tree('')):-1] + endif + endif + if isdirectory(s:buffer().spec()) + " Work around Vim parser idiosyncrasy + let discarded = s:buffer().setvar('&swapfile',0) + endif + let message = call(s:repo().git_chomp_in_tree,['mv']+(a:force ? ['-f'] : [])+['--', s:buffer().path(), destination], s:repo()) + if v:shell_error + let v:errmsg = 'fugitive: '.message + return 'echoerr v:errmsg' + endif + let destination = s:repo().tree(destination) + if isdirectory(destination) + let destination = fnamemodify(s:sub(destination,'/$','').'/'.expand('%:t'),':.') + endif + call fugitive#reload_status() + if s:buffer().commit() == '' + if isdirectory(destination) + return 'keepalt edit '.s:fnameescape(destination) + else + return 'keepalt saveas! '.s:fnameescape(destination) + endif + else + return 'file '.s:fnameescape(s:repo().translate(':0:'.destination)) + endif +endfunction + +function! s:MoveComplete(A,L,P) abort + if a:A =~ '^/' + return s:repo().superglob(a:A) + else + let matches = split(glob(a:A.'*'),"\n") + call map(matches,'v:val !~ "/$" && isdirectory(v:val) ? v:val."/" : v:val') + return matches + endif +endfunction + +function! s:Remove(force) abort + if s:buffer().commit() ==# '' + let cmd = ['rm'] + elseif s:buffer().commit() ==# '0' + let cmd = ['rm','--cached'] + else + let v:errmsg = 'fugitive: rm not supported here' + return 'echoerr v:errmsg' + endif + if a:force + let cmd += ['--force'] + endif + let message = call(s:repo().git_chomp_in_tree,cmd+['--',s:buffer().path()],s:repo()) + if v:shell_error + let v:errmsg = 'fugitive: '.s:sub(message,'error:.*\zs\n\(.*-f.*',' (add ! to force)') + return 'echoerr '.string(v:errmsg) + else + call fugitive#reload_status() + return 'bdelete'.(a:force ? '!' : '') + endif +endfunction + +augroup fugitive_remove + autocmd! + autocmd User Fugitive if s:buffer().commit() =~# '^0\=$' | + \ exe "command! -buffer -bar -bang -nargs=1 -complete=customlist,s:MoveComplete Gmove :execute s:Move(0,)" | + \ exe "command! -buffer -bar -bang Gremove :execute s:Remove(0)" | + \ endif +augroup END + +" }}}1 +" Gblame {{{1 + +augroup fugitive_blame + autocmd! + autocmd BufReadPost *.fugitiveblame setfiletype fugitiveblame + autocmd FileType fugitiveblame setlocal nomodeline | if exists('b:git_dir') | let &l:keywordprg = s:repo().keywordprg() | endif + autocmd Syntax fugitiveblame call s:BlameSyntax() + autocmd User Fugitive if s:buffer().type('file', 'blob') | exe "command! -buffer -bar -bang -range=0 -nargs=* Gblame :execute s:Blame(0,,,,[])" | endif +augroup END + +function! s:linechars(pattern) abort + let chars = strlen(s:gsub(matchstr(getline('.'), a:pattern), '.', '.')) + if exists('*synconcealed') && &conceallevel > 1 + for col in range(1, chars) + let chars -= synconcealed(line('.'), col)[0] + endfor + endif + return chars +endfunction + +function! s:Blame(bang,line1,line2,count,args) abort + try + if s:buffer().path() == '' + call s:throw('file or blob required') + endif + if filter(copy(a:args),'v:val !~# "^\\%(--root\|--show-name\\|-\\=\\%([ltfnsew]\\|[MC]\\d*\\)\\+\\)$"') != [] + call s:throw('unsupported option') + endif + call map(a:args,'s:sub(v:val,"^\\ze[^-]","-")') + let cmd = ['--no-pager', 'blame', '--show-number'] + a:args + if s:buffer().commit() =~# '\D\|..' + let cmd += [s:buffer().commit()] + else + let cmd += ['--contents', '-'] + endif + let cmd += ['--', s:buffer().path()] + let basecmd = escape(call(s:repo().git_command,cmd,s:repo()),'!') + try + let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' + if !s:repo().bare() + let dir = getcwd() + execute cd.'`=s:repo().tree()`' + endif + if a:count + execute 'write !'.substitute(basecmd,' blame ',' blame -L '.a:line1.','.a:line2.' ','g') + else + let error = resolve(tempname()) + let temp = error.'.fugitiveblame' + if &shell =~# 'csh' + silent! execute '%write !('.basecmd.' > '.temp.') >& '.error + else + silent! execute '%write !'.basecmd.' > '.temp.' 2> '.error + endif + if exists('l:dir') + execute cd.'`=dir`' + unlet dir + endif + if v:shell_error + call s:throw(join(readfile(error),"\n")) + endif + for winnr in range(winnr('$'),1,-1) + call setwinvar(winnr, '&scrollbind', 0) + if getbufvar(winbufnr(winnr), 'fugitive_blamed_bufnr') + execute winbufnr(winnr).'bdelete' + endif + endfor + let bufnr = bufnr('') + let restore = 'call setwinvar(bufwinnr('.bufnr.'),"&scrollbind",0)' + if &l:wrap + let restore .= '|call setwinvar(bufwinnr('.bufnr.'),"&wrap",1)' + endif + if &l:foldenable + let restore .= '|call setwinvar(bufwinnr('.bufnr.'),"&foldenable",1)' + endif + setlocal scrollbind nowrap nofoldenable + let top = line('w0') + &scrolloff + let current = line('.') + let s:temp_files[temp] = { 'dir': s:repo().dir(), 'args': cmd } + exe 'keepalt leftabove vsplit '.temp + let b:fugitive_blamed_bufnr = bufnr + let w:fugitive_leave = restore + let b:fugitive_blame_arguments = join(a:args,' ') + execute top + normal! zt + execute current + setlocal nomodified nomodifiable nonumber scrollbind nowrap foldcolumn=0 nofoldenable winfixwidth filetype=fugitiveblame + if exists('+concealcursor') + setlocal concealcursor=nc conceallevel=2 + endif + if exists('+relativenumber') + setlocal norelativenumber + endif + execute "vertical resize ".(s:linechars('.\{-\}\ze\s\+\d\+)')+1) + nnoremap :help fugitive-:Gblame + nnoremap g? :help fugitive-:Gblame + nnoremap q :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w'.bufnr('').'bdelete','^-1','','') + nnoremap gq :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w'.bufnr('').'bdeleteif expand("%:p") =~# "^fugitive:[\\/][\\/]"Geditendif','^-1','','') + nnoremap :exe BlameCommit("exe 'norm q'edit") + nnoremap - :exe BlameJump('') + nnoremap P :exe BlameJump('^'.v:count1) + nnoremap ~ :exe BlameJump('~'.v:count1) + nnoremap i :exe BlameCommit("exe 'norm q'edit") + nnoremap o :exe BlameCommit((&splitbelow ? "botright" : "topleft")." split") + nnoremap O :exe BlameCommit("tabedit") + nnoremap A :exe "vertical resize ".(linechars('.\{-\}\ze [0-9:/+-][0-9:/+ -]* \d\+)')+1+v:count) + nnoremap C :exe "vertical resize ".(linechars('^\S\+')+1+v:count) + nnoremap D :exe "vertical resize ".(linechars('.\{-\}\ze\d\ze\s\+\d\+)')+1-v:count) + redraw + syncbind + endif + finally + if exists('l:dir') + execute cd.'`=dir`' + endif + endtry + return '' + catch /^fugitive:/ + return 'echoerr v:errmsg' + endtry +endfunction + +function! s:BlameCommit(cmd) abort + let cmd = s:Edit(a:cmd, 0, matchstr(getline('.'),'\x\+')) + if cmd =~# '^echoerr' + return cmd + endif + let lnum = matchstr(getline('.'),' \zs\d\+\ze\s\+[([:digit:]]') + let path = matchstr(getline('.'),'^\^\=\x\+\s\+\zs.\{-\}\ze\s*\d\+ ') + if path ==# '' + let path = s:buffer(b:fugitive_blamed_bufnr).path() + endif + execute cmd + if search('^diff .* b/\M'.escape(path,'\').'$','W') + call search('^+++') + let head = line('.') + while search('^@@ \|^diff ') && getline('.') =~# '^@@ ' + let top = +matchstr(getline('.'),' +\zs\d\+') + let len = +matchstr(getline('.'),' +\d\+,\zs\d\+') + if lnum >= top && lnum <= top + len + let offset = lnum - top + if &scrolloff + + + normal! zt + else + normal! zt + + + endif + while offset > 0 && line('.') < line('$') + + + if getline('.') =~# '^[ +]' + let offset -= 1 + endif + endwhile + return 'if foldlevel(".")|foldopen!|endif' + endif + endwhile + execute head + normal! zt + endif + return '' +endfunction + +function! s:BlameJump(suffix) abort + let commit = matchstr(getline('.'),'^\^\=\zs\x\+') + if commit =~# '^0\+$' + let commit = ':0' + endif + let lnum = matchstr(getline('.'),' \zs\d\+\ze\s\+[([:digit:]]') + let path = matchstr(getline('.'),'^\^\=\x\+\s\+\zs.\{-\}\ze\s*\d\+ ') + if path ==# '' + let path = s:buffer(b:fugitive_blamed_bufnr).path() + endif + let args = b:fugitive_blame_arguments + let offset = line('.') - line('w0') + let bufnr = bufnr('%') + let winnr = bufwinnr(b:fugitive_blamed_bufnr) + if winnr > 0 + exe winnr.'wincmd w' + endif + execute s:Edit('edit', 0, commit.a:suffix.':'.path) + execute lnum + if winnr > 0 + exe bufnr.'bdelete' + endif + execute 'Gblame '.args + execute lnum + let delta = line('.') - line('w0') - offset + if delta > 0 + execute 'normal! '.delta."\" + elseif delta < 0 + execute 'normal! '.(-delta)."\" + endif + syncbind + return '' +endfunction + +function! s:BlameSyntax() abort + let b:current_syntax = 'fugitiveblame' + let conceal = has('conceal') ? ' conceal' : '' + let arg = exists('b:fugitive_blame_arguments') ? b:fugitive_blame_arguments : '' + syn match FugitiveblameBoundary "^\^" + syn match FugitiveblameBlank "^\s\+\s\@=" nextgroup=FugitiveblameAnnotation,fugitiveblameOriginalFile,FugitiveblameOriginalLineNumber skipwhite + syn match FugitiveblameHash "\%(^\^\=\)\@<=\x\{7,40\}\>" nextgroup=FugitiveblameAnnotation,FugitiveblameOriginalLineNumber,fugitiveblameOriginalFile skipwhite + syn match FugitiveblameUncommitted "\%(^\^\=\)\@<=0\{7,40\}\>" nextgroup=FugitiveblameAnnotation,FugitiveblameOriginalLineNumber,fugitiveblameOriginalFile skipwhite + syn region FugitiveblameAnnotation matchgroup=FugitiveblameDelimiter start="(" end="\%( \d\+\)\@<=)" contained keepend oneline + syn match FugitiveblameTime "[0-9:/+-][0-9:/+ -]*[0-9:/+-]\%( \+\d\+)\)\@=" contained containedin=FugitiveblameAnnotation + exec 'syn match FugitiveblameLineNumber " *\d\+)\@=" contained containedin=FugitiveblameAnnotation'.conceal + exec 'syn match FugitiveblameOriginalFile " \%(\f\+\D\@<=\|\D\@=\f\+\)\%(\%(\s\+\d\+\)\=\s\%((\|\s*\d\+)\)\)\@=" contained nextgroup=FugitiveblameOriginalLineNumber,FugitiveblameAnnotation skipwhite'.(arg =~# 'f' ? '' : conceal) + exec 'syn match FugitiveblameOriginalLineNumber " *\d\+\%(\s(\)\@=" contained nextgroup=FugitiveblameAnnotation skipwhite'.(arg =~# 'n' ? '' : conceal) + exec 'syn match FugitiveblameOriginalLineNumber " *\d\+\%(\s\+\d\+)\)\@=" contained nextgroup=FugitiveblameShort skipwhite'.(arg =~# 'n' ? '' : conceal) + syn match FugitiveblameShort " \d\+)" contained contains=FugitiveblameLineNumber + syn match FugitiveblameNotCommittedYet "(\@<=Not Committed Yet\>" contained containedin=FugitiveblameAnnotation + hi def link FugitiveblameBoundary Keyword + hi def link FugitiveblameHash Identifier + hi def link FugitiveblameUncommitted Function + hi def link FugitiveblameTime PreProc + hi def link FugitiveblameLineNumber Number + hi def link FugitiveblameOriginalFile String + hi def link FugitiveblameOriginalLineNumber Float + hi def link FugitiveblameShort FugitiveblameDelimiter + hi def link FugitiveblameDelimiter Delimiter + hi def link FugitiveblameNotCommittedYet Comment +endfunction + +" }}}1 +" Gbrowse {{{1 + +call s:command("-bar -bang -range -nargs=* -complete=customlist,s:EditComplete Gbrowse :execute s:Browse(0,,,)") + +function! s:Browse(bang,line1,count,...) abort + try + let rev = a:0 ? substitute(join(a:000, ' '),'@[[:alnum:]_-]*\%(://.\{-\}\)\=$','','') : '' + if rev ==# '' + let expanded = s:buffer().rev() + elseif rev ==# ':' + let expanded = s:buffer().path('/') + else + let expanded = s:buffer().expand(rev) + endif + let full = s:repo().translate(expanded) + let commit = '' + if full =~# '^fugitive://' + let commit = matchstr(full,'://.*//\zs\w\+') + let path = matchstr(full,'://.*//\w\+\zs/.*') + if commit =~ '..' + let type = s:repo().git_chomp('cat-file','-t',commit.s:sub(path,'^/',':')) + else + let type = 'blob' + endif + let path = path[1:-1] + elseif s:repo().bare() + let path = '.git/' . full[strlen(s:repo().dir())+1:-1] + let type = '' + else + let path = full[strlen(s:repo().tree())+1:-1] + if path =~# '^\.git/' + let type = '' + elseif isdirectory(full) + let type = 'tree' + else + let type = 'blob' + endif + endif + if path =~# '^\.git/.*HEAD' && filereadable(s:repo().dir(path[5:-1])) + let body = readfile(s:repo().dir(path[5:-1]))[0] + if body =~# '^\x\{40\}$' + let commit = body + let type = 'commit' + let path = '' + elseif body =~# '^ref: refs/' + let path = '.git/' . matchstr(body,'ref: \zs.*') + endif + endif + + if a:0 && join(a:000, ' ') =~# '@[[:alnum:]_-]*\%(://.\{-\}\)\=$' + let remote = matchstr(join(a:000, ' '),'@\zs[[:alnum:]_-]\+\%(://.\{-\}\)\=$') + elseif path =~# '^\.git/refs/remotes/.' + let remote = matchstr(path,'^\.git/refs/remotes/\zs[^/]\+') + else + let remote = 'origin' + let branch = matchstr(rev,'^[[:alnum:]/._-]\+\ze[:^~@]') + if branch ==# '' && path =~# '^\.git/refs/\w\+/' + let branch = s:sub(path,'^\.git/refs/\w+/','') + endif + if filereadable(s:repo().dir('refs/remotes/'.branch)) + let remote = matchstr(branch,'[^/]\+') + let rev = rev[strlen(remote)+1:-1] + else + if branch ==# '' + let branch = matchstr(s:repo().head_ref(),'\ 0 ? a:line1 : 0) + endif + + if url == '' + call s:throw("Instaweb failed to start and '".remote."' is not a GitHub remote") + endif + + if a:bang + let @* = url + return 'echomsg '.string(url) + else + return 'echomsg '.string(url).'|call fugitive#buffer().repo().git_chomp("web--browse",'.string(url).')' + endif + catch /^fugitive:/ + return 'echoerr v:errmsg' + endtry +endfunction + +function! s:github_url(repo,url,rev,commit,path,type,line1,line2) abort + let path = a:path + let domain_pattern = 'github\.com' + let domains = exists('g:fugitive_github_domains') ? g:fugitive_github_domains : [] + for domain in domains + let domain_pattern .= '\|' . escape(split(domain, '://')[-1], '.') + endfor + let repo = matchstr(a:url,'^\%(https\=://\|git://\|git@\)\=\zs\('.domain_pattern.'\)[/:].\{-\}\ze\%(\.git\)\=$') + if repo ==# '' + return '' + endif + if index(domains, 'http://' . matchstr(repo, '^[^:/]*')) >= 0 + let root = 'http://' . s:sub(repo,':','/') + else + let root = 'https://' . s:sub(repo,':','/') + endif + if path =~# '^\.git/refs/heads/' + let branch = a:repo.git_chomp('config','branch.'.path[16:-1].'.merge')[11:-1] + if branch ==# '' + return root . '/commits/' . path[16:-1] + else + return root . '/commits/' . branch + endif + elseif path =~# '^\.git/refs/.' + return root . '/commits/' . matchstr(path,'[^/]\+$') + elseif path =~# '.git/\%(config$\|hooks\>\)' + return root . '/admin' + elseif path =~# '^\.git\>' + return root + endif + if a:rev =~# '^[[:alnum:]._-]\+:' + let commit = matchstr(a:rev,'^[^:]*') + elseif a:commit =~# '^\d\=$' + let local = matchstr(a:repo.head_ref(),'\ 0 && a:line1 == a:line2 + let url .= '#L' . a:line1 + elseif a:line2 > 0 + let url .= '#L' . a:line1 . '-' . a:line2 + endif + elseif a:type == 'tag' + let commit = matchstr(getline(3),'^tag \zs.*') + let url = root . '/tree/' . commit + else + let url = root . '/commit/' . commit + endif + return url +endfunction + +function! s:instaweb_url(repo,rev,commit,path,type,...) abort + let output = a:repo.git_chomp('instaweb','-b','unknown') + if output =~# 'http://' + let root = matchstr(output,'http://.*').'/?p='.fnamemodify(a:repo.dir(),':t') + else + return '' + endif + if a:path =~# '^\.git/refs/.' + return root . ';a=shortlog;h=' . matchstr(a:path,'^\.git/\zs.*') + elseif a:path =~# '^\.git\>' + return root + endif + let url = root + if a:commit =~# '^\x\{40\}$' + if a:type ==# 'commit' + let url .= ';a=commit' + endif + let url .= ';h=' . a:repo.rev_parse(a:commit . (a:path == '' ? '' : ':' . a:path)) + else + if a:type ==# 'blob' + let tmp = tempname() + silent execute 'write !'.a:repo.git_command('hash-object','-w','--stdin').' > '.tmp + let url .= ';h=' . readfile(tmp)[0] + else + try + let url .= ';h=' . a:repo.rev_parse((a:commit == '' ? 'HEAD' : ':' . a:commit) . ':' . a:path) + catch /^fugitive:/ + call s:throw('fugitive: cannot browse uncommitted file') + endtry + endif + let root .= ';hb=' . matchstr(a:repo.head_ref(),'[^ ]\+$') + endif + if a:path !=# '' + let url .= ';f=' . a:path + endif + if a:0 && a:1 + let url .= '#l' . a:1 + endif + return url +endfunction + +" }}}1 +" File access {{{1 + +function! s:ReplaceCmd(cmd,...) abort + let fn = expand('%:p') + let tmp = tempname() + let prefix = '' + try + if a:0 && a:1 != '' + if &shell =~# 'cmd' || &shell =~# 'power' + let old_index = $GIT_INDEX_FILE + let $GIT_INDEX_FILE = a:1 + else + let prefix = 'env GIT_INDEX_FILE='.s:shellesc(a:1).' ' + endif + endif + if &shell =~# 'cmd' || &shell =~# 'power' + let cmd_escape_char = &shellxquote == '(' ? '^' : '^^^' + call system('cmd /c "'.prefix.s:gsub(a:cmd,'[<>]', cmd_escape_char.'&').' > '.tmp.'"') + else + call system(' ('.prefix.a:cmd.' > '.tmp.') ') + endif + finally + if exists('old_index') + let $GIT_INDEX_FILE = old_index + endif + endtry + silent exe 'keepalt file '.tmp + try + silent edit! + finally + silent exe 'keepalt file '.s:fnameescape(fn) + call delete(tmp) + if fnamemodify(bufname('$'), ':p') ==# tmp + silent execute 'bwipeout '.bufnr('$') + endif + silent exe 'doau BufReadPost '.s:fnameescape(fn) + endtry +endfunction + +function! s:BufReadIndex() abort + if !exists('b:fugitive_display_format') + let b:fugitive_display_format = filereadable(expand('%').'.lock') + endif + let b:fugitive_display_format = b:fugitive_display_format % 2 + let b:fugitive_type = 'index' + try + let b:git_dir = s:repo().dir() + setlocal noro ma nomodeline + if fnamemodify($GIT_INDEX_FILE !=# '' ? $GIT_INDEX_FILE : b:git_dir . '/index', ':p') ==# expand('%:p') + let index = '' + else + let index = expand('%:p') + endif + if b:fugitive_display_format + call s:ReplaceCmd(s:repo().git_command('ls-files','--stage'),index) + set ft=git nospell + else + let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' + let dir = getcwd() + if fugitive#git_version() =~# '^0\|^1\.[1-7]\.' + let cmd = s:repo().git_command('status') + else + let cmd = s:repo().git_command( + \ '-c', 'status.displayCommentPrefix=true', + \ '-c', 'color.status=false', + \ 'status') + endif + try + execute cd.'`=s:repo().tree()`' + call s:ReplaceCmd(cmd, index) + finally + execute cd.'`=dir`' + endtry + set ft=gitcommit + set foldtext=fugitive#foldtext() + endif + setlocal ro noma nomod noswapfile + if &bufhidden ==# '' + setlocal bufhidden=delete + endif + call s:JumpInit() + nunmap P + nunmap ~ + nnoremap :execute StageNext(v:count1) + nnoremap :execute StagePrevious(v:count1) + nnoremap - :silent execute StageToggle(line('.'),line('.')+v:count1-1) + xnoremap - :silent execute StageToggle(line("'<"),line("'>")) + nnoremap a :let b:fugitive_display_format += 1exe BufReadIndex() + nnoremap i :let b:fugitive_display_format -= 1exe BufReadIndex() + nnoremap C :Gcommit + nnoremap cA :Gcommit --amend --reuse-message=HEAD + nnoremap ca :Gcommit --amend + nnoremap cc :Gcommit + nnoremap cva :Gcommit --amend --verbose + nnoremap cvc :Gcommit --verbose + nnoremap D :execute StageDiff('Gvdiff') + nnoremap dd :execute StageDiff('Gvdiff') + nnoremap dh :execute StageDiff('Gsdiff') + nnoremap ds :execute StageDiff('Gsdiff') + nnoremap dp :execute StageDiffEdit() + nnoremap dv :execute StageDiff('Gvdiff') + nnoremap p :execute StagePatch(line('.'),line('.')+v:count1-1) + xnoremap p :execute StagePatch(line("'<"),line("'>")) + nnoremap q :if bufnr('$') == 1quitelsebdeleteendif + nnoremap R :edit + nnoremap g? :help fugitive-:Gstatus + nnoremap :help fugitive-:Gstatus + catch /^fugitive:/ + return 'echoerr v:errmsg' + endtry +endfunction + +function! s:FileRead() abort + try + let repo = s:repo(fugitive#extract_git_dir(expand(''))) + let path = s:sub(s:sub(matchstr(expand(''),'fugitive://.\{-\}//\zs.*'),'/',':'),'^\d:',':&') + let hash = repo.rev_parse(path) + if path =~ '^:' + let type = 'blob' + else + let type = repo.git_chomp('cat-file','-t',hash) + endif + " TODO: use count, if possible + return "read !".escape(repo.git_command('cat-file',type,hash),'%#\') + catch /^fugitive:/ + return 'echoerr v:errmsg' + endtry +endfunction + +function! s:BufReadIndexFile() abort + try + let b:fugitive_type = 'blob' + let b:git_dir = s:repo().dir() + try + call s:ReplaceCmd(s:repo().git_command('cat-file','blob',s:buffer().sha1())) + finally + if &bufhidden ==# '' + setlocal bufhidden=delete + endif + setlocal noswapfile + endtry + return '' + catch /^fugitive: rev-parse/ + silent exe 'doau BufNewFile '.s:fnameescape(expand('%:p')) + return '' + catch /^fugitive:/ + return 'echoerr v:errmsg' + endtry +endfunction + +function! s:BufWriteIndexFile() abort + let tmp = tempname() + try + let path = matchstr(expand(''),'//\d/\zs.*') + let stage = matchstr(expand(''),'//\zs\d') + silent execute 'write !'.s:repo().git_command('hash-object','-w','--stdin').' > '.tmp + let sha1 = readfile(tmp)[0] + let old_mode = matchstr(s:repo().git_chomp('ls-files','--stage',path),'^\d\+') + if old_mode == '' + let old_mode = executable(s:repo().tree(path)) ? '100755' : '100644' + endif + let info = old_mode.' '.sha1.' '.stage."\t".path + call writefile([info],tmp) + if &shell =~# 'cmd' || &shell =~# 'power' + let error = system('type '.s:gsub(tmp,'/','\\').'|'.s:repo().git_command('update-index','--index-info')) + else + let error = system(s:repo().git_command('update-index','--index-info').' < '.tmp) + endif + if v:shell_error == 0 + setlocal nomodified + silent execute 'doautocmd BufWritePost '.s:fnameescape(expand('%:p')) + call fugitive#reload_status() + return '' + else + return 'echoerr '.string('fugitive: '.error) + endif + finally + call delete(tmp) + endtry +endfunction + +function! s:BufReadObject() abort + try + setlocal noro ma + let b:git_dir = s:repo().dir() + let hash = s:buffer().sha1() + if !exists("b:fugitive_type") + let b:fugitive_type = s:repo().git_chomp('cat-file','-t',hash) + endif + if b:fugitive_type !~# '^\%(tag\|commit\|tree\|blob\)$' + return "echoerr 'fugitive: unrecognized git type'" + endif + let firstline = getline('.') + if !exists('b:fugitive_display_format') && b:fugitive_type != 'blob' + let b:fugitive_display_format = +getbufvar('#','fugitive_display_format') + endif + + if b:fugitive_type !=# 'blob' + setlocal nomodeline + endif + + let pos = getpos('.') + silent keepjumps %delete_ + setlocal endofline + + try + if b:fugitive_type ==# 'tree' + let b:fugitive_display_format = b:fugitive_display_format % 2 + if b:fugitive_display_format + call s:ReplaceCmd(s:repo().git_command('ls-tree',hash)) + else + call s:ReplaceCmd(s:repo().git_command('show','--no-color',hash)) + endif + elseif b:fugitive_type ==# 'tag' + let b:fugitive_display_format = b:fugitive_display_format % 2 + if b:fugitive_display_format + call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash)) + else + call s:ReplaceCmd(s:repo().git_command('cat-file','-p',hash)) + endif + elseif b:fugitive_type ==# 'commit' + let b:fugitive_display_format = b:fugitive_display_format % 2 + if b:fugitive_display_format + call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash)) + else + call s:ReplaceCmd(s:repo().git_command('show','--no-color','--pretty=format:tree %T%nparent %P%nauthor %an <%ae> %ad%ncommitter %cn <%ce> %cd%nencoding %e%n%n%s%n%n%b',hash)) + keepjumps call search('^parent ') + if getline('.') ==# 'parent ' + silent keepjumps delete_ + else + silent keepjumps s/\%(^parent\)\@\)\=$','W',line('.')+3) + if lnum + silent keepjumps delete_ + end + keepjumps 1 + endif + elseif b:fugitive_type ==# 'blob' + call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash)) + setlocal nomodeline + endif + finally + keepjumps call setpos('.',pos) + setlocal ro noma nomod noswapfile + if &bufhidden ==# '' + setlocal bufhidden=delete + endif + if b:fugitive_type !=# 'blob' + set filetype=git + nnoremap a :let b:fugitive_display_format += v:count1exe BufReadObject() + nnoremap i :let b:fugitive_display_format -= v:count1exe BufReadObject() + else + call s:JumpInit() + endif + endtry + + return '' + catch /^fugitive:/ + return 'echoerr v:errmsg' + endtry +endfunction + +augroup fugitive_files + autocmd! + autocmd BufReadCmd index{,.lock} + \ if fugitive#is_git_dir(expand(':p:h')) | + \ exe s:BufReadIndex() | + \ elseif filereadable(expand('')) | + \ read | + \ 1delete | + \ endif + autocmd FileReadCmd fugitive://**//[0-3]/** exe s:FileRead() + autocmd BufReadCmd fugitive://**//[0-3]/** exe s:BufReadIndexFile() + autocmd BufWriteCmd fugitive://**//[0-3]/** exe s:BufWriteIndexFile() + autocmd BufReadCmd fugitive://**//[0-9a-f][0-9a-f]* exe s:BufReadObject() + autocmd FileReadCmd fugitive://**//[0-9a-f][0-9a-f]* exe s:FileRead() + autocmd FileType git + \ if exists('b:git_dir') | + \ call s:JumpInit() | + \ endif +augroup END + +" }}}1 +" Temp files {{{1 + +if !exists('s:temp_files') + let s:temp_files = {} +endif + +augroup fugitive_temp + autocmd! + autocmd BufNewFile,BufReadPost * + \ if has_key(s:temp_files,expand(':p')) | + \ let b:git_dir = s:temp_files[expand(':p')].dir | + \ let b:git_type = 'temp' | + \ let b:git_args = s:temp_files[expand(':p')].args | + \ call fugitive#detect(expand(':p')) | + \ setlocal bufhidden=delete | + \ nnoremap q :bdelete| + \ endif +augroup END + +" }}}1 +" Go to file {{{1 + +function! s:JumpInit() abort + nnoremap :exe GF("edit") + if !&modifiable + nnoremap o :exe GF("split") + nnoremap S :exe GF("vsplit") + nnoremap O :exe GF("tabedit") + nnoremap - :exe Edit('edit',0,buffer().up(v:count1)) if fugitive#buffer().type('tree')call search('^'.escape(expand('#:t'),'.*[]~\').'/\=$','wc')endif + nnoremap P :exe Edit('edit',0,buffer().commit().'^'.v:count1.buffer().path(':')) + nnoremap ~ :exe Edit('edit',0,buffer().commit().'~'.v:count1.buffer().path(':')) + nnoremap C :exe Edit('edit',0,buffer().containing_commit()) + nnoremap cc :exe Edit('edit',0,buffer().containing_commit()) + nnoremap co :exe Edit('split',0,buffer().containing_commit()) + nnoremap cS :exe Edit('vsplit',0,buffer().containing_commit()) + nnoremap cO :exe Edit('tabedit',0,buffer().containing_commit()) + nnoremap cP :exe Edit('pedit',0,buffer().containing_commit()) + nnoremap . : =fnameescape(recall()) + endif +endfunction + +function! s:GF(mode) abort + try + let buffer = s:buffer() + let myhash = buffer.sha1() + if myhash ==# '' && getline(1) =~# '^\%(commit\|tag\) \w' + let myhash = matchstr(getline(1),'^\w\+ \zs\S\+') + endif + + if buffer.type('tree') + let showtree = (getline(1) =~# '^tree ' && getline(2) == "") + if showtree && line('.') == 1 + return "" + elseif showtree && line('.') > 2 + return s:Edit(a:mode,0,buffer.commit().':'.s:buffer().path().(buffer.path() =~# '^$\|/$' ? '' : '/').s:sub(getline('.'),'/$','')) + elseif getline('.') =~# '^\d\{6\} \l\{3,8\} \x\{40\}\t' + return s:Edit(a:mode,0,buffer.commit().':'.s:buffer().path().(buffer.path() =~# '^$\|/$' ? '' : '/').s:sub(matchstr(getline('.'),'\t\zs.*'),'/$','')) + endif + + elseif buffer.type('blob') + let ref = expand("") + try + let sha1 = buffer.repo().rev_parse(ref) + catch /^fugitive:/ + endtry + if exists('sha1') + return s:Edit(a:mode,0,ref) + endif + + else + + " Index + if getline('.') =~# '^\d\{6\} \x\{40\} \d\t' + let ref = matchstr(getline('.'),'\x\{40\}') + let file = ':'.s:sub(matchstr(getline('.'),'\d\t.*'),'\t',':') + return s:Edit(a:mode,0,file) + + elseif getline('.') =~# '^#\trenamed:.* -> ' + let file = '/'.matchstr(getline('.'),' -> \zs.*') + return s:Edit(a:mode,0,file) + elseif getline('.') =~# '^#\t[[:alpha:] ]\+: *.' + let file = '/'.matchstr(getline('.'),': *\zs.\{-\}\ze\%( ([^()[:digit:]]\+)\)\=$') + return s:Edit(a:mode,0,file) + elseif getline('.') =~# '^#\t.' + let file = '/'.matchstr(getline('.'),'#\t\zs.*') + return s:Edit(a:mode,0,file) + elseif getline('.') =~# ': needs merge$' + let file = '/'.matchstr(getline('.'),'.*\ze: needs merge$') + return s:Edit(a:mode,0,file).'|Gdiff' + + elseif getline('.') ==# '# Not currently on any branch.' + return s:Edit(a:mode,0,'HEAD') + elseif getline('.') =~# '^# On branch ' + let file = 'refs/heads/'.getline('.')[12:] + return s:Edit(a:mode,0,file) + elseif getline('.') =~# "^# Your branch .*'" + let file = matchstr(getline('.'),"'\\zs\\S\\+\\ze'") + return s:Edit(a:mode,0,file) + endif + + let showtree = (getline(1) =~# '^tree ' && getline(2) == "") + + if getline('.') =~# '^ref: ' + let ref = strpart(getline('.'),5) + + elseif getline('.') =~# '^commit \x\{40\}\>' + let ref = matchstr(getline('.'),'\x\{40\}') + return s:Edit(a:mode,0,ref) + + elseif getline('.') =~# '^parent \x\{40\}\>' + let ref = matchstr(getline('.'),'\x\{40\}') + let line = line('.') + let parent = 0 + while getline(line) =~# '^parent ' + let parent += 1 + let line -= 1 + endwhile + return s:Edit(a:mode,0,ref) + + elseif getline('.') =~ '^tree \x\{40\}$' + let ref = matchstr(getline('.'),'\x\{40\}') + if s:repo().rev_parse(myhash.':') == ref + let ref = myhash.':' + endif + return s:Edit(a:mode,0,ref) + + elseif getline('.') =~# '^object \x\{40\}$' && getline(line('.')+1) =~ '^type \%(commit\|tree\|blob\)$' + let ref = matchstr(getline('.'),'\x\{40\}') + let type = matchstr(getline(line('.')+1),'type \zs.*') + + elseif getline('.') =~# '^\l\{3,8\} '.myhash.'$' + return '' + + elseif getline('.') =~# '^\l\{3,8\} \x\{40\}\>' + let ref = matchstr(getline('.'),'\x\{40\}') + echoerr "warning: unknown context ".matchstr(getline('.'),'^\l*') + + elseif getline('.') =~# '^[+-]\{3\} [ab/]' + let ref = getline('.')[4:] + + elseif getline('.') =~# '^[+-]' && search('^@@ -\d\+,\d\+ +\d\+,','bnW') + let type = getline('.')[0] + let lnum = line('.') - 1 + let offset = -1 + while getline(lnum) !~# '^@@ -\d\+,\d\+ +\d\+,' + if getline(lnum) =~# '^[ '.type.']' + let offset += 1 + endif + let lnum -= 1 + endwhile + let offset += matchstr(getline(lnum), type.'\zs\d\+') + let ref = getline(search('^'.type.'\{3\} [ab]/','bnW'))[4:-1] + let dcmd = '+'.offset.'|if foldlevel(".")|foldopen!|endif' + let dref = '' + + elseif getline('.') =~# '^rename from ' + let ref = 'a/'.getline('.')[12:] + elseif getline('.') =~# '^rename to ' + let ref = 'b/'.getline('.')[10:] + + elseif getline('.') =~# '^diff --git \%(a/.*\|/dev/null\) \%(b/.*\|/dev/null\)' + let dref = matchstr(getline('.'),'\Cdiff --git \zs\%(a/.*\|/dev/null\)\ze \%(b/.*\|/dev/null\)') + let ref = matchstr(getline('.'),'\Cdiff --git \%(a/.*\|/dev/null\) \zs\%(b/.*\|/dev/null\)') + let dcmd = 'Gdiff' + + elseif getline('.') =~# '^index ' && getline(line('.')-1) =~# '^diff --git \%(a/.*\|/dev/null\) \%(b/.*\|/dev/null\)' + let line = getline(line('.')-1) + let dref = matchstr(line,'\Cdiff --git \zs\%(a/.*\|/dev/null\)\ze \%(b/.*\|/dev/null\)') + let ref = matchstr(line,'\Cdiff --git \%(a/.*\|/dev/null\) \zs\%(b/.*\|/dev/null\)') + let dcmd = 'Gdiff!' + + elseif line('$') == 1 && getline('.') =~ '^\x\{40\}$' + let ref = getline('.') + else + let ref = '' + endif + + if myhash ==# '' + let ref = s:sub(ref,'^a/','HEAD:') + let ref = s:sub(ref,'^b/',':0:') + if exists('dref') + let dref = s:sub(dref,'^a/','HEAD:') + endif + else + let ref = s:sub(ref,'^a/',myhash.'^:') + let ref = s:sub(ref,'^b/',myhash.':') + if exists('dref') + let dref = s:sub(dref,'^a/',myhash.'^:') + endif + endif + + if ref ==# '/dev/null' + " Empty blob + let ref = 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391' + endif + + if exists('dref') + return s:Edit(a:mode,0,ref) . '|'.dcmd.' '.s:fnameescape(dref) + elseif ref != "" + return s:Edit(a:mode,0,ref) + endif + + endif + return '' + catch /^fugitive:/ + return 'echoerr v:errmsg' + endtry +endfunction + +" }}}1 +" Statusline {{{1 + +function! s:repo_head_ref() dict abort + if !filereadable(self.dir('HEAD')) + return '' + endif + return readfile(self.dir('HEAD'))[0] +endfunction + +call s:add_methods('repo',['head_ref']) + +function! fugitive#statusline(...) abort + if !exists('b:git_dir') + return '' + endif + let status = '' + if s:buffer().commit() != '' + let status .= ':' . s:buffer().commit()[0:7] + endif + let status .= '('.fugitive#head(7).')' + if &statusline =~# '%[MRHWY]' && &statusline !~# '%[mrhwy]' + return ',GIT'.status + else + return '[Git'.status.']' + endif +endfunction + +function! fugitive#head(...) abort + if !exists('b:git_dir') + return '' + endif + + return s:repo().head(a:0 ? a:1 : 0) +endfunction + +" }}}1 +" Folding {{{1 + +function! fugitive#foldtext() abort + if &foldmethod !=# 'syntax' + return foldtext() + elseif getline(v:foldstart) =~# '^diff ' + let [add, remove] = [-1, -1] + let filename = '' + for lnum in range(v:foldstart, v:foldend) + if filename ==# '' && getline(lnum) =~# '^[+-]\{3\} [abciow12]/' + let filename = getline(lnum)[6:-1] + endif + if getline(lnum) =~# '^+' + let add += 1 + elseif getline(lnum) =~# '^-' + let remove += 1 + elseif getline(lnum) =~# '^Binary ' + let binary = 1 + endif + endfor + if filename ==# '' + let filename = matchstr(getline(v:foldstart), '^diff .\{-\} a/\zs.*\ze b/') + endif + if filename ==# '' + let filename = getline(v:foldstart)[5:-1] + endif + if exists('binary') + return 'Binary: '.filename + else + return (add<10&&remove<100?' ':'') . add . '+ ' . (remove<10&&add<100?' ':'') . remove . '- ' . filename + endif + elseif getline(v:foldstart) =~# '^# .*:$' + let lines = getline(v:foldstart, v:foldend) + call filter(lines, 'v:val =~# "^#\t"') + cal map(lines,'s:sub(v:val, "^#\t%(modified: +|renamed: +)=", "")') + cal map(lines,'s:sub(v:val, "^([[:alpha:] ]+): +(.*)", "\\2 (\\1)")') + return getline(v:foldstart).' '.join(lines, ', ') + endif + return foldtext() +endfunction + +augroup fugitive_foldtext + autocmd! + autocmd User Fugitive + \ if &filetype =~# '^git\%(commit\)\=$' && &foldtext ==# 'foldtext()' | + \ set foldtext=fugitive#foldtext() | + \ endif +augroup END + +" }}}1 + +" vim:set et sw=2: diff --git a/vim/.vim/bundle/vim-startify/.gitignore b/vim/.vim/bundle/vim-startify/.gitignore new file mode 100644 index 0000000..51e3cf0 --- /dev/null +++ b/vim/.vim/bundle/vim-startify/.gitignore @@ -0,0 +1,11 @@ +* + +!.gitignore +!CONTRIBUTING.md +!LICENSE +!README.md +!autoload/startify.vim +!doc/startify.txt +!plugin/startify.vim +!startify.png +!syntax/startify.vim diff --git a/vim/.vim/bundle/vim-startify/CONTRIBUTING.md b/vim/.vim/bundle/vim-startify/CONTRIBUTING.md new file mode 100644 index 0000000..a01753e --- /dev/null +++ b/vim/.vim/bundle/vim-startify/CONTRIBUTING.md @@ -0,0 +1,28 @@ +CONTRIBUTING +============ + +If you intend to contribute to this project, please keep some simple rules in +mind: + + - one commit per feature/fix + - the short commit message shouldn't be longer than 50 characters + - the short commit message should start with an uppercase character + - use the imperative for the short commit message + - don't finish the short commit message with a '.' + - don't use github-specific syntax to close an issue (I'll do that, when + merging into master) + - it's always a good idea to have a look at 'git log' to get an idea how to + format one's own commits + - if you have questions about a certain patch or feature requests, just open + a Github issue + +Examples +-------- + +``` +Bad: "fixed loop to start from 0 instead of 1" +Good: "Avoid off-by-one issue in skiplist loop" + +Bad: "fixed typo" +Good: "Docs: typo" +``` diff --git a/vim/.vim/bundle/vim-startify/LICENSE b/vim/.vim/bundle/vim-startify/LICENSE new file mode 100644 index 0000000..fb241d2 --- /dev/null +++ b/vim/.vim/bundle/vim-startify/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2013 Marco Hinz + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vim/.vim/bundle/vim-startify/README.md b/vim/.vim/bundle/vim-startify/README.md new file mode 100644 index 0000000..7b26c72 --- /dev/null +++ b/vim/.vim/bundle/vim-startify/README.md @@ -0,0 +1,173 @@ +[![Stories in Ready](https://badge.waffle.io/mhinz/vim-startify.png?label=ready&title=Ready)](https://waffle.io/mhinz/vim-startify) + +![Example:startify in action](https://github.com/mhinz/vim-startify/raw/master/startify.png) + +This is it. A start screen for Vim. _( all features enabled - freely customizable )_ + +What does it provide? +--------------------- + +It does 3 things that will be explained in detail further below: + +* it shows lists of files and directories +* eased session handling +* powerful menu entry handling + +#### 1) It shows things on start! + +If you start Vim without giving any filenames or piping text to it, Startify +will show a pretty start screen that shows a configurable list of files or +directories: + +--- + +__Custom header__ ( _empty by default_ ): + +How about some ASCII art action? + +--- + +__Files from directory__ ( _enabled by default_ ): + +This lists all files from the current directory sorted by modification time. + +--- + +__Recently used files__ ( _enabled by default_ ): + +This uses the viminfo file to get a list of most recently used files. The list +can also be filtered. + +--- + +__Sessions__ ( _enabled by default_ ): + +This will list all your sessions from a certain directory. + +--- + +__Bookmarks__ ( _empty by default_ ): + +Additionally, you can define bookmarks, thus entries for files that always +should be available on the start screen. + +--- + +__Custom footer__ ( _empty by default_ ): + +Same as the custom header.. but at the bottom. + +--- + +See `:h startify-options` for more information. + +#### 2) Easy session handling + +_Please read and understand `:help 'sessionoptions'` if you work with sessions._ + +Essentially there are two kinds of supported workflows for handling sessions +that will be shown here. + +--- + +__a)__ The Startify way. + +The handling of loading, saving and deleting sessions is eased by always +working with one and the same directory. These commands are used for +convenience: + + :SLoad load a session + :SSave save a session + :SDelete delete a session + +_See `:h startify-commands` for more information._ + +The advantage of always using the same directory is that Startify can show you a +list of all your sessions that are scattered around the system. + +--- + +__b)__ The old way. + +The old way means using `:mksession` to save a `Session.vim` file to the current +directory. Imagine a project folder with a Session.vim at its root directory. +This way makes it very portable. + +When Vim gets started and the file Session.vim is found in the current +directory, it will be shown at the top of all lists as entry `[0]` as a +shortcut. + +If you bookmark a directory (project folder, anyone?) that contains a +Session.vim, and you access that directory via Startify, that session will be +loaded automatically. + +--- + +Optionally, there is even support for persistent sessions. Thus you load a +session via Startify, add some buffers, remove some buffers, change the window +layout, .. and when you finish and exit Vim, the session will be saved +automatically. This works for both ways of handling sessions. + +_Read `:help startify-options` to learn more about how to configure session +handling to your liking._ + +#### 3) Powerful menu handling + +You can either navigate the menu by using the usual suspects (`j`, `G`, `}` +etc.) and hit `` or just key in whatever is written between the square +brackets on that line. You can even double-click anywhere on the line. + +Moreover, you can open several files at one go! Navigate to an entry and hit +either `b` (open in same window), `s` (open in split), `v` (open in vertical +split) or `t` (open in tab) for marking it. You can mark several entries and +also mix different markers. Afterwards execute all the markers in the order they +were given via ``. + +In case you don't want to open a file, there is also `e` for creating an empty +buffer, `i` for creating an empty buffer and jumping into insert mode and `q` +for quitting. + +When one or more files were opened by Startify, it will close automatically. You +can always reopen the screen via `:Startify`. + +Author & Feedback +----------------- + +If you like any of my plugins, please star it on github. That is a great way of +getting feedback. Same for issues reports or feature requests. + +--- + +Marco Hinz _aka_ mhinz _aka_ mhi^ _aka_ mhi + +Mail: `` + +Twitter: [@_mhinz_](https://twitter.com/_mhinz_) + +Stackoverflow: [mhinz](http://stackoverflow.com/users/1606959/mhinz) + +--- + +Thank you for flying mhi airlines. Get your Vim on! + +Installation & Documentation +---------------------------- + +If you have no preferred installation method, I suggest using tpope's +[pathogen](https://github.com/tpope/vim-pathogen). Afterwards installing +vim-startify is as easy as pie: + + $ git clone https://github.com/mhinz/vim-startify ~/.vim/bundle/vim-startify + $ vim + +It works without any configuration, but you might want to look into the +documentation for further customization: + + :Helptags " rebuilding tags files + :h startify + :h startify-faq + +License +------- + +MIT license. Copyright (c) 2013 Marco Hinz. diff --git a/vim/.vim/bundle/vim-startify/startify.png b/vim/.vim/bundle/vim-startify/startify.png new file mode 100644 index 0000000..f103a40 Binary files /dev/null and b/vim/.vim/bundle/vim-startify/startify.png differ diff --git a/vim/.vim/colors/monokai.vim b/vim/.vim/colors/monokai.vim new file mode 100644 index 0000000..6fbadfa --- /dev/null +++ b/vim/.vim/colors/monokai.vim @@ -0,0 +1,107 @@ +" Vim color file +" Converted from Textmate theme Monokai using Coloration v0.3.2 (http://github.com/sickill/coloration) + +set background=dark +highlight clear + +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "monokai" + +hi Cursor ctermfg=235 ctermbg=231 cterm=NONE guifg=#272822 guibg=#f8f8f0 gui=NONE +hi Visual ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#49483e gui=NONE +hi CursorLine ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE +hi CursorColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE +hi ColorColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE +hi LineNr ctermfg=102 ctermbg=237 cterm=NONE guifg=#90908a guibg=#3c3d37 gui=NONE +hi VertSplit ctermfg=241 ctermbg=241 cterm=NONE guifg=#64645e guibg=#64645e gui=NONE +hi MatchParen ctermfg=197 ctermbg=NONE cterm=underline guifg=#f92672 guibg=NONE gui=underline +hi StatusLine ctermfg=231 ctermbg=241 cterm=bold guifg=#f8f8f2 guibg=#64645e gui=bold +hi StatusLineNC ctermfg=231 ctermbg=241 cterm=NONE guifg=#f8f8f2 guibg=#64645e gui=NONE +hi Pmenu ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi PmenuSel ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#49483e gui=NONE +hi IncSearch ctermfg=235 ctermbg=186 cterm=NONE guifg=#272822 guibg=#e6db74 gui=NONE +hi Search ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline +hi Directory ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE +hi Folded ctermfg=242 ctermbg=235 cterm=NONE guifg=#75715e guibg=#272822 gui=NONE + +hi Normal ctermfg=231 ctermbg=235 cterm=NONE guifg=#f8f8f2 guibg=#272822 gui=NONE +hi Boolean ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE +hi Character ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE +hi Comment ctermfg=242 ctermbg=NONE cterm=NONE guifg=#75715e guibg=NONE gui=NONE +hi Conditional ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE +hi Constant ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi Define ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE +hi DiffAdd ctermfg=231 ctermbg=64 cterm=bold guifg=#f8f8f2 guibg=#46830c gui=bold +hi DiffDelete ctermfg=88 ctermbg=NONE cterm=NONE guifg=#8b0807 guibg=NONE gui=NONE +hi DiffChange ctermfg=231 ctermbg=23 cterm=NONE guifg=#f8f8f2 guibg=#243955 gui=NONE +hi DiffText ctermfg=231 ctermbg=24 cterm=bold guifg=#f8f8f2 guibg=#204a87 gui=bold +hi ErrorMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE +hi WarningMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE +hi Float ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE +hi Function ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE +hi Identifier ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic +hi Keyword ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE +hi Label ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE +hi NonText ctermfg=59 ctermbg=236 cterm=NONE guifg=#49483e guibg=#31322c gui=NONE +hi Number ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE +hi Operator ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE +hi PreProc ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE +hi Special ctermfg=231 ctermbg=NONE cterm=NONE guifg=#f8f8f2 guibg=NONE gui=NONE +hi SpecialKey ctermfg=59 ctermbg=237 cterm=NONE guifg=#49483e guibg=#3c3d37 gui=NONE +hi Statement ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE +hi StorageClass ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic +hi String ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE +hi Tag ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE +hi Title ctermfg=231 ctermbg=NONE cterm=bold guifg=#f8f8f2 guibg=NONE gui=bold +hi Todo ctermfg=95 ctermbg=NONE cterm=inverse,bold guifg=#75715e guibg=NONE gui=inverse,bold +hi Type ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline +hi rubyClass ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE +hi rubyFunction ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE +hi rubyInterpolationDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi rubySymbol ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE +hi rubyConstant ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic +hi rubyStringDelimiter ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE +hi rubyBlockParameter ctermfg=208 ctermbg=NONE cterm=NONE guifg=#fd971f guibg=NONE gui=italic +hi rubyInstanceVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi rubyInclude ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE +hi rubyGlobalVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi rubyRegexp ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE +hi rubyRegexpDelimiter ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE +hi rubyEscape ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE +hi rubyControl ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE +hi rubyClassVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi rubyOperator ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE +hi rubyException ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE +hi rubyPseudoVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi rubyRailsUserClass ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic +hi rubyRailsARAssociationMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE +hi rubyRailsARMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE +hi rubyRailsRenderMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE +hi rubyRailsMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE +hi erubyDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi erubyComment ctermfg=95 ctermbg=NONE cterm=NONE guifg=#75715e guibg=NONE gui=NONE +hi erubyRailsMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE +hi htmlTag ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi htmlEndTag ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi htmlTagName ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi htmlArg ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi htmlSpecialChar ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE +hi javaScriptFunction ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic +hi javaScriptRailsFunction ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE +hi javaScriptBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi yamlKey ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE +hi yamlAnchor ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi yamlAlias ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi yamlDocumentHeader ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE +hi cssURL ctermfg=208 ctermbg=NONE cterm=NONE guifg=#fd971f guibg=NONE gui=italic +hi cssFunctionName ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE +hi cssColor ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE +hi cssPseudoClassId ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE +hi cssClassName ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE +hi cssValueLength ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE +hi cssCommonAttr ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE +hi cssBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE diff --git a/vim/.vimrc b/vim/.vimrc new file mode 100644 index 0000000..1617565 --- /dev/null +++ b/vim/.vimrc @@ -0,0 +1,46 @@ +"█▓▒░ autoload +execute pathogen#infect() + +let g:airline#extensions#tabline#enabled = 1 +let g:airline_powerline_fonts = 0 +let g:airline_theme = 'tomorrow' +let g:airline_enable_branch = 1 +let g:airline_enable_syntastic = 1 + +if !exists('g:airline_symbols') + let g:airline_symbols = {} +endif +let g:airline_left_sep = '▒' +let g:airline_left_alt_sep = '▒' +let g:airline_right_sep = '▒' +let g:airline_right_alt_sep = '▒' +let g:airline_symbols.branch = '⎇' +let g:airline_symbols.linenr = '░' +let g:airline_symbols.linenr = '░' +let g:airline_symbols.linenr = '░' +let g:airline_symbols.branch = '⎇' +let g:airline_symbols.paste = 'ρ' +let g:airline_symbols.paste = 'Þ' +let g:airline_symbols.paste = '∥' +let g:airline_symbols.whitespace = '░' +let g:airline_symbols.readonly = 'x' + +let g:startify_custom_header = [ + \ '', + \ ' ██ ██ ████ ██ ', + \ ' ░██ ░██ ░██░ ░░ ', + \ ' █████ ░██ ██ ██ ██████ ██████ ██████ ██ ██ ██ ██████████ ', + \ ' ██░░░██ ░██░██ ░██░░░██░ ██░░░░██░░░██░ ░██ ░██░██░░██░░██░░██', + \ '░██ ░░ ░██░██ ░██ ░██ ░██ ░██ ░██ ░░██ ░██ ░██ ░██ ░██ ░██', + \ '░██ ██ ░██░██ ░██ ░██ ░██ ░██ ░██ ░░████ ░██ ░██ ░██ ░██', + \ '░░█████ ███░░██████ ░░██ ░░██████ ░██ ░░██ ░██ ███ ░██ ░██', + \ ' ░░░░░ ░░░ ░░░░░░ ░░ ░░░░░░ ░░ ░░ ░░ ░░░ ░░ ░░ ', + \ '', + \ ] + +set laststatus=2 +set lazyredraw + +syntax on +colorscheme monokai +filetype plugin indent on diff --git a/zsh-root/.zsh/colored-man-pages.zsh b/zsh-root/.zsh/colored-man-pages.zsh new file mode 100644 index 0000000..6854d97 --- /dev/null +++ b/zsh-root/.zsh/colored-man-pages.zsh @@ -0,0 +1,8 @@ +#█▓▒░ source: https://github.com/imkira/dotfiles/blob/master/.zsh/colored-man-pages.zsh +export LESS_TERMCAP_mb=$'\E[01;31m' +export LESS_TERMCAP_md=$'\E[01;38;5;74m' +export LESS_TERMCAP_me=$'\E[0m' +export LESS_TERMCAP_se=$'\E[0m' +export LESS_TERMCAP_so=$'\E[38;33;246m' +export LESS_TERMCAP_ue=$'\E[0m' +export LESS_TERMCAP_us=$'\E[04;38;5;146m' diff --git a/zsh-root/.zsh/functions/chpwd_update_git_vars b/zsh-root/.zsh/functions/chpwd_update_git_vars new file mode 100644 index 0000000..2cc7ffa --- /dev/null +++ b/zsh-root/.zsh/functions/chpwd_update_git_vars @@ -0,0 +1 @@ +update_current_git_vars \ No newline at end of file diff --git a/zsh-root/.zsh/functions/precmd_update_git_vars b/zsh-root/.zsh/functions/precmd_update_git_vars new file mode 100644 index 0000000..7fa32df --- /dev/null +++ b/zsh-root/.zsh/functions/precmd_update_git_vars @@ -0,0 +1,4 @@ +if [ -n "$__EXECUTED_GIT_COMMAND" ]; then + update_current_git_vars + unset __EXECUTED_GIT_COMMAND +fi \ No newline at end of file diff --git a/zsh-root/.zsh/functions/preexec_update_git_vars b/zsh-root/.zsh/functions/preexec_update_git_vars new file mode 100644 index 0000000..998de21 --- /dev/null +++ b/zsh-root/.zsh/functions/preexec_update_git_vars @@ -0,0 +1,5 @@ +case "$1" in + git*) + __EXECUTED_GIT_COMMAND=1 + ;; +esac \ No newline at end of file diff --git a/zsh-root/.zsh/functions/prompt_git_info b/zsh-root/.zsh/functions/prompt_git_info new file mode 100644 index 0000000..d492ac8 --- /dev/null +++ b/zsh-root/.zsh/functions/prompt_git_info @@ -0,0 +1,21 @@ +if [ -n "$__CURRENT_GIT_BRANCH" ]; then + local s="%F{cyan}-[%F{white}" + s+="$__CURRENT_GIT_BRANCH" + case "$__CURRENT_GIT_BRANCH_STATUS" in + ahead) + s+="↑" + ;; + diverged) + s+="↕" + ;; + behind) + s+="↓" + ;; + esac + if [ -n "$__CURRENT_GIT_BRANCH_IS_DIRTY" ]; then + s+="⚡" + fi + s+="%F{cyan}]" + + printf "%s%s" $s +fi \ No newline at end of file diff --git a/zsh-root/.zsh/functions/update_current_git_vars b/zsh-root/.zsh/functions/update_current_git_vars new file mode 100644 index 0000000..716d984 --- /dev/null +++ b/zsh-root/.zsh/functions/update_current_git_vars @@ -0,0 +1,31 @@ +unset __CURRENT_GIT_BRANCH +unset __CURRENT_GIT_BRANCH_STATUS +unset __CURRENT_GIT_BRANCH_IS_DIRTY + +local st="$(git status 2>/dev/null)" +local st2="$(git log -1 --pretty=%h 2>/dev/null)" + +if [[ -n "$st" ]]; then + local -a arr + arr=(${(f)st}) + + if [[ $arr[1] =~ 'Not currently on any branch.' ]]; then + __CURRENT_GIT_BRANCH="$st2" + else + __CURRENT_GIT_BRANCH="${arr[1][(w)4]}"; + fi + + if [[ $arr[2] =~ 'Your branch is' ]]; then + if [[ $arr[2] =~ 'ahead' ]]; then + __CURRENT_GIT_BRANCH_STATUS='ahead' + elif [[ $arr[2] =~ 'diverged' ]]; then + __CURRENT_GIT_BRANCH_STATUS='diverged' + else + __CURRENT_GIT_BRANCH_STATUS='behind' + fi + fi + + if [[ ! $st =~ 'nothing to commit' ]]; then + __CURRENT_GIT_BRANCH_IS_DIRTY='1' + fi +fi \ No newline at end of file diff --git a/zsh-root/.zshrc b/zsh-root/.zshrc new file mode 100644 index 0000000..21e1c71 --- /dev/null +++ b/zsh-root/.zshrc @@ -0,0 +1,168 @@ +# ██ +# ░██ +# ██████ ██████░██ ██████ █████ +# ░░░░██ ██░░░░ ░██████ ░░██░░█ ██░░░██ +# ██ ░░█████ ░██░░░██ ░██ ░ ░██ ░░ +# ██ ░░░░░██░██ ░██ ░██ ░██ ██ +# ██████ ██████ ░██ ░██░███ ░░█████ +# ░░░░░░ ░░░░░░ ░░ ░░ ░░░ ░░░░░ +# +# ▓▓▓▓▓▓▓▓▓▓ +# ░▓ author ▓ xero +# ░▓ code ▓ http://code.xero.nu/dotfiles +# ░▓ mirror ▓ http://git.io/.files +# ░▓▓▓▓▓▓▓▓▓▓ +# ░░░░░░░░░░ +# +# █▓▒░ timestamps +# HIST_STAMPS="mm/dd/yyyy" + +#█▓▒░ exports +export PATH=$HOME/bin:/usr/local/bin:$PATH +# export MANPATH="/usr/local/man:$MANPATH" + +#█▓▒░ preferred editor for local and remote sessions +if [[ -n $SSH_CONNECTION ]]; then + export EDITOR='vim' +else + export EDITOR='vim' +fi + +#█▓▒░ aliases +alias ls='ls --color=auto' +alias lsla="ls -la --color=auto" +alias "cd.."="cd ../" +alias rock="ncmpcpp" +alias mixer="alsamixer" +alias checkrootkits='sudo rkhunter --update; sudo rkhunter --propupd; sudo rkhunter --check' +alias genplaylist="cd ~/music;find . -name '*.mp3' -o -name '*.flac'|sed -e 's%^./%%g' > ~/.config/mpd/playlists/all.m3u;mpd ~/.config/mpd/mpd.conf;mpc clear;mpc load all.m3u;mpc update" +alias matrix="cmatrix -b -s" +alias pipes="bash ~/code/fun/pipes" +alias pipesx="bash ~/code/fun/pipesx" +alias rain="bash ~/code/fun/rain" +alias screenfetch="~/code/fun/screenfetch" +alias hashcompare='bash ~/code/sys/hash-compare ' +alias tempwatch="while :; do sensors; sleep 1 && clear; done;" +alias term='urxvtc -hold -e ' #used for awesomewm run menu +alias fixcursor='xsetroot -cursor_name left_ptr' +dirlist() { + ls -la "$1" && echo -e '' && tree -a "$1" +} +#█▓▒░ debian aliases +#alias sai="sudo apt-get install" +#alias apachereload='sudo /etc/init.d/apache2 restart' +#alias disks="palimpsest" +#alias invert="xcalib -i -a" +#█▓▒░ arch aliases +alias pacman="sudo pacman" +alias apachereload='sudo systemctl restart httpd.service' +alias disks="ncdu" +#█▓▒░ work aliases +alias workscreen='xrandr --output HDMI1 --left-of LVDS1 --mode 1366x768' + +#█▓▒░ ssh +export SSH_KEY_PATH="~/.ssh/id_rsa" + +#█▓▒░ keybindings +typeset -A key + +key[Home]=${terminfo[khome]} +key[End]=${terminfo[kend]} +key[Insert]=${terminfo[kich1]} +key[Delete]=${terminfo[kdch1]} +key[Up]=${terminfo[kcuu1]} +key[Down]=${terminfo[kcud1]} +key[Left]=${terminfo[kcub1]} +key[Right]=${terminfo[kcuf1]} +key[PageUp]=${terminfo[kpp]} +key[PageDown]=${terminfo[knp]} + +[[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line +[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line +[[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode +[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char +[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history +[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-history +[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char +[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char +[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" beginning-of-buffer-or-history +[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" end-of-buffer-or-history + +if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then + function zle-line-init () { + printf '%s' "${terminfo[smkx]}" + } + function zle-line-finish () { + printf '%s' "${terminfo[rmkx]}" + } + zle -N zle-line-init + zle -N zle-line-finish +fi + + +#█▓▒░ autocompletion systems +autoload -Uz compinit +compinit + +zstyle ':completion:*' auto-description 'specify: %d' +zstyle ':completion:*' completer _expand _complete _correct _approximate +zstyle ':completion:*' format 'Completing %d' +zstyle ':completion:*' group-name '' +zstyle ':completion:*' menu select=2 eval "$(dircolors -b)" +zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} +zstyle ':completion:*' list-colors '' +zstyle ':completion:*' list-prompt %SAt %p: hit TAB for more, or the character to insert%s +zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*' +zstyle ':completion:*' menu select=long +zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s +zstyle ':completion:*' use-compctl false +zstyle ':completion:*' verbose true + +zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' +zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' + +#█▓▒░ allow functions in the prompt +setopt PROMPT_SUBST + +#█▓▒░ autoload zsh functions +fpath=(~/.zsh/functions $fpath) +autoload -U ~/.zsh/functions/*(:t) + +#█▓▒░ enable auto-execution of functions +typeset -ga preexec_functions +typeset -ga precmd_functions +typeset -ga chpwd_functions + +#█▓▒░ append git functions needed for prompt. +preexec_functions+='preexec_update_git_vars' +precmd_functions+='precmd_update_git_vars' +chpwd_functions+='chpwd_update_git_vars' + +#█▓▒░ load configs +for config_file (~/.zsh/*.zsh) source $config_file + +#█▓▒░ history +HISTFILE=~/.zhistory +setopt APPEND_HISTORY +HISTSIZE=1200 +SAVEHIST=1000 +setopt HIST_EXPIRE_DUPS_FIRST +setopt EXTENDED_HISTORY +setopt SHARE_HISTORY + +#█▓▒░ custom prompts + +#█▓▒░dual line +PROMPT="%F{cyan}┌[%F{white}%n@%M%F{cyan}]─[%F{red}%~%F{cyan}] +%F{cyan}└─ %F{white}" +#RPROMPT="%F{cyan}[%F{white}%n@%M%F{cyan}]" + +#█▓▒░ ninja +PROMPT="%F{white} ▟▙ %F{red}%~%F{white} +▟▒%F{blue}░░░░░░░%F{white}▜▙▜████████████████████████████████▛ +▜▒%F{blue}░░░░░░░%F{white}▟▛▟▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▛ + ▜▛ + %F{white}" + +#█▓▒░ minial +PROMPT='%F{red}[%F{white}%~%F{red}]$(prompt_git_info)── -%f ' \ No newline at end of file diff --git a/zsh/.zsh/colored-man-pages.zsh b/zsh/.zsh/colored-man-pages.zsh new file mode 100644 index 0000000..6854d97 --- /dev/null +++ b/zsh/.zsh/colored-man-pages.zsh @@ -0,0 +1,8 @@ +#█▓▒░ source: https://github.com/imkira/dotfiles/blob/master/.zsh/colored-man-pages.zsh +export LESS_TERMCAP_mb=$'\E[01;31m' +export LESS_TERMCAP_md=$'\E[01;38;5;74m' +export LESS_TERMCAP_me=$'\E[0m' +export LESS_TERMCAP_se=$'\E[0m' +export LESS_TERMCAP_so=$'\E[38;33;246m' +export LESS_TERMCAP_ue=$'\E[0m' +export LESS_TERMCAP_us=$'\E[04;38;5;146m' diff --git a/zsh/.zsh/functions/chpwd_update_git_vars b/zsh/.zsh/functions/chpwd_update_git_vars new file mode 100644 index 0000000..2cc7ffa --- /dev/null +++ b/zsh/.zsh/functions/chpwd_update_git_vars @@ -0,0 +1 @@ +update_current_git_vars \ No newline at end of file diff --git a/zsh/.zsh/functions/precmd_update_git_vars b/zsh/.zsh/functions/precmd_update_git_vars new file mode 100644 index 0000000..7fa32df --- /dev/null +++ b/zsh/.zsh/functions/precmd_update_git_vars @@ -0,0 +1,4 @@ +if [ -n "$__EXECUTED_GIT_COMMAND" ]; then + update_current_git_vars + unset __EXECUTED_GIT_COMMAND +fi \ No newline at end of file diff --git a/zsh/.zsh/functions/preexec_update_git_vars b/zsh/.zsh/functions/preexec_update_git_vars new file mode 100644 index 0000000..998de21 --- /dev/null +++ b/zsh/.zsh/functions/preexec_update_git_vars @@ -0,0 +1,5 @@ +case "$1" in + git*) + __EXECUTED_GIT_COMMAND=1 + ;; +esac \ No newline at end of file diff --git a/zsh/.zsh/functions/prompt_git_info b/zsh/.zsh/functions/prompt_git_info new file mode 100644 index 0000000..d492ac8 --- /dev/null +++ b/zsh/.zsh/functions/prompt_git_info @@ -0,0 +1,21 @@ +if [ -n "$__CURRENT_GIT_BRANCH" ]; then + local s="%F{cyan}-[%F{white}" + s+="$__CURRENT_GIT_BRANCH" + case "$__CURRENT_GIT_BRANCH_STATUS" in + ahead) + s+="↑" + ;; + diverged) + s+="↕" + ;; + behind) + s+="↓" + ;; + esac + if [ -n "$__CURRENT_GIT_BRANCH_IS_DIRTY" ]; then + s+="⚡" + fi + s+="%F{cyan}]" + + printf "%s%s" $s +fi \ No newline at end of file diff --git a/zsh/.zsh/functions/update_current_git_vars b/zsh/.zsh/functions/update_current_git_vars new file mode 100644 index 0000000..716d984 --- /dev/null +++ b/zsh/.zsh/functions/update_current_git_vars @@ -0,0 +1,31 @@ +unset __CURRENT_GIT_BRANCH +unset __CURRENT_GIT_BRANCH_STATUS +unset __CURRENT_GIT_BRANCH_IS_DIRTY + +local st="$(git status 2>/dev/null)" +local st2="$(git log -1 --pretty=%h 2>/dev/null)" + +if [[ -n "$st" ]]; then + local -a arr + arr=(${(f)st}) + + if [[ $arr[1] =~ 'Not currently on any branch.' ]]; then + __CURRENT_GIT_BRANCH="$st2" + else + __CURRENT_GIT_BRANCH="${arr[1][(w)4]}"; + fi + + if [[ $arr[2] =~ 'Your branch is' ]]; then + if [[ $arr[2] =~ 'ahead' ]]; then + __CURRENT_GIT_BRANCH_STATUS='ahead' + elif [[ $arr[2] =~ 'diverged' ]]; then + __CURRENT_GIT_BRANCH_STATUS='diverged' + else + __CURRENT_GIT_BRANCH_STATUS='behind' + fi + fi + + if [[ ! $st =~ 'nothing to commit' ]]; then + __CURRENT_GIT_BRANCH_IS_DIRTY='1' + fi +fi \ No newline at end of file diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..f0a834c --- /dev/null +++ b/zsh/.zshrc @@ -0,0 +1,168 @@ +# ██ +# ░██ +# ██████ ██████░██ ██████ █████ +# ░░░░██ ██░░░░ ░██████ ░░██░░█ ██░░░██ +# ██ ░░█████ ░██░░░██ ░██ ░ ░██ ░░ +# ██ ░░░░░██░██ ░██ ░██ ░██ ██ +# ██████ ██████ ░██ ░██░███ ░░█████ +# ░░░░░░ ░░░░░░ ░░ ░░ ░░░ ░░░░░ +# +# ▓▓▓▓▓▓▓▓▓▓ +# ░▓ author ▓ xero +# ░▓ code ▓ http://code.xero.nu/dotfiles +# ░▓ mirror ▓ http://git.io/.files +# ░▓▓▓▓▓▓▓▓▓▓ +# ░░░░░░░░░░ +# +# █▓▒░ timestamps +# HIST_STAMPS="mm/dd/yyyy" + +#█▓▒░ exports +export PATH=$HOME/bin:/usr/local/bin:$PATH +# export MANPATH="/usr/local/man:$MANPATH" + +#█▓▒░ preferred editor for local and remote sessions +if [[ -n $SSH_CONNECTION ]]; then + export EDITOR='vim' +else + export EDITOR='vim' +fi + +#█▓▒░ aliases +alias ls='ls --color=auto' +alias lsla="ls -la --color=auto" +alias "cd.."="cd ../" +alias rock="ncmpcpp" +alias mixer="alsamixer" +alias checkrootkits='sudo rkhunter --update; sudo rkhunter --propupd; sudo rkhunter --check' +alias genplaylist="cd ~/music;find . -name '*.mp3' -o -name '*.flac'|sed -e 's%^./%%g' > ~/.config/mpd/playlists/all.m3u;mpd ~/.config/mpd/mpd.conf;mpc clear;mpc load all.m3u;mpc update" +alias matrix="cmatrix -b -s" +alias pipes="bash ~/code/fun/pipes" +alias pipesx="bash ~/code/fun/pipesx" +alias rain="bash ~/code/fun/rain" +alias screenfetch="~/code/fun/screenfetch" +alias hashcompare='bash ~/code/sys/hash-compare ' +alias tempwatch="while :; do sensors; sleep 1 && clear; done;" +alias term='urxvtc -hold -e ' #used for awesomewm run menu +alias fixcursor='xsetroot -cursor_name left_ptr' +dirlist() { + ls -la "$1" && echo -e '' && tree -a "$1" +} +#█▓▒░ debian aliases +#alias sai="sudo apt-get install" +#alias apachereload='sudo /etc/init.d/apache2 restart' +#alias disks="palimpsest" +#alias invert="xcalib -i -a" +#█▓▒░ arch aliases +alias pacman="sudo pacman" +alias apachereload='sudo systemctl restart httpd.service' +alias disks="ncdu" +#█▓▒░ work aliases +alias workscreen='xrandr --output HDMI1 --left-of LVDS1 --mode 1366x768' + +#█▓▒░ ssh +export SSH_KEY_PATH="~/.ssh/id_rsa" + +#█▓▒░ keybindings +typeset -A key + +key[Home]=${terminfo[khome]} +key[End]=${terminfo[kend]} +key[Insert]=${terminfo[kich1]} +key[Delete]=${terminfo[kdch1]} +key[Up]=${terminfo[kcuu1]} +key[Down]=${terminfo[kcud1]} +key[Left]=${terminfo[kcub1]} +key[Right]=${terminfo[kcuf1]} +key[PageUp]=${terminfo[kpp]} +key[PageDown]=${terminfo[knp]} + +[[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line +[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line +[[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode +[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char +[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history +[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-history +[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char +[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char +[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" beginning-of-buffer-or-history +[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" end-of-buffer-or-history + +if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then + function zle-line-init () { + printf '%s' "${terminfo[smkx]}" + } + function zle-line-finish () { + printf '%s' "${terminfo[rmkx]}" + } + zle -N zle-line-init + zle -N zle-line-finish +fi + + +#█▓▒░ autocompletion systems +autoload -Uz compinit +compinit + +zstyle ':completion:*' auto-description 'specify: %d' +zstyle ':completion:*' completer _expand _complete _correct _approximate +zstyle ':completion:*' format 'Completing %d' +zstyle ':completion:*' group-name '' +zstyle ':completion:*' menu select=2 eval "$(dircolors -b)" +zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} +zstyle ':completion:*' list-colors '' +zstyle ':completion:*' list-prompt %SAt %p: hit TAB for more, or the character to insert%s +zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*' +zstyle ':completion:*' menu select=long +zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s +zstyle ':completion:*' use-compctl false +zstyle ':completion:*' verbose true + +zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' +zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' + +#█▓▒░ allow functions in the prompt +setopt PROMPT_SUBST + +#█▓▒░ autoload zsh functions +fpath=(~/.zsh/functions $fpath) +autoload -U ~/.zsh/functions/*(:t) + +#█▓▒░ enable auto-execution of functions +typeset -ga preexec_functions +typeset -ga precmd_functions +typeset -ga chpwd_functions + +#█▓▒░ append git functions needed for prompt. +preexec_functions+='preexec_update_git_vars' +precmd_functions+='precmd_update_git_vars' +chpwd_functions+='chpwd_update_git_vars' + +#█▓▒░ load configs +for config_file (~/.zsh/*.zsh) source $config_file + +#█▓▒░ history +HISTFILE=~/.zhistory +setopt APPEND_HISTORY +HISTSIZE=1200 +SAVEHIST=1000 +setopt HIST_EXPIRE_DUPS_FIRST +setopt EXTENDED_HISTORY +setopt SHARE_HISTORY + +#█▓▒░ custom prompts + +#█▓▒░dual line +PROMPT="%F{cyan}┌[%F{white}%n@%M%F{cyan}]─[%F{red}%~%F{cyan}] +%F{cyan}└─ %F{white}" +#RPROMPT="%F{cyan}[%F{white}%n@%M%F{cyan}]" + +#█▓▒░ ninja +PROMPT="%F{white} ▟▙ %F{red}%~%F{white} +▟▒%F{blue}░░░░░░░%F{white}▜▙▜████████████████████████████████▛ +▜▒%F{blue}░░░░░░░%F{white}▟▛▟▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▛ + ▜▛ + %F{white}" + +#█▓▒░ minial +PROMPT='%F{cyan}[%F{white}%~%F{cyan}]$(prompt_git_info)── -%f ' -- cgit v1.2.1