Compare commits
No commits in common. "f586eaa8a2f91fbea43243b833c629e695a2f136" and "00872dfed205d9e4d428edf70d5c9a5b5a4ffa31" have entirely different histories.
f586eaa8a2
...
00872dfed2
3 changed files with 30 additions and 6 deletions
9
evolution-nvim.sh
Executable file
9
evolution-nvim.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ $# -ge 2 ]; then
|
||||||
|
CMD="nvim $2 -c \"$1\""
|
||||||
|
else
|
||||||
|
CMD="nvim $1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec alacritty -t Evolution -e ${CMD}
|
||||||
|
|
@ -1,15 +1,17 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Count the number of unread emails and return the count in the i3/sway bar format.
|
# Count the number of unread emails and return the count in the i3/sway bar
|
||||||
|
# format.
|
||||||
|
|
||||||
# Settings
|
# Settings
|
||||||
MAILDIRNEW="$HOME/Dokumente/eMails/*/INBOX/new/"
|
MAILDIRNEW="$HOME/Dokumente/eMails/*/INBOX/new/"
|
||||||
|
|
||||||
# Count new mails
|
# Count new mails
|
||||||
MAILNEW="$(fd -t f -g '*' $MAILDIRNEW | wc -l)"
|
MAILNEW="$(find $MAILDIRNEW -type f | wc -l)"
|
||||||
|
|
||||||
# Print count in i3/sway bar format
|
# Print count in i3/sway bar format
|
||||||
if [ $MAILNEW -ge 1 ]
|
echo $MAILNEW
|
||||||
then
|
echo $MAILNEW
|
||||||
echo $MAILNEW
|
[ ${MAILNEW} -ge 1 ] && exit 33
|
||||||
fi
|
|
||||||
|
exit 0
|
||||||
|
|
|
||||||
13
timewmenu
Executable file
13
timewmenu
Executable file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
shopt -s nullglob globstar
|
||||||
|
|
||||||
|
# Present menu to select tag
|
||||||
|
tag=$(timew tags | tail +4 | cut -d " " -f 1 | bemenu $@)
|
||||||
|
tag=$(echo "${tag%-*}" | xargs echo -n)
|
||||||
|
|
||||||
|
# Start timetracking
|
||||||
|
output=$(timew start "$tag")
|
||||||
|
|
||||||
|
# Send notification
|
||||||
|
notify-send -t 5000 "timew" "${output}"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue