Skip to content

Commit 1e5dfc6

Browse files
committed
Start of the TUI transformation
1 parent 1967b68 commit 1e5dfc6

6 files changed

Lines changed: 170 additions & 0 deletions

File tree

dot_files/ghostty/config-kiosk

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Ghostty Kiosk Mode Configuration
2+
# Used for launching TUI applications as standalone "apps"
3+
# - All keybindings disabled (no tabs, splits, etc.)
4+
# - Window closes when the application exits
5+
# - Runs as separate instance from main ghostty
6+
7+
# ----------------------------------------------------------------
8+
# KIOSK MODE BEHAVIOR
9+
# ----------------------------------------------------------------
10+
11+
# Run as separate instance so app windows are independent
12+
gtk-single-instance = false
13+
14+
# Close window immediately when command exits
15+
wait-after-command = false
16+
17+
# Disable all default keybindings
18+
keybind = clear
19+
20+
# ----------------------------------------------------------------
21+
# APPEARANCE - Minimal chrome, matches main config
22+
# ----------------------------------------------------------------
23+
24+
window-theme = ghostty
25+
window-decoration = none
26+
gtk-titlebar = false
27+
28+
# ----------------------------------------------------------------
29+
# FONT CONFIGURATION
30+
# ----------------------------------------------------------------
31+
32+
font-family = JetBrains Mono
33+
font-size = 13
34+
35+
# ----------------------------------------------------------------
36+
# TOKYO NIGHT MOON COLOR SCHEME
37+
# ----------------------------------------------------------------
38+
39+
background = #222436
40+
foreground = #c8d3f5
41+
cursor-color = #c8d3f5
42+
cursor-text = #222436
43+
selection-background = #2f334d
44+
selection-foreground = #c8d3f5
45+
46+
# Black
47+
palette = 0=#1e2030
48+
palette = 8=#444a73
49+
50+
# Red
51+
palette = 1=#ff757f
52+
palette = 9=#ff757f
53+
54+
# Green
55+
palette = 2=#c3e88d
56+
palette = 10=#c3e88d
57+
58+
# Yellow
59+
palette = 3=#ffc777
60+
palette = 11=#ffc777
61+
62+
# Blue
63+
palette = 4=#82aaff
64+
palette = 12=#65bcff
65+
66+
# Magenta/Purple
67+
palette = 5=#c099ff
68+
palette = 13=#fca7ea
69+
70+
# Cyan
71+
palette = 6=#86e1fc
72+
palette = 14=#86e1fc
73+
74+
# White
75+
palette = 7=#c8d3f5
76+
palette = 15=#c8d3f5
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
# ghostty-kiosk - Launch a TUI application in kiosk mode
3+
#
4+
# Usage: ghostty-kiosk <command> [args...]
5+
#
6+
# Launches the specified command in a ghostty window with:
7+
# - All keybindings disabled (no tabs, splits, shortcuts)
8+
# - Window closes automatically when the command exits
9+
# - Runs as a separate instance from the main ghostty
10+
11+
if [ $# -eq 0 ]; then
12+
echo "Usage: ghostty-kiosk <command> [args...]" >&2
13+
exit 1
14+
fi
15+
16+
exec ghostty \
17+
--config-file=/usr/share/hypercube/config/ghostty/config-kiosk \
18+
--command="$*"
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
# nvim-launcher - Launch neovim from nvim-dev container
3+
#
4+
# If nvim isn't exported yet, prompts user to set it up
5+
6+
NVIM_PATH="$HOME/.local/bin/nvim"
7+
8+
if [ -x "$NVIM_PATH" ]; then
9+
exec "$NVIM_PATH" "$@"
10+
else
11+
echo "Neovim Development Environment"
12+
echo "==============================="
13+
echo ""
14+
echo "nvim-dev is not set up yet."
15+
echo ""
16+
echo "This will:"
17+
echo " 1. Create the nvim-dev container (~2GB download on first run)"
18+
echo " 2. Export nvim to ~/.local/bin"
19+
echo ""
20+
read -p "Set up now? [Y/n] " -n 1 -r
21+
echo ""
22+
23+
if [[ $REPLY =~ ^[Nn]$ ]]; then
24+
echo "Setup cancelled. Run 'just nvim-setup' when ready."
25+
read -p "Press Enter to close..."
26+
exit 0
27+
fi
28+
29+
echo ""
30+
just nvim-setup
31+
32+
echo ""
33+
if [ -x "$NVIM_PATH" ]; then
34+
echo "Setup complete! Launching nvim..."
35+
sleep 1
36+
exec "$NVIM_PATH" "$@"
37+
else
38+
echo "Setup may have failed. Try running 'just nvim-setup' manually."
39+
read -p "Press Enter to close..."
40+
exit 1
41+
fi
42+
fi
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Desktop Entry]
2+
Type=Application
3+
Version=1.0
4+
Name=btop++
5+
GenericName=System Monitor
6+
GenericName[it]=Monitor di sistema
7+
Comment=Resource monitor that shows usage and stats for processor, memory, disks, network and processes
8+
Comment[it]=Monitoraggio delle risorse: mostra utilizzo e statistiche per CPU, dischi, rete e processi
9+
Icon=btop
10+
Exec=ghostty-kiosk btop
11+
Terminal=false
12+
Categories=System;Monitor;
13+
Keywords=system;process;task
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Desktop Entry]
2+
Name=Neovim
3+
GenericName=Text Editor
4+
Comment=Edit text files
5+
Exec=ghostty-kiosk nvim-launcher %F
6+
Terminal=false
7+
Type=Application
8+
Keywords=Text;editor;
9+
Icon=nvim
10+
Categories=Utility;TextEditor;
11+
StartupNotify=false
12+
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Name=Wi-Fi Settings
3+
Comment=Connect to wireless networks
4+
Exec=ghostty-kiosk wifitui
5+
Icon=network-wireless
6+
Terminal=false
7+
Type=Application
8+
Categories=Settings;Network;
9+
Keywords=wifi;wireless;network;connect;

0 commit comments

Comments
 (0)