Update 2025-02-26 07:55 OpenBSD/amd64-t14
This commit is contained in:
parent
3794862593
commit
475bef8131
@ -142,7 +142,8 @@ choose_browser() {
|
||||
*club.de*) DEFAULT="Chrome (default)"; ;;
|
||||
*life.com*) DEFAULT="Chrome (default)"; ;;
|
||||
*videos.com*) DEFAULT="Chrome (default)"; ;;
|
||||
*youtube.com/watch*) DEFAULT="Mpv (default)"; ;;
|
||||
*comdirect.de*) DEFAULT="Chrome (default)"; ;;
|
||||
*youtube.com*) DEFAULT="Chrome (default)"; ;;
|
||||
*media.ccc.de/v/*) DEFAULT="Mpv (default)"; ;;
|
||||
*.pdf|*.cb|*.ps) DEFAULT="Zathura (default)"; ;;
|
||||
*.mp4|*.m4v|*.mkv) DEFAULT="Mpv (default)"; ;;
|
||||
|
19
.bin/osmc
19
.bin/osmc
@ -1,18 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
USBDISK=/mnt/1TB
|
||||
|
||||
case "$1" in
|
||||
put|push) shift; rsync -rv --progress --append-verify $@ osmc:/media/USBDisk/ ;;
|
||||
df) shift; ssh osmc "df -h /media/USBDisk/" ;;
|
||||
ls) shift; ssh osmc "cd /media/USBDisk/ && ls $@ | grep -v lost+found" ;;
|
||||
lls) shift; 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\"" ;;
|
||||
mount) shift; ssh -tt osmc "sudo /sbin/cryptdisks_start usbdisk" \
|
||||
&& ssh osmc "sudo mount /mnt/1TB" ;;
|
||||
put|push) shift; rsync -rv --progress --append-verify "$@" osmc:$USBDISK/ ;;
|
||||
df) shift; ssh osmc "df -h $USBDISK" ;;
|
||||
ls) shift; ssh osmc "cd $USBDISK && ls $@ | grep -v lost+found" ;;
|
||||
lls) shift; ssh osmc "cd $USBDISK && ls -lh | grep -v lost+found" ;;
|
||||
del) shift; ssh osmc "cd $USBDISK && rm -v $@" ;;
|
||||
ren) shift; ssh osmc "cd $USBDISK && mv \"$1\" \"$2\"" ;;
|
||||
at) shift; ssh -tt osmc "tmux at" ;;
|
||||
*) echo "usage: osmc <command> <args>"
|
||||
echo " mount - mount USB disk"
|
||||
echo " df - show disk space allocation"
|
||||
echo " ls - list files"
|
||||
echo " lls - list files with details"
|
||||
echo " put <files> - copy files to USBDisk"
|
||||
echo " put <files> - copy files to USB disk"
|
||||
echo " ren <old> <new> - rename file"
|
||||
echo " del <files> - delete file"
|
||||
echo " at - attach to tmux session"
|
||||
|
@ -220,48 +220,48 @@ end
|
||||
follow.pattern_maker = follow.pattern_styles.match_label
|
||||
|
||||
|
||||
-- -- social media enhancer
|
||||
-- local webview = require "webview"
|
||||
-- webview.add_signal('init', function (view)
|
||||
-- view:add_signal('navigation-request', function(v, uri)
|
||||
-- if v.uri:match('https://www.reddit.com') then
|
||||
-- v.uri = v.uri:gsub('%www.reddit.com', 'old.reddit.com')
|
||||
-- return true
|
||||
-- end
|
||||
-- if v.uri:match('https://new.reddit.com') then
|
||||
-- v.uri = v.uri:gsub('%new.reddit.com', 'old.reddit.com')
|
||||
-- return true
|
||||
-- end
|
||||
-- -- if v.uri:match('https://old.reddit.com') then
|
||||
-- -- v.uri = v.uri:gsub('%old.reddit.com', 'libreddit.kylrth.com')
|
||||
-- -- return true
|
||||
-- -- end
|
||||
-- -- if v.uri:match('https://old.reddit.com') then
|
||||
-- -- v.uri = v.uri:gsub('%old.reddit.com', 'libreddit.kylrth.com')
|
||||
-- -- return true
|
||||
-- -- end
|
||||
-- if v.uri:match('https://www.twitter.com') then
|
||||
-- v.uri = v.uri:gsub('%www.twitter.com', 'nitter.net')
|
||||
-- return true
|
||||
-- end
|
||||
-- if v.uri:match('https://twitter.com') then
|
||||
-- v.uri = v.uri:gsub('%twitter.com', 'nitter.net')
|
||||
-- return true
|
||||
-- end
|
||||
-- if v.uri:match('https://www.youtube.com') then
|
||||
-- v.uri = v.uri:gsub('%www.youtube.com', 'tube.cadence.moe')
|
||||
-- return true
|
||||
-- end
|
||||
-- if v.uri:match('https://youtube.com') then
|
||||
-- v.uri = v.uri:gsub('%youtube.com', 'tube.cadence.moe')
|
||||
-- return true
|
||||
-- end
|
||||
-- if v.uri:match('https://youtu.be') then
|
||||
-- v.uri = v.uri:gsub('%youtu.be/', 'tube.cadence.moe/watch?v=')
|
||||
-- return true
|
||||
-- end
|
||||
-- end)
|
||||
-- end)
|
||||
-- social media enhancer
|
||||
local webview = require "webview"
|
||||
webview.add_signal('init', function (view)
|
||||
view:add_signal('navigation-request', function(v, uri)
|
||||
if v.uri:match('https://www.reddit.com') then
|
||||
v.uri = v.uri:gsub('%www.reddit.com', 'old.reddit.com')
|
||||
return true
|
||||
end
|
||||
if v.uri:match('https://new.reddit.com') then
|
||||
v.uri = v.uri:gsub('%new.reddit.com', 'old.reddit.com')
|
||||
return true
|
||||
end
|
||||
if v.uri:match('https://old.reddit.com') then
|
||||
v.uri = v.uri:gsub('%old.reddit.com', 'redlib.kylrth.com')
|
||||
return true
|
||||
end
|
||||
if v.uri:match('https://old.reddit.com') then
|
||||
v.uri = v.uri:gsub('%old.reddit.com', 'redlib.kylrth.com')
|
||||
return true
|
||||
end
|
||||
if v.uri:match('https://www.twitter.com') then
|
||||
v.uri = v.uri:gsub('%www.twitter.com', 'nitter.net')
|
||||
return true
|
||||
end
|
||||
if v.uri:match('https://twitter.com') then
|
||||
v.uri = v.uri:gsub('%twitter.com', 'nitter.net')
|
||||
return true
|
||||
end
|
||||
if v.uri:match('https://www.youtube.com') then
|
||||
v.uri = v.uri:gsub('%www.youtube.com', 'tube.cadence.moe')
|
||||
return true
|
||||
end
|
||||
if v.uri:match('https://youtube.com') then
|
||||
v.uri = v.uri:gsub('%youtube.com', 'tube.cadence.moe')
|
||||
return true
|
||||
end
|
||||
if v.uri:match('https://youtu.be') then
|
||||
v.uri = v.uri:gsub('%youtu.be/', 'tube.cadence.moe/watch?v=')
|
||||
return true
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
-- social media blocker
|
||||
local webview = require "webview"
|
||||
|
@ -27,7 +27,7 @@ text/html; w3m -I %{charset} -T %t -cols "$COLUMNS" -s -no-graph -o display_link
|
||||
message/*; cat %s; needsterminal;
|
||||
|
||||
# documents
|
||||
application/pdf; ~/.mutt/scripts/call.sh mupdf %s; nametemplate=%s.pdf;
|
||||
application/pdf; ~/.mutt/scripts/call.sh zathura %s; nametemplate=%s.pdf;
|
||||
application/vnd.openxmlformats-officedocument.wordprocessingml.document; ~/.mutt/scripts/call.sh libreoffice %s;
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; ~/.mutt/scripts/call.sh libreoffice %s;
|
||||
application/vnd.openxmlformats-officedocument.presentationml.presentation; ~/.mutt/scripts/call.sh libreoffice %s;
|
||||
|
Loading…
Reference in New Issue
Block a user