Browser changes

This commit is contained in:
Chris Cochrun 2022-01-03 12:30:11 -06:00
parent ed8d575d18
commit 9e5f0ad759
4 changed files with 19 additions and 18 deletions

View file

@ -16,7 +16,7 @@ dirs = [
# "~/storage/tfc",
# "~/storage/nextcloud",
# "~/.dotfiles",
"~/dotfiles",
# "~/dotfiles",
]
Dirs = [

View file

@ -38,7 +38,7 @@
(defun youtube-dl (url)
"Download videos and audio with youtube-dl in alacritty for feedback"
(uiop:run-program
(list "alacritty" "-e" "youtube-dl" "-o ~/Videos/%(title)s.%(ext)s" url)))
(list "alacritty" "-e" "yt-dlp" "-o ~/Videos/%(title)s.%(ext)s" url)))
;; Let's create a function to hint videos, convert the url to a sting, and play them in MPV
(define-command hint-mpv (&key nyxt/web-mode::annotate-visible-only-p)
@ -239,17 +239,17 @@
(in-package #:nyxt-user) ; While implicit, this allows SLY to know which package we are in.
(load "~/quicklisp/setup.lisp")
(ql:quickload :slynk)
;; (ql:quickload :slynk)
(define-command-global start-slynk (&optional (slynk-port *swank-port*))
"Start a Slynk server that can be connected to, for instance, in
Emacs via SLY.
;; (define-command-global start-slynk (&optional (slynk-port *swank-port*))
;; "Start a Slynk server that can be connected to, for instance, in
;; Emacs via SLY.
Warning: This allows Nyxt to be controlled remotely, that is, to execute
arbitrary code with the privileges of the user running Nyxt. Make sure
you understand the security risks associated with this before running
this command."
(slynk:create-server :port slynk-port :dont-close t)
(echo "Slynk server started at port ~a" slynk-port))
;; Warning: This allows Nyxt to be controlled remotely, that is, to execute
;; arbitrary code with the privileges of the user running Nyxt. Make sure
;; you understand the security risks associated with this before running
;; this command."
;; (slynk:create-server :port slynk-port :dont-close t)
;; (echo "Slynk server started at port ~a" slynk-port))
(start-slynk)
;; (start-slynk)

View file

@ -44,6 +44,6 @@ settings:
https://outlook.office.com?mailtouri=%25s: false
https://staff.tfcconnection.org: true
tabs.show:
global: always
global: switching
zoom.default:
global: 100%

View file

@ -2023,7 +2023,7 @@ c.statusbar.widgets = ['keypress', 'url', 'scroll', 'history', 'progress']
## - never: Always hide the tab bar.
## - multiple: Hide the tab bar if only one tab is open.
## - switching: Show the tab bar when switching tabs.
c.tabs.show = "switching"
c.tabs.show = "always"
## Duration (in milliseconds) to show the tab bar before hiding it when
## tabs.show is set to 'switching'.
@ -2144,7 +2144,7 @@ c.url.searchengines = {
## Page(s) to open at the start.
## Type: List of FuzzyUrl, or FuzzyUrl
# c.url.start_pages = ['https://start.duckduckgo.com']
c.url.start_pages = ['https://staff.tfcconnection.org']
## URL parameters to strip with `:yank url`.
## Type: List of String
@ -2499,5 +2499,6 @@ config.bind("gt", 'hint links spawn --detach transadd "{hint-url}"')
config.bind('d', 'tab-close')
config.bind('b', 'set-cmd-text -s :tab-select ')
## Bindings for MPV and YTDL
# config.bind('o', 'spawn --userscript rofi')
config.bind('pt', 'tab-pin')
config.bind('tm', 'tab-move')
config.bind('st', 'config-cycle tabs.show always switching')