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