Small changes

This commit is contained in:
2025-11-16 22:30:59 +00:00
parent 93be55b00a
commit 7337d56786
7 changed files with 24 additions and 23 deletions

View File

@@ -1625,8 +1625,8 @@ Here I setup dired with a few niceties
:general :general
(nmmap (nmmap
:keymaps 'dired-mode-map :keymaps 'dired-mode-map
"SPC" nil "SPC" #'nil
"SPC ," nil "SPC ," #'nil
"M-k" #'dired-prev-subdir "M-k" #'dired-prev-subdir
"M-j" #'dired-next-subdir "M-j" #'dired-next-subdir
"q" #'quit-window "q" #'quit-window
@@ -1658,7 +1658,7 @@ Here I setup dired with a few niceties
"&" #'dired-do-async-shell-command "&" #'dired-do-async-shell-command
"{" #'dired-prev-marked-file "{" #'dired-prev-marked-file
"}" #'dired-next-marked-file "}" #'dired-next-marked-file
"%" nil "%" #'nil
"%u" #'dired-upcase "%u" #'dired-upcase
"%l" #'dired-downcase "%l" #'dired-downcase
"%d" #'dired-flag-files-regexp "%d" #'dired-flag-files-regexp
@@ -1670,7 +1670,7 @@ Here I setup dired with a few niceties
"%R" #'dired-do-rename-regexp "%R" #'dired-do-rename-regexp
"%S" #'dired-do-symlink-regexp "%S" #'dired-do-symlink-regexp
"%&" #'dired-flag-garbage-files "%&" #'dired-flag-garbage-files
"*" nil "*" #'nil
"**" #'dired-mark-executables "**" #'dired-mark-executables
"*/" #'dired-mark-directories "*/" #'dired-mark-directories
"*@" #'dired-mark-symlinks "*@" #'dired-mark-symlinks
@@ -1742,7 +1742,7 @@ Here I setup dired with a few niceties
(dired-mark-directories nil) (dired-mark-directories nil)
(let* ((subdirs-inserted (mapcar #'car dired-subdir-alist)) (let* ((subdirs-inserted (mapcar #'car dired-subdir-alist))
(subdirs-available (mapcar #'(lambda (x) (concat x "/")) (subdirs-available (mapcar #'(lambda (x) (concat x "/"))
(dired-get-marked-files)))) (dired-get-marked-files))))
(dired-unmark-all-marks) (dired-unmark-all-marks)
(cl-remove-if #'(lambda (f) (member f subdirs-inserted)) subdirs-available))) (cl-remove-if #'(lambda (f) (member f subdirs-inserted)) subdirs-available)))
@@ -2392,9 +2392,8 @@ playing.
:general :general
(app-leader (app-leader
"e" #'empv-hydra/body) "e" #'empv-hydra/body)
:init :init
(setq empv-audio-dir (list (expand-file-name "~/Media/audio")) (setq empv-audio-dir (list (expand-file-name "~/Media/music"))
empv-video-dir (list (expand-file-name "~/Media/videos") empv-video-dir (list (expand-file-name "~/Media/videos")
(expand-file-name "~/Media/anime")) (expand-file-name "~/Media/anime"))
empv-playlist-dir (expand-file-name "~/Media/playlists") empv-playlist-dir (expand-file-name "~/Media/playlists")
@@ -3042,9 +3041,10 @@ felt good. Doom Emacs was very helpful here.
(org-babel-do-load-languages (org-babel-do-load-languages
'org-babel-load-languages 'org-babel-load-languages
'((emacs-lisp . t) '((emacs-lisp . t)
(lisp . t) (lisp . t)
(shell . t) (shell . t)
(python . t)))) (python . t)
(C . t))))
#+end_src #+end_src
*** Org Functionality *** Org Functionality
Hooks, prettify-symbols and records for auto insertion. Hooks, prettify-symbols and records for auto insertion.
@@ -3101,7 +3101,7 @@ write the code.
"d" #'org-deadline "d" #'org-deadline
"s" #'org-schedule "s" #'org-schedule
"t" #'org-todo "t" #'org-todo
"r" #'org-list-repair "r" #'org-refile
"," #'org-priority "," #'org-priority
"n" #'org-narrow-to-subtree "n" #'org-narrow-to-subtree
"w" #'widen "w" #'widen
@@ -3112,7 +3112,7 @@ write the code.
"o" #'org-edit-special "o" #'org-edit-special
"T" #'org-babel-tangle "T" #'org-babel-tangle
"S" #'org-property-action "S" #'org-property-action
"R" #'org-refile "R" #'org-list-repair
"O" #'org-open-at-point-global) "O" #'org-open-at-point-global)
(local-leader (local-leader
@@ -3152,8 +3152,10 @@ a very tidy way to manage your time.
org-agenda-start-with-entry-text-mode nil org-agenda-start-with-entry-text-mode nil
org-agenda-span 'week org-agenda-span 'week
org-agenda-custom-commands org-agenda-custom-commands
'(("n" "Agenda and all TODOs" ((agenda "") (alltodo ""))) '(("n" "Agenda (no reading)" ((agenda "-reading") (alltodo "")))
("w" todo "WIP"))) ("r" "Reading" agenda ""
((org-agenda-skip-function
(org-agenda-skip-entry-if 'regexp "reading.*"))))))
:config :config
(evil-set-initial-state 'org-agenda-mode 'normal) (evil-set-initial-state 'org-agenda-mode 'normal)
:general :general
@@ -3507,7 +3509,7 @@ a regular expression which captures file names and digits
:config :config
(add-to-list 'compilation-error-regexp-alist-alist (add-to-list 'compilation-error-regexp-alist-alist
`(fsan ,(rx (and `(fsan ,(rx (and
line-start " #" digit " 0x" (1+ hex) " in " line-start " #" (1+ digit) " 0x" (1+ hex) " in "
(1+ (or word "_")) " " (1+ (or word "_")) " "
(group (seq (* any) (or ".c" ".cpp" ".h" ".hpp"))) ":" (group (seq (* any) (or ".c" ".cpp" ".h" ".hpp"))) ":"
(group (+ digit)))) (group (+ digit))))

View File

@@ -2,6 +2,6 @@
"NeoSolarized": { "branch": "master", "commit": "b94b1a9ad51e2de015266f10fdc6e142f97bd617" }, "NeoSolarized": { "branch": "master", "commit": "b94b1a9ad51e2de015266f10fdc6e142f97bd617" },
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" }, "lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"telescope.nvim": { "branch": "master", "commit": "0294ae3eafe662c438addb8692d9c98ef73a983e" }, "telescope.nvim": { "branch": "master", "commit": "3a12a853ebf21ec1cce9a92290e3013f8ae75f02" },
"vim-tmux-navigator": { "branch": "master", "commit": "c45243dc1f32ac6bcf6068e5300f3b2b237e576a" } "vim-tmux-navigator": { "branch": "master", "commit": "c45243dc1f32ac6bcf6068e5300f3b2b237e576a" }
} }

View File

@@ -81,10 +81,10 @@ super + shift + Escape
# Media # Media
super + F{6,7,8} super + F{6,7,8}
playerctl --player=spotify {previous,play-pause,next}; playerctl --player=mpv {previous,play-pause,next};
XF86Audio{Prev,Play,Next} XF86Audio{Prev,Play,Next}
playerctl --player=spotify {previous,play-pause,next}; playerctl --player=mpv {previous,play-pause,next};
XF86Audio{Lower,Raise}Volume XF86Audio{Lower,Raise}Volume
kill -42 $(pidof dwmblocks); \ kill -42 $(pidof dwmblocks); \

View File

@@ -13,9 +13,7 @@ if (len(argv) > 1):
if (len(argv) > 2): if (len(argv) > 2):
name = argv[2] name = argv[2]
duration *= 3600 run(["notify-send", f"Starting alarm {name}, duration of {duration}s"])
print("Starting alarm '%s'" % name, "of duration %ds" % duration)
current = time() current = time()
end = current + duration end = current + duration

View File

@@ -4,4 +4,4 @@ prev=$(notmuch count)
mbsync -a mbsync -a
notmuch new notmuch new
new=$(notmuch count) new=$(notmuch count)
notify-send "mail_fetch: Fetched $(echo $new - $prev | bc -l) mail" notify-send "Fetched $(echo $new - $prev | bc -l) mail"

View File

@@ -4,6 +4,7 @@ processes="st btop
emacsclient -c -a emacs emacsclient -c -a emacs
$HOME/.local/scripts/browser $HOME/.local/scripts/browser
steam steam
discord
spotify" spotify"

View File

@@ -3,7 +3,7 @@ Description=Run mail sync every hour
[Timer] [Timer]
OnBootSec=1min OnBootSec=1min
OnUnitActiveSec=3600 OnUnitActiveSec=1800
Unit=mail.service Unit=mail.service
[Install] [Install]