diff --git a/dotfiles/.config/i3/config b/dotfiles/.config/i3/config index f8f59bc..dbb8502 100644 --- a/dotfiles/.config/i3/config +++ b/dotfiles/.config/i3/config @@ -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 diff --git a/dotfiles/.emacs.d/functions.org b/dotfiles/.emacs.d/functions.org index 36be9f7..f09f16e 100644 --- a/dotfiles/.emacs.d/functions.org +++ b/dotfiles/.emacs.d/functions.org @@ -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") diff --git a/dotfiles/.screenlayout/launch.sh b/dotfiles/.screenlayout/launch.sh index 0563108..d63f8e7 100755 --- a/dotfiles/.screenlayout/launch.sh +++ b/dotfiles/.screenlayout/launch.sh @@ -2,7 +2,7 @@ function load_script() { if [ -f "$1" ]; then - $1 + bash "$1" & fi } diff --git a/home/modules/zsh.nix b/home/modules/zsh.nix index 344503f..46095a8 100644 --- a/home/modules/zsh.nix +++ b/home/modules/zsh.nix @@ -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)]))'";