swaydots

my dotfiles
git clone https://git.awy.one/swaydots.git
Log | Files | Refs | README | LICENSE

config.ron (7440B)


      1 #![enable(implicit_some)]
      2 #![enable(unwrap_newtypes)]
      3 #![enable(unwrap_variant_newtypes)]
      4 (
      5     address: "127.0.0.1:6600",
      6     volume_step: 5,
      7     scrolloff: 2,
      8     max_fps: 60,
      9     wrap_navigation: true,
     10     theme: "def",
     11     lyrics_dir: "/mnt/ssd/music",
     12     on_song_change: ["~/.config/rmpc/scripts/statusbar"],
     13     on_resize: None,
     14     status_update_interval_ms: 1000,
     15     enable_mouse: true,
     16     enable_config_hot_reload: true,
     17     album_art: (
     18         method: Auto,
     19         max_size_px: (width: 0, height: 0),
     20         vertical_align: Top,
     21         horizontal_align: Center,
     22     ),
     23     keybinds: (
     24             global: {
     25             ":":       CommandMode,
     26             ",":       VolumeDown,
     27             "s":       Stop,
     28             ".":       VolumeUp,
     29             "<Tab>":   NextTab,
     30             "<S-Tab>": PreviousTab,
     31             "1":       SwitchToTab("Queue"),
     32             "2":       SwitchToTab("Directories"),
     33             "3":       SwitchToTab("Artists"),
     34             "4":       SwitchToTab("Album Artists"),
     35             "5":       SwitchToTab("Albums"),
     36             "6":       SwitchToTab("Playlists"),
     37             "7":       SwitchToTab("Search"),
     38             "q":       Quit,
     39             ">":       NextTrack,
     40             "p":       TogglePause,
     41             "<":       PreviousTrack,
     42             "f":       SeekForward,
     43             "z":       ToggleRepeat,
     44             "x":       ToggleRandom,
     45             "c":       ToggleConsume,
     46             "v":       ToggleSingle,
     47             "b":       SeekBack,
     48             "~":       ShowHelp,
     49             "I":       ShowCurrentSongInfo,
     50             "O":       ShowOutputs,
     51             "P":       ShowDecoders,
     52     },
     53     navigation: {
     54             "k":         Up,
     55             "j":         Down,
     56             "h":         Left,
     57             "l":         Right,
     58             "<Up>":      Up,
     59             "<Down>":    Down,
     60             "<Left>":    Left,
     61             "<Right>":   Right,
     62             "<C-k>":     PaneUp,
     63             "<C-j>":     PaneDown,
     64             "<C-h>":     PaneLeft,
     65             "<C-l>":     PaneRight,
     66             "<C-u>":     UpHalf,
     67             "N":         PreviousResult,
     68             "a":         Add,
     69             "A":         AddAll,
     70             "r":         Rename,
     71             "n":         NextResult,
     72             "g":         Top,
     73             "<Space>":   Select,
     74             "<C-Space>": InvertSelection,
     75             "G":         Bottom,
     76             "<CR>":      Confirm,
     77             "i":         FocusInput,
     78             "J":         MoveDown,
     79             "<C-d>":     DownHalf,
     80             "/":         EnterSearch,
     81             "<C-c>":     Close,
     82             "<Esc>":     Close,
     83             "K":         MoveUp,
     84             "D":         Delete,
     85           },
     86     queue: {
     87              "D":       DeleteAll,
     88              "<CR>":    Play,
     89              "<C-s>":   Save,
     90              "a":       AddToPlaylist,
     91              "d":       Delete,
     92              "i":       ShowInfo,
     93              "C":       JumpToCurrent,
     94            },
     95     ),
     96     search: (
     97         case_sensitive: false,
     98         mode: Contains,
     99         tags: [
    100             (value: "any",         label: "Any Tag"),
    101             (value: "artist",      label: "Artist"),
    102             (value: "album",       label: "Album"),
    103             (value: "albumartist", label: "Album Artist"),
    104             (value: "title",       label: "Title"),
    105         ],
    106     ),
    107     tabs: [
    108         (
    109             name: "Queue",
    110             border_type: None,
    111             pane: Split(
    112                 direction: Horizontal,
    113                 panes: [
    114                 (
    115                     size: "40%",
    116                     borders: "RIGHT",
    117                     pane: Split(
    118                         direction: Vertical,
    119                             panes: [
    120                                 (
    121                                     size: "3",
    122                                     pane: Pane(Lyrics),
    123                                 ),
    124                                 (
    125                                     size: "100%",
    126                                     pane: Pane(AlbumArt),
    127                                 )
    128                             ],
    129                         ),
    130                     ),
    131                     (
    132                         size: "60%",
    133                         pane: Pane(Queue),
    134                     ),
    135                 ],
    136             ),
    137         ),
    138         (
    139             name: "Directories",
    140             border_type: None,
    141             pane: Pane(Directories),
    142         ),
    143         (
    144             name: "Artists",
    145             border_type: None,
    146             pane: Pane(Artists),
    147         ),
    148         (
    149             name: "Album Artists",
    150             border_type: None,
    151             pane: Pane(AlbumArtists),
    152         ),
    153         (
    154             name: "Albums",
    155             border_type: None,
    156             pane: Pane(Albums),
    157         ),
    158         (
    159             name: "Playlists",
    160             border_type: None,
    161             pane: Pane(Playlists),
    162         ),
    163         (
    164             name: "Search",
    165             border_type: None,
    166             pane: Pane(Search),
    167         ),
    168         (
    169             name: "Testing",
    170             border_type: Single,
    171             pane: Split(
    172                 direction: Horizontal,
    173                 panes: [
    174                     (
    175                         size: "40%",
    176                         pane: Pane(Queue),
    177                     ),
    178                     (
    179                         size: "60%",
    180                         pane: Split(
    181                             direction: Vertical,
    182                             panes: [
    183                                 (
    184                                     size: "50%",
    185                                     pane: Pane(Directories),
    186                                 ),
    187                                 (
    188                                     size: "50%",
    189                                     pane: Split(
    190                                         direction: Horizontal,
    191                                         panes: [
    192                                             // (
    193                                             //     size: "40%",
    194                                             //     pane: Pane(AlbumArt),
    195                                             // ),
    196                                             (
    197                                                 size: "60%",
    198                                                 pane: Split(
    199                                                     direction: Vertical,
    200                                                     panes: [
    201                                                         (
    202                                                             size: "50%",
    203                                                             pane: Pane(Albums),
    204                                                         ),
    205                                                         (
    206                                                             size: "50%",
    207                                                             pane: Pane(Artists),
    208                                                         ),
    209                                                     ],
    210                                                 ),
    211                                             ),
    212                                         ],
    213                                     ),
    214                                 ),
    215                             ],
    216                         ),
    217                     ),
    218                 ],
    219             ),
    220         ),
    221     ],
    222 )