add tmux shortcut for copy to clipboard

This commit is contained in:
Julin S 2022-01-03 14:39:55 +05:30
parent 55d3030342
commit 8909963c47
4 changed files with 15 additions and 2 deletions

View File

@ -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)))

View File

@ -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

View File

@ -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 } },
};

View File

@ -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