From 696a16039e28e5844a164d69f60006b9c11a0067 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 26 Sep 2023 15:30:51 +0300 Subject: [stumpwm] Update nyxt commands --- .stumpwm.d/commands.lisp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to '.stumpwm.d/commands.lisp') diff --git a/.stumpwm.d/commands.lisp b/.stumpwm.d/commands.lisp index 516938c..da88a18 100644 --- a/.stumpwm.d/commands.lisp +++ b/.stumpwm.d/commands.lisp @@ -35,18 +35,25 @@ "Stop current slynk server for sly." (sb-thread:make-thread (lambda () (slynk:stop-server 4005)))) -(defcommand nyxt-buffer-load (search) +(defcommand nyxt-buffer-search (search) ((:string "Search for: ")) (let ((url "https://search.thanosapollo.com/?q=")) (run-shell-command (concatenate 'string "nyxt -r -e '(buffer-load" "\"" url search "\"" ")'" )))) -(defcommand nyxt-new-buffer-load (search) - ((:string "Search for: ")) +(stumpwm:defcommand nyxt-buffer-url (search) + ((:string "Set URL: ")) + (let ((url "https://search.thanosapollo.com/?q=")) + (stumpwm:run-shell-command + (concatenate 'string "nyxt -r -e '(buffer-load" "\"" search "\"" ")'" )))) + +(defcommand nyxt-new-buffer-search (search) + ((:string "New Buffer Search for: ")) (let ((url "https://search.thanosapollo.com/?q=")) (run-shell-command (concatenate 'string "nyxt -r -e '(set-url-new-buffer :url" "\"" url search "\"" ")'" )))) + (defcommand firefox () () "Run or raise Firefox." (sb-thread:make-thread (lambda () (run-or-raise "firefox" '(:class "firefox") t nil)))) -- cgit v1.2.3