From 8909963c47488981be8fe4577c053dce622ac511 Mon Sep 17 00:00:00 2001 From: Julin S Date: Mon, 3 Jan 2022 14:39:55 +0530 Subject: [PATCH] add tmux shortcut for copy to clipboard --- emacs/.emacs | 5 +++++ qutebrowser/config.py | 3 +++ tabbed/config.h | 4 ++-- tmux/.tmux.conf | 5 +++++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs b/emacs/.emacs index 1259fef..1d09e7c 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -120,6 +120,11 @@ ;; Enable org mode (org-mode) ; +;; babel config +(org-babel-do-load-languages + 'org-babel-load-languages + '((python . t))) +; ;; Don't split line when doing M-RET at an item to make new item ; https://irreal.org/blog/?p=6297 (setq org-M-RET-may-split-line '((default . nil))) diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 81d7df8..d2e73b5 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -60,6 +60,9 @@ c.url.searchengines['DEFAULT'] = 'https://lite.duckduckgo.com/lite/?q={}' #c.editor.command = ['gvim', '{}'] c.editor.command = ['emacs', '{}'] +# Block invalid resource loads +c.content.tls.certificate_errors = "ask-block-thirdparty" + ## Javascript stuff c.content.javascript.enabled = False # tsh: shortcut to toggle JS c.content.javascript.can_open_tabs_automatically = False diff --git a/tabbed/config.h b/tabbed/config.h index eff06d3..4d95d6f 100644 --- a/tabbed/config.h +++ b/tabbed/config.h @@ -58,7 +58,7 @@ static Key keys[] = { \ { 0, XK_F11, fullscreen, { 0 } }, // User defined - { MODKEY, XK_Left, rotate, { .i = +1 } }, - { MODKEY, XK_Right, rotate, { .i = -1 } }, + { MODKEY, XK_Left, rotate, { .i = -1 } }, + { MODKEY, XK_Right, rotate, { .i = +1 } }, }; diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 4f84aa2..8957173 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -10,6 +10,11 @@ bind-key ` send-prefix # Use vi key bindings in scroll mode setw -g mode-keys vi +# Copy selection to clipboard +# https://unix.stackexchange.com/questions/131011/use-system-clipboard-in-vi-copy-mode-in-tmux +# Press y to copy +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' + # Navigate between panes of a window bind k select-pane -U bind j select-pane -D