-
Notifications
You must be signed in to change notification settings - Fork 0
/
aw-fm.toml.sample
275 lines (227 loc) · 11.3 KB
/
aw-fm.toml.sample
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
# You can use the --awconf flag to override the config being loaded.
# This config file is optional, the options specified here are the defaults.
# The colour used for the background.
# This is any string understood by GDK, such as "black", "magenta", or "#55667788"
# Transparency is allowed but depends on the display server for support.
# When set will override all backgrounds.
#
# Leave empty to use your default GTK theme.
# background_colour = '#000000be'
# The timeout, in seconds, for detecting idleness.
# When the application is idle for a long period of time tabs that aren't visible can be unloaded.
# The default of 6 hours should not be disruptive.
# Comment out or set to 0 to disable.
#
# This is not as beneficial if background_thumbnailers is negative (see below).
idle_timeout = 21600
# How many thumbnailers to run in the background.
# This is used for files that aren't currently visible/near-visible.
#
# Max 255, 0 disables background thumbnailing.
# Negative values cause thumbnails to be unloaded, greatly reducing memory usage.
# No effect if larger than max_thumbnailers.
# Recommended: 1, 0, or -1
background_thumbnailers = 1
# Whether to limit aw-fm to a single window or not.
#
# If true, only one aw-fm window can be open at a time. Running "aw-fm directory" with an
# open window will open "directory" in a tab in the existing window instead of a new window.
unique = false
# Whether seeking (tab/shift-tab) wraps around.
#
# This can be useful when trying to find the last matching file, but also disorientating.
seek_wraparound = false
# Shortcuts
#
# All shortcuts must have a key and an action, and optionally one or more modifiers.
# See the readme or the example scripts for details on the commands and environment variables.
# Valid modifiers are Control, Shift, Alt, Super, and Command.
# See https://gitlab.gnome.org/GNOME/gtk/blob/master/gdk/gdkkeysyms.h for names of keys.
#
# "Activate" probably should not be bound, but you can if you want.
# Some keybinds will be bound by the existing GTK components and will not work.
#
# Binding letters without modifiers is not recommended either.
#
# Use uppercase letters.
# Defaults and Examples:
shortcuts = [
{key = "question", modifiers = "Shift", action = "Help"},
{key = "C", modifiers = "Control", action = "Copy"},
{key = "X", modifiers = "Control", action = "Cut"},
{key = "V", modifiers = "Control", action = "Paste"},
{key = "N", modifiers = "Control,Shift", action = "NewFolder"},
{key = "N", modifiers = "Control", action = "NewFile"},
{key = "H", modifiers = "Control", action = "Home" },
{key = "T", modifiers = "Control", action = "NewTab"},
{key = "T", modifiers = "Alt", action = "NewBackgroundTab"},
{key = "T", modifiers = "Control,Shift", action = "ReopenTab"},
{key = "W", modifiers = "Control", action = "CloseTab"},
{key = "W", modifiers = "Control, Shift", action = "ClosePane"},
{key = "W", modifiers = "Control, Alt", action = "CloseTabNoReplacement"},
{key = "W", modifiers = "Alt", action = "HidePanes"},
{key = "V", modifiers = "Alt", action = "Split vertical"},
{key = "H", modifiers = "Alt", action = "Split horizontal"},
{key = "F", modifiers = "Control", action = "Search"},
{key = "R", modifiers = "Control", action = "Rename"},
{key = "L", modifiers = "Control", action = "FocusLocation"},
{key = "U", modifiers = "Control", action = "Unselect"},
{key = "Up", modifiers = "Alt", action = "Parent"},
{key = "Down", modifiers = "Alt", action = "Child"},
{key = "Right", modifiers = "Alt", action = "Forward"},
{key = "Left", modifiers = "Alt", action = "Back"},
{key = "1", modifiers = "Control", action = "Display icons"},
{key = "2", modifiers = "Control", action = "Display columns"},
{key = "1", modifiers = "Alt", action = "SortBy name"},
{key = "2", modifiers = "Alt", action = "SortBy mtime"},
{key = "3", modifiers = "Alt", action = "SortBy size"},
{key = "Page_Up", modifiers = "Alt", action = "SortDir ascending"},
{key = "Page_Down", modifiers = "Alt", action = "SortDir descending"},
{key = "F5", action = "Refresh"},
{key = "F5", modifiers = "Shift", action = "RefreshAll"},
{key = "Delete", action = "Trash"},
{key = "Delete", modifiers = "Shift", action = "Delete"},
{key = "Escape", action = "Cancel"},
{key = "Z", modifiers = "Control", action = "Undo"},
# Relative paths are not allowed.
# Change these to correct paths if you actually use them.
# {key= "F6", action = "Execute /path/to/examples/dump-env.sh"},
# {key= "H", modifiers = "Control, Shift", action = "Script /path/to/examples/rofi-jump-home.sh"},
# {key= "P", modifiers = "Alt", action = "Script /path/to/examples/rofi-open-subdirs.sh"},
{key = "F1", action = "LoadSession one"},
{key = "F1", modifiers="Control", action = "SaveSession one"},
{key = "F1", modifiers="Alt", action = "DeleteSession one"},
{key = "F2", action = "LoadSession two"},
{key = "F2", modifiers="Control", action = "SaveSession two"},
{key = "F2", modifiers="Alt", action = "DeleteSession two"},
{key = "F3", action = "LoadSession three"},
{key = "F3", modifiers="Control", action = "SaveSession three"},
{key = "F3", modifiers="Alt", action = "DeleteSession three"},
]
# Bookmarks
# These show up on the left, as buttons above the list of tabs, and are always visible.
#
# Ask yourself if you really want these, or if a keyboard shortcut and a
# rofi script wouldn't be a better option.
#
# Defined as { name = "Name", action = "Command" },
bookmarks = [
{name = "Home", action = "Home"},
]
# Context Menu
# All context menu items need a name and an action.
# Context menu entries are placed in the context menu in order.
# The set of allowable actions is the same as those for shortcuts.
#
# Sub-menus and sections can be specified by name.
# All commands sharing the same named sub-menu or section will be grouped together in order.
#
# For selection the allowed options are: any/zero/maybe_one/one/at_least_one/multiple
# 'any' will impose no requirements.
# 'zero' will require that no items are selected.
# 'maybe_one' will allow one or zero items to be selected.
# 'one' will require exactly one item to be selected.
# 'at_least_one' will require one or more items to be selected.
# 'multiple' will require at least two items to be selected.
#
# For more control over when actions appear, use custom action scripts which allow for
# fine-grained filtering on mimetypes or paths.
#
# Example:
# {name = "Do Something", action = "Execute /path/to/do-something.sh"},
# {name = "Sample Script", action = "Script /path/to/sample-script.sh"},
context_menu = [
{name = "Open", action = "OpenDefault", selection = "at_least_one"},
{name = "Open With", action = "OpenWith", selection = "at_least_one"},
{name = "Cut", action = "Cut", selection = "at_least_one" },
{name = "Copy", action = "Copy", selection = "at_least_one" },
# Paste has special handling, if selection is not present
{name = "Paste", action = "Paste" },
{name = "Rename", action = "Rename", selection = "one" },
{name = "Icons", submenu = "Display", action = "Display icons"},
{name = "Columns", submenu = "Display", action = "Display columns"},
{name = "Name", submenu = "Sort", action = "SortBy name"},
{name = "Date modified", submenu = "Sort", action = "SortBy mtime"},
{name = "Size", submenu = "Sort", action = "SortBy size"},
{name = "Ascending", submenu = "Sort", action = "SortDir ascending"},
{name = "Descending", submenu = "Sort", action = "SortDir descending"},
{name = "Properties", action = "Properties", selection = "at_least_one"},
]
# How to handle directory collisions during file operations.
#
# Allowed values are ask, merge, and skip.
directory_collisions = "ask"
# How to handle file collisions when moving files.
#
# Allowed values are ask, overwrite, skip, newer, and rename.
# newer will overwrite if the destination is strictly older and skip otherwise.
# rename will keep the existing destination file as-is but add a suffix to the file name.
# rename is assumed when copying a file on top of itself.
file_collisions = "ask"
# Custom actions directory.
# All executable contents with proper headers (see examples/sample-action.sh) are added as context
# menu entries.
#
# Defaults to ~/.config/aw-fm/actions/, or ${XDG_CONFIG_HOME}/aw-fm/actions/
actions_directory = ""
# Normalize file names for seek/search
# Whether or not to apply unicode normalization (form NFKC) to file names for searching/seeking.
# Setting it to true means that "𝙁𝘼𝙐𝙉𝘼" can by found by typing "fauna".
#
# Does not affect sorting.
normalize_names = true
# ------------------------------------------------------------------------------------------------
# More advanced configuration options below. They probably do not need to be changed.
# ------------------------------------------------------------------------------------------------
# The location of the database to use for persistent data storage.
# Currently only per-directory sort and display settings.
# Defaults to $XDG_DATA_HOME/aw-fm/settings.db or $HOME/.local/share/aw-fm/settings.db
# database = ''
# Whether to use polling for NFS directories or not.
#
# aw-fm defaults to inotify on Linux, which does not work in all cases on remote file systems.
# Polling is slower and more resource intensive but will work for all changes, even changes
# originating from other computers.
#
# This does not affect updates for child directories in searches.
#
# Valid settings are "off", "on", or "both" to enable both inotify and polling together for NFS.
# Changing this is not recommended.
nfs_polling = "off"
# How deeply to recurse for searches.
#
# Set to 0 to only search the current directory. Max 255.
# Comment out to allow for unlimited depth. Not recommended.
search_max_depth = 8
# Whether to show all files in search or not.
#
# The default behaviour is to respect .gitignore files and ignore hidden files and directories for
# recursive searching, but to show everything within the current directory unconditionally.
search_show_all = false
# Whether to allow pasting files into a search tab.
#
# This might cause confusing or surprising file operations.
paste_into_search = false
# Thread Settings --------------------------------------------------------------------------------
# How many concurrent thumbnail processes to allow.
# There are tradeoffs between how fast thumbnails are generated and how responsive the UI remains.
# Thumbnailing is done in separate threads but GTK still limits performance.
#
# The slower the thumbnail process, the less choppy this is even at higher values. Too high and
# directories with many cheap thumbnails cause the process to slow down. Too low and expensive
# thumbnails take forever.
#
# Experimentally, 8 is a bit past the acceptable limit in pathologically bad cases like many tiny
# images, while in directories with many videos up to 16 is beneficial.
#
# Max 255 (bad idea), 0 entirely disables thumbnail loading.
# Recommended: 2-8
max_thumbnailers = 6
# Whether or not to force the use of normal 128px thumbnails even at high DPIs.
#
# When false, aw-fm will generate and use 256px thumbnails when the DPI scaling is above 1.
# Setting this to true can save memory and storage space at the cost of blurrier thumbnails.
#
# No effect if you do not have any high DPI monitors or don't otherwise trigger UI scaling.
force_small_thumbnails = false
# ------------------------------------------------------------------------------------------------