diff options
author | Akshay <[email protected]> | 2025-01-14 17:46:42 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2025-01-14 17:46:42 +0000 |
commit | f2815e157fcdec51d59b791cb3f7d931014235ea (patch) | |
tree | b06c85de4c6bfd490dae7e6dce81b13023efd21d | |
parent | 5514b8f6849c904146d5f4c2fcfff0105f8177e1 (diff) |
mantis: .
-rw-r--r-- | flake.nix | 12 | ||||
-rw-r--r-- | font.nix | 2 | ||||
-rw-r--r-- | hosts/mantis/configuration.nix | 4 | ||||
-rw-r--r-- | hosts/mantis/home.nix | 9 | ||||
-rw-r--r-- | patches/2bwm/nerd-patch.diff | 2 | ||||
-rw-r--r-- | programs/init.vim | 29 | ||||
-rw-r--r-- | programs/neovim.nix | 2 | ||||
-rw-r--r-- | programs/st/config.h | 2 | ||||
-rw-r--r-- | programs/tmux.nix | 1 | ||||
-rw-r--r-- | services/sxhkd.nix | 4 | ||||
-rw-r--r-- | theme/default.nix | 4 | ||||
-rw-r--r-- | theme/material-darker.nix | 18 | ||||
-rw-r--r-- | theme/tomorrow-night.nix | 18 | ||||
-rw-r--r-- | x/xft.nix | 2 |
14 files changed, 71 insertions, 38 deletions
@@ -114,12 +114,12 @@ | |||
114 | }; | 114 | }; |
115 | } | 115 | } |
116 | 116 | ||
117 | { | 117 | # { |
118 | imports = [niri.nixosModules.niri]; | 118 | # imports = [niri.nixosModules.niri]; |
119 | nixpkgs.overlays = [niri.overlays.niri]; | 119 | # nixpkgs.overlays = [niri.overlays.niri]; |
120 | programs.niri.enable = true; | 120 | # programs.niri.enable = true; |
121 | programs.niri.config = builtins.readFile ./hosts/mantis/niri-config.kdl; | 121 | # programs.niri.config = builtins.readFile ./hosts/mantis/niri-config.kdl; |
122 | } | 122 | # } |
123 | 123 | ||
124 | ]; | 124 | ]; |
125 | }; | 125 | }; |
@@ -1,3 +1,3 @@ | |||
1 | { | 1 | { |
2 | name = "Nerd Input"; | 2 | name = "InputMono"; |
3 | } | 3 | } |
diff --git a/hosts/mantis/configuration.nix b/hosts/mantis/configuration.nix index 76bf237..d96f321 100644 --- a/hosts/mantis/configuration.nix +++ b/hosts/mantis/configuration.nix | |||
@@ -55,7 +55,7 @@ | |||
55 | systemPackages = with pkgs; [ | 55 | systemPackages = with pkgs; [ |
56 | man-pages | 56 | man-pages |
57 | man-pages-posix | 57 | man-pages-posix |
58 | (lib.hiPrio pkgs.bashInteractive_5) | 58 | (lib.hiPrio pkgs.bashInteractive) |
59 | _2bwm | 59 | _2bwm |
60 | ]; | 60 | ]; |
61 | variables = { | 61 | variables = { |
@@ -80,7 +80,7 @@ | |||
80 | }; | 80 | }; |
81 | }; | 81 | }; |
82 | 82 | ||
83 | hardware.opengl.extraPackages = [ | 83 | hardware.graphics.extraPackages = [ |
84 | pkgs.vpl-gpu-rt | 84 | pkgs.vpl-gpu-rt |
85 | ]; | 85 | ]; |
86 | 86 | ||
diff --git a/hosts/mantis/home.nix b/hosts/mantis/home.nix index e196052..dfabeed 100644 --- a/hosts/mantis/home.nix +++ b/hosts/mantis/home.nix | |||
@@ -14,8 +14,8 @@ | |||
14 | # ./mail.nix | 14 | # ./mail.nix |
15 | ]; | 15 | ]; |
16 | 16 | ||
17 | programs.niri.enable = true; | 17 | # programs.niri.enable = false; |
18 | programs.niri.config = builtins.readFile ./niri-config.kdl; | 18 | # programs.niri.config = builtins.readFile ./niri-config.kdl; |
19 | 19 | ||
20 | home.stateVersion = "22.11"; | 20 | home.stateVersion = "22.11"; |
21 | home.username = "op"; | 21 | home.username = "op"; |
@@ -71,8 +71,9 @@ | |||
71 | libinput | 71 | libinput |
72 | 72 | ||
73 | # wayland stuff | 73 | # wayland stuff |
74 | wl-clipboard-rs | 74 | xclip |
75 | swaybg | 75 | # wl-clipboard-rs |
76 | # swaybg | ||
76 | 77 | ||
77 | nixpkgs-fmt | 78 | nixpkgs-fmt |
78 | 79 | ||
diff --git a/patches/2bwm/nerd-patch.diff b/patches/2bwm/nerd-patch.diff index 9e315be..cdb6a00 100644 --- a/patches/2bwm/nerd-patch.diff +++ b/patches/2bwm/nerd-patch.diff | |||
@@ -8,7 +8,7 @@ index 0985d2e..baa77f8 100644 | |||
8 | ///--Menus and Programs---/// | 8 | ///--Menus and Programs---/// |
9 | -static const char *menucmd[] = { "", NULL }; | 9 | -static const char *menucmd[] = { "", NULL }; |
10 | +// static const char *menucmd[] = { "", NULL }; | 10 | +// static const char *menucmd[] = { "", NULL }; |
11 | +static const char *terminal[] = { "st", NULL }; | 11 | +static const char *terminal[] = { "alacritty", NULL }; |
12 | +static const char *rofi_run[] = { "rofi", "-show", "combi" }; | 12 | +static const char *rofi_run[] = { "rofi", "-show", "combi" }; |
13 | +static const char *rofi_window[] = { "rofi", "-show", "window" }; | 13 | +static const char *rofi_window[] = { "rofi", "-show", "window" }; |
14 | ///--Custom foo---/// | 14 | ///--Custom foo---/// |
diff --git a/programs/init.vim b/programs/init.vim index 3dbd4b5..e7a70c1 100644 --- a/programs/init.vim +++ b/programs/init.vim | |||
@@ -100,7 +100,7 @@ let g:netrw_banner=0 | |||
100 | let g:netrw_browsex_viewer="xdg-open" | 100 | let g:netrw_browsex_viewer="xdg-open" |
101 | let g:netrw_winsize=30 | 101 | let g:netrw_winsize=30 |
102 | 102 | ||
103 | colorscheme plain | 103 | colorscheme agila |
104 | 104 | ||
105 | set shiftwidth=4 " indent = 4 spaces | 105 | set shiftwidth=4 " indent = 4 spaces |
106 | set expandtab | 106 | set expandtab |
@@ -132,34 +132,24 @@ cab bfd bufdo | |||
132 | " man pages | 132 | " man pages |
133 | let g:ft_man_open_mode = 'tab' | 133 | let g:ft_man_open_mode = 'tab' |
134 | 134 | ||
135 | let g:gitgutter_override_sign_column_highlight = 0 | ||
136 | let g:gitgutter_sign_added = '+' | ||
137 | let g:gitgutter_sign_modified = '~' | ||
138 | let g:gitgutter_sign_removed = '-' | ||
139 | let g:gitgutter_sign_removed_first_line = '-' | ||
140 | let g:gitgutter_sign_modified_removed = '~' | ||
141 | |||
142 | let g:fzf_colors = | 135 | let g:fzf_colors = |
143 | \ { 'fg': ['fg', 'Noise'], | 136 | \ { 'fg': ['fg', 'Normal'], |
144 | \ 'bg': ['bg', 'Noise'], | 137 | \ 'bg': ['bg', 'Normal'], |
145 | \ 'hl': ['fg', 'Statement'], | 138 | \ 'hl': ['fg', 'Normal'], |
146 | \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'], | 139 | \ 'fg+': ['fg', 'StatusLine'], |
147 | \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'], | 140 | \ 'bg+': ['bg', 'Normal'], |
148 | \ 'hl+': ['fg', 'Statement'], | 141 | \ 'hl+': ['fg', 'Normal'], |
142 | \ 'gutter': ['bg', 'Normal'], | ||
149 | \ 'info': ['fg', 'PreProc'], | 143 | \ 'info': ['fg', 'PreProc'], |
150 | \ 'border': ['fg', 'Ignore'], | 144 | \ 'border': ['fg', 'Ignore'], |
151 | \ 'prompt': ['fg', 'Conditional'], | 145 | \ 'prompt': ['fg', 'Conditional'], |
152 | \ 'pointer': ['fg', 'Exception'], | 146 | \ 'pointer': ['fg', 'Directory'], |
153 | \ 'marker': ['fg', 'Keyword'], | 147 | \ 'marker': ['fg', 'Keyword'], |
154 | \ 'spinner': ['fg', 'Label'], | 148 | \ 'spinner': ['fg', 'Label'], |
155 | \ 'header': ['fg', 'Comment'] } | 149 | \ 'header': ['fg', 'Comment'] } |
156 | let g:fzf_layout = { 'down': '40%' } | 150 | let g:fzf_layout = { 'down': '40%' } |
157 | let g:fzf_preview_window = [] | 151 | let g:fzf_preview_window = [] |
158 | 152 | ||
159 | highlight GitGutterAdd ctermfg=8 | ||
160 | highlight GitGutterChange ctermfg=8 | ||
161 | highlight GitGutterDelete ctermfg=8 | ||
162 | |||
163 | let g:rustfmt_autosave = 0 | 153 | let g:rustfmt_autosave = 0 |
164 | 154 | ||
165 | let g:latex_view_general_viewer = "zathura" | 155 | let g:latex_view_general_viewer = "zathura" |
@@ -180,4 +170,5 @@ require 'lsp' | |||
180 | require 'treesitter' | 170 | require 'treesitter' |
181 | require 'completions' | 171 | require 'completions' |
182 | require 'leap' | 172 | require 'leap' |
173 | require 'clipboard' | ||
183 | EOF | 174 | EOF |
diff --git a/programs/neovim.nix b/programs/neovim.nix index 08a1ada..6a09ba4 100644 --- a/programs/neovim.nix +++ b/programs/neovim.nix | |||
@@ -42,7 +42,9 @@ | |||
42 | # syntax | 42 | # syntax |
43 | rust-vim | 43 | rust-vim |
44 | haskell-vim | 44 | haskell-vim |
45 | typescript-vim | ||
45 | vim-nix | 46 | vim-nix |
47 | vim-javascript | ||
46 | 48 | ||
47 | # handy | 49 | # handy |
48 | tabular | 50 | tabular |
diff --git a/programs/st/config.h b/programs/st/config.h index e7f79e3..d6402f9 100644 --- a/programs/st/config.h +++ b/programs/st/config.h | |||
@@ -46,7 +46,7 @@ int allowaltscreen = 1; | |||
46 | 46 | ||
47 | /* allow certain non-interactive (insecure) window operations such as: | 47 | /* allow certain non-interactive (insecure) window operations such as: |
48 | setting the clipboard text */ | 48 | setting the clipboard text */ |
49 | int allowwindowops = 0; | 49 | int allowwindowops = 1; |
50 | 50 | ||
51 | /* | 51 | /* |
52 | * draw latency range in ms - from new content/keypress/etc until drawing. | 52 | * draw latency range in ms - from new content/keypress/etc until drawing. |
diff --git a/programs/tmux.nix b/programs/tmux.nix index bfda915..10cbf5f 100644 --- a/programs/tmux.nix +++ b/programs/tmux.nix | |||
@@ -118,6 +118,7 @@ in | |||
118 | bind-key -T copy-mode-vi y send-keys -X copy-pipe "${copy}" | 118 | bind-key -T copy-mode-vi y send-keys -X copy-pipe "${copy}" |
119 | bind-key -T copy-mode-vi r send-keys -X rectangle-toggle | 119 | bind-key -T copy-mode-vi r send-keys -X rectangle-toggle |
120 | bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "${copy}" | 120 | bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "${copy}" |
121 | set -s set-clipboard on | ||
121 | bind P paste-buffer | 122 | bind P paste-buffer |
122 | 123 | ||
123 | set-window-option -g allow-rename off | 124 | set-window-option -g allow-rename off |
diff --git a/services/sxhkd.nix b/services/sxhkd.nix index 58b8340..fab1316 100644 --- a/services/sxhkd.nix +++ b/services/sxhkd.nix | |||
@@ -10,8 +10,8 @@ let | |||
10 | ${pkgs.libnotify}/bin/notify-send ${text} -h int:value:${value} -h string:synchronous:volume -h string:hlcolor:"${theme.base0C}" | 10 | ${pkgs.libnotify}/bin/notify-send ${text} -h int:value:${value} -h string:synchronous:volume -h string:hlcolor:"${theme.base0C}" |
11 | ''; | 11 | ''; |
12 | volume = pkgs.writeScriptBin "volume" '' | 12 | volume = pkgs.writeScriptBin "volume" '' |
13 | ${pkgs.alsaUtils}/bin/amixer $@ | 13 | ${pkgs.alsa-utils}/bin/amixer $@ |
14 | v=$(${pkgs.alsaUtils}/bin/amixer sget Master | ${pkgs.gawk}/bin/awk -F"[][%]" '/Left:/ {print $2}') | 14 | v=$(${pkgs.alsa-utils}/bin/amixer sget Master | ${pkgs.gawk}/bin/awk -F"[][%]" '/Left:/ {print $2}') |
15 | ${progress "volume" "$v"} | 15 | ${progress "volume" "$v"} |
16 | ''; | 16 | ''; |
17 | 17 | ||
diff --git a/theme/default.nix b/theme/default.nix index b3af086..7e1108b 100644 --- a/theme/default.nix +++ b/theme/default.nix | |||
@@ -2,5 +2,7 @@ let | |||
2 | day = import ./day.nix; | 2 | day = import ./day.nix; |
3 | night = import ./night.nix; | 3 | night = import ./night.nix; |
4 | gruvbox = import ./gruvbox.nix; | 4 | gruvbox = import ./gruvbox.nix; |
5 | tomorrow-night = import ./tomorrow-night.nix; | ||
6 | material-darker = import ./material-darker.nix; | ||
5 | in | 7 | in |
6 | night | 8 | material-darker |
diff --git a/theme/material-darker.nix b/theme/material-darker.nix new file mode 100644 index 0000000..ded97fe --- /dev/null +++ b/theme/material-darker.nix | |||
@@ -0,0 +1,18 @@ | |||
1 | { | ||
2 | base00 = "#111111"; | ||
3 | base01 = "#202020"; | ||
4 | base02 = "#242424"; | ||
5 | base03 = "#393939"; | ||
6 | base04 = "#4A4A4A"; | ||
7 | base05 = "#CCCCCC"; | ||
8 | base06 = "#EEFFFF"; | ||
9 | base07 = "#FFFFFF"; | ||
10 | base08 = "#cc6666"; | ||
11 | base09 = "#de935f"; | ||
12 | base0A = "#f0c674"; | ||
13 | base0B = "#b5bd68"; | ||
14 | base0C = "#8abeb7"; | ||
15 | base0D = "#81a2be"; | ||
16 | base0E = "#b294bb"; | ||
17 | base0F = "#a3685a"; | ||
18 | } | ||
diff --git a/theme/tomorrow-night.nix b/theme/tomorrow-night.nix new file mode 100644 index 0000000..93552b3 --- /dev/null +++ b/theme/tomorrow-night.nix | |||
@@ -0,0 +1,18 @@ | |||
1 | { | ||
2 | base00 = "#1d1f21"; | ||
3 | base01 = "#282a2e"; | ||
4 | base02 = "#373b41"; | ||
5 | base03 = "#969896"; | ||
6 | base04 = "#b4b7b4"; | ||
7 | base05 = "#c5c8c6"; | ||
8 | base06 = "#e0e0e0"; | ||
9 | base07 = "#ffffff"; | ||
10 | base08 = "#cc6666"; | ||
11 | base09 = "#de935f"; | ||
12 | base0A = "#f0c674"; | ||
13 | base0B = "#b5bd68"; | ||
14 | base0C = "#8abeb7"; | ||
15 | base0D = "#81a2be"; | ||
16 | base0E = "#b294bb"; | ||
17 | base0F = "#a3685a"; | ||
18 | } | ||
@@ -11,6 +11,6 @@ | |||
11 | "Xft.hintstyle" = "hintslight"; | 11 | "Xft.hintstyle" = "hintslight"; |
12 | "Xft.hinting" = true; | 12 | "Xft.hinting" = true; |
13 | "Xft.rgba" = "rgb"; | 13 | "Xft.rgba" = "rgb"; |
14 | # "Xft.dpi" = 96; | 14 | "Xft.dpi" = 160; |
15 | }; | 15 | }; |
16 | } | 16 | } |