vdotfiles

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

commit ea662d318706c5774ebd363eb245fbb73ac84092
parent a18f1f9891233faad7453877bc485ce3d3ddcc41
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue, 20 Aug 2019 11:09:07 +0300

Reminder script

Diffstat:
M.config/i3/config | 3+++
Abin/nlr | 15+++++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/.config/i3/config b/.config/i3/config @@ -275,6 +275,9 @@ exec --no-startup-id compton # Start Music Player Daemon exec --no-startup-id mpd +# Get Next Logon Reminders +exec --no-startup-id nlr + # Launch Clip Manager exec --no-startup-id clipit diff --git a/bin/nlr b/bin/nlr @@ -0,0 +1,15 @@ +#!/bin/sh + +# Next Logon Reminder - a very simple utility to get a reminder the next time you login. +# i3 runs this script everytime you login, but you could also add it to your .xinitrc +# When the reminder is activated, .nlr file is deleted. +# +## Usage: +## To add a reminder +# nlr "Your reminder here" +## To get the reminder: +# nlr + + +[ -z "$1" ] && [ -e "$HOME/.nlr" ] && notify-send "Next Logon Reminder" "$(cat $HOME/.nlr)" && rm $HOME/.nlr && exit +echo $1 >> $HOME/.nlr