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.
#+begin_src emacs-lisp :tangle config.el
(add-hook 'org-insert-heading-hook
(lambda ()
(after! org-mode
(add-hook! 'org-insert-heading-hook
(if
(or
(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
#+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
@ -1515,19 +1514,20 @@ works *offline* (without cloud or network) and amazingly well for English.
#+begin_src emacs-lisp :tangle config.el
(use-package! gptel
:config
(setq! gptel-api-key "your key")
(setq! gptel-api-key "thisisanapikey")
(setq! gptel-max-tokens 8192)
(setq
gptel-model "model"
(setq gptel-model "model"
gptel-backend (gptel-make-openai "llama-cpp"
:key "thisisanapikey"
:stream t
:protocol "http"
:host "localhost:5000"
:host "localhost:6666"
:models '("model"))))
(gptel-make-openai "llama-cpp" ;Any name
:key "thisisanapikey"
:stream t ;Stream responses
: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
(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)
(org-time-stamp-inactive '(16))))
(add-hook 'org-insert-heading-hook
(lambda ()
(after! org-mode
(add-hook! 'org-insert-heading-hook
(if
(or
(string-match-p "journal.org" buffer-file-name)
@ -704,19 +704,20 @@ and the contents of the files below the headlines."
(use-package! gptel
:config
(setq! gptel-api-key "your key")
(setq! gptel-api-key "thisisanapikey")
(setq! gptel-max-tokens 8192)
(setq
gptel-model "model"
(setq gptel-model "model"
gptel-backend (gptel-make-openai "llama-cpp"
:key "thisisanapikey"
:stream t
:protocol "http"
:host "localhost:5000"
:host "localhost:6666"
:models '("model"))))
(gptel-make-openai "llama-cpp" ;Any name
:key "thisisanapikey"
:stream t ;Stream responses
: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
(setq gptel--debug t)

View file

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

View file

@ -341,7 +341,7 @@ main = do
, ("M-e", spawn "emacsclient -c -a 'emacs'")
, ("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")
, ("<Print>", spawn "flameshot gui")

View file

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