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:
@ -5,7 +5,7 @@
|
||||
# selection" which opens arandr.
|
||||
|
||||
#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
|
||||
[ "$(pgrep -c displayselect)" -gt 1 ] && exit
|
||||
|
@ -34,9 +34,9 @@ mountandroid() { \
|
||||
chosen="$(echo "$anddrives" | dmenu -i -p "Which Android device?")" || exit 1
|
||||
chosen="$(echo "$chosen" | cut -d : -f 1)"
|
||||
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
|
||||
simple-mtpfs --device "$chosen" "$mp"
|
||||
mtpfs --device "$chosen" "$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 ))
|
||||
time_appointment="$(date --date "@$(( $( date +'%s' ) + $secs ))" +"%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
|
||||
msg="$(printf '%s\n%s' "$(date --date "@$time_appointment" +'%H:%M')" "$appointment")"
|
||||
notify-send "Appointment coming up" "$msg"
|
||||
@ -15,9 +19,7 @@ if [ -n "$diff" ]; then
|
||||
if [ ! -f /tmp/nodunst ]; then
|
||||
printf '%s %s' "$(date --date "@$time_appointment" +'%H:%M')" "$appointment"
|
||||
fi
|
||||
printf '\n'
|
||||
fi
|
||||
fi
|
||||
else
|
||||
printf '\n'
|
||||
fi
|
||||
printf '\n'
|
||||
|
@ -5,6 +5,12 @@ if [ $( mpc status | grep '\[paused\]' | wc -l ) -eq 1 ]; then
|
||||
fi
|
||||
|
||||
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
|
||||
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
|
Reference in New Issue
Block a user