Update 2024.07.29 12:31:08 CEST

This commit is contained in:
Phil Bajsicki 2024-07-29 12:31:22 +02:00
parent 605c4f0e5e
commit 5a3ca47ab2
5 changed files with 37 additions and 25 deletions

View file

@ -511,8 +511,8 @@ For the files whose paths match the strings in the function, it will advise the
This turns making new entries from ~C-<return> C-i i~ into just ~C-<return>~. Much easier, and I don't have to think about this any more. This turns making new entries from ~C-<return> C-i i~ into just ~C-<return>~. Much easier, and I don't have to think about this any more.
#+begin_src emacs-lisp :tangle config.el #+begin_src emacs-lisp :tangle config.el
(add-hook 'org-insert-heading-hook (after! org-mode
(lambda () (add-hook! 'org-insert-heading-hook
(if (if
(or (or
(string-match-p "journal.org" buffer-file-name) (string-match-p "journal.org" buffer-file-name)
@ -528,7 +528,6 @@ This turns making new entries from ~C-<return> C-i i~ into just ~C-<return>~. Mu
#+end_src #+end_src
#+RESULTS: #+RESULTS:
| lambda | nil | (if (or (string-match-p journal.org buffer-file-name) (string-match-p money buffer-file-name) (string-match-p therapy.org buffer-file-name)) ((lambda nil (interactive) (org-time-stamp-inactive '(16)) (newline))) (setq org-insert-heading-hook nil)) |
**** Todo keywords **** Todo keywords
@ -1515,19 +1514,20 @@ works *offline* (without cloud or network) and amazingly well for English.
#+begin_src emacs-lisp :tangle config.el #+begin_src emacs-lisp :tangle config.el
(use-package! gptel (use-package! gptel
:config :config
(setq! gptel-api-key "your key") (setq! gptel-api-key "thisisanapikey")
(setq! gptel-max-tokens 8192) (setq! gptel-max-tokens 8192)
(setq (setq gptel-model "model"
gptel-model "model"
gptel-backend (gptel-make-openai "llama-cpp" gptel-backend (gptel-make-openai "llama-cpp"
:key "thisisanapikey"
:stream t :stream t
:protocol "http" :protocol "http"
:host "localhost:5000" :host "localhost:6666"
:models '("model")))) :models '("model"))))
(gptel-make-openai "llama-cpp" ;Any name (gptel-make-openai "llama-cpp" ;Any name
:key "thisisanapikey"
:stream t ;Stream responses :stream t ;Stream responses
:protocol "http" :protocol "http"
:host "localhost:5000" ;Llama.cpp server location :host "localhost:6666" ;Llama.cpp server location
:models '("model")) ;Any names, doesn't matter for Llama :models '("model")) ;Any names, doesn't matter for Llama
(setq gptel--debug t) (setq gptel--debug t)

View file

@ -281,8 +281,8 @@ and the contents of the files below the headlines."
(global-set-key "\C-cii" '(lambda () (interactive) (global-set-key "\C-cii" '(lambda () (interactive)
(org-time-stamp-inactive '(16)))) (org-time-stamp-inactive '(16))))
(add-hook 'org-insert-heading-hook (after! org-mode
(lambda () (add-hook! 'org-insert-heading-hook
(if (if
(or (or
(string-match-p "journal.org" buffer-file-name) (string-match-p "journal.org" buffer-file-name)
@ -704,19 +704,20 @@ and the contents of the files below the headlines."
(use-package! gptel (use-package! gptel
:config :config
(setq! gptel-api-key "your key") (setq! gptel-api-key "thisisanapikey")
(setq! gptel-max-tokens 8192) (setq! gptel-max-tokens 8192)
(setq (setq gptel-model "model"
gptel-model "model"
gptel-backend (gptel-make-openai "llama-cpp" gptel-backend (gptel-make-openai "llama-cpp"
:key "thisisanapikey"
:stream t :stream t
:protocol "http" :protocol "http"
:host "localhost:5000" :host "localhost:6666"
:models '("model")))) :models '("model"))))
(gptel-make-openai "llama-cpp" ;Any name (gptel-make-openai "llama-cpp" ;Any name
:key "thisisanapikey"
:stream t ;Stream responses :stream t ;Stream responses
:protocol "http" :protocol "http"
:host "localhost:5000" ;Llama.cpp server location :host "localhost:6666" ;Llama.cpp server location
:models '("model")) ;Any names, doesn't matter for Llama :models '("model")) ;Any names, doesn't matter for Llama
(setq gptel--debug t) (setq gptel--debug t)

View file

@ -1,8 +1,8 @@
# monitor=eDP-1, 1920x1080@60, 1920x0, 1 # monitor=eDP-1, 1920x1080@60, 1920x0, 1
monitor=eDP-2, 1920x1080@60, 1920x0, 1 monitor=eDP-1, 1920x1080@60, 0x1080, 1
monitor=HDMI-A-1, 1920x1080@60, 0x0, 1 monitor=DP-2, 1920x1080@60, 1920x0, 1
monitor=DP-1, 1920x1080@60, 3840x0, 1 monitor=DP-1, 1920x1080@60, 1920x1080, 1
monitor=DP-2, 1920x1080@60, 1920x1080, 1 monitor=HDMI-A-1, 1920x1080@60, 3840x0, 1
input { input {
kb_layout = pl kb_layout = pl
@ -20,7 +20,7 @@ general {
border_size = 2 border_size = 2
col.active_border = rgba(33ccffee) rgba(00ff99ee) -45deg col.active_border = rgba(33ccffee) rgba(00ff99ee) -45deg
col.inactive_border = rgba(595959aa) col.inactive_border = rgba(595959aa)
layout = master layout = dwindle
} }
decoration { decoration {
@ -56,7 +56,6 @@ dwindle {
master { master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_is_master = false
inherit_fullscreen = true inherit_fullscreen = true
mfact = 0.65 mfact = 0.65
} }
@ -66,6 +65,11 @@ gestures {
workspace_swipe = off workspace_swipe = off
} }
misc {
mouse_move_enables_dpms=true
key_press_enables_dpms=true
}
env = XCURSOR_SIZE,24 env = XCURSOR_SIZE,24
env = GBM_BACKEND,nvidia-drm env = GBM_BACKEND,nvidia-drm
@ -94,11 +98,19 @@ bind = SUPER_CTRL_SHIFT_ALT, 0, exit,
bind = $mainMod, B, togglefloating, bind = $mainMod, B, togglefloating,
bind = $mainMod, F, fullscreen, 0 bind = $mainMod, F, fullscreen, 0
bind = SUPER_SHIFT, F, fakefullscreen
bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, a, layoutmsg, cyclenext bind = $mainMod, a, movefocus, d
bind = $mainMod, o, layoutmsg, cycleprev bind = $mainMod, o, movefocus, u
bind = $mainMod, n, movefocus, l
bind = $mainMod, i, movefocus, r
bind = SUPER_SHIFT, a, swapwindow, d
bind = SUPER_SHIFT, o, swapwindow, u
bind = SUPER_SHIFT, n, swapwindow, l
bind = SUPER_SHIFT, i, swapwindow, r
bind = $mainMod, BACKSPACE, layoutmsg, swapwithmaster auto bind = $mainMod, BACKSPACE, layoutmsg, swapwithmaster auto

View file

@ -341,7 +341,7 @@ main = do
, ("M-e", spawn "emacsclient -c -a 'emacs'") , ("M-e", spawn "emacsclient -c -a 'emacs'")
, ("M-<Return>", spawn "alacritty") , ("M-<Return>", spawn "alacritty")
, ("M-S-<F11>", spawn "feh --randomize --bg-fill /usr/share/backgrounds/archlinux/*") , ("M-S-<F11>", spawn "feh --randomize --bg-fill /mnt/ext1/media/Images/Wallpapers/*")
, ("M-<Print>", spawn "dm-maim") , ("M-<Print>", spawn "dm-maim")
, ("<Print>", spawn "flameshot gui") , ("<Print>", spawn "flameshot gui")

View file

@ -5,7 +5,6 @@ export XKB_DEFAULT_OPTIONS="compose:rctrl"
export WLR_NO_HARDWARE_CURSORS=1 export WLR_NO_HARDWARE_CURSORS=1
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
export LIBVA_DRIVER_NAME=nvidia
export GBM_BACKEND=nvidia-drm export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia export __GLX_VENDOR_LIBRARY_NAME=nvidia
export XDG_SESSION_TYPE=wayland export XDG_SESSION_TYPE=wayland