Skip to content

Commit

Permalink
fish: bloxorz
Browse files Browse the repository at this point in the history
  • Loading branch information
moni-dz committed Dec 13, 2024
1 parent aced320 commit a05d5df
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 34 deletions.
2 changes: 2 additions & 0 deletions hosts/riscake/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
};

extraConfig = ''
yabai -m signal --add app='^Ghostty$' event=window_created action='yabai -m space --layout bsp'
yabai -m signal --add app='^Ghostty$' event=window_destroyed action='yabai -m space --layout bsp'
yabai -m rule --add app='System Settings' manage=off
yabai -m rule --add app='Finder' manage=off
'';
Expand Down
49 changes: 30 additions & 19 deletions modules/shared/home-manager/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

{
programs = {
atuin = {
enable = true;
daemon.enable = true;
};

dircolors = {
enable = false;
enableFishIntegration = config.programs.fish.enable;
Expand Down Expand Up @@ -49,16 +54,18 @@
right_format = "$directory$git_branch$git_commit$git_state$git_status";

character = {
success_symbol = "[♥](bold green)";
error_symbol = "[♥](bold red)";
vimcmd_symbol = "[♡](bold purple)";
vimcmd_replace_symbol = "[♡](bold green)";
vimcmd_replace_one_symbol = "[♡](bold green)";
vimcmd_visual_symbol = "[♡](bold yellow)";
success_symbol = "[ ♥ ](fg:black bg:green)";
error_symbol = "[ ♥ ](fg:black bg:red)";
vimcmd_symbol = "[ ♡ ](fg:black bg:purple)";
vimcmd_replace_symbol = "[ ♡ ](fg:black bg:green)";
vimcmd_replace_one_symbol = "[ ♡ ](fg:black bg:green)";
vimcmd_visual_symbol = "[ ♡ ](fg:black bg:yellow)";
};

username = {
format = "[$user]($style) ";
style_user = "bg:purple fg:black";
style_root = "bg:red fg:black";
format = "[ $user ]($style)";
disabled = false;
show_always = true;
};
Expand All @@ -74,28 +81,32 @@
git_state.format = " [\\($state( $progress_current/$progress_total)\\)]($style)";

git_status = {
ahead = "↑";
behind = "↓";
conflicted = "±";
deleted = "×";
diverged = "↕";
modified = "‼";
renamed = "≡";
stashed = "⌂";
format = ''( [\[$all_status$ahead_behind\]]($style))'';
style = "fg:black bg:red";
ahead = " ↑ ";
behind = " ↓ ";
conflicted = " ± ";
deleted = " × ";
diverged = " ↕ ";
modified = " ‼ ";
renamed = " ≡ ";
stashed = " ⌂ ";
format = ''[$all_status$ahead_behind]($style)'';
};

git_branch = {
format = " → [$symbol$branch(:$remote_branch)]($style)";
style = "fg:black bg:yellow";
format = "[ $symbol$branch(:$remote_branch) ]($style)";
symbol = "";
};

battery.disabled = true;
line_break.disabled = true;

directory = {
read_only = "(ro)";
format = "[$read_only]($read_only_style) [$path]($style)";
style = "bg:cyan fg:black";
read_only_style = "bg:red fg:black";
read_only = " RO ";
format = "[$read_only]($read_only_style)[ $path ]($style)";
};

nix_shell.format = "[(\\($name\\))]($style) ";
Expand Down
15 changes: 0 additions & 15 deletions users/moni/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,6 @@
};
};

xdg.configFile."ghostty/testing.glsl".text = ''
void mainImage(out vec4 fragColor, in vec2 fragCoord)
{
vec2 uv = fragCoord.xy / iResolution.xy;
vec3 gradientStartColor = vec3(0.188,0.204,0.275);
vec3 gradientEndColor = vec3(0.067,0.067,0.106);
float mixValue = distance(uv, vec2(0.25, 0.5));
vec3 gradientColor = mix(gradientStartColor, gradientEndColor, mixValue);
vec4 terminalColor = texture(iChannel0, uv);
float mask = 1.0 - step(0.5, dot(terminalColor.rgb, vec3(1.0)));
vec3 blendedColor = mix(terminalColor.rgb, gradientColor, mask);
fragColor = vec4(blendedColor, terminalColor.a);
}
'';

programs = {
fish = {
interactiveShellInit = ''
Expand Down

0 comments on commit a05d5df

Please sign in to comment.