Remove old, unused scripts
This commit is contained in:
parent
b858aac706
commit
daffb80084
4 changed files with 0 additions and 68 deletions
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
LANG=en_US.utf8 exec /usr/bin/evolution
|
||||
8
gajim
8
gajim
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
# Start notification daemon
|
||||
/usr/lib/notification-daemon-1.0/notification-daemon
|
||||
|
||||
# Execute Gajim
|
||||
exec /usr/bin/gajim
|
||||
14
i3-nested
14
i3-nested
|
|
@ -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
|
||||
|
|
@ -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 E‑Mails" "$MAILNEW neue E‑Mails sind eingetroffen!"
|
||||
else
|
||||
notify-send -a "Mail" -c "email.arrived" -i "mail-message-new" "Neue E‑Mails" "$MAILNEW neue E‑Mail ist eingetroffen!"
|
||||
fi
|
||||
|
||||
# Play sound
|
||||
if [ -e "$SOUNDFILE" ]; then
|
||||
paplay "$SOUNDFILE"
|
||||
fi
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue