diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 88c4258..d55a368 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -30,9 +30,10 @@ Plug 'rhysd/vim-grammarous' call plug#end() " Integrated spell-check +"set spell " set spellang = en,de -" nnoremap :set spell! -" inoremap :set spell! +nnoremap :set spell! +inoremap :set spell! set bg=light set go=a diff --git a/.config/ranger/colorschemes/default.py b/.config/ranger/colorschemes/default.py index 3d50e2e..beec86c 100644 --- a/.config/ranger/colorschemes/default.py +++ b/.config/ranger/colorschemes/default.py @@ -23,6 +23,7 @@ class Default(ColorScheme): elif context.in_browser: if context.selected: attr = reverse + bg = black else: attr = normal if context.empty or context.error: diff --git a/.config/transmission-daemon/settings.json b/.config/transmission-daemon/settings.json index 899417b..bb5b809 100644 --- a/.config/transmission-daemon/settings.json +++ b/.config/transmission-daemon/settings.json @@ -14,8 +14,8 @@ "dht-enabled": true, "download-dir": "/home/alex/dls", "download-queue-enabled": true, - "download-queue-size": 5, - "encryption": 1, + "download-queue-size": 15, + "encryption": 2, "idle-seeding-limit": 30, "idle-seeding-limit-enabled": false, "incomplete-dir": "/home/alex/dls", diff --git a/.local/bin/statusbar/nettraf b/.local/bin/statusbar/nettraf index 2468004..4eeed62 100755 --- a/.local/bin/statusbar/nettraf +++ b/.local/bin/statusbar/nettraf @@ -21,11 +21,11 @@ update() { [ -f "$lasttime" ] && read -r previoustime < "$lasttime" || previoustime=0 rx=$(update /sys/class/net/[ew]*/statistics/rx_bytes) tx=$(update /sys/class/net/[ew]*/statistics/tx_bytes) -timedifference=$(( "$(date +'%s')" - "$previoustime" )) +timedifference=$(( $(date +'%s') - previoustime )) if [ "$timedifference" -gt 0 ]; then - rx_avg=$(( "$rx" / "$timedifference" )) - tx_avg=$(( "$tx" / "$timedifference" )) + rx_avg=$(( rx / timedifference )) + tx_avg=$(( tx / timedifference )) else rx_avg=$rx tx_avg=$tx diff --git a/.local/bin/tools/ce b/.local/bin/tools/ce index 1ea73fe..b451e21 100755 --- a/.local/bin/tools/ce +++ b/.local/bin/tools/ce @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash #A script that launches documents in their respective viewers #either via dmenu or fzf depending on the context ppid () { ps -p ${1:-$$} -o ppid=; } diff --git a/.local/bin/tools/dmenuhandler b/.local/bin/tools/dmenuhandler index 1b0a9fb..9dcc481 100755 --- a/.local/bin/tools/dmenuhandler +++ b/.local/bin/tools/dmenuhandler @@ -17,6 +17,6 @@ case "$(printf "mpv\\ncopy url\\nqueue download\\nqueue youtube-dl\\nbrowser\\nr #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 & ;; "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";; esac