summaryrefslogtreecommitdiffstats
path: root/config_files/fm/config.yaml
blob: 7a638b5d02ce6fecc92b49ffe9678c1d88a89648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# fm configuration file.
# Each variable is explained below


# the terminal emulator, which must be accessible from $PATH
terminal: st

# configurable colors

# Define a palette for the "normal" files. 
# Accepted values are "red-green", "red-blue" and "green-blue"
# other value will lead to the default palette which is "green-blue".
palette: green-blue

# Colors for "non normal" files. The list is below.
colors:
  # you can define an ANSI color or an rgb color for any kind of file except "normal" files.
  # colors for normal files are calculated on the fly.
  # List of allowed colors:
  #   white,        black,        red,       green,       blue,       yellow,       cyan,       magenta 
  #   light_white,  light_black,  light_red, light_green, light_blue, light_yellow, light_cyan, light_magenta 
  # Allowed Format for rgb color : `rgb(r, g, b)` where r, g and b are integers between 0 and 255 included.
  directory: red
  block: yellow
  char: green
  fifo: blue
  socket: cyan
  symlink: magenta
  broken: light_magenta

# Colors for menus, headers, footers etc.
menu_colors:
  # first color
  first: rgb(45, 250, 209)
  # second color
  second: rgb(230, 189, 87)
  # selected tab border
  selected_border: rgb(45, 250, 209)
  # non selected tab border
  inert_border: rgb(120, 120, 120)
  # palette of 4 elements, used in menus (second window) and header
  palette_1: rgb(45, 250, 209)
  palette_2: rgb(230, 189, 87)
  palette_3: rgb(230, 167, 255)
  palette_4: rgb(59, 204, 255)

# keybindings
# 
# You can bind any key to any action.
# List of valid actions is accessible from `help` (default key H) and from the readme.md file.
# Invalid actions are skipped.
keys: 
  'esc': ResetMode
  'up': MoveUp
  'down': MoveDown
  'left': MoveLeft
  'right': MoveRight
  'bspace': Backspace
  'home': KeyHome
  'end': End
  'page-down': PageDown
  'page-up': PageUp
  'enter': Enter
  'tab': Tab
  'shift-tab': BackTab
  "'": MarksJump
  ' ': ToggleFlag
  '*': FlagAll
  '-': Back
  '/': Search
  '~': Home
  'a': ToggleHidden
  'c': CopyPaste
  'd': NewDir
  'e': Exec
  'g': KeyHome
  'h': MoveLeft
  'i': NvimFilepicker
  'j': MoveDown  
  'k': MoveUp
  'l': MoveRight
  'n': NewFile
  'o': OpenFile
  'p': CutPaste
  'q': Quit
  'r': Rename
  's': Shell
  't': Tree
  'u': ClearFlags
  'v': ReverseFlags
  'x': DeleteFile
  'w': RegexMatch
  'alt-b': Bulk
  'alt-d': ToggleDualPane
  'alt-e': EncryptedDrive
  'alt-f': Filter
  'alt-g': Cd
  'alt-m': Chmod
  'alt-p': TogglePreviewSecond
  'ctrl-c': CopyFilename
  'ctrl-f': FuzzyFind
  'ctrl-h': Help
  'ctrl-g': Shortcut
  'ctrl-p': CopyFilepath
  'ctrl-q': ResetMode
  'ctrl-r': RefreshView
  'shift-e': ToggleDisplayFull
  'shift-g': End
  'shift-L': Symlink
  'shift-m': MarksNew
  'shift-o': Sort
  'shift-p': Preview

# Custom command :
# * Use a free keybind
# * Don't use pipe or redirection, it won't be parsed correctly
# * Use full path for the command : `/usr/bin/ls` not `ls`
# * You can use expansions :
#     Expansions :
#     - %s: the full path of the currently selected file or folder,
#     - %f: the list of the full paths of the flagged files.
#     - %e: the extension of the file.
#     - %n: the filename only.
#     - %p: the full path of the current directory.
# Example:
# 'alt-u': "/usr/bin/ls %f" # will run `ls /path/to/the/selected/file`... be won't print anything.
custom:
  # open the selected file with chrome
  'alt-u': "/usr/bin/google-chrome-stable %s"
  'shift-d': "/usr/bin/dragon-drop %s"  

# DO NOT EDIT UNLESS YOU WANT TO ADD AN UNKNOWN TERMINAL EMULATOR
#
# The flag is used to open a terminal application (TUI, CLI etc.) like bat or htop.
# We need to execute the terminal itself and pass it a new command as an argument
# It requires a flag which is often, but not always "-e".
# See the documentation of your emulator and add the correct argument like below.
terminal_emulator_flags:
  alacritty: "-e"
  st: "-e"
  terminology: "-e"
  kitty: "--"
  sakura: "-e"
  lilyterm: "-e"
  coo: "-r"
  termite: "-x"
  yakuake: "-e"
  guake: "-n"
  tilda: "-c"
  terminator: "-x"
  urxvt: "-e"
  pantheo: "-t"
  lxterminal: "-e"
  mat: "-t"
  xfce: "-t"
  konsole: "-e"
  gnom: "-t"
  xterm: "-e"