Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.
| Action | Windows/Linux | macOS |
|---|---|---|
| New window | Ctrl+Shift+N | Cmd+N |
| Close window | Alt+F4 | Cmd+Shift+W |
| #!/bin/sh | |
| if [ "$USER" != "root" ]; then | |
| echo "Not running as root. PC speaker disabled."; | |
| fi | |
| while :; do | |
| TEMP=$(sysctl -a | grep "hw.sensors"); | |
| TEMPRAW=${TEMP%".00 degC"*}; |
| let elliptic = require('elliptic'); | |
| let sha3 = require('js-sha3'); | |
| let ec = new elliptic.ec('secp256k1'); | |
| // let keyPair = ec.genKeyPair(); | |
| let keyPair = ec.keyFromPrivate("97ddae0f3a25b92268175400149d65d6887b9cefaf28ea2c078e05cdc15a3c0a"); | |
| let privKey = keyPair.getPrivate("hex"); | |
| let pubKey = keyPair.getPublic(); | |
| console.log(`Private key: ${privKey}`); | |
| console.log("Public key :", pubKey.encode("hex").substr(2)); |
| Basic | |
| ===== | |
| [Shift]+[Mod]+[Enter] - launch terminal. | |
| [Mod]+[b] - show/hide bar. | |
| [Mod]+[p] - dmenu for running programs like the x-www-browser. | |
| [Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master. | |
| [Mod] + [j / k] - focus on next/previous window in current tag. |
| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Download the archiso image from https://www.archlinux.org/ | |
| # Copy to a usb-drive | |
| dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
| # Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
| # Set swedish keymap |