making emacs undecorated
This commit is contained in:
parent
f0eed6f298
commit
2a45a5decf
17
README.org
17
README.org
|
@ -97,11 +97,11 @@ Let's start by making some basic ui changes like turning off the scrollbar, tool
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq inhibit-startup-message t)
|
(setq inhibit-startup-message t)
|
||||||
|
|
||||||
(scroll-bar-mode -1)
|
(setq default-frame-alist '((undecorated . t)))
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
(tooltip-mode -1)
|
(tooltip-mode -1)
|
||||||
(set-fringe-mode +1)
|
(set-fringe-mode +1)
|
||||||
|
(scroll-bar-mode -1)
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
(blink-cursor-mode -1)
|
(blink-cursor-mode -1)
|
||||||
(column-number-mode +1)
|
(column-number-mode +1)
|
||||||
|
@ -5082,14 +5082,14 @@ With empv we can perhaps control mpv much more fine grainly and even search yout
|
||||||
(let* ((item (when (not file) (empv-youtube-results--current-item)))
|
(let* ((item (when (not file) (empv-youtube-results--current-item)))
|
||||||
(video-id (when (not file) (alist-get 'videoId item)))
|
(video-id (when (not file) (alist-get 'videoId item)))
|
||||||
(playlist-id (when (not file) (alist-get 'playlistId item)))
|
(playlist-id (when (not file) (alist-get 'playlistId item)))
|
||||||
(title (if file (shell-command-to-string
|
(url (if file (progn (message file) (string-replace "inv.cochrun.xyz" "youtube.com" file))
|
||||||
(format "yt-dlp --no-warnings --quiet --get-title %s" file))
|
|
||||||
(alist-get 'title item)))
|
|
||||||
(url (if file file
|
|
||||||
(format
|
(format
|
||||||
"https://youtube.com/%s=%s"
|
"https://youtube.com/%s=%s"
|
||||||
(if video-id "watch?v" "playlist?list")
|
(if video-id "watch?v" "playlist?list")
|
||||||
(or video-id playlist-id))))
|
(or video-id playlist-id))))
|
||||||
|
(title (if file (shell-command-to-string
|
||||||
|
(format "yt-dlp --no-warnings --quiet --get-title %s" url))
|
||||||
|
(alist-get 'title item)))
|
||||||
(output-buffer (generate-new-buffer "*yt-dlp*"))
|
(output-buffer (generate-new-buffer "*yt-dlp*"))
|
||||||
(process (progn
|
(process (progn
|
||||||
(message "Starting to download %s at %s" title url)
|
(message "Starting to download %s at %s" title url)
|
||||||
|
@ -5104,8 +5104,9 @@ With empv we can perhaps control mpv much more fine grainly and even search yout
|
||||||
"--sponsorblock-remove=sponsor,intro,outro"))
|
"--sponsorblock-remove=sponsor,intro,outro"))
|
||||||
(get-buffer-process output-buffer)))
|
(get-buffer-process output-buffer)))
|
||||||
(enqueue `(lambda (process event)
|
(enqueue `(lambda (process event)
|
||||||
(message "running %s because %s" process event)
|
(progn (message "running %s because %s" process event)
|
||||||
(empv-enqueue (concat "/home/chris/vids/" (string-trim ,title) ".mp4")))))
|
(empv-enqueue (concat "/home/chris/vids/" (string-trim ,title) ".mp4"))
|
||||||
|
(kill-buffer output-buffer)))))
|
||||||
(message url)
|
(message url)
|
||||||
(if (process-live-p process)
|
(if (process-live-p process)
|
||||||
(set-process-sentinel
|
(set-process-sentinel
|
||||||
|
|
17
init.el
17
init.el
|
@ -9,11 +9,11 @@
|
||||||
|
|
||||||
(setq inhibit-startup-message t)
|
(setq inhibit-startup-message t)
|
||||||
|
|
||||||
(scroll-bar-mode -1)
|
(setq default-frame-alist '((undecorated . t)))
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
(tooltip-mode -1)
|
(tooltip-mode -1)
|
||||||
(set-fringe-mode +1)
|
(set-fringe-mode +1)
|
||||||
|
(scroll-bar-mode -1)
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
(blink-cursor-mode -1)
|
(blink-cursor-mode -1)
|
||||||
(column-number-mode +1)
|
(column-number-mode +1)
|
||||||
|
@ -3726,14 +3726,14 @@ targets."
|
||||||
(let* ((item (when (not file) (empv-youtube-results--current-item)))
|
(let* ((item (when (not file) (empv-youtube-results--current-item)))
|
||||||
(video-id (when (not file) (alist-get 'videoId item)))
|
(video-id (when (not file) (alist-get 'videoId item)))
|
||||||
(playlist-id (when (not file) (alist-get 'playlistId item)))
|
(playlist-id (when (not file) (alist-get 'playlistId item)))
|
||||||
(title (if file (shell-command-to-string
|
(url (if file (progn (message file) (string-replace "inv.cochrun.xyz" "youtube.com" file))
|
||||||
(format "yt-dlp --no-warnings --quiet --get-title %s" file))
|
|
||||||
(alist-get 'title item)))
|
|
||||||
(url (if file file
|
|
||||||
(format
|
(format
|
||||||
"https://youtube.com/%s=%s"
|
"https://youtube.com/%s=%s"
|
||||||
(if video-id "watch?v" "playlist?list")
|
(if video-id "watch?v" "playlist?list")
|
||||||
(or video-id playlist-id))))
|
(or video-id playlist-id))))
|
||||||
|
(title (if file (shell-command-to-string
|
||||||
|
(format "yt-dlp --no-warnings --quiet --get-title %s" url))
|
||||||
|
(alist-get 'title item)))
|
||||||
(output-buffer (generate-new-buffer "*yt-dlp*"))
|
(output-buffer (generate-new-buffer "*yt-dlp*"))
|
||||||
(process (progn
|
(process (progn
|
||||||
(message "Starting to download %s at %s" title url)
|
(message "Starting to download %s at %s" title url)
|
||||||
|
@ -3748,8 +3748,9 @@ targets."
|
||||||
"--sponsorblock-remove=sponsor,intro,outro"))
|
"--sponsorblock-remove=sponsor,intro,outro"))
|
||||||
(get-buffer-process output-buffer)))
|
(get-buffer-process output-buffer)))
|
||||||
(enqueue `(lambda (process event)
|
(enqueue `(lambda (process event)
|
||||||
(message "running %s because %s" process event)
|
(progn (message "running %s because %s" process event)
|
||||||
(empv-enqueue (concat "/home/chris/vids/" (string-trim ,title) ".mp4")))))
|
(empv-enqueue (concat "/home/chris/vids/" (string-trim ,title) ".mp4"))
|
||||||
|
(kill-buffer output-buffer)))))
|
||||||
(message url)
|
(message url)
|
||||||
(if (process-live-p process)
|
(if (process-live-p process)
|
||||||
(set-process-sentinel
|
(set-process-sentinel
|
||||||
|
|
Loading…
Reference in a new issue