1 /* settings.h - User settings default values */ 2 3 /* 4 * This file is part of CliFM 5 * 6 * Copyright (C) 2016-2021, L. Abramovich <johndoe.arch@outlook.com> 7 * All rights reserved. 8 9 * CliFM is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 * 14 * CliFM is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 22 * MA 02110-1301, USA. 23 */ 24 25 #ifndef SETTINGS_H 26 #define SETTINGS_H 27 28 /* User settings */ 29 30 /* Macros for ELN padding */ 31 #define NOPAD 0 32 #define ZEROPAD 1 33 #define LEFTSPACEPAD 2 34 #define RIGHTSPACEPAD 3 35 36 /* Macros for listing_mode */ 37 #define VERTLIST 0 /* ls-like listing mode */ 38 #define HORLIST 1 39 40 /* Default color definitions */ 41 #define DEF_FILE_COLORS "di=01;34:nd=01;31:ed=00;34:ne=00;31:fi=0:\ 42 ef=00;33:nf=00;31:ln=01;36:mh=30;46:or=00;36:pi=00;35:\ 43 so=01;35:bd=01;33:cd=1:su=37;41:sg=30;43:ca=30;41:tw=30;42:\ 44 ow=34;42:st=37;44:ex=01;32:ee=00;32:no=00;31;47:uf=34;47:" 45 46 #define DEF_IFACE_COLORS "el=01;33:mi=01;36:dl=01;34:tx=0:df=0:\ 47 dc=00;02;34:wc=01;36:dh=00;36:li=01;32:si=01;34:ti=01;33:em=01;31:wm=01;33:\ 48 nm=01;32:bm=01;36:sb=02;33:sc=02;31:sh=02;35:sf=02;04;36:sp=02;31:sx=02;32:\ 49 hb=00;36:hc=02;31:hd=00;36:he=00;36:hn=00;35:hp=02;36:hq=00;33:\ 50 hr=00;31:hs=00;32:hv=00;32:ts=04;35:wp=02;31:" 51 52 #define DEF_EXT_COLORS "*.tar=01;31:*.tgz=01;31:*.arc=01;31:\ 53 *.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:\ 54 *.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:\ 55 *.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:\ 56 *.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:\ 57 *.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:\ 58 *.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:\ 59 *.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:\ 60 *.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:\ 61 *.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:\ 62 *.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:\ 63 *.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:\ 64 *.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:\ 65 *.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:\ 66 *.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:\ 67 *.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:\ 68 *.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:\ 69 *.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:\ 70 *.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:\ 71 *.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:\ 72 *.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:\ 73 *.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:\ 74 *.opus=00;36:*.spx=00;36:*.xspf=00;36:" 75 76 /* Filetypes */ 77 #define DEF_DI_C "\x1b[01;34m" 78 #define DEF_ND_C "\x1b[01;31m" 79 #define DEF_ED_C "\x1b[00;34m" 80 #define DEF_NE_C "\x1b[00;31m" 81 #define DEF_FI_C "\x1b[0m" 82 #define DEF_EF_C "\x1b[00;33m" 83 #define DEF_NF_C "\x1b[00;31m" 84 #define DEF_LN_C "\x1b[01;36m" 85 #define DEF_OR_C "\x1b[00;36m" 86 #define DEF_PI_C "\x1b[00;35m" 87 #define DEF_SO_C "\x1b[01;35m" 88 #define DEF_BD_C "\x1b[01;33m" 89 #define DEF_CD_C "\x1b[1m" 90 #define DEF_SU_C "\x1b[37;41m" 91 #define DEF_SG_C "\x1b[30;43m" 92 #define DEF_ST_C "\x1b[37;44m" 93 #define DEF_TW_C "\x1b[30;42m" 94 #define DEF_OW_C "\x1b[34;42m" 95 #define DEF_EX_C "\x1b[01;32m" 96 #define DEF_EE_C "\x1b[00;32m" 97 #define DEF_CA_C "\x1b[30;41m" 98 #define DEF_NO_C "\x1b[31;47m" 99 #define DEF_UF_C "\x1b[34;47m" 100 #define DEF_MH_C "\x1b[30;46m" 101 #define DEF_BM_C "\x1b[01;36m" 102 103 /* Interface */ 104 #define DEF_EL_C "\x1b[01;33m" 105 #define DEF_MI_C "\x1b[01;36m" 106 #define DEF_DL_C "\x1b[00;34m" 107 #define DEF_DC_C "\x1b[0m" 108 #define DEF_WC_C "\x1b[01;36m" 109 #define DEF_DH_C "\x1b[00;36m" 110 #define DEF_TS_C "\x1b[04;35m" 111 #define DEF_WP_C "\x1b[02;31m" 112 113 #define DEF_DF_C "\x1b[0m" 114 115 #define DEF_TX_C "\x1b[0m" 116 //#define DEF_TX_C "\001\x1b[0m\002" 117 #define DEF_LI_C "\001\x1b[01;32m\002" 118 #define DEF_LI_CB "\x1b[01;32m" 119 #define DEF_TI_C "\001\x1b[01;33m\002" 120 #define DEF_EM_C "\001\x1b[01;31m\002" 121 #define DEF_WM_C "\001\x1b[01;33m\002" 122 #define DEF_NM_C "\001\x1b[01;32m\002" 123 #define DEF_SI_C "\001\x1b[01;34m\002" 124 125 /* Workspaces */ 126 #define DEF_WS1_C "\001\x1b[0;34m\002" 127 #define DEF_WS2_C "\001\x1b[0;31m\002" 128 #define DEF_WS3_C "\001\x1b[0;33m\002" 129 #define DEF_WS4_C "\001\x1b[0;32m\002" 130 #define DEF_WS5_C "\001\x1b[0;36m\002" 131 #define DEF_WS6_C "\001\x1b[0;36m\002" 132 #define DEF_WS7_C "\001\x1b[0;36m\002" 133 #define DEF_WS8_C "\001\x1b[0;36m\002" 134 135 /* Suggestions */ 136 #define DEF_SB_C "\x1b[02;33m" 137 #define DEF_SH_C "\x1b[02;35m" 138 #define DEF_SF_C "\x1b[02;04;36m" 139 #define DEF_SC_C "\x1b[02;31m" 140 #define DEF_SX_C "\x1b[02;32m" 141 #define DEF_SP_C "\x1b[02;31m" 142 143 /* Highlight */ 144 #define DEF_HB_C "\x1b[00;36m" 145 #define DEF_HC_C "\x1b[02;31m" 146 #define DEF_HD_C "\x1b[00;36m" 147 #define DEF_HE_C "\x1b[00;36m" 148 #define DEF_HN_C "\x1b[00;35m" 149 #define DEF_HP_C "\x1b[02;36m" 150 #define DEF_HQ_C "\x1b[00;33m" 151 #define DEF_HR_C "\x1b[00;31m" 152 #define DEF_HS_C "\x1b[00;32m" 153 #define DEF_HV_C "\x1b[00;32m" 154 #define DEF_HW_C "\x1b[00;31m" 155 156 #define DEF_DIR_ICO_C "\x1b[00;33m" 157 158 #define MNT_UDEVIL 0 159 #define MNT_UDISKS2 1 160 161 /* Default options */ 162 #define DEF_AUTOCD 1 163 #define DEF_AUTOJUMP 0 164 #define DEF_AUTO_OPEN 1 165 #define DEF_AUTOLS 1 166 #define DEF_CASE_SENS_LIST 0 167 #define DEF_CASE_SENS_DIRJUMP 0 168 #define DEF_CASE_SENS_PATH_COMP 0 169 #define DEF_CASE_SENS_SEARCH 0 170 #define DEF_CD_ON_QUIT 0 171 #define DEF_CHECK_CAP 1 172 #define DEF_CHECK_EXT 1 173 #define DEF_CLASSIFY 1 174 #define DEF_CLEAR_SCREEN 1 175 #define DEF_COLOR_SCHEME "default" 176 #define DEF_COLORS 1 177 #define DEF_CONTROL_D_EXITS 0 178 #define DEF_CP_CMD CP_CP 179 #define DEF_CUR_WS 0 180 #define DEF_CWD_IN_TITLE 0 181 #define DEF_DIRHIST_MAP 0 182 #define DEF_DISK_USAGE 0 183 #define DEF_DIV_LINE_CHAR '-' 184 #define DEF_ELNPAD LEFTSPACEPAD 185 #define DEF_EXPAND_BOOKMARKS 0 186 #define DEF_EXT_CMD_OK 1 187 #define DEF_FILES_COUNTER 1 188 #define DEF_FOLLOW_SYMLINKS 1 189 #define DEF_FZFTAB 0 190 #define DEF_HIGHLIGHT 1 191 #define DEF_ICONS 0 192 #define DEF_INT_VARS 0 193 #define DEF_LIGHT_MODE 0 194 #define DEF_LIST_FOLDERS_FIRST 1 195 #define DEF_LISTING_MODE VERTLIST 196 #define DEF_LOGS_ENABLED 0 197 #define DEF_LONG_VIEW 0 198 #define DEF_MAX_DIRHIST 100 199 #define DEF_MAX_FILES UNSET 200 #define DEF_MAX_NAME_LEN UNSET 201 #define DEF_MAX_HIST 1000 202 #define DEF_MAX_JUMP_TOTAL_RANK 100000 203 #define DEF_MAX_LOG 500 204 #define DEF_MAX_PATH 40 205 #define DEF_MAXPRINTSEL 0 206 #define DEF_MIN_JUMP_RANK 10 207 #define DEF_MIN_NAME_TRIM 20 208 #define DEF_MOUNT_CMD MNT_UDEVIL 209 #define DEF_MV_CMD MV_MV 210 #define DEF_NOELN 0 211 #define DEF_ONLY_DIRS 0 212 #define DEF_PAGER 0 213 #define DEF_PRINTSEL 0 214 #define DEF_RESTORE_LAST_PATH 1 215 #define DEF_RL_EDIT_MODE 1 216 #define DEF_SHARE_SELBOX 0 217 #define DEF_SHOW_HIDDEN 0 218 #define DEF_SHOW_BACKUP_FILES 1 219 #define DEF_SORT SNAME 220 #define DEF_SORT_REVERSE 0 221 #define DEF_SPLASH_SCREEN 0 222 #ifdef __OpenBSD__ 223 #define DEF_SUDO_CMD "doas" 224 #else 225 #define DEF_SUDO_CMD "sudo" 226 #endif 227 #define DEF_SUG_FILETYPE_COLOR 0 228 #define DEF_SUG_STRATEGY "ehfjbac" 229 #define DEF_SUGGESTIONS 1 230 #define DEF_TIPS 1 231 #define DEF_TRASRM 0 232 #define DEF_UNICODE 1 233 #define DEF_WELCOME_MESSAGE 1 234 #define DEF_WARNING_PROMPT 1 235 #define SUG_STRATS 7 236 237 /* These options should work with FZF 0.17 or later */ 238 #define DEF_FZFTAB_OPTIONS "--color=\"dark,prompt:6,fg+:-1,pointer:2,\ 239 hl:5,hl+:5\" --bind tab:accept,right:accept,\ 240 left:abort --inline-info --layout=reverse-list --ansi" 241 242 #define MAX_WS 8 243 244 #define DEFAULT_PROMPT "\\[\\e[0m\\][\\[\\e[0;36m\\]\\S\\[\\e[0m\\]]\\l \ 245 \\A \\u:\\H \\[\\e[00;36m\\]\\w\\n\\[\\e[0m\\]<\\z\\[\\e[0m\\]\ 246 >\\[\\e[0;34m\\] \\$\\[\\e[0m\\] " 247 248 #define DEF_WPROMPT_STR "(!) > " 249 250 #define DEFAULT_TERM_CMD "xterm -e" 251 252 #define FALLBACK_SHELL "/bin/sh" 253 254 #ifdef __APPLE__ 255 #define FALLBACK_OPENER "/usr/bin/open" 256 #elif defined __CYGWIN__ 257 #define FALLBACK_OPENER "cygstart" 258 #elif __HAIKU__ 259 #define FALLBACK_OPENER "open" 260 #else 261 #define FALLBACK_OPENER "xdg-open" 262 #endif 263 264 #endif /* SETTINGS_H */ 265