Remove old, unused scripts

This commit is contained in:
coderkun 2019-12-25 20:54:43 +01:00
commit daffb80084
4 changed files with 0 additions and 68 deletions

View file

@ -1,3 +0,0 @@
#!/bin/sh
LANG=en_US.utf8 exec /usr/bin/evolution

8
gajim
View file

@ -1,8 +0,0 @@
#!/bin/sh
# Start notification daemon
/usr/lib/notification-daemon-1.0/notification-daemon
# Execute Gajim
exec /usr/bin/gajim

View file

@ -1,14 +0,0 @@
#!/bin/bash
# Start nested X-server
Xephyr -br -ac -noreset -screen 1440x960 -resizeable -dpi 96 -keybd ephyr,,,xkblayout=de,xkbvariant=neo :1 &
XEPHYR_PID=$!
sleep 1
# Start i3
DISPLAY=:1 i3 &
sleep 1
# Set keymap
DISPLAY=:1 setxkbmap de neo

View file

@ -1,43 +0,0 @@
#!/usr/bin/bash
# Settings
MAILDIRNEW="$HOME/Downloads/Mail/*/INBOX/new/"
TMPFILE="/tmp/mail-notify.stat"
SOUNDFILE="$HOME/.local/share/sounds/mail-received.wav"
# run mail sync
$@
# Get modification date
MODOLD=0
if [ -f "$TMPFILE" ]; then
MODOLD="$(cat $TMPFILE)"
fi
MODNEW="$(find $MAILDIRNEW -type d -printf '%T@\n' | sort -n | tail -1 | cut -d "." -f 1)"
if [ $MODNEW -le $MODOLD ]; then
exit 0
fi
echo "$MODNEW" > "$TMPFILE"
# Count new mails
MAILNEW="$(find $MAILDIRNEW -type f | wc -l)"
# Notify
if [ $MAILNEW -gt 0 ]
then
# Send text
if [ $MAILNEW -gt 1 ]; then
notify-send -a "Mail" -c "email.arrived" -i "mail-message-new" "Neue EMails" "$MAILNEW neue EMails sind eingetroffen!"
else
notify-send -a "Mail" -c "email.arrived" -i "mail-message-new" "Neue EMails" "$MAILNEW neue EMail ist eingetroffen!"
fi
# Play sound
if [ -e "$SOUNDFILE" ]; then
paplay "$SOUNDFILE"
fi
fi