aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2018-05-20 14:01:24 +0200
committerJakob Stendahl <jakob.stendahl@outlook.com>2018-05-20 14:01:24 +0200
commit75c4df6540c7e963ff48d3e37576956489ef165d (patch)
tree43f553eb4ac34ef2249e7a9a4d66d7795e7ff5ce
parentdadf4f7e58f1d192b869b97798feade6362a101b (diff)
downloaddotfiles-75c4df6540c7e963ff48d3e37576956489ef165d.tar.gz
dotfiles-75c4df6540c7e963ff48d3e37576956489ef165d.zip
Made things work
-rw-r--r--Hyperterm/hyper.js106
-rw-r--r--Hyperterm/hyperWin.js113
-rw-r--r--Hyperterm/local/hideTitle/index.js21
-rwxr-xr-xbin/install.sh12
-rw-r--r--tmux.conf16
5 files changed, 223 insertions, 45 deletions
diff --git a/Hyperterm/hyper.js b/Hyperterm/hyper.js
index 169b16d..b0c50cd 100644
--- a/Hyperterm/hyper.js
+++ b/Hyperterm/hyper.js
@@ -1,55 +1,63 @@
-
module.exports = {
config: {
+ // choose either `'stable'` for receiving highly polished,
+ // or `'canary'` for less polished but more frequent updates
+ updateChannel: 'stable',
+
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: '"Roboto Mono", "Fira Code", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
+ // default font weight: 'normal' or 'bold'
+ fontWeight: 'normal',
+
+ // font weight for bold characters: 'normal' or 'bold'
+ fontWeightBold: 'bold',
+
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: '#2C85F7',
- // `BEAM` for |, `UNDERLINE` for _, `BLOCK` for █
+ // terminal text color under BLOCK cursor
+ cursorAccentColor: '#000',
+
+ // `'BEAM'` for |, `'UNDERLINE'` for _, `'BLOCK'` for █
cursorShape: 'BLOCK',
+ // set to `true` (without backticks and without quotes) for blinking cursor
+ cursorBlink: false,
+
// color of the text
foregroundColor: '#00ff00',
// terminal background color
+ // opacity is only supported on macOS
backgroundColor: '#293340',
+ // terminal selection color
+ selectionColor: 'rgba(248,28,229,0.3)',
+
// border color (window, tabs)
borderColor: '#323E4D',
- // custom css to embed in the main window
- css: `
- ::selection {
- background: #9198A2 !important;
- }
- x-screen x-row {
- font-variant-ligatures: initial;
- }
- span {
- font-weight: normal !important;
- }
- `,
-
- // custom css to embed in the terminal window
+ // custom CSS to embed in the main window
+ css: "",
+
+ // custom CSS to embed in the terminal window
termCSS: '',
- // set to `true` if you're using a Linux set up
- // that doesn't shows native menus
- // default: `false` on Linux, `true` on Windows (ignored on macOS)
+ // if you're using a Linux setup which show native menus, set to false
+ // default: `true` on Linux, `true` on Windows, ignored on macOS
showHamburgerMenu: '',
- // set to `false` if you want to hide the minimize, maximize and close buttons
+ // set to `false` (without backticks and without quotes) if you want to hide the minimize, maximize and close buttons
// additionally, set to `'left'` if you want them on the left, like in Ubuntu
- // default: `true` on windows and Linux (ignored on macOS)
- showWindowControls: true,
+ // default: `true` (without backticks and without quotes) on Windows and Linux, ignored on macOS
+ showWindowControls: false,
- // custom padding (css format, i.e.: `top right bottom left`)
- padding: '12px 14px',
+ // custom padding (CSS format, i.e.: `top right bottom left`)
+ padding: '12px 14px 0 14px',
// the full list. if you're going to provide the full color palette,
// including the 6 x 6 color cubes and the grayscale map, just provide
@@ -70,42 +78,56 @@ module.exports = {
lightBlue : '#4CB2FF',
lightMagenta : '#BE86E3',
lightCyan : '#2DCED0',
- lightWhite : '#CDD2E9'
+ lightWhite : '#CDD2E9'
},
// the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
// if left empty, your system's login shell will be used by default
+ //
+ // Windows
+ // - Make sure to use a full path if the binary name doesn't work
+ // - Remove `--login` in shellArgs
+ //
+ // Bash on Windows
+ // - Example: `C:\\Windows\\System32\\bash.exe`
+ //
+ // PowerShell on Windows
+ // - Example: `C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`
shell: '',
- // for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
- // by default ['--login'] will be used
+ // for setting shell arguments (i.e. for using interactive shellArgs: `['-i']`)
+ // by default `['--login']` will be used
shellArgs: ['--login'],
// for environment variables
env: {},
- // set to false for no bell
+ // set to `false` for no bell
bell: 'SOUND',
- // if true, selected text will automatically be copied to the clipboard
- copyOnSelect: false
+ // if `true` (without backticks and without quotes), selected text will automatically be copied to the clipboard
+ copyOnSelect: false,
+
+ // if `true` (without backticks and without quotes), hyper will be set as the default protocol client for SSH
+ defaultSSHApp: true,
+
+ // if `true` (without backticks and without quotes), on right click selected text will be copied or pasted if no
+ // selection is present (`true` by default on Windows and disables the context menu feature)
+ // quickEdit: true,
// URL to custom bell
// bellSoundURL: 'http://example.com/bell.mp3',
// for advanced config flags please refer to https://hyper.is/#cfg
+ commands: [ "tmux && exit" ],
+ },
+
+ plugins: [ "hyper-startup", "hyper-dark-scrollbar", "hyperlinks", "gitrocket", "space-pull", "hyper-blink" ],
+
+ localPlugins: [ "hideTitle" ],
+
+ keymaps: {
+ // 'window:devtools': 'cmd+alt+o',
},
- // a list of plugins to fetch and install from npm
- // format: [@org/]project[#version]
- // examples:
- // `hyperpower`
- // `@company/project`
- // `project#1.0.1`
- plugins: [ 'hyperline#0.6.1', 'hyper-dark-scrollbar', 'hypercwd', 'hyperlinks', 'gitrocket', 'space-pull', 'hyper-blink' ],
-
- // in development, you can create a directory under
- // `~/.hyper_plugins/local/` and include it here
- // to load it and avoid it being `npm install`ed
- localPlugins: []
};
diff --git a/Hyperterm/hyperWin.js b/Hyperterm/hyperWin.js
new file mode 100644
index 0000000..f3d55a9
--- /dev/null
+++ b/Hyperterm/hyperWin.js
@@ -0,0 +1,113 @@
+
+module.exports = {
+ config: {
+ // default font size in pixels for all tabs
+ fontSize: 12,
+
+ // font family with optional fallbacks
+ fontFamily: '"Roboto Mono", "Fira Code", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
+
+ // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
+ cursorColor: '#2C85F7',
+
+ // `BEAM` for |, `UNDERLINE` for _, `BLOCK` for █
+ cursorShape: 'BLOCK',
+
+ // color of the text
+ foregroundColor: '#00ff00',
+
+ // terminal background color
+ backgroundColor: '#293340',
+
+ // border color (window, tabs)
+ borderColor: '#323E4D',
+
+ // custom css to embed in the main window
+ css: ``,
+
+ // custom css to embed in the terminal window
+ termCSS: '',
+
+ // set to `true` if you're using a Linux set up
+ // that doesn't shows native menus
+ // default: `false` on Linux, `true` on Windows (ignored on macOS)
+ showHamburgerMenu: '',
+
+ // set to `false` if you want to hide the minimize, maximize and close buttons
+ // additionally, set to `'left'` if you want them on the left, like in Ubuntu
+ // default: `true` on windows and Linux (ignored on macOS)
+ showWindowControls: `false`,
+
+ // custom padding (css format, i.e.: `top right bottom left`)
+ padding: '0 14px 0 14px',
+
+ // the full list. if you're going to provide the full color palette,
+ // including the 6 x 6 color cubes and the grayscale map, just provide
+ // an array here instead of a color map object
+ colors: {
+ black : '#293340',
+ red : '#E17E85',
+ green : '#61BA86',
+ yellow : '#FFEC8E',
+ blue : '#4CB2FF',
+ magenta : '#BE86E3',
+ cyan : '#2DCED0',
+ white : '#CDD2E9',
+ lightBlack : '#546386',
+ lightRed : '#E17E85',
+ lightGreen : '#61BA86',
+ lightYellow : '#FFB68E',
+ lightBlue : '#4CB2FF',
+ lightMagenta : '#BE86E3',
+ lightCyan : '#2DCED0',
+ lightWhite : '#CDD2E9'
+ },
+
+ // the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
+ // if left empty, your system's login shell will be used by default
+ shell: '',
+
+ // for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
+ // by default ['--login'] will be used
+ shellArgs: ['--login'],
+
+ // for environment variables
+ env: {},
+
+ // set to false for no bell
+ bell: 'SOUND',
+
+ // if true, selected text will automatically be copied to the clipboard
+ copyOnSelect: false
+
+ // URL to custom bell
+ // bellSoundURL: 'http://example.com/bell.mp3',
+
+ // for advanced config flags please refer to https://hyper.is/#cfg
+ },
+
+ commands: ["tmux"],
+
+ // a list of plugins to fetch and install from npm
+ // format: [@org/]project[#version]
+ // examples:
+ // `hyperpower`
+ // `@company/project`
+ // `project#1.0.1`
+ plugins: [ "hyper-hide-title" ],
+
+ // in development, you can create a directory under
+ // `~/.hyper_plugins/local/` and include it here
+ // to load it and avoid it being `npm install`ed
+ localPlugins: [],
+
+ // Set the rgba() app background opacity, useful when enableVibrance is true
+ // OPTIONS: From 0.1 to 1
+ backgroundOpacity: '0.8',
+ // Set the accent color for the current active tab
+ accentColor: '#FF2600',
+ // Mac Only. Need restart. Enable the dark vibrance and blurred background
+ // NOTE: The backgroundOpacity should be between 0.1 and 0.9 to see the effect.
+ enableVibrance: true
+
+};
diff --git a/Hyperterm/local/hideTitle/index.js b/Hyperterm/local/hideTitle/index.js
new file mode 100644
index 0000000..d632cbc
--- /dev/null
+++ b/Hyperterm/local/hideTitle/index.js
@@ -0,0 +1,21 @@
+'use strict'
+
+exports.decorateBrowserOptions = config => {
+ return Object.assign({}, config, {
+ titleBarStyle: '',
+ frame: false,
+ });
+}
+
+exports.decorateConfig = config => {
+ return Object.assign({}, config, {
+ css: `
+ ${config.css || ''}
+ .tabs_borderShim { display: none; }
+ .tabs_list { margin-left: -1px; }
+ .tabs_list { display: none; }
+ //.header_header { display: none; }
+ .terms_terms { margin-top: 0px; }
+ `
+ })
+}
diff --git a/bin/install.sh b/bin/install.sh
index 18c8def..dc6c67a 100755
--- a/bin/install.sh
+++ b/bin/install.sh
@@ -1,5 +1,11 @@
#!/bin/sh
-ln -iv tmux.conf ~/.tmux.conf
-ln -iv bashrc ~/.bashrc
-ln -iv vim/vimrc ~/.vimrc
+sudo apt-get install git zsh
+
+
+ln -i tmux.conf ~/.tmux.conf
+ln -i bashrc ~/.bashrc
+ln -i vim/vimrc ~/.vimrc
+ln -i Hyperterm/hyper.js ~/.hyper.js
+
+ln -i Hyperterm/local ~/.hyper_plugins/local
diff --git a/tmux.conf b/tmux.conf
index 3b9f619..f62ceb9 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -1,3 +1,19 @@
+set -g default-terminal "screen-256color"
+run-shell "powerline-daemon -q"
+source "/Users/jakobstendahl/Library/Python/2.7/lib/python/site-packages/powerline/bindings/tmux/powerline.conf"
+set -g base-index 1
+setw -g pane-base-index 1
+
+set-option -g default-shell /opt/local/bin/zsh
+set-option -g pane-border-fg colour235
+set-option -g pane-active-border-fg colour240
+
+set-option -g message-bg colour235
+set-option -g message-fg colour166
+
+set-option -g display-panes-active-colour colour33
+set-option -g display-panes-colour colour166
+
unbind C-b
set -g prefix C-a