Update 2024-12-22 21:08 OpenBSD/amd64-t14
This commit is contained in:
parent
a145968b49
commit
ebae25d46e
20
.bin/osmc
20
.bin/osmc
@ -1,10 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
cp) shift; rsync -rvP $@ osmc:/media/USBDisk/ ;;
|
||||
df) ssh osmc "df -h /media/USBDisk/" ;;
|
||||
ls) ssh osmc "cd /media/USBDisk/ && ls -1 | grep -v lost+found" ;;
|
||||
lls) ssh osmc "cd /media/USBDisk/ && ls -lh | grep -v lost+found" ;;
|
||||
rm) shift; ssh osmc "cd /media/USBDisk/ && rm -v $@" ;;
|
||||
*) echo "available commands: df, ls, lls, cp <file>, rm <file>" ;;
|
||||
put) shift; rsync -rvP $@ osmc:/media/USBDisk/ ;;
|
||||
df) ssh osmc "df -h /media/USBDisk/" ;;
|
||||
ls) ssh osmc "cd /media/USBDisk/ && ls -1 | grep -v lost+found" ;;
|
||||
lls) ssh osmc "cd /media/USBDisk/ && ls -lh | grep -v lost+found" ;;
|
||||
del) shift; ssh osmc "cd /media/USBDisk/ && rm -v $@" ;;
|
||||
ren) shift; ssh osmc "cd /media/USBDisk/ && mv \"$1\" \"$2\"" ;;
|
||||
*) echo "usage: osmc <command> <args>"
|
||||
echo " df - show disk space allocation"
|
||||
echo " ls - list files"
|
||||
echo " lls - list files with details"
|
||||
echo " put <file> - copy files to USBDisk"
|
||||
echo " ren <old> <new> - rename file"
|
||||
echo " del <file> - delete file"
|
||||
;;
|
||||
esac
|
||||
|
@ -60,7 +60,7 @@ local settings_chrome = require "settings_chrome"
|
||||
settings.window.home_page = "luakit://newtab"
|
||||
-- settings.window.scroll_step = 20
|
||||
settings.window.zoom_step = 0.2
|
||||
settings.webview.zoom_level = 125
|
||||
settings.webview.zoom_level = 100
|
||||
settings.window.close_with_last_tab = true
|
||||
|
||||
-- search engines
|
||||
@ -75,11 +75,11 @@ settings.window.search_engines.default = settings.window.search_engines.ddg
|
||||
----------------------------------
|
||||
|
||||
-- Add adblock
|
||||
-- local adblock = require "adblock"
|
||||
-- local adblock_chrome = require "adblock_chrome"
|
||||
local adblock = require "adblock"
|
||||
local adblock_chrome = require "adblock_chrome"
|
||||
|
||||
-- Enable Developer Tools
|
||||
-- local webinspector = require "webinspector"
|
||||
local webinspector = require "webinspector"
|
||||
|
||||
-- Add uzbl-like form filling
|
||||
-- local formfiller = require "formfiller"
|
||||
@ -106,14 +106,14 @@ local gopher = require "gopher"
|
||||
local undoclose = require "undoclose"
|
||||
|
||||
-- Add command to list tab history items
|
||||
-- local tabhistory = require "tabhistory"
|
||||
local tabhistory = require "tabhistory"
|
||||
|
||||
-- Add greasemonkey-like javascript userscript support
|
||||
--- local userscripts = require "userscripts"
|
||||
local userscripts = require "userscripts"
|
||||
|
||||
-- Add bookmarks support
|
||||
-- local bookmarks = require "bookmarks"
|
||||
-- local bookmarks_chrome = require "bookmarks_chrome"
|
||||
local bookmarks = require "bookmarks"
|
||||
local bookmarks_chrome = require "bookmarks_chrome"
|
||||
|
||||
-- Add download support
|
||||
local downloads = require "downloads"
|
||||
|
Loading…
Reference in New Issue
Block a user