home: sort files

This commit is contained in:
Guanran Wang 2023-11-05 17:21:37 +08:00
parent e8b5a28757
commit ba3f71208b
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
106 changed files with 398 additions and 1018 deletions

View file

@ -1,3 +0,0 @@
jorgebucaran/fisher
oh-my-fish/plugin-sudope
gazorby/fish-abbreviation-tips

View file

@ -1,25 +0,0 @@
# TokyoNight
# Syntax Highlighting Colors
fish_color_normal 3760bf
fish_color_command 007197
fish_color_keyword 9854f1
fish_color_quote 8c6c3e
fish_color_redirection 3760bf
fish_color_end b15c00
fish_color_error f52a65
fish_color_param 7847bd
fish_color_comment 848cb5
fish_color_selection --background=b6bfe2
fish_color_search_match --background=b6bfe2
fish_color_operator 587539
fish_color_escape 9854f1
fish_color_autosuggestion 848cb5
# Completion Pager Colors
fish_pager_color_progress 848cb5
fish_pager_color_prefix 007197
fish_pager_color_completion 3760bf
fish_pager_color_description 848cb5
fish_pager_color_selected_background --background=b6bfe2

View file

@ -1,25 +0,0 @@
# TokyoNight
# Syntax Highlighting Colors
fish_color_normal c8d3f5
fish_color_command 86e1fc
fish_color_keyword c099ff
fish_color_quote ffc777
fish_color_redirection c8d3f5
fish_color_end ff966c
fish_color_error ff757f
fish_color_param fca7ea
fish_color_comment 636da6
fish_color_selection --background=2d3f76
fish_color_search_match --background=2d3f76
fish_color_operator c3e88d
fish_color_escape c099ff
fish_color_autosuggestion 636da6
# Completion Pager Colors
fish_pager_color_progress 636da6
fish_pager_color_prefix 86e1fc
fish_pager_color_completion c8d3f5
fish_pager_color_description 636da6
fish_pager_color_selected_background --background=2d3f76

View file

@ -1,25 +0,0 @@
# TokyoNight
# Syntax Highlighting Colors
fish_color_normal c0caf5
fish_color_command 7dcfff
fish_color_keyword bb9af7
fish_color_quote e0af68
fish_color_redirection c0caf5
fish_color_end ff9e64
fish_color_error f7768e
fish_color_param 9d7cd8
fish_color_comment 565f89
fish_color_selection --background=283457
fish_color_search_match --background=283457
fish_color_operator 9ece6a
fish_color_escape bb9af7
fish_color_autosuggestion 565f89
# Completion Pager Colors
fish_pager_color_progress 565f89
fish_pager_color_prefix 7dcfff
fish_pager_color_completion c0caf5
fish_pager_color_description 565f89
fish_pager_color_selected_background --background=283457

View file

@ -1,25 +0,0 @@
# TokyoNight
# Syntax Highlighting Colors
fish_color_normal c0caf5
fish_color_command 7dcfff
fish_color_keyword bb9af7
fish_color_quote e0af68
fish_color_redirection c0caf5
fish_color_end ff9e64
fish_color_error f7768e
fish_color_param 9d7cd8
fish_color_comment 565f89
fish_color_selection --background=2e3c64
fish_color_search_match --background=2e3c64
fish_color_operator 9ece6a
fish_color_escape bb9af7
fish_color_autosuggestion 565f89
# Completion Pager Colors
fish_pager_color_progress 565f89
fish_pager_color_prefix 7dcfff
fish_pager_color_completion c0caf5
fish_pager_color_description 565f89
fish_pager_color_selected_background --background=2e3c64

View file

@ -1,36 +0,0 @@
# TokyoNight Color Palette
set -l foreground 3760bf
set -l selection b6bfe2
set -l comment 848cb5
set -l red f52a65
set -l orange b15c00
set -l yellow 8c6c3e
set -l green 587539
set -l purple 7847bd
set -l cyan 007197
set -l pink 9854f1
# Syntax Highlighting Colors
set -g fish_color_normal $foreground
set -g fish_color_command $cyan
set -g fish_color_keyword $pink
set -g fish_color_quote $yellow
set -g fish_color_redirection $foreground
set -g fish_color_end $orange
set -g fish_color_error $red
set -g fish_color_param $purple
set -g fish_color_comment $comment
set -g fish_color_selection --background=$selection
set -g fish_color_search_match --background=$selection
set -g fish_color_operator $green
set -g fish_color_escape $pink
set -g fish_color_autosuggestion $comment
# Completion Pager Colors
set -g fish_pager_color_progress $comment
set -g fish_pager_color_prefix $cyan
set -g fish_pager_color_completion $foreground
set -g fish_pager_color_description $comment
set -g fish_pager_color_selected_background --background=$selection

View file

@ -1,36 +0,0 @@
# TokyoNight Color Palette
set -l foreground c8d3f5
set -l selection 2d3f76
set -l comment 636da6
set -l red ff757f
set -l orange ff966c
set -l yellow ffc777
set -l green c3e88d
set -l purple fca7ea
set -l cyan 86e1fc
set -l pink c099ff
# Syntax Highlighting Colors
set -g fish_color_normal $foreground
set -g fish_color_command $cyan
set -g fish_color_keyword $pink
set -g fish_color_quote $yellow
set -g fish_color_redirection $foreground
set -g fish_color_end $orange
set -g fish_color_error $red
set -g fish_color_param $purple
set -g fish_color_comment $comment
set -g fish_color_selection --background=$selection
set -g fish_color_search_match --background=$selection
set -g fish_color_operator $green
set -g fish_color_escape $pink
set -g fish_color_autosuggestion $comment
# Completion Pager Colors
set -g fish_pager_color_progress $comment
set -g fish_pager_color_prefix $cyan
set -g fish_pager_color_completion $foreground
set -g fish_pager_color_description $comment
set -g fish_pager_color_selected_background --background=$selection

View file

@ -1,36 +0,0 @@
# TokyoNight Color Palette
set -l foreground c0caf5
set -l selection 283457
set -l comment 565f89
set -l red f7768e
set -l orange ff9e64
set -l yellow e0af68
set -l green 9ece6a
set -l purple 9d7cd8
set -l cyan 7dcfff
set -l pink bb9af7
# Syntax Highlighting Colors
set -g fish_color_normal $foreground
set -g fish_color_command $cyan
set -g fish_color_keyword $pink
set -g fish_color_quote $yellow
set -g fish_color_redirection $foreground
set -g fish_color_end $orange
set -g fish_color_error $red
set -g fish_color_param $purple
set -g fish_color_comment $comment
set -g fish_color_selection --background=$selection
set -g fish_color_search_match --background=$selection
set -g fish_color_operator $green
set -g fish_color_escape $pink
set -g fish_color_autosuggestion $comment
# Completion Pager Colors
set -g fish_pager_color_progress $comment
set -g fish_pager_color_prefix $cyan
set -g fish_pager_color_completion $foreground
set -g fish_pager_color_description $comment
set -g fish_pager_color_selected_background --background=$selection

View file

@ -1,36 +0,0 @@
# TokyoNight Color Palette
set -l foreground c0caf5
set -l selection 2e3c64
set -l comment 565f89
set -l red f7768e
set -l orange ff9e64
set -l yellow e0af68
set -l green 9ece6a
set -l purple 9d7cd8
set -l cyan 7dcfff
set -l pink bb9af7
# Syntax Highlighting Colors
set -g fish_color_normal $foreground
set -g fish_color_command $cyan
set -g fish_color_keyword $pink
set -g fish_color_quote $yellow
set -g fish_color_redirection $foreground
set -g fish_color_end $orange
set -g fish_color_error $red
set -g fish_color_param $purple
set -g fish_color_comment $comment
set -g fish_color_selection --background=$selection
set -g fish_color_search_match --background=$selection
set -g fish_color_operator $green
set -g fish_color_escape $pink
set -g fish_color_autosuggestion $comment
# Completion Pager Colors
set -g fish_pager_color_progress $comment
set -g fish_pager_color_prefix $cyan
set -g fish_pager_color_completion $foreground
set -g fish_pager_color_description $comment
set -g fish_pager_color_selected_background --background=$selection

View file

@ -1,24 +0,0 @@
font=monospace:size=12
pad=12x12 center
[colors]
#alpha = 0.9
background=1a1b26
foreground=c0caf5
regular0=15161e # black
regular1=f7768e # red
regular2=9ece6a # green
regular3=e0af68 # yellow
regular4=7aa2f7 # blue
regular5=bb9af7 # magenta
regular6=7dcfff # cyan
regular7=a91bd6 # white
bright0=414868 # bright black
bright1=f7768e # bright red
bright2=9ece6a # bright green
bright3=e0af68 # bright yellow
bright4=7aa2f7 # bright blue
bright5=bb9af7 # bright magenta
bright6=7dcfff # bright cyan
bright7=c0caf5 # bright white
16 = ff9e64
17 = db4b4b

View file

@ -1,75 +0,0 @@
{
"layer": "top",
"modules-left": ["custom/launcher", "hyprland/workspaces", "gamemode"],
"modules-center": ["hyprland/window"],
"modules-right": ["tray", "pulseaudio", "battery", "clock"],
"custom/launcher": { "format": "" },
"gamemode": {
"format": "{glyph} {count}",
"glyph": "󰊴",
"hide-not-running": true,
"use-icon": true,
"icon-name": "input-gaming-symbolic",
"icon-spacing": 4,
"icon-size": 20,
"tooltip": true,
"tooltip-format": "Games running: {count}"
},
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate",
"on-scroll-up": "hyprctl dispatch workspace e-1",
"on-scroll-down": "hyprctl dispatch workspace e+1",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"urgent": "",
"active": "",
"default": ""
},
"sort-by-number": true
},
"hyprland/window": {
"format": "{}",
"separate-outputs": true
},
"tray": {
"spacing": 10
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "󰂑",
"headset": "󰂑",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"scroll-step": 5,
"on-click": "pavucontrol",
"ignored-sinks": ["Easy Effects Sink"]
},
"battery": {
"bat": "BAT0",
"interval": 60,
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-icons": ["", "", "", "", ""],
"max-length": 25
},
"clock": {
"format": "{:%A %H:%M} ",
"tooltip-format": "<tt>{calendar}</tt>"
}
}

View file

@ -1,72 +0,0 @@
{
"layer": "top",
"modules-left": ["custom/launcher", "sway/workspaces", "gamemode"],
"modules-center": ["sway/window"],
"modules-right": ["tray", "pulseaudio", "battery", "clock"],
"custom/launcher": { "format": "" },
"gamemode": {
"format": "{glyph} {count}",
"glyph": "󰊴",
"hide-not-running": true,
"use-icon": true,
"icon-name": "input-gaming-symbolic",
"icon-spacing": 4,
"icon-size": 20,
"tooltip": true,
"tooltip-format": "Games running: {count}"
},
"sway/workspaces": {
"format": "{icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"urgent": "",
"active": "",
"default": ""
},
"sort-by-number": true
},
"sway/window": {
"format": "{}",
"separate-outputs": true
},
"tray": {
"spacing": 10
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "󰂑",
"headset": "󰂑",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"scroll-step": 5,
"on-click": "pavucontrol",
"ignored-sinks": ["Easy Effects Sink"]
},
"battery": {
"bat": "BAT0",
"interval": 60,
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-icons": ["", "", "", "", ""],
"max-length": 25
},
"clock": {
"format": "{:%A %H:%M} ",
"tooltip-format": "<tt>{calendar}</tt>"
}
}

View file

@ -1,37 +0,0 @@
/*
*
* Catppuccin Frappe palette
* Maintainer: rubyowo
*
*/
@define-color base #303446;
@define-color mantle #292c3c;
@define-color crust #232634;
@define-color text #c6d0f5;
@define-color subtext0 #a5adce;
@define-color subtext1 #b5bfe2;
@define-color surface0 #414559;
@define-color surface1 #51576d;
@define-color surface2 #626880;
@define-color overlay0 #737994;
@define-color overlay1 #838ba7;
@define-color overlay2 #949cbb;
@define-color blue #8caaee;
@define-color lavender #babbf1;
@define-color sapphire #85c1dc;
@define-color sky #99d1db;
@define-color teal #81c8be;
@define-color green #a6d189;
@define-color yellow #e5c890;
@define-color peach #ef9f76;
@define-color maroon #ea999c;
@define-color red #e78284;
@define-color mauve #ca9ee6;
@define-color pink #f4b8e4;
@define-color flamingo #eebebe;
@define-color rosewater #f2d5cf;

View file

@ -1,37 +0,0 @@
/*
*
* Catppuccin Latte palette
* Maintainer: rubyowo
*
*/
@define-color base #eff1f5;
@define-color mantle #e6e9ef;
@define-color crust #dce0e8;
@define-color text #4c4f69;
@define-color subtext0 #6c6f85;
@define-color subtext1 #5c5f77;
@define-color surface0 #ccd0da;
@define-color surface1 #bcc0cc;
@define-color surface2 #acb0be;
@define-color overlay0 #9ca0b0;
@define-color overlay1 #8c8fa1;
@define-color overlay2 #7c7f93;
@define-color blue #1e66f5;
@define-color lavender #7287fd;
@define-color sapphire #209fb5;
@define-color sky #04a5e5;
@define-color teal #179299;
@define-color green #40a02b;
@define-color yellow #df8e1d;
@define-color peach #fe640b;
@define-color maroon #e64553;
@define-color red #d20f39;
@define-color mauve #8839ef;
@define-color pink #ea76cb;
@define-color flamingo #dd7878;
@define-color rosewater #dc8a78;

View file

@ -1,37 +0,0 @@
/*
*
* Catppuccin Macchiato palette
* Maintainer: rubyowo
*
*/
@define-color base #24273a;
@define-color mantle #1e2030;
@define-color crust #181926;
@define-color text #cad3f5;
@define-color subtext0 #a5adcb;
@define-color subtext1 #b8c0e0;
@define-color surface0 #363a4f;
@define-color surface1 #494d64;
@define-color surface2 #5b6078;
@define-color overlay0 #6e738d;
@define-color overlay1 #8087a2;
@define-color overlay2 #939ab7;
@define-color blue #8aadf4;
@define-color lavender #b7bdf8;
@define-color sapphire #7dc4e4;
@define-color sky #91d7e3;
@define-color teal #8bd5ca;
@define-color green #a6da95;
@define-color yellow #eed49f;
@define-color peach #f5a97f;
@define-color maroon #ee99a0;
@define-color red #ed8796;
@define-color mauve #c6a0f6;
@define-color pink #f5bde6;
@define-color flamingo #f0c6c6;
@define-color rosewater #f4dbd6;

View file

@ -1,37 +0,0 @@
/*
*
* Catppuccin Mocha palette
* Maintainer: rubyowo
*
*/
@define-color base #1e1e2e;
@define-color mantle #181825;
@define-color crust #11111b;
@define-color text #cdd6f4;
@define-color subtext0 #a6adc8;
@define-color subtext1 #bac2de;
@define-color surface0 #313244;
@define-color surface1 #45475a;
@define-color surface2 #585b70;
@define-color overlay0 #6c7086;
@define-color overlay1 #7f849c;
@define-color overlay2 #9399b2;
@define-color blue #89b4fa;
@define-color lavender #b4befe;
@define-color sapphire #74c7ec;
@define-color sky #89dceb;
@define-color teal #94e2d5;
@define-color green #a6e3a1;
@define-color yellow #f9e2af;
@define-color peach #fab387;
@define-color maroon #eba0ac;
@define-color red #f38ba8;
@define-color mauve #cba6f7;
@define-color pink #f5c2e7;
@define-color flamingo #f2cdcd;
@define-color rosewater #f5e0dc;

View file

@ -1,142 +0,0 @@
/*
* Waybar styles config
* ~/.config/waybar/style.css
* based on https://gitlab.com/fazzi/dotfiles
* made for `waybar-hyprland`
* remember to download `JetBrainsMono Nerd Font` font,
* `sudo pacman -S ttf-jetbrains-mono-nerd` on Arch Linux
*
* yes i have no knowledge about css
* why am i commenting everything
*
* this config works in a terrible way, please do not edit
*/
* {
font: bold 14px "JetBrainsMono Nerd Font Propo"; /* font weight, font size and font. propo nerd font for centered icons, symbols nerd font does not work great on bold text */
/*color: #c0caf5;*/ /* text color */
/* Tokyo Night color scheme */
}
window#waybar {
background: transparent; /* main window transparent background */
}
tooltip {
background: #1a1b26; /* tooltip background */
color: #c0caf5; /* tooltip text color */
border: 2px solid #c0caf5; /* tooltip border size and color */
border-radius: 5px; /* tooltip rounded corners */
}
/* *****************************
* modules (pills) section start
* *****************************/
#custom-launcher,
#gamemode,
#window,
#workspaces,
#tray,
#pulseaudio,
#battery,
#clock,
#cava {
text-shadow: 1px 1px 2px black; /* text shadow, offset-x | offset-y | blur-radius | color */
background: #1a1b26; /* background color */
color: #c0caf5; /* text color */
margin: 10px 4px 4px 4px; /* empty spaces around */
padding: 4px 10px; /* extend pill size, vertical then horizontal */
box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.4); /* pill background shadows */
border-radius: 5px; /* rounded corners */
}
/* extend empty space on both side of the bar,
* value from ~/.config/hypr/hyprland.conf
* gaps_out (8px) + border size (2px) = 10px */
#custom-launcher {
margin-left: 10px;
}
#clock {
margin-right: 10px;
}
#workspaces {
padding: 0px; /* remove padding around workspace module */
}
#workspaces button {
text-shadow: 1px 1px 2px black; /* text shadow, offset-x | offset-y | blur-radius | color */
color: #c0caf5; /* #workspace != workspace button */
padding: 0px 4px; /* fit with pill padding, 0px for not haveing duped vertical padding, 4px to make a square (4px value from module padding: ...#clock {padding >>4px<< 10px}) */
border: 2px solid #1a1b26; /* required by active workspace top color, or the bar will jitter */
transition-property: background-color, min-width; /* smooth transition for workspace module */
transition-duration: .15s;
}
#workspaces button.active {
text-shadow: none; /* text shadow, offset-x | offset-y | blur-radius | color */
color: #c0caf5; /* #workspace != workspace button */
/* active workspace */
background: linear-gradient(
70deg,
rgb(192, 202, 245),
rgb(192, 202, 245),
rgb(192, 202, 245),
rgb(192, 202, 245),
rgb(229, 234, 255),
rgb(192, 202, 245),
rgb(192, 202, 245),
rgb(192, 202, 245),
rgb(192, 202, 245)
);
background-size: 300% 100%;
background-position: 0% 0%;
animation: colored-gradient 2s linear infinite;
color: #1a1b26; /* icon(text) color */
min-width: 36px;
}
#workspaces button.active:hover {
background: #9fa7cc; /* hovered workspace color */
}
#workspaces button:hover {
background: #11111b; /* hovered workspace color */
}
/* ***************************
* modules (pills) section end
* ***************************/
/*
Does not seem to do anything, I'm not really sure...
UPDATE: it does do stuff on sway, will investigate
#workspaces button.visible {
}
#workspaces button.urgent {
}
#workspaces button.persistent{
}
#workspaces button.hidden {
}
*/
@keyframes colored-gradient {
from {background-position: 0% 0%;}
to {background-position: 100% 0%;}
}

View file

@ -1,273 +0,0 @@
{
pkgs,
config,
lib,
inputs,
...
}: {
home = {
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
stateVersion = "23.05";
shellAliases = {
# navigation
"l" = "${pkgs.eza}/bin/eza -Fhl --icons --git";
"ll" = "${pkgs.eza}/bin/eza -Fahl --icons --git";
"ls" = "${pkgs.eza}/bin/eza -F --icons --git";
"la" = "${pkgs.eza}/bin/eza -Fa --icons --git";
"tree" = "${pkgs.eza}/bin/eza --icons --git --tree";
".." = "cd ..";
# replacements
#"code" = "codium";
#"neofetch" = "fastfetch";
#"ranger" = "joshuto"; # rust
#"grep" = "rg";
#"top" = "btm -b";
#"htop" = "btm -b";
#"btop" = "btm";
"yd" = "ydict -c";
"farsee" = "curl -F 'c=@-' 'https://fars.ee/'"; # pb
"clock" = "tty-clock -5Ccs";
# proxy
"setproxy" = let
proxy = "http://127.0.0.1:7890/";
in "export http_proxy=${proxy} https_proxy=${proxy} ftp_proxy=${proxy} rsync_proxy=${proxy}";
"unsetproxy" = "set -e http_proxy https_proxy all_proxy"; # fish syntax (?)
};
sessionVariables = {
# misc
"MANPAGER" = "sh -c 'col -bx | bat -l man -p'"; # man: use bat as man's pager
"MANROFFOPT" = "-c"; # man: fix formatting issue with bat
"SKIM_DEFAULT_COMMAND" = "fd --type f || git ls-tree -r --name-only head || rg --files || find ."; # skim: use fd by default
};
};
programs = {
# Let Home Manager install and manage itself.
home-manager.enable = true;
bash = {
enable = true;
historyFile = "${config.xdg.configHome}/bash/.bash_history";
};
zsh = {
enable = true;
### XDG
dotDir = ".config/zsh";
### Plugins
syntaxHighlighting.enable = true;
historySubstringSearch.enable = true;
enableAutosuggestions = true;
plugins = [
{
name = "fzf-tab";
src = "${pkgs.zsh-fzf-tab}/share/fzf-tab";
}
{
# should I use flake inputs / fetchurl?
name = "sudo";
src =
pkgs.fetchFromGitHub {
owner = "ohmyzsh";
repo = "ohmyzsh";
rev = "f8bf8f0029a475831ebfba0799975ede20e08742";
hash = "sha256-9cJQQycahO+vo/YcAHjF+PVhsWxu7pa4MsK8Dgr69k0=";
sparseCheckout = [
"plugins/sudo"
];
}
+ "/plugins/sudo";
}
];
initExtra = "zstyle ':fzf-tab:*' fzf-command sk";
### History
history = {
path = "${config.xdg.configHome}/zsh/.zsh_history";
save = 1000000;
size = 1000000;
};
};
fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting
source ${config.xdg.configHome}/fish/tokyonight_night.fish
'';
};
tealdeer.enable = true;
zoxide.enable = true;
starship = {
enable = true;
settings = {
add_newline = false;
aws.disabled = true;
gcloud.disabled = true;
line_break.disabled = true;
};
};
#eza = {
# enable = true;
# git = true;
# icons = true;
#};
git = {
enable = true;
userName = "Guanran Wang";
userEmail = "guanran928@outlook.com";
delta.enable = true;
};
alacritty = {
enable = true;
settings = {
import = ["${inputs.tokyonight}/extras/alacritty/tokyonight_night.yml"];
cursor.style = "beam";
env.WINIT_X11_SCALE_FACTOR = "1";
window = {
#opacity = 0.9;
padding = {
x = 12;
y = 12;
};
};
font = {
size = 12;
normal = {
family = lib.mkDefault "monospace"; # macOS dont have fontconfig, so mkDefault is nessesary
style = "SemiBold";
};
bold = {
family = lib.mkDefault "monospace";
style = "Bold";
};
bold_italic = {
family = lib.mkDefault "monospace";
style = "Bold Itailc";
};
italic = {
family = lib.mkDefault "monospace";
style = "SemiBold Italic";
};
};
};
};
kitty = {
enable = true;
settings = {
include = "${inputs.tokyonight}/extras/kitty/tokyonight_night.conf";
font_size = 12;
confirm_os_window_close = 0;
window_padding_width = 6;
adjust_line_height = 0;
};
};
# Editors
### VSCode
vscode = {
enable = true;
package = pkgs.vscodium; # foss
enableExtensionUpdateCheck = false;
enableUpdateCheck = false;
userSettings = {
"diffEditor.ignoreTrimWhitespace" = false;
"editor.cursorBlinking" = "smooth";
"editor.cursorSmoothCaretAnimation" = "on";
"editor.fontFamily" = lib.mkDefault "Monospace";
"editor.fontWeight" = 600;
"editor.tabSize" = 2;
"explorer.confirmDragAndDrop" = false;
"explorer.confirmDelete" = false;
"files.autoSave" = "onFocusChange";
"files.trimTrailingWhitespace" = true;
"files.trimFinalNewlines" = true;
"security.workspace.trust.enabled" = false;
"telemetry.telemetryLevel" = "off";
"terminal.external.osxExec" = "Alacritty.app";
"terminal.integrated.cursorBlinking" = true;
"update.mode" = "none";
"window.menuBarVisibility" = "toggle";
"workbench.colorTheme" = "Tokyo Night";
# Extensions
### Nix IDE
"nix.enableLanguageServer" = true;
"nix.serverPath" = "${pkgs.nil}/bin/nil";
### GitLens
"gitlens.telemetry.enabled" = false;
};
extensions = with pkgs.vscode-extensions; [
### LSP
jnoortheen.nix-ide
#ms-python.python
rust-lang.rust-analyzer
tamasfe.even-better-toml
#bungcip.better-toml
### QoL
eamodio.gitlens
esbenp.prettier-vscode
ritwickdey.liveserver
vscodevim.vim
### Themes
enkia.tokyo-night
#catppuccin.catppuccin-vsc-icons
#catppuccin.catppuccin-vsc
];
};
### Neovim
neovim = {
enable = true;
#defaultEditor = true;
viAlias = true;
vimAlias = true;
};
### Helix
helix = {
enable = true;
defaultEditor = true;
settings = {
theme = "tokyonight";
editor = {
cursor-shape = {
insert = "bar";
normal = "block";
select = "underline";
};
statusline = {
mode = {
normal = "--NORMAL--";
insert = "--INSERT--";
select = "--SELECT--";
};
};
indent-guides.render = true;
file-picker.hidden = false;
};
# i still use these keybinds somethimes, even its hard to reach
keys.insert = {
C-left = "move_prev_word_start";
C-right = "move_next_word_end";
};
keys.normal = {
C-left = "move_prev_word_start";
C-right = "move_next_word_end";
};
};
};
};
}

View file

@ -1,12 +0,0 @@
{...}: let
configPath = ../common/dotfiles/config;
#dataPath = ../common/dotfiles/data;
#binPath = ../common/dotfiles/bin;
in {
xdg.configFile = {
"fish" = {
source = "${configPath}/fish";
recursive = true;
};
};
}

View file

@ -1,6 +1,13 @@
{...}: { {...}: {
imports = [ imports = [
../../common/home.nix ../..
../../resources/terms/alacritty.nix
../../resources/shell/fish.nix
../../resources/shell/bash.nix
../../resources/editor/helix.nix
../../resources/editor/neovim.nix
../../resources/editor/vscode.nix
../home.nix ../home.nix
../dotfiles.nix ../dotfiles.nix
]; ];

View file

@ -0,0 +1,77 @@
{pkgs, ...}: {
home = {
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
stateVersion = "23.05";
shellAliases = {
# navigation
"l" = "${pkgs.eza}/bin/eza -Fhl --icons --git";
"ll" = "${pkgs.eza}/bin/eza -Fahl --icons --git";
"ls" = "${pkgs.eza}/bin/eza -F --icons --git";
"la" = "${pkgs.eza}/bin/eza -Fa --icons --git";
"tree" = "${pkgs.eza}/bin/eza --icons --git --tree";
".." = "cd ..";
# replacements
#"code" = "codium";
#"neofetch" = "fastfetch";
#"ranger" = "joshuto"; # rust
#"grep" = "rg";
#"top" = "btm -b";
#"htop" = "btm -b";
#"btop" = "btm";
"yd" = "ydict -c";
"farsee" = "curl -F 'c=@-' 'https://fars.ee/'"; # pb
"clock" = "tty-clock -5Ccs";
# proxy
"setproxy" = let
proxy = "http://127.0.0.1:7890/";
in "export http_proxy=${proxy} https_proxy=${proxy} ftp_proxy=${proxy} rsync_proxy=${proxy}";
"unsetproxy" = "set -e http_proxy https_proxy all_proxy"; # fish syntax (?)
};
sessionVariables = {
# misc
"MANPAGER" = "sh -c 'col -bx | bat -l man -p'"; # man: use bat as man's pager
"MANROFFOPT" = "-c"; # man: fix formatting issue with bat
"SKIM_DEFAULT_COMMAND" = "fd --type f || git ls-tree -r --name-only head || rg --files || find ."; # skim: use fd by default
};
};
programs = {
# Let Home Manager install and manage itself.
home-manager.enable = true;
tealdeer.enable = true;
zoxide.enable = true;
starship = {
enable = true;
settings = {
add_newline = false;
aws.disabled = true;
gcloud.disabled = true;
line_break.disabled = true;
};
};
#eza = {
# enable = true;
# git = true;
# icons = true;
#};
git = {
enable = true;
userName = "Guanran Wang";
userEmail = "guanran928@outlook.com";
delta.enable = true;
};
};
}

View file

@ -1,18 +1,10 @@
{...}: let {...}: let
homePath = ../common/dotfiles; homePath = ../resources/dotfiles;
binPath = ../common/dotfiles/bin; binPath = ../resources/dotfiles/bin;
configPath = ../common/dotfiles/config; configPath = ../resources/dotfiles/config;
dataPath = ../common/dotfiles/data; dataPath = ../resources/dotfiles/data;
in { in {
xdg.configFile = { xdg.configFile = {
"foot" = {
source = "${configPath}/foot";
recursive = true;
};
"fish" = {
source = "${configPath}/fish";
recursive = true;
};
"fontconfig" = { "fontconfig" = {
source = "${configPath}/fontconfig"; source = "${configPath}/fontconfig";
recursive = true; recursive = true;

View file

@ -83,7 +83,7 @@
bat bat
# cli # cli
fastfetch #fastfetch
wget wget
sops sops
skim skim
@ -129,13 +129,6 @@
gamemode # outdated gamemode # outdated
just-perfection just-perfection
kimpanel kimpanel
])
++ (with pkgs.fishPlugins; [
autopair
done
#tide
sponge
puffer
]); ]);
pointerCursor = { pointerCursor = {

View file

@ -1,15 +1,20 @@
{...}: { {...}: {
imports = [ imports = [
../../common/home.nix ../..
../../resources/terms/alacritty.nix
../../resources/shell/fish.nix
../../resources/shell/bash.nix
../../resources/editor/helix.nix
../../resources/editor/neovim.nix
../../resources/editor/vscode.nix
../home.nix ../home.nix
../dotfiles.nix ../dotfiles.nix
../dunst.nix
../fonts.nix ../fonts.nix
../i18n.nix ../i18n.nix
../sway.nix
../waybar.nix
../wm
../xdg ../xdg
]; ];
} }

View file

@ -0,0 +1,7 @@
{...}: {
imports = [
./dunst.nix
./sway.nix
./waybar.nix
];
}

View file

@ -306,6 +306,10 @@
<test name="family" qual="any"><string>SF Mono</string></test> <test name="family" qual="any"><string>SF Mono</string></test>
<edit name="family" binding="same" mode="assign"><string>monospace</string></edit> <edit name="family" binding="same" mode="assign"><string>monospace</string></edit>
</match> </match>
<match target="pattern">
<test name="family" qual="any"><string>Noto Sans Mono</string></test>
<edit name="family" binding="same" mode="assign"><string>monospace</string></edit>
</match>
<!-- why is DejaVu Sans still here after fonts.enableDefaultPackages = false --> <!-- why is DejaVu Sans still here after fonts.enableDefaultPackages = false -->
<selectfont> <selectfont>

View file

@ -0,0 +1,34 @@
{...}: {
programs.helix = {
enable = true;
defaultEditor = true;
settings = {
theme = "tokyonight";
editor = {
cursor-shape = {
insert = "bar";
normal = "block";
select = "underline";
};
statusline = {
mode = {
normal = "--NORMAL--";
insert = "--INSERT--";
select = "--SELECT--";
};
};
indent-guides.render = true;
file-picker.hidden = false;
};
# i still use these keybinds somethimes, even its hard to reach
keys.insert = {
C-left = "move_prev_word_start";
C-right = "move_next_word_end";
};
keys.normal = {
C-left = "move_prev_word_start";
C-right = "move_next_word_end";
};
};
};
}

View file

@ -0,0 +1,8 @@
{...}: {
programs.neovim = {
enable = true;
#defaultEditor = true;
viAlias = true;
vimAlias = true;
};
}

View file

@ -0,0 +1,58 @@
{
lib,
pkgs,
...
}: {
programs.vscode = {
enable = true;
package = pkgs.vscodium; # foss
enableExtensionUpdateCheck = false;
enableUpdateCheck = false;
userSettings = {
"diffEditor.ignoreTrimWhitespace" = false;
"editor.cursorBlinking" = "smooth";
"editor.cursorSmoothCaretAnimation" = "on";
"editor.fontFamily" = lib.mkDefault "Monospace";
"editor.fontWeight" = 600;
"editor.tabSize" = 2;
"explorer.confirmDragAndDrop" = false;
"explorer.confirmDelete" = false;
"files.autoSave" = "onFocusChange";
"files.trimTrailingWhitespace" = true;
"files.trimFinalNewlines" = true;
"security.workspace.trust.enabled" = false;
"telemetry.telemetryLevel" = "off";
"terminal.external.osxExec" = "Alacritty.app";
"terminal.integrated.cursorBlinking" = true;
"update.mode" = "none";
"window.menuBarVisibility" = "toggle";
"workbench.colorTheme" = "Tokyo Night";
# Extensions
### Nix IDE
"nix.enableLanguageServer" = true;
"nix.serverPath" = "${pkgs.nil}/bin/nil";
### GitLens
"gitlens.telemetry.enabled" = false;
};
extensions = with pkgs.vscode-extensions; [
### LSP
jnoortheen.nix-ide
#ms-python.python
rust-lang.rust-analyzer
tamasfe.even-better-toml
#bungcip.better-toml
### QoL
eamodio.gitlens
esbenp.prettier-vscode
ritwickdey.liveserver
vscodevim.vim
### Themes
enkia.tokyo-night
#catppuccin.catppuccin-vsc-icons
#catppuccin.catppuccin-vsc
];
};
}

Some files were not shown because too many files have changed in this diff Show more