├── README.md ├── powerline.zsh-theme ├── .gitignore ├── fira.sh ├── .gitconfig ├── idea64.vmoptions ├── brews.conf ├── daily_stuff.sh ├── adben-new.zsh-theme ├── .Xdefaults ├── userChrome.css ├── .zshenv ├── adben.zsh-theme ├── netbeans.conf ├── .zshrc ├── Custom.css ├── Custom_flymake.css ├── VPN-Unified-Cloud-Formation.json ├── sonar.properties ├── .bashrc ├── dk-tomorrow-night.icls ├── .spacemacs └── gnome-classic.css /README.md: -------------------------------------------------------------------------------- 1 | # config 2 | 3 | The config files for most of the tools I use 4 | -------------------------------------------------------------------------------- /powerline.zsh-theme: -------------------------------------------------------------------------------- 1 | /Users/abenedetti/git/oh-my-zsh-powerline-theme/powerline.zsh-theme -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .classpath 2 | .idea 3 | .project 4 | .settings/ 5 | *.iml 6 | target/ 7 | atlassian-ide-plugin.xml 8 | -------------------------------------------------------------------------------- /fira.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ## cf from http://programster.blogspot.com/2014/05/ubuntu-14-desktop-install-fira-sans-and.html 4 | 5 | cd /tmp 6 | 7 | # install unzip just in case the user doesn't already have it. 8 | if [[ `uname` = Linux ]]; then 9 | sudo apt-get install unzip -y 10 | wget "https://carrois.com/downloads/Fira/Fira_Sans_4_2.zip" 11 | wget "https://carrois.com/downloads/Fira/Fira_Code_3_2.zip" 12 | wget "https://carrois.com/downloads/Fira/Fira_Mono_3_2.zip" 13 | unzip Fira_Sans_4_2.zip 14 | unzip Fira_Mono_3_2.zip 15 | unzip Fira_Code_3_2.zip 16 | sudo mkdir -p /usr/share/fonts/truetype/Fira 17 | sudo mkdir -p /usr/share/fonts/opentype/Fira 18 | sudo cp /tmp/Fira*/**/*.ttf /usr/share/fonts/truetype/Fira/ 19 | sudo cp /tmp/Fira*/**/*.otf /usr/share/fonts/opentype/Fira/ 20 | sudo fc-cache -fv 21 | else 22 | wget https://github.com/mozilla/Fira/archive/4.202.zip 23 | unzip 4.202.zip 24 | font_dir="$HOME/Library/Fonts" 25 | mkdir -p $font_dir 26 | cp Fira-4.202/otf/* $font_dir/ 27 | fi 28 | -------------------------------------------------------------------------------- /.gitconfig: -------------------------------------------------------------------------------- 1 | [user] 2 | name = Adolfo Benedetti 3 | email = adolfo.benedetti@gmail.com 4 | [core] 5 | editor = vim 6 | autocrlf = false 7 | [filter "lfs"] 8 | clean = git-lfs clean %f 9 | smudge = git-lfs smudge %f 10 | required = true 11 | [alias] 12 | co = checkout 13 | # Log display from screencast, with train tracks. 14 | l = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset' 15 | # Alternate log display from Scott Chacon 16 | lol = log --pretty=oneline --abbrev-commit --graph --decorate 17 | # Other useful aliases: 18 | unstage = reset HEAD 19 | staged = diff --cached 20 | unstaged = diff 21 | current-branch = !git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||' 22 | # Usage: git track origin/feature-123-login-form 23 | track = checkout -t 24 | [apply] 25 | whitespace = warn 26 | [color] 27 | diff = auto 28 | status = auto 29 | branch = auto 30 | ui = true 31 | [help] 32 | autocorrect = 1 33 | [status] 34 | submodule = 1 35 | [push] 36 | # Only push branches that have been set up to track a remote branch. 37 | default = current 38 | [github] 39 | user = adben 40 | [magithub] 41 | online = false 42 | [magithub "status"] 43 | includeStatusHeader = false 44 | includePullRequestsSection = false 45 | includeIssuesSection = false 46 | -------------------------------------------------------------------------------- /idea64.vmoptions: -------------------------------------------------------------------------------- 1 | # custom IntelliJ IDEA VM options 2 | 3 | -ea 4 | -server 5 | -Xms2G 6 | -Xmx4096M 7 | -Xss16m 8 | -XX:MaxMetaspaceSize=2G 9 | -XX:MetaspaceSize=512m 10 | -XX:ConcGCThreads=6 11 | -XX:ParallelGCThreads=6 12 | -XX:NewRatio=3 13 | -XX:ReservedCodeCacheSize=240m 14 | -XX:+AlwaysPreTouch 15 | -XX:+UseConcMarkSweepGC 16 | -XX:+DoEscapeAnalysis 17 | -XX:+TieredCompilation 18 | -XX:SoftRefLRUPolicyMSPerMB=50 19 | -XX:+UnlockExperimentalVMOptions 20 | -Djava.net.preferIPv4Stack=true 21 | -Dsun.io.useCanonCaches=false 22 | -XX:LargePageSizeInBytes=256m 23 | -XX:+UseCodeCacheFlushing 24 | -XX:+DisableExplicitGC 25 | -XX:+ExplicitGCInvokesConcurrent 26 | -XX:+PrintGCDetails 27 | -XX:+PrintFlagsFinal 28 | -XX:+AggressiveOpts 29 | -XX:+CMSClassUnloadingEnabled 30 | -XX:CMSInitiatingOccupancyFraction=60 31 | -XX:+CMSParallelRemarkEnabled 32 | -XX:+UseAdaptiveGCBoundary 33 | -XX:+UseSplitVerifier 34 | -XX:CompileThreshold=10000 35 | -XX:+OptimizeStringConcat 36 | -XX:+UseStringCache 37 | -XX:+UseFastAccessorMethods 38 | -XX:+UnlockDiagnosticVMOptions 39 | -Djdk.http.auth.tunneling.disabledSchemes="" 40 | -XX:+HeapDumpOnOutOfMemoryError 41 | -XX:+UseCompressedOops 42 | -XX:-OmitStackTraceInFastThrow 43 | -Dfile.encoding=UTF-8 44 | -Xverify:none 45 | 46 | -XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log 47 | -XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof 48 | -------------------------------------------------------------------------------- /brews.conf: -------------------------------------------------------------------------------- 1 | 3.6.5 2 | 3.6.5_1 3 | angular-cli 4 | ant 5 | aria2 6 | asciidoc 7 | aspell 8 | augeas 9 | autoconf 10 | automake 11 | boost 12 | c-ares 13 | cairo 14 | certbot 15 | clojure 16 | cmake 17 | dbus 18 | dialog 19 | docbook 20 | docbook-xsl 21 | emacs-mac 22 | ffmpeg 23 | fontconfig 24 | fop 25 | freetype 26 | fribidi 27 | gdbm 28 | gdk-pixbuf 29 | gengetopt 30 | geoip 31 | gettext 32 | giflib 33 | git 34 | glib 35 | gmp 36 | gnu-getopt 37 | gnu-sed 38 | gnutls 39 | gobject-introspection 40 | gradle 41 | graphite2 42 | gsasl 43 | harfbuzz 44 | hping 45 | htop 46 | icu4c 47 | imagemagick 48 | imagemagick@6 49 | ispell 50 | jpeg 51 | lame 52 | leiningen 53 | libcroco 54 | libffi 55 | libgcrypt 56 | libgpg-error 57 | libpng 58 | librsvg 59 | libtasn1 60 | libtiff 61 | libtool 62 | libunistring 63 | libyaml 64 | lua 65 | m-cli 66 | mailutils 67 | makedepend 68 | maven 69 | meson 70 | mongodb 71 | nettle 72 | ninja 73 | node 74 | openssl 75 | openssl@1.1 76 | p11-kit 77 | pango 78 | pcre 79 | pixman 80 | pkg-config 81 | python 82 | python@2 83 | rbenv 84 | readline 85 | rlwrap 86 | ruby 87 | ruby-build 88 | scrcpy 89 | sdl2 90 | source-highlight 91 | sphinx-doc 92 | springboot 93 | sqlite 94 | texinfo 95 | tomcat 96 | tree 97 | x264 98 | xmlto 99 | xvid 100 | xz 101 | youtube-dl 102 | zsh 103 | -------------------------------------------------------------------------------- /daily_stuff.sh: -------------------------------------------------------------------------------- 1 | #!/bin/zsh 2 | # updating macports 3 | echo "::: Updating macports :::" 4 | #sudo port -v selfupdate; 5 | #sudo port -v upgrade outdated; 6 | cd ~/git ; 7 | echo ":::: Updated cloned git repositories ::::" ; 8 | for i in * ; 9 | do if [ -d $i ] ; 10 | then echo "::: Directory $i :::" ; 11 | cd $i ; 12 | git smart-pull ; 13 | git gc --auto; 14 | sleep 2; 15 | cd .. ; 16 | fi 17 | done ; 18 | ## updating brews 19 | echo "::: Updating brews :::" 20 | brew -v update && brew -v upgrade && brew -v cleanup && brew -v prune && brew -v doctor 21 | ##brew update && brew upgrade && brew cleanup && brew prune && brew doctor; 22 | ## emacs from trunk 23 | ##echo "::: Updating emacs from trunk :::" 24 | # Emacs is now installed with brews, the previous process will update emacs 25 | # brew install emacs --cocoa --use-git-head --HEAD 26 | # cd ~/Documents/save_documents/Documents/temp/emacs/emacs ; 27 | # git pull ; 28 | # sh autogen.sh ; 29 | # sleep 50 ; 30 | # ./configure --with-ns --without-compress-info --without-imagemagick ; 31 | # make ; 32 | # make install 33 | # ## doesn't work see the issue https://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00643.html 34 | # ## make clean bootstrap install ; 35 | # if [ -d "~/.Trash/Emacs.app" ] ; 36 | # then echo "::removing unnused Emacs from trash::" 37 | # rm -rfv ~/.Trash/Emacs.app; 38 | # fi; 39 | # mv /Applications/Emacs.app ~/.Trash/ ; 40 | # mv ./nextstep/Emacs.app /Applications/ ; 41 | echo "::: Compiling .elc's :::" ; 42 | if [ -d ~/.emacs.d/ ] ; 43 | then echo ":: Removing old compiled .el configs ::" ; 44 | cd ~/.emacs.d/ && find . -type f -name "*.elc" -exec rm -fv {} \; 45 | echo ":: Compiling lokaal .el configs ::" ; 46 | cd ~/.emacs.d && ~/Applications/Emacs.app/Contents/MacOS/Emacs --batch --no-site-file --eval '(byte-recompile-directory "~/.emacs.d" 0 t)' ; 47 | fi ; 48 | echo "::: Done batchcompiling local elc's :::" ; 49 | -------------------------------------------------------------------------------- /adben-new.zsh-theme: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env zsh 2 | ### Shows prompt character according to the VCS you are currently in or super/normal user 3 | function prompt_char { 4 | git branch >/dev/null 2>/dev/null && echo '±' && return 5 | hg root >/dev/null 2>/dev/null && echo '☿' && return 6 | svn info >/dev/null 2>/dev/null && echo '⚡' && return 7 | echo '%#' 8 | } 9 | ########## VCS ########### 10 | ### Coloured Git state indicator → taken from: http://briancarper.net/blog/570/git-info-in-your-zsh-prompt 11 | autoload -Uz vcs_info 12 | zstyle ':vcs_info:*' stagedstr '%F{green} *%f' 13 | zstyle ':vcs_info:*' unstagedstr '%F{yellow} *%f' 14 | zstyle ':vcs_info:*' check-for-changes true 15 | zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{red}:%f%F{yellow}%r%f' 16 | zstyle ':vcs_info:*' enable git svn hg 17 | precmd () { 18 | if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] { 19 | zstyle ':vcs_info:*' formats '%F{cyan}[%b%c%u%f%F{cyan}]%f' 20 | } else { 21 | zstyle ':vcs_info:*' formats '%F{cyan}[%b%c%u%f%F{red} *%f%F{cyan}]%f' 22 | } 23 | vcs_info 24 | } 25 | ########## VCS ########### 26 | ######### PROMPT ######### 27 | setopt prompt_subst 28 | autoload -U colors && colors 29 | local USER_HOST_CURRENT_DIR='%(!.%B%U%F{blue}%n%f%u%b.%F{blue}%n%f) at %F{magenta}%m%f on %F{yellow}%y%f in %F{cyan}%~%f' 30 | #local COMMAND_TIP='%{$terminfo[bold]$fg[cyan]%}$(wget -qO - http://www.commandlinefu.com/commands/random/plaintext | sed 1d | sed '/^$/d' | sed 's/^/║/g')%{$reset_color%}' 31 | ### The left side of a normal prompt 32 | ### shows: username, hostname, (p|t)ts, working directory, standard prompt character or VCS sign; special styling for root. 33 | PROMPT='%(!.%B%U%F{blue}%n%f%u%b.%F{blue}%n%f) at %F{red}%m%f on %F{yellow}%y%f in %F{cyan}%~%f 34 | {${vcs_info_msg_0_} %(!.%F{red}$(prompt_char)%f.$(prompt_char))} : %{$reset_color%} ' 35 | ### The right side of a normal prompt 36 | ### shows: Date format dd.mmm,yy hh:mm:ss 37 | RPROMPT='%{$reset_color%}[%F{green}%D{%e.%b.%y %H:%M:%S}%f ]%{$reset_color%}' 38 | # ^^^^^^^^^^^^^^^^^ ← this is the part that defines date and time. 39 | ### Loop prompt 40 | PROMPT2='{%_} ' 41 | ### Selection prompt 42 | PROMPT3='{ … } ' 43 | ######### PROMPT ######### 44 | -------------------------------------------------------------------------------- /.Xdefaults: -------------------------------------------------------------------------------- 1 | URxvt*termName: rxvt 2 | URxvt.perl-ext-common: default,matcher,readline,selection-to-clipboard,tabbedex,searchable-scrollback 3 | 4 | !!URxvt.reverseVideo: true 5 | !!URxvt.perl-ext-common: selection-to-clipboard 6 | 7 | ## borderless and no scrollbar 8 | ! URxvt*scrollBar_right: false 9 | ! URxvt*scrollBar: false 10 | ! URxvt*borderLess: false 11 | 12 | URxvt.scrollstyle: plain 13 | 14 | URxvt.borderColor: #000030 15 | URxvt.internalBorder: 1 16 | 17 | URxvt.saveLines: 4095 18 | 19 | ! URxvt*iconFile: /usr/share/icons/Paper/32x32/apps/gnome-terminal.png 20 | 21 | ## transparency 22 | URxvt*inheritPixmap: true 23 | URxvt*tintColor: white 24 | URxvt*shading: 100 25 | 26 | ## URL follow 27 | URxvt.url-Launcher: /usr/bin/xdg-open 28 | URxvt.matcher.button: 1 29 | 30 | ##tabs 31 | ! URxvt.keysym.Control-Alt-t: perl:tabbedex:new_tab 32 | ! URxvt.keysym.Shift-Right: perl:tabbedex:next_tab 33 | ! URxvt.keysym.Shift-Left: perl:tabbedex:prev_tab 34 | URxvt.colorUL: #4682B4 35 | URxvt.tabbed.tabbar-fg: 2 36 | URxvt.tabbed.tabbar-bg: 0 37 | URxvt.tabbed.tab-fg: 2 38 | URxvt.tabbed.tab-bg: 0 39 | URxvt.tabbed.autohide: yes 40 | URxvt.tabbed.new-button: no 41 | URxvt.tabbed.title: yes 42 | 43 | ## geometry and font 44 | URxvt*geometry: 80×15 45 | URxvt*font: xft:Fira Code:pixelsize=25 46 | 47 | ! Pointer 48 | URxvt.pointerBlank: true 49 | 50 | !! https://gist.github.com/yevgenko/1167205 51 | !!Source http://github.com/altercation/solarized 52 | 53 | *background: #002b36 54 | *foreground: #657b83 55 | !!*fading: 40 56 | *fadeColor: #002b36 57 | *cursorColor: #93a1a1 58 | *pointerColorBackground: #586e75 59 | *pointerColorForeground: #93a1a1 60 | 61 | !! black dark/light 62 | *color0: #073642 63 | *color8: #002b36 64 | 65 | !! red dark/light 66 | *color1: #dc322f 67 | *color9: #cb4b16 68 | 69 | !! green dark/light 70 | *color2: #859900 71 | *color10: #586e75 72 | 73 | !! yellow dark/light 74 | *color3: #b58900 75 | *color11: #657b83 76 | 77 | !! blue dark/light 78 | *color4: #268bd2 79 | *color12: #839496 80 | 81 | !! magenta dark/light 82 | *color5: #d33682 83 | *color13: #6c71c4 84 | 85 | !! cyan dark/light 86 | *color6: #2aa198 87 | *color14: #93a1a1 88 | 89 | !! white dark/light 90 | *color7: #eee8d5 91 | *color15: #fdf6e3 92 | -------------------------------------------------------------------------------- /userChrome.css: -------------------------------------------------------------------------------- 1 | /* COLOR */ 2 | /* HUD Location bar history drop-down */ 3 | @import url("chrome://browser/skin/custom/hud_dropdown.css"); 4 | 5 | /* Gray Favicon to Inactive tabs and Searchbar engine */ 6 | @import url("chrome://browser/skin/custom/gray_favicon.css"); 7 | 8 | /* Light Gray Sidebar */ 9 | @import url("chrome://browser/skin/custom/lightsidebar.css"); 10 | 11 | /* Restore Navigationbar to White */ 12 | @import url("chrome://browser/skin/custom/navi-white.css"); 13 | 14 | /* Dark Downloads Window */ 15 | @import url("chrome://browser/skin/custom/darkdownload.css"); 16 | 17 | /* Dark ScrapBook (add-ons) */ 18 | @import url("chrome://browser/skin/custom/dark_scrapbook.css"); 19 | 20 | 21 | /* HIDE */ 22 | /* Hide Discover (Get Add-ons) */ 23 | @import url("chrome://browser/skin/custom/discover.css"); 24 | 25 | /* Hide Open All Tabs */ 26 | @import url("chrome://browser/skin/custom/remove-openalltabs.css"); 27 | 28 | /* Hide Sidebar Bookmarks Search */ 29 | @import url("chrome://browser/skin/custom/sidebar_searchfield.css"); 30 | 31 | 32 | /* SHOW */ 33 | /* Show Bookmarks Toolbar Folder */ 34 | @import url("chrome://browser/skin/custom/show_btb_folder.css"); 35 | 36 | /* Show Sidebar Header */ 37 | @import url("chrome://browser/skin/custom/sidebarheader.css"); 38 | 39 | 40 | /* OTHERS */ 41 | /* Tab Mix Plus - Tab Close Button Place on left side 42 | @import url("chrome://browser/skin/custom/tabmixplus_left.css"); 43 | When you choose "Tab Close Button" - "Place on left side", you must enable this option.*/ 44 | 45 | /* New Tab Page Grid Two thirds Size (for large display) */ 46 | @import url("chrome://browser/skin/custom/newtab_third.css"); 47 | 48 | /* Tab Close Button on the Left 49 | @import url("chrome://browser/skin/custom/tabclose_left.css");*/ 50 | 51 | /* Feed Toolbar Button in Locationbar */ 52 | @import url("chrome://browser/skin/custom/feedtoolbar.css"); 53 | Before adding code, you have to customize the position of feed button. 54 | 55 | /* Search History into Searchbar */ 56 | @import url("chrome://browser/skin/custom/searchbarhistory.css"); 57 | 58 | /* Status Panel in Addon-bar */ 59 | @import url("chrome://browser/skin/custom/status-addonbar.css"); 60 | 61 | /* Firebug Inspect CMI Short Label */ 62 | @import url("chrome://browser/skin/custom/fb_cmi_shortlabel.css"); -------------------------------------------------------------------------------- /.zshenv: -------------------------------------------------------------------------------- 1 | 2 | # Customize to your needs... #PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/go/bin:/Users/adolfobenedetti/Dev/Soft/apache-maven-3.1.0/bin:/opt/local/bin:/usr/texbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/X11/bin:/Users/adolfobenedetti/Dev/Soft/play:/opt/local/libexec/gnubin:/usr/local/Cellar/android-sdk/r21/bin:/usr/local/go//bin:/Users/adolfobenedetti/bin:/Users/adolfobenedetti/bin/FDK/Tools/osx:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin 3 | # next line should be in the ~/.zshenv 4 | #export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/local/share/zsh-syntax-highlighting/highlighters 5 | #export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home 6 | export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home 7 | export NODE_HOME=/usr/local/opt/node 8 | export ANT_HOME=/usr/local/opt/ant 9 | export MAVEN_HOME=/usr/local/opt/maven 10 | export GRADLE_HOME=/usr/local/opt/gradle 11 | export ANDROID_HOME=/usr/local/share/android-sdk 12 | export ANDROID_NDK_HOME=/usr/local/share/android-ndk 13 | export ANDROID_SDK_ROOT=/usr/local/share/android-sdk 14 | export INTEL_HAXM_HOME=/usr/local/Caskroom/intel-haxm 15 | export GO_HOME=/usr/local/opt/go/libexec/ 16 | export PYTHON_HOME=/usr/local/opt/python/libexec/ 17 | export GOPATH=$HOME/go 18 | export GORACE='' 19 | export KINDLEGEN_HOME=/Users/adben/Downloads/KindleGen_Mac_i386_v2_9 20 | export GOROOT=$GO_HOME 21 | export PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting 22 | export PATH=$PATH:/usr/local/lib/ruby/gems/2.5.0/bin 23 | 24 | export PATH=$PATH:$(ruby -rubygems -e 'puts Gem.user_dir')/bin 25 | export PATH=$PATH:$GO_HOME/bin 26 | export PATH=$PATH:$GOPATH/bin 27 | export PATH=$PATH:/opt/local/bin 28 | export PATH=$PATH:/usr/local/bin 29 | export PATH=$PATH:/usr/texbin 30 | 31 | export PATH=$PATH:/bin 32 | export PATH=$PATH:/sbin 33 | export PATH=$PATH:/usr/bin 34 | export PATH=$PATH:/usr/sbin 35 | export PATH=$PATH:/usr/local/sbin 36 | export PATH=$ANT_HOME/bin:$PATH 37 | export PATH=$MAVEN_HOME/bin:$PATH 38 | export PATH=$GRADLE_HOME/bin:$PATH 39 | export PATH=$ANDROID_HOME/tools:$PATH 40 | export PATH=$ANDROID_HOME/platform-tools:$PATH 41 | export PATH=$PATH:$PYTHON_HOME/bin 42 | 43 | # export PATH=$ANDROID_HOME/build-tools/23.0.1:$PATH 44 | export PATH=$PATH:$NODE_HOME/bin 45 | export PATH=$PATH:$KINDLEGEN_HOME/kindlegen 46 | export PATH=$PATH:/usr/local/m-cli 47 | export PATH=$PATH:/usr/local/opt/qt/bin 48 | export PATH=$PATH:/Applications/Xcode.app/Contents/Developer/usr/bin 49 | export PATH=$HOME/.gem/ruby/2.6.0/bin:$PATH 50 | 51 | export NVM_DIR="$HOME/.nvm" 52 | [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm 53 | [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion 54 | 55 | #export EDITOR='/Applications/Emacs.app/Contents/MacOS/Emacs -nw' 56 | export EDITOR='vim' 57 | #export EDITOR="emacsclient --alternate-editor /Applications/Emacs.app/Contents/MacOS/Emacs" 58 | #export VISUAL=${EDITOR} 59 | #export ALTERNATE_EDITOR='/Applications/Emacs.app/Contents/MacOS/Emacs' 60 | export SBT_OPTS='-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M' 61 | 62 | #AWS 63 | export EC2_REGION='eu-west-1' 64 | export LC_ALL=en_US.UTF-8 65 | export LANG=en_US.UTF-8 66 | #Tasks 67 | export BREWS='brew -v update && brew -v upgrade && brew -v cleanup && brew -v prune && brew -v doctor' 68 | export PIPS='pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U' 69 | export GOS='go get -u -v all' 70 | #ENV 71 | if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi 72 | -------------------------------------------------------------------------------- /adben.zsh-theme: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env zsh 2 | <<<<<<< HEAD 3 | ########## VCS ########### 4 | ### Coloured Git state indicator → taken from: http://briancarper.net/blog/570/git-info-in-your-zsh-prompt 5 | autoload -Uz vcs_info 6 | zstyle ':vcs_info:*' stagedstr '%F{green} ●%f' 7 | zstyle ':vcs_info:*' unstagedstr '%F{yellow} ●%f' 8 | zstyle ':vcs_info:*' check-for-changes true 9 | zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{red}:%f%F{yellow}%r%f' 10 | zstyle ':vcs_info:*' enable git svn hg 11 | precmd () { 12 | if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] { 13 | zstyle ':vcs_info:*' formats '%F{cyan}[%b%c%u%f%F{cyan}]%f' 14 | } else { 15 | zstyle ':vcs_info:*' formats '%F{cyan}[%b%c%u%f%F{red} ●%f%F{cyan}]%f' 16 | } 17 | 18 | vcs_info 19 | } 20 | ### Shows prompt character according to the VCS you are currently in or super/normal user 21 | function prompt_char { 22 | git branch >/dev/null 2>/dev/null && echo '±' && return 23 | hg root >/dev/null 2>/dev/null && echo '☿' && return 24 | svn info >/dev/null 2>/dev/null && echo '⚡' && return 25 | echo '%#' 26 | } 27 | ########## VCS ########### 28 | ######### PROMPT ######### 29 | setopt prompt_subst 30 | autoload -U colors && colors 31 | local USER_HOST_CURRENT_DIR='%(!.%B%U%F{blue}%n%f%u%b.%F{blue}%n%f) at %F{magenta}%m%f on %F{yellow}%y%f in %F{cyan}%~%f' 32 | local COMMAND_TIP='%{$terminfo[bold]$fg[cyan]%}$(wget -qO - http://www.commandlinefu.com/commands/random/plaintext | sed 1d | sed '/^$/d' | sed 's/^/║/g')%{$reset_color%}' 33 | 34 | ### The left side of a normal prompt 35 | ### shows: username, hostname, (p|t)ts, working directory, standard prompt character or VCS sign; special styling for root. 36 | PROMPT='%(!.%B%U%F{blue}%n%f%u%b.%F{blue}%n%f) at %F{magenta}%m%f on %F{yellow}%y%f in %F{cyan}%~%f 37 | {${vcs_info_msg_0_} %(!.%F{red}$(prompt_char)%f.$(prompt_char))} : %{$reset_color%}' 38 | 39 | ### The right side of a normal prompt 40 | ### shows: Date format dd.mmm,yy hh:mm:ss 41 | RPROMPT='%{$reset_color%}[%F{green}%D{%e.%b.%y %H:%M:%S}%f ]%{$reset_color%}' 42 | # ^^^^^^^^^^^^^^^^^ ← this is the part that defines date and time. 43 | 44 | ### Loop prompt 45 | PROMPT2='{%_} ' 46 | 47 | ### Selection prompt 48 | PROMPT3='{ … } ' 49 | ######### PROMPT ######### 50 | ======= 51 | local USER_HOST='%{$terminfo[bold]$fg[yellow]%}%n@%m%{$reset_color%}' 52 | local RETURN_CODE="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" 53 | local GIT_BRANCH='%{$terminfo[bold]$fg[red]%}$(git_prompt_info)%{$reset_color%}' 54 | local CURRENT_DIR='%{$terminfo[bold]$fg[green]%} %~%{$reset_color%}' 55 | local RUBY_RVM='%{$fg[gray]%}‹$(rvm-prompt i v g)›%{$reset_color%}' 56 | local COMMAND_TIP='%{$terminfo[bold]$fg[blue]%}$(wget -qO - http://www.commandlinefu.com/commands/random/plaintext | sed 1d | sed '/^$/d' | sed 's/^/║/g')%{$reset_color%}' 57 | ######### PROMPT ######### 58 | PROMPT="%{$terminfo[bold]$fg[blue]%}╔═ %{$reset_color%}${USER_HOST} ${CURRENT_DIR} ${RUBY_RVM} ${GIT_BRANCH} 59 | ${COMMAND_TIP} 60 | %{$terminfo[bold]$fg[blue]%}╚═ %{$reset_color%}%B%{$terminfo[bold]$fg[white]%}$%b%{$reset_color%} " 61 | RPS1='${RETURN_CODE}' 62 | RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}' 63 | ######### PROMPT ######### 64 | ########## GIT ########### 65 | ZSH_THEME_GIT_PROMPT_PREFIX="‹" 66 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%}›" 67 | ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘" 68 | ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔" 69 | ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}" 70 | ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}" 71 | ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}" 72 | ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}" 73 | ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}" 74 | ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}" 75 | ########## GIT ########### 76 | >>>>>>> 6d7a275972918bf535e80a688914ba8f39f65110 77 | -------------------------------------------------------------------------------- /netbeans.conf: -------------------------------------------------------------------------------- 1 | # Default locations of userdir and cachedir: 2 | # (http://wiki.netbeans.org/FaqWhatIsUserdir) 3 | # 4 | # On Windows ${DEFAULT_USERDIR_ROOT} will be replaced by the launcher 5 | # with "\NetBeans" where is user's 6 | # value of "AppData" key in Windows Registry under 7 | # "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" 8 | # and ${DEFAULT_CACHEDIR_ROOT} will be replaced by the launcher 9 | # with "\NetBeans\Cache" where is user's 10 | # value of "Local AppData" key in Windows Registry under 11 | # "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" 12 | # 13 | # On Mac ${DEFAULT_USERDIR_ROOT} will be replaced by the launcher 14 | # with "~/Library/Application Support/NetBeans" and 15 | # ${DEFAULT_CACHEDIR_ROOT} with "~/Library/Caches/NetBeans" 16 | # 17 | # On other systems ${DEFAULT_USERDIR_ROOT} will be replaced by the launcher 18 | # with "~/.netbeans" and ${DEFAULT_CACHEDIR_ROOT} with "~/.cache/netbeans" 19 | # 20 | # You can also use ${HOME} variable which will be replaced with 21 | # user.home JVM system property value. This variable is valid only in 22 | # netbeans_default_userdir and netbeans_default_cachedir properties. 23 | # 24 | # NOTE: If you specify a non-default userdir path on command line 25 | # (--userdir option) and don't specify a cachedir path (--cachedir option), 26 | # cachedir will be in "/var/cache". 27 | # 28 | # Cachedir must be different from userdir. The same cachedir and userdir 29 | # would cause problems. 30 | # 31 | netbeans_default_userdir="${DEFAULT_USERDIR_ROOT}/dev" 32 | netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/dev" 33 | 34 | # Options used by NetBeans launcher by default: 35 | # (can be overridden by explicit command line switches) 36 | # 37 | # Note that default -Xmx is selected for you automatically. 38 | # You can find these values in var/log/messages.log file in your userdir. 39 | # The automatically selected value can be overridden by specifying -J-Xmx 40 | # here or on the command line. 41 | # 42 | # If you specify the heap size explicitly, you may also want to enable 43 | # Concurrent Mark & Sweep garbage collector. 44 | # (see http://wiki.netbeans.org/FaqGCPauses) 45 | # 46 | #netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Dplugin.manager.check.updates=false -J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes" 47 | # 48 | netbeans_default_options="-J-client -J-ea -J-Xverify:none -J-d64 / 49 | -J-Dsun.zip.disableMemoryMapping=true -J-Dnetbeans.logger.console=true / 50 | -J-Xss2m -J-XX:MetaspaceSize=350m -J-XX:MaxMetaspaceSize=2048m -J-Xms32m -J-Xmx1024m / 51 | -J-XX:+UseParallelOldGC -J-XX:ParallelGCThreads=4 / 52 | -J-XX:+UseLargePages -J-XX:LargePageSizeInBytes=512m / 53 | -J-XX:+PrintGCDetails -J-XX:+AggressiveOpts / 54 | -J-XX:+UseStringCache -J-XX:+UseFastAccessorMethods / 55 | -J-XX:+UnlockExperimentalVMOptions -J-XX:+UnlockDiagnosticVMOptions / 56 | -J-XX:ReservedCodeCacheSize=256m -J-XX:+OptimizeStringConcat / 57 | -J-XX:+UseSplitVerifier -J-XX:CompileThreshold=10000 / 58 | -J-XX:+UseCompressedOops -J-XX:+UseAdaptiveSizePolicy / 59 | -J-Dapple.laf.useScreenMenuBar=true -J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes / 60 | -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true / 61 | -J-Dsun.java2d.opengl=true -J-Dsun.java2d.d3d=true -J-Dawt.nativeDoubleBuffering=false / 62 | -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd -J-Dorg.netbeans.editor.aa.fractional=true / 63 | -J-Dorg.netbeans.editor.aa.fractional=true -J-Dorg.netbeans.editor.view.settings.level=FINE / 64 | -J-Dorg.netbeans.editor.aa.text=hrgb / 65 | -J-Dscala.home=/usr/local/opt/scala/libexec / 66 | --fontsize 10 --locale nl_NL " 67 | # Default location of JDK: 68 | # (set by installer or commented out if launcher should decide) 69 | # 70 | # It can be overridden on command line by using --jdkhome 71 | # Be careful when changing jdkhome. 72 | # There are two NetBeans launchers for Windows (32-bit and 64-bit) and 73 | # installer points to one of those in the NetBeans application shortcut 74 | # based on the Java version selected at installation time. 75 | # 76 | #netbeans_jdkhome="/path/to/jdk" 77 | 78 | # Additional module clusters: 79 | # using ${path.separator} (';' on Windows or ':' on Unix): 80 | # 81 | #netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2" 82 | -------------------------------------------------------------------------------- /.zshrc: -------------------------------------------------------------------------------- 1 | # `brew --prefix`/etc/profile.d/z.sh 2 | # Path to your oh-my-zsh installation. 3 | export ZSH=$HOME/.oh-my-zsh 4 | # ===== Basics 5 | setopt no_beep # don't beep on error 6 | setopt interactive_comments # Allow comments even in interactive shells (especially for Muness) 7 | 8 | # ===== Changing Directories 9 | setopt auto_cd # If you type foo, and it isn't a command, and it is a directory in your cdpath, go there 10 | setopt cdablevarS # if argument to cd is the name of a parameter whose value is a valid directory, it will become the current directory 11 | setopt pushd_ignore_dups # don't push multiple copies of the same directory onto the directory stack 12 | 13 | # ===== Expansion and Globbing 14 | setopt extended_glob # treat #, ~, and ^ as part of patterns for filename generation 15 | 16 | # ===== History 17 | setopt append_history # Allow multiple terminal sessions to all append to one zsh command history 18 | setopt extended_history # save timestamp of command and duration 19 | setopt inc_append_history # Add comamnds as they are typed, don't wait until shell exit 20 | setopt hist_expire_dups_first # when trimming history, lose oldest duplicates first 21 | setopt hist_ignore_dups # Do not write events to history that are duplicates of previous events 22 | setopt hist_ignore_space # remove command line from history list when firPURE_PROMPT_SYMBOLst character on the line is a space 23 | setopt hist_find_no_dups # When searching history don't display results already cycled through twice 24 | setopt hist_reduce_blanks # Remove extra blanks from each command line being added to history 25 | setopt hist_verify # don't execute, just expand history 26 | setopt share_history # imports new commands and appends typed commands to history 27 | 28 | # ===== Completion 29 | setopt always_to_end # When completing from the middle of a word, move the cursor to the end of the word 30 | setopt auto_menu # show completion menu on successive tab press. needs unsetop menu_complete to work 31 | setopt auto_name_dirs # any parameter that is set to the absolute name of a directory immediately becomes a name for that directory 32 | setopt complete_in_word # Allow completion from within a word/phrase 33 | 34 | unsetopt menu_complete # do not autoselect the first completion entry 35 | 36 | # ===== Correction 37 | setopt correct # spelling correction for commands 38 | setopt correctall # spelling correction for arguments 39 | 40 | # ===== Prompt 41 | setopt prompt_subst # Enable parameter expansion, command substitution, and arithmetic expansion in the prompt 42 | setopt transient_rprompt # only show the rprompt on the current prompt 43 | 44 | # ===== Scripts and Functions 45 | setopt multios # perform implicit tees or cats when multiple redirections are attempted 46 | # ===== debug 47 | # setopt XTRACE VERBOSE 48 | # Helps whith the quotes problem 49 | setopt rcquotes 50 | 51 | # ===== pure theme 52 | # https://github.com/sindresorhus/pure 53 | set PURE_PROMPT_SYMBOL= ""; 54 | 55 | # Circumvent https://github.com/direnv/direnv/issues/210 56 | # 57 | #shell_session_update() { :; } 58 | 59 | 60 | # Set name of the theme to load. 61 | # Look in ~/.oh-my-zsh/themes/ 62 | # Optionally, if you set this to "random", it'll load a random theme each 63 | # time that oh-my-zsh is loaded. 64 | # export ZSH_THEME="robbyrussell" 65 | #export ZSH_THEME="adben-new" 66 | #export ZSH_THEME="nanotech" 67 | #export ZSH_THEME="powerline" 68 | #export ZSH_THEME="agnoster" 69 | #export ZSH_THEME="kennethreitz" 70 | #export ZSH_THEME="kphoen" 71 | #export ZSH_THEME="adben" 72 | export ZSH_THEME="refined" 73 | DEFAULT_USER="adben" 74 | 75 | #Aliases 76 | # Colored cal output 77 | alias cal="cal | grep --color=auto -E '( |^)$(date +)|$'" 78 | alias hoy="date +%F" 79 | # Example aliases 80 | #alias emacs="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient --alternate-editor /Applications/Emacs.app/Contents/MacOS/Emacs" 81 | alias emacs="/Applications/Emacs.app/Contents/MacOS/Emacs -nw" 82 | alias zshconfig="emacsclient ~/.zshrc" 83 | alias ohmyzsh="emacsclient ~/.oh-my-zsh" 84 | #for emacs 85 | alias rmoldelc="cd ~/.emacs.d/ && find . -type f -name \'*.elc\' -exec rm -fv {} \;" 86 | alias compileelcs="cd ~/.emacs.d/ && /Applications/Emacs.app/Contents/MacOS/Emacs --batch -f batch-byte-compile **/*.el ;" 87 | alias optimizeemacs="rmoldelc && sleep 4 && compileelcs" 88 | alias speedtest="wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip" 89 | alias bower="noglob bower" 90 | alias pginit="postgres -D /usr/local/var/postgres" 91 | #Tasks 92 | alias brewup="brew -v update && brew -v upgrade && brew -v cleanup && brew -v cleanup --prune-prefix && brew -v doctor" 93 | alias pipup="pip3 list --outdated --format=freeze | grep -v '^\\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U" 94 | alias goup="go get -u -v all" 95 | alias npmup="ncu -g" 96 | alias lc="colorls -lA --sd" 97 | alias gtc="colorls --git-status --tree" 98 | alias tc="colorls -lA --tree" 99 | 100 | source $(dirname $(gem which colorls))/tab_complete.sh 101 | ##alias protractor="/usr/local/share/npm/bin/protractor" 102 | ## Git graph alias soruce http://stackoverflow.com/questions/1057564/pretty-git-branch-graphs 103 | ##alias lg1="git log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative" 104 | 105 | ##alias lg2="git log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit" 106 | #alias lg=!"git lg1" 107 | 108 | # Set to this to use case-sensitive completion 109 | # CASE_SENSITIVE="true" 110 | 111 | # Comment this out to disable bi-weekly auto-update checks 112 | # DISABLE_AUTO_UPDATE="true" 113 | 114 | # Uncomment to change how many often would you like to wait before auto-updates occur? (in days) 115 | export UPDATE_ZSH_DAYS=5 116 | 117 | # Uncomment following line if you want to disable colors in ls 118 | # DISABLE_LS_COLORS="true" 119 | 120 | # Uncomment following line if you want to show the commandline tip in the adben's theme 121 | ENABLE_COMMAND_TIP="false" 122 | 123 | # Uncomment following line if you want to disable autosetting terminal title. 124 | DISABLE_AUTO_TITLE="true" 125 | 126 | # Uncomment following line if you want red dots to be displayed while waiting for completion 127 | COMPLETION_WAITING_DOTS="true" 128 | 129 | #necesary for my theme 130 | SVN_SHOW_BRANCH="true" 131 | 132 | # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) 133 | # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ 134 | # Example format: plugins=(rails git textmate ruby lighthouse) 135 | plugins=(bower brew colorize colorize command-not-found common-aliases cp dash dircycle dirhistory dirpersist emacs extract gem git git-extras git-hubflow gitfast github git-prompt gnu-utils go golang heroku history history-substring-search lein lol macports mix mvn mysql-macports nanoc node nvm osx perl python pip redis-cli repo rsync scala sbt safe-paste screen singlechar sprunge ssh-agent terminalapp urltools vagrant web-search xcode zsh_reload) 136 | # plugins=(git) 137 | source $ZSH/oh-my-zsh.sh 138 | #update gits 139 | 140 | 141 | 142 | test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" 143 | 144 | 145 | # Add RVM to PATH for scripting. Make sure this is the last PATH variable change. 146 | export PATH="$PATH:$HOME/.rvm/bin" 147 | export PATH="/usr/local/opt/gnu-getopt/bin:$PATH" 148 | -------------------------------------------------------------------------------- /Custom.css: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------ 2 | 3 | How to Install 怎麼安裝 4 | 1. Download Custom.css 5 | 2. Replace the Custom.css file in your "User Stylesheets" folder. Here is how to find Custom.css: 6 | 7 | Windows: 8 | %LOCALAPPDATA%\Google\Chrome\User Data\Default\User StyleSheets\Custom.css 9 | 10 | Linux: 11 | ~/.config/chromium/Default/User StyleSheets/Custom.css 12 | 13 | Mac: 14 | ~/Library/Application Support/Google/Chrome/Default/User StyleSheets/Custom.css 15 | 16 | ------------------------------------------------*/ 17 | 18 | /* Inspect Triangle Style 19 | ------------------------------------------------*/ 20 | #console-messages .console-group-messages .section .header::before, 21 | #console-messages .properties-tree li.parent::before 22 | { 23 | content: url(chrome-devtools://devtools/Images/treeRightTriangleBlack.png) !important; 24 | } 25 | 26 | #console-messages .console-group-messages .section.expanded .header::before, 27 | #console-messages .properties-tree li.parent.expanded::before 28 | { 29 | content: url(chrome-devtools://devtools/Images/treeDownTriangleBlack.png) !important; 30 | } 31 | 32 | /* Globe Typography 33 | ------------------------------------------------*/ 34 | #-webkit-web-inspector .source-code, 35 | #-webkit-web-inspector #main-panels .split-view-sidebar-right *, 36 | #-webkit-web-inspector #console-message, 37 | #-webkit-web-inspector .text-editor-contents, 38 | #-webkit-web-inspector #console-view * { 39 | font-size: 12px !important; 40 | line-height: 1.2em !important; 41 | font-family: PragmataPro, "Consolas", monospace !important; 42 | } 43 | 44 | /* Html inspect area 45 | ------------------------------------------------*/ 46 | #elements-content * { 47 | 48 | } 49 | 50 | /* animation settings */ 51 | #elements-content .parent, 52 | #elements-content .parent * { 53 | -webkit-box-sizing: border-box; 54 | -moz-box-sizing: border-box; 55 | box-sizing: border-box; 56 | 57 | -webkit-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715); 58 | -moz-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715); 59 | -ms-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715); 60 | -o-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715); 61 | transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715); /* easeInSine */ 62 | 63 | -webkit-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715); 64 | -moz-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715); 65 | -ms-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715); 66 | -o-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715); 67 | transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715); /* easeInSine */ 68 | } 69 | 70 | /* style of line */ 71 | #elements-content.source-code { 72 | background: #fcfcfc !important; 73 | } 74 | 75 | #elements-content .parent { 76 | border: 1px solid transparent; 77 | } 78 | 79 | #elements-content .parent::before { 80 | content: url(chrome-devtools://devtools/Images/treeRightTriangleBlack.png) !important; 81 | position: relative; 82 | z-index: 999; 83 | } 84 | 85 | /* expand style */ 86 | #elements-content .parent.expande { 87 | background: #f1f1f1; 88 | } 89 | 90 | #elements-content .parent.expanded::before { 91 | content: url(chrome-devtools://devtools/Images/treeDownTriangleBlack.png) !important; 92 | } 93 | 94 | /* select style */ 95 | #elements-content .parent.selected { 96 | background: #D0F3F3; 97 | border-left: 1px solid #000; 98 | border-radius: 3px; 99 | } 100 | 101 | #elements-content .highlight { 102 | color: #d4d4d4; 103 | } 104 | 105 | /* current select line style */ 106 | #-webkit-web-inspector .elements .selected { 107 | background: #FAD165 !important; 108 | border: 1px solid #aaa; 109 | } 110 | 111 | /* wrap expanded style */ 112 | #elements-content .parent.selected + *.expanded 113 | { 114 | background: #f1f1f1 !important; 115 | border-left: 1px dashed #aaa; 116 | border-bottom: 1px dashed #aaa; 117 | border-right: 1px dashed #aaa; 118 | border-radius: 0 0 3px 3px; 119 | margin-bottom: 10px !important; 120 | } 121 | 122 | /* ------------------------------------------------ 123 | * End of Html inspect area / 124 | 125 | 126 | /* CSS Inspect 127 | ------------------------------------------------*/ 128 | .webkit-css-selector { 129 | color: #BD3E4D !important; 130 | } 131 | 132 | .webkit-css-comment { 133 | color: #4DA95F !important; 134 | font-style: italic !important; 135 | line-height: 1.6em !important; 136 | } 137 | 138 | .webkit-css-url, .webkit-css-color, .webkit-css-string, .webkit-css-keyword, 139 | .webkit-css-selector { 140 | color: #389 !important; 141 | } 142 | 143 | .webkit-css-number { 144 | color: #3F8EBB !important; 145 | } 146 | 147 | .webkit-css-important { 148 | color: #0000FF !important; 149 | } 150 | 151 | .webkit-css-property, 152 | .webkit-css-at-rule { 153 | color: #C84252 !important; 154 | } 155 | 156 | #-webkit-web-inspector .selector-matches { 157 | color: #333 !important; 158 | font-weight: bold; 159 | background: #FAD165 !important; 160 | } 161 | 162 | /* Inspect HTML style 163 | ------------------------------------------------*/ 164 | .webkit-html-comment { 165 | color: #4DA95F !important; 166 | font-style: italic !important; 167 | } 168 | 169 | .webkit-html-tag, 170 | .webkit-html-doctype { 171 | color: #6B4E32 !important; 172 | } 173 | 174 | .webkit-html-text-node, 175 | .webkit-html-css-node, 176 | .webkit-html-js-node { 177 | color: #333 !important; 178 | } 179 | .webkit-html-attribute-name { 180 | color: #BD3E4D !important; 181 | } 182 | 183 | .webkit-html-attribute-value { 184 | color: #0049B8 !important; 185 | } 186 | 187 | /* JavaScript Style 188 | ------------------------------------------------*/ 189 | [class^="webkit-javascript"] { 190 | 191 | } 192 | 193 | .webkit-javascript-string { 194 | color: #3F8EBB !important; 195 | } 196 | 197 | .webkit-javascript-comment { 198 | color: #4DA95F !important; 199 | font-style: italic !important; 200 | line-height: 1.6em !important; 201 | } 202 | 203 | .webkit-javascript-number { 204 | color: #429694 !important; 205 | } 206 | 207 | .webkit-javascript-ident { 208 | color: #333 !important; 209 | } 210 | 211 | .webkit-javascript-keyword { 212 | color: #C84252 !important; 213 | } 214 | 215 | /* Console Style 216 | ------------------------------------------------*/ 217 | #-webkit-web-inspector .console-user-command > .console-message-text { 218 | color: #333 !important; 219 | } 220 | 221 | #-webkit-web-inspector #console-messages a { 222 | color: #389 !important; 223 | } 224 | 225 | #-webkit-web-inspector #console-messages a:hover { 226 | color: blue !important; 227 | } 228 | 229 | #-webkit-web-inspector .console-formatted-boolean { 230 | color: #CC6600 !important; 231 | } 232 | 233 | #-webkit-web-inspector .console-error-level .console-message-text, 234 | #-webkit-web-inspector .console-error-level .section .header .title { 235 | 236 | } 237 | 238 | #-webkit-web-inspector .console-error-level .children .source-code { 239 | 240 | } 241 | 242 | #-webkit-web-inspector .console-error-level .properties-tree { 243 | font-weight: normal !important; 244 | } 245 | 246 | #-webkit-web-inspector .console-message, 247 | #-webkit-web-inspector .console-user-command { 248 | border: 0px !important; 249 | border-bottom:1px dashed #ddd !important; 250 | padding: 3px 0 !important; 251 | line-height: 1.2em !important; 252 | } 253 | 254 | #-webkit-web-inspector .console-message { 255 | } 256 | 257 | #-webkit-web-inspector .console .console-formatted-object { 258 | } 259 | 260 | #-webkit-web-inspector .console .console-formatted-string { 261 | color: #007cbb !important; 262 | } 263 | 264 | #-webkit-web-inspector .console .name { 265 | color: #BD3E4D !important; 266 | } 267 | 268 | 269 | /* Source Code - Pane 270 | ------------------------------------------------*/ 271 | 272 | /* Generic */ 273 | 274 | #-webkit-web-inspector #main-panels .pane > .title, 275 | #-webkit-web-inspector #main-panels .sidebar-separator, 276 | #-webkit-web-inspector #main-panels .sidebar-pane-subtitle { 277 | 278 | } 279 | 280 | #-webkit-web-inspector .split-view-sidebar-right .webkit-css-property { 281 | } 282 | -------------------------------------------------------------------------------- /Custom_flymake.css: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------ 2 | 3 | How to Install 怎麼安裝 4 | 1. Download Custom.css 5 | 2. Replace the Custom.css file in your "User Stylesheets" folder. Here is how to find Custom.css: 6 | 7 | Windows: 8 | %LOCALAPPDATA%\Google\Chrome\User Data\Default\User StyleSheets\Custom.css 9 | 10 | Linux: 11 | ~/.config/chromium/Default/User StyleSheets/Custom.css 12 | 13 | Mac: 14 | ~/Library/Application Support/Google/Chrome/Default/User StyleSheets/Custom.css 15 | 16 | ------------------------------------------------*/ 17 | 18 | /* Inspect Triangle Style 19 | ------------------------------------------------*/ 20 | #console-messages .console-group-messages .section .header::before, 21 | #console-messages .properties-tree li.parent::before 22 | { 23 | content: url(chrome-devtools://devtools/Images/treeRightTriangleBlack.png) !important; 24 | } 25 | 26 | #console-messages .console-group-messages .section.expanded .header::before, 27 | #console-messages .properties-tree li.parent.expanded::before 28 | { 29 | content: url(chrome-devtools://devtools/Images/treeDownTriangleBlack.png) !important; 30 | } 31 | 32 | /* Globe Typography 33 | ------------------------------------------------*/ 34 | #-webkit-web-inspector .source-code, 35 | #-webkit-web-inspector #main-panels .split-view-sidebar-right *, 36 | #-webkit-web-inspector #console-message, 37 | #-webkit-web-inspector .text-editor-contents, 38 | #-webkit-web-inspector #console-view * { 39 | font-size: 12px !important; 40 | line-height: 1.2em !important; 41 | font-family: PragmataPro, "Consolas", monospace !important; 42 | } 43 | 44 | /* Html inspect area 45 | ------------------------------------------------*/ 46 | #elements-content * { 47 | 48 | } 49 | 50 | /* animation settings */ 51 | #elements-content .parent, 52 | #elements-content .parent * { 53 | -webkit-box-sizing: border-box; 54 | -moz-box-sizing: border-box; 55 | box-sizing: border-box; 56 | 57 | -webkit-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715); 58 | -moz-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715); 59 | -ms-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715); 60 | -o-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715); 61 | transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715); /* easeInSine */ 62 | 63 | -webkit-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715); 64 | -moz-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715); 65 | -ms-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715); 66 | -o-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715); 67 | transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715); /* easeInSine */ 68 | } 69 | 70 | /* style of line */ 71 | #elements-content.source-code { 72 | background: #fcfcfc !important; 73 | } 74 | 75 | #elements-content .parent { 76 | border: 1px solid transparent; 77 | } 78 | 79 | #elements-content .parent::before { 80 | content: url(chrome-devtools://devtools/Images/treeRightTriangleBlack.png) !important; 81 | position: relative; 82 | z-index: 999; 83 | } 84 | 85 | /* expand style */ 86 | #elements-content .parent.expande { 87 | background: #f1f1f1; 88 | } 89 | 90 | #elements-content .parent.expanded::before { 91 | content: url(chrome-devtools://devtools/Images/treeDownTriangleBlack.png) !important; 92 | } 93 | 94 | /* select style */ 95 | #elements-content .parent.selected { 96 | background: #D0F3F3; 97 | border-left: 1px solid #000; 98 | border-radius: 3px; 99 | } 100 | 101 | #elements-content .highlight { 102 | color: #d4d4d4; 103 | } 104 | 105 | /* current select line style */ 106 | #-webkit-web-inspector .elements .selected { 107 | background: #FAD165 !important; 108 | border: 1px solid #aaa; 109 | } 110 | 111 | /* wrap expanded style */ 112 | #elements-content .parent.selected + *.expanded 113 | { 114 | background: #f1f1f1 !important; 115 | border-left: 1px dashed #aaa; 116 | border-bottom: 1px dashed #aaa; 117 | border-right: 1px dashed #aaa; 118 | border-radius: 0 0 3px 3px; 119 | margin-bottom: 10px !important; 120 | } 121 | 122 | /* ------------------------------------------------ 123 | * End of Html inspect area / 124 | 125 | 126 | /* CSS Inspect 127 | ------------------------------------------------*/ 128 | .webkit-css-selector { 129 | color: #BD3E4D !important; 130 | } 131 | 132 | .webkit-css-comment { 133 | color: #4DA95F !important; 134 | font-style: italic !important; 135 | line-height: 1.6em !important; 136 | } 137 | 138 | .webkit-css-url, .webkit-css-color, .webkit-css-string, .webkit-css-keyword, 139 | .webkit-css-selector { 140 | color: #389 !important; 141 | } 142 | 143 | .webkit-css-number { 144 | color: #3F8EBB !important; 145 | } 146 | 147 | .webkit-css-important { 148 | color: #0000FF !important; 149 | } 150 | 151 | .webkit-css-property, 152 | .webkit-css-at-rule { 153 | color: #C84252 !important; 154 | } 155 | 156 | #-webkit-web-inspector .selector-matches { 157 | color: #333 !important; 158 | font-weight: bold; 159 | background: #FAD165 !important; 160 | } 161 | 162 | /* Inspect HTML style 163 | ------------------------------------------------*/ 164 | .webkit-html-comment { 165 | color: #4DA95F !important; 166 | font-style: italic !important; 167 | } 168 | 169 | .webkit-html-tag, 170 | .webkit-html-doctype { 171 | color: #6B4E32 !important; 172 | } 173 | 174 | .webkit-html-text-node, 175 | .webkit-html-css-node, 176 | .webkit-html-js-node { 177 | color: #333 !important; 178 | } 179 | .webkit-html-attribute-name { 180 | color: #BD3E4D !important; 181 | } 182 | 183 | .webkit-html-attribute-value { 184 | color: #0049B8 !important; 185 | } 186 | 187 | /* JavaScript Style 188 | ------------------------------------------------*/ 189 | [class^="webkit-javascript"] { 190 | 191 | } 192 | 193 | .webkit-javascript-string { 194 | color: #3F8EBB !important; 195 | } 196 | 197 | .webkit-javascript-comment { 198 | color: #4DA95F !important; 199 | font-style: italic !important; 200 | line-height: 1.6em !important; 201 | } 202 | 203 | .webkit-javascript-number { 204 | color: #429694 !important; 205 | } 206 | 207 | .webkit-javascript-ident { 208 | color: #333 !important; 209 | } 210 | 211 | .webkit-javascript-keyword { 212 | color: #C84252 !important; 213 | } 214 | 215 | /* Console Style 216 | ------------------------------------------------*/ 217 | #-webkit-web-inspector .console-user-command > .console-message-text { 218 | color: #333 !important; 219 | } 220 | 221 | #-webkit-web-inspector #console-messages a { 222 | color: #389 !important; 223 | } 224 | 225 | #-webkit-web-inspector #console-messages a:hover { 226 | color: blue !important; 227 | } 228 | 229 | #-webkit-web-inspector .console-formatted-boolean { 230 | color: #CC6600 !important; 231 | } 232 | 233 | #-webkit-web-inspector .console-error-level .console-message-text, 234 | #-webkit-web-inspector .console-error-level .section .header .title { 235 | 236 | } 237 | 238 | #-webkit-web-inspector .console-error-level .children .source-code { 239 | 240 | } 241 | 242 | #-webkit-web-inspector .console-error-level .properties-tree { 243 | font-weight: normal !important; 244 | } 245 | 246 | #-webkit-web-inspector .console-message, 247 | #-webkit-web-inspector .console-user-command { 248 | border: 0px !important; 249 | border-bottom:1px dashed #ddd !important; 250 | padding: 3px 0 !important; 251 | line-height: 1.2em !important; 252 | } 253 | 254 | #-webkit-web-inspector .console-message { 255 | } 256 | 257 | #-webkit-web-inspector .console .console-formatted-object { 258 | } 259 | 260 | #-webkit-web-inspector .console .console-formatted-string { 261 | color: #007cbb !important; 262 | } 263 | 264 | #-webkit-web-inspector .console .name { 265 | color: #BD3E4D !important; 266 | } 267 | 268 | 269 | /* Source Code - Pane 270 | ------------------------------------------------*/ 271 | 272 | /* Generic */ 273 | 274 | #-webkit-web-inspector #main-panels .pane > .title, 275 | #-webkit-web-inspector #main-panels .sidebar-separator, 276 | #-webkit-web-inspector #main-panels .sidebar-pane-subtitle { 277 | 278 | } 279 | 280 | #-webkit-web-inspector .split-view-sidebar-right .webkit-css-property { 281 | } 282 | -------------------------------------------------------------------------------- /VPN-Unified-Cloud-Formation.json: -------------------------------------------------------------------------------- 1 | { 2 | "AWSTemplateFormatVersion": "2010-09-09", 3 | "Description": "30MHz Private and secure VPN template with support for L2TP and PPTP. Based on the template at https://s3.amazonaws.com/webdigi/VPN/Unified-Cloud-Formation.json", 4 | "Mappings": { 5 | "AWSInstanceType2Arch": { 6 | "High.Speed.VPN-Paid": { 7 | "InstanceType": "t2.medium" 8 | }, 9 | "Standard.VPN-Free": { 10 | "InstanceType": "t2.micro" 11 | }, 12 | "Ultra.High.Speed.VPN-Paid": { 13 | "InstanceType": "m3.xlarge" 14 | } 15 | }, 16 | "AWSRegionArch2AMI": { 17 | "ap-northeast-1": { 18 | "HVM64": "ami-20b6aa21" 19 | }, 20 | "ap-southeast-1": { 21 | "HVM64": "ami-ca381398" 22 | }, 23 | "ap-southeast-2": { 24 | "HVM64": "ami-abeb9e91" 25 | }, 26 | "eu-central-1": { 27 | "HVM64": "ami-9a380b87" 28 | }, 29 | "eu-west-1": { 30 | "HVM64": "ami-234ecc54" 31 | }, 32 | "sa-east-1": { 33 | "HVM64": "ami-69f54974" 34 | }, 35 | "us-east-1": { 36 | "HVM64": "ami-9a562df2" 37 | }, 38 | "us-west-1": { 39 | "HVM64": "ami-5c120b19" 40 | }, 41 | "us-west-2": { 42 | "HVM64": "ami-29ebb519" 43 | } 44 | } 45 | }, 46 | "Outputs": { 47 | "VPNServerAddress": { 48 | "Description": "Use the IP as Server Address or VPN Host", 49 | "Value": { 50 | "Fn::Join": [ 51 | "", 52 | [ 53 | "", 54 | { 55 | "Fn::GetAtt": [ 56 | "VPNServerInstance", 57 | "PublicIp" 58 | ] 59 | } 60 | ] 61 | ] 62 | } 63 | } 64 | }, 65 | "Parameters": { 66 | "Speed": { 67 | "AllowedValues": [ 68 | "Standard.VPN-Free", 69 | "High.Speed.VPN-Paid", 70 | "Ultra.High.Speed.VPN-Paid" 71 | ], 72 | "Default": "Standard.VPN-Free", 73 | "Description": "Network Speed of VPN Server. Standard should do for most browsing and video.", 74 | "Type": "String" 75 | }, 76 | "Username": { 77 | "AllowedPattern": "[a-zA-Z][a-zA-Z0-9]*", 78 | "ConstraintDescription": "must begin with a letter and contain only alphanumeric characters.", 79 | "Description": "VPN Username", 80 | "MaxLength": "255", 81 | "MinLength": "1", 82 | "Type": "String" 83 | }, 84 | "VPNPassword": { 85 | "ConstraintDescription": "must contain atleast 4 characters.", 86 | "Description": "VPN Password (Min 4 characters)", 87 | "MaxLength": "255", 88 | "MinLength": "4", 89 | "NoEcho": "true", 90 | "Type": "String" 91 | }, 92 | "VPNPhrase": { 93 | "ConstraintDescription": "must contain atleast 4 characters.", 94 | "Description": "Passphrase for IPSEC PSK (Min 4 characters)", 95 | "MaxLength": "255", 96 | "MinLength": "4", 97 | "NoEcho": "true", 98 | "Type": "String" 99 | } 100 | }, 101 | "Resources": { 102 | "VPNSecurityGroup": { 103 | "Properties": { 104 | "GroupDescription": "VPN Security Groups", 105 | "SecurityGroupIngress": [ 106 | { 107 | "CidrIp": "0.0.0.0/0", 108 | "FromPort": "500", 109 | "IpProtocol": "tcp", 110 | "ToPort": "500" 111 | }, 112 | { 113 | "CidrIp": "0.0.0.0/0", 114 | "FromPort": "500", 115 | "IpProtocol": "udp", 116 | "ToPort": "500" 117 | }, 118 | { 119 | "CidrIp": "0.0.0.0/0", 120 | "FromPort": "4500", 121 | "IpProtocol": "udp", 122 | "ToPort": "4500" 123 | }, 124 | { 125 | "CidrIp": "0.0.0.0/0", 126 | "FromPort": "1723", 127 | "IpProtocol": "tcp", 128 | "ToPort": "1723" 129 | }, 130 | { 131 | "CidrIp": "0.0.0.0/0", 132 | "FromPort": "1723", 133 | "IpProtocol": "udp", 134 | "ToPort": "1723" 135 | } 136 | ] 137 | }, 138 | "Type": "AWS::EC2::SecurityGroup" 139 | }, 140 | "VPNServerInstance": { 141 | "Properties": { 142 | "ImageId": { 143 | "Fn::FindInMap": [ 144 | "AWSRegionArch2AMI", 145 | { 146 | "Ref": "AWS::Region" 147 | }, 148 | "HVM64" 149 | ] 150 | }, 151 | "InstanceType": { 152 | "Fn::FindInMap": [ 153 | "AWSInstanceType2Arch", 154 | { 155 | "Ref": "Speed" 156 | }, 157 | "InstanceType" 158 | ] 159 | }, 160 | "SecurityGroups": [ 161 | { 162 | "Ref": "VPNSecurityGroup" 163 | } 164 | ], 165 | "UserData": { 166 | "Fn::Base64": { 167 | "Fn::Join": [ 168 | "", 169 | [ 170 | "#!/bin/sh\n", 171 | "VPN_USER=", 172 | { 173 | "Ref": "Username" 174 | }, 175 | "\n", 176 | "VPN_PASSWORD=", 177 | { 178 | "Ref": "VPNPassword" 179 | }, 180 | "\n", 181 | "IPSEC_PSK=", 182 | { 183 | "Ref": "VPNPhrase" 184 | }, 185 | "\n", 186 | "\n", 187 | "# Update server\n", 188 | "apt-get update && apt-get upgrade -y\n", 189 | "\n", 190 | "# VPN 1 - Setup L2TP-IPSEC\n", 191 | "PRIVATE_IP=`wget -q -O - 'http://169.254.169.254/latest/meta-data/local-ipv4'`\n", 192 | "PUBLIC_IP=`wget -q -O - 'http://169.254.169.254/latest/meta-data/public-ipv4'`\n", 193 | "\n", 194 | "apt-get install -y openswan xl2tpd\n", 195 | "\n", 196 | "cat > /etc/ipsec.conf < /etc/ipsec.secrets < /etc/xl2tpd/xl2tpd.conf < /etc/ppp/options.xl2tpd < /etc/ppp/chap-secrets < /proc/sys/net/ipv4/ip_forward\n", 279 | "\n", 280 | "iptables-save > /etc/iptables.rules\n", 281 | "\n", 282 | "cat > /etc/network/if-pre-up.d/iptablesload < /proc/sys/net/ipv4/ip_forward\n", 286 | "exit 0\n", 287 | "EOF\n", 288 | "\n", 289 | "chmod a+x /etc/network/if-pre-up.d/iptablesload\n", 290 | "\n", 291 | "/etc/init.d/ipsec restart\n", 292 | "/etc/init.d/xl2tpd restart\n", 293 | "\n", 294 | "#VPN 2 - Setup PPTP Server\n", 295 | "apt-get install pptpd -y\n", 296 | "echo \"localip 10.0.0.1\" >> /etc/pptpd.conf\n", 297 | "echo \"remoteip 10.0.0.100-200\" >> /etc/pptpd.conf\n", 298 | "echo \"$VPN_USER pptpd $VPN_PASSWORD *\" >> /etc/ppp/chap-secrets\n", 299 | "echo \"ms-dns 8.8.8.8\" >> /etc/ppp/pptpd-options\n", 300 | "echo \"ms-dns 8.8.4.4\" >> /etc/ppp/pptpd-options\n", 301 | "service pptpd restart\n", 302 | "\n", 303 | "echo \"net.ipv4.ip_forward = 1\" >> /etc/sysctl.conf\n", 304 | "sysctl -p\n", 305 | "iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE && iptables-save\n" 306 | ] 307 | ] 308 | } 309 | } 310 | }, 311 | "Type": "AWS::EC2::Instance" 312 | } 313 | } 314 | } 315 | -------------------------------------------------------------------------------- /sonar.properties: -------------------------------------------------------------------------------- 1 | # Property values can: 2 | # - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_JDBC_URL} 3 | # - be encrypted. See http://redirect.sonarsource.com/doc/settings-encryption.html 4 | 5 | #-------------------------------------------------------------------------------------------------- 6 | # DATABASE 7 | # 8 | # IMPORTANT: the embedded H2 database is used by default. It is recommended for tests but not for 9 | # production use. Supported databases are MySQL, Oracle, PostgreSQL and Microsoft SQLServer. 10 | 11 | # User credentials. 12 | # Permissions to create tables, indices and triggers must be granted to JDBC user. 13 | # The schema must be created first. 14 | sonar.jdbc.username=sonar 15 | sonar.jdbc.password=sonar 16 | 17 | #----- Embedded Database (default) 18 | # H2 embedded database server listening port, defaults to 9092 19 | #sonar.embeddedDatabase.port=9092 20 | 21 | 22 | #----- MySQL 5.x 23 | # CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci; 24 | # CREATE USER 'sonar' IDENTIFIED BY 'sonar'; 25 | # GRANT ALL ON sonar.* TO 'sonar'@'%' IDENTIFIED BY 'sonar'; 26 | # GRANT ALL ON sonar.* TO 'sonar'@'localhost' IDENTIFIED BY 'sonar'; 27 | # FLUSH PRIVILEGES; 28 | # Only InnoDB storage engine is supported (not myISAM). 29 | # Only the bundled driver is supported. It can not be changed. 30 | sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance 31 | 32 | 33 | #----- Oracle 11g/12c 34 | # - Only thin client is supported 35 | # - Only versions 11.2.x and 12.x of Oracle JDBC driver are supported 36 | # - The JDBC driver must be copied into the directory extensions/jdbc-driver/oracle/ 37 | # - If you need to set the schema, please refer to http://jira.sonarsource.com/browse/SONAR-5000 38 | #sonar.jdbc.url=jdbc:oracle:thin:@localhost:1521/XE 39 | 40 | 41 | #----- PostgreSQL 8.x/9.x 42 | # If you don't use the schema named "public", please refer to http://jira.sonarsource.com/browse/SONAR-5000 43 | #sonar.jdbc.url=jdbc:postgresql://localhost/sonar 44 | 45 | 46 | #----- Microsoft SQLServer 2008/2012/2014 and SQL Azure 47 | # A database named sonar must exist and its collation must be case-sensitive (CS) and accent-sensitive (AS) 48 | # Use the following connection string if you want to use integrated security with Microsoft Sql Server 49 | # Do not set sonar.jdbc.username or sonar.jdbc.password property if you are using Integrated Security 50 | # For Integrated Security to work, you have to download the Microsoft SQL JDBC driver package from 51 | # http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774 52 | # and copy sqljdbc_auth.dll to your path. You have to copy the 32 bit or 64 bit version of the dll 53 | # depending upon the architecture of your server machine. 54 | # This version of SonarQube has been tested with Microsoft SQL JDBC version 4.1 55 | #sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar;integratedSecurity=true 56 | 57 | # Use the following connection string if you want to use SQL Auth while connecting to MS Sql Server. 58 | # Set the sonar.jdbc.username and sonar.jdbc.password appropriately. 59 | #sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar 60 | 61 | 62 | #----- Connection pool settings 63 | # The maximum number of active connections that can be allocated 64 | # at the same time, or negative for no limit. 65 | # The recommended value is 1.2 * max sizes of HTTP/HTTPS pools. For example if both HTTP and 66 | # HTTPS ports are enabled with default sizes (50, see properties sonar.web.http.maxThreads 67 | # and sonar.web.https.maxThreads) then sonar.jdbc.maxActive should be 1.2 * (50 + 50) = 120. 68 | #sonar.jdbc.maxActive=60 69 | 70 | # The maximum number of connections that can remain idle in the 71 | # pool, without extra ones being released, or negative for no limit. 72 | #sonar.jdbc.maxIdle=5 73 | 74 | # The minimum number of connections that can remain idle in the pool, 75 | # without extra ones being created, or zero to create none. 76 | #sonar.jdbc.minIdle=2 77 | 78 | # The maximum number of milliseconds that the pool will wait (when there 79 | # are no available connections) for a connection to be returned before 80 | # throwing an exception, or <= 0 to wait indefinitely. 81 | #sonar.jdbc.maxWait=5000 82 | 83 | #sonar.jdbc.minEvictableIdleTimeMillis=600000 84 | #sonar.jdbc.timeBetweenEvictionRunsMillis=30000 85 | 86 | 87 | 88 | #-------------------------------------------------------------------------------------------------- 89 | # WEB SERVER 90 | 91 | # Web server is executed in a dedicated Java process. By default heap size is 768Mb. 92 | # Use the following property to customize JVM options. 93 | # Recommendations: 94 | # 95 | # The HotSpot Server VM is recommended. The property -server should be added if server mode 96 | # is not enabled by default on your environment: http://docs.oracle.com/javase/7/docs/technotes/guides/vm/server-class.html 97 | # 98 | sonar.web.javaOpts=-Xmx768m -Xms256m -XX:MaxMetaspaceSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true 99 | 100 | # Same as previous property, but allows to not repeat all other settings like -Xmx 101 | #sonar.web.javaAdditionalOpts= 102 | 103 | # Binding IP address. For servers with more than one IP address, this property specifies which 104 | # address will be used for listening on the specified ports. 105 | # By default, ports will be used on all IP addresses associated with the server. 106 | #sonar.web.host=0.0.0.0 107 | 108 | # Web context. When set, it must start with forward slash (for example /sonarqube). 109 | # The default value is root context (empty value). 110 | #sonar.web.context= 111 | 112 | # TCP port for incoming HTTP connections. Disabled when value is -1. 113 | sonar.web.port=9999 114 | 115 | 116 | # Recommendation for HTTPS 117 | # SonarQube natively supports HTTPS. However using a reverse proxy 118 | # infrastructure is the recommended way to set up your SonarQube installation 119 | # on production environments which need to be highly secured. 120 | # This allows to fully master all the security parameters that you want. 121 | 122 | # TCP port for incoming HTTPS connections. Disabled when value is -1 (default). 123 | #sonar.web.https.port=-1 124 | 125 | # HTTPS - the alias used to for the server certificate in the keystore. 126 | # If not specified the first key read in the keystore is used. 127 | #sonar.web.https.keyAlias= 128 | 129 | # HTTPS - the password used to access the server certificate from the 130 | # specified keystore file. The default value is "changeit". 131 | #sonar.web.https.keyPass=changeit 132 | 133 | # HTTPS - the pathname of the keystore file where is stored the server certificate. 134 | # By default, the pathname is the file ".keystore" in the user home. 135 | # If keystoreType doesn't need a file use empty value. 136 | #sonar.web.https.keystoreFile= 137 | 138 | # HTTPS - the password used to access the specified keystore file. The default 139 | # value is the value of sonar.web.https.keyPass. 140 | #sonar.web.https.keystorePass= 141 | 142 | # HTTPS - the type of keystore file to be used for the server certificate. 143 | # The default value is JKS (Java KeyStore). 144 | #sonar.web.https.keystoreType=JKS 145 | 146 | # HTTPS - the name of the keystore provider to be used for the server certificate. 147 | # If not specified, the list of registered providers is traversed in preference order 148 | # and the first provider that supports the keystore type is used (see sonar.web.https.keystoreType). 149 | #sonar.web.https.keystoreProvider= 150 | 151 | # HTTPS - the pathname of the truststore file which contains trusted certificate authorities. 152 | # By default, this would be the cacerts file in your JRE. 153 | # If truststoreFile doesn't need a file use empty value. 154 | #sonar.web.https.truststoreFile= 155 | 156 | # HTTPS - the password used to access the specified truststore file. 157 | #sonar.web.https.truststorePass= 158 | 159 | # HTTPS - the type of truststore file to be used. 160 | # The default value is JKS (Java KeyStore). 161 | #sonar.web.https.truststoreType=JKS 162 | 163 | # HTTPS - the name of the truststore provider to be used for the server certificate. 164 | # If not specified, the list of registered providers is traversed in preference order 165 | # and the first provider that supports the truststore type is used (see sonar.web.https.truststoreType). 166 | #sonar.web.https.truststoreProvider= 167 | 168 | # HTTPS - whether to enable client certificate authentication. 169 | # The default is false (client certificates disabled). 170 | # Other possible values are 'want' (certificates will be requested, but not required), 171 | # and 'true' (certificates are required). 172 | #sonar.web.https.clientAuth=false 173 | 174 | # HTTPS - comma separated list of encryption ciphers to support for HTTPS connections. 175 | # If specified, only the ciphers that are listed and supported by the SSL implementation will be used. 176 | # By default, the default ciphers for the JVM will be used. Note that this usually means that the weak 177 | # export grade ciphers, for instance RC4, will be included in the list of available ciphers. 178 | # The ciphers are specified using the JSSE cipher naming convention (see 179 | # https://www.openssl.org/docs/apps/ciphers.html) 180 | # Example: sonar.web.https.ciphers=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 181 | #sonar.web.https.ciphers= 182 | 183 | # The maximum number of connections that the server will accept and process at any given time. 184 | # When this number has been reached, the server will not accept any more connections until 185 | # the number of connections falls below this value. The operating system may still accept connections 186 | # based on the sonar.web.connections.acceptCount property. The default value is 50 for each 187 | # enabled connector. 188 | #sonar.web.http.maxThreads=50 189 | #sonar.web.https.maxThreads=50 190 | 191 | # The minimum number of threads always kept running. The default value is 5 for each 192 | # enabled connector. 193 | #sonar.web.http.minThreads=5 194 | #sonar.web.https.minThreads=5 195 | 196 | # The maximum queue length for incoming connection requests when all possible request processing 197 | # threads are in use. Any requests received when the queue is full will be refused. 198 | # The default value is 25 for each enabled connector. 199 | #sonar.web.http.acceptCount=25 200 | #sonar.web.https.acceptCount=25 201 | 202 | # TCP port for incoming AJP connections. Disabled if value is -1. Disabled by default. 203 | #sonar.ajp.port=-1 204 | 205 | 206 | #-------------------------------------------------------------------------------------------------- 207 | # ELASTICSEARCH 208 | # Elasticsearch is used to facilitate fast and accurate information retrieval. 209 | # It is executed in a dedicated Java process. 210 | 211 | # JVM options of Elasticsearch process 212 | # Recommendations: 213 | # 214 | # Use HotSpot Server VM. The property -server should be added if server mode 215 | # is not enabled by default on your environment: http://docs.oracle.com/javase/7/docs/technotes/guides/vm/server-class.html 216 | # 217 | #sonar.search.javaOpts=-Xmx1G -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true \ 218 | # -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 \ 219 | # -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError 220 | 221 | # Same as previous property, but allows to not repeat all other settings like -Xmx 222 | #sonar.search.javaAdditionalOpts= 223 | 224 | # Elasticsearch port. Default is 9001. Use 0 to get a free port. 225 | # As a security precaution, should be blocked by a firewall and not exposed to the Internet. 226 | #sonar.search.port=9001 227 | 228 | # Elasticsearch host. The search server will bind this address and the search client will connect to it. 229 | # Default is 127.0.0.1. 230 | # As a security precaution, should NOT be set to a publicly available address. 231 | #sonar.search.host=127.0.0.1 232 | 233 | 234 | #-------------------------------------------------------------------------------------------------- 235 | # UPDATE CENTER 236 | 237 | # Update Center requires an internet connection to request http://update.sonarsource.org 238 | # It is enabled by default. 239 | #sonar.updatecenter.activate=true 240 | 241 | # HTTP proxy (default none) 242 | #http.proxyHost= 243 | #http.proxyPort= 244 | 245 | # NT domain name if NTLM proxy is used 246 | #http.auth.ntlm.domain= 247 | 248 | # SOCKS proxy (default none) 249 | #socksProxyHost= 250 | #socksProxyPort= 251 | 252 | # proxy authentication. The 2 following properties are used for HTTP and SOCKS proxies. 253 | #http.proxyUser= 254 | #http.proxyPassword= 255 | 256 | 257 | #-------------------------------------------------------------------------------------------------- 258 | # LOGGING 259 | 260 | # Level of logs. Supported values are INFO(default), DEBUG and TRACE (DEBUG + SQL + ES requests) 261 | #sonar.log.level=INFO 262 | 263 | # Path to log files. Can be absolute or relative to installation directory. 264 | # Default is /logs 265 | #sonar.path.logs=logs 266 | 267 | # Rolling policy of log files 268 | # - based on time if value starts with "time:", for example by day ("time:yyyy-MM-dd") 269 | # or by month ("time:yyyy-MM") 270 | # - based on size if value starts with "size:", for example "size:10MB" 271 | # - disabled if value is "none". That needs logs to be managed by an external system like logrotate. 272 | #sonar.log.rollingPolicy=time:yyyy-MM-dd 273 | 274 | # Maximum number of files to keep if a rolling policy is enabled. 275 | # - maximum value is 20 on size rolling policy 276 | # - unlimited on time rolling policy. Set to zero to disable old file purging. 277 | #sonar.log.maxFiles=7 278 | 279 | # Access log is the list of all the HTTP requests received by server. If enabled, it is stored 280 | # in the file {sonar.path.logs}/access.log. This file follows the same rolling policy as for 281 | # sonar.log (see sonar.log.rollingPolicy and sonar.log.maxFiles). 282 | #sonar.web.accessLogs.enable=true 283 | 284 | # Format of access log. It is ignored if sonar.web.accessLogs.enable=false. Value is: 285 | # - "common" is the Common Log Format (shortcut for: %h %l %u %user %date "%r" %s %b) 286 | # - "combined" is another format widely recognized (shortcut for: %h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}") 287 | # - else a custom pattern. See http://logback.qos.ch/manual/layouts.html#AccessPatternLayout 288 | #sonar.web.accessLogs.pattern=combined 289 | 290 | 291 | #-------------------------------------------------------------------------------------------------- 292 | # OTHERS 293 | 294 | # Delay in seconds between processing of notification queue. Default is 60 seconds. 295 | #sonar.notifications.delay=60 296 | 297 | # Paths to persistent data files (embedded database and search index) and temporary files. 298 | # Can be absolute or relative to installation directory. 299 | # Defaults are respectively /data and /temp 300 | #sonar.path.data=data 301 | #sonar.path.temp=temp 302 | 303 | 304 | #-------------------------------------------------------------------------------------------------- 305 | # DEVELOPMENT - only for developers 306 | # The following properties MUST NOT be used in production environments. 307 | 308 | # Dev mode allows to reload web sources on changes and to restart server when new versions 309 | # of plugins are deployed. 310 | #sonar.web.dev=false 311 | 312 | # Path to webapp sources for hot-reloading of Ruby on Rails, JS and CSS (only core, 313 | # plugins not supported). 314 | #sonar.web.dev.sources=/path/to/server/sonar-web/src/main/webapp 315 | 316 | # Elasticsearch HTTP connector, for example for KOPF: 317 | # http://lmenezes.com/elasticsearch-kopf/?location=http://localhost:9010 318 | #sonar.search.httpPort=-1 -------------------------------------------------------------------------------- /.bashrc: -------------------------------------------------------------------------------- 1 | ####################################################### 2 | # Adolfo Benedetti's .bashrc file, 3 | # adolfo.benedetti@gmail.com 4 | # a.benedetti@sourcesense.com 5 | # based on Dave Crouse's .bashrc www.usalug.org 6 | # www.bashscripts.org 7 | # Last Modified sep 3 2010 8 | # Running on ubuntu 10.10 beta1 9 | ####################################################### 10 | # EXPORTS 11 | ####################################################### 12 | CLASSPATH=$CLASSPATH:/usr/share/java/xalan2.jar; export CLASSPATH 13 | PATH=$PATH:/usr/lib/festival/ ;PATH=$PATH:/usr/games/fortune/ ;export PATH 14 | export JAVA_HOME=/usr/lib64/jvm/default-java 15 | export JDK_HOME=/usr/lib64/jvm/java-6-openjdk 16 | export ANT_HOME=/usr/share/ant 17 | #export JAVA_HOME=/opt/jdk1.6.0_18 18 | #export JAVA_HOME=/System/Library/Frameworks/JavaVM.frameworkVersions/CurrentJDK/Home #java in osx 19 | export PATH=$PATH:$JDK_HOME/bin 20 | export PATH=$PATH:$ANT_HOME/bin 21 | ##export http_proxy="http://proxycgr.contraloriagen.net:8080/" 22 | ##export https_proxy="http://proxycgr.contraloriagen.net:8080/" 23 | ##export ftp_proxy="http://proxycgr.contraloriagen.net:8080/" 24 | ##export EDITOR=/usr/bin/gedit 25 | export EDITOR=/home/adben/soft/emacs/bin/emacs 26 | ##export LIFERAY_PORTAL=/Liferay-Portal 27 | ##export CATALINA_HOME=/Liferay-Portal/apache-tomcat-6.0.20 28 | ##export ECLIPSE_IDE_HOME=/Liferay-Portal/eclipse 29 | #export MOZ_PLUGIN_PATH=~/.mozilla/plugins 30 | # ~/.bashrc: executed by bash(1) for non-login shells. 31 | # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) 32 | # for examples 33 | # 34 | # If not running interactively, don't do anything 35 | [ -z "$PS1" ] && return 36 | 37 | # don't put duplicate lines in the history. See bash(1) for more options 38 | # ... or force ignoredups and ignorespace 39 | HISTCONTROL=ignoredups:ignorespace 40 | 41 | # append to the history file, don't overwrite it 42 | shopt -s histappend 43 | 44 | # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) 45 | HISTSIZE=10000 46 | HISTFILESIZE=20000 47 | 48 | # Define a few Color's 49 | BLACK='\e[0;30m' 50 | BLUE='\e[0;34m' 51 | GREEN='\e[0;32m' 52 | CYAN='\e[0;36m' 53 | RED='\e[0;31m' 54 | PURPLE='\e[0;35m' 55 | BROWN='\e[0;33m' 56 | LIGHTGRAY='\e[0;37m' 57 | DARKGRAY='\e[1;30m' 58 | LIGHTBLUE='\e[1;34m' 59 | LIGHTGREEN='\e[1;32m' 60 | LIGHTCYAN='\e[1;36m' 61 | LIGHTRED='\e[1;31m' 62 | LIGHTPURPLE='\e[1;35m' 63 | YELLOW='\e[1;33m' 64 | WHITE='\e[1;37m' 65 | NC='\e[0m' # No Color 66 | txtblk='\e[0;30m' # Black - Regular 67 | txtred='\e[0;31m' # Red 68 | txtgrn='\e[0;32m' # Green 69 | txtylw='\e[0;33m' # Yellow 70 | txtblu='\e[0;34m' # Blue 71 | txtpur='\e[0;35m' # Purple 72 | txtcyn='\e[0;36m' # Cyan 73 | txtwht='\e[0;37m' # White 74 | bldblk='\e[1;30m' # Black - Bold 75 | bldred='\e[1;31m' # Red 76 | bldgrn='\e[1;32m' # Green 77 | bldylw='\e[1;33m' # Yellow 78 | bldblu='\e[1;34m' # Blue 79 | bldpur='\e[1;35m' # Purple 80 | bldcyn='\e[1;36m' # Cyan 81 | bldwht='\e[1;37m' # White 82 | unkblk='\e[4;30m' # Black - Underline 83 | undred='\e[4;31m' # Red 84 | undgrn='\e[4;32m' # Green 85 | undylw='\e[4;33m' # Yellow 86 | undblu='\e[4;34m' # Blue 87 | undpur='\e[4;35m' # Purple 88 | undcyn='\e[4;36m' # Cyan 89 | undwht='\e[4;37m' # White 90 | bakblk='\e[40m' # Black - Background 91 | bakred='\e[41m' # Red 92 | badgrn='\e[42m' # Green 93 | bakylw='\e[43m' # Yellow 94 | bakblu='\e[44m' # Blue 95 | bakpur='\e[45m' # Purple 96 | bakcyn='\e[46m' # Cyan 97 | bakwht='\e[47m' # White 98 | txtrst='\e[0m' # Text Reset 99 | 100 | #More EXPORTS 101 | #for golang 102 | export GOROOT=$HOME/soft/go 103 | export GOOS=linux 104 | export GOARCH=386 105 | export GOBIN=$HOME/bin 106 | export PATH=$PATH:$GOBIN 107 | #export MAVEN_OPTS="-Xmx256m -Xms128m" 108 | export MAVEN_OPTS='-Xms128m -Xmx256m -XX:PermSize=128m -XX:-UseGCOverheadLimit' 109 | #export MAVEN_OPTS='-Xms128m -Xmx512m -XX:PermSize=128m -XX:-UseGCOverheadLimit -Dwicket.configuration=development' ##debug wicket oneHippo 110 | ##export MAVEN_OPTS='-Xms128m -Xmx700m -XX:PermSize=128m -XX:-UseGCOverheadLimit' 111 | ##maven customizations 112 | # Formatting constantsqquit 113 | ## let's work with maven colorized, new colors for sed 114 | export BOLD=`tput bold` 115 | export UNDERLINE_ON=`tput smul` 116 | export UNDERLINE_OFF=`tput rmul` 117 | export TEXT_BLACK=`tput setaf 0` 118 | export TEXT_RED=`tput setaf 1` 119 | export TEXT_GREEN=`tput setaf 2` 120 | export TEXT_YELLOW=`tput setaf 3` 121 | export TEXT_BLUE=`tput setaf 4` 122 | export TEXT_MAGENTA=`tput setaf 5` 123 | export TEXT_CYAN=`tput setaf 6` 124 | export TEXT_WHITE=`tput setaf 7` 125 | export BACKGROUND_BLACK=`tput setab 0` 126 | export BACKGROUND_RED=`tput setab 1` 127 | export BACKGROUND_GREEN=`tput setab 2` 128 | export BACKGROUND_YELLOW=`tput setab 3` 129 | export BACKGROUND_BLUE=`tput setab 4` 130 | export BACKGROUND_MAGENTA=`tput setab 5` 131 | export BACKGROUND_CYAN=`tput setab 6` 132 | export BACKGROUND_WHITE=`tput setab 7` 133 | export RESET_FORMATTING=`tput sgr0` 134 | # Wrapper function for Maven's mvn command. 135 | mvn-color() 136 | { 137 | # Filter mvn output using sed 138 | # mvn $@ | sed -e "s/\(\[INFO\]\ \-.*\)/${TEXT_BLUE}${BOLD}\1/g" \ 139 | # -e "s/\(\[INFO\]\ \[.*\)/${RESET_FORMATTING}${BOLD}\1${RESET_FORMATTING}/g" \ 140 | # -e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \ 141 | # -e "s/\(\[INFO\]\ Start.*\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \ 142 | # -e "s/\(\[WARNING\].*\)/${BOLD}${TEXT_YELLOW}\1${RESET_FORMATTING}/g" \ 143 | # -e "s/\(\[ERROR\].*\)/${BOLD}${TEXT_RED}\1${RESET_FORMATTING}/g" \ 144 | # -e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/${BOLD}${TEXT_GREEN}Tests run: \1${RESET_FORMATTING}, Failures: ${BOLD}${TEXT_RED}\2${RESET_FORMATTING}, Errors: ${BOLD}${TEXT_RED}\3${RESET_FORMATTING}, Skipped: ${BOLD}${TEXT_YELLOW}\4${RESET_FORMATTING}/g" 145 | mvn $@ | sed -e "s/\(\[INFO\]\ \-.*\)/${BACKGROUND_WHITE}${TEXT_BLUE}\1/g" \ 146 | -e "s/\(\[INFO\]\ \[.*\)/${RESET_FORMATTING}\1${RESET_FORMATTING}/g" \ 147 | -e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BACKGROUND_BLACK}${TEXT_CYAN}\1${RESET_FORMATTING}/g" \ 148 | -e "s/\(\[INFO\]\ Start.*\)/${BACKGROUND_BLACK}${TEXT_CYAN}\1${RESET_FORMATTING}/g" \ 149 | -e "s/\(\[WARNING\].*\)/${BACKGROUND_BLACK}${TEXT_YELLOW}\1${RESET_FORMATTING}/g" \ 150 | -e "s/\(\[ERROR\].*\)/${BACKGROUND_WHITE}${TEXT_RED}\1${RESET_FORMATTING}/g" \ 151 | -e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/${TEXT_GREEN}Tests run: \1${RESET_FORMATTING}, Failures: ${TEXT_RED}\2${RESET_FORMATTING}, Errors: ${TEXT_RED}\3${RESET_FORMATTING}, Skipped: ${TEXT_CYAN}\4${RESET_FORMATTING}/g" 152 | 153 | # Make sure formatting is reset 154 | echo -ne ${RESET_FORMATTING} 155 | } 156 | 157 | #Also for debuggins 158 | mvnDebug-color() 159 | { 160 | # Filter mvn output using sed 161 | # mvn $@ | sed -e "s/\(\[INFO\]\ \-.*\)/${TEXT_BLUE}${BOLD}\1/g" \ 162 | # -e "s/\(\[INFO\]\ \[.*\)/${RESET_FORMATTING}${BOLD}\1${RESET_FORMATTING}/g" \ 163 | # -e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \ 164 | # -e "s/\(\[INFO\]\ Start.*\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \ 165 | # -e "s/\(\[WARNING\].*\)/${BOLD}${TEXT_YELLOW}\1${RESET_FORMATTING}/g" \ 166 | # -e "s/\(\[ERROR\].*\)/${BOLD}${TEXT_RED}\1${RESET_FORMATTING}/g" \ 167 | # -e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/${BOLD}${TEXT_GREEN}Tests run: \1${RESET_FORMATTING}, Failures: ${BOLD}${TEXT_RED}\2${RESET_FORMATTING}, Errors: ${BOLD}${TEXT_RED}\3${RESET_FORMATTING}, Skipped: ${BOLD}${TEXT_YELLOW}\4${RESET_FORMATTING}/g" 168 | mvnDebug $@ | sed -e "s/\(\[INFO\]\ \-.*\)/${BACKGROUND_WHITE}${TEXT_BLUE}\1/g" \ 169 | -e "s/\(\[INFO\]\ \[.*\)/${RESET_FORMATTING}\1${RESET_FORMATTING}/g" \ 170 | -e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BACKGROUND_BLACK}${TEXT_CYAN}\1${RESET_FORMATTING}/g" \ 171 | -e "s/\(\[INFO\]\ Start.*\)/${BACKGROUND_BLACK}${TEXT_CYAN}\1${RESET_FORMATTING}/g" \ 172 | -e "s/\(\[WARNING\].*\)/${BACKGROUND_BLACK}${TEXT_YELLOW}\1${RESET_FORMATTING}/g" \ 173 | -e "s/\(\[ERROR\].*\)/${BACKGROUND_WHITE}${TEXT_RED}\1${RESET_FORMATTING}/g" \ 174 | -e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/${TEXT_GREEN}Tests run: \1${RESET_FORMATTING}, Failures: ${TEXT_RED}\2${RESET_FORMATTING}, Errors: ${TEXT_RED}\3${RESET_FORMATTING}, Skipped: ${TEXT_CYAN}\4${RESET_FORMATTING}/g" 175 | 176 | # Make sure formatting is reset 177 | echo -ne ${RESET_FORMATTING} 178 | } 179 | 180 | # Override the mvn command with the colorized one. 181 | alias mvn="mvn-color" 182 | # Override the mvnDebug command with the colorized one. 183 | alias mvnDebug="mvnDebug-color" 184 | 185 | alias hist='history | grep $1' #Requires one input 186 | 187 | 188 | # check the window size after each command and, if necessary, 189 | # update the values of LINES and COLUMNS. 190 | shopt -s checkwinsize 191 | 192 | # make less more friendly for non-text input files, see lesspipe(1) 193 | [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" 194 | 195 | # set variable identifying the chroot you work in (used in the prompt below) 196 | if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then 197 | debian_chroot=$(cat /etc/debian_chroot) 198 | fi 199 | 200 | # set a fancy prompt (non-color, unless we know we "want" color) 201 | case "$TERM" in 202 | xterm-color) color_prompt=yes;; 203 | esac 204 | 205 | # uncomment for a colored prompt, if the terminal has the capability; turned 206 | # off by default to not distract the user: the focus in a terminal window 207 | # should be on the output of commands, not on the prompt 208 | force_color_prompt=yes 209 | 210 | if [ -n "$force_color_prompt" ]; then 211 | if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then 212 | # We have color support; assume it's compliant with Ecma-48 213 | # (ISO/IEC-6429). (Lack of such support is extremely rare, and such 214 | # a case would tend to support setf rather than setaf.) 215 | color_prompt=yes 216 | else 217 | color_prompt= 218 | fi 219 | fi 220 | 221 | if [ "$color_prompt" = yes ]; then 222 | # PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' 223 | if [ $UID -eq "0" ]; then 224 | PS1="\[\e[0;34m\][\[\e[0;31m\]\u\[\e[0;34m\]@\[\e[0;31m\]\h\[\e[0;34m\]] \[\e[0;35m\]- \[\e[0;34m\][\[\e[0;31m\]\t\[\e[0;34m\]] \[\e[0;35m\]- \[\e[0;34m\][\[\e[0;31m\]\j \s\[\e[0;34m\]] \n[\[\e[0;31m\]\w\[\e[0;34m\]]\[\e[0;36m\] \$:>\[\e[0m\] " 225 | else 226 | PS1="\[\e[0;34m\][\[\e[0;33m\]\u\[\e[0;34m\]@\[\e[0;33m\]\h\[\e[0;34m\]] \[\e[0;35m\]- \[\e[0;34m\][\[\e[0;33m\]\t\[\e[0;34m\]] \[\e[0;35m\]- \[\e[0;34m\][\[\e[0;33m\]\j \s\[\e[0;34m\]] \n[\[\e[0;33m\]\w\[\e[0;34m\]]\[\e[0;36m\]\$:>\[\e[0m\] " 227 | 228 | fi 229 | else 230 | PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' 231 | fi 232 | unset color_prompt force_color_prompt 233 | 234 | # If this is an xterm set the title to user@host:dir 235 | case "$TERM" in 236 | xterm*|rxvt*) 237 | PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" 238 | ;; 239 | *) 240 | ;; 241 | esac 242 | 243 | ####################################################### 244 | # Aliases 245 | ####################################################### 246 | 247 | # Enable color support of ls and also add handy aliases 248 | if [ -x /usr/bin/dircolors ]; then 249 | test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" 250 | alias ls='ls --color=auto' 251 | #alias dir='dir --color=auto' 252 | #alias vdir='vdir --color=auto' 253 | 254 | alias grep='grep --color=auto' 255 | alias fgrep='fgrep --color=auto' 256 | alias egrep='egrep --color=auto' 257 | fi 258 | 259 | 260 | 261 | 262 | # some more ls aliases 263 | alias ll='ls -alF' 264 | alias la='ls -A' 265 | alias l='ls -CF' 266 | 267 | # Add an "alert" alias for long running commands. Use like so: 268 | # sleep 10; alert 269 | alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' 270 | 271 | # Alias definitions. 272 | # You may want to put all your additions into a separate file like 273 | # ~/.bash_aliases, instead of adding them here directly. 274 | # See /usr/share/doc/bash-doc/examples in the bash-doc package. 275 | 276 | #if [ -f ~/.bash_aliases ]; then 277 | # . ~/.bash_aliases 278 | #fi 279 | 280 | # enable color support of ls and also add handy aliases 281 | if [ "$TERM" != "dumb" ]; then 282 | eval "`dircolors -b`" 283 | alias ls='ls --color=auto' 284 | alias ls='ls -G' 285 | alias dir='ls --color=auto --format=vertical' 286 | alias vdir='ls --color=auto --format=long' 287 | fi 288 | 289 | #mac features 290 | alias starwars='telnet towel.blinkenlights.nl' 291 | alias kijk='qlmanage -p ' 292 | alias tree='ls -R | grep ":$" | sed -e "s/:$//" -e "s/[^-][^\/]*\//--/g" -e "s/^/ /" -e "s/-/|/"' 293 | 294 | 295 | #some go aliases 296 | alias build-and-go='sh ~/Documents/scripts/build-and-go' 297 | 298 | # some more ls aliases 299 | alias ll='ls -l' 300 | alias la='ls -A' 301 | alias l='ls -CF' 302 | alias ua='sudo apt-get update;sudo apt-get upgrade;sudo apt-get clean;sudo apt-get autoclean;sudo apt-get autoremove' 303 | 304 | # alias for my external ip 305 | alias ipext='curl -s ip.appspot.com' 306 | 307 | #some aliases with git --- see peepcode/git stuff but see magit too 308 | alias gst='git status' 309 | alias gl='git pull' 310 | alias gp='git push' 311 | alias gd='git diff | mate' 312 | alias gc='git commit -v' 313 | alias gca='git commit -v -a' 314 | alias gb='git branch' 315 | alias gba='git branch -a' 316 | 317 | #alias susyn = 'sudo synaptic' 318 | alias s='sudo bash' 319 | alias trash='mv -t ~/.local/share/Trash/files --backup=t' 320 | 321 | # Alias's to control hardware 322 | alias cdo='eject /dev/cdrecorder' 323 | alias cdc='eject -t /dev/cdrecorder' 324 | alias dvdo='eject /dev/dvd' 325 | alias dvdc='eject -t /dev/dvd' 326 | alias scan='scanimage -L' 327 | alias playw='for i in *.wav; do play $i; done' 328 | alias playo='for i in *.ogg; do play $i; done' 329 | alias playm='for i in *.mp3; do play $i; done' 330 | alias copydisk='dd if=/dev/dvd of=/dev/cdrecorder' # Copies bit by bit from dvd to cdrecorder drives. 331 | alias dvdrip='vobcopy -i /dev/dvd/ -o ~/DVDs/ -l' 332 | 333 | # Alias's to modified commands 334 | alias ps='ps aux' 335 | alias home='cd ~' 336 | alias pg='ps aux | grep' #requires an argument 337 | alias un='tar -zxvf' 338 | alias mountedinfo='df' 339 | alias ping='ping -c 10' 340 | alias openports='netstat -nape --inet' 341 | alias ns='netstat -alnp --protocol=inet | grep -v CLOSE_WAIT | cut -c-6,21-94 | tail +2' 342 | alias du1='du -h --max-depth=1' 343 | alias da='date "+%Y-%m-%d %A %T %Z"' 344 | alias ebrc='gedit ~/.bashrc' 345 | 346 | # Alias to multiple ls commands 347 | alias la='ls -Al' # show hidden files 348 | alias ls='ls -aF --color=always' # add colors and file type extensions 349 | alias lx='ls -lXB' # sort by extension 350 | alias lk='ls -lSr' # sort by size 351 | alias lc='ls -lcr' # sort by change time 352 | alias lu='ls -lur' # sort by access time 353 | alias lr='ls -lR' # recursive ls 354 | alias lt='ls -ltr' # sort by date 355 | alias lm='ls -al |more' # pipe through 'more' 356 | 357 | # Alias chmod commands 358 | alias mx='chmod a+x' 359 | alias 000='chmod 000' 360 | alias 644='chmod 644' 361 | alias 755='chmod 755' 362 | 363 | # Alias Shortcuts to graphical programs. 364 | alias kwrite='kwrite 2>/dev/null &' 365 | alias firefox='firefox 2>/dev/null &' 366 | alias gaim='gaim 2>/dev/null &' 367 | alias kate='kate 2>/dev/null &' 368 | alias suk='kdesu konqueror 2>/dev/null &' 369 | 370 | # Alias xterm and aterm 371 | alias term='xterm -bg AntiqueWhite -fg Black &' 372 | alias termb='xterm -bg AntiqueWhite -fg NavyBlue &' 373 | alias termg='xterm -bg AntiqueWhite -fg OliveDrab &' 374 | alias termr='xterm -bg AntiqueWhite -fg DarkRed &' 375 | alias aterm='aterm -ls -fg gray -bg black' 376 | alias xtop='xterm -fn 6x13 -bg LightSlateGray -fg black -e top &' 377 | alias xsu='xterm -fn 7x14 -bg DarkOrange4 -fg white -e su &' 378 | 379 | # Alias for lynx web browser 380 | alias bbc='lynx -term=vt100 http://news.bbc.co.uk/text_only.stm' 381 | alias nytimes='lynx -term=vt100 http://nytimes.com' 382 | alias dmregister='lynx -term=vt100 http://desmoinesregister.com' 383 | alias eltiempo='lynx -term=vt100 http://eltiempo.com' 384 | alias meneame='lynx -term=vt100 http://meneame.net' 385 | 386 | # SOME OF MY UNUSED ALIAS's 387 | ####################################################### 388 | 389 | #alias d='echo "Good Morning Adolfo today's date is"; | espeak 390 | 391 | # date +'%A %B %e' | festival --tts; 392 | # alias shrink84='/home/crouse/shrink84/shrink84.sh' 393 | # alias tl='tail -f /var/log/apache/access.log' 394 | # alias te='tail -f /var/log/apache/error.log' 395 | 396 | # SOURCED ALIAS'S AND SCRIPTS 397 | ####################################################### 398 | 399 | ### Begin insertion of bbips alias's ### 400 | ### source ~/.bbips/commandline/bbipsbashrc ##good stuff 401 | ### END bbips alias's ### 402 | 403 | # SPECIAL FUNCTIONS 404 | ####################################################### 405 | 406 | netinfo () 407 | { 408 | echo "--------------- Network Information ---------------" 409 | /sbin/ifconfig | awk /'inet addr/ {print $2}' 410 | /sbin/ifconfig | awk /'Bcast/ {print $3}' 411 | /sbin/ifconfig | awk /'inet addr/ {print $4}' 412 | /sbin/ifconfig | awk /'HWaddr/ {print $4,$5}' 413 | ## echo -e "external ip: "; curl -s ip.appspot.com #sometimes hangs the startup of bash, waiting for the response, better in a ALIAS 414 | echo "---------------------------------------------------" 415 | } 416 | 417 | spin () 418 | { 419 | echo -ne "${RED}-" 420 | echo -ne "${WHITE}\b|" 421 | echo -ne "${BLUE}\bx" 422 | sleep .02 423 | echo -ne "${RED}\b+${NC}" 424 | } 425 | 426 | # cool stuff from googleapis, translate service, word language detection, pronounce, etc. 427 | 428 | detectlanguage() 429 | { 430 | curl -s "http://ajax.googleapis.com/ajax/services/language/detect?v=1.0&q=$(echo "$@" | sed 's/ /%20/g')" | sed 's/{"responseData": {"language":"\([^"]*\)".*/\1\n/' 431 | } 432 | 433 | translate() 434 | { 435 | taal = curl -s "http://ajax.googleapis.com/ajax/services/language/detect?v=1.0&q=$(echo "$1" | sed 's/ /%20/g')" | sed 's/{"responseData": {"language":"\([^"]*\)".*/\1\n/' 436 | echo ${taal} 437 | curl -s "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=$(echo "$1" | sed 's/ /%20/g')&langpair=${taal}%7C$2" | sed 's/{"responseData": {"translatedText":"\([^"]*\)"}, .*}/\1\n/' 438 | } 439 | 440 | traductor() 441 | { 442 | curl -s "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=$(echo "$1" | sed 's/ /%20/g')&langpair=$2%7C$3" | sed 's/{"responseData": {"translatedText":"\([^"]*\)"}, .*}/\1/' 443 | } 444 | 445 | pronounce() 446 | { 447 | wget -qO- $(wget -qO- "http://www.m-w.com/dictionary/$@" | grep 'return au' | sed -r "s|.*return au\('([^']*)', '([^'])[^']*'\).*|http://cougar.eb.com/soundc11/\2/\1|") | aplay -q 448 | } 449 | 450 | psgrep() 451 | { 452 | if [ ! -z $1 ]; then 453 | echo "Grepping for processes matching $1..." 454 | echo -e ps aux | grep -i $1 | grep -v grep 455 | else echo "!! Need name to grep for" 456 | fi 457 | } 458 | 459 | #scpsend () 460 | #{ 461 | #scp -P PORTNUMBERHERE "$@" 462 | #USERNAME@YOURWEBSITE.com:/var/www/html/pathtodirectoryonremoteserver/; 463 | #} 464 | 465 | ####################################################### 466 | # NOTES 467 | ####################################################### 468 | 469 | # To temporarily bypass an alias, we preceed the command with a \ 470 | # EG: the ls command is aliased, but to use the normal ls command you would 471 | # type \ls 472 | 473 | # mount -o loop /home/adben/NAMEOFISO.iso /home/adben/ISOMOUNTDIR/ 474 | # umount /home/adben/NAMEOFISO.iso 475 | # Both commands done as root only. 476 | 477 | 478 | # WELCOME SCREEN 479 | ####################################################### 480 | clear 481 | #for i in 'seq 1 15' ; echo "* "; done ; 482 | #echo -ne "${LIGHTRED} Adolfo Benedetti ${NC}"; 483 | echo -ne " Adolfo Benedetti's linux station"; echo ""; 484 | echo -e ${LIGHTBLUE}; lsb_release -d 485 | echo -e "Kernel Information: "; uname -smr 486 | echo -e ${LIGHTBLUE}; bash --version 487 | echo -ne "${CYAN}";netinfo;mountedinfo ; echo "" 488 | echo -ne "Hello $USER today is "; date 489 | echo -e "${LIGHTRED}"; cal; 490 | #echo -e cal ; echo ""; 491 | #echo cal ; echo ""; 492 | #netinfo; echo ""; mountedinfo ; 493 | #echo -n netinfo;mountedinfo ; echo 494 | #echo -ne "Uptime for this computer is ";uptime | awk /'up/{print $3}' 495 | echo -ne "${LIGHTBLUE}Uptime for this computer is ";uptime | awk /'up/{print $3,$4}' 496 | echo -ne "${LIGHTRED}";fortune; echo ""; 497 | #echo -e "${LIGHTRED}";echo ""; cal ; echo ""; 498 | #echo ""; cal ; echo ""; bash -version 499 | #for i in 'seq 1 15' ; do spin; done ;echo -ne "${LIGHTGRAY} ?? ${NC}"; for i in 'seq 1 15' ; do spin;done ;echo ""; 500 | #echo ""; echo "" 501 | # Source global definitions 502 | 503 | if [ -f ~/.bash_aliases ]; then 504 | . ~/.bash_aliases 505 | fi 506 | 507 | # enable programmable completion features (you don't need to enable 508 | # this, if it's already enabled in /etc/bash.bashrc and /etc/profile 509 | # sources /etc/bash.bashrc). 510 | if [ -f /etc/bash_completion ] && ! shopt -oq posix; then 511 | . /etc/bash_completion 512 | fi 513 | -------------------------------------------------------------------------------- /dk-tomorrow-night.icls: -------------------------------------------------------------------------------- 1 | 2 | 3 | 45 | 46 | 51 | 57 | 63 | 69 | 74 | 80 | 86 | 92 | 97 | 102 | 108 | 114 | 119 | 122 | 128 | 133 | 138 | 144 | 149 | 154 | 159 | 164 | 171 | 177 | 182 | 187 | 192 | 197 | 202 | 208 | 213 | 218 | 223 | 229 | 235 | 241 | 246 | 251 | 256 | 261 | 264 | 267 | 272 | 277 | 282 | 287 | 292 | 297 | 302 | 307 | 310 | 315 | 320 | 325 | 330 | 335 | 338 | 344 | 350 | 355 | 360 | 365 | 370 | 375 | 380 | 385 | 390 | 396 | 401 | 406 | 411 | 416 | 421 | 426 | 432 | 438 | 444 | 450 | 456 | 462 | 467 | 472 | 479 | 484 | 490 | 497 | 504 | 510 | 515 | 522 | 528 | 533 | 538 | 543 | 548 | 553 | 558 | 563 | 566 | 573 | 578 | 584 | 589 | 594 | 601 | 610 | 616 | 621 | 626 | 634 | 639 | 644 | 649 | 654 | 659 | 664 | 669 | 674 | 680 | 685 | 690 | 696 | 701 | 706 | 717 | 725 | 731 | 737 | 743 | 749 | 755 | 761 | 766 | 771 | 777 | 785 | 790 | 796 | 802 | 809 | 814 | 820 | 825 | 833 | 840 | 846 | 852 | 857 | 859 | 860 | -------------------------------------------------------------------------------- /.spacemacs: -------------------------------------------------------------------------------- 1 | 2 | ;; -*- mode: emacs-lisp; lexical-binding: t -*- 3 | ;; This file is loaded by Spacemacs at startup. 4 | ;; It must be stored in your home directory. 5 | 6 | ;;Byte recompile to force emacs version compatibility 7 | ;; (byte-recompile-directory (expand-file-name "~/.emacs.d") 0) 8 | 9 | (defun dotspacemacs/layers () 10 | "Layer configuration: 11 | This function should only modify configuration layer settings." 12 | (setq-default 13 | ;; Base distribution to use. This is a layer contained in the directory 14 | ;; `+distribution'. For now available distributions are `spacemacs-base' 15 | ;; or `spacemacs'. (default 'spacemacs) 16 | dotspacemacs-distribution 'spacemacs 17 | 18 | ;; Lazy installation of layers (i.e. layers are installed only when a file 19 | ;; with a supported type is opened). Possible values are `all', `unused' 20 | ;; and `nil'. `unused' will lazy install only unused layers (i.e. layers 21 | ;; not listed in variable `dotspacemacs-configuration-layers'), `all' will 22 | ;; lazy install any layer that support lazy installation even the layers 23 | ;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy 24 | ;; installation feature and you have to explicitly list a layer in the 25 | ;; variable `dotspacemacs-configuration-layers' to install it. 26 | ;; (default 'unused) 27 | dotspacemacs-enable-lazy-installation 'unused 28 | 29 | ;; If non-nil then Spacemacs will ask for confirmation before installing 30 | ;; a layer lazily. (default t) 31 | dotspacemacs-ask-for-lazy-installation t 32 | 33 | ;; If non-nil layers with lazy install support are lazy installed. 34 | ;; List of additional paths where to look for configuration layers. 35 | ;; Paths must have a trailing slash (i.e. `~/.mycontribs/') 36 | dotspacemacs-configuration-layer-path '() 37 | 38 | ;; List of configuration layers to load. 39 | dotspacemacs-configuration-layers 40 | '( 41 | ;; ---------------------------------------------------------------- 42 | ;; Example of useful layers you may want to use right away. 43 | ;; Uncomment some layer names and press `SPC f e R' (Vim style) or 44 | ;; `M-m f e R' (Emacs style) to install them. 45 | ;; ---------------------------------------------------------------- 46 | helm 47 | osx 48 | auto-completion 49 | (html :variables 50 | css-indent-offset 2 51 | web-mode-code-indent-offset 2 52 | web-mode-markup-indent-offset 2 53 | web-mode-css-indent-offset 2) 54 | (javascript :variables 55 | javascript-disable-tern-port-files nil) 56 | react 57 | ;;tilde 58 | haskell 59 | better-defaults 60 | emacs-lisp 61 | clojure 62 | markdown 63 | (dash :variables 64 | dash-at-point-legacy-mode t) 65 | (git :variables 66 | git-gutter-use-fringe t 67 | git-magit-status-fullscreen nil 68 | git-enable-github-support t) 69 | (go :variables 70 | go-tab-width 4 71 | gofmt-command "goimports" 72 | go-use-gometalinter t) 73 | org 74 | spell-checking 75 | syntax-checking 76 | version-control 77 | gtags 78 | git 79 | github 80 | markdown 81 | (python :variables 82 | python-sort-imports-on-save t 83 | python-enable-yapf-format-on-save t 84 | python-test-runner '(pytest nose)) 85 | asciidoc 86 | ;; yalm 87 | ;;multiple-cursors 88 | ;;neotree 89 | ;; (shell :variables 90 | ;; shell-default-height 30 91 | ;; shell-default-position 'bottom) 92 | ) 93 | 94 | ;; List of additional packages that will be installed without being 95 | ;; wrapped in a layer. If you need some configuration for these 96 | ;; packages, then consider creating a layer. You can also put the 97 | ;; configuration in `dotspacemacs/user-config'. 98 | ;; To use a local version of a package, use the `:location' property: 99 | ;; '(your-package :location "~/path/to/your-package/") 100 | ;; Also include the dependencies as they will not be resolved automatically. 101 | ;; dotspacemacs-additional-packages '() 102 | ;; dotspacemacs-additional-packages '() ;;base 16 themes, see 103 | ;; https://github.com/chriskempson/base16 104 | ;; https://github.com/belak/base16-emacs 105 | ;; https://github.com/syl20bnr/spacemacs/issues/1851 106 | dotspacemacs-additional-packages '(base16-theme 107 | atom-one-dark-theme 108 | nord-theme 109 | dracula-theme 110 | solarized-theme 111 | atom-one-dark-theme 112 | graphql-mode 113 | ng2-mode 114 | all-the-icons 115 | all-the-icons-dired 116 | eslint-fix 117 | prettier-js 118 | circe 119 | gruvbox-theme) 120 | ;; A list of packages that cannot be updated. 121 | dotspacemacs-frozen-packages '() 122 | 123 | ;; A list of packages that will not be installed and loaded. 124 | dotspacemacs-excluded-packages '() 125 | 126 | ;; Defines the behaviour of Spacemacs when installing packages. 127 | ;; Possible values are `used-only', `used-but-keep-unused' and `all'. 128 | ;; `used-only' installs only explicitly used packages and deletes any unused 129 | ;; packages as well as their unused dependencies. `used-but-keep-unused' 130 | ;; installs only the used packages but won't delete unused ones. `all' 131 | ;; installs *all* packages supported by Spacemacs and never uninstalls them. 132 | ;; (default is `used-only') 133 | dotspacemacs-install-packages 'used-only)) 134 | 135 | (defun dotspacemacs/init () 136 | "Initialization: 137 | This function is called at the very beginning of Spacemacs startup, 138 | before layer configuration. 139 | It should only modify the values of Spacemacs settings." 140 | ;; This setq-default sexp is an exhaustive list of all the supported 141 | ;; spacemacs settings. 142 | (setq-default 143 | ;; If non-nil then enable support for the portable dumper. You'll need 144 | ;; to compile Emacs 27 from source following the instructions in file 145 | ;; EXPERIMENTAL.org at to root of the git repository. 146 | ;; (default nil) 147 | dotspacemacs-enable-emacs-pdumper nil 148 | 149 | 150 | ;; File path pointing to emacs 27.1 executable compiled with support 151 | ;; for the portable dumper (this is currently the branch pdumper). 152 | ;; (default "emacs-27.0.50") 153 | dotspacemacs-emacs-pdumper-executable-file "emacs-27.0.50" 154 | 155 | ;; Name of the Spacemacs dump file. This is the file will be created by the 156 | ;; portable dumper in the cache directory under dumps sub-directory. 157 | ;; To load it when starting Emacs add the parameter `--dump-file' 158 | ;; when invoking Emacs 27.1 executable on the command line, for instance: 159 | ;; ./emacs --dump-file=~/.emacs.d/.cache/dumps/spacemacs.pdmp 160 | ;; (default spacemacs.pdmp) 161 | dotspacemacs-emacs-dumper-dump-file "spacemacs.pdmp" 162 | 163 | ;; If non-nil ELPA repositories are contacted via HTTPS whenever it's 164 | ;; possible. Set it to nil if you have no way to use HTTPS in your 165 | ;; environment, otherwise it is strongly recommended to let it set to t. 166 | ;; This variable has no effect if Emacs is launched with the parameter 167 | ;; `--insecure' which forces the value of this variable to nil. 168 | ;; (default t) 169 | dotspacemacs-elpa-https nil 170 | 171 | ;; Maximum allowed time in seconds to contact an ELPA repository. 172 | ;; (default 5) 173 | dotspacemacs-elpa-timeout 25 174 | 175 | ;; Set `gc-cons-threshold' and `gc-cons-percentage' when startup finishes. 176 | ;; This is an advanced option and should not be changed unless you suspect 177 | ;; performance issues due to garbage collection operations. 178 | ;; (default '(100000000 0.1)) 179 | dotspacemacs-gc-cons '(100000000 0.1) 180 | 181 | ;; If non-nil then Spacelpa repository is the primary source to install 182 | ;; a locked version of packages. If nil then Spacemacs will install the 183 | ;; latest version of packages from MELPA. (default nil) 184 | dotspacemacs-use-spacelpa nil 185 | 186 | ;; If non-nil then verify the signature for downloaded Spacelpa archives. 187 | ;; (default nil) 188 | dotspacemacs-verify-spacelpa-archives nil 189 | 190 | ;; If non-nil then spacemacs will check for updates at startup 191 | ;; when the current branch is not `develop'. Note that checking for 192 | ;; new versions works via git commands, thus it calls GitHub services 193 | ;; whenever you start Emacs. (default nil) 194 | dotspacemacs-check-for-update nil 195 | 196 | ;; If non-nil, a form that evaluates to a package directory. For example, to 197 | ;; use different package directories for different Emacs versions, set this 198 | ;; to `emacs-version'. (default 'emacs-version) 199 | dotspacemacs-elpa-subdirectory 'emacs-version 200 | 201 | ;; One of `vim', `emacs' or `hybrid'. 202 | ;; `hybrid' is like `vim' except that `insert state' is replaced by the 203 | ;; `hybrid state' with `emacs' key bindings. The value can also be a list 204 | ;; with `:variables' keyword (similar to layers). Check the editing styles 205 | ;; section of the documentation for details on available variables. 206 | ;; (default 'vim) 207 | dotspacemacs-editing-style 'emacs 208 | 209 | ;; If non-nil output loading progress in `*Messages*' buffer. (default nil) 210 | dotspacemacs-verbose-loading nil 211 | 212 | ;; Specify the startup banner. Default value is `official', it displays 213 | ;; the official spacemacs logo. An integer value is the index of text 214 | ;; banner, `random' chooses a random text banner in `core/banners' 215 | ;; directory. A string value must be a path to an image format supported 216 | ;; by your Emacs build. 217 | ;; If the value is nil then no banner is displayed. (default 'official) 218 | dotspacemacs-startup-banner 'official 219 | 220 | ;; List of items to show in startup buffer or an association list of 221 | ;; the form `(list-type . list-size)`. If nil then it is disabled. 222 | ;; Possible values for list-type are: 223 | ;; `recents' `bookmarks' `projects' `agenda' `todos'. 224 | ;; List sizes may be nil, in which case 225 | ;; `spacemacs-buffer-startup-lists-length' takes effect. 226 | dotspacemacs-startup-lists '((recents . 5) 227 | (projects . 7)) 228 | 229 | ;; True if the home buffer should respond to resize events. (default t) 230 | dotspacemacs-startup-buffer-responsive t 231 | 232 | ;; Default major mode of the scratch buffer (default `text-mode') 233 | dotspacemacs-scratch-mode 'text-mode 234 | 235 | ;; Initial message in the scratch buffer, such as "Welcome to Spacemacs!" 236 | ;; (default nil) 237 | dotspacemacs-initial-scratch-message nil 238 | 239 | ;; List of themes, the first of the list is loaded when spacemacs starts. 240 | ;;qPress `SPC T n' to cycle to the next theme in the list (works great 241 | ;; with 2 themes variants, one dark and one light) 242 | dotspacemacs-themes '(gruvbox 243 | solarized-light 244 | ) 245 | 246 | ;; Set the theme for the Spaceline. Supported themes are `spacemacs', 247 | ;; `all-the-icons', `custom', `doom', `vim-powerline' and `vanilla'. The 248 | ;; first three are spaceline themes. `doom' is the doom-emacs mode-line. 249 | ;; `vanilla' is default Emacs mode-line. `custom' is a user defined themes, 250 | ;; refer to the DOCUMENTATION.org for more info on how to create your own 251 | ;; spaceline theme. Value can be a symbol or list with additional properties. 252 | ;; (default '(spacemacs :separator wave :separator-scale 1.5)) 253 | dotspacemacs-mode-line-theme '(spacemacs :separator wave :separator-scale 1.5) 254 | 255 | ;; If non-nil the cursor color matches the state color in GUI Emacs. 256 | ;; (default t) 257 | dotspacemacs-colorize-cursor-according-to-state t 258 | 259 | ;; Default font, or prioritized list of fonts. `powerline-scale' allows to 260 | ;; quickly tweak the mode-line size to make separators look not too crappy. 261 | dotspacemacs-default-font '("Pragmata Pro Mono" 262 | :size 16 263 | :weight normal 264 | :width normal) 265 | 266 | ;; The leader key (default "SPC") 267 | dotspacemacs-leader-key "SPC" 268 | 269 | ;; The key used for Emacs commands `M-x' (after pressing on the leader key). 270 | ;; (default "SPC") 271 | dotspacemacs-emacs-command-key "SPC" 272 | 273 | 274 | ;; The key used for Vim Ex commands (default ":") 275 | dotspacemacs-ex-command-key ":" 276 | 277 | ;; The leader key accessible in `emacs state' and `insert state' 278 | ;; (default "M-m") 279 | dotspacemacs-emacs-leader-key "M-m" 280 | 281 | ;; Major mode leader key is a shortcut key which is the equivalent of 282 | ;; pressing ` m`. Set it to `nil` to disable it. (default ",") 283 | dotspacemacs-major-mode-leader-key "," 284 | 285 | ;; Major mode leader key accessible in `emacs state' and `insert state'. 286 | ;; (default "C-M-m") 287 | dotspacemacs-major-mode-emacs-leader-key "C-M-m" 288 | 289 | ;; These variables control whether separate commands are bound in the GUI to 290 | ;; the key pairs `C-i', `TAB' and `C-m', `RET'. 291 | ;; Setting it to a non-nil value, allows for separate commands under `C-i' 292 | ;; and TAB or `C-m' and `RET'. 293 | ;; In the terminal, these pairs are generally indistinguishable, so this only 294 | ;; works in the GUI. (default nil) 295 | dotspacemacs-distinguish-gui-tab nil 296 | 297 | ;; Name of the default layout (default "Default") 298 | dotspacemacs-default-layout-name "Default" 299 | 300 | ;; If non-nil the default layout name is displayed in the mode-line. 301 | ;; (default nil) 302 | dotspacemacs-display-default-layout nil 303 | 304 | ;; If non-nil then the last auto saved layouts are resumed automatically upon 305 | ;; start. (default nil) 306 | dotspacemacs-auto-resume-layouts nil 307 | 308 | ;; If non-nil, auto-generate layout name when creating new layouts. Only has 309 | ;; effect when using the "jump to layout by number" commands. (default nil) 310 | dotspacemacs-auto-generate-layout-names nil 311 | 312 | ;; Size (in MB) above which spacemacs will prompt to open the large file 313 | ;; literally to avoid performance issues. Opening a file literally means that 314 | ;; no major mode or minor modes are active. (default is 1) 315 | dotspacemacs-large-file-size 1 316 | 317 | ;; Location where to auto-save files. Possible values are `original' to 318 | ;; auto-save the file in-place, `cache' to auto-save the file to another 319 | ;; file stored in the cache directory and `nil' to disable auto-saving. 320 | ;; (default 'cache) 321 | dotspacemacs-auto-save-file-location 'cache 322 | 323 | ;; Maximum number of rollback slots to keep in the cache. (default 5) 324 | dotspacemacs-max-rollback-slots 5 325 | 326 | ;; If non-nil, the paste transient-state is enabled. While enabled, after you 327 | ;; paste something, pressing `C-j' and `C-k' several times cycles through the 328 | ;; elements in the `kill-ring'. (default nil) 329 | dotspacemacs-enable-paste-transient-state nil 330 | 331 | ;; Which-key delay in seconds. The which-key buffer is the popup listing 332 | ;; the commands bound to the current keystroke sequence. (default 0.4) 333 | dotspacemacs-which-key-delay 0.4 334 | 335 | ;; Which-key frame position. Possible values are `right', `bottom' and 336 | ;; `right-then-bottom'. right-then-bottom tries to display the frame to the 337 | ;; right; if there is insufficient space it displays it at the bottom. 338 | ;; (default 'bottom) 339 | dotspacemacs-which-key-position 'bottom 340 | 341 | ;; Control where `switch-to-buffer' displays the buffer. If nil, 342 | ;; `switch-to-buffer' displays the buffer in the current window even if 343 | ;; another same-purpose window is available. If non-nil, `switch-to-buffer' 344 | ;; displays the buffer in a same-purpose window even if the buffer can be 345 | ;; displayed in the current window. (default nil) 346 | dotspacemacs-switch-to-buffer-prefers-purpose nil 347 | 348 | ;; If non-nil a progress bar is displayed when spacemacs is loading. This 349 | ;; may increase the boot time on some systems and emacs builds, set it to 350 | ;; nil to boost the loading time. (default t) 351 | dotspacemacs-loading-progress-bar t 352 | 353 | ;; If non-nil the frame is fullscreen when Emacs starts up. (default nil) 354 | ;; (Emacs 24.4+ only) 355 | dotspacemacs-fullscreen-at-startup nil 356 | 357 | ;; If non-nil `spacemacs/toggle-fullscreen' will not use native fullscreen. 358 | ;; Use to disable fullscreen animations in OSX. (default nil) 359 | dotspacemacs-fullscreen-use-non-native nil 360 | 361 | ;; If non-nil the frame is maximized when Emacs starts up. 362 | ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. 363 | ;; (default nil) (Emacs 24.4+ only) 364 | dotspacemacs-maximized-at-startup nil 365 | 366 | ;; A value from the range (0..100), in increasing opacity, which describes 367 | ;; the transparency level of a frame when it's active or selected. 368 | ;; Transparency can be toggled through `toggle-transparency'. (default 90) 369 | dotspacemacs-active-transparency 90 370 | 371 | ;; A value from the range (0..100), in increasing opacity, which describes 372 | ;; the transparency level of a frame when it's inactive or deselected. 373 | ;; Transparency can be toggled through `toggle-transparency'. (default 90) 374 | dotspacemacs-inactive-transparency 90 375 | 376 | ;; If non-nil show the titles of transient states. (default t) 377 | dotspacemacs-show-transient-state-title t 378 | 379 | ;; If non-nil show the color guide hint for transient state keys. (default t) 380 | dotspacemacs-show-transient-state-color-guide t 381 | 382 | ;; If non-nil unicode symbols are displayed in the mode line. 383 | ;; If you use Emacs as a daemon and wants unicode characters only in GUI set 384 | ;; the value to quoted `display-graphic-p'. (default t) 385 | dotspacemacs-mode-line-unicode-symbols t 386 | 387 | ;; If non-nil smooth scrolling (native-scrolling) is enabled. Smooth 388 | ;; scrolling overrides the default behavior of Emacs which recenters point 389 | ;; when it reaches the top or bottom of the screen. (default t) 390 | dotspacemacs-smooth-scrolling t 391 | 392 | ;; Control line numbers activation. 393 | ;; If set to `t' or `relative' line numbers are turned on in all `prog-mode' and 394 | ;; `text-mode' derivatives. If set to `relative', line numbers are relative. 395 | ;; This variable can also be set to a property list for finer control: 396 | ;; '(:relative nil 397 | ;; :disabled-for-modes dired-mode 398 | ;; doc-view-mode 399 | ;; markdown-mode 400 | ;; org-mode 401 | ;; pdf-view-mode 402 | ;; text-mode 403 | ;; :size-limit-kb 1000) 404 | ;; (default nil) 405 | dotspacemacs-line-numbers nil 406 | 407 | ;; Code folding method. Possible values are `evil' and `origami'. 408 | ;; (default 'evil) 409 | dotspacemacs-folding-method 'evil 410 | 411 | ;; If non-nil `smartparens-strict-mode' will be enabled in programming modes. 412 | ;; (default nil) 413 | dotspacemacs-smartparens-strict-mode nil 414 | 415 | ;; If non-nil pressing the closing parenthesis `)' key in insert mode passes 416 | ;; over any automatically added closing parenthesis, bracket, quote, etc… 417 | ;; This can be temporary disabled by pressing `C-q' before `)'. (default nil) 418 | dotspacemacs-smart-closing-parenthesis nil 419 | 420 | ;; Select a scope to highlight delimiters. Possible values are `any', 421 | ;; `current', `all' or `nil'. Default is `all' (highlight any scope and 422 | ;; emphasis the current one). (default 'all) 423 | dotspacemacs-highlight-delimiters 'all 424 | 425 | ;; If non-nil, start an Emacs server if one is not already running. 426 | ;; (default nil) 427 | dotspacemacs-enable-server nil 428 | 429 | ;; Set the emacs server socket location. 430 | ;; If nil, uses whatever the Emacs default is, otherwise a directory path 431 | ;; like \"~/.emacs.d/server\". It has no effect if 432 | ;; `dotspacemacs-enable-server' is nil. 433 | ;; (default nil) 434 | dotspacemacs-server-socket-dir nil 435 | 436 | ;; If non-nil, advise quit functions to keep server open when quitting. 437 | ;; (default nil) 438 | dotspacemacs-persistent-server nil 439 | 440 | ;; List of search tool executable names. Spacemacs uses the first installed 441 | ;; tool of the list. Supported tools are `rg', `ag', `pt', `ack' and `grep'. 442 | ;; (default '("rg" "ag" "pt" "ack" "grep")) 443 | dotspacemacs-search-tools '("rg" "ag" "pt" "ack" "grep") 444 | 445 | ;; Format specification for setting the frame title. 446 | ;; %a - the `abbreviated-file-name', or `buffer-name' 447 | ;; %t - `projectile-project-name' 448 | ;; %I - `invocation-name' 449 | ;; %S - `system-name' 450 | ;; %U - contents of $USER 451 | ;; %b - buffer name 452 | ;; %f - visited file name 453 | ;; %F - frame name 454 | ;; %s - process status 455 | ;; %p - percent of buffer above top of window, or Top, Bot or All 456 | ;; %P - percent of buffer above bottom of window, perhaps plus Top, or Bot or All 457 | ;; %m - mode name 458 | ;; %n - Narrow if appropriate 459 | ;; %z - mnemonics of buffer, terminal, and keyboard coding systems 460 | ;; %Z - like %z, but including the end-of-line format 461 | ;; (default "%I@%S") 462 | dotspacemacs-frame-title-format "%I@%S" 463 | 464 | ;; Format specification for setting the icon title format 465 | ;; (default nil - same as frame-title-format) 466 | dotspacemacs-icon-title-format nil 467 | 468 | ;; Delete whitespace while saving buffer. Possible values are `all' 469 | ;; to aggressively delete empty line and long sequences of whitespace, 470 | ;; `trailing' to delete only the whitespace at end of lines, `changed' to 471 | ;; delete only whitespace for changed lines or `nil' to disable cleanup. 472 | ;; (default nil) 473 | dotspacemacs-whitespace-cleanup nil 474 | 475 | ;; Either nil or a number of seconds. If non-nil zone out after the specified 476 | ;; number of seconds. (default nil) 477 | dotspacemacs-zone-out-when-idle nil 478 | 479 | 480 | ;; Run `spacemacs/prettify-org-buffer' when 481 | ;; visiting README.org files of Spacemacs. 482 | ;; (default nil) 483 | dotspacemacs-pretty-docs nil)) 484 | 485 | (defun dotspacemacs/user-env () 486 | "Environment variables setup. 487 | This function defines the environment variables for your Emacs session. By 488 | default it calls `spacemacs/load-spacemacs-env' which loads the environment 489 | variables declared in `~/.spacemacs.env' or `~/.spacemacs.d/.spacemacs.env'. 490 | See the header of this file for more information." 491 | (spacemacs/load-spacemacs-env)) 492 | 493 | (defun dotspacemacs/user-init () 494 | "Initialization for user code: 495 | This function is called immediately after `dotspacemacs/init', before layer 496 | configuration. 497 | It is mostly for variables that should be set before packages are loaded. 498 | If you are unsure, try setting them in `dotspacemacs/user-config' first." 499 | ) 500 | 501 | ;;Clojure cookbook 502 | (defun increment-clojure-cookbook () 503 | "When reading the Clojure cookbook, find the next section, and 504 | close the buffer. If the next section is a sub-directory or in 505 | the next chapter, open Dired so you can find it manually." 506 | (interactive) 507 | (let* ((cur (buffer-name)) 508 | (split-cur (split-string cur "[-_]")) 509 | (chap (car split-cur)) 510 | (rec (car (cdr split-cur))) 511 | (rec-num (string-to-number rec)) 512 | (next-rec-num (1+ rec-num)) 513 | (next-rec-s (number-to-string next-rec-num)) 514 | (next-rec (if (< next-rec-num 10) 515 | (concat "0" next-rec-s) 516 | next-rec-s)) 517 | (target (file-name-completion (concat chap "-" next-rec) ""))) 518 | (progn 519 | (if (equal target nil) 520 | (dired (file-name-directory (buffer-file-name))) 521 | (find-file target)) 522 | (kill-buffer cur)))) 523 | 524 | (defun dotspacemacs/user-load () 525 | "Library to load while dumping. 526 | This function is called only while dumping Spacemacs configuration. You can 527 | `require' or `load' the libraries of your choice that will be included in the 528 | dump." 529 | ) 530 | 531 | (defun dotspacemacs/user-config () 532 | "Configuration for user code: 533 | This function is called at the very end of Spacemacs startup, after layer 534 | configuration. 535 | Put your configuration code here, except for variables that should be set 536 | before packages are loaded." 537 | 538 | (require 'gruvbox ) 539 | 540 | ;;fixes the loading helm errors 541 | (require 'helm) 542 | (require 'tramp) 543 | 544 | ;;Reading adoc files 545 | (require 'adoc-mode) 546 | (setq auto-mode-alist (append '(("\\.asciidoc$" . adoc-mode)) 547 | auto-mode-alist)) 548 | 549 | ;; Add icon support for neotree 550 | ;; Don't forget to install the fonts https://github.com/domtronn/all-the-icons.el 551 | (require 'all-the-icons) 552 | (setq neo-theme (if (display-graphic-p) 'icons 'arrow) 553 | neo-banner-message "") 554 | 555 | ;; Add all-the-icons to dired-mode 556 | (add-hook 'dired-mode-hook 'all-the-icons-dired-mode) 557 | 558 | ;; Disabling js2 mode errors & warnings 559 | (setq js2-mode-show-parse-errors nil) 560 | (setq js2-mode-show-strict-warnings nil) 561 | 562 | ;;Clojure cookbook 563 | (define-key adoc-mode-map (kbd "M-+") 'increment-clojure-cookbook) 564 | 565 | ;;JS mode 566 | (setq-default js2-basic-offset 2) 567 | (setq-default js-indent-level 2) 568 | 569 | ;;Clojure cider warnings 570 | (setq cljr-suppress-middleware-warnings t) 571 | 572 | ;;Themes 573 | (setq-default dotspacemacs-themes '(base16-tomorrow-night)) 574 | 575 | (setq clojure-enable-fancify-symbols t) 576 | ;;(spacemacs/set-font "PragmataPro Mono" 12) 577 | 578 | ;;Duplify lines 579 | (global-set-key "\C-c\C-d" "\C-a\C- \C-n\M-w\C-y") 580 | 581 | ;;Paredit 582 | (autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t) 583 | (add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode) 584 | (add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode) 585 | (add-hook 'ielm-mode-hook #'enable-paredit-mode) 586 | (add-hook 'lisp-mode-hook #'enable-paredit-mode) 587 | (add-hook 'clojure-mode-hook #'enable-paredit-mode) 588 | (add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode) 589 | (add-hook 'scheme-mode-hook #'enable-paredit-mode) 590 | ) 591 | 592 | 593 | ;; Do not write anything past this comment. This is where Emacs will 594 | ;; auto-generate custom variable definitions. 595 | (custom-set-variables 596 | ;; custom-set-variables was added by Custom. 597 | ;; If you edit it by hand, you could mess it up, so be careful. 598 | ;; Your init file should contain only one such instance. 599 | ;; If there is more than one, they won't work right. 600 | '(custom-safe-themes 601 | (quote 602 | ("a22f40b63f9bc0a69ebc8ba4fbc6b452a4e3f84b80590ba0a92b4ff599e53ad0" "80930c775cef2a97f2305bae6737a1c736079fdcc62a6fdf7b55de669fbbcd13" "3380a2766cf0590d50d6366c5a91e976bdc3c413df963a0ab9952314b4577299" "7bfd38733dc58478d2104c30114022a88ddb92540fa4fb7516f79e55967a348d" "fa2b58bb98b62c3b8cf3b6f02f058ef7827a8e497125de0254f56e373abee088" default))) 603 | '(evil-want-Y-yank-to-eol nil) 604 | '(package-selected-packages 605 | (quote 606 | (parseedn parseclj a intero hlint-refactor hindent helm-hoogle haskell-snippets flycheck-haskell company-ghci company-ghc ghc haskell-mode company-cabal cmm-mode transient lv sesman circe prettier-js nord-theme eslint-fix org-mime solarized-theme oneonone hexrgb ng2-mode typescript-mode graphql-mode dracula-theme atom-one-dark-theme all-the-icons-dired all-the-icons memoize font-lock+ ghub let-alist magit-gh-pulls github-search github-clone github-browse-file gist gh marshal logito ht org-category-capture yaml-mode gntp parent-mode gitignore-mode fringe-helper git-gutter+ pos-tip flx evil-unimpaired goto-chg edn peg eval-sexp-fu queue pkg-info epl popup diminish yapfify pyvenv pytest pyenv-mode py-isort pip-requirements live-py-mode hy-mode helm-pydoc cython-mode company-anaconda anaconda-mode pythonic base16-theme winum unfill fuzzy paredit log4e packed adoc-mode markup-faces bind-key bind-map powerline spinner org highlight pcache projectile go-eldoc git-gutter iedit company-go hydra inflections multiple-cursors cider seq clojure-mode yasnippet auto-complete company anzu smartparens evil undo-tree flycheck go-mode request helm helm-core avy markdown-mode alert magit magit-popup git-commit with-editor async dash s hide-comnt go-guru uuidgen pug-mode osx-dictionary org-projectile org-download mwim livid-mode skewer-mode simple-httpd link-hint git-link flyspell-correct-helm flyspell-correct flycheck-gometalinter eyebrowse evil-visual-mark-mode evil-ediff dumb-jump f column-enforce-mode clojure-snippets darktooth-theme xkcd web-mode web-beautify tagedit slim-mode scss-mode sass-mode rvm ruby-tools ruby-test-mode rubocop rspec-mode robe reveal-in-osx-finder rbenv pbcopy osx-trash lua-mode less-css-mode launchctl json-mode json-snatcher json-reformat js2-refactor js2-mode js-doc jade-mode helm-gtags helm-css-scss haml-mode ggtags emmet-mode company-web web-completion-data company-tern dash-functional tern coffee-mode chruby bundler inf-ruby helm-dash dash-at-point xterm-color ws-butler window-numbering which-key volatile-highlights vi-tilde-fringe use-package toc-org spacemacs-theme spaceline smooth-scrolling smeargle shell-pop restart-emacs rainbow-delimiters quelpa popwin persp-mode pcre2el paradox page-break-lines orgit org-repo-todo org-present org-pomodoro org-plus-contrib org-bullets open-junk-file neotree multi-term move-text mmm-mode markdown-toc magit-gitflow macrostep lorem-ipsum linum-relative leuven-theme info+ indent-guide ido-vertical-mode hungry-delete htmlize hl-todo highlight-parentheses highlight-numbers highlight-indentation help-fns+ helm-themes helm-swoop helm-projectile helm-mode-manager helm-make helm-gitignore helm-flyspell helm-flx helm-descbinds helm-company helm-c-yasnippet helm-ag google-translate golden-ratio gnuplot gitconfig-mode gitattributes-mode git-timemachine git-messenger git-gutter-fringe git-gutter-fringe+ gh-md flycheck-pos-tip flx-ido fill-column-indicator fancy-battery expand-region exec-path-from-shell evil-visualstar evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-magit evil-lisp-state evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-args evil-anzu eshell-prompt-extras esh-help elisp-slime-nav diff-hl define-word company-statistics company-quickhelp clj-refactor clean-aindent-mode cider-eval-sexp-fu buffer-move bracketed-paste auto-yasnippet auto-highlight-symbol auto-dictionary auto-compile aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line ac-ispell))) 607 | '(safe-local-variable-values 608 | (quote 609 | ((eval when 610 | (fboundp 611 | (quote rainbow-mode)) 612 | (rainbow-mode 1)) 613 | (no-bytpe-compile . t))))) 614 | ;; ;;Dash configurations https://github.com/stanaka/dash-at-point#readme 615 | ;; (add-to-list 'load-path "/Users/adolfo/.emacs.d/elpa/dash-20160619.611") 616 | ;; (autoload 'dash-at-point "dash-at-point" 617 | ;; "Search the word at point with Dash." t nil) 618 | ;; (global-set-key "\C-cd" 'dash) 619 | ;; (global-set-key "\C-ce" 'dash-at-point-with-docset) 620 | (custom-set-faces 621 | ;; custom-set-faces was added by Custom. 622 | ;; If you edit it by hand, you could mess it up, so be careful. 623 | ;; Your init file should contain only one such instance. 624 | ;; If there is more than one, they won't work right. 625 | '(company-tooltip-common ((t (:inherit company-tooltip :weight bold :underline nil)))) 626 | '(company-tooltip-common-selection ((t (:inherit company-tooltip-selection :weight bold :underline nil))))) 627 | -------------------------------------------------------------------------------- /gnome-classic.css: -------------------------------------------------------------------------------- 1 | /* Use the gnome-shell theme, but with light colors */ 2 | /* This stylesheet is generated, DO NOT EDIT */ 3 | /* Copyright 2009, 2015 Red Hat, Inc. 4 | * 5 | * Portions adapted from Mx's data/style/default.css 6 | * Copyright 2009 Intel Corporation 7 | * 8 | * This program is free software; you can redistribute it and/or modify it 9 | * under the terms and conditions of the GNU Lesser General Public License, 10 | * version 2.1, as published by the Free Software Foundation. 11 | * 12 | * This program is distributed in the hope it will be useful, but WITHOUT ANY 13 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14 | * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for 15 | * more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with this program; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 20 | */ 21 | /* GLOBALS */ 22 | stage { 23 | font-family: Noto Sans CJK KR Black, Sans-Serif; 24 | font-size: 12pt; 25 | color: #2e3436; } 26 | 27 | /* WIDGETS */ 28 | /* Buttons */ 29 | .button { 30 | border-radius: 3px; 31 | border-width: 1px; 32 | padding: 4px 32px; 33 | color: #eeeeec; 34 | background-color: #2e3436; 35 | border-color: rgba(0, 0, 0, 0.7); 36 | box-shadow: inset 0 1px #454f52; 37 | text-shadow: 0 1px black; 38 | icon-shadow: 0 1px black; } 39 | .button:focus { 40 | color: #eeeeec; 41 | text-shadow: 0 1px black; 42 | icon-shadow: 0 1px black; 43 | box-shadow: inset 0px 0px 0px 1px #4a90d9; } 44 | .button:insensitive { 45 | color: #8e9192; 46 | border-color: rgba(0, 0, 0, 0.7); 47 | background-color: rgba(65, 71, 72, 0.7); 48 | box-shadow: none; 49 | text-shadow: none; 50 | icon-shadow: none; } 51 | .button:active { 52 | color: white; 53 | border-color: rgba(0, 0, 0, 0.7); 54 | background-color: #222728; 55 | box-shadow: inset 0 0 black; 56 | text-shadow: none; 57 | icon-shadow: none; } 58 | 59 | .modal-dialog-linked-button { 60 | border-right-width: 1px; 61 | color: #eeeeec; 62 | background-color: #2e3436; 63 | border-color: rgba(0, 0, 0, 0.7); 64 | box-shadow: inset 0 1px #454f52; 65 | text-shadow: 0 1px black; 66 | icon-shadow: 0 1px black; 67 | padding: 12px; } 68 | .modal-dialog-linked-button:insensitive { 69 | color: #8e9192; 70 | border-color: rgba(0, 0, 0, 0.7); 71 | background-color: rgba(65, 71, 72, 0.7); 72 | box-shadow: none; 73 | text-shadow: none; 74 | icon-shadow: none; } 75 | .modal-dialog-linked-button:active { 76 | color: white; 77 | border-color: rgba(0, 0, 0, 0.7); 78 | background-color: #222728; 79 | box-shadow: inset 0 0 black; 80 | text-shadow: none; 81 | icon-shadow: none; } 82 | .modal-dialog-linked-button:focus { 83 | color: #eeeeec; 84 | text-shadow: 0 1px black; 85 | icon-shadow: 0 1px black; 86 | box-shadow: inset 0px 0px 0px 1px #4a90d9; } 87 | .modal-dialog-linked-button:first-child { 88 | border-radius: 0px 0px 0px 6px; } 89 | .modal-dialog-linked-button:last-child { 90 | border-right-width: 0px; 91 | border-radius: 0px 0px 6px 0px; } 92 | .modal-dialog-linked-button:first-child:last-child { 93 | border-right-width: 0px; 94 | border-radius: 0px 0px 6px 6px; } 95 | 96 | /* Entries */ 97 | StEntry { 98 | border-radius: 3px; 99 | padding: 4px; 100 | border-width: 1px; 101 | color: #2e3436; 102 | background-color: #ffffff; 103 | border-color: #a1a1a1; 104 | box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4); 105 | selection-background-color: #4a90d9; 106 | selected-color: #ffffff; } 107 | StEntry:focus { 108 | box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4); 109 | border-color: rgba(0, 0, 0, 0.5); } 110 | StEntry:insensitive { 111 | color: #8e9192; 112 | border-color: #f4f4f4; 113 | box-shadow: none; } 114 | StEntry StIcon.capslock-warning { 115 | icon-size: 16px; 116 | warning-color: #f57900; 117 | padding: 0 4px; } 118 | 119 | /* Scrollbars */ 120 | StScrollView.vfade { 121 | -st-vfade-offset: 68px; } 122 | StScrollView.hfade { 123 | -st-hfade-offset: 68px; } 124 | 125 | StScrollBar { 126 | padding: 0; } 127 | StScrollView StScrollBar { 128 | min-width: 14px; 129 | min-height: 14px; } 130 | StScrollBar StBin#trough { 131 | border-radius: 0; 132 | background-color: transparent; } 133 | StScrollBar StButton#vhandle, StScrollBar StButton#hhandle { 134 | border-radius: 8px; 135 | background-color: #7a7e7f; 136 | margin: 3px; } 137 | StScrollBar StButton#vhandle:hover, StScrollBar StButton#hhandle:hover { 138 | background-color: #54595b; } 139 | StScrollBar StButton#vhandle:active, StScrollBar StButton#hhandle:active { 140 | background-color: #4a90d9; } 141 | 142 | /* Slider */ 143 | .slider { 144 | height: 1em; 145 | -slider-height: 0.3em; 146 | -slider-background-color: #f4f4f4; 147 | -slider-border-color: #a1a1a1; 148 | -slider-active-background-color: #4a90d9; 149 | -slider-active-border-color: #2a76c6; 150 | -slider-border-width: 1px; 151 | -slider-handle-radius: 6px; } 152 | 153 | /* Check Boxes */ 154 | .check-box StBoxLayout { 155 | spacing: .8em; } 156 | .check-box StBin { 157 | width: 24px; 158 | height: 22px; 159 | background-image: url("resource:///org/gnome/shell/theme/checkbox-off.svg"); } 160 | .check-box:focus StBin { 161 | background-image: url("resource:///org/gnome/shell/theme/checkbox-off-focused.svg"); } 162 | .check-box:checked StBin { 163 | background-image: url("resource:///org/gnome/shell/theme/checkbox.svg"); } 164 | .check-box:focus:checked StBin { 165 | background-image: url("resource:///org/gnome/shell/theme/checkbox-focused.svg"); } 166 | 167 | /* Switches */ 168 | .toggle-switch { 169 | width: 65px; 170 | height: 22px; 171 | background-size: contain; } 172 | 173 | .toggle-switch-us { 174 | background-image: url("resource:///org/gnome/shell/theme/toggle-off-us.svg"); } 175 | .toggle-switch-us:checked { 176 | background-image: url("resource:///org/gnome/shell/theme/toggle-on-us.svg"); } 177 | 178 | .toggle-switch-intl { 179 | background-image: url("resource:///org/gnome/shell/theme/toggle-off-intl.svg"); } 180 | .toggle-switch-intl:checked { 181 | background-image: url("resource:///org/gnome/shell/theme/toggle-on-intl.svg"); } 182 | 183 | /* links */ 184 | .shell-link { 185 | color: #2a76c6; } 186 | .shell-link:hover { 187 | color: #4a90d9; } 188 | 189 | /* Modal Dialogs */ 190 | .headline { 191 | font-size: 110%; } 192 | 193 | .lightbox { 194 | background-color: black; } 195 | 196 | .flashspot { 197 | background-color: white; } 198 | 199 | .modal-dialog { 200 | border-radius: 9px; 201 | color: #eeeeec; 202 | background-color: rgba(23, 25, 26, 0.95); 203 | border: 3px solid rgba(238, 238, 236, 0.5); } 204 | .modal-dialog .modal-dialog-content-box { 205 | padding: 24px; } 206 | .modal-dialog .run-dialog-entry { 207 | width: 20em; 208 | margin-bottom: 6px; } 209 | .modal-dialog .run-dialog-error-box { 210 | padding-top: 16px; 211 | spacing: 6px; } 212 | .modal-dialog .run-dialog-button-box { 213 | padding-top: 1em; } 214 | .modal-dialog .run-dialog-label { 215 | font-size: 12pt; 216 | font-weight: bold; 217 | color: #d6d6d1; 218 | padding-bottom: .4em; } 219 | 220 | .show-processes-dialog-subject, 221 | .mount-question-dialog-subject, 222 | .end-session-dialog-subject { 223 | font-size: 14pt; } 224 | 225 | /* End Session Dialog */ 226 | .end-session-dialog { 227 | spacing: 42px; 228 | border: 3px solid rgba(238, 238, 236, 0.2); } 229 | 230 | .end-session-dialog-list { 231 | padding-top: 20px; } 232 | 233 | .end-session-dialog-layout { 234 | padding-left: 17px; } 235 | .end-session-dialog-layout:rtl { 236 | padding-right: 17px; } 237 | 238 | .end-session-dialog-description { 239 | width: 28em; 240 | padding-bottom: 10px; } 241 | .end-session-dialog-description:rtl { 242 | text-align: right; } 243 | 244 | .end-session-dialog-warning { 245 | width: 28em; 246 | color: #f57900; 247 | padding-top: 6px; } 248 | .end-session-dialog-warning:rtl { 249 | text-align: right; } 250 | 251 | .end-session-dialog-logout-icon { 252 | border-radius: 5px; 253 | width: 48px; 254 | height: 48px; 255 | background-size: contain; } 256 | 257 | .end-session-dialog-shutdown-icon { 258 | color: #2e3436; 259 | width: 48px; 260 | height: 48px; } 261 | 262 | .end-session-dialog-inhibitor-layout { 263 | spacing: 16px; 264 | max-height: 200px; 265 | padding-right: 65px; 266 | padding-left: 65px; } 267 | 268 | .end-session-dialog-session-list, 269 | .end-session-dialog-app-list { 270 | spacing: 1em; } 271 | 272 | .end-session-dialog-list-header { 273 | font-weight: bold; } 274 | .end-session-dialog-list-header:rtl { 275 | text-align: right; } 276 | 277 | .end-session-dialog-app-list-item, 278 | .end-session-dialog-session-list-item { 279 | spacing: 1em; } 280 | 281 | .end-session-dialog-app-list-item-name, 282 | .end-session-dialog-session-list-item-name { 283 | font-weight: bold; } 284 | 285 | .end-session-dialog-app-list-item-description { 286 | color: #222728; 287 | font-size: 10pt; } 288 | 289 | /* ShellMountOperation Dialogs */ 290 | .shell-mount-operation-icon { 291 | icon-size: 48px; } 292 | 293 | .show-processes-dialog, 294 | .mount-question-dialog { 295 | spacing: 24px; } 296 | 297 | .show-processes-dialog-subject, 298 | .mount-question-dialog-subject { 299 | padding-top: 10px; 300 | padding-left: 17px; 301 | padding-bottom: 6px; } 302 | 303 | .mount-question-dialog-subject { 304 | max-width: 500px; } 305 | 306 | .show-processes-dialog-subject:rtl, 307 | .mount-question-dialog-subject:rtl { 308 | padding-left: 0px; 309 | padding-right: 17px; } 310 | 311 | .show-processes-dialog-description, 312 | .mount-question-dialog-description { 313 | padding-left: 17px; 314 | width: 28em; } 315 | 316 | .show-processes-dialog-description:rtl, 317 | .mount-question-dialog-description:rtl { 318 | padding-right: 17px; } 319 | 320 | .show-processes-dialog-app-list { 321 | max-height: 200px; 322 | padding-top: 24px; 323 | padding-left: 49px; 324 | padding-right: 32px; } 325 | 326 | .show-processes-dialog-app-list:rtl { 327 | padding-right: 49px; 328 | padding-left: 32px; } 329 | 330 | .show-processes-dialog-app-list-item { 331 | color: #17191a; } 332 | .show-processes-dialog-app-list-item:hover { 333 | color: #2e3436; } 334 | .show-processes-dialog-app-list-item:ltr { 335 | padding-right: 1em; } 336 | .show-processes-dialog-app-list-item:rtl { 337 | padding-left: 1em; } 338 | 339 | .show-processes-dialog-app-list-item-icon:ltr { 340 | padding-right: 17px; } 341 | .show-processes-dialog-app-list-item-icon:rtl { 342 | padding-left: 17px; } 343 | 344 | .show-processes-dialog-app-list-item-name { 345 | font-size: 10pt; } 346 | 347 | /* Password or Authentication Dialog */ 348 | .prompt-dialog { 349 | width: 500px; 350 | border: 3px solid rgba(238, 238, 236, 0.2); } 351 | 352 | .prompt-dialog-main-layout { 353 | spacing: 24px; 354 | padding: 10px; } 355 | 356 | .prompt-dialog-message-layout { 357 | spacing: 16px; } 358 | 359 | .prompt-dialog-headline { 360 | font-weight: bold; 361 | color: #b2b2a9; } 362 | 363 | .prompt-dialog-description:rtl { 364 | text-align: right; } 365 | 366 | .prompt-dialog-password-box { 367 | spacing: 1em; 368 | padding-bottom: 1em; } 369 | 370 | .prompt-dialog-error-label { 371 | font-size: 10pt; 372 | color: #cc0000; 373 | padding-bottom: 8px; } 374 | 375 | .prompt-dialog-info-label { 376 | font-size: 10pt; 377 | padding-bottom: 8px; } 378 | 379 | .hidden { 380 | color: transparent; } 381 | 382 | .prompt-dialog-null-label { 383 | font-size: 10pt; 384 | padding-bottom: 8px; } 385 | 386 | /* Polkit Dialog */ 387 | .polkit-dialog-user-layout { 388 | padding-left: 10px; 389 | spacing: 10px; } 390 | .polkit-dialog-user-layout:rtl { 391 | padding-left: 0px; 392 | padding-right: 10px; } 393 | 394 | .polkit-dialog-user-root-label { 395 | color: #f57900; } 396 | 397 | .polkit-dialog-user-icon { 398 | border-radius: 5px; 399 | background-size: contain; 400 | width: 48px; 401 | height: 48px; } 402 | 403 | /* Network Agent Dialog */ 404 | .network-dialog-secret-table { 405 | spacing-rows: 15px; 406 | spacing-columns: 1em; } 407 | 408 | .keyring-dialog-control-table { 409 | spacing-rows: 15px; 410 | spacing-columns: 1em; } 411 | 412 | /* Popvers/Menus */ 413 | .popup-menu { 414 | min-width: 200px; } 415 | .popup-menu .popup-sub-menu { 416 | background-color: #e8e8e8; 417 | box-shadow: inset 0 -1px 0px #adadad; } 418 | .popup-menu .popup-menu-content { 419 | padding: 1em 0em; } 420 | .popup-menu .popup-menu-item { 421 | spacing: 12px; } 422 | .popup-menu .popup-menu-item:ltr { 423 | padding: .4em 1.75em .4em 0em; } 424 | .popup-menu .popup-menu-item:rtl { 425 | padding: .4em 0em .4em 1.75em; } 426 | .popup-menu .popup-menu-item:checked { 427 | background-color: #e8e8e8; 428 | box-shadow: inset 0 1px 0px #adadad; 429 | font-weight: bold; } 430 | .popup-menu .popup-menu-item.selected { 431 | background-color: rgba(46, 52, 54, 0.1); 432 | color: #2e3436; } 433 | .popup-menu .popup-menu-item:active { 434 | background-color: #4a90d9; 435 | color: #ffffff; } 436 | .popup-menu .popup-menu-item:insensitive { 437 | color: rgba(46, 52, 54, 0.5); } 438 | .popup-menu .popup-inactive-menu-item { 439 | color: #2e3436; } 440 | .popup-menu .popup-inactive-menu-item:insensitive { 441 | color: rgba(46, 52, 54, 0.5); } 442 | .popup-menu.panel-menu { 443 | -boxpointer-gap: 4px; 444 | margin-bottom: 1.75em; } 445 | 446 | .popup-menu-ornament { 447 | text-align: right; 448 | width: 1.2em; } 449 | 450 | .popup-menu-boxpointer, 451 | .candidate-popup-boxpointer { 452 | -arrow-border-radius: 3px; 453 | -arrow-background-color: #ededed; 454 | -arrow-border-width: 1px; 455 | -arrow-border-color: #a1a1a1; 456 | -arrow-base: 24px; 457 | -arrow-rise: 11px; 458 | -arrow-box-shadow: 0 1px 3px black; } 459 | 460 | .popup-separator-menu-item { 461 | height: 1px; 462 | margin: 6px 64px; 463 | background-color: transparent; 464 | border-color: #bababa; 465 | border-bottom-width: 1px; 466 | border-bottom-style: solid; } 467 | 468 | .background-menu { 469 | -boxpointer-gap: 4px; 470 | -arrow-rise: 0px; } 471 | 472 | /* fallback menu 473 | - odd thing for styling App menu when apparently not running under shell. Light Adwaita styled 474 | app menu inside the main app window itself rather than the top bar 475 | */ 476 | /* OSD */ 477 | .osd-window { 478 | text-align: center; 479 | font-weight: bold; 480 | spacing: 1em; 481 | margin: 32px; 482 | min-width: 64px; 483 | min-height: 64px; } 484 | .osd-window .osd-monitor-label { 485 | font-size: 3em; } 486 | .osd-window .level { 487 | height: 0.6em; 488 | border-radius: 0.3em; 489 | background-color: rgba(11, 12, 13, 0.5); 490 | color: #eeeeec; } 491 | 492 | /* App Switcher */ 493 | .switcher-popup { 494 | padding: 8px; 495 | spacing: 16px; } 496 | 497 | .switcher-list-item-container { 498 | spacing: 8px; } 499 | 500 | .switcher-list .item-box { 501 | padding: 8px; 502 | border-radius: 4px; } 503 | 504 | .switcher-list .item-box:outlined { 505 | padding: 6px; 506 | border: 2px solid #878787; } 507 | 508 | .switcher-list .item-box:selected { 509 | background-color: #4a90d9; 510 | color: #ffffff; } 511 | 512 | .switcher-list .thumbnail-box { 513 | padding: 2px; 514 | spacing: 4px; } 515 | 516 | .switcher-list .thumbnail { 517 | width: 256px; } 518 | 519 | .switcher-list .separator { 520 | width: 1px; 521 | background: #a1a1a1; } 522 | 523 | .switcher-arrow { 524 | border-color: transparent; 525 | color: rgba(46, 52, 54, 0.8); } 526 | .switcher-arrow:highlighted { 527 | color: #2e3436; } 528 | 529 | .input-source-switcher-symbol { 530 | font-size: 34pt; 531 | width: 96px; 532 | height: 96px; } 533 | 534 | /* Workspace Switcher */ 535 | .workspace-switcher-group { 536 | padding: 12px; } 537 | 538 | .workspace-switcher { 539 | background: transparent; 540 | border: 0px; 541 | border-radius: 0px; 542 | padding: 0px; 543 | spacing: 8px; } 544 | 545 | .ws-switcher-active-up, .ws-switcher-active-down { 546 | height: 50px; 547 | background-color: #4a90d9; 548 | color: #ffffff; 549 | background-size: 32px; 550 | border-radius: 8px; } 551 | 552 | .ws-switcher-box { 553 | height: 50px; 554 | border: 1px solid rgba(238, 238, 236, 0.1); 555 | background: transparent; 556 | border-radius: 8px; } 557 | 558 | .osd-window, 559 | .resize-popup, 560 | .switcher-list, .workspace-switcher-container { 561 | color: #eeeeec; 562 | background-color: #2e3436; 563 | border: 1px solid rgba(238, 238, 236, 0.2); 564 | border-radius: 12px; 565 | padding: 12px; } 566 | 567 | /* Tiled window previews */ 568 | .tile-preview { 569 | background-color: rgba(74, 144, 217, 0.5); 570 | border: 1px solid #4a90d9; } 571 | 572 | .tile-preview-left.on-primary { 573 | border-radius: 6px 6px 0 0; } 574 | 575 | .tile-preview-right.on-primary { 576 | border-radius: 0 6px 0 0; } 577 | 578 | .tile-preview-left.tile-preview-right.on-primary { 579 | border-radius: 6px 6px 0 0; } 580 | 581 | /* TOP BAR */ 582 | #panel { 583 | background-color: black; 584 | font-weight: bold; 585 | height: 1.86em; } 586 | #panel.unlock-screen, #panel.login-screen, #panel.lock-screen { 587 | background-color: transparent; } 588 | #panel #panelLeft, #panel #panelCenter { 589 | spacing: 4px; } 590 | #panel .panel-corner { 591 | -panel-corner-radius: 6px; 592 | -panel-corner-background-color: black; 593 | -panel-corner-border-width: 2px; 594 | -panel-corner-border-color: transparent; } 595 | #panel .panel-corner:active, #panel .panel-corner:overview, #panel .panel-corner:focus { 596 | -panel-corner-border-color: #5f9ddd; } 597 | #panel .panel-corner.lock-screen, #panel .panel-corner.login-screen, #panel .panel-corner.unlock-screen { 598 | -panel-corner-radius: 0; 599 | -panel-corner-background-color: transparent; 600 | -panel-corner-border-color: transparent; } 601 | #panel .panel-button { 602 | -natural-hpadding: 12px; 603 | -minimum-hpadding: 6px; 604 | font-weight: bold; 605 | color: #ccc; 606 | transition-duration: 100ms; } 607 | #panel .panel-button .app-menu-icon { 608 | -st-icon-style: symbolic; 609 | margin-left: 4px; 610 | margin-right: 4px; } 611 | #panel .panel-button:hover { 612 | color: #454f52; } 613 | #panel .panel-button:active, #panel .panel-button:overview, #panel .panel-button:focus, #panel .panel-button:checked { 614 | background-color: rgba(0, 0, 0, 0.01); 615 | box-shadow: inset 0 -2px 0px #5f9ddd; 616 | color: #454f52; } 617 | #panel .panel-button:active > .system-status-icon, #panel .panel-button:overview > .system-status-icon, #panel .panel-button:focus > .system-status-icon, #panel .panel-button:checked > .system-status-icon { 618 | icon-shadow: black 0 2px 2px; } 619 | #panel .panel-button .system-status-icon { 620 | icon-size: 1.09em; 621 | padding: 0 5px; } 622 | .unlock-screen #panel .panel-button, .login-screen #panel .panel-button, .lock-screen #panel .panel-button { 623 | color: #454f52; } 624 | .unlock-screen #panel .panel-button:focus, .unlock-screen #panel .panel-button:hover, .unlock-screen #panel .panel-button:active, .login-screen #panel .panel-button:focus, .login-screen #panel .panel-button:hover, .login-screen #panel .panel-button:active, .lock-screen #panel .panel-button:focus, .lock-screen #panel .panel-button:hover, .lock-screen #panel .panel-button:active { 625 | color: #454f52; } 626 | #panel .panel-status-indicators-box, 627 | #panel .panel-status-menu-box { 628 | spacing: 2px; } 629 | #panel .screencast-indicator { 630 | color: #f57900; } 631 | 632 | #calendarArea { 633 | padding: 0.75em 1.0em; } 634 | 635 | .calendar { 636 | margin-bottom: 1em; } 637 | 638 | .calendar, 639 | .datemenu-today-button, 640 | .datemenu-displays-box, 641 | .message-list-sections { 642 | margin: 0 1.5em; } 643 | 644 | .datemenu-calendar-column { 645 | spacing: 0.5em; } 646 | 647 | .datemenu-displays-section { 648 | padding-bottom: 3em; } 649 | 650 | .datemenu-today-button, 651 | .world-clocks-button, 652 | .message-list-section-title { 653 | border-radius: 4px; 654 | padding: .4em; } 655 | 656 | .message-list-section-list:ltr { 657 | padding-left: .4em; } 658 | 659 | .message-list-section-list:rtl { 660 | padding-right: .4em; } 661 | 662 | .datemenu-today-button:hover, .datemenu-today-button:focus, 663 | .world-clocks-button:hover, 664 | .world-clocks-button:focus, 665 | .message-list-section-title:hover, 666 | .message-list-section-title:focus { 667 | background-color: #fafafa; } 668 | .datemenu-today-button:active, 669 | .world-clocks-button:active, 670 | .message-list-section-title:active { 671 | color: white; 672 | background-color: #4a90d9; } 673 | 674 | .datemenu-today-button .date-label { 675 | font-size: 1.5em; } 676 | 677 | .world-clocks-header, 678 | .message-list-section-title { 679 | color: black; 680 | font-weight: bold; } 681 | 682 | .world-clocks-grid { 683 | spacing-rows: 0.4em; } 684 | 685 | .calendar-month-label { 686 | color: #222728; 687 | font-weight: bold; 688 | padding: 8px 0; } 689 | 690 | .pager-button { 691 | color: white; 692 | background-color: transparent; 693 | width: 32px; 694 | border-radius: 4px; } 695 | .pager-button:hover, .pager-button:focus { 696 | background-color: rgba(46, 52, 54, 0.05); } 697 | .pager-button:active { 698 | background-color: rgba(237, 237, 237, 0.05); } 699 | 700 | .calendar-change-month-back { 701 | background-image: url("resource:///org/gnome/shell/theme/calendar-arrow-left.svg"); } 702 | .calendar-change-month-back:rtl { 703 | background-image: url("resource:///org/gnome/shell/theme/calendar-arrow-right.svg"); } 704 | 705 | .calendar-change-month-forward { 706 | background-image: url("resource:///org/gnome/shell/theme/calendar-arrow-right.svg"); } 707 | .calendar-change-month-forward:rtl { 708 | background-image: url("resource:///org/gnome/shell/theme/calendar-arrow-left.svg"); } 709 | 710 | .calendar-day-base { 711 | font-size: 80%; 712 | text-align: center; 713 | width: 2.4em; 714 | height: 2.4em; 715 | padding: 0.1em; 716 | margin: 2px; 717 | border-radius: 1.4em; } 718 | .calendar-day-base:hover, .calendar-day-base:focus { 719 | background-color: #fafafa; } 720 | .calendar-day-base:active { 721 | color: white; 722 | background-color: #4a90d9; 723 | border-color: transparent; } 724 | .calendar-day-base.calendar-day-heading { 725 | color: black; 726 | margin-top: 1em; 727 | font-size: 70%; } 728 | 729 | .calendar-day { 730 | border-width: 0; } 731 | 732 | .calendar-day-top { 733 | border-top-width: 1px; } 734 | 735 | .calendar-day-left { 736 | border-left-width: 1px; } 737 | 738 | .calendar-nonwork-day { 739 | color: #8e9192; } 740 | 741 | .calendar-today { 742 | font-weight: bold; 743 | border: 1px solid rgba(161, 161, 161, 0.5); } 744 | 745 | .calendar-day-with-events { 746 | color: #454f52; 747 | font-weight: bold; 748 | background-image: url("resource:///org/gnome/shell/theme/calendar-today.svg"); } 749 | 750 | .calendar-other-month-day { 751 | color: rgba(46, 52, 54, 0.15); 752 | opacity: 0.5; } 753 | 754 | /* Message list */ 755 | .message-list { 756 | width: 420px; } 757 | 758 | .message-list-sections { 759 | spacing: 1.5em; } 760 | 761 | .message-list-section, 762 | .message-list-section-list { 763 | spacing: 0.7em; } 764 | 765 | .message-list-section-title-box { 766 | spacing: 0.4em; } 767 | 768 | .message-list-section-close > StIcon { 769 | icon-size: 16px; 770 | border-radius: 8px; 771 | color: #ededed; 772 | background-color: black; } 773 | 774 | /* FIXME: how do you do this in sass? */ 775 | .message-list-section-close:hover > StIcon, 776 | .message-list-section-close:focus > StIcon { 777 | background-color: black; } 778 | 779 | .message { 780 | background-color: #fafafa; 781 | border-radius: 3px; } 782 | .message:hover, .message:focus { 783 | background-color: white; } 784 | 785 | .message-icon-bin { 786 | padding: 8px 0px 8px 8px; } 787 | .message-icon-bin:rtl { 788 | padding: 8px 8px 8px 0px; } 789 | 790 | .message-icon-bin > StIcon { 791 | icon-size: 32px; } 792 | 793 | .message-secondary-bin:ltr { 794 | padding-left: 8px; } 795 | .message-secondary-bin:rtl { 796 | padding-right: 8px; } 797 | 798 | .message-secondary-bin { 799 | color: black; } 800 | 801 | .message-secondary-bin > StIcon { 802 | icon-size: 16px; } 803 | 804 | .message-title { 805 | font-weight: bold; 806 | font-size: 1.1em; } 807 | 808 | .message-content { 809 | padding: 8px; 810 | font-size: .9em; } 811 | 812 | .system-switch-user-submenu-icon.user-icon { 813 | icon-size: 20px; 814 | padding: 0 2px; } 815 | 816 | .system-switch-user-submenu-icon.default-icon { 817 | icon-size: 16px; 818 | padding: 0 4px; } 819 | 820 | #appMenu { 821 | spinner-image: url("resource:///org/gnome/shell/theme/process-working.svg"); 822 | spacing: 4px; } 823 | #appMenu .label-shadow { 824 | color: transparent; } 825 | 826 | .aggregate-menu { 827 | width: 280px; } 828 | .aggregate-menu .popup-menu-icon { 829 | padding: 0 4px; } 830 | 831 | .system-menu-action { 832 | color: #2e3436; 833 | border-radius: 32px; 834 | /* wish we could do 50% */ 835 | padding: 13px; 836 | border: 1px solid #adadad; } 837 | .system-menu-action:hover, .system-menu-action:focus { 838 | background-color: rgba(46, 52, 54, 0.1); 839 | color: #2e3436; 840 | border: none; 841 | padding: 14px; } 842 | .system-menu-action:active { 843 | background-color: #4a90d9; 844 | color: #ffffff; } 845 | .system-menu-action > StIcon { 846 | icon-size: 16px; } 847 | 848 | .ripple-box { 849 | width: 52px; 850 | height: 52px; 851 | background-image: url("resource:///org/gnome/shell/theme/corner-ripple-ltr.png"); 852 | background-size: contain; } 853 | 854 | .ripple-box:rtl { 855 | background-image: url("resource:///org/gnome/shell/theme/corner-ripple-rtl.png"); } 856 | 857 | .popup-menu-arrow { 858 | width: 16px; 859 | height: 16px; } 860 | 861 | .popup-menu-icon { 862 | icon-size: 1.09em; } 863 | 864 | .window-close { 865 | background-image: url("resource:///org/gnome/shell/theme/close-window.svg"); 866 | background-size: 32px; 867 | height: 32px; 868 | width: 32px; } 869 | 870 | .window-close { 871 | -shell-close-overlap: 16px; } 872 | .window-close:rtl { 873 | -st-background-image-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5); } 874 | 875 | /* NETWORK DIALOGS */ 876 | .nm-dialog { 877 | max-height: 500px; 878 | min-height: 450px; 879 | min-width: 470px; } 880 | 881 | .nm-dialog-content { 882 | spacing: 20px; 883 | padding: 24px; } 884 | 885 | .nm-dialog-header-hbox { 886 | spacing: 10px; } 887 | 888 | .nm-dialog-airplane-box { 889 | spacing: 12px; } 890 | 891 | .nm-dialog-airplane-headline { 892 | font-weight: bold; 893 | text-align: center; } 894 | 895 | .nm-dialog-airplane-text { 896 | color: #2e3436; } 897 | 898 | .nm-dialog-header-icon { 899 | icon-size: 32px; } 900 | 901 | .nm-dialog-scroll-view { 902 | border: 2px solid #a1a1a1; } 903 | 904 | .nm-dialog-header { 905 | font-weight: bold; } 906 | 907 | .nm-dialog-item { 908 | font-size: 110%; 909 | border-bottom: 1px solid #a1a1a1; 910 | padding: 12px; 911 | spacing: 20px; } 912 | 913 | .nm-dialog-item:selected { 914 | background-color: #4a90d9; 915 | color: #ffffff; } 916 | 917 | .nm-dialog-icons { 918 | spacing: .5em; } 919 | 920 | .nm-dialog-icon { 921 | icon-size: 16px; } 922 | 923 | .no-networks-label { 924 | color: #999999; } 925 | 926 | .no-networks-box { 927 | spacing: 12px; } 928 | 929 | /* OVERVIEW */ 930 | #overview { 931 | spacing: 24px; } 932 | 933 | .overview-controls { 934 | padding-bottom: 32px; } 935 | 936 | .window-picker { 937 | -horizontal-spacing: 32px; 938 | -vertical-spacing: 32px; 939 | padding-left: 32px; 940 | padding-right: 32px; 941 | padding-bottom: 48px; } 942 | .window-picker.external-monitor { 943 | padding: 32px; } 944 | 945 | .window-clone-border { 946 | border: 4px solid #4a90d9; 947 | border-radius: 4px; 948 | box-shadow: inset 0px 0px 0px 1px #4a90d9; } 949 | 950 | .window-caption { 951 | spacing: 25px; 952 | color: #eeeeec; 953 | background-color: rgba(46, 52, 54, 0.7); 954 | border-radius: 8px; 955 | padding: 4px 12px; 956 | -shell-caption-spacing: 12px; } 957 | .window-caption:hover { 958 | background-color: #4a90d9; 959 | color: #ffffff; } 960 | 961 | .search-entry { 962 | width: 320px; 963 | padding: 7px 9px; 964 | border-radius: 6px; } 965 | .search-entry:focus { 966 | padding: 6px 8px; 967 | border-width: 2px; } 968 | .search-entry .search-entry-icon { 969 | icon-size: 1em; 970 | padding: 0 4px; 971 | color: rgba(46, 52, 54, 0.7); } 972 | .search-entry:hover .search-entry-icon, .search-entry:focus .search-entry-icon { 973 | color: #2e3436; } 974 | 975 | #searchResultsBin { 976 | max-width: 1000px; } 977 | 978 | #searchResultsContent { 979 | padding-left: 20px; 980 | padding-right: 20px; 981 | spacing: 16px; } 982 | 983 | .search-section { 984 | spacing: 16px; } 985 | 986 | .search-section-content { 987 | spacing: 32px; } 988 | 989 | .list-search-results { 990 | spacing: 3px; } 991 | 992 | .search-section-separator { 993 | -gradient-height: 1px; 994 | -gradient-start: rgba(255, 255, 255, 0); 995 | -gradient-end: rgba(255, 255, 255, 0.1); 996 | -margin-horizontal: 1.5em; 997 | height: 1px; } 998 | 999 | .list-search-result-content { 1000 | spacing: 12px; 1001 | padding: 12px; } 1002 | 1003 | .list-search-result-title { 1004 | font-size: 1.5em; 1005 | color: #e2e2df; } 1006 | 1007 | .list-search-result-description { 1008 | color: #cacac4; } 1009 | 1010 | .search-provider-icon { 1011 | padding: 15px; } 1012 | 1013 | .search-provider-icon-more { 1014 | width: 16px; 1015 | height: 16px; 1016 | background-image: url("resource:///org/gnome/shell/theme/more-results.svg"); } 1017 | 1018 | /* DASHBOARD */ 1019 | #dash { 1020 | font-size: 9pt; 1021 | color: #eeeeec; 1022 | background-color: #2e3436; 1023 | padding: 4px 0; 1024 | border: 1px solid rgba(128, 128, 128, 0.4); 1025 | border-left: 0px; 1026 | border-radius: 0px 9px 9px 0px; } 1027 | #dash:rtl { 1028 | border-radius: 9px 0 0 9px; } 1029 | #dash .placeholder { 1030 | background-image: url("resource:///org/gnome/shell/theme/dash-placeholder.svg"); 1031 | background-size: contain; 1032 | height: 24px; } 1033 | #dash .empty-dash-drop-target { 1034 | width: 24px; 1035 | height: 24px; } 1036 | 1037 | .dash-item-container > StWidget { 1038 | padding: 4px 8px; } 1039 | 1040 | .dash-label { 1041 | border-radius: 7px; 1042 | padding: 4px 12px; 1043 | color: #eeeeec; 1044 | background-color: rgba(46, 52, 54, 0.7); 1045 | text-align: center; 1046 | -x-offset: 8px; } 1047 | 1048 | /* App Vault/Grid */ 1049 | .icon-grid { 1050 | spacing: 30px; 1051 | -shell-grid-horizontal-item-size: 136px; 1052 | -shell-grid-vertical-item-size: 136px; } 1053 | .icon-grid .overview-icon { 1054 | icon-size: 96px; } 1055 | 1056 | .app-view-controls { 1057 | padding-bottom: 32px; } 1058 | 1059 | .app-view-control { 1060 | padding: 4px 32px; } 1061 | .app-view-control:checked { 1062 | color: white; 1063 | border-color: rgba(0, 0, 0, 0.7); 1064 | background-color: #222728; 1065 | box-shadow: inset 0 0 black; 1066 | text-shadow: none; 1067 | icon-shadow: none; } 1068 | .app-view-control:first-child { 1069 | border-right-width: 0; 1070 | border-radius: 3px 0 0 3px; } 1071 | .app-view-control:last-child { 1072 | border-radius: 0 3px 3px 0; } 1073 | 1074 | .search-provider-icon:active, .search-provider-icon:checked, 1075 | .list-search-result:active, 1076 | .list-search-result:checked { 1077 | background-color: rgba(23, 25, 26, 0.9); } 1078 | .search-provider-icon:focus, .search-provider-icon:selected, .search-provider-icon:hover, 1079 | .list-search-result:focus, 1080 | .list-search-result:selected, 1081 | .list-search-result:hover { 1082 | background-color: rgba(238, 238, 236, 0.1); 1083 | transition-duration: 200ms; } 1084 | 1085 | .app-well-app:active .overview-icon, .app-well-app:checked .overview-icon, 1086 | .app-well-app.app-folder:active .overview-icon, 1087 | .app-well-app.app-folder:checked .overview-icon, 1088 | .show-apps:active .overview-icon, 1089 | .show-apps:checked .overview-icon, 1090 | .grid-search-result:active .overview-icon, 1091 | .grid-search-result:checked .overview-icon { 1092 | background-color: rgba(23, 25, 26, 0.9); 1093 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7); } 1094 | .app-well-app:hover .overview-icon, .app-well-app:focus .overview-icon, .app-well-app:selected .overview-icon, 1095 | .app-well-app.app-folder:hover .overview-icon, 1096 | .app-well-app.app-folder:focus .overview-icon, 1097 | .app-well-app.app-folder:selected .overview-icon, 1098 | .show-apps:hover .overview-icon, 1099 | .show-apps:focus .overview-icon, 1100 | .show-apps:selected .overview-icon, 1101 | .grid-search-result:hover .overview-icon, 1102 | .grid-search-result:focus .overview-icon, 1103 | .grid-search-result:selected .overview-icon { 1104 | background-color: rgba(238, 238, 236, 0.1); 1105 | transition-duration: 0ms; 1106 | border-image: none; 1107 | background-image: none; } 1108 | 1109 | .app-well-app-running-dot { 1110 | width: 10px; 1111 | height: 3px; 1112 | background-color: #4a90d9; 1113 | margin-bottom: 2px; } 1114 | 1115 | .search-provider-icon, 1116 | .list-search-result, .app-well-app .overview-icon, 1117 | .app-well-app.app-folder .overview-icon, 1118 | .show-apps .overview-icon, 1119 | .grid-search-result .overview-icon { 1120 | color: #eeeeec; 1121 | border-radius: 4px; 1122 | padding: 6px; 1123 | border: 1px solid transparent; 1124 | transition-duration: 100ms; 1125 | text-align: center; } 1126 | 1127 | .app-well-app.app-folder > .overview-icon { 1128 | background-color: rgba(46, 52, 54, 0.4); } 1129 | 1130 | .show-apps:checked .show-apps-icon, 1131 | .show-apps:focus .show-apps-icon { 1132 | color: white; 1133 | transition-duration: 100ms; } 1134 | 1135 | .app-folder-popup { 1136 | -arrow-border-radius: 8px; 1137 | -arrow-background-color: rgba(46, 52, 54, 0.3); 1138 | -arrow-base: 24px; 1139 | -arrow-rise: 11px; } 1140 | 1141 | .app-folder-popup-bin { 1142 | padding: 5px; } 1143 | 1144 | .app-folder-icon { 1145 | padding: 5px; 1146 | spacing-rows: 5px; 1147 | spacing-columns: 5px; } 1148 | 1149 | .page-indicator { 1150 | padding: 15px 20px; } 1151 | .page-indicator .page-indicator-icon { 1152 | width: 18px; 1153 | height: 18px; 1154 | background-image: url(resource:///org/gnome/shell/theme/page-indicator-inactive.svg); } 1155 | .page-indicator:hover .page-indicator-icon { 1156 | background-image: url(resource:///org/gnome/shell/theme/page-indicator-hover.svg); } 1157 | .page-indicator:active .page-indicator-icon { 1158 | background-image: url(resource:///org/gnome/shell/theme/page-indicator-active.svg); } 1159 | .page-indicator:checked .page-indicator-icon, .page-indicator:checked:active { 1160 | background-image: url(resource:///org/gnome/shell/theme/page-indicator-checked.svg); } 1161 | 1162 | .app-well-app > .overview-icon.overview-icon-with-label, 1163 | .grid-search-result .overview-icon.overview-icon-with-label { 1164 | padding: 10px 8px 5px 8px; 1165 | spacing: 4px; } 1166 | 1167 | .workspace-thumbnails { 1168 | visible-width: 32px; 1169 | spacing: 11px; 1170 | padding: 8px; 1171 | border-radius: 9px 0 0 9px; } 1172 | .workspace-thumbnails:rtl { 1173 | border-radius: 0 9px 9px 0; } 1174 | 1175 | .workspace-thumbnail-indicator { 1176 | border: 4px solid #4a90d9; 1177 | padding: 1px; } 1178 | 1179 | .search-display > StBoxLayout, 1180 | .all-apps, 1181 | .frequent-apps > StBoxLayout { 1182 | padding: 0px 88px 10px 88px; } 1183 | 1184 | .workspace-thumbnails { 1185 | color: #eeeeec; 1186 | background-color: #2e3436; 1187 | border: 1px solid rgba(238, 238, 236, 0.2); } 1188 | 1189 | .search-statustext, .no-frequent-applications-label { 1190 | font-size: 2em; 1191 | font-weight: bold; 1192 | color: #2e3436; } 1193 | 1194 | /* NOTIFICATIONS & MESSAGE TRAY */ 1195 | .url-highlighter { 1196 | link-color: #74aae2; } 1197 | 1198 | .notification-banner { 1199 | font-size: 11pt; 1200 | width: 34em; 1201 | margin: 5px; 1202 | border-radius: 6px; 1203 | color: #eeeeec; 1204 | background-color: #2e3436; 1205 | border: 1px solid #a1a1a1; } 1206 | .notification-banner:hover { 1207 | background-color: #2e3436; } 1208 | .notification-banner:focus { 1209 | background-color: #2e3436; } 1210 | .notification-banner .notification-icon { 1211 | padding: 5px; } 1212 | .notification-banner .notification-content { 1213 | padding: 5px; 1214 | spacing: 5px; } 1215 | .notification-banner .secondary-icon { 1216 | icon-size: 1.09em; } 1217 | .notification-banner .notification-actions { 1218 | background-color: #a1a1a1; 1219 | padding-top: 2px; 1220 | spacing: 1px; } 1221 | .notification-banner .notification-button { 1222 | padding: 4px 4px 5px; 1223 | background-color: #222728; } 1224 | .notification-banner .notification-button:first-child { 1225 | border-radius: 0 0 0 6px; } 1226 | .notification-banner .notification-button:last-child { 1227 | border-radius: 0 0 6px 0; } 1228 | .notification-banner .notification-button:hover, .notification-banner .notification-buttonfocus { 1229 | background-color: #292f30; } 1230 | 1231 | .summary-source-counter { 1232 | font-size: 10pt; 1233 | font-weight: bold; 1234 | height: 1.6em; 1235 | width: 1.6em; 1236 | -shell-counter-overlap-x: 3px; 1237 | -shell-counter-overlap-y: 3px; 1238 | background-color: #4a90d9; 1239 | color: #ffffff; 1240 | border: 2px solid #eeeeec; 1241 | box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5); 1242 | border-radius: 0.9em; } 1243 | 1244 | .secondary-icon { 1245 | icon-size: 1.09em; } 1246 | 1247 | .chat-body { 1248 | spacing: 5px; } 1249 | 1250 | .chat-response { 1251 | margin: 5px; } 1252 | 1253 | .chat-log-message { 1254 | color: #17191a; } 1255 | 1256 | .chat-new-group { 1257 | padding-top: 1em; } 1258 | 1259 | .chat-received { 1260 | padding-left: 4px; } 1261 | .chat-received:rtl { 1262 | padding-left: 0px; 1263 | padding-right: 4px; } 1264 | 1265 | .chat-sent { 1266 | padding-left: 18pt; 1267 | color: #0b0c0d; } 1268 | .chat-sent:rtl { 1269 | padding-left: 0; 1270 | padding-right: 18pt; } 1271 | 1272 | .chat-meta-message { 1273 | padding-left: 4px; 1274 | font-size: 9pt; 1275 | font-weight: bold; 1276 | color: black; } 1277 | .chat-meta-message:rtl { 1278 | padding-left: 0; 1279 | padding-right: 4px; } 1280 | 1281 | .hotplug-transient-box { 1282 | spacing: 6px; 1283 | padding: 2px 72px 2px 12px; } 1284 | 1285 | .hotplug-notification-item { 1286 | padding: 2px 10px; } 1287 | .hotplug-notification-item:focus { 1288 | padding: 1px 71px 1px 11px; } 1289 | 1290 | .hotplug-notification-item-icon { 1291 | icon-size: 24px; 1292 | padding: 2px 5px; } 1293 | 1294 | .hotplug-resident-box { 1295 | spacing: 8px; } 1296 | 1297 | .hotplug-resident-mount { 1298 | spacing: 8px; 1299 | border-radius: 4px; } 1300 | .hotplug-resident-mount:hover { 1301 | background-color: rgba(237, 237, 237, 0.3); } 1302 | 1303 | .hotplug-resident-mount-label { 1304 | color: inherit; 1305 | padding-left: 6px; } 1306 | 1307 | .hotplug-resident-mount-icon { 1308 | icon-size: 24px; 1309 | padding-left: 6px; } 1310 | 1311 | .hotplug-resident-eject-icon { 1312 | icon-size: 16px; } 1313 | 1314 | .hotplug-resident-eject-button { 1315 | padding: 7px; 1316 | border-radius: 5px; 1317 | color: pink; } 1318 | 1319 | /* Eeeky things */ 1320 | .legacy-tray { 1321 | background-color: #ededed; 1322 | border: 1px solid #a1a1a1; 1323 | border-bottom-width: 0; } 1324 | .legacy-tray:ltr { 1325 | border-radius: 0 6px 0 0; 1326 | border-left-width: 0; } 1327 | .legacy-tray:rtl { 1328 | border-radius: 6px 0 0 0; 1329 | border-right-width: 0; } 1330 | 1331 | .legacy-tray-handle, 1332 | .legacy-tray-icon { 1333 | padding: 6px; } 1334 | .legacy-tray-handle StIcon, 1335 | .legacy-tray-icon StIcon { 1336 | icon-size: 24px; } 1337 | .legacy-tray-handle:hover, .legacy-tray-handle:focus, 1338 | .legacy-tray-icon:hover, 1339 | .legacy-tray-icon:focus { 1340 | background-color: rgba(46, 52, 54, 0.1); } 1341 | 1342 | .legacy-tray-icon-box { 1343 | spacing: 12px; } 1344 | .legacy-tray-icon-box:ltr { 1345 | padding-left: 12px; } 1346 | .legacy-tray-icon-box:rtl { 1347 | padding-right: 12px; } 1348 | .legacy-tray-icon-box StButton { 1349 | width: 24px; 1350 | height: 24px; } 1351 | 1352 | .magnifier-zoom-region { 1353 | border: 2px solid #4a90d9; } 1354 | .magnifier-zoom-region.full-screen { 1355 | border-width: 0; } 1356 | 1357 | /* On-screen Keyboard */ 1358 | #keyboard { 1359 | background-color: rgba(46, 52, 54, 0.7); } 1360 | 1361 | .keyboard-layout { 1362 | spacing: 10px; 1363 | padding: 10px; } 1364 | 1365 | .keyboard-row { 1366 | spacing: 15px; } 1367 | 1368 | .keyboard-key { 1369 | color: #eeeeec; 1370 | background-color: #2e3436; 1371 | border-color: rgba(0, 0, 0, 0.7); 1372 | box-shadow: inset 0 1px #454f52; 1373 | text-shadow: 0 1px black; 1374 | icon-shadow: 0 1px black; 1375 | min-height: 2em; 1376 | min-width: 2em; 1377 | font-size: 14pt; 1378 | font-weight: bold; 1379 | border-radius: 5px; 1380 | border: 1px solid #a1a1a1; 1381 | color: white; } 1382 | .keyboard-key:focus { 1383 | color: #eeeeec; 1384 | text-shadow: 0 1px black; 1385 | icon-shadow: 0 1px black; 1386 | box-shadow: inset 0px 0px 0px 1px #4a90d9; } 1387 | .keyboard-key:hover, .keyboard-key:checked { 1388 | color: white; 1389 | border-color: rgba(0, 0, 0, 0.7); 1390 | background-color: #454f52; 1391 | box-shadow: inset 0 1px #5d696d; 1392 | text-shadow: 0 1px black; 1393 | icon-shadow: 0 1px black; } 1394 | .keyboard-key:active { 1395 | color: white; 1396 | border-color: rgba(0, 0, 0, 0.7); 1397 | background-color: #222728; 1398 | box-shadow: inset 0 0 black; 1399 | text-shadow: none; 1400 | icon-shadow: none; } 1401 | .keyboard-key:grayed { 1402 | background-color: #2e3436; 1403 | color: #eeeeec; 1404 | border-color: rgba(0, 0, 0, 0.7); } 1405 | 1406 | .keyboard-subkeys { 1407 | color: white; 1408 | padding: 5px; 1409 | -arrow-border-radius: 10px; 1410 | -arrow-background-color: rgba(46, 52, 54, 0.7); 1411 | -arrow-border-width: 2px; 1412 | -arrow-border-color: rgba(238, 238, 236, 0.2); 1413 | -arrow-base: 20px; 1414 | -arrow-rise: 10px; 1415 | -boxpointer-gap: 5px; } 1416 | 1417 | .candidate-popup-content { 1418 | padding: 0.5em; 1419 | spacing: 0.3em; } 1420 | 1421 | .candidate-index { 1422 | padding: 0 0.5em 0 0; 1423 | color: #17191a; } 1424 | 1425 | .candidate-box { 1426 | padding: 0.3em 0.5em 0.3em 0.5em; 1427 | border-radius: 4px; } 1428 | .candidate-box:selected, .candidate-box:hover { 1429 | background-color: #4a90d9; 1430 | color: #ffffff; } 1431 | 1432 | .candidate-page-button-box { 1433 | height: 2em; } 1434 | .vertical .candidate-page-button-box { 1435 | padding-top: 0.5em; } 1436 | .horizontal .candidate-page-button-box { 1437 | padding-left: 0.5em; } 1438 | 1439 | .candidate-page-button { 1440 | padding: 4px; } 1441 | 1442 | .candidate-page-button-previous { 1443 | border-radius: 4px 0px 0px 4px; 1444 | border-right-width: 0; } 1445 | 1446 | .candidate-page-button-next { 1447 | border-radius: 0px 4px 4px 0px; } 1448 | 1449 | .candidate-page-button-icon { 1450 | icon-size: 1em; } 1451 | 1452 | /* Auth Dialogs & Screen Shield */ 1453 | .framed-user-icon { 1454 | background-size: contain; 1455 | border: 2px solid #eeeeec; 1456 | color: #eeeeec; 1457 | border-radius: 3px; } 1458 | .framed-user-icon:hover { 1459 | border-color: white; 1460 | color: white; } 1461 | 1462 | .login-dialog-banner-view { 1463 | padding-top: 24px; 1464 | max-width: 23em; } 1465 | 1466 | .login-dialog { 1467 | border: none; 1468 | background-color: transparent; } 1469 | .login-dialog .modal-dialog-button-box { 1470 | spacing: 3px; } 1471 | .login-dialog .modal-dialog-button { 1472 | padding: 3px 18px; } 1473 | .login-dialog .modal-dialog-button:default { 1474 | color: #eeeeec; 1475 | background-color: rgba(74, 144, 217, 0.5); 1476 | border-color: rgba(0, 0, 0, 0.7); 1477 | box-shadow: inset 0 1px #454f52; 1478 | text-shadow: 0 1px black; 1479 | icon-shadow: 0 1px black; } 1480 | .login-dialog .modal-dialog-button:default:hover, .login-dialog .modal-dialog-button:default:focus { 1481 | color: white; 1482 | border-color: rgba(0, 0, 0, 0.7); 1483 | background-color: rgba(74, 144, 217, 0.7); 1484 | box-shadow: inset 0 1px #5d696d; 1485 | text-shadow: 0 1px black; 1486 | icon-shadow: 0 1px black; } 1487 | .login-dialog .modal-dialog-button:default:active { 1488 | color: white; 1489 | border-color: rgba(0, 0, 0, 0.7); 1490 | background-color: #3583d5; 1491 | box-shadow: inset 0 0 black; 1492 | text-shadow: none; 1493 | icon-shadow: none; } 1494 | .login-dialog .modal-dialog-button:default:insensitive { 1495 | color: #8e9192; 1496 | border-color: rgba(0, 0, 0, 0.7); 1497 | background-color: rgba(65, 71, 72, 0.7); 1498 | box-shadow: none; 1499 | text-shadow: none; 1500 | icon-shadow: none; } 1501 | 1502 | .login-dialog-logo-bin { 1503 | padding: 24px 0px; } 1504 | 1505 | .login-dialog-banner { 1506 | color: #d6d6d1; } 1507 | 1508 | .login-dialog-button-box { 1509 | spacing: 5px; } 1510 | 1511 | .login-dialog-message-warning { 1512 | color: #f57900; } 1513 | 1514 | .login-dialog-message-hint { 1515 | padding-top: 0; 1516 | padding-bottom: 20px; } 1517 | 1518 | .login-dialog-user-selection-box { 1519 | padding: 100px 0px; } 1520 | .login-dialog-user-selection-box .login-dialog-not-listed-label { 1521 | padding-left: 2px; } 1522 | .login-dialog-not-listed-button:focus .login-dialog-user-selection-box .login-dialog-not-listed-label, .login-dialog-not-listed-button:hover .login-dialog-user-selection-box .login-dialog-not-listed-label { 1523 | color: #eeeeec; } 1524 | 1525 | .login-dialog-not-listed-label { 1526 | font-size: 90%; 1527 | font-weight: bold; 1528 | color: #a6a69b; 1529 | padding-top: 1em; } 1530 | 1531 | .login-dialog-user-list-view { 1532 | -st-vfade-offset: 1em; } 1533 | 1534 | .login-dialog-user-list { 1535 | spacing: 12px; 1536 | padding: .2em; 1537 | width: 23em; } 1538 | .login-dialog-user-list:expanded .login-dialog-user-list-item:focus { 1539 | background-color: #4a90d9; 1540 | color: #ffffff; } 1541 | .login-dialog-user-list:expanded .login-dialog-user-list-item:logged-in { 1542 | border-right: 2px solid #4a90d9; } 1543 | 1544 | .login-dialog-user-list-item { 1545 | border-radius: 5px; 1546 | padding: .2em; 1547 | color: #a6a69b; } 1548 | .login-dialog-user-list-item:ltr { 1549 | padding-right: 1em; } 1550 | .login-dialog-user-list-item:rtl { 1551 | padding-left: 1em; } 1552 | .login-dialog-user-list-item:hover { 1553 | background-color: #4a90d9; 1554 | color: #ffffff; } 1555 | .login-dialog-user-list-item .login-dialog-timed-login-indicator { 1556 | height: 2px; 1557 | margin: 2px 0 0 0; 1558 | background-color: #eeeeec; } 1559 | .login-dialog-user-list-item:focus .login-dialog-timed-login-indicator { 1560 | background-color: #ffffff; } 1561 | 1562 | .login-dialog-username, 1563 | .user-widget-label { 1564 | color: #eeeeec; 1565 | font-size: 120%; 1566 | font-weight: bold; 1567 | text-align: left; 1568 | padding-left: 15px; } 1569 | 1570 | .user-widget-label:ltr { 1571 | padding-left: 18px; } 1572 | .user-widget-label:rtl { 1573 | padding-right: 18px; } 1574 | 1575 | .login-dialog-prompt-layout { 1576 | padding-top: 24px; 1577 | padding-bottom: 12px; 1578 | spacing: 8px; 1579 | width: 23em; } 1580 | 1581 | .login-dialog-prompt-label { 1582 | color: #bebeb6; 1583 | font-size: 110%; 1584 | padding-top: 1em; } 1585 | 1586 | .login-dialog-session-list-button StIcon { 1587 | icon-size: 1.25em; } 1588 | 1589 | .login-dialog-session-list-button { 1590 | color: #a6a69b; } 1591 | .login-dialog-session-list-button:hover, .login-dialog-session-list-button:focus { 1592 | color: #eeeeec; } 1593 | .login-dialog-session-list-button:active { 1594 | color: #747467; } 1595 | 1596 | .screen-shield-arrows { 1597 | padding-bottom: 3em; } 1598 | 1599 | .screen-shield-arrows Gjs_Arrow { 1600 | color: white; 1601 | width: 80px; 1602 | height: 48px; 1603 | -arrow-thickness: 12px; 1604 | -arrow-shadow: 0 1px 1px rgba(0, 0, 0, 0.4); } 1605 | 1606 | .screen-shield-clock { 1607 | color: white; 1608 | text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.6); 1609 | font-weight: bold; 1610 | text-align: center; 1611 | padding-bottom: 1.5em; } 1612 | 1613 | .screen-shield-clock-time { 1614 | font-size: 72pt; 1615 | text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4); } 1616 | 1617 | .screen-shield-clock-date { 1618 | font-size: 28pt; } 1619 | 1620 | .screen-shield-notifications-container { 1621 | spacing: 6px; 1622 | width: 30em; 1623 | background-color: transparent; 1624 | max-height: 500px; } 1625 | .screen-shield-notifications-container .summary-notification-stack-scrollview { 1626 | padding-top: 0; 1627 | padding-bottom: 0; } 1628 | .screen-shield-notifications-container .notification, 1629 | .screen-shield-notifications-container .screen-shield-notification-source { 1630 | padding: 12px 6px; 1631 | border: 1px solid rgba(238, 238, 236, 0.2); 1632 | background-color: rgba(46, 52, 54, 0.5); 1633 | color: #eeeeec; 1634 | border-radius: 4px; } 1635 | .screen-shield-notifications-container .notification { 1636 | margin-right: 15px; } 1637 | 1638 | .screen-shield-notification-label { 1639 | font-weight: bold; 1640 | padding: 0px 0px 0px 12px; } 1641 | 1642 | .screen-shield-notification-count-text { 1643 | padding: 0px 0px 0px 12px; } 1644 | 1645 | #panel.lock-screen { 1646 | background-color: rgba(46, 52, 54, 0.5); } 1647 | 1648 | .screen-shield-background { 1649 | background: black; 1650 | box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4); } 1651 | 1652 | #lockDialogGroup { 1653 | background: #2e3436 url(resource:///org/gnome/shell/theme/noise-texture.png); 1654 | background-repeat: repeat; } 1655 | 1656 | #screenShieldNotifications StButton#vhandle, #screenShieldNotifications StButton#hhandle { 1657 | background-color: rgba(237, 237, 237, 0.3); } 1658 | #screenShieldNotifications StButton#vhandle:hover, #screenShieldNotifications StButton#vhandle:focus, #screenShieldNotifications StButton#hhandle:hover, #screenShieldNotifications StButton#hhandle:focus { 1659 | background-color: rgba(237, 237, 237, 0.5); } 1660 | #screenShieldNotifications StButton#vhandle:active, #screenShieldNotifications StButton#hhandle:active { 1661 | background-color: rgba(74, 144, 217, 0.5); } 1662 | 1663 | #LookingGlassDialog { 1664 | background-color: rgba(0, 0, 0, 0.8); 1665 | spacing: 4px; 1666 | padding: 4px; 1667 | border: 2px solid grey; 1668 | border-radius: 4px; } 1669 | #LookingGlassDialog > #Toolbar { 1670 | border: 1px solid grey; 1671 | border-radius: 4px; } 1672 | #LookingGlassDialog .labels { 1673 | spacing: 4px; } 1674 | #LookingGlassDialog .notebook-tab { 1675 | -natural-hpadding: 12px; 1676 | -minimum-hpadding: 6px; 1677 | font-weight: bold; 1678 | color: #ccc; 1679 | transition-duration: 100ms; 1680 | padding-left: .3em; 1681 | padding-right: .3em; } 1682 | #LookingGlassDialog .notebook-tab:hover { 1683 | color: white; 1684 | text-shadow: black 0px 2px 2px; } 1685 | #LookingGlassDialog .notebook-tab:selected { 1686 | border-bottom-width: 2px; 1687 | border-color: #5f9ddd; 1688 | color: white; 1689 | text-shadow: black 0px 2px 2px; } 1690 | #LookingGlassDialog StBoxLayout#EvalBox { 1691 | padding: 4px; 1692 | spacing: 4px; } 1693 | #LookingGlassDialog StBoxLayout#ResultsArea { 1694 | spacing: 4px; } 1695 | 1696 | .lg-dialog StEntry { 1697 | selection-background-color: #bbbbbb; 1698 | selected-color: #333333; } 1699 | .lg-dialog .shell-link { 1700 | color: #999999; } 1701 | .lg-dialog .shell-link:hover { 1702 | color: #dddddd; } 1703 | 1704 | .lg-completions-text { 1705 | font-size: .9em; 1706 | font-style: italic; } 1707 | 1708 | .lg-obj-inspector-title { 1709 | spacing: 4px; } 1710 | 1711 | .lg-obj-inspector-button { 1712 | border: 1px solid gray; 1713 | padding: 4px; 1714 | border-radius: 4px; } 1715 | .lg-obj-inspector-button:hover { 1716 | border: 1px solid #ffffff; } 1717 | 1718 | #lookingGlassExtensions { 1719 | padding: 4px; } 1720 | 1721 | .lg-extensions-list { 1722 | padding: 4px; 1723 | spacing: 6px; } 1724 | 1725 | .lg-extension { 1726 | border: 1px solid #6f6f6f; 1727 | border-radius: 4px; 1728 | padding: 4px; } 1729 | 1730 | .lg-extension-name { 1731 | font-weight: bold; } 1732 | 1733 | .lg-extension-meta { 1734 | spacing: 6px; } 1735 | 1736 | #LookingGlassPropertyInspector { 1737 | background: rgba(0, 0, 0, 0.8); 1738 | border: 2px solid grey; 1739 | border-radius: 4px; 1740 | padding: 6px; } 1741 | 1742 | /* Overrides */ 1743 | #panel { 1744 | font-weight: normal; 1745 | background-color: #ededed; 1746 | background-gradient-direction: vertical; 1747 | background-gradient-end: #e0e0e0; 1748 | border-top-color: #666; 1749 | /* we don't support non-uniform border-colors and 1750 | use the top border color for any border, so we 1751 | need to set it even if all we want is a bottom 1752 | border */ 1753 | border-bottom: 1px solid #666; 1754 | app-icon-bottom-clip: 0px; } 1755 | #panel:overview { 1756 | background-color: #000; 1757 | background-gradient-end: #000; 1758 | border-top-color: #000; 1759 | border-bottom: 1px solid #000; } 1760 | #panel:overview .panel-button { 1761 | color: #fff; } 1762 | #panel .panel-button { 1763 | -natural-hpadding: 8px; 1764 | -minimum-hpadding: 4px; 1765 | font-weight: normal; 1766 | color: #2e3436; } 1767 | #panel .panel-button:active, #panel .panel-button:overview, #panel .panel-button:focus, #panel .panel-button:checked { 1768 | background-color: #4a90d9 !important; 1769 | color: #ffffff !important; 1770 | box-shadow: none; } 1771 | #panel .panel-button:active > .system-status-icon, #panel .panel-button:overview > .system-status-icon, #panel .panel-button:focus > .system-status-icon, #panel .panel-button:checked > .system-status-icon { 1772 | icon-shadow: none; } 1773 | #panel .panel-button .app-menu-icon { 1774 | width: 0; 1775 | height: 0; 1776 | margin: 0; } 1777 | #panel .panel-corner, 1778 | #panel .panel-corner:active, 1779 | #panel .panel-corner:overview, 1780 | #panel .panel-corner:focus { 1781 | -panel-corner-radius: 0; } 1782 | #panel.lock-screen, #panel.unlock-screen, #panel.login-screen { 1783 | background-color: rgba(46, 52, 54, 0.5); 1784 | background-gradient-start: rgba(46, 52, 54, 0.5); 1785 | background-gradient-end: rgba(46, 52, 54, 0.5); 1786 | border-bottom: none; } 1787 | #panel.lock-screen .panel-button, #panel.unlock-screen .panel-button, #panel.login-screen .panel-button { 1788 | color: #eeeeec; } 1789 | #panel .popup-menu-arrow { 1790 | width: 0; 1791 | height: 0; } 1792 | 1793 | #appMenu { 1794 | padding: 0 8px 0 8px; 1795 | spinner-image: url("classic-process-working.svg"); } 1796 | 1797 | .tile-preview-left.on-primary, 1798 | .tile-preview-right.on-primary, 1799 | .tile-preview-left.tile-preview-right.on-primary { 1800 | /* keep in sync with -panel-corner-radius */ 1801 | border-radius: 0; } 1802 | 1803 | .toggle-switch-us { 1804 | background-image: url("classic-toggle-off-us.svg"); } 1805 | .toggle-switch-us:checked { 1806 | background-image: url("classic-toggle-on-us.svg"); } 1807 | 1808 | .toggle-switch-intl { 1809 | background-image: url("classic-toggle-off-intl.svg"); } 1810 | .toggle-switch-intl:checked { 1811 | background-image: url("classic-toggle-on-intl.svg"); } 1812 | 1813 | .calendar-day-with-events { 1814 | background-image: url("calendar-today.svg"); } 1815 | --------------------------------------------------------------------------------