feat: kitty to ghostty
This commit is contained in:
parent
9e0e63dd48
commit
c78bf067e9
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./user/kitty.nix
|
|
||||||
./user/qt.nix
|
./user/qt.nix
|
||||||
./user/sops.nix
|
./user/sops.nix
|
||||||
./user/neofetch.nix
|
./user/neofetch.nix
|
||||||
@ -12,6 +11,7 @@
|
|||||||
./user/btop.nix
|
./user/btop.nix
|
||||||
./user/wofi.nix
|
./user/wofi.nix
|
||||||
./user/mako.nix
|
./user/mako.nix
|
||||||
|
./user/ghostty.nix
|
||||||
./user/packages/art.nix
|
./user/packages/art.nix
|
||||||
./user/packages/desktop.nix
|
./user/packages/desktop.nix
|
||||||
./user/packages/coding.nix
|
./user/packages/coding.nix
|
||||||
|
11
modules/user/ghostty.nix
Normal file
11
modules/user/ghostty.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
programs.ghostty = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
settings = {
|
||||||
|
confirm-close-surface = false;
|
||||||
|
copy-on-select = false;
|
||||||
|
title-report = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -1,14 +0,0 @@
|
|||||||
{ lib, pkgs, ... }: {
|
|
||||||
programs.kitty = {
|
|
||||||
enable = true;
|
|
||||||
settings = lib.mkDefault {
|
|
||||||
dynamic_background_opacity = "yes";
|
|
||||||
background_opacity = 0.5;
|
|
||||||
background_blur = true;
|
|
||||||
background = "#1d2021";
|
|
||||||
font_size = 13.0;
|
|
||||||
cursor_blink_interval = "0.5 ease-in-out";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
programs.zsh.envExtra = "TERM=xterm-256color";
|
|
||||||
}
|
|
@ -10,7 +10,7 @@ export default function Wifi() {
|
|||||||
{wifi.as(wifi => wifi && (
|
{wifi.as(wifi => wifi && (
|
||||||
<button
|
<button
|
||||||
className="Wifi"
|
className="Wifi"
|
||||||
onClicked={() => {execAsync("kitty nmtui")}}>
|
onClicked={() => {execAsync("ghostty --title=nmtui -e nmtui")}}>
|
||||||
<box>
|
<box>
|
||||||
<icon
|
<icon
|
||||||
tooltipText={bind(wifi, "ssid").as(String)}
|
tooltipText={bind(wifi, "ssid").as(String)}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, lib, config, collection, swww_flags, inputs }: {
|
{ pkgs, lib, config, collection, swww_flags, inputs }: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
kitty
|
ghostty
|
||||||
pamixer
|
pamixer
|
||||||
wofi
|
wofi
|
||||||
clipse
|
clipse
|
||||||
@ -130,8 +130,9 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
windowrulev2 = [
|
windowrulev2 = [
|
||||||
"float, class:(clipse)"
|
"float, title:(nmtui)"
|
||||||
"size 622 652, class:(clipse)"
|
"float, title:(clipse)"
|
||||||
|
"size 622 652, title:(clipse)"
|
||||||
];
|
];
|
||||||
|
|
||||||
exec-once = [
|
exec-once = [
|
||||||
@ -144,12 +145,12 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
bind = [
|
bind = [
|
||||||
"$mainMod, V, exec, kitty --class clipse -e clipse"
|
"$mainMod, V, exec, ghostty --title=clipse -e clipse"
|
||||||
|
|
||||||
"$mainMod, Return, exec, kitty"
|
"$mainMod, Return, exec, ghostty"
|
||||||
"$mainMod, Q, killactive,"
|
"$mainMod, Q, killactive,"
|
||||||
"$mainMod, M, exit,"
|
"$mainMod, M, exit,"
|
||||||
"$mainMod, E, exec, kitty -e sh -c yazi"
|
"$mainMod, E, exec, ghostty -e sh -c yazi"
|
||||||
"$mainMod, F, togglefloating,"
|
"$mainMod, F, togglefloating,"
|
||||||
"$mainMod, D, exec, wofi --show drun"
|
"$mainMod, D, exec, wofi --show drun"
|
||||||
"$mainMod, P, pseudo, # dwindle"
|
"$mainMod, P, pseudo, # dwindle"
|
||||||
|
@ -80,6 +80,10 @@
|
|||||||
source "$(fzf-share)/completion.zsh"
|
source "$(fzf-share)/completion.zsh"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
envExtra = ''
|
||||||
|
TERM=xterm-256color
|
||||||
|
'';
|
||||||
|
|
||||||
history.size = 10000;
|
history.size = 10000;
|
||||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user