Various changes

modified:   .config/aliasrc
	modified:   .config/coc/history.json
	modified:   .config/gtk-2.0/gtkfilechooser.ini
	modified:   .config/nvim/init.vim
	modified:   .config/qutebrowser/autoconfig.yml
	modified:   .config/qutebrowser/bookmarks/urls
	modified:   .config/qutebrowser/qsettings/QtProject.conf
	modified:   .config/qutebrowser/quickmarks
	modified:   .config/xprofile
	modified:   .config/zsh/.zshrc
	modified:   .local/bin/bt
	modified:   .local/bin/statusbar/getpomminutes
	modified:   .local/bin/statusbar/getpomminutesft
	modified:   .local/bin/statusbar/nettraf
This commit is contained in:
Alexander Bocken 2020-10-02 15:33:33 +02:00
parent ffc4b02130
commit e7db5a5ee3
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
14 changed files with 49 additions and 45 deletions

View File

@ -10,9 +10,10 @@ alias \
mv="mv -iv" \
rm="rm -v" \
mkd="mkdir -pv" \
yt="youtube-dl --add-metadata -i" \
yt="youtube-dl --add-metadata -o '%(upload_date)s-%(title)s.%(ext)s' -i" \
yta="yt -x -f bestaudio/best" \
ffmpeg="ffmpeg -hide_banner"
ffmpeg="ffmpeg -hide_banner" \
sage="sage -q"
# Colorize commands when possible.
alias \

View File

@ -9,6 +9,12 @@
],
"local%2Fsrc%2Fbibel": [
" "
],
"local%2Fsrc%2Favl": [
" "
],
"local%2Fbin": [
" "
]
},
"%2Fhome%2Falex": [

View File

@ -2,8 +2,8 @@
LocationMode=path-bar
ShowHidden=false
ShowSizeColumn=true
GeometryX=0
GeometryY=37
GeometryX=4035
GeometryY=433
GeometryWidth=990
GeometryHeight=800
SortColumn=modified

View File

@ -173,11 +173,11 @@ set signcolumn=no
" Use tab for trigger completion with characters ahead and navigate.
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
" other plugin before putting this into your config.
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
"inoremap <silent><expr> <TAB>
" \ pumvisible() ? "\<C-n>" :
" \ <SID>check_back_space() ? "\<TAB>" :
" \ coc#refresh()
"inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
function! s:check_back_space() abort
let col = col('.') - 1
@ -185,8 +185,12 @@ function! s:check_back_space() abort
endfunction
" Use <c-space> to trigger completion.
inoremap <silent><expr> <c-space> coc#refresh()
inoremap <silent><expr> <c-space>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
"inoremap <expr><S-C-space> pumvisible() ? "\<C-p>" : "\<C-h>"
" Use <cr> to confirm completion, `<C-g>u` means break undo chain at current
" position. Coc only does snippet and additional edit on confirm.
" <cr> could be remapped by other vim plugin, try `:verbose imap <CR>`.

View File

@ -69,6 +69,7 @@ settings:
global:
DEFAULT: https://searx.bocken.org/?q={}&categories=general&language=en-US
ddg: https://duckduckgo.com/?q={}
gg: https://linggle.com/?q={}
ling: https://www.linguee.com/english-german/search?source=auto&query={}
oz: http://www.ozdic.com/collocation-dictionary/{}
sx: https://searx.bocken.org/?q={}&categories=general&language=en-US

View File

@ -1,9 +1,3 @@
https://security.stackexchange.com/questions/220068/using-local-port-forwarding-from-raspberrypi-to-vps-in-order-to-be-able-to-acces ssh - Using local port forwarding from RaspberryPI to VPS in order to be able to access the PI from anywhere on the Internet, security considerations? - Information Security Stack Exchange
https://gist.github.com/attacus/cb5c8a53380ca755b10a5b37a636a0b9 Create your own encrypted chat server with Riot and Matrix
https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Fmy.vultr.com%2F&ref_src=twsrc%5Etfw&text=I%20just%20deployed%20a%20high%20performance%20cloud%20server%20on%20Vultr.com%20!%20%23ILoveVultr%20%23Cloud&tw_p=tweetbutton&url=http%3A%2F%2Fgoo.gl%2FZLou61 Home / Twitter
https://translate.google.com/#view=home&op=translate&sl=de&tl=ja&text=Generation Google Translate
https://evasys-app1.let.ethz.ch/evasys/online.php?pswd=O68MYGRV29I6EE EvaSys Onlineumfrage - Introduction to Quantum Mechanics for Engineers (151-0966-00S-FS20)
https://traditionalcatholicprayers.com/2019/11/12/how-to-pray-the-rosary-in-latin/ How to Pray the Rosary in Latin | Traditional Catholic Prayers
https://searx.bocken.org/ Alex's searx
https://www.theatlantic.com/magazine/archive/2019/08/henry-kissinger-the-metamorphosis-ai/592771/?utm_source=share&utm_campaign=share Henry Kissinger, Eric Schmidt, and Daniel Huttenlocher on AI - The Atlantic
http://www.ozdic.com/ ozdic.com - the English Collocations Dictionary online
https://people.math.ethz.ch/~fdalio/ANALYSISIIIDMAVTDMATLHS20 Personal Homepage of Prof. Dr. Francesca Da Lio
http://n.ethz.ch/~staerkr/ Roland Stärk

View File

@ -1,6 +1,6 @@
[FileDialog]
history=file:///home/alex/Bachelor\xfc\x62\x65rgabe Christina 11.09.2020, file:///home/alex/test, file:///home/alex, file:///home/alex/FW_RT_AC68U_300438520633/Firmware_Release, file:///home/alex/eth/werkstatt
lastVisited=file:///home/alex
history=file:///home/alex/eth/werkstatt, file:///home/alex/dox/orga/imma, file:///home/alex/dox/orga/sbk, file:///home/alex/eth/zsf, file:///home/alex, file:///home/alex/bks
lastVisited=file:///home/alex/bks
qtVersion=5.15.1
shortcuts=file:, file:///home/alex
sidebarWidth=82

View File

@ -6,5 +6,6 @@ wsg https://boards.4channel.org/wsg/
bant https://boards.4chan.org/bant/
kanji https://kanji.sljfaq.org/draw-canvas.html
mystudies https://www.lehrbetrieb.ethz.ch/myStudies/studWillkommen.view
gg https://linggle.com/
live https://video.ethz.ch/live/lectures.html
dynamics https://video.ethz.ch/live/lectures/zentrum/ml/ml-d-28/blackboard.html
dim1 https://video.ethz.ch/live/lectures/zentrum/hg/hg-f-7.html

View File

@ -20,10 +20,11 @@ dunst & # dunst for notifications
dwmblocks &
xset r rate 300 50 & # Speed xrate up
unclutter --timeout 2 --ignore-scrolling & # Remove mouse when idle
#insync start &
#element-desktop --hidden &
insync start &
element-desktop --hidden &
transmission-daemon &
echo "$HOME/.config/mpd/state" | entr -np pkill -RTMIN+11 dwmblocks &
echo "/var/lib/pacman/db.lck" | entr -np pkill -RTMIN+6 dwmblocks &
xrandr --listactivemonitors | grep -q '1920.*x1080.*HDMI-1$' && ( xrandr --output HDMI-1 --scale 1.5 && setbg ) # set scale for 2nd monitor if connected
redshift &
keynav &
redshift & # Bluefilter based on time
keynav & # emulate mouse clicks with vim-bindings and starting with Ctrl+;

View File

@ -110,6 +110,6 @@ ZSH_AUTOSUGGEST_STRATEGY=(match_prev_cmd completion) # completion strategy, poss
ZLE_PROMPT_INDENT=0
source $HOME/.local/src/zsh-autosuggestions/zsh-autosuggestions.zsh
# increment/decriment via Ctrl+a, Ctrl+x
source /$HOME/.local/src/vi-increment/vi-increment.zsh
source $HOME/.local/src/vi-increment/vi-increment.zsh
# Load syntax highlighting; should be last.
source $HOME/.local/src/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null

View File

@ -2,6 +2,9 @@
SCAN_PERIOD=5
AUTOTRUST=false #trust every newly paired device
AUTOSCAN=false #immediately start scanning when started to speed up pairing process
#If you want to update symbols in your status bar add your details below:
bar="dwmblocks"
barsignal="4"
#locations of blacklist and hard coded list of paired devices (watch out, need to modify Makefile as well if you want to change these values and still use make install)
BLACKLIST=${XDG_DATA_HOME:-$HOME/.local/share}/bt/blacklist
@ -102,6 +105,7 @@ poweroption="$( echo "$powerstatus" | sed 's/yes/power off/; s/no/power on/' )"
cleanup(){
scan off
rm /tmp/bt_start_scan$$ 2> /dev/null
pkill -RTMIN+$barsignal $bar
exit 0
}

View File

@ -3,4 +3,5 @@ day=$(date '+%Y%b%d')
logged=$(grep -v Break ~/eth/pomodoros | grep $(date '+%Y%b%d') | grep -Eo "\(.*\)" | paste -sd+ | bc)
temp=$(cat /tmp/pomptemptimes 2>/dev/null)
min=$([ "$logged" != "" ] && ([ "$temp" != "" ] && echo "$logged + $temp" | bc || echo $logged ) || ([ "$temp" != "" ] && echo $temp))
[ -n "$min" ] && echo '🍅'$min
[ -n "$min" ] && printf '🍅%s' "$min"
printf '\n'

View File

@ -3,4 +3,5 @@ day=$(date '+%Y%b%d')
logged=$(grep -v Break ~/bks/pomodoros_freetime | grep $(date '+%Y%b%d') | grep -Eo "\(.*\)" | paste -sd+ | bc)
temp=$(cat /tmp/pomptemptimesft 2>/dev/null)
min=$([ "$logged" != "" ] && ([ "$temp" != "" ] && echo "$logged + $temp" | bc || echo $logged ) || ([ "$temp" != "" ] && echo $temp))
[ -n "$min" ] && echo '📚'$min
[ -n "$min" ] && printf '📚%s'"$min"
printf '\n'

View File

@ -4,11 +4,7 @@
# transmitted (TX) since the previous time this script ran. So if run every
# second, gives network traffic per second.
case $BLOCK_BUTTON in
3) notify-send "🌐 Network traffic module" "🔻: Traffic received
🔺: Traffic transmitted" ;;
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
lasttime=${XDG_CACHE_HOME:-$HOME/.cache}/nettraf_time
update() {
sum=0
@ -22,24 +18,18 @@ update() {
printf %d\\n $(( sum - old ))
}
lasttime=${XDG_CACHE_HOME:-$HOME/.cache}/nettraf_time
[ -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" ))
if [ -n "$timedifference" ]; then
if [ "$timedifference" -gt 0 ]; then
rx_avg=$(( "$rx" / "$timedifference" ))
tx_avg=$(( "$tx" / "$timedifference" ))
else
rx_avg=rx_bytes
tx_avg=tx_bytes
rx_avg=$rx
tx_avg=$tx
fi
#only print if any traffic at all
if [ "$rx_avg" -gt 0 ] || [ "$tx_avg" -gt 0 ]
then
#printf "⬇%4sB/s⬆%4sB/s\\n" $(numfmt --to=iec $rx_avg) $(numfmt --to=iec $tx_avg) | sed 's/ //g'
printf "⬇%sB/s ⬆%sB/s\\n" $(numfmt --to=iec $rx_avg) $(numfmt --to=iec $tx_avg)
fi
date +'%s' > $lasttime
printf '⬇%s ⬆%s\n' $(numfmt --to=iec $rx_avg) $(numfmt --to=iec $tx_avg)
date +'%s' > "$lasttime"