vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 7b39c744c858dfd6a1ba2cc9fd9c4cd2cb24f75d
parent 483acc5a2ccd5b01c400166ed80e912c257e0398
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 31 Oct 2019 13:45:46 +0300

changes to next logon reminder

Diffstat:
A.local/bin/dnlr | 2++
M.local/bin/nlr | 11+++++++++--
M.xinitrc | 1+
3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/.local/bin/dnlr b/.local/bin/dnlr @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +dmenu -p "Add a reminder to be reminded on your next logon" <&- | xargs -r -I {} nlr "{}" diff --git a/.local/bin/nlr b/.local/bin/nlr @@ -11,5 +11,12 @@ # nlr -[ -z "$1" ] && [ -e "$HOME/.nlr" ] && notify-send "Next Logon Reminder" "$(cat $HOME/.nlr)" && rm $HOME/.nlr && exit -echo $1 >> $HOME/.nlr +if [ -z "$1" ]; then + ! [ -e "$HOME/.nlr" ] && exit 1 + while read -r line; do + notify-send "Next Logon Reminder" "$line" + done < $HOME/.nlr + rm $HOME/.nlr +else + echo "$1" >> $HOME/.nlr +fi diff --git a/.xinitrc b/.xinitrc @@ -17,4 +17,5 @@ eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) export SSH_AUTH_SOCK xautolock -time 10 -locker '~/.local/bin/lockme' & [ -e $HOME/.custom.sh ] && $HOME/.custom.sh & +nlr & startdwm