nirish

config files for niri window manager
Log | Files | Refs | README | LICENSE

file_browser.conf (11056B)


      1 #######################################################
      2 # This is the default config file for mpv-file-browser
      3 # https://github.com/CogentRedTester/mpv-file-browser
      4 #######################################################
      5 
      6 ####################################
      7 ######## browser settings ##########
      8 ####################################
      9 
     10 # Root directories, separated by commas.
     11 # `C:/` and `/` are automatically added on Windows and non-windows systems, respectively.
     12 # The order of automatically added items can be changed by entering them here manually.
     13 root=~/
     14 
     15 # characters to separate root directories, each character works individually
     16 root_separators=,
     17 
     18 # number of entries to show on the screen at once
     19 num_entries=20
     20 
     21 # number of directories to keep in the history.
     22 # A size of 0 disables the history.
     23 history_size=100
     24 
     25 # wrap the cursor around the top and bottom of the list
     26 wrap=no
     27 
     28 # enables loading external addons
     29 addons=yes
     30 
     31 # enable custom keybinds
     32 # the keybind json file must go in ~~/script-opts
     33 custom_keybinds=yes
     34 
     35 # Automatically detect windows drives and adds them to the root.
     36 # Using Ctrl+r in the root will run another scan.
     37 auto_detect_windows_drives=yes
     38 
     39 # when opening the browser in idle mode prefer the current working directory over the root
     40 # note that the working directory is set as the 'current' directory regardless, so `home` will
     41 # move the browser there even if this option is set to false
     42 default_to_working_directory=no
     43 
     44 # When opening the browser prefer the directory last opened by a previous mpv instance of file-browser.
     45 # Overrides the `default_to_working_directory` option.
     46 # Requires `save_last_opened_directory` to be `yes`.
     47 # Uses the internal `last-opened-directory` addon.
     48 default_to_last_opened_directory=no
     49 
     50 # Whether to save the last opened directory.
     51 save_last_opened_directory=no
     52 
     53 # Move the cursor to the currently playing item (if available) when the playing file changes.
     54 cursor_follows_playing_item=no
     55 
     56 ####################################
     57 ########## filter settings #########
     58 ####################################
     59 
     60 # only show files compatible with mpv in the browser
     61 filter_files=yes
     62 
     63 # file-browser only shows files that are compatible with mpv by default
     64 # adding a file extension to this list will add it to the extension whitelist
     65 # extensions are separated with commas, do not use any spaces
     66 extension_whitelist=
     67 
     68 # add file extensions to this list to disable default filetypes
     69 # note that this will also override audio/subtitle_extension options below
     70 extension_blacklist=
     71 
     72 # files with these extensions will be added as additional audio tracks for the current file instead of appended to the playlist
     73 # items on this list are automatically added to the extension whitelist
     74 audio_extensions=mka,dts,dtshd,dts-hd,truehd,true-hd
     75 
     76 # files with these extensions will be added as additional subtitle tracks for the current file instead of appended to the playlist
     77 # items on this list are automatically added to the extension whitelist
     78 subtitle_extensions=etf,etf8,utf-8,idx,sub,srt,rt,ssa,ass,mks,vtt,sup,scc,smi,lrc,pgs
     79 
     80 # filter directories or files starting with a period like .config for linux systems
     81 # auto will show dot entries on windows and hide them otherwise
     82 filter_dot_dirs=auto
     83 filter_dot_files=auto
     84 
     85 ####################################
     86 ###### file loading settings #######
     87 ####################################
     88 
     89 # this option reverses the behaviour of the alt+ENTER keybind
     90 # when disabled the keybind is required to enable autoload for the file
     91 # when enabled the keybind disables autoload for the file
     92 autoload=no
     93 
     94 # experimental feature that recurses directories concurrently when appending items to the playlist
     95 # this feature has the potential for massive performance improvements when using addons with asynchronous IO
     96 concurrent_recursion=yes
     97 
     98 # maximum number of recursions that can run concurrently
     99 # if this number is too high it risks overflowing the mpv event queue, which will cause some directories to be dropped entirely
    100 max_concurrency=16
    101 
    102 # substitute forward slashes for backslashes when appending a local file to the playlist
    103 # may be useful on windows systems
    104 substitute_backslash=no
    105 
    106 # if autoload is triggered by selecting the currently playing file, then
    107 # the current file will have it's watch-later config saved before being closed and re-opened
    108 # essentially the current file will not be restarted
    109 autoload_save_current=yes
    110 
    111 ####################################
    112 ### directory parsing settings #####
    113 ####################################
    114 
    115 # a directory cache to improve directory reading time,
    116 # enable if it takes a long time to load directories.
    117 # May cause 'ghost' files to be shown that no-longer exist or
    118 # fail to show files that have recently been created.
    119 # Reloading the directory with Ctrl+r will never use the cache.
    120 # Use Ctrl+Shift+r to forcibly clear the cache.
    121 cache=no
    122 
    123 # Enables the internal `ls` addon that parses directories using the `ls` commandline tool.
    124 # Allows directory parsing to run concurrently, which prevents the browser from locking up.
    125 # Automatically disables itself on Windows systems.
    126 ls_parser=yes
    127 
    128 # Enables the internal `windir` addon that parses directories using the `dir` command in cmd.exe.
    129 # Allows directory parsing to run concurrently, which prevents the browser from locking up.
    130 # Automatically disables itself on non-Windows systems.
    131 windir_parser=yes
    132 
    133 # when moving up a directory do not stop on empty protocol schemes like `ftp://`
    134 # e.g. moving up from `ftp://localhost/` will move straight to the root instead of `ftp://`
    135 skip_protocol_schemes=yes
    136 
    137 # map optical device paths to their respective file paths,
    138 # e.g. mapping bd:// to the value of the bluray-device property
    139 map_bd_device=yes
    140 map_dvd_device=yes
    141 map_cdda_device=yes
    142 
    143 ####################################
    144 ########## misc settings ###########
    145 ####################################
    146 
    147 # turn the OSC idle screen off and on when opening and closing the browser
    148 # this should only be enabled if file-browser is the only thing controlling the idle-screen,
    149 # if multiple sources attempt to control the idle-screen at the same time it can cause unexpected behaviour.
    150 toggle_idlescreen=no
    151 
    152 # interpret backslashes `\` in paths as forward slashes `/`
    153 # this is useful on Windows, which natively uses backslashes.
    154 # As backslashes are valid filename characters in Unix systems this could
    155 # cause mangled paths, though such filenames are rare.
    156 # Use `yes` and `no` to enable/disable. `auto` tries to use the mpv `platform`
    157 # property (mpv v0.36+) to decide. If the property is unavailable it defaults to `yes`.
    158 normalise_backslash=auto
    159 
    160 # Set the current open status of the browser in the `file_browser/open` field of the `user-data` property.
    161 # This property is only available in mpv v0.36+.
    162 set_user_data=yes
    163 
    164 # Set the current open status of the browser in the `file_browser-open` field of the `shared-script-properties` property.
    165 # This property is deprecated. When it is removed in mpv v0.37 file-browser will automatically disable this option.
    166 set_shared_script_properties=no
    167 
    168 ####################################
    169 ########## file overrides #########
    170 ####################################
    171 
    172 # directory to load external modules - currently just user-input-module
    173 module_directory=~~/script-modules
    174 addon_directory=~~/script-modules/file-browser-addons
    175 custom_keybinds_file=~~/script-opts/file-browser-keybinds.json
    176 last_opened_directory_file=~~state/file_browser-last_opened_directory
    177 
    178 ####################################
    179 ######### style settings ###########
    180 ####################################
    181 
    182 # Replace the user's home directory with `~/` in the header.
    183 # Uses the internal home-label addon.
    184 home_label=yes
    185 
    186 # force file-browser to use a specific alignment (default: top-left)
    187 # set to auto to use the default mpv osd-align options
    188 # Options: 'auto'|'top'|'center'|'bottom'
    189 align_y=top
    190 # Options: 'auto'|'left'|'center'|'right'
    191 align_x=left
    192 
    193 # The format string used for the header. Uses custom-keybind substitution codes to
    194 # dynamically change the contents of the header (see: docs/custom-keybinds.md#codes)
    195 # and supports the additional code `%^`which re-applies the default header ass style.
    196 # The original style used before the current one was: %q\N----------------------------------------------------
    197 format_string_header={\fnMonospace}[%i/%x]%^ %q\N------------------------------------------------------------------
    198 
    199 # The format strings used for the wrappers. Supports custom-keybind substitution codes, and
    200 # supports two additional codes: `%<` and `%>` to show the number of items before and after the visible list, respectively.
    201 # Setting these options to empty strings will disable the wrappers.
    202 # Original styles used before the current ones were:
    203 # top: %< item(s) above\N
    204 # bottom: \N%> item(s) remaining
    205 format_string_topwrapper=...
    206 format_string_bottomwrapper=...
    207 
    208 # allows custom icons be set for the folder and cursor
    209 # the `\h` character is a hard space to add padding
    210 folder_icon={\p1}m 6.52 0 l 1.63 0 b 0.73 0 0.01 0.73 0.01 1.63 l 0 11.41 b 0 12.32 0.73 13.05 1.63 13.05 l 14.68 13.05 b 15.58 13.05 16.31 12.32 16.31 11.41 l 16.31 3.26 b 16.31 2.36 15.58 1.63 14.68 1.63 l 8.15 1.63{\p0}\h
    211 cursor_icon={\p1}m 14.11 6.86 l 0.34 0.02 b 0.25 -0.02 0.13 -0 0.06 0.08 b -0.01 0.16 -0.02 0.28 0.04 0.36 l 3.38 5.55 l 3.38 5.55 3.67 6.15 3.81 6.79 3.79 7.45 3.61 8.08 3.39 8.5l 0.04 13.77 b -0.02 13.86 -0.01 13.98 0.06 14.06 b 0.11 14.11 0.17 14.13 0.24 14.13 b 0.27 14.13 0.31 14.13 0.34 14.11 l 14.11 7.28 b 14.2 7.24 14.25 7.16 14.25 7.07 b 14.25 6.98 14.2 6.9 14.11 6.86{\p0}\h
    212 cursor_icon_flipped={\p1}m 0.13 6.86 l 13.9 0.02 b 14 -0.02 14.11 -0 14.19 0.08 b 14.26 0.16 14.27 0.28 14.21 0.36 l 10.87 5.55 l 10.87 5.55 10.44 6.79 10.64 8.08 10.86 8.5l 14.21 13.77 b 14.27 13.86 14.26 13.98 14.19 14.06 b 14.14 14.11 14.07 14.13 14.01 14.13 b 13.97 14.13 13.94 14.13 13.9 14.11 l 0.13 7.28 b 0.05 7.24 0 7.16 0 7.07 b 0 6.98 0.05 6.9 0.13 6.86{\p0}\h
    213 
    214 # set the opacity of fonts in hexadecimal from 00 (opaque) to FF (transparent)
    215 font_opacity_selection_marker=99
    216 
    217 # print the header in bold font
    218 font_bold_header=yes
    219 
    220 # scale the size of the browser; 2 would double the size, 0.5 would halve it, etc.
    221 # the header and wrapper scaling is relative to the base scaling
    222 scaling_factor_base=1
    223 scaling_factor_header=1.4
    224 scaling_factor_wrappers=1
    225 
    226 # set custom font names, blank is the default
    227 # setting custom fonts for the folder/cursor can fix broken or missing icons
    228 font_name_header=
    229 font_name_body=
    230 font_name_wrappers=
    231 font_name_folder=
    232 font_name_cursor=
    233 
    234 # set custom font colours
    235 # colours are in hexadecimal format in Blue Green Red order
    236 # note that this is the opposite order to RGB colour codes
    237 font_colour_header=00ccff
    238 font_colour_body=ffffff
    239 font_colour_wrappers=00ccff
    240 font_colour_cursor=00ccff
    241 font_colour_escape_chars=413eff
    242 
    243 # these are colours applied to list items in different states
    244 font_colour_selected=fce788
    245 font_colour_multiselect=fcad88
    246 font_colour_playing=33ff66
    247 font_colour_playing_multiselected=22b547