Added start-day alias; updated i3 startup scripts
This commit is contained in:
parent
46836579f2
commit
1d6d7c9d07
@ -160,6 +160,4 @@ client.unfocused #333333 #222222 #888888 #292d2e #eeeeee
|
||||
|
||||
# Startup Applications
|
||||
exec --no-startup-id "$HOME/.screenlayout/launch.sh &" # setup screen layout and wallpapers
|
||||
exec_always --no-startup-id "$HOME/.screenlayout/wallpapers.sh &"
|
||||
exec_always --no-startup-id "$HOME/.screenlayout/polybar.sh &" # setup screen layout and wallpapers
|
||||
exec --no-startup-id "$HOME/.scripts/autostart_desktop.sh &" # run autostart desktop apps
|
||||
|
@ -48,9 +48,10 @@ Shortcut to goto todays org-roam dailies document.
|
||||
|
||||
(defun jm/org-roam-capture-today ()
|
||||
(interactive)
|
||||
(jm/org-roam-goto-day 0 t))
|
||||
(jm/org-roam-goto-day 0 t "t")
|
||||
(delete-other-windows))
|
||||
|
||||
(defun jm/org-roam-goto-day (days &optional force-capture)
|
||||
(defun jm/org-roam-goto-day (days &optional force-capture keys)
|
||||
(let* ((base-time
|
||||
(if (and (jm/dailies-file-p) (not (eq days 0)))
|
||||
(date-to-time (file-name-base (buffer-file-name)))
|
||||
@ -61,7 +62,7 @@ Shortcut to goto todays org-roam dailies document.
|
||||
(jm/org-roam-refresh-agenda-list)
|
||||
(if (and (file-exists-p full-path) (not force-capture))
|
||||
(find-file full-path)
|
||||
(org-roam-dailies--capture rel-time))))
|
||||
(org-roam-dailies--capture rel-time nil keys))))
|
||||
|
||||
(jm/leader-keys
|
||||
"oy" '((lambda () (interactive) (jm/org-roam-goto-day -1)) :which-key "Open/create yesterday's daily notes file")
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
function load_script() {
|
||||
if [ -f "$1" ]; then
|
||||
$1
|
||||
bash "$1" &
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
open = "xdg-open";
|
||||
reload = "source ~/.zshrc";
|
||||
histogram = "awkuniq -c | sort -nr";
|
||||
start-day = "emacsclient -c -n -e '(jm/org-roam-capture-today)'";
|
||||
json-less = "jq -C . | less -R";
|
||||
csv2json = "python -c 'import csv, json, sys; print(json.dumps([dict(r) for r in csv.DictReader(sys.stdin)]))'";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user