Skip to content

Commit

Permalink
added kitty and changed vscodium config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sly-Harvey committed Apr 20, 2024
1 parent 8f757fa commit 825b299
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 66 deletions.
69 changes: 18 additions & 51 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions hosts/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
../modules/programs/direnv
../modules/programs/firefox
# ../modules/programs/firefox/firefox-system.nix
../modules/programs/kitty
../modules/programs/lazygit
../modules/programs/lf
../modules/programs/mpv
Expand Down
19 changes: 13 additions & 6 deletions modules/desktop/hyprland/hypr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,17 @@
windowrulev2 = workspace 1, class:^(firefox)$
windowrulev2 = workspace 2, class:^(Alacritty)$
windowrulev2 = workspace 2, class:^(kitty)$
windowrulev2 = workspace 3, class:^(krita)$
windowrulev2 = workspace 3, title:(.*)(Godot)(.*)$
windowrulev2 = workspace 3, class:^(VSCodium)$
windowrulev2 = workspace 3, class:^(codium-url-handler)$
windowrulev2 = workspace 3, class:^(Code)$
windowrulev2 = workspace 3, class:^(code-url-handler)$
windowrulev2 = workspace 4, class:^(krita)$
windowrulev2 = workspace 4, title:(.*)(Godot)(.*)$
windowrulev2 = workspace 4, title:(GNU Image Manipulation Program)(.*)$
windowrulev2 = workspace 4, class:^(Code)$
windowrulev2 = workspace 5, class:^(Spotify)$
windowrulev2 = workspace 5, class:^(Spotify Premium)$
windowrulev2 = workspace 7, class:^(steam)$
windowrulev2 = workspace 10, class:^(factorio)$
# windowrulev2 = workspace 10, class:^(factorio)$
# Allow screen tearing for reduced input latency on some games.
#windowrulev2 = immediate, class:^(cs2)$
Expand All @@ -259,6 +263,9 @@
windowrulev2 = opacity 0.80 0.80,class:^(steam)$
windowrulev2 = opacity 0.80 0.80,class:^(steamwebhelper)$
windowrulev2 = opacity 0.80 0.80,class:^(Spotify)$
windowrulev2 = opacity 0.80 0.80,class:^(Spotify Premium)$
# windowrulev2 = opacity 0.80 0.80,class:^(VSCodium)$
# windowrulev2 = opacity 0.80 0.80,class:^(codium-url-handler)$
windowrulev2 = opacity 0.80 0.80,class:^(Code)$
windowrulev2 = opacity 0.80 0.80,class:^(code-url-handler)$
windowrulev2 = opacity 0.80 0.80,class:^(kitty)$
Expand Down Expand Up @@ -305,8 +312,8 @@
$mainMod = SUPER
$launcher = pkill rofi || rofi -show drun -modi drun,filebrowser,run,window -theme ~/.config/rofi/launchers/type-2/style-2.rasi
$term = alacritty
$editor = code
$file = alacritty -e lf
$editor = codium
$file = $term -e lf
$browser = firefox
# Night Mode (lower value means warmer temp)
Expand Down
46 changes: 46 additions & 0 deletions modules/programs/kitty/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
pkgs,
lib,
username,
...
}: {
home-manager.users.${username} = _: {
programs.kitty = {
enable = true;
font = {
name = "JetBrainsMono Nerd Font";
size = 11.0;
};
theme = "Catppuccin-Mocha";
settings = {
confirm_os_window_close = 0;
scrollback_lines = 10000;
enable_audio_bell = false;
mouse_hide_wait = 60;

## Tabs
tab_title_template = "{index}";
active_tab_font_style = "normal";
inactive_tab_font_style = "normal";
tab_bar_style = "powerline";
tab_powerline_style = "round";
active_tab_foreground = "#1e1e2e";
active_tab_background = "#cba6f7";
inactive_tab_foreground = "#bac2de";
inactive_tab_background = "#313244";
};
shellIntegration.mode = "no-sudo";
keybindings = {
## Tabs
"alt+1" = "goto_tab 1";
"alt+2" = "goto_tab 2";
"alt+3" = "goto_tab 3";
"alt+4" = "goto_tab 4";

## Unbind
"ctrl+shift+left" = "no_op";
"ctrl+shift+right" = "no_op";
};
};
};
}
14 changes: 7 additions & 7 deletions modules/programs/vscodium/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
"update.mode" = "none";
"extensions.autoUpdate" = false; # This stuff fixes vscode freaking out when theres an update
"window.titleBarStyle" = "custom"; # needed otherwise vscode crashes, see https://github.com/NixOS/nixpkgs/issues/246509
"window.menuBarVisibility" = "toggle";
"window.menuBarVisibility" = "classic";
"editor.fontFamily" = "'JetBrainsMono Nerd Font', 'SymbolsNerdFont', 'monospace', monospace";
"terminal.integrated.fontFamily" = "'JetBrainsMono Nerd Font', 'SymbolsNerdFont'";
"editor.fontSize" = 14;
"editor.fontSize" = 16;
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.iconTheme" = "catppuccin-mocha";
"catppuccin.accentColor" = "lavender";
Expand All @@ -65,13 +65,13 @@
"workbench.editor.limit.enabled" = true;
"workbench.editor.limit.value" = 10;
"workbench.editor.limit.perEditorGroup" = true;
"workbench.editor.showTabs" = "single";
"files.autoSave" = "onWindowChange";
# "workbench.editor.showTabs" = "single";
"explorer.openEditors.visible" = 0;
"breadcrumbs.enabled" = false;
"breadcrumbs.enabled" = true;
"editor.renderControlCharacters" = false;
"workbench.activityBar.location" = "hidden";
"workbench.statusBar.visible" = false;
# "workbench.activityBar.location" = "hidden";
# "workbench.statusBar.visible" = false;
"editor.stickyScroll.enabled" = false; # Top code preview
"editor.scrollbar.verticalScrollbarSize" = 2;
"editor.scrollbar.horizontalScrollbarSize" = 2;
"editor.scrollbar.vertical" = "hidden";
Expand Down
2 changes: 1 addition & 1 deletion modules/themes/Catppuccin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

qt = {
enable = true;
platformTheme = "gtk"; # gnome
platformTheme.name = "gtk"; # gnome
#platformTheme = "gnome";
#style = {
# name = "adwaita-dark";
Expand Down
2 changes: 1 addition & 1 deletion modules/themes/Dracula/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

qt = {
enable = true;
platformTheme = "gtk"; # gnome
platformTheme.name = "gtk"; # gnome
#platformTheme = "gnome";
#style = {
# name = "adwaita-dark";
Expand Down

0 comments on commit 825b299

Please sign in to comment.