Skip to content

Commit

Permalink
ghostty config, kitty dynamic theme config
Browse files Browse the repository at this point in the history
  • Loading branch information
kclejeune committed Jan 2, 2025
1 parent ea68b9d commit 7157288
Show file tree
Hide file tree
Showing 12 changed files with 168 additions and 38 deletions.
1 change: 1 addition & 0 deletions modules/darwin/brew.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"homebrew/services"
"koekeishiya/formulae"
"kscripting/tap"
"nikitabobko/tap"
];
casks = [
"1password"
Expand Down
4 changes: 4 additions & 0 deletions modules/home-manager/dotfiles/aerospace/aerospace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ run = 'move-node-to-workspace T'
if.app-id = 'net.kovidgoyal.kitty'
run = 'move-node-to-workspace T'

[[on-window-detected]]
if.app-id = 'com.mitchellh.ghostty'
run = ['move-node-to-workspace T']

# mnemonics B - browsers
[[on-window-detected]]
if.app-id = 'com.google.Chrome'
Expand Down
8 changes: 8 additions & 0 deletions modules/home-manager/dotfiles/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
source = ./ghostty;
recursive = true;
};
"ghostty/os.conf" = lib.mkMerge [
(lib.mkIf pkgs.stdenvNoCC.isDarwin {
source = ./ghostty/macos.conf;
})
(lib.mkIf pkgs.stdenvNoCC.isLinux {
source = ./ghostty/linux.conf;
})
];
kitty = lib.mkIf pkgs.stdenvNoCC.isDarwin {
source = ./kitty;
recursive = true;
Expand Down
23 changes: 12 additions & 11 deletions modules/home-manager/dotfiles/ghostty/config
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# theming
background-blur-radius = 20
background-opacity = 0.90
bold-is-bright = true
font-family = JetBrains Mono
font-size = 14
theme = dark:OneHalfDark,light:OneHalfLight

# app behavior
# app settings
auto-update = download
auto-update-channel = stable
cursor-style = block
scrollback-limit = 2147483648
shell-integration-features = no-cursor

# OS-specific overrides / non-declarative stuff
config-file = ?local.config
# theme settings
background-blur-radius = 20
background-opacity = 0.90
bold-is-bright = true
theme = dark:OneHalfDark,light:OneHalfLight

# OS-specific overrides
config-file = ?os.conf

# escape hatch for non-declarative testing
config-file = ?local.conf
Empty file.
Empty file.
44 changes: 44 additions & 0 deletions modules/home-manager/dotfiles/kitty/dark-theme.auto.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# vim:ft=kitty
## name: One Half Dark
## author: Son A. Pham
## license: MIT
## upstream: https://raw.githubusercontent.com/sonph/onehalf/master/kitty/onehalf-dark.conf
## blurb: Clean, vibrant and pleasing color scheme

foreground #dcdfe4
background #282c34
selection_foreground #000000
selection_background #FFFACD
url_color #0087BD

# black
color0 #282c34
color8 #5d677a

# red
color1 #e06c75
color9 #e06c75

# green
color2 #98c379
color10 #98c379

# yellow
color3 #e5c07b
color11 #e5c07b

# blue
color4 #61afef
color12 #61afef

# magenta
color5 #c678dd
color13 #c678dd

# cyan
color6 #56b6c2
color14 #56b6c2

# white
color7 #dcdfe4
color15 #dcdfe4
32 changes: 5 additions & 27 deletions modules/home-manager/dotfiles/kitty/kitty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ cursor_stop_blinking_after 15.0

#: Scrollback {{{

scrollback_lines 99999
scrollback_lines -1

#: Number of lines of history to keep in memory for scrolling back.
#: Memory is allocated on demand. Negative numbers are (effectively)
Expand All @@ -122,7 +122,7 @@ scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER
#: line above will be replaced by an integer representing which line
#: should be at the top of the screen.

scrollback_pager_history_size 0
scrollback_pager_history_size 2048

#: Separate scrollback history size, used only for browsing the
#: scrollback buffer (in MB). This separate buffer is not available
Expand Down Expand Up @@ -1076,28 +1076,6 @@ map kitty_mod+delete clear_terminal reset active

# }}}

# One Dark by Giuseppe Cesarano, https://github.com/GiuseppeCesarano
# This work is licensed under the terms of the GPL-2.0 license.
# For a copy, see https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html.

foreground #979eab
background #282c34
cursor #cccccc
color0 #282c34
color1 #e06c75
color2 #98c379
color3 #e5c07b
color4 #61afef
color5 #be5046
color6 #56b6c2
color7 #979eab
color8 #393e48
color9 #d19a66
color10 #56b6c2
color11 #e5c07b
color12 #61afef
color13 #be5046
color14 #56b6c2
color15 #abb2bf
selection_foreground #282c34
selection_background #979eab
include ${KITTY_OS}.conf
globinclude conf.d/**/*.conf
include local.conf
44 changes: 44 additions & 0 deletions modules/home-manager/dotfiles/kitty/light-theme.auto.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# vim:ft=kitty
## name: One Half Light
## author: Son A. Pham
## license: MIT
## upstream: https://raw.githubusercontent.com/sonph/onehalf/master/kitty/onehalf-light.conf
## blurb: Clean, vibrant and pleasing color scheme

foreground #383A42
background #FAFAFA
selection_foreground #383A42
selection_background #BFCEFF
url_color #F0F0F0

# black
color0 #383A42
color8 #383A42

# red
color1 #E45649
color9 #E45649

# green
color2 #40A14F
color10 #40A14F

# yellow
color3 #C18401
color11 #C18401

# blue
color4 #0184BC
color12 #0184BC

# magenta
color5 #A626A4
color13 #A626A4

# cyan
color6 #0997B3
color14 #0997B3

# white
color7 #FAFAFA
color15 #FAFAFA
1 change: 1 addition & 0 deletions modules/home-manager/dotfiles/kitty/linux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
font-size = 12
5 changes: 5 additions & 0 deletions modules/home-manager/dotfiles/kitty/macos.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
font-size = 14

background_opacity 0.9
background_blur 20

44 changes: 44 additions & 0 deletions modules/home-manager/dotfiles/kitty/no-preference-theme.auto.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# vim:ft=kitty
## name: One Half Dark
## author: Son A. Pham
## license: MIT
## upstream: https://raw.githubusercontent.com/sonph/onehalf/master/kitty/onehalf-dark.conf
## blurb: Clean, vibrant and pleasing color scheme

foreground #dcdfe4
background #282c34
selection_foreground #000000
selection_background #FFFACD
url_color #0087BD

# black
color0 #282c34
color8 #5d677a

# red
color1 #e06c75
color9 #e06c75

# green
color2 #98c379
color10 #98c379

# yellow
color3 #e5c07b
color11 #e5c07b

# blue
color4 #61afef
color12 #61afef

# magenta
color5 #c678dd
color13 #c678dd

# cyan
color6 #56b6c2
color14 #56b6c2

# white
color7 #dcdfe4
color15 #dcdfe4

0 comments on commit 7157288

Please sign in to comment.