all repos — nixfiles @ a7b92b9b725b23e9063196824976f0d13f70290d

System and user configuration, managed by nix and home-manager

xresources: enable opening links in browser
Alan Pearce alan@alanpearce.eu
Tue, 18 Feb 2020 11:25:54 +0100
commit

a7b92b9b725b23e9063196824976f0d13f70290d

parent

2418ce1a45525f273b0c984d6237ee8d4bc30ee6

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M user/xresources/.xresources/mainuser/xresources/.xresources/main
@@ -46,8 +46,12 @@ xterm*eightBitMeta:        false xterm*decTerminalId:       vt340
 xterm*numColorRegisters:   256
 
+xterm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
+xterm*on3Clicks: regex ([[:alpha:]]+://)?([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+
+
 xterm*VT100.Translations: #override \
                  Ctrl Shift <Key>V:    insert-selection(CLIPBOARD) \n\
                  Ctrl Shift <Key>C:    copy-selection(CLIPBOARD) \n\
                  Alt  Shift <Key>V:    insert-selection(CLIPBOARD) \n\
-                 Alt  Shift <Key>C:    copy-selection(CLIPBOARD)
+                 Alt  Shift <Key>C:    copy-selection(CLIPBOARD) \n\
+                 Shift <Btn1Up>:       exec-formatted("$BROWSER '%t'", PRIMARY)