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:
parent
ffc4b02130
commit
e7db5a5ee3
@ -10,9 +10,10 @@ alias \
|
|||||||
mv="mv -iv" \
|
mv="mv -iv" \
|
||||||
rm="rm -v" \
|
rm="rm -v" \
|
||||||
mkd="mkdir -pv" \
|
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" \
|
yta="yt -x -f bestaudio/best" \
|
||||||
ffmpeg="ffmpeg -hide_banner"
|
ffmpeg="ffmpeg -hide_banner" \
|
||||||
|
sage="sage -q"
|
||||||
|
|
||||||
# Colorize commands when possible.
|
# Colorize commands when possible.
|
||||||
alias \
|
alias \
|
||||||
|
@ -9,6 +9,12 @@
|
|||||||
],
|
],
|
||||||
"local%2Fsrc%2Fbibel": [
|
"local%2Fsrc%2Fbibel": [
|
||||||
" "
|
" "
|
||||||
|
],
|
||||||
|
"local%2Fsrc%2Favl": [
|
||||||
|
" "
|
||||||
|
],
|
||||||
|
"local%2Fbin": [
|
||||||
|
" "
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"%2Fhome%2Falex": [
|
"%2Fhome%2Falex": [
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
LocationMode=path-bar
|
LocationMode=path-bar
|
||||||
ShowHidden=false
|
ShowHidden=false
|
||||||
ShowSizeColumn=true
|
ShowSizeColumn=true
|
||||||
GeometryX=0
|
GeometryX=4035
|
||||||
GeometryY=37
|
GeometryY=433
|
||||||
GeometryWidth=990
|
GeometryWidth=990
|
||||||
GeometryHeight=800
|
GeometryHeight=800
|
||||||
SortColumn=modified
|
SortColumn=modified
|
||||||
|
@ -173,11 +173,11 @@ set signcolumn=no
|
|||||||
" Use tab for trigger completion with characters ahead and navigate.
|
" Use tab for trigger completion with characters ahead and navigate.
|
||||||
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
|
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
|
||||||
" other plugin before putting this into your config.
|
" other plugin before putting this into your config.
|
||||||
inoremap <silent><expr> <TAB>
|
"inoremap <silent><expr> <TAB>
|
||||||
\ pumvisible() ? "\<C-n>" :
|
" \ pumvisible() ? "\<C-n>" :
|
||||||
\ <SID>check_back_space() ? "\<TAB>" :
|
" \ <SID>check_back_space() ? "\<TAB>" :
|
||||||
\ coc#refresh()
|
" \ coc#refresh()
|
||||||
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
"inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
||||||
|
|
||||||
function! s:check_back_space() abort
|
function! s:check_back_space() abort
|
||||||
let col = col('.') - 1
|
let col = col('.') - 1
|
||||||
@ -185,8 +185,12 @@ function! s:check_back_space() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Use <c-space> to trigger completion.
|
" 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
|
" Use <cr> to confirm completion, `<C-g>u` means break undo chain at current
|
||||||
" position. Coc only does snippet and additional edit on confirm.
|
" position. Coc only does snippet and additional edit on confirm.
|
||||||
" <cr> could be remapped by other vim plugin, try `:verbose imap <CR>`.
|
" <cr> could be remapped by other vim plugin, try `:verbose imap <CR>`.
|
||||||
|
@ -69,6 +69,7 @@ settings:
|
|||||||
global:
|
global:
|
||||||
DEFAULT: https://searx.bocken.org/?q={}&categories=general&language=en-US
|
DEFAULT: https://searx.bocken.org/?q={}&categories=general&language=en-US
|
||||||
ddg: https://duckduckgo.com/?q={}
|
ddg: https://duckduckgo.com/?q={}
|
||||||
|
gg: https://linggle.com/?q={}
|
||||||
ling: https://www.linguee.com/english-german/search?source=auto&query={}
|
ling: https://www.linguee.com/english-german/search?source=auto&query={}
|
||||||
oz: http://www.ozdic.com/collocation-dictionary/{}
|
oz: http://www.ozdic.com/collocation-dictionary/{}
|
||||||
sx: https://searx.bocken.org/?q={}&categories=general&language=en-US
|
sx: https://searx.bocken.org/?q={}&categories=general&language=en-US
|
||||||
|
@ -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://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://people.math.ethz.ch/~fdalio/ANALYSISIIIDMAVTDMATLHS20 Personal Homepage of Prof. Dr. Francesca Da Lio
|
||||||
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://n.ethz.ch/~staerkr/ Roland Stärk
|
||||||
http://www.ozdic.com/ ozdic.com - the English Collocations Dictionary online
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[FileDialog]
|
[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
|
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
|
lastVisited=file:///home/alex/bks
|
||||||
qtVersion=5.15.1
|
qtVersion=5.15.1
|
||||||
shortcuts=file:, file:///home/alex
|
shortcuts=file:, file:///home/alex
|
||||||
sidebarWidth=82
|
sidebarWidth=82
|
||||||
|
@ -6,5 +6,6 @@ wsg https://boards.4channel.org/wsg/
|
|||||||
bant https://boards.4chan.org/bant/
|
bant https://boards.4chan.org/bant/
|
||||||
kanji https://kanji.sljfaq.org/draw-canvas.html
|
kanji https://kanji.sljfaq.org/draw-canvas.html
|
||||||
mystudies https://www.lehrbetrieb.ethz.ch/myStudies/studWillkommen.view
|
mystudies https://www.lehrbetrieb.ethz.ch/myStudies/studWillkommen.view
|
||||||
gg https://linggle.com/
|
|
||||||
live https://video.ethz.ch/live/lectures.html
|
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
|
||||||
|
@ -20,10 +20,11 @@ dunst & # dunst for notifications
|
|||||||
dwmblocks &
|
dwmblocks &
|
||||||
xset r rate 300 50 & # Speed xrate up
|
xset r rate 300 50 & # Speed xrate up
|
||||||
unclutter --timeout 2 --ignore-scrolling & # Remove mouse when idle
|
unclutter --timeout 2 --ignore-scrolling & # Remove mouse when idle
|
||||||
#insync start &
|
insync start &
|
||||||
#element-desktop --hidden &
|
element-desktop --hidden &
|
||||||
transmission-daemon &
|
transmission-daemon &
|
||||||
echo "$HOME/.config/mpd/state" | entr -np pkill -RTMIN+11 dwmblocks &
|
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
|
xrandr --listactivemonitors | grep -q '1920.*x1080.*HDMI-1$' && ( xrandr --output HDMI-1 --scale 1.5 && setbg ) # set scale for 2nd monitor if connected
|
||||||
redshift &
|
redshift & # Bluefilter based on time
|
||||||
keynav &
|
keynav & # emulate mouse clicks with vim-bindings and starting with Ctrl+;
|
||||||
|
@ -110,6 +110,6 @@ ZSH_AUTOSUGGEST_STRATEGY=(match_prev_cmd completion) # completion strategy, poss
|
|||||||
ZLE_PROMPT_INDENT=0
|
ZLE_PROMPT_INDENT=0
|
||||||
source $HOME/.local/src/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source $HOME/.local/src/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
# increment/decriment via Ctrl+a, Ctrl+x
|
# 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.
|
# Load syntax highlighting; should be last.
|
||||||
source $HOME/.local/src/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null
|
source $HOME/.local/src/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
SCAN_PERIOD=5
|
SCAN_PERIOD=5
|
||||||
AUTOTRUST=false #trust every newly paired device
|
AUTOTRUST=false #trust every newly paired device
|
||||||
AUTOSCAN=false #immediately start scanning when started to speed up pairing process
|
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)
|
#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
|
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(){
|
cleanup(){
|
||||||
scan off
|
scan off
|
||||||
rm /tmp/bt_start_scan$$ 2> /dev/null
|
rm /tmp/bt_start_scan$$ 2> /dev/null
|
||||||
|
pkill -RTMIN+$barsignal $bar
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
logged=$(grep -v Break ~/eth/pomodoros | grep $(date '+%Y%b%d') | grep -Eo "\(.*\)" | paste -sd+ | bc)
|
||||||
temp=$(cat /tmp/pomptemptimes 2>/dev/null)
|
temp=$(cat /tmp/pomptemptimes 2>/dev/null)
|
||||||
min=$([ "$logged" != "" ] && ([ "$temp" != "" ] && echo "$logged + $temp" | bc || echo $logged ) || ([ "$temp" != "" ] && echo $temp))
|
min=$([ "$logged" != "" ] && ([ "$temp" != "" ] && echo "$logged + $temp" | bc || echo $logged ) || ([ "$temp" != "" ] && echo $temp))
|
||||||
[ -n "$min" ] && echo '🍅'$min
|
[ -n "$min" ] && printf '🍅%s' "$min"
|
||||||
|
printf '\n'
|
||||||
|
@ -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)
|
logged=$(grep -v Break ~/bks/pomodoros_freetime | grep $(date '+%Y%b%d') | grep -Eo "\(.*\)" | paste -sd+ | bc)
|
||||||
temp=$(cat /tmp/pomptemptimesft 2>/dev/null)
|
temp=$(cat /tmp/pomptemptimesft 2>/dev/null)
|
||||||
min=$([ "$logged" != "" ] && ([ "$temp" != "" ] && echo "$logged + $temp" | bc || echo $logged ) || ([ "$temp" != "" ] && echo $temp))
|
min=$([ "$logged" != "" ] && ([ "$temp" != "" ] && echo "$logged + $temp" | bc || echo $logged ) || ([ "$temp" != "" ] && echo $temp))
|
||||||
[ -n "$min" ] && echo '📚'$min
|
[ -n "$min" ] && printf '📚%s'"$min"
|
||||||
|
printf '\n'
|
||||||
|
@ -4,11 +4,7 @@
|
|||||||
# transmitted (TX) since the previous time this script ran. So if run every
|
# transmitted (TX) since the previous time this script ran. So if run every
|
||||||
# second, gives network traffic per second.
|
# second, gives network traffic per second.
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
lasttime=${XDG_CACHE_HOME:-$HOME/.cache}/nettraf_time
|
||||||
3) notify-send "🌐 Network traffic module" "🔻: Traffic received
|
|
||||||
🔺: Traffic transmitted" ;;
|
|
||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
sum=0
|
sum=0
|
||||||
@ -22,24 +18,18 @@ update() {
|
|||||||
printf %d\\n $(( sum - old ))
|
printf %d\\n $(( sum - old ))
|
||||||
}
|
}
|
||||||
|
|
||||||
lasttime=${XDG_CACHE_HOME:-$HOME/.cache}/nettraf_time
|
|
||||||
[ -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 [ -n "$timedifference" ]; 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_bytes
|
rx_avg=$rx
|
||||||
tx_avg=tx_bytes
|
tx_avg=$tx
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
printf '⬇%s ⬆%s\n' $(numfmt --to=iec $rx_avg) $(numfmt --to=iec $tx_avg)
|
||||||
#only print if any traffic at all
|
date +'%s' > "$lasttime"
|
||||||
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user