diff --git a/config/mpv/scripts/organize.lua b/config/mpv/scripts/organize.lua index d14d1b6..01334de 100644 --- a/config/mpv/scripts/organize.lua +++ b/config/mpv/scripts/organize.lua @@ -43,8 +43,9 @@ function move_file(folder) end -mp.add_key_binding("alt+DEL", "delete_file", delete_file) +mp.add_key_binding("alt+d", "delete_file", delete_file) mp.add_key_binding("alt+a", "move_a", move_file('a')) mp.add_key_binding("alt+b", "move_b", move_file('b')) +mp.add_key_binding("alt+w", "move_c", move_file('c')) mp.add_key_binding("alt+s", "move_s", move_file('s')) mp.add_key_binding("alt+w", "move_w", move_file('w')) diff --git a/ubuntu/install-sources.sh b/ubuntu/install-sources.sh index b2175da..e26237f 100755 --- a/ubuntu/install-sources.sh +++ b/ubuntu/install-sources.sh @@ -23,9 +23,9 @@ trusted-host = pypi.doubanio.com EOF # docker accelerator -if [ -d /etc/docker ]; then$ - dj='{}'$ - [ -f /etc/docker/daemon.json ] && dj=$(cat /etc/docker/daemon.json)$ - echo $dj | jq '. + {"registry-mirrors": ["https://izuhlbap.mirror.aliyuncs.com"]}' > /etc/docker/daemon.json$ - systemctl restart docker$ -fi$ +if [ -d /etc/docker ]; then + dj='{}' + [ -f /etc/docker/daemon.json ] && dj=$(cat /etc/docker/daemon.json) + echo $dj | jq '. + {"registry-mirrors": ["https://izuhlbap.mirror.aliyuncs.com"]}' > /etc/docker/daemon.json + systemctl restart docker +fi