various improvements
This commit is contained in:
parent
255d81f9cc
commit
fed75ab9c2
@ -30,9 +30,10 @@ Plug 'rhysd/vim-grammarous'
|
|||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" Integrated spell-check
|
" Integrated spell-check
|
||||||
|
"set spell
|
||||||
" set spellang = en,de
|
" set spellang = en,de
|
||||||
" nnoremap <silent> <F11> :set spell!<cr>
|
nnoremap <silent> <F11> :set spell!<cr>
|
||||||
" inoremap <silent> <F11> <C-O>:set spell!<cr>
|
inoremap <silent> <F11> <C-O>:set spell!<cr>
|
||||||
|
|
||||||
set bg=light
|
set bg=light
|
||||||
set go=a
|
set go=a
|
||||||
|
@ -23,6 +23,7 @@ class Default(ColorScheme):
|
|||||||
elif context.in_browser:
|
elif context.in_browser:
|
||||||
if context.selected:
|
if context.selected:
|
||||||
attr = reverse
|
attr = reverse
|
||||||
|
bg = black
|
||||||
else:
|
else:
|
||||||
attr = normal
|
attr = normal
|
||||||
if context.empty or context.error:
|
if context.empty or context.error:
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
"dht-enabled": true,
|
"dht-enabled": true,
|
||||||
"download-dir": "/home/alex/dls",
|
"download-dir": "/home/alex/dls",
|
||||||
"download-queue-enabled": true,
|
"download-queue-enabled": true,
|
||||||
"download-queue-size": 5,
|
"download-queue-size": 15,
|
||||||
"encryption": 1,
|
"encryption": 2,
|
||||||
"idle-seeding-limit": 30,
|
"idle-seeding-limit": 30,
|
||||||
"idle-seeding-limit-enabled": false,
|
"idle-seeding-limit-enabled": false,
|
||||||
"incomplete-dir": "/home/alex/dls",
|
"incomplete-dir": "/home/alex/dls",
|
||||||
|
@ -21,11 +21,11 @@ update() {
|
|||||||
[ -f "$lasttime" ] && read -r previoustime < "$lasttime" || previoustime=0
|
[ -f "$lasttime" ] && read -r previoustime < "$lasttime" || previoustime=0
|
||||||
rx=$(update /sys/class/net/[ew]*/statistics/rx_bytes)
|
rx=$(update /sys/class/net/[ew]*/statistics/rx_bytes)
|
||||||
tx=$(update /sys/class/net/[ew]*/statistics/tx_bytes)
|
tx=$(update /sys/class/net/[ew]*/statistics/tx_bytes)
|
||||||
timedifference=$(( "$(date +'%s')" - "$previoustime" ))
|
timedifference=$(( $(date +'%s') - previoustime ))
|
||||||
|
|
||||||
if [ "$timedifference" -gt 0 ]; then
|
if [ "$timedifference" -gt 0 ]; then
|
||||||
rx_avg=$(( "$rx" / "$timedifference" ))
|
rx_avg=$(( rx / timedifference ))
|
||||||
tx_avg=$(( "$tx" / "$timedifference" ))
|
tx_avg=$(( tx / timedifference ))
|
||||||
else
|
else
|
||||||
rx_avg=$rx
|
rx_avg=$rx
|
||||||
tx_avg=$tx
|
tx_avg=$tx
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
#A script that launches documents in their respective viewers
|
#A script that launches documents in their respective viewers
|
||||||
#either via dmenu or fzf depending on the context
|
#either via dmenu or fzf depending on the context
|
||||||
ppid () { ps -p ${1:-$$} -o ppid=; }
|
ppid () { ps -p ${1:-$$} -o ppid=; }
|
||||||
|
@ -17,6 +17,6 @@ case "$(printf "mpv\\ncopy url\\nqueue download\\nqueue youtube-dl\\nbrowser\\nr
|
|||||||
#w3m) w3m "$1" >/dev/null 2>&1 ;;
|
#w3m) w3m "$1" >/dev/null 2>&1 ;;
|
||||||
#"mpv (float)") setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%s) --geometry=+0-0 --autofit=30% --title="mpvfloat" "$1" >/dev/null 2>&1 & ;;
|
#"mpv (float)") setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%s) --geometry=+0-0 --autofit=30% --title="mpvfloat" "$1" >/dev/null 2>&1 & ;;
|
||||||
"rip media") dest="$(dmenuinput 'name of folder:')"
|
"rip media") dest="$(dmenuinput 'name of folder:')"
|
||||||
lynx --dump --nonumbers --listonly "$1" | grep -E "(*\.webm|*\.mp4|\.gif|\.jpg|\.jpeg|\.png|\.pdf|\.epub|\.mobi|\.djvu)" | sort -u | xargs wget -P "$HOME/$dest"
|
lynx --dump --nonumbers --listonly "$1" | grep -E "\.(webm|mp4|gif|jpg|jpeg|png|pdf|epub|mobi|djvu)" | sort -u | xargs wget -P "$HOME/$dest"
|
||||||
notify-send "dmenuhandler" "all media ripped into $dest";;
|
notify-send "dmenuhandler" "all media ripped into $dest";;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user