From 5d6b0878336d750032ba677152305cfc1fb88ef3 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Tue, 27 Jan 2026 16:40:55 -0800 Subject: Break out ghostty options from i3 configuration --- home/nipsy/common/optional/desktops/default.nix | 1 + home/nipsy/common/optional/desktops/ghostty.nix | 52 ++++++++++++++++++++++ home/nipsy/common/optional/desktops/i3/default.nix | 47 ------------------- 3 files changed, 53 insertions(+), 47 deletions(-) create mode 100644 home/nipsy/common/optional/desktops/ghostty.nix (limited to 'home') diff --git a/home/nipsy/common/optional/desktops/default.nix b/home/nipsy/common/optional/desktops/default.nix index 0a81127..d2f141d 100644 --- a/home/nipsy/common/optional/desktops/default.nix +++ b/home/nipsy/common/optional/desktops/default.nix @@ -1,6 +1,7 @@ { imports = [ ./fonts.nix + ./ghostty.nix #./gtk.nix ./i3 ./services/dunst.nix diff --git a/home/nipsy/common/optional/desktops/ghostty.nix b/home/nipsy/common/optional/desktops/ghostty.nix new file mode 100644 index 0000000..6f4b409 --- /dev/null +++ b/home/nipsy/common/optional/desktops/ghostty.nix @@ -0,0 +1,52 @@ +{ + home = { + file = { + ".config/ghostty/config".text = '' + #async-backend = epoll + background-opacity = 0.8 + cursor-color = #ffffff + font-family = "DejaVu Sans Mono" + font-size = 9 + gtk-titlebar = false + keybind = alt+one=unbind + keybind = alt+two=unbind + keybind = alt+three=unbind + keybind = alt+four=unbind + keybind = alt+five=unbind + keybind = alt+six=unbind + keybind = alt+seven=unbind + keybind = alt+eight=unbind + keybind = alt+nine=unbind + keybind = ctrl+shift+page_down=decrease_font_size:1 + keybind = ctrl+shift+page_up=increase_font_size:1 + theme = mydark + window-padding-x = 0 + window-padding-y = 0 + ''; + + ".config/ghostty/themes/mydark".text = '' + palette = 0=#000000 + palette = 1=#cd0000 + palette = 2=#00cd00 + palette = 3=#cdcd00 + palette = 4=#0000ee + palette = 5=#cd00cd + palette = 6=#00cdcd + palette = 7=#e5e5e5 + palette = 8=#7f7f7f + palette = 9=#ff0000 + palette = 10=#00ff00 + palette = 11=#ffff00 + palette = 12=#5c5cff + palette = 13=#ff00ff + palette = 14=#00ffff + palette = 15=#ffffff + background = #000000 + background-opacity = 0.5 + bold-is-bright = true + foreground = #e5e5e5 + cursor-color = #ffffff + ''; + }; + }; +} diff --git a/home/nipsy/common/optional/desktops/i3/default.nix b/home/nipsy/common/optional/desktops/i3/default.nix index 10451fa..15f90d4 100644 --- a/home/nipsy/common/optional/desktops/i3/default.nix +++ b/home/nipsy/common/optional/desktops/i3/default.nix @@ -2,53 +2,6 @@ { home = { file = { - ".config/ghostty/config".text = '' - #async-backend = epoll - background-opacity = 0.8 - cursor-color = #ffffff - font-family = "DejaVu Sans Mono" - font-size = 9 - gtk-titlebar = false - keybind = alt+one=unbind - keybind = alt+two=unbind - keybind = alt+three=unbind - keybind = alt+four=unbind - keybind = alt+five=unbind - keybind = alt+six=unbind - keybind = alt+seven=unbind - keybind = alt+eight=unbind - keybind = alt+nine=unbind - keybind = ctrl+shift+page_down=decrease_font_size:1 - keybind = ctrl+shift+page_up=increase_font_size:1 - theme = mydark - window-padding-x = 0 - window-padding-y = 0 - ''; - - ".config/ghostty/themes/mydark".text = '' - palette = 0=#000000 - palette = 1=#cd0000 - palette = 2=#00cd00 - palette = 3=#cdcd00 - palette = 4=#0000ee - palette = 5=#cd00cd - palette = 6=#00cdcd - palette = 7=#e5e5e5 - palette = 8=#7f7f7f - palette = 9=#ff0000 - palette = 10=#00ff00 - palette = 11=#ffff00 - palette = 12=#5c5cff - palette = 13=#ff00ff - palette = 14=#00ffff - palette = 15=#ffffff - background = #000000 - background-opacity = 0.5 - bold-is-bright = true - foreground = #e5e5e5 - cursor-color = #ffffff - ''; - "bin/xscreensaver-activate".source = ./xscreensaver-activate; }; -- cgit v1.2.3