Added start-day alias; updated i3 startup scripts

This commit is contained in:
Random936 2025-04-30 18:06:38 -07:00
parent 46836579f2
commit 1d6d7c9d07
4 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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")

View File

@ -2,7 +2,7 @@
function load_script() {
if [ -f "$1" ]; then
$1
bash "$1" &
fi
}

View File

@ -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)]))'";