利用好你的Touch Bar

Notes 415 字 45 阅

在闲置Touch Bar很久后,我终于狠下心,发掘一下到底怎样利用起来这个值一两千块钱的玩意。

尝试过包括better_touch_tool等一系列产品后,基本都徒有名气,实用性以及可自定义程度堪忧。最后选择的是MTMR这个家伙 。

安装

brew或者下载dmg

配置

官方给的demo代码很简单,可自己定制。不过站在巨人肩膀上方看得更远,我会把我调理好的的代码贴出来,并不建议再做调整,再多添加会赘余,减少则会不够完整。不过如果有兴趣还是可以尝试下,有新意的设计请留言共享。

适配13.3英寸mbp,15寸朋友可根据尺寸调整。

支持信息

多合一预设解决方案,其中将不同的条形嵌入到一个母版中。

0、主菜单:Escape,本机触摸栏,Dock,两指音量和三指亮度控制的Media / VNC / Info / 输入法控制 / 电池信息 / 休眠 / 时间(24h)

1、Media子栏:亮度 / 静音 / 音量控制 / 单点控制 / 输入法控制。

2、VNC子栏:Fn1~8 / 系统时间 / PgUp / PgDn / Home / End / 输入法控制

3、Info子栏:天气信息 / CPU / 磁盘 / 网络仪表 / DnD(请勿打扰) / 日&夜模式 / 倒数计时器(西红柿) / 输入法控制 / 电池% / 日期,日期,月份,时间(12H格式),AM / PM

聊两句

细节都在代码里,包括music的配置,以及输入法的底色等,额外加了VNC模块,方便编译代码。

Music只支持iTunes。QQ音乐、网易云音乐我会设置全局快捷键⌘q、⌘w、⌘e和⌥q、⌥w、⌥e来控制(爱音乐爱到crazy)。其实目的就在与解决iTunes消失的全局快捷键。

Go get ur efficiency!

(玫瑰少年在我心里~)

[
    {
        "type": "escape",
        "width": 64,
        "align": "left"
    },
    { "type": "exitTouchbar", "align": "left", "bordered": false, "title": "", "width": 24,
        "image": {
            "base64":
            "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAQ6wAAEOsBUJTofAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bW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/CRNOYnv6Hzm1+l5ld+RR2vPAL/FgTnjiY5IRnHX25SfMmktdSJDQ8Ts4LR1QaPKEAJ0xdR9q2VlDnrGrFLxPRrwQ7MPLhY7UjE7dROaAN8Noi+hjMHIYlayGxrD5A/qP/thm882YEqLGtRneQG+gmfCYBVZ9TwrPf3HT4TvNDQ5kz02vE3Ed24wQ73FiCIkcAtcPQHYrBtFvaT7MINTmyI2LAnkL98DWVdfS11nTlF7Yc+pq6Pd5PeVEdGoIMitcdJ9sKKB3HH2OUl96RZlFo+j5JLJ+ASmlt0b80Cwc46fIMfXKsVD/rjG+NsQGwOD/ZZ/UZNbZPS1q69xBUhvWIxJxq5xM+n6kesDpcxza1b1el3fWvf3WvnjZ49cxzWMzof+2EyxmmGHoHVUnDdH3u3+IuO1II5UMtEcYbIbfS14pFOMA49D7e1koZNTDvOE3RsoqpYKLlz8kzZFrNfUYPKSwesRSSp48J+6rrwIfpIgLjbYTD5ryjsADyg8Fbc8epauu3+548uXzNt/J13rmMVELQzDZcKA5EAsSyWZs/W8oeU/KrmfOtDuM9rT0zyuNggAgEKBtqjmxYOFy6Gs0ESywmxgALzImbrLZQFQmmD1ccjJwzJYbpiOiRi/o6KEr9FjSUzIYy1L2MoKaEacAXk0Z5kS4VatJE/oujhsHZo+44jic31nf/NzGP0rUMfbumSYSASEF9ZeuaHP/StWDVxRLg7cpUsq6N0I5QBiz8Od/l9eqSrze7NdqUMm5nJhun/EXD5lzmU+JDzNIb6FUwP+WF/84cd53alaVA/qJ2Cv1KpMTR/PdkTjmUV5+zDAbZ9/fqK4IoV/S7o+iVnsAD020jdvi1u1RlOMhsPdaRdcS/vgw3DdIE782oC5vV8fCuyTNgplVkaePo4jzn7DP/1FwIcWa3GMORxsmy2oOgZFKmmEIbfIWMqC9ZIkg9OxqAC88WS9Znh/wBXDNgP7s/LUAAAAABJRU5ErkJggg=="
        }
    },
    { "type": "dock", "align": "left", "width": 530 },
    {
        "align": "center",
        "type": "appleScriptTitledButton",
        "source": {
            "inline":
            "if application \"Spotify\" is running then\rtell application \"Spotify\"\rif player state is playing then\rreturn (get artist of current track) & \" – \" & (get name of current track)\relse\rreturn \"\"\rend if\rend tell\rend if\rreturn \"\"\r"
        },
        "action": "appleScript",
        "actionAppleScript": {
            "inline":
            "if application \"Spotify\" is running then\rtell application \"Spotify\"\rif player state is playing then\rnext track\rend if\rend tell\rend if\r"
        },
        "refreshInterval": 1,
        "autoResize": true,
        "image": {
            "base64":
            "iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAYUExURUdwTB3WXx3UXh3VXx7XYBkXFRpVLRyURmIaeAQAAAAEdFJOUwDDO3fSqUUkAAABbklEQVRIx61VbW6DMAztoAeYNA7ApB6gkzhAWS24wIAL0HABaK6/pHFNEhy8TXu/kPzkPD/8cTj8K7KPAqB+K5NhQPCUrABCXe7HOUYYZxgVRLiG8RfY4DUgFFtC7cffAfZTFBwBdhWEKfgEq4ocEjgj4ZQifO6/QG9kkETp1dDeVWfRKx3XYSW0LoqY5kCElXDrQkyeCCuh6WL0M4nIWQIyzqixdfKU1koFDKvyCA8NJMzU4xiD+b4kfHRpsIyKc6hBwjVptFHVY51EMAINNDFGJITKDNQcdpX74Hz0CQ3rY5qwMp4EIxrlafzrsYZ2Veb0DkRgfNCUok4Y1fqEijfyi2b8RE9beWqa48Y/uvCNMcH9btfUi+/CGLR1vhL6Zz9N/vBlaCU+7lwY/cmJ67Ryen/2tj23PLqJBodZH8vgj544vOL4pxfI5acrSFxi8hrkU9TSKr78ZpnL50A8KPJJEo+afBblwyqf5j/iGys5j6ScrST2AAAAAElFTkSuQmCC"
        }
    },

    {
        "type": "group",
        "align": "right",
        "bordered": false,
        "title": "Media",
        "width":60,
        "items": [
            {
                "type": "escape",
                "width": 64,
                "align": "left"
            },
            {"type": "close", "bordered": false,"width":60, "align": "left"},
            {
                "type": "brightnessDown",
                "bordered": false,
                "align": "left",
                "width": 40
            },
            {
                "type": "brightness",
                "width": 150,
                "align": "left",
                "image": {
                    "base64":
                    "iVBORw0KGgoAAAANSUhEUgAAAIAAAACAAQMAAAD58POIAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAGUExURffLOPfLNyaSVzUAAAACdFJOU/kBxOqnWgAAAbJJREFUSMfVljtyhDAQBVulQCFH4CgcDR1NR9ERFBKoeA5GfGddtkNvwFINFKP5tED22+Zxwviv6QVKfIEc/iNoF5gkpLIeYI8SUp4PsAUJiekADQntF6isQjvxCTrhAJlFqMMBeIH9BMsD7DAb2BhvYbIyNAOCZIWqYKGTpDZJFQu9EKVd44RxQRq3IrULWD62C8wSssWUZEsR0k6wcDOrJZmoBpMKI+s5qkBQCQOUJADVOECdOsDS0gDbsgHMfT4rVwHSrZQFIN5ABka8BgDgAeZ+BztBgvUEnSgVlhNsTFJjvoF5HAZorBpdYKAiSRbqNyBIUr6AjZMdPwO72R40MElS+wZUWA+wQ6LAYkFvdIhkmA+wQSDDdIAGAZ6A34H0x0fca11gBZZsIHSIfnE/5+NjCn/OuiuUB+/aunZwDeNayjXdTpDN0wlY+r1PfWu75nfj8RogN2JuCN2Y5qgMwTI0wGPUnQw6Qarx0sVNKA5Mn6VUL22lIbZoYitDbPmlvocc9Umfl2D7adz1reC3pF8av4m+DCenp/ndZuG3E7fhuC3pH2+vnz8V3MfE+bnxBTXuuIMTrLWHAAAAAElFTkSuQmCC"
                }
            },
            {
                "type": "brightnessUp",
                "bordered": false,
                "align": "left",
                "width": 40
            },
            {"type": "illuminationDown", "bordered": false, "align": "left" },
            {"type": "illuminationUp", "bordered": false, "align": "left" },
            { "type": "mute", "bordered": false, "width": 55,"align": "left"},
            {
                "type": "volumeDown",
                "bordered": false,
                "align": "left",
                "width": 55,
            },
            {
                "type": "volumeUp",
                "bordered": false,
                "align": "left",
                "width": 55
            },
            {"type": "previous", "bordered": false, "width": 60,"align": "center"},
            {"type": "play", "bordered": false,"width": 60, "align": "center"},
            {"type": "next", "bordered": false, "width": 60,"align": "center"},
            {
                "type": "appleScriptTitledButton",
                "align": "center",
                "source": {
                    "inline":
                    "if application \"Spotify\" is running then\rtell application \"Spotify\"\rif player state is playing then\rreturn (get artist of current track) & \" – \" & (get name of current track)\relse\rreturn \"\"\rend if\rend tell\rend if\rreturn \"\"\r"
                },
                "action": "appleScript",
                "actionAppleScript": {
                    "inline":
                    "if application \"Spotify\" is running then\rtell application \"Spotify\"\rif player state is playing then\rnext track\rend if\rend tell\rend if\r"
                },
                "refreshInterval": 1,
                "image": {
                    "base64":
                    "iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAYUExURUdwTB3WXx3UXh3VXx7XYBkXFRpVLRyURmIaeAQAAAAEdFJOUwDDO3fSqUUkAAABbklEQVRIx61VbW6DMAztoAeYNA7ApB6gkzhAWS24wIAL0HABaK6/pHFNEhy8TXu/kPzkPD/8cTj8K7KPAqB+K5NhQPCUrABCXe7HOUYYZxgVRLiG8RfY4DUgFFtC7cffAfZTFBwBdhWEKfgEq4ocEjgj4ZQifO6/QG9kkETp1dDeVWfRKx3XYSW0LoqY5kCElXDrQkyeCCuh6WL0M4nIWQIyzqixdfKU1koFDKvyCA8NJMzU4xiD+b4kfHRpsIyKc6hBwjVptFHVY51EMAINNDFGJITKDNQcdpX74Hz0CQ3rY5qwMp4EIxrlafzrsYZ2Veb0DkRgfNCUok4Y1fqEijfyi2b8RE9beWqa48Y/uvCNMcH9btfUi+/CGLR1vhL6Zz9N/vBlaCU+7lwY/cmJ67Ryen/2tj23PLqJBodZH8vgj544vOL4pxfI5acrSFxi8hrkU9TSKr78ZpnL50A8KPJJEo+afBblwyqf5j/iGys5j6ScrST2AAAAAElFTkSuQmCC"
                }
            },
            { "type": "inputsource", "background": "baccd9","align": "right", },
        ]
    },
    {
        "type": "group",
        "align": "right",
        "title": "VNC",
        "items": [
            {
                "type": "escape",
                "title": "Esc",
                "width": 50,
                "align": "left"
            },
            {
                "type": "close",
                "bordered": false,
                "width": 60,
                "align": "left"
            },

            {
                "type": "staticButton",
                "title": "F1",
                "action": "keyPress",
                "keycode": 122,
                "width": 60,
                "align": "left"
            },
            {
                "type": "staticButton",
                "title": "F2",
                "action": "keyPress",
                "keycode": 120,
                "width": 60,
                "align": "left"
            },
            {
                "type": "staticButton",
                "title": "F3",
                "action": "keyPress",
                "keycode": 99,
                "width": 60,
                "align": "left"
            },
            {
                "type": "staticButton",
                "title": "F4",
                "action": "keyPress",
                "keycode": 118,
                "width": 60,
                "align": "left"
            },
            {
                "type": "staticButton",
                "title": "F5",
                "action": "keyPress",
                "keycode": 96,
                "width": 60,
                "align": "left"
            },
            {
                "type": "staticButton",
                "title": "F6",
                "action": "keyPress",
                "keycode": 97,
                "width": 60,
                "align": "left"
            },
            {
                "type": "staticButton",
                "title": "F7",
                "action": "keyPress",
                "keycode": 98,
                "width": 60,
                "align": "left"
            },
            {
                "type": "staticButton",
                "title": "F8",
                "action": "keyPress",
                "keycode": 100,
                "width": 60,
                "align": "left"
            },

            // split
            // {
            //     "type": "staticButton",
            //     "title": " ",
            //     "width": 0,
            //     "bordered": false,
            //     "align": "left"
            // },

            {
                "type": "timeButton",
                "formatTemplate": "h:mm a",
                "width": 45,
                "bordered": false,
                "align": "right",
                "longAction": "shellScript",
                "longExecutablePath": "/usr/bin/pmset",
                "longShellArguments": ["sleepnow"]
            },

            // {
            //     "type": "staticButton",
            //     "title": "F9",
            //     "action": "keyPress",
            //     "keycode": 101,
            //     "width": 60,
            //     "align": "left"
            // },
            // {
            //     "type": "staticButton",
            //     "title": "F10",
            //     "action": "keyPress",
            //     "keycode": 109,
            //     "width": 60,
            //     "align": "left"
            // },
            // {
            //     "type": "staticButton",
            //     "title": "F11",
            //     "action": "keyPress",
            //     "keycode": 103,
            //     "width": 60,
            //     "align": "left"
            // },
            // {
            //     "type": "staticButton",
            //     "title": "F12",
            //     "action": "keyPress",
            //     "keycode": 111,
            //     "width": 60,
            //     "align": "left"
            // },
            {
                "type": "staticButton",
                "title": "PgUp",
                "action": "keyPress",
                "keycode": 116,
                "width": 60,
                "align": "right"
            },
            {
                "type": "staticButton",
                "title": "PgDn",
                "action": "keyPress",
                "keycode": 121,
                "width": 60,
                "align": "right"
            },
            {
                "type": "staticButton",
                "title": "Home",
                "action": "keyPress",
                "keycode": 115,
                "longAction": "appleScript",
                "longActionAppleScript": {
                    "inline": "tell application \"System Events\" to key code 123 using command down"
                },
                "align": "right"
            },
            {
                "type": "staticButton",
                "title": "End",
                "action": "keyPress",
                "keycode": 119,
                "longAction": "appleScript",
                "longActionAppleScript": {
                    "inline": "tell application \"System Events\" to key code 124 using command down"
                },
                "align": "right"
            },
            { "type": "inputsource", "background": "baccd9","align": "right", },
        ]
    },
    {
        "type": "group",
        "align": "right",
        "bordered": false,
        "title": "Info",
        "width":50,
        "items": [
            {"type": "close", "bordered": false, "width":70,"align": "left"},
            { "type": "weather", "refreshInterval": 60, "units": "metric", "align": "left", "bordered": false, "icon_type": "images", "api_key": "84645702688e83a35e2549ca77f73369"},
            {
                "type": "appleScriptTitledButton",
                "source": {
                    "inline":
                    "set cpu to do shell script \"ps axo %cpu | awk '{s+=$1}END{print s}'\"\rreturn cpu & \"%\""
                },
                "action": "appleScript",
                "actionAppleScript": {
                    "inline":
                    "activate application \"Activity Monitor\"\rtell application \"System Events\"\r\ttell process \"Activity Monitor\"\r\t\ttell radio button \"CPU\" of radio group 1 of group 2 of toolbar 1 of window 1 to perform action \"AXPress\"\r\tend tell\rend tell"
                },
                "refreshInterval": 5,
                "align": "left",
                "image": {
                    "base64":
                    "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA/1BMVEUAAADaACbYACfYACfjABzXACjYACfXACjYACfYACfYACfYACfdACLYACfX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Bzg7UQAe5t7syZwoCaMA3AN30wlzh3MYJYkkADeYTckYuJYlkiSVBeCKZtSY/gxlqezlxEt+pdFg6zBesPXn1ih8Aj5vkAels9PhYCkPsl++kg0AQu4dyuqmugIQm+qS5Nv6N+D7wm7d1skPc4xu666Fhd6BxU6r+jub8tNaWNxK29EhsdpR/sVn7FlLm0txPdgni+JrFNd3p+K67MQtyrsp3w2G7xbHd5Plv83z3Wj6b3V9N9ssFv7afaa//ZPn3wD4/vje8PP/N7TebS0hgZhEAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE4LTA4LTIyVDE3OjUyOjIyKzAyOjAwc2qUYAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOC0wOC0yMlQxNzo1MjoyMiswMjowMAI3LNwAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC"
                }
            },
            {
                "type": "appleScriptTitledButton",
                "source": {
                    "inline":
                    "set mem to do shell script \"ps -A -o %mem | awk '{s+=$1}END{print s}'\"\rreturn mem & \"%\""
                },
                "action": "appleScript",
                "actionAppleScript": {
                    "inline":
                    "activate application \"Activity Monitor\"\rtell application \"System Events\"\r\ttell process \"Activity Monitor\"\r\t\ttell radio button \"CPU\" of radio group 1 of group 2 of toolbar 1 of window 1 to perform action \"AXPress\"\r\tend tell\rend tell"
                },
                "refreshInterval": 5,
                "align": "left",
                "image": {
                    "base64":
                    "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABuwAAAbsBOuzj4gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA0WSURBVHic5Zt5dFRFFsZ/1dk6C+msho6CEAFNRAQEEmFEIQHUAXR0ECGinqMyM6KIM+IIuEcGj8u4J7iNK6BhNBiQnQgIEkAF2SUQ9qwSCGTfav54S/ol3Z3eop4z3zk56X5Vr+p9X9eruvfWLSGl5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APS0spKxw20pnP93s4PP1b4n+Nm8iRZLSmJgAAAABJRU5ErkJggg=="
                }
            },
            {
                "type": "network",
                "align": "left",
                "flip": true,
                "bordered": false,
            },
            {
                "type": "dnd",
                "align": "right",
                "width": 38
            },
            {"type": "darkMode", "bordered": false, "align": "right" },
            {
                "type": "pomodoro",
                "align": "right",
                "bordered": false,
                "workTime": 1200, // set time work in seconds. Default 1500 (25 min)
                "restTime": 600 // set time rest in seconds. Default 300 (5 min)
            },
            { "type": "inputsource", "background": "baccd9","align": "right", },
            { "type": "battery", "refreshInterval": 60, "align": "right" },
            { "type": "timeButton", "align": "right", "formatTemplate": "E MMM d h:mm a", "bordered": false }
        ]
    },
    { "type": "inputsource", "background": "baccd9","align": "right", },
    { "type": "battery", "refreshInterval": 60, "align": "right" },
    { "type": "displaySleep", "width": 24, "bordered": false, "align": "right", "title": "",
        "image": {
            "base64":
            "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABvAAAAbwBaKhFnQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAnDSURBVHic5Zt5bBz1Fcc/v83uOlkfa2/iYDsmkIQmTkMOSDhTcqhFaRBHqNoUSlV60BJSEFLTQik9BaVAUVsJaKBQVZAiCKQ0qKUEWgRtkVNITKBgEoztxMf6WHu9l3fXO7szv/6xPrLZnfXM7NpY6lcaaTS/+b35vTdv3vV7g5QSMwdQBbwNyBl2HAE8ZvmxYx7fA84pK6/A4XRamG4dmqqiqlrWdVVNEY9F1wB3ArvM0LQigM0Aa9ZdgKu01MJ064jH4wxHhrOuK0qC5ncOA2wyS9Nm5mYhhANY43A6p515gGQylfO601mC3eEAWCmEMKWWZjVgJTC7rKyCWDRmcqp1aFKSSiZJJpO697hKywgHAw5gFXDYKO28AhBCzAYuBcZe9yUAmqbR3dkxehOUl7vH3gBqKkUkHCRtL6cPAjF2+nUhxFmj5zHgFSn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qPLi29KNBsGexkWPoEwLgncMwSfHfLAraeXcUjr/dxrC/O8XeHgDTTl36yks3L3WxY6sY9J38l20ASNL0aYAYrFrh48LrFAITjKsMJlepyB45Zxptv9GyA1SAIpkEDcqFiziwqJnnbpyLPhnBBGmDaCEopA4C/e0jRjcunAnrP0mQ64gT8o2szBSteANKukN6QfvNysaGnAb6wdRcIBQgApnenaCoMIFgXwLTvFRqIAUwbQChQA6Zzp0h3LzBoLQcYw/+9Bhhqk8uaJESZgF6n3Va6qcEtJsmJDGG2w8aOTTXUVabLYk+/OcDbHenmTokk198yUkJjWxhF1YalpFZKmf1D0WQw+5vZSW0zNwEJitjW8tBPd0rfoWek79Azsqa6ytAcIUgAN1nlw5IGjEEIsQPY/aXtV3HD9ddapgPgcs1hxfKJwmkgGKK17QSxaBQps/X/iaefZ9/+lyDN/CNWn2slEjwZRwEUJcl5a1cXSCoTVZVu1p27mkgod0fo40/uzViDVVg1gmP4CKCtfWo6SKWmodsReqI7Yw1WUagAeoFY6xS10KpSZxOQ8ZbY2OgaLKMgAYw2IrZEIsOcmOjRLRqkzi5oR1cPkeEoQIuhZsg8KFQDAB4E2HXH3XR2Ffd3uVzdoN7efn5yz3jH+oOFPqMgLwAghLAB7wJnF7oYk89tllKukrlchBk6xfgxavQ3u+3Al4EzCyaYH53AHuBZM5ugevgf4uMh5Jj7v8QAAAAASUVORK5CYII="
        }
    },
    { "type": "timeButton", "formatTemplate": "HH:mm", "width": 45, "align": "right" },
]
EOF
发表评论 (暂无评论)
OωO
开启隐私评论,您的评论仅作者和评论双方可见
    • 最亲的人 - 岳云鹏
    • 小镇英雄青年 - 王贰浪
    • 纸短情长 - 王贰浪
    • 南京 - 李小糖
    • 我的姑娘 她在远方 - 隔壁老樊