aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2014-10-07 20:19:15 +0200
committerGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2014-10-07 20:19:15 +0200
commitd27d1370846fad27cbc45f4907ed96bda5326fa7 (patch)
tree1a76a1204fcaad33e433354fb5459b6d00e9569d
parent3bf374f4b530dccf491f2cb39e05179ea2baa8ab (diff)
downloaddotfiles-d27d1370846fad27cbc45f4907ed96bda5326fa7.tar.gz
dotfiles-d27d1370846fad27cbc45f4907ed96bda5326fa7.tar.bz2
dotfiles-d27d1370846fad27cbc45f4907ed96bda5326fa7.zip
Added liquidprompt
-rw-r--r--.bashrc1
-rwxr-xr-x.config/herbstluftwm/autostart4
-rwxr-xr-x.liquidpromptrc143
-rwxr-xr-x.lp_ps130
-rw-r--r--Makefile16
5 files changed, 189 insertions, 5 deletions
diff --git a/.bashrc b/.bashrc
index a369039..ee01ef2 100644
--- a/.bashrc
+++ b/.bashrc
@@ -9,4 +9,5 @@ alias ls='ls --color=auto'
9#PS1='[\u@\h \W]\$ ' 9#PS1='[\u@\h \W]\$ '
10PS1='[\d][\t]\u on \h\n\w => ' 10PS1='[\d][\t]\u on \h\n\w => '
11 11
12source liquidprompt
12archey 13archey
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() {
15hlwm_scripts="$HOME/.config/herbstluftwm" 15hlwm_scripts="$HOME/.config/herbstluftwm"
16 16
17#wallpaper 17#wallpaper
18wallpaper=/home/tom/Pictures/rocks.jpg 18wallpaper=/home/tom/Pictures/fall1.jpg
19 19
20#Numix color palette 20#Numix color palette
21export WM_LIGHT=$(get_x_color 15) 21export WM_LIGHT=$(get_x_color 15)
22export WM_LLIGHT=$(get_x_color 7) 22export WM_LLIGHT=$(get_x_color 7)
23export WM_ACCENT=$(get_x_color 12) 23export WM_ACCENT=$(get_x_color 9)
24export WM_LDARK=$(get_x_color 8) 24export WM_LDARK=$(get_x_color 8)
25export WM_DARK=$(get_x_color 0) 25export 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
10LP_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
18LP_BATTERY_THRESHOLD=75
19
20# Minimal value after which the load average is displayed
21# Recommended value is 60
22LP_LOAD_THRESHOLD=60
23
24# Minimal value after which the temperature is displayed (in celsius degrees)
25# Recommended value is 60
26LP_TEMP_THRESHOLD=60
27
28# The maximum percentage of the screen width used to display the path
29# Recommended value is 35
30LP_PATH_LENGTH=35
31
32# How many directories to keep at the beginning of a shortened path
33# Recommended value is 2
34LP_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
39LP_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)
44LP_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)
49LP_PERCENTS_ALWAYS=1
50
51# Do you want to use the permissions feature ?
52# Recommended value is 1
53LP_ENABLE_PERM=1
54
55# Do you want to use the shorten path feature ?
56# Recommended value is 1
57LP_ENABLE_SHORTEN_PATH=1
58
59# Do you want to use the proxy detection feature ?
60# Recommended value is 1
61LP_ENABLE_PROXY=1
62
63# Do you want to use the jobs feature ?
64# Recommended value is 1
65LP_ENABLE_JOBS=1
66
67# Do you want to use the load feature ?
68# Recommended value is 1
69LP_ENABLE_LOAD=1
70
71# Do you want to use the batt feature ?
72# Recommended value is 1
73LP_ENABLE_BATT=1
74
75# Do you want to use vcs features with root account
76# Recommended value is 0
77LP_ENABLE_VCS_ROOT=0
78
79# Do you want to use the git special features ?
80# Recommended value is 1
81LP_ENABLE_GIT=1
82
83# Do you want to use the svn special features ?
84# Recommended value is 1
85LP_ENABLE_SVN=1
86
87# Do you want to use the mercurial special features ?
88# Recommended value is 1
89LP_ENABLE_HG=1
90
91# Do you want to use the fossil special features ?
92# Recommended value is 1
93LP_ENABLE_FOSSIL=1
94
95# Do you want to use the bzr special features ?
96# Recommanded value is 1
97LP_ENABLE_BZR=1
98
99# Show time of the last prompt display
100# Recommended value is 0
101LP_ENABLE_TIME=1
102
103# Show runtime of the last command if over LP_RUNTIME_THRESHOLD
104# Recommended value is 0
105LP_ENABLE_RUNTIME=0
106
107# Minimal runtime to be displayed
108# Recommended value is 2
109LP_RUNTIME_THRESHOLD=2
110
111# Display the virtualenv that is currently activated, if any
112# Recommended value is 1
113LP_ENABLE_VIRTUALENV=1
114
115# Show average system temperature
116LP_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
123LP_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.
131LP_ENABLE_TITLE=0
132
133# Enable Title for screen and byobu
134LP_ENABLE_SCREEN_TITLE=0
135
136# Use differents colors for differents hosts you SSH in
137LP_ENABLE_SSH_COLORS=0
138
139# Specify a list of complete and colon (":") separated paths in which, all vcs
140# will be disabled
141LP_DISABLED_VCS_PATH=""
142
143# vim: set et sts=4 sw=4 tw=120 ft=sh:
diff --git a/.lp_ps1 b/.lp_ps1
new file mode 100755
index 0000000..821dcf7
--- /dev/null
+++ b/.lp_ps1
@@ -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
25LP_PS1="[\d][\t]\u on \h\n\w${LP_VCS}${LP_MARK}"
26
27LP_TITLE=$(_lp_title $PS1)
28PS1="${LP_TITLE}${PS1}"
29
30# vim: set et sts=4 sw=4 tw=120 ft=sh:
diff --git a/Makefile b/Makefile
index 002c950..d9acb35 100644
--- a/Makefile
+++ b/Makefile
@@ -2,17 +2,21 @@ PWD=$(shell pwd)
2 2
3THEMES_DIR = .local/share/themes 3THEMES_DIR = .local/share/themes
4CONFIG_DIR = .config 4CONFIG_DIR = .config
5
5NUMIX = numix-no-title 6NUMIX = numix-no-title
7HERBSTLUFT = herbstluftwm
8
6BASHRC = .bashrc 9BASHRC = .bashrc
7COMPTON = .compton 10COMPTON = .compton
11LIQUIDPROMPT = liquidpromptrc
12LP_PS1 = .lp_ps1
8VIMRC = .vimrc 13VIMRC = .vimrc
9HERBSTLUFT = herbstluftwm
10XRESOURCES = .Xresources 14XRESOURCES = .Xresources
11 15
12 16
13install: all 17install: all
14 18
15all: bash compton vim xresources numix-no-title herbstluftwm 19all: bash compton liquidprompt vim xresources numix-no-title herbstluftwm
16 20
17numix-no-title: 21numix-no-title:
18 mkdir -p ~/$(THEMES_DIR) 22 mkdir -p ~/$(THEMES_DIR)
@@ -28,6 +32,10 @@ bash:
28compton: 32compton:
29 ln -sf $(PWD)/$(COMPTON) ~ 33 ln -sf $(PWD)/$(COMPTON) ~
30 34
35liquidprompt:
36 ln -sf $(PWD)/$(LIQUIDPROMPT) ~
37 ln -sf $(PWD)/$(LP_PS1) ~
38
31vim: 39vim:
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)