OSDN Git Service

add support for offline keybind cache
authorpaperbenni <paperbenni@gmail.com>
Wed, 5 Aug 2020 16:17:50 +0000 (18:17 +0200)
committerpaperbenni <paperbenni@gmail.com>
Wed, 5 Aug 2020 16:17:50 +0000 (18:17 +0200)
programs/instanthotkeys

index d47b376..f848f67 100755 (executable)
@@ -7,6 +7,8 @@ dlbinds() {
         curl -s 'https://raw.githubusercontent.com/instantOS/instantos.github.io/master/youtube/hotkeys.md' |
             sed 's/^\([^|#]\)/    \1/g' |
             sed 's/^##*[ ]*/ /g' >~/.cache/instantos/hotkeys.md
+    else
+        cp /usr/share/instantutils/keybinds .cache/instantos/hotkeys.md
     fi
 }