diff --git a/.config/aliasrc b/.config/aliasrc index 9b7b31a..a09c713 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -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 \ diff --git a/.config/coc/history.json b/.config/coc/history.json index 3dba460..ec534dc 100644 --- a/.config/coc/history.json +++ b/.config/coc/history.json @@ -9,6 +9,12 @@ ], "local%2Fsrc%2Fbibel": [ " " + ], + "local%2Fsrc%2Favl": [ + " " + ], + "local%2Fbin": [ + " " ] }, "%2Fhome%2Falex": [ diff --git a/.config/gtk-2.0/gtkfilechooser.ini b/.config/gtk-2.0/gtkfilechooser.ini index e26ff79..7ca5fbd 100644 --- a/.config/gtk-2.0/gtkfilechooser.ini +++ b/.config/gtk-2.0/gtkfilechooser.ini @@ -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 diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 56f6ecd..d8b9827 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -173,11 +173,11 @@ set signcolumn=no " Use tab for trigger completion with characters ahead and navigate. " NOTE: Use command ':verbose imap ' to make sure tab is not mapped by " other plugin before putting this into your config. -inoremap - \ pumvisible() ? "\" : - \ check_back_space() ? "\" : - \ coc#refresh() -inoremap pumvisible() ? "\" : "\" +"inoremap +" \ pumvisible() ? "\" : +" \ check_back_space() ? "\" : +" \ coc#refresh() +"inoremap pumvisible() ? "\" : "\" function! s:check_back_space() abort let col = col('.') - 1 @@ -185,8 +185,12 @@ function! s:check_back_space() abort endfunction " Use to trigger completion. -inoremap coc#refresh() +inoremap + \ pumvisible() ? "\" : + \ check_back_space() ? "\" : + \ coc#refresh() +"inoremap pumvisible() ? "\" : "\" " Use to confirm completion, `u` means break undo chain at current " position. Coc only does snippet and additional edit on confirm. " could be remapped by other vim plugin, try `:verbose imap `. diff --git a/.config/qutebrowser/autoconfig.yml b/.config/qutebrowser/autoconfig.yml index e2574f4..060ab54 100644 --- a/.config/qutebrowser/autoconfig.yml +++ b/.config/qutebrowser/autoconfig.yml @@ -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 diff --git a/.config/qutebrowser/bookmarks/urls b/.config/qutebrowser/bookmarks/urls index 007f785..37465a1 100644 --- a/.config/qutebrowser/bookmarks/urls +++ b/.config/qutebrowser/bookmarks/urls @@ -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 diff --git a/.config/qutebrowser/qsettings/QtProject.conf b/.config/qutebrowser/qsettings/QtProject.conf index 9e146cd..ccb9eee 100644 --- a/.config/qutebrowser/qsettings/QtProject.conf +++ b/.config/qutebrowser/qsettings/QtProject.conf @@ -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 diff --git a/.config/qutebrowser/quickmarks b/.config/qutebrowser/quickmarks index 03c0169..3bbd7db 100644 --- a/.config/qutebrowser/quickmarks +++ b/.config/qutebrowser/quickmarks @@ -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 diff --git a/.config/xprofile b/.config/xprofile index 5bcc490..51a6177 100755 --- a/.config/xprofile +++ b/.config/xprofile @@ -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+; diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index cb04523..2e866c4 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -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 diff --git a/.local/bin/bt b/.local/bin/bt index 496e092..f177da5 100755 --- a/.local/bin/bt +++ b/.local/bin/bt @@ -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 } diff --git a/.local/bin/statusbar/getpomminutes b/.local/bin/statusbar/getpomminutes index d9cac76..d883376 100755 --- a/.local/bin/statusbar/getpomminutes +++ b/.local/bin/statusbar/getpomminutes @@ -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' diff --git a/.local/bin/statusbar/getpomminutesft b/.local/bin/statusbar/getpomminutesft index 0678715..03e5938 100755 --- a/.local/bin/statusbar/getpomminutesft +++ b/.local/bin/statusbar/getpomminutesft @@ -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' diff --git a/.local/bin/statusbar/nettraf b/.local/bin/statusbar/nettraf index 7291cdd..e602136 100755 --- a/.local/bin/statusbar/nettraf +++ b/.local/bin/statusbar/nettraf @@ -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"