diff options
-rwxr-xr-x | bollux | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/bollux b/bollux index 3664714..bda850b 100755 --- a/bollux +++ b/bollux | |||
@@ -105,16 +105,17 @@ bollux_config() { | |||
105 | fi | 105 | fi |
106 | 106 | ||
107 | ## behavior | 107 | ## behavior |
108 | : "${BOLLUX_DOWNDIR:=.}" # where to save downloads | ||
109 | : "${BOLLUX_LOGLEVEL:=3}" # log level | ||
110 | : "${BOLLUX_MAXREDIR:=5}" # max redirects | ||
111 | : "${BOLLUX_PORT:=1965}" # port number | ||
112 | : "${BOLLUX_PROTO:=gemini}" # default protocol | ||
113 | : "${BOLLUX_LESSKEY:=/tmp/bollux-lesskey}" # where to store binds | ||
114 | : "${BOLLUX_PAGESRC:=/tmp/bollux-src}" # where to save the page source | ||
115 | : "${BOLLUX_URL:=}" # start url | ||
116 | : "${BOLLUX_DATADIR:=${XDG_DATA_DIR:-$HOME/.local/share}/bollux}" | 108 | : "${BOLLUX_DATADIR:=${XDG_DATA_DIR:-$HOME/.local/share}/bollux}" |
117 | BOLLUX_HISTFILE="$BOLLUX_DATADIR/history" # where to store the history | 109 | : "${BOLLUX_DOWNDIR:=.}" # where to save downloads |
110 | : "${BOLLUX_LOGLEVEL:=3}" # log level | ||
111 | : "${BOLLUX_MAXREDIR:=5}" # max redirects | ||
112 | : "${BOLLUX_PORT:=1965}" # port number | ||
113 | : "${BOLLUX_PROTO:=gemini}" # default protocol | ||
114 | : "${BOLLUX_LESSKEY:=/tmp/bollux-lesskey}" # where to store binds | ||
115 | : "${BOLLUX_PAGESRC:=/tmp/bollux-src}" # where to save the source | ||
116 | : "${BOLLUX_URL:=}" # start url | ||
117 | : "${BOLLUX_BYEMSG:=See You Space Cowboy...}" # bye message | ||
118 | BOLLUX_HISTFILE="$BOLLUX_DATADIR/history" # where to save the history | ||
118 | ## typesetting | 119 | ## typesetting |
119 | : "${T_MARGIN:=4}" # left and right margin | 120 | : "${T_MARGIN:=4}" # left and right margin |
120 | : "${T_WIDTH:=0}" # width of the viewport -- 0 = get term width | 121 | : "${T_WIDTH:=0}" # width of the viewport -- 0 = get term width |
@@ -132,7 +133,7 @@ bollux_config() { | |||
132 | } | 133 | } |
133 | 134 | ||
134 | bollux_quit() { | 135 | bollux_quit() { |
135 | log x "Thanks for flying $PRGN" | 136 | log x "$BOLLUX_BYEMSG" |
136 | exit | 137 | exit |
137 | } | 138 | } |
138 | 139 | ||