dotfiles

Cem's Dotfiles
git clone git://git.ckyln.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 785f80e5955f2d4ffaea6565248c7a6c98086143
parent 28afde880c72efa5ddfac1500567040426459742
Author: Cem Keylan <warc1998@gmail.com>
Date:   Wed,  5 Jun 2019 21:10:28 +0300

Update

Diffstat:
A.config/calcurse/conf | 25+++++++++++++++++++++++++
A.config/calcurse/keys | 47+++++++++++++++++++++++++++++++++++++++++++++++
M.config/polybar/config | 4----
Mbin/todoadd | 4+---
Mbin/todorm | 6+++++-
5 files changed, 78 insertions(+), 8 deletions(-)

diff --git a/.config/calcurse/conf b/.config/calcurse/conf @@ -0,0 +1,25 @@ +appearance.calendarview=monthly +appearance.compactpanels=no +appearance.defaultpanel=calendar +appearance.layout=1 +appearance.notifybar=yes +appearance.sidebarwidth=1 +appearance.theme=red on default +appearance.todoview=show-completed +daemon.enable=no +daemon.log=no +format.inputdate=1 +format.notifydate=%a %F +format.notifytime=%T +format.outputdate=%D +general.autogc=no +general.autosave=yes +general.confirmdelete=yes +general.confirmquit=no +general.firstdayofweek=sunday +general.periodicsave=0 +general.progressbar=yes +general.systemdialogs=no +notification.command=printf '\a' +notification.notifyall=flagged-only +notification.warning=300 diff --git a/.config/calcurse/keys b/.config/calcurse/keys @@ -0,0 +1,47 @@ +generic-cancel ESC +generic-select SPC +generic-credits @ +generic-help ? +generic-quit q Q +generic-save s S ^S +generic-reload R +generic-copy c +generic-paste p ^V +generic-change-view TAB +generic-import i I +generic-export x X +generic-goto g G +generic-other-cmd o O +generic-config-menu C +generic-redraw ^R +generic-add-appt ^A +generic-add-todo ^T +generic-prev-day T ^H +generic-next-day t ^L +generic-prev-week W ^K +generic-next-week w ^J +generic-prev-month M +generic-next-month m +generic-prev-year Y +generic-next-year y +generic-scroll-down ^N +generic-scroll-up ^P +generic-goto-today ^G +generic-command : +move-right l L RGT +move-left h H LFT +move-down j J DWN +move-up k K UP +start-of-week 0 +end-of-week $ +add-item a A +del-item d D +edit-item e E +view-item v V +pipe-item | +flag-item ! +repeat r +edit-note n N +view-note > +raise-priority + +lower-priority - diff --git a/.config/polybar/config b/.config/polybar/config @@ -259,10 +259,6 @@ exec = $HOME/bin/todo format = <label> label = TODO: %output% -click-right = $HOME/bin/todorm -click-middle = $HOME/bin/todorm -click-left = $HOME/bin/todorm - [module/xwindow] type = internal/xwindow label = %title:0:30:...% diff --git a/bin/todoadd b/bin/todoadd @@ -2,6 +2,4 @@ # Add to todo.txt file -echo $1 | tee -a $HOME/todo.txt - - +pacman -Q calcurse >/dev/null 2>&1 && echo "There is currently no way to add a todo entry to Calcurse" || echo $1 | tee -a $HOME/todo.txt diff --git a/bin/todorm b/bin/todorm @@ -2,4 +2,8 @@ # Removes the first line of todo.txt -tail -n +2 $HOME/todo.txt > $HOME/todo.txt.tmp && mv $HOME/todo.txt.tmp $HOME/todo.txt +tradtodo() {\ + tail -n +2 $HOME/todo.txt > $HOME/todo.txt.tmp && mv $HOME/todo.txt.tmp $HOME/todo.txt +} + +pacman -Q calcurse >/dev/null 2>&1 && echo "There is currently no way to remove an entry from calcurse" || tradtodo