init: stylix

This commit is contained in:
William 2024-09-17 23:19:59 -03:00
parent 886d285db2
commit aa031db47d
12 changed files with 395 additions and 183 deletions

View file

@ -12,7 +12,6 @@
helix = {
enable = true;
settings = {
theme = "catppuccin-mocha_transparent";
editor = {
idle-timeout = 0;
line-number = "relative";
@ -34,17 +33,11 @@
};
};
languages = {
language = [
{
name = "nix";
auto-format = true;
formatter.command = "nixfmt";
}
];
};
themes.catppuccin-mocha_transparent = {
inherits = "catppuccin_mocha";
"ui.background" = "{}";
language = [{
name = "nix";
auto-format = true;
formatter.command = "nixfmt";
}];
};
};
@ -154,7 +147,6 @@
btop = {
enable = true;
settings = {
color_theme = "catppuccin_mocha.theme";
theme_background = false;
proc_sorting = "cpu direct";
update_ms = 500;

View file

@ -1,5 +1,5 @@
{ ... }:
{
imports = [ ./home.nix ./programs.nix ./programs ];
imports = [ ./programs.nix ./programs ];
}

View file

@ -1,19 +0,0 @@
{ config, pkgs, lib, ... }:
{
home = {
pointerCursor = {
size = 24;
gtk.enable = true;
x11.enable = true;
name = "Breeze_Light";
package = pkgs.kdePackages.breeze-icons;
};
activation.removeExistingGtk =
lib.hm.dag.entryBefore [ "checkLinkTargets" ] ''
rm -rf ~/.gtkrc-2.0
rm -rf ~/.config/gtk-3.0
rm -rf ~/.config/gtk-4.0
'';
};
}

View file

@ -42,57 +42,4 @@
};
};
};
home.file = {
".config/MangoHud/MangoHud.conf".text = ''
time
fps
gpu_stats
gpu_temp
vram
cpu_stats
cpu_temp
ram
frame_timing
battery_icon
gamepad_battery_icon
horizontal
horizontal_stretch=0
legacy_layout=0
background_alpha=0.6
position=top-left
control=mangohud
offset_x=4
offset_y=4
table_columns=20
time_format=%H:%M
toggle_hud=End
core_load_change
cpu_color=ffffff
cpu_load_change
cpu_load_color=FFFFFF,FFAA7F,CC0000
cpu_load_value=50,90
cpu_text=CPU
gpu_color=ffffff
gpu_load_change
gpu_load_color=FFFFFF,FFAA7F,CC0000
gpu_load_value=50,90
gpu_text=GPU
io_color=ffffff
media_player_color=ffffff
ram_color=ffffff
text_color=ffffff
vram_color=ffffff
engine_color=ffffff
frametime_color=ffffff
blacklist=zed,org.wezfurlong.wezterm
'';
".mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json".source =
"${pkgs.plasma-browser-integration}/lib/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json";
};
}

View file

@ -4,90 +4,83 @@
programs.wezterm = {
enable = true;
extraConfig = ''
local act = wezterm.action
local act = wezterm.action
local function get_initial_cols_by_hostname()
local hostname = wezterm.hostname()
local function get_initial_cols_by_hostname()
local hostname = wezterm.hostname()
if hostname == "rotterdam" then
return 110
elseif hostname == "io" then
return 89
else
return 110
end
end
if hostname == "rotterdam" then
return 110
elseif hostname == "io" then
return 89
else
return 110
end
end
return {
disable_default_key_bindings = true,
color_scheme = "Catppuccin Mocha",
font = wezterm.font_with_fallback ({
{family = "Hack Nerd Font", scale = 1},
{family = "Noto Color Emoji", scale = 1},
}),
initial_cols = get_initial_cols_by_hostname(),
initial_rows = 32,
enable_scroll_bar = true,
inactive_pane_hsb = {
saturation = 0.7,
brightness = 0.5
},
window_frame = {
font = wezterm.font_with_fallback ({
{family = "Hack Nerd Font", scale = 1},
{family = "Noto Color Emoji", scale = 1},
}),
active_titlebar_bg = '#303446',
inactive_titlebar_bg = '#303446',
},
hide_tab_bar_if_only_one_tab = true,
show_new_tab_button_in_tab_bar = false,
front_end = "WebGpu",
colors = {
tab_bar = {
background = '#303446',
active_tab = {
bg_color = '#1e1e2e',
fg_color = '#9197b0',
},
inactive_tab = {
bg_color = '#303446',
fg_color = '#9197b0'
},
inactive_tab_edge = '#303062',
},
},
keys = {
{ key = 'Tab', mods = 'CTRL', action = act.ActivateTabRelative(1) },
{ key = 'Tab', mods = 'SHIFT|CTRL', action = act.ActivateTabRelative(-1) },
{ key = 'Enter', mods = 'ALT', action = act.ToggleFullScreen },
{ key = ':', mods = 'SHIFT|CTRL', action = act.SplitVertical{ domain = 'CurrentPaneDomain' } },
{ key = '?', mods = 'SHIFT|CTRL', action = act.SplitHorizontal{ domain = 'CurrentPaneDomain' } },
{ key = '+', mods = 'CTRL', action = act.IncreaseFontSize },
{ key = '=', mods = 'CTRL', action = act.IncreaseFontSize },
{ key = '-', mods = 'CTRL', action = act.DecreaseFontSize },
{ key = '_', mods = 'SHIFT|CTRL', action = act.DecreaseFontSize },
{ key = '0', mods = 'CTRL', action = act.ResetFontSize },
{ key = 'C', mods = 'SHIFT|CTRL', action = act.CopyTo 'Clipboard' },
{ key = 'F', mods = 'SHIFT|CTRL', action = act.Search 'CurrentSelectionOrEmptyString' },
{ key = 'B', mods = 'SHIFT|CTRL', action = act.ClearScrollback 'ScrollbackOnly' },
{ key = 'R', mods = 'SHIFT|CTRL', action = act.ReloadConfiguration },
{ key = 'T', mods = 'SHIFT|CTRL', action = act.SpawnTab 'CurrentPaneDomain' },
{ key = 'V', mods = 'SHIFT|CTRL', action = act.PasteFrom 'Clipboard' },
{ key = 'W', mods = 'SHIFT|CTRL', action = act.CloseCurrentTab{ confirm = true } },
{ key = 'PageUp', mods = 'SHIFT', action = act.ScrollByPage(-1) },
{ key = 'PageUp', mods = 'CTRL', action = act.ActivateTabRelative(-1) },
{ key = 'PageUp', mods = 'SHIFT|CTRL', action = act.MoveTabRelative(-1) },
{ key = 'PageDown', mods = 'SHIFT', action = act.ScrollByPage(1) },
{ key = 'PageDown', mods = 'CTRL', action = act.ActivateTabRelative(1) },
{ key = 'PageDown', mods = 'SHIFT|CTRL', action = act.MoveTabRelative(1) },
{ key = 'H', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Left' },
{ key = 'L', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Right' },
{ key = 'K', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Up' },
{ key = 'J', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Down' },
{ key = 'P', mods = 'SHIFT|CTRL', action = act.ActivateCommandPalette },
},
}
return {
disable_default_key_bindings = true,
use_fancy_tab_bar = true,
window_frame = {
active_titlebar_bg = '#303446',
inactive_titlebar_bg = '#303446',
},
colors = {
tab_bar = {
background = '#303446',
active_tab = {
bg_color = '#1e1e2e',
fg_color = '#9197b0',
},
inactive_tab = {
bg_color = '#303446',
fg_color = '#9197b0'
},
inactive_tab_edge = '#303062',
new_tab = { bg_color = "#303446", fg_color = "#9197b0", },
new_tab_hover = { bg_color = "#9197b0", fg_color = "#303446", },
},
},
initial_cols = get_initial_cols_by_hostname(),
initial_rows = 32,
enable_scroll_bar = true,
inactive_pane_hsb = {
saturation = 0.7,
brightness = 0.5
},
hide_tab_bar_if_only_one_tab = false,
show_new_tab_button_in_tab_bar = true,
front_end = "WebGpu",
keys = {
{ key = 'Tab', mods = 'CTRL', action = act.ActivateTabRelative(1) },
{ key = 'Tab', mods = 'SHIFT|CTRL', action = act.ActivateTabRelative(-1) },
{ key = 'Enter', mods = 'ALT', action = act.ToggleFullScreen },
{ key = ':', mods = 'SHIFT|CTRL', action = act.SplitVertical{ domain = 'CurrentPaneDomain' } },
{ key = '?', mods = 'SHIFT|CTRL', action = act.SplitHorizontal{ domain = 'CurrentPaneDomain' } },
{ key = '+', mods = 'CTRL', action = act.IncreaseFontSize },
{ key = '=', mods = 'CTRL', action = act.IncreaseFontSize },
{ key = '-', mods = 'CTRL', action = act.DecreaseFontSize },
{ key = '_', mods = 'SHIFT|CTRL', action = act.DecreaseFontSize },
{ key = '0', mods = 'CTRL', action = act.ResetFontSize },
{ key = 'C', mods = 'SHIFT|CTRL', action = act.CopyTo 'Clipboard' },
{ key = 'F', mods = 'SHIFT|CTRL', action = act.Search 'CurrentSelectionOrEmptyString' },
{ key = 'B', mods = 'SHIFT|CTRL', action = act.ClearScrollback 'ScrollbackOnly' },
{ key = 'R', mods = 'SHIFT|CTRL', action = act.ReloadConfiguration },
{ key = 'T', mods = 'SHIFT|CTRL', action = act.SpawnTab 'CurrentPaneDomain' },
{ key = 'V', mods = 'SHIFT|CTRL', action = act.PasteFrom 'Clipboard' },
{ key = 'W', mods = 'SHIFT|CTRL', action = act.CloseCurrentTab{ confirm = true } },
{ key = 'PageUp', mods = 'SHIFT', action = act.ScrollByPage(-1) },
{ key = 'PageUp', mods = 'CTRL', action = act.ActivateTabRelative(-1) },
{ key = 'PageUp', mods = 'SHIFT|CTRL', action = act.MoveTabRelative(-1) },
{ key = 'PageDown', mods = 'SHIFT', action = act.ScrollByPage(1) },
{ key = 'PageDown', mods = 'CTRL', action = act.ActivateTabRelative(1) },
{ key = 'PageDown', mods = 'SHIFT|CTRL', action = act.MoveTabRelative(1) },
{ key = 'H', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Left' },
{ key = 'L', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Right' },
{ key = 'K', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Up' },
{ key = 'J', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Down' },
{ key = 'P', mods = 'SHIFT|CTRL', action = act.ActivateCommandPalette },
},
}
'';
};
}