smaller improvements
modified: .config/aliasrc modified: .config/dunst/dunstrc modified: .config/mutt/muttrc modified: .config/qutebrowser/autoconfig.yml modified: .config/qutebrowser/quickmarks modified: .config/ranger/rc.conf modified: .local/bin/displayselect modified: .local/bin/dmenumount modified: .local/bin/statusbar/appointments modified: .local/bin/statusbar/music deleted: .local/bin/tools/timer
This commit is contained in:
parent
5ed3bbe122
commit
255d81f9cc
@ -53,6 +53,5 @@ alias \
|
|||||||
tmux="tmux -f ${XDG_CONFIG_HOME:-$HOME/.config}/tmux/tmux.conf"\
|
tmux="tmux -f ${XDG_CONFIG_HOME:-$HOME/.config}/tmux/tmux.conf"\
|
||||||
cast="mkchromecast --video --control -i"\
|
cast="mkchromecast --video --control -i"\
|
||||||
castaudio="mkchromecast --control --screencast --b 320"\
|
castaudio="mkchromecast --control --screencast --b 320"\
|
||||||
mlterm="matlab -nosplash -nodesktop -noopengl"
|
|
||||||
|
|
||||||
alias config='/usr/bin/git --git-dir=/home/alex/.local/share/git_dotfiles --work-tree=/home/alex'
|
alias config='/usr/bin/git --git-dir=/home/alex/.local/share/git_dotfiles --work-tree=/home/alex'
|
||||||
|
@ -22,7 +22,7 @@ plain_text = no
|
|||||||
# %I iconname (without its path)
|
# %I iconname (without its path)
|
||||||
# %p progress value if set ([ 0%] to [100%]) or nothing
|
# %p progress value if set ([ 0%] to [100%]) or nothing
|
||||||
# Markup is allowed
|
# Markup is allowed
|
||||||
format = "<b>%s</b>\n%b"
|
format = "<b>%s</b>\n%b\n%p"
|
||||||
|
|
||||||
# Sort messages by urgency.
|
# Sort messages by urgency.
|
||||||
sort = no
|
sort = no
|
||||||
|
@ -3,3 +3,4 @@ source /usr/local/share/mutt-wizard/mutt-wizard.muttrc # mw-autogenerated
|
|||||||
macro index,pager i2 '<sync-mailbox><enter-command>source /home/alex/.config/mutt/accounts/2-ethz.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to abocken@ethz.ch" # mw-autogenerated
|
macro index,pager i2 '<sync-mailbox><enter-command>source /home/alex/.config/mutt/accounts/2-ethz.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to abocken@ethz.ch" # mw-autogenerated
|
||||||
source /home/alex/.config/mutt/accounts/1-bocken.muttrc # mw-autogenerated
|
source /home/alex/.config/mutt/accounts/1-bocken.muttrc # mw-autogenerated
|
||||||
macro index,pager i1 '<sync-mailbox><enter-command>source /home/alex/.config/mutt/accounts/1-bocken.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alexander@bocken.org" # mw-autogenerated
|
macro index,pager i1 '<sync-mailbox><enter-command>source /home/alex/.config/mutt/accounts/1-bocken.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alexander@bocken.org" # mw-autogenerated
|
||||||
|
macro index,pager i3 '<sync-mailbox><enter-command>source /home/alex/.config/mutt/accounts/3-moodle.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to moodle@bocken.org" # mw-autogenerated
|
||||||
|
@ -38,6 +38,10 @@ settings:
|
|||||||
content.headers.user_agent:
|
content.headers.user_agent:
|
||||||
global: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
|
global: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
|
||||||
Gecko) Chrome/85.0.4183.121 Safari/537.36
|
Gecko) Chrome/85.0.4183.121 Safari/537.36
|
||||||
|
content.media.audio_capture:
|
||||||
|
https://teams.microsoft.com: true
|
||||||
|
content.media.audio_video_capture:
|
||||||
|
https://teams.microsoft.com: true
|
||||||
content.notifications:
|
content.notifications:
|
||||||
https://1337x.to: false
|
https://1337x.to: false
|
||||||
https://boards.4chan.org: true
|
https://boards.4chan.org: true
|
||||||
|
@ -11,3 +11,5 @@ 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
|
dim1 https://video.ethz.ch/live/lectures/zentrum/hg/hg-f-7.html
|
||||||
wuf2 https://video.ethz.ch/live/lectures/zentrum/eta/eta-f-5.html
|
wuf2 https://video.ethz.ch/live/lectures/zentrum/eta/eta-f-5.html
|
||||||
rt2 https://moodle-app2.let.ethz.ch/course/view.php?id=14186
|
rt2 https://moodle-app2.let.ethz.ch/course/view.php?id=14186
|
||||||
|
mech2live https://video.ethz.ch/live/lectures/zentrum/eta/eta-f-5.html
|
||||||
|
mech2unterlagen https://n.ethz.ch/~bamertd/download/
|
||||||
|
@ -281,17 +281,13 @@ set save_tabs_on_exit false
|
|||||||
# Enable scroll wrapping - moving down while on the last item will wrap around to
|
# Enable scroll wrapping - moving down while on the last item will wrap around to
|
||||||
# the top and vice versa.
|
# the top and vice versa.
|
||||||
set wrap_scroll false
|
set wrap_scroll false
|
||||||
|
map gNe cd ~/eth/negotiation
|
||||||
map gmd cd ~/eth/mad
|
map gMe cd ~/eth/mech2
|
||||||
map gm2 cd ~/eth/mech2
|
map gWu cd ~/eth/wuf2
|
||||||
map gw2 cd ~/eth/wuf2
|
map gIn cd ~/eth/inno
|
||||||
map gev cd ~/eth/videos
|
map gDa cd ~/eth/data
|
||||||
map gq cd ~/eth/quant
|
map gRt cd ~/eth/rt2
|
||||||
map gf1 cd ~/eth/fluid1
|
map gCh cd ~/eth/chemie
|
||||||
map gij cd ~/eth/innoproj
|
|
||||||
map giz cd ~/eth/innproz
|
|
||||||
map get cd ~/eth/thermo2
|
|
||||||
map gew cd ~/eth/werkstatt
|
|
||||||
map gvl cd vl
|
map gvl cd vl
|
||||||
map gus cd üs
|
map gus cd üs
|
||||||
map gco cd coll
|
map gco cd coll
|
||||||
@ -440,22 +436,22 @@ map ) jump_non
|
|||||||
|
|
||||||
map gh cd ~
|
map gh cd ~
|
||||||
map gE cd ~/eth
|
map gE cd ~/eth
|
||||||
map gee cd ~/eth/el_eng
|
#map gee cd ~/eth/el_eng
|
||||||
map gmd cd ~/eth/mad
|
#map gmd cd ~/eth/mad
|
||||||
map gm2 cd ~/eth/mech2
|
#map gm2 cd ~/eth/mech2
|
||||||
map gw2 cd ~/eth/wuf2
|
#map gw2 cd ~/eth/wuf2
|
||||||
map gev cd ~/eth/videos
|
#map gev cd ~/eth/videos
|
||||||
map gq cd ~/eth/quant
|
#map gq cd ~/eth/quant
|
||||||
map gf1 cd ~/eth/fluid1
|
#map gf1 cd ~/eth/fluid1
|
||||||
map gij cd ~/eth/innoproj
|
#map gij cd ~/eth/innoproj
|
||||||
map giz cd ~/eth/innoproz
|
#map giz cd ~/eth/innoproz
|
||||||
map gl cd -r .
|
map gl cd -r .
|
||||||
map gL cd -r %f
|
map gL cd -r %f
|
||||||
#map gi eval fm.cd('/run/media/' + os.getenv('USER'))
|
#map gi eval fm.cd('/run/media/' + os.getenv('USER'))
|
||||||
map gM cd /mnt
|
map gM cd /mnt
|
||||||
map gs cd /srv
|
map gs cd /srv
|
||||||
map gr cd /
|
map gr cd /
|
||||||
map gR eval fm.cd(ranger.RANGERDIR)
|
#map gR eval fm.cd(ranger.RANGERDIR)
|
||||||
map g/ cd /
|
map g/ cd /
|
||||||
map g? cd /usr/share/doc/ranger
|
map g? cd /usr/share/doc/ranger
|
||||||
|
|
||||||
@ -745,3 +741,4 @@ tmap <delete> eval -q fm.ui.taskview.task_remove()
|
|||||||
tmap <C-l> redraw_window
|
tmap <C-l> redraw_window
|
||||||
tmap <ESC> taskview_close
|
tmap <ESC> taskview_close
|
||||||
copytmap <ESC> q Q w <C-c>
|
copytmap <ESC> q Q w <C-c>
|
||||||
|
map <c-o> shell st ranger '%d' & disown
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# selection" which opens arandr.
|
# selection" which opens arandr.
|
||||||
|
|
||||||
#automatically scale HD screens to better work with hidpi
|
#automatically scale HD screens to better work with hidpi
|
||||||
scale_factor_HD=1.6
|
scale_factor_HD=${1:-1.6}
|
||||||
|
|
||||||
#fixes issue that script gets called twice for some reason
|
#fixes issue that script gets called twice for some reason
|
||||||
[ "$(pgrep -c displayselect)" -gt 1 ] && exit
|
[ "$(pgrep -c displayselect)" -gt 1 ] && exit
|
||||||
|
@ -34,9 +34,9 @@ mountandroid() { \
|
|||||||
chosen="$(echo "$anddrives" | dmenu -i -p "Which Android device?")" || exit 1
|
chosen="$(echo "$anddrives" | dmenu -i -p "Which Android device?")" || exit 1
|
||||||
chosen="$(echo "$chosen" | cut -d : -f 1)"
|
chosen="$(echo "$chosen" | cut -d : -f 1)"
|
||||||
getmount "$HOME -maxdepth 3 -type d"
|
getmount "$HOME -maxdepth 3 -type d"
|
||||||
simple-mtpfs --device "$chosen" "$mp"
|
mtpfs --device "$chosen" "$mp"
|
||||||
#echo "OK" | dmenu -i -p "Tap Allow on your phone if it asks for permission and then press enter" || exit 1
|
#echo "OK" | dmenu -i -p "Tap Allow on your phone if it asks for permission and then press enter" || exit 1
|
||||||
simple-mtpfs --device "$chosen" "$mp"
|
mtpfs --device "$chosen" "$mp"
|
||||||
notify-send "🤖 Android Mounting" "Android device mounted to $mp."
|
notify-send "🤖 Android Mounting" "Android device mounted to $mp."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,6 +6,10 @@ if [ -n "$diff" ]; then
|
|||||||
secs=$(( $(echo "$diff" | cut -f1 -d ':') * 3600 + $(echo "$diff" | cut -f2 -d ':') *60 ))
|
secs=$(( $(echo "$diff" | cut -f1 -d ':') * 3600 + $(echo "$diff" | cut -f2 -d ':') *60 ))
|
||||||
time_appointment="$(date --date "@$(( $( date +'%s' ) + $secs ))" +"%s")"
|
time_appointment="$(date --date "@$(( $( date +'%s' ) + $secs ))" +"%s")"
|
||||||
appointment="$(calcurse --next | tail -n1 | awk '{$1=""; print $0}' | sed 's/^\s*//')"
|
appointment="$(calcurse --next | tail -n1 | awk '{$1=""; print $0}' | sed 's/^\s*//')"
|
||||||
|
#shorten lecture appointments to just the name of lecture without profs
|
||||||
|
if [ "${#appointment}" -gt 20 ]; then
|
||||||
|
appointment="$(echo "$appointment" | sed -E 's/\(([VUG])\).*/(\1)/')"
|
||||||
|
fi
|
||||||
if [ "$1" = "notif" ]; then
|
if [ "$1" = "notif" ]; then
|
||||||
msg="$(printf '%s\n%s' "$(date --date "@$time_appointment" +'%H:%M')" "$appointment")"
|
msg="$(printf '%s\n%s' "$(date --date "@$time_appointment" +'%H:%M')" "$appointment")"
|
||||||
notify-send "Appointment coming up" "$msg"
|
notify-send "Appointment coming up" "$msg"
|
||||||
@ -15,9 +19,7 @@ if [ -n "$diff" ]; then
|
|||||||
if [ ! -f /tmp/nodunst ]; then
|
if [ ! -f /tmp/nodunst ]; then
|
||||||
printf '%s %s' "$(date --date "@$time_appointment" +'%H:%M')" "$appointment"
|
printf '%s %s' "$(date --date "@$time_appointment" +'%H:%M')" "$appointment"
|
||||||
fi
|
fi
|
||||||
printf '\n'
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
printf '\n'
|
|
||||||
fi
|
fi
|
||||||
|
printf '\n'
|
||||||
|
@ -5,6 +5,12 @@ if [ $( mpc status | grep '\[paused\]' | wc -l ) -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $( mpc status | grep '\[playing\]' | wc -l ) -eq 1 ]; then
|
if [ $( mpc status | grep '\[playing\]' | wc -l ) -eq 1 ]; then
|
||||||
echo $(mpc status | sed "/^volume:/d" | tac | sed -e "s/\\[paused\\].*//g;s/\\[playing\\].*//g" | tr -d '\n' | sed -e "s/$/ /g")
|
full_length="$(mpc status | sed "/^volume:/d" | tac | sed -e "s/\\[paused\\].*//g;s/\\[playing\\].*//g" | tr -d '\n' | sed -e "s/$/ /g")"
|
||||||
|
#remove full directory structure if no title present and too long
|
||||||
|
if [ ${#full_length} -gt 40 ]; then
|
||||||
|
echo "${full_length##*/}"
|
||||||
|
else
|
||||||
|
echo "$full_length"
|
||||||
|
fi
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
turns=15
|
|
||||||
if [[ -n $1 ]];then
|
|
||||||
turns=$1
|
|
||||||
fi
|
|
||||||
echo "Starting!"
|
|
||||||
let "i=1"
|
|
||||||
notify-send "Timer" "Starting, $turns minutes to go"
|
|
||||||
for ((turn=1; turn<=$turns; turn++));
|
|
||||||
do
|
|
||||||
clear
|
|
||||||
echo "turn $turn"
|
|
||||||
echo "###########"
|
|
||||||
sleep 2
|
|
||||||
for seconds in {1..60}
|
|
||||||
do
|
|
||||||
echo "$seconds secs. passed"
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
notify-send "Timer" "Switch\n($i/$turns done)"
|
|
||||||
let "i=i+1"
|
|
||||||
done
|
|
||||||
clear
|
|
Loading…
Reference in New Issue
Block a user