Skip to content

Instantly share code, notes, and snippets.

@aiwas
Last active June 9, 2019 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aiwas/48c9e6f8158cd7466c7abf97ff364edd to your computer and use it in GitHub Desktop.
Save aiwas/48c9e6f8158cd7466c7abf97ff364edd to your computer and use it in GitHub Desktop.
Hyper Terminal settings
// .hyper.js
// last modified: 2019/05/07
module.exports = {
config: {
updateChannel: 'stable',
lineHeight: 1.5,
letterSpacing: 0,
fontSize: 14,
fontFamily: 'Cica, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
fontWeight: 'normal',
fontWeightBold: 'bold',
cursorColor: 'rgba(255,255,255,0.2)',
cursorAccentColor: 'rgba(0,0,0,0)',
cursorShape: 'BLOCK',
cursorBlink: false,
foregroundColor: '#ECEFF1',
backgroundColor: 'rgba(41,45,62,0.9)',
selectionColor: 'rgba(248,28,229,0.3)',
borderColor: '#37474F',
css: `
.terms_terms {
background-image: url("file:///D:/WSL/wall.jpg");
background-position: center
background-size: cover;
}
.terms_termGroup {
background: rgba(0,0,0,0.6) !important;
}
*::-webkit-scrollbar {
width: 6px;
height: 4px;
background-color: transparent;
}
*::-webkit-scrollbar-track {
background-color: transparent;
}
*::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 0px;
}
*::-webkit-scrollbar-thumb:window-inactive {
background: transparent;
}
`,
termCSS: `
.xterm-text-layer {
background: rgba(0,0,0,1) !important;
}
`,
showHamburgerMenu: '',
showWindowControls: '',
padding: '12px 14px',
colors: {
black: '#000000',
red: '#E54B4B',
green: '#9ECE58',
yellow: '#FAED70',
blue: '#396FE2',
magenta: '#BB80B3',
cyan: '#2DDAFD',
white: '#d0d0d0',
lightBlack: 'rgba(255, 255, 255, 0.2)',
lightRed: '#FF5370',
lightGreen: '#C3E88D',
lightYellow: '#FFCB6B',
lightBlue: '#82AAFF',
lightMagenta: '#C792EA',
lightCyan: '#89DDFF',
lightWhite: '#ffffff'
},
defaultSSHApp: true,
shell: 'C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe',
shellArgs: ['wsl.exe'],
env: {},
copyOnSelect: false,
quickEdit: true,
macOptionSelectionMode: 'vertical',
webGLRenderer: true,
bell: 'false',
// bellSoundURL: 'http://example.com/bell.mp3',
},
localPlugins: [],
keymaps: {
// Example
// 'window:devtools': 'cmd+alt+o',
'editor:moveBeginningLine': 'home',
'editor:moveEndLine': 'end'
},
};
#!/usr/bin/env bash
# HyperのCLIから壁紙を変更するやつ by aiwas
# ※あらかじめ設定ファイル内のCSSディレクティブで背景画像を指定しておくこと
# WALLPAPER_DIR: 背景画像ファイルがあるフォルダのパス(WINDOWS形式)
# HYPER_CONFIG: Hyper設定ファイル(.hyper.js)のパス(WINDOWS形式)
WALLPAPER_DIR='C:\wsl\wallpaper\'
HYPER_CONFIG='C:\Users\example\AppData\Roaming\Hyper\.hyper.js'
PATH_JS=$(echo ${WALLPAPER_DIR} | sed -e "s,\\\,/,g")
PS3="Select number> "
select FILE in `\ls $(wslpath ${WALLPAPER_DIR})` exit
do
if [ "${FILE}" = "exit" ]; then break; fi
sed -i -E "s,${PATH_JS}.*\"\)",${PATH_JS}${FILE}\"\)"," $(wslpath ${HYPER_CONFIG})
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment