diff options
| author | 2014-10-07 20:19:15 +0200 | |
|---|---|---|
| committer | 2014-10-07 20:19:15 +0200 | |
| commit | d27d1370846fad27cbc45f4907ed96bda5326fa7 (patch) | |
| tree | 1a76a1204fcaad33e433354fb5459b6d00e9569d | |
| parent | 3bf374f4b530dccf491f2cb39e05179ea2baa8ab (diff) | |
| download | dotfiles-d27d1370846fad27cbc45f4907ed96bda5326fa7.tar.gz dotfiles-d27d1370846fad27cbc45f4907ed96bda5326fa7.tar.bz2 dotfiles-d27d1370846fad27cbc45f4907ed96bda5326fa7.zip | |
Added liquidprompt
| -rw-r--r-- | .bashrc | 1 | ||||
| -rwxr-xr-x | .config/herbstluftwm/autostart | 4 | ||||
| -rwxr-xr-x | .liquidpromptrc | 143 | ||||
| -rwxr-xr-x | .lp_ps1 | 30 | ||||
| -rw-r--r-- | Makefile | 16 |
5 files changed, 189 insertions, 5 deletions
| @@ -9,4 +9,5 @@ alias ls='ls --color=auto' | |||
| 9 | #PS1='[\u@\h \W]\$ ' | 9 | #PS1='[\u@\h \W]\$ ' |
| 10 | PS1='[\d][\t]\u on \h\n\w => ' | 10 | PS1='[\d][\t]\u on \h\n\w => ' |
| 11 | 11 | ||
| 12 | source liquidprompt | ||
| 12 | archey | 13 | archey |
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart index fb6d2e0..cd0907c 100755 --- a/.config/herbstluftwm/autostart +++ b/.config/herbstluftwm/autostart | |||
| @@ -15,12 +15,12 @@ get_x_color() { | |||
| 15 | hlwm_scripts="$HOME/.config/herbstluftwm" | 15 | hlwm_scripts="$HOME/.config/herbstluftwm" |
| 16 | 16 | ||
| 17 | #wallpaper | 17 | #wallpaper |
| 18 | wallpaper=/home/tom/Pictures/rocks.jpg | 18 | wallpaper=/home/tom/Pictures/fall1.jpg |
| 19 | 19 | ||
| 20 | #Numix color palette | 20 | #Numix color palette |
| 21 | export WM_LIGHT=$(get_x_color 15) | 21 | export WM_LIGHT=$(get_x_color 15) |
| 22 | export WM_LLIGHT=$(get_x_color 7) | 22 | export WM_LLIGHT=$(get_x_color 7) |
| 23 | export WM_ACCENT=$(get_x_color 12) | 23 | export WM_ACCENT=$(get_x_color 9) |
| 24 | export WM_LDARK=$(get_x_color 8) | 24 | export WM_LDARK=$(get_x_color 8) |
| 25 | export WM_DARK=$(get_x_color 0) | 25 | export WM_DARK=$(get_x_color 0) |
| 26 | 26 | ||
diff --git a/.liquidpromptrc b/.liquidpromptrc new file mode 100755 index 0000000..1cb350c --- /dev/null +++ b/.liquidpromptrc | |||
| @@ -0,0 +1,143 @@ | |||
| 1 | |||
| 2 | #################################### | ||
| 3 | # LIQUID PROMPT CONFIGURATION FILE # | ||
| 4 | #################################### | ||
| 5 | |||
| 6 | # If you want to use different themes and features, | ||
| 7 | # you can load the corresponding files here: | ||
| 8 | #source ~/code/liquidprompt/nojhan.theme | ||
| 9 | |||
| 10 | LP_PS1_FILE="$HOME/.lp_ps1" | ||
| 11 | |||
| 12 | ############# | ||
| 13 | # BEHAVIOUR # | ||
| 14 | ############# | ||
| 15 | |||
| 16 | # Maximal value under which the battery level is displayed | ||
| 17 | # Recommended value is 75 | ||
| 18 | LP_BATTERY_THRESHOLD=75 | ||
| 19 | |||
| 20 | # Minimal value after which the load average is displayed | ||
| 21 | # Recommended value is 60 | ||
| 22 | LP_LOAD_THRESHOLD=60 | ||
| 23 | |||
| 24 | # Minimal value after which the temperature is displayed (in celsius degrees) | ||
| 25 | # Recommended value is 60 | ||
| 26 | LP_TEMP_THRESHOLD=60 | ||
| 27 | |||
| 28 | # The maximum percentage of the screen width used to display the path | ||
| 29 | # Recommended value is 35 | ||
| 30 | LP_PATH_LENGTH=35 | ||
| 31 | |||
| 32 | # How many directories to keep at the beginning of a shortened path | ||
| 33 | # Recommended value is 2 | ||
| 34 | LP_PATH_KEEP=2 | ||
| 35 | |||
| 36 | # Do you want to display the hostname, even if not connected through network? | ||
| 37 | # Defaults to 0 (do not display hostname when localy connected) | ||
| 38 | # set to 1 if you want to always see the hostname | ||
| 39 | LP_HOSTNAME_ALWAYS=1 | ||
| 40 | |||
| 41 | # Do you want to display the user, even if he is the same than the logged one? | ||
| 42 | # Defaults to 1 (always display the user) | ||
| 43 | # set to 0 if you want to hide the logged user (it will always display different users) | ||
| 44 | LP_USER_ALWAYS=1 | ||
| 45 | |||
| 46 | # Do you want to display the percentages of load/batteries along with their | ||
| 47 | # corresponding marks? Set to 0 to only print the colored marks. | ||
| 48 | # Defaults to 1 (display percentages) | ||
| 49 | LP_PERCENTS_ALWAYS=1 | ||
| 50 | |||
| 51 | # Do you want to use the permissions feature ? | ||
| 52 | # Recommended value is 1 | ||
| 53 | LP_ENABLE_PERM=1 | ||
| 54 | |||
| 55 | # Do you want to use the shorten path feature ? | ||
| 56 | # Recommended value is 1 | ||
| 57 | LP_ENABLE_SHORTEN_PATH=1 | ||
| 58 | |||
| 59 | # Do you want to use the proxy detection feature ? | ||
| 60 | # Recommended value is 1 | ||
| 61 | LP_ENABLE_PROXY=1 | ||
| 62 | |||
| 63 | # Do you want to use the jobs feature ? | ||
| 64 | # Recommended value is 1 | ||
| 65 | LP_ENABLE_JOBS=1 | ||
| 66 | |||
| 67 | # Do you want to use the load feature ? | ||
| 68 | # Recommended value is 1 | ||
| 69 | LP_ENABLE_LOAD=1 | ||
| 70 | |||
| 71 | # Do you want to use the batt feature ? | ||
| 72 | # Recommended value is 1 | ||
| 73 | LP_ENABLE_BATT=1 | ||
| 74 | |||
| 75 | # Do you want to use vcs features with root account | ||
| 76 | # Recommended value is 0 | ||
| 77 | LP_ENABLE_VCS_ROOT=0 | ||
| 78 | |||
| 79 | # Do you want to use the git special features ? | ||
| 80 | # Recommended value is 1 | ||
| 81 | LP_ENABLE_GIT=1 | ||
| 82 | |||
| 83 | # Do you want to use the svn special features ? | ||
| 84 | # Recommended value is 1 | ||
| 85 | LP_ENABLE_SVN=1 | ||
| 86 | |||
| 87 | # Do you want to use the mercurial special features ? | ||
| 88 | # Recommended value is 1 | ||
| 89 | LP_ENABLE_HG=1 | ||
| 90 | |||
| 91 | # Do you want to use the fossil special features ? | ||
| 92 | # Recommended value is 1 | ||
| 93 | LP_ENABLE_FOSSIL=1 | ||
| 94 | |||
| 95 | # Do you want to use the bzr special features ? | ||
| 96 | # Recommanded value is 1 | ||
| 97 | LP_ENABLE_BZR=1 | ||
| 98 | |||
| 99 | # Show time of the last prompt display | ||
| 100 | # Recommended value is 0 | ||
| 101 | LP_ENABLE_TIME=1 | ||
| 102 | |||
| 103 | # Show runtime of the last command if over LP_RUNTIME_THRESHOLD | ||
| 104 | # Recommended value is 0 | ||
| 105 | LP_ENABLE_RUNTIME=0 | ||
| 106 | |||
| 107 | # Minimal runtime to be displayed | ||
| 108 | # Recommended value is 2 | ||
| 109 | LP_RUNTIME_THRESHOLD=2 | ||
| 110 | |||
| 111 | # Display the virtualenv that is currently activated, if any | ||
| 112 | # Recommended value is 1 | ||
| 113 | LP_ENABLE_VIRTUALENV=1 | ||
| 114 | |||
| 115 | # Show average system temperature | ||
| 116 | LP_ENABLE_TEMP=1 | ||
| 117 | |||
| 118 | # When showing time, use an analog clock instead of numeric values. | ||
| 119 | # The analog clock is "accurate" to the nearest half hour. | ||
| 120 | # You must have a unicode-capable terminal and a font with the "CLOCK" | ||
| 121 | # characters. | ||
| 122 | # Recommended value is 0 | ||
| 123 | LP_TIME_ANALOG=0 | ||
| 124 | |||
| 125 | # Use the liquid prompt as the title of the terminal window | ||
| 126 | # The content is not customizable, the implementation is very basic, | ||
| 127 | # and this may not work properly on exotic terminals, thus the | ||
| 128 | # recommended value is | ||
| 129 | # See LP_TITLE_OPEN and LP_TITLE_CLOSE to change escape characters to adapt this | ||
| 130 | # feature to your specific terminal. | ||
| 131 | LP_ENABLE_TITLE=0 | ||
| 132 | |||
| 133 | # Enable Title for screen and byobu | ||
| 134 | LP_ENABLE_SCREEN_TITLE=0 | ||
| 135 | |||
| 136 | # Use differents colors for differents hosts you SSH in | ||
| 137 | LP_ENABLE_SSH_COLORS=0 | ||
| 138 | |||
| 139 | # Specify a list of complete and colon (":") separated paths in which, all vcs | ||
| 140 | # will be disabled | ||
| 141 | LP_DISABLED_VCS_PATH="" | ||
| 142 | |||
| 143 | # vim: set et sts=4 sw=4 tw=120 ft=sh: | ||
| @@ -0,0 +1,30 @@ | |||
| 1 | |||
| 2 | ####################################### | ||
| 3 | # LIQUID PROMPT DEFAULT TEMPLATE FILE # | ||
| 4 | ####################################### | ||
| 5 | |||
| 6 | # Available features: | ||
| 7 | # LP_BATT battery | ||
| 8 | # LP_LOAD load | ||
| 9 | # LP_JOBS screen sessions/running jobs/suspended jobs | ||
| 10 | # LP_USER user | ||
| 11 | # LP_HOST hostname | ||
| 12 | # LP_PERM a colon ":" | ||
| 13 | # LP_PWD current working directory | ||
| 14 | # LP_PROXY HTTP proxy | ||
| 15 | # LP_VCS the content of the current repository | ||
| 16 | # LP_ERR last error code | ||
| 17 | # LP_MARK prompt mark | ||
| 18 | # LP_TIME current time | ||
| 19 | # LP_RUNTIME runtime of last command | ||
| 20 | # LP_PS1_PREFIX user-defined general-purpose prefix (default set a generic prompt as the window title) | ||
| 21 | |||
| 22 | # Remember that most features come with their corresponding colors, | ||
| 23 | # see the README. | ||
| 24 | |||
| 25 | LP_PS1="[\d][\t]\u on \h\n\w${LP_VCS}${LP_MARK}" | ||
| 26 | |||
| 27 | LP_TITLE=$(_lp_title $PS1) | ||
| 28 | PS1="${LP_TITLE}${PS1}" | ||
| 29 | |||
| 30 | # vim: set et sts=4 sw=4 tw=120 ft=sh: | ||
| @@ -2,17 +2,21 @@ PWD=$(shell pwd) | |||
| 2 | 2 | ||
| 3 | THEMES_DIR = .local/share/themes | 3 | THEMES_DIR = .local/share/themes |
| 4 | CONFIG_DIR = .config | 4 | CONFIG_DIR = .config |
| 5 | |||
| 5 | NUMIX = numix-no-title | 6 | NUMIX = numix-no-title |
| 7 | HERBSTLUFT = herbstluftwm | ||
| 8 | |||
| 6 | BASHRC = .bashrc | 9 | BASHRC = .bashrc |
| 7 | COMPTON = .compton | 10 | COMPTON = .compton |
| 11 | LIQUIDPROMPT = liquidpromptrc | ||
| 12 | LP_PS1 = .lp_ps1 | ||
| 8 | VIMRC = .vimrc | 13 | VIMRC = .vimrc |
| 9 | HERBSTLUFT = herbstluftwm | ||
| 10 | XRESOURCES = .Xresources | 14 | XRESOURCES = .Xresources |
| 11 | 15 | ||
| 12 | 16 | ||
| 13 | install: all | 17 | install: all |
| 14 | 18 | ||
| 15 | all: bash compton vim xresources numix-no-title herbstluftwm | 19 | all: bash compton liquidprompt vim xresources numix-no-title herbstluftwm |
| 16 | 20 | ||
| 17 | numix-no-title: | 21 | numix-no-title: |
| 18 | mkdir -p ~/$(THEMES_DIR) | 22 | mkdir -p ~/$(THEMES_DIR) |
| @@ -28,6 +32,10 @@ bash: | |||
| 28 | compton: | 32 | compton: |
| 29 | ln -sf $(PWD)/$(COMPTON) ~ | 33 | ln -sf $(PWD)/$(COMPTON) ~ |
| 30 | 34 | ||
| 35 | liquidprompt: | ||
| 36 | ln -sf $(PWD)/$(LIQUIDPROMPT) ~ | ||
| 37 | ln -sf $(PWD)/$(LP_PS1) ~ | ||
| 38 | |||
| 31 | vim: | 39 | vim: |
| 32 | ln -sf $(PWD)/$(VIMRC) ~ | 40 | ln -sf $(PWD)/$(VIMRC) ~ |
| 33 | 41 | ||
| @@ -38,7 +46,9 @@ uninstall: | |||
| 38 | #remove all | 46 | #remove all |
| 39 | -rm ~/$(THEMES_DIR)/$(NUMIX) | 47 | -rm ~/$(THEMES_DIR)/$(NUMIX) |
| 40 | -rm ~/$(CONFIG_DIR)/$(HERBSTLUFT) | 48 | -rm ~/$(CONFIG_DIR)/$(HERBSTLUFT) |
