terminal
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
terminal [2017/01/14 04:08] – admin | terminal [2020/10/14 18:05] (current) – admin | ||
---|---|---|---|
Line 2: | Line 2: | ||
This has taken me 34 years to finally get right! | This has taken me 34 years to finally get right! | ||
+ | |||
+ | EDIT: add a couple of years and now it's kitty on wayland. Notwithstanding this, my journey: | ||
My path to termit (OK, a crap name): | My path to termit (OK, a crap name): | ||
Line 19: | Line 21: | ||
termit just sails past all of the problems with konsole (although the configuration took me a week to get just right). And sensibly, it can map C-Tab and C-S-Tab to next/prev tab - something gnome-terminal, | termit just sails past all of the problems with konsole (although the configuration took me a week to get just right). And sensibly, it can map C-Tab and C-S-Tab to next/prev tab - something gnome-terminal, | ||
- | |||
- | Here's my config (put it into ~/ | ||
- | |||
- | Enjoy! | ||
For the record I tried heaps including: | For the record I tried heaps including: | ||
Line 29: | Line 27: | ||
Also see this ancient 2004 article which really needs an update: | Also see this ancient 2004 article which really needs an update: | ||
The Grumpy Editor' | The Grumpy Editor' | ||
+ | |||
+ | Here's my config (put it into ~/ | ||
+ | |||
+ | function notify (url, msg) | ||
+ | os.execute(" | ||
+ | end | ||
+ | | ||
+ | function handle_url_simple_copy (url) | ||
+ | -- simply copies the url | ||
+ | -- requires package xclip | ||
+ | | ||
+ | local url = string.gsub(url," | ||
+ | os.execute ("echo -n '" | ||
+ | -- notify (url, " | ||
+ | end | ||
+ | | ||
+ | function handle_url_simple_open (url) | ||
+ | -- simply opens the url | ||
+ | -- requires package xdg-utils | ||
+ | | ||
+ | local url = string.gsub(url," | ||
+ | os.execute (" | ||
+ | notify (url, " | ||
+ | end | ||
+ | | ||
+ | function handle_url_zenity (url) | ||
+ | -- pops up a dialog to allow choice of copying or opening the url | ||
+ | -- requires package zenity and the termit-zenity-dialog script | ||
+ | | ||
+ | local url = string.gsub(url," | ||
+ | os.execute(" | ||
+ | end | ||
+ | | ||
+ | function handle_url_lgi (url) | ||
+ | -- pops up a dialog to allow choice of copying or opening the url | ||
+ | -- also allows editing of the url before copying/ | ||
+ | -- requires package lua-lgi and the termit-lgi-dialog script | ||
+ | | ||
+ | local url = string.gsub(url," | ||
+ | os.execute(" | ||
+ | end | ||
+ | | ||
+ | defaults = {} | ||
+ | defaults.windowTitle = ' | ||
+ | defaults.tabName = ' | ||
+ | defaults.encoding = ' | ||
+ | defaults.wordChars = ' | ||
+ | defaults.scrollbackLines = 4096 | ||
+ | defaults.font = ' | ||
+ | defaults.geometry = ' | ||
+ | defaults.hideSingleTab = false | ||
+ | defaults.showScrollbar = true | ||
+ | defaults.fillTabbar = false | ||
+ | defaults.hideMenubar = true | ||
+ | defaults.allowChangingTitle = true | ||
+ | defaults.visibleBell = false | ||
+ | defaults.audibleBell = false | ||
+ | defaults.urgencyOnBell = false | ||
+ | defaults.matches = {[' | ||
+ | defaults.foregroundColor = ' | ||
+ | defaults.backgroundColor = ' | ||
+ | | ||
+ | setOptions(defaults) | ||
+ | | ||
+ | function get_primary() | ||
+ | -- os.execute (" | ||
+ | os.execute (" | ||
+ | end | ||
+ | | ||
+ | function changeTabFontSize(delta) | ||
+ | tab = tabs[currentTabIndex()] | ||
+ | setTabFont(string.sub(tab.font, | ||
+ | end | ||
+ | | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | | ||
+ | setKbPolicy(' | ||
+ | | ||
terminal.1484392137.txt.gz · Last modified: 2017/01/14 04:08 by admin