Updating config based on linux laptop

This commit is contained in:
Random936 2023-09-15 19:16:41 -07:00
parent e69f29cba5
commit 1e08189024
3 changed files with 46 additions and 32 deletions

View File

@ -164,7 +164,7 @@ client.focused_inactive #333333 #222222 #888888 #292d2e #eeeeee
client.unfocused #333333 #222222 #888888 #292d2e #eeeeee client.unfocused #333333 #222222 #888888 #292d2e #eeeeee
# Startup Applications # Startup Applications
exec --no-startup-id "$HOME/.screenlayout/layout.sh" exec --no-startup-id "$HOME/.screenlayout/launch.sh"
exec --no-startup-id "xmodmap $HOME/.Xmodmap" exec --no-startup-id "xmodmap $HOME/.Xmodmap"
exec --no-startup-id "polybar" exec --no-startup-id "polybar"
exec --no-startup-id "lxpolkit &" exec --no-startup-id "lxpolkit &"
@ -172,4 +172,3 @@ exec --no-startup-id "lxpolkit &"
# Tweak keyboard and trackpad # Tweak keyboard and trackpad
exec --no-startup-id "synclient VertEdgeScroll=1 VertScrollDelta=-111" exec --no-startup-id "synclient VertEdgeScroll=1 VertScrollDelta=-111"
exec --no-startup-id "setxkbmap -option caps:escape" exec --no-startup-id "setxkbmap -option caps:escape"
exec --no-startup-id "nitrogen --restore &"

View File

@ -618,34 +618,42 @@ Visual fill column is a package that allows you to center text and add borders t
Org-roam is a plain-text knowledge management system. It brings some of Roam's more powerful features into the Org-mode ecosystem such as org-file linking, etc. Org-roam is a plain-text knowledge management system. It brings some of Roam's more powerful features into the Org-mode ecosystem such as org-file linking, etc.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package org-roam (setq jm/org-roam-directory "~/Notes")
:ensure t (unless (file-directory-p jm/org-roam-directory)
:defer (make-directory jm/org-roam-directory))
:custom
(org-roam-directory "~/Notes") (use-package org-roam
:bind (("C-c n l" . org-roam-buffer-toggle) :ensure t
("C-c n f" . org-roam-node-find) :defer
("C-c n g" . org-roam-graph) :custom
("C-c n i" . org-roam-node-insert) (org-roam-directory jm/org-roam-directory)
("C-c n c" . org-roam-capture) :bind (("C-c n l" . org-roam-buffer-toggle)
;; Dailies ("C-c n f" . org-roam-node-find)
("C-c n j" . org-roam-dailies-capture-today)) ("C-c n g" . org-roam-graph)
:config ("C-c n i" . org-roam-node-insert)
;; If you're using a vertical completion framework, you might want a more informative completion interface ("C-c n c" . org-roam-capture)
(setq org-roam-capture-templates ;; Dailies
'(("d" "default" plain "%?" ("C-c n j" . org-roam-dailies-capture-today))
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") :config
:unnarrowed t) ;; If you're using a vertical completion framework, you might want a more informative completion interface
("p" "Project" plain (setq org-roam-capture-templates
(file "~/Notes/Templates/Project.org") '(("d" "default" plain "%?"
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t) :unnarrowed t)
("s" "Malware Sample" plain ("p" "Project" plain
(file "~/Notes/Templates/Sample.org") (file "~/Notes/Templates/Project.org")
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t))) :unnarrowed t)
(setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag))) ("a" "Article" plain
(org-roam-db-autosync-mode)) (file "~/Notes/Templates/Article.org")
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t)
("m" "Malware Sample" plain
(file "~/Notes/Templates/Malware.org")
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t)))
(setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag)))
(org-roam-db-autosync-mode))
#+end_src #+end_src
** Fix Snippets ** Fix Snippets

View File

@ -1,2 +1,9 @@
#!/bin/sh #!/bin/bash
xrandr --output DP-1 --off --output DP-2 --primary --mode 3440x1440 --pos 2560x0 --rotate normal --output HDMI-1 --mode 2560x1080 --pos 0x647 --rotate normal --output DP-3 --off
script="$HOME/.screenlayout/layout.sh"
if [ -f "$script" ]; then
$script
fi
nitrogen --restore