-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
931 lines (853 loc) · 21.5 KB
/
home.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
{ config, lib, pkgs, pkgs-unstable, st-pkgs, ... }:
{
home.username = "bryant";
home.homeDirectory = "/home/bryant";
home.keyboard = null; # keyboard is managed in system confi
home.stateVersion = "24.05"; # Please check release packages before change
nixpkgs.config.allowUnfree = true; # For obsidian
home = {
packages = lib.concatLists [
(with pkgs;
[
# general
firefox
brave
git
alacritty
tree
fastfetch
xclip
syncthing
zsh
# theme & fonts
capitaine-cursors
colloid-gtk-theme
colloid-icon-theme
# development
piper
bottom
less
vscode
gopass
unrar
unzip
go
fnm
rustup
docker
docker-compose
docker-buildx
fzf
jq
lazygit
lazydocker
postgresql
tealdeer
terraform
jetbrains.datagrip
jetbrains.datagrip
postman
starship
zoxide
atuin
dust
fd
ripgrep
tmux
yazi
ueberzugpp # image viewer
ffmpegthumbnailer # video thumbnails
poppler # pdf reder library
# window manager
zathura
rsync
mpd
ncmpcpp
mpv
bspwm
sxhkd
unclutter
dunst
bandwhich
spotdl
ffmpeg
picom
# libnotify
pcmanfm
pavucontrol # need to be pipewire service to be activated
maim
rofi
polybar
feh
udiskie # need udev2 service to be activated
translate-shell
rclone
# extra
obsidian
qbittorrent
discord
])
(with pkgs-unstable;[
neovim-unwrapped
])
(with st-pkgs;[
st-snazzy
])
];
file = {};
sessionPath = [];
sessionVariables = {
PATH = "/home/bryant/.dotfiles/bin/home-manager:$PATH";
};
};
services = {
picom = {
enable = true;
};
udiskie = {
enable = true;
};
unclutter = {
enable = true;
};
polybar = {
enable = true;
config = /home/bryant/.dotfiles/polybar.ini;
script = "start-polybar.sh";
};
dunst = {
enable = true;
settings = {
global = {
font = "Maple Mono NF 9";
separator_height = "15";
frame_width = "1";
frame_color = "#21203e";
separator_color = "#00000000";
mouse_left_click = "do_action, close_current";
mouse_right_click = "close_all";
browser = "/home/bryant/.nix-profile/bin/firefox";
};
urgency_low = {
background = "#eff1f5";
foreground = "#4c4f69";
};
urgency_normal = {
background = "#dce0e8";
foreground = "#4c4f69";
};
urgency_critical = {
background = "#d20f39";
foreground = "#ffffff";
};
};
};
sxhkd = {
enable = true;
keybindings = {
# main bspwm key binds and sxhkd
"super + q" = "bspc node -c";
"super + alt + {q,r}" = "bspc {quit,wm -r}";
"super + shift + Escape" = "pkill -USR1 -x sxhkd && dunstify 'sxhkd' 'Reloaded successfully'";
"super + f" = "bspc node -t '~fullscreen'";
"super + {_,shift + }{h,j,k,l}" = "bspc node -{f,s} {west,south,north,east}";
"super + {n,p}" = "bspc node -f {next,prev}.local.!hidden.window";
"super + shift + {p,n}" = "bspc desktop -f {prev,next}.local";
"super + Tab" = "bspc desktop -f last";
"super + {bracketleft,braceleft,parenleft,percent,equal,ampersand,parenright}" = "bspc desktop -f '^{1-7}'";
"super + shift {1-7}" = "bspc node -d '^{1-7}'";
"super + w" = "bspc desktop -l next";
"super + shift + w" = "bspc node -t \\~floating";
# main personal key bindings
"super + a" = "pavucontrol";
"super + e" = "pcmanfm";
"super + t" = "st";
"super + Return" = "firefox -P Personal";
"super + shift + Return" = "firefox -P Work";
"super + d" = "rofi -show drun -show-icons";
"super + shift + d" = "rofi -show window -show-icons";
"super + m" = "bspc rule -a St -o state=floating follow=on center=true rectangle=700x400+0+0 && st -e zsh -c 'ncmpcpp'";
# scripts
"super + x" = "/home/bryant/.dotfiles/bin/select_and_execute.sh";
"super + alt + w" = "/home/bryant/.dotfiles/bin/sh/set-wallpaper.sh";
"super + b" = "/home/bryant/.dotfiles/bin/sh/set-brightness.sh";
"super + space" = "/home/bryant/.dotfiles/bin/sh/select-keyboard.sh";
# print
"Print" = "maim --select | xclip -selection clipboard -t image/png && dunstify 'Save' 'Clipboard'";
"super + Print" = "maim | xclip -selection clipboard -t image/png && dunstify 'Save' 'Clipboard'";
"alt + Print" = "./bin/sh/take-streenshots.sh cropped";
"shift + Print" = "./bin/sh/take-streenshots.sh full";
# volume
# resize windows
"super + alt + l" = "bspc node -z right 20 0 || bspc node -z left 20 0";
"super + alt + h" = "bspc node -z right -20 0 || bspc node -z left -20 0";
"super + alt + j" = "bspc node -z bottom 0 20 || bspc node -z top 0 20";
"super + alt + k" = "bspc node -z bottom 0 -20 || bspc node -z top 0 -20";
# hidden and show
"super + v" = "bspc node -g hidden";
"super + shift + v" = "bspc node {,$(bspc query -N -n .hidden | tail -n1)} -g hidden=off";
"super + shift + space" = "bspc query -N -n .local.window | xargs -I ID bspc node ID -g hidden";
# move floating window
"super + {Left,Down,Up,Right}" = "bspc node -v {-30 0,0 30,0 -30,30 0}";
};
};
mpd = {
enable = true;
musicDirectory = "~/Music";
network = {
startWhenNeeded = true;
};
extraConfig = ''
audio_output {
type "pipewire"
name "Pipewire Sound Server"
}
'';
};
};
xsession.windowManager.bspwm = {
enable = true;
monitors = {
HDMI-2 = [
"1"
"2"
"3"
"4"
"5"
"6"
"7"
];
};
settings = {
top_padding = "0";
bottom_padding = "11";
window_gap = "10";
split_ratio = "0.50";
gapless_monocle = "true";
borderless_monocle = "true";
focus_follows_pointer = "false";
border_width = "3";
focused_border_color = "#ffaf4d";
normal_border_color = "#c7c7c7";
};
startupPrograms = [
"dunst"
"picom"
"udiskie"
"xset -dpms"
"unclutter -idle 1"
"xsetroot -cursor_name left_ptr"
"pgrep -x sxhkd > /dev/null || sxhkd -m -1"
"pgrep -x mpd >/dev/null || mpd"
"~/.fehbg"
"~/.dotfiles/bin/home-manager/start-polybar.sh"
];
rules = {
"mpv" = {
desktop = "^5";
floating = true;
follow = true;
};
"obsidian" = {
desktop = "^6";
follow = true;
};
"qBittorrent" = {
desktop = "^7";
follow = true;
};
"feh" = {
state = "floating";
center = true;
};
"pavucontrol" = {
state = "floating";
center = true;
};
};
};
qt = {
enable = true;
platformTheme = {
name = "Maple Mono NF";
};
style = {
name = "breeze";
};
};
gtk = {
enable = true;
font = {
name = "Maple Mono NF";
size = 9;
};
theme = {
name = "Colloid-Light";
};
cursorTheme = {
name = "capitaine-cursors-white";
};
iconTheme = {
name = "Colloid-light";
};
};
xdg = {
mime = {
enable = true;
};
userDirs = {
enable = true;
};
};
programs.neovim = {
enable = true;
package = pkgs-unstable.neovim-unwrapped;
extraConfig = ''
set clipboard=unnamedplus
set showmode
set showtabline=0
set noswapfile
set undofile
set nowrap
set expandtab
set cmdheight=0
set shiftwidth=2
set softtabstop=2
set tabstop=2
set nonumber
set hlsearch
set incsearch
set smartcase
set ignorecase
'';
};
programs.lazygit = {
enable = true;
settings = {
os = {
open = "st -e nvim {{filename}}";
editPreset = "nvim";
};
};
};
programs.rofi = {
enable = true;
terminal = "\${pkgs.st}/bin/st";
extraConfig = {
modi = "window";
terminal = "st";
hide-scrollbar = true;
display-run = "";
display-drun = "";
display-window = "";
show-match = true;
};
theme = "/home/bryant/.dotfiles/theme.rasi";
};
programs.fzf = {
enable = true;
enableZshIntegration = true;
defaultCommand = "fd --type f";
defaultOptions = [
"--preview-window noborder"
"--height=50%"
];
colors = {
bg = "#eff1f5";
"bg+" = "#ccd0da";
spinner = "#dc8a78";
hl = "#d20f39";
fg = "#4c4f69";
header = "#d20f39";
info = "#8839ef";
pointer = "#dc8a78";
marker = "#dc8a78";
"fg+" = "#4c4f69";
prompt = "#8839ef";
"hl+" = "#d20f39";
};
};
programs.ncmpcpp = {
enable = true;
mpdMusicDir = "/home/bryant/Music";
settings = {
# general
ncmpcpp_directory = "~/.config/ncmpcpp";
# mpd
mpd_host = "127.0.0.1";
mpd_port = "6600";
# music visualizer
visualizer_data_source = "/tmp/mpd.fifo";
visualizer_output_name = "my_fifo";
visualizer_in_stereo = "yes";
# starting
playlist_display_mode = "columns";
browser_display_mode = "columns";
search_engine_display_mode = "columns";
playlist_editor_display_mode = "columns";
autocenter_mode = "yes";
centered_cursor = "yes";
user_interface = "classic";
follow_now_playing_lyrics = "yes";
lyrics_fetchers = "tekstowo, azlyrics, genius, musixmatch, sing365, metrolyrics, justsomelyrics, jahlyrics, plyrics, zeneszoveg, internet";
external_editor = "nvim";
main_window_color = "default";
# ui
header_visibility = "no";
statusbar_visibility = "yes";
titles_visibility = "yes";
enable_window_title = "yes";
};
bindings = [
{ key = "="; command = "show_clock"; }
{ key = "+"; command = "volume_up"; }
{ key = "-"; command = "volume_down"; }
{ key = "j"; command = "scroll_down"; }
{ key = "k"; command = "scroll_up"; }
{ key = "ctrl-u"; command = "page_up"; }
{ key = "ctrl-d"; command = "page_down"; }
{ key = "h"; command = "previous_column"; }
{ key = "l"; command = "next_column"; }
{ key = "."; command = "show_lyrics"; }
{ key = "n"; command = "next_found_item"; }
{ key = "N"; command = "previous_found_item"; }
{ key = "g"; command = "move_home"; }
{ key = "G"; command = "move_end"; }
{ key = "0"; command = "replay_song"; }
{ key = "ctrl-f"; command = "page_down"; }
{ key = "ctrl-b"; command = "page_up"; }
{ key = "D"; command = [ "delete_playlist_items" "delete_browser_items" "delete_stored_playlist" ]; }
];
};
programs.zathura = {
enable = true;
options = {
"collection-clipboard" = "clipboard";
"incremental-search" = "true";
"seach-hadjust" = "true";
"adjust-open" = "width";
"font" = "Maple Mono NF Bold 9";
};
mappings = {
"[normal] f" = "toggle_fullscreen";
"[fullscreen] f" = "toggle_fullscreen";
};
};
programs.git = {
enable = true;
userName = "Bryant Santiago";
userEmail = "pazbryant@proton.me";
extraConfig = {
init = {
defaultBranch = "main";
};
core = {
editor = "nvim";
};
};
};
programs.mpv = {
enable = true;
config = {
sub-auto="fuzzy";
sub-font="Maple Mono NF";
sub-font-size=32;
sub-ass-override="force";
};
};
programs.zoxide = {
enable = true;
enableZshIntegration = true;
options = [ "--cmd cd" ];
};
programs.bottom = {
enable = true;
settings = {
colors = {
table_header_color = "#dc8a78";
all_cpu_color = "#dc8a78";
avg_cpu_color = "#e64553";
cpu_core_colors = [
"#d20f39"
"#fe640b"
"#df8e1d"
"#40a02b"
"#209fb5"
"#8839ef"
];
ram_color = "#40a02b";
swap_color = "#fe640b";
rx_color = "#40a02b";
tx_color = "#d20f39";
widget_title_color = "#dd7878";
border_color = "#acb0be";
highlighted_border_color = "#ea76cb";
text_color = "#4c4f69";
graph_color = "#6c6f85";
cursor_color = "#ea76cb";
selected_text_color = "#dce0e8";
selected_bg_color = "#8839ef";
high_battery_color = "#40a02b";
medium_battery_color = "#df8e1d";
low_battery_color = "#d20f39";
gpu_core_colors = [
"#209fb5"
"#8839ef"
"#d20f39"
"#fe640b"
"#df8e1d"
"#40a02b"
];
arc_color = "#04a5e5";
};
};
};
programs.firefox = {
enable = true;
profiles = {
Personal = {
id = 0;
};
Work = {
id = 1;
};
};
};
programs.zsh = {
enable = true;
defaultKeymap = "emacs";
sessionVariables = {
EDITOR="nvim";
VISUAL="nvim";
TERMINAL="st";
SUDO_EDITOR="nvim";
BROWSER="firefox";
GTK_THEME="Colloid-Light";
VIDEO="mpv";
COLORTERM="truecolor";
OPENER="xdg-open";
PAGER="less";
BAT_PAGER="less";
WM="bspwm";
MANPAGER="nvim +Man";
SXHKD_SHELL="zsh";
MPD_HOST="/run/user/1000/mpd/socket";
};
shellAliases = {
sp = "systemctl suspend";
vi = "NVIM_APP_NAME='minimal' nvim";
transes = "trans en:es";
sudo = "sudo ";
rel = "xrdb merge ~/.Xresources && kill -USR1 $(pidof st)";
cristiano = "mpv ~/Videos/cr7/dios.mp4";
sht = "shutdown now";
ff = "fastfetch";
lzg = "lazygit";
lzd = "lazydocker";
dh = "rm ~/.history.db ~/.zsh_history";
glg = "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --all";
ggpush = "git push origin $(git rev-parse --abbrev-ref HEAD)";
ggpull = "git pull origin $(git rev-parse --abbrev-ref HEAD)";
};
profileExtra = ''
[[ -z $DISPLAY && $(tty) = /dev/tty1 ]] && startx
'';
initExtra = ''
yy() {
tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
yazi "$@" --cwd-file="$tmp"
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
cd -- "$cwd" || return
fi
rm -f -- "$tmp"
}
# Function to reload the Zsh configuration
reload() {
source /home/bryant/.zshrc
}
arch() {
architecture=""
case $(uname -m) in
i386) architecture="386" ;;
i686) architecture="386" ;;
x86_64) architecture="amd64" ;;
arm) dpkg --print-architecture | grep -q "arm64" && architecture="arm64" || architecture="arm" ;;
esac
echo "$architecture"
}
'';
};
programs.atuin = {
enable = true;
enableZshIntegration = true;
settings = {
db_path = "~/.history.db";
filter_mode = "host"; # session/global/directory
key_path = "~/.key";
session_path = "~/.session";
dialect = "us";
style = "compact";
inline_height = 10;
auto_sync = false;
history_filter = [ "^clear" "^cd" ];
cwd_filter = [ "^/very/secret/area" ];
max_preview_height = 4;
show_help = true;
secrets_filter = true;
enter_accept = true;
common_subcommands = [
"cargo"
"go"
"git"
"npm"
"yarn"
"pnpm"
"kubectl"
];
common_prefix = ["sudo"];
keymap_mode = "vim-insert";
keymap_cursor = {
emacs = "steady-underline";
vim_insert = "steady-underline";
vim_normal = "steady-underline";
};
};
};
programs.starship = {
enable = true;
enableZshIntegration = true;
settings = {
add_newline = false;
line_break = {
disabled = true;
};
directory = {
truncation_length = 2;
};
character = {
success_symbol = "[](bold)";
error_symbol = "[!](bold)";
vimcmd_symbol = "[](bold)";
};
git_branch = {
format = "[$branch]($style) ";
};
git_status = {
disabled = true;
};
};
};
programs.tmux = {
enable = true;
sensibleOnTop = false;
secureSocket = false;
extraConfig = ''
set -g default-shell "\${pkgs.zsh}/bin/zsh"
# set mouse mode on
set -g mouse on
# set focus event (nvim)
set-option -g focus-events on
# set vim key binds
set -g mode-keys vi
set -s set-clipboard on
set-option -s set-clipboard on
# disable status bar at start
set -g status off
bind-key b set-option status
# delay after prefix
set -sg escape-time 0
# set true colors compatibility
set -g default-terminal "tmux-256color"
set -sa terminal-overrides ',*:RGB'
# enter copy mode with "v"
bind 'v' copy-mode
bind-key -T copy-mode-vi v send-keys -X begin-selection
# create new window current path
bind-key c new-window -c "#{pane_current_path}"
# split vertical panel in current path
bind-key % split-window -h -c "#{pane_current_path}"
bind-key '"' split-window -c "#{pane_current_path}"
# display panel numbers time
set -g display-panes-time 10000
# remove kill panel confirmation
unbind-key x
bind-key x kill-pane
# remove kill session confirmation
bind-key X kill-session
# set full screen
unbind-key z
bind-key f resize-pane -Z
# panel border type
set -g pane-border-lines simple
# terminal history limit
set-option -g history-limit 5000
# vim-like pane switching
bind ^ last-window
bind k select-pane -U
bind j select-pane -D
bind h select-pane -L
bind l select-pane -R
# bspwm layout switching
bind-key 1 select-layout even-horizontal
bind-key 2 select-layout even-vertical
bind-key 3 select-layout main-horizontal
bind-key 4 select-layout main-vertical
bind-key 5 select-layout tiled
# vim panel resizing
bind-key -r C-j resize-pane -D
bind-key -r C-k resize-pane -U
bind-key -r C-h resize-pane -L
bind-key -r C-l resize-pane -R
# kill other sessions
bind-key K run-shell /home/bryant/.dotfiles/bin/sh/tmux/tmux-kill-other-sessions.sh
bind-key k run-shell /home/bryant/.dotfiles/bin/sh/tmux/tmux-kill-other-windows.sh
bind-key D run-shell "\
/home/bryant/.dotfiles/bin/sh/tmux-new-session.sh /home/bryant/Documents/github/dotfiles/"
bind-key H run-shell "/home/bryant/.dotfiles/bin/sh/tmux/tmux-new-session.sh /home/bryant/"
bind-key T run-shell "/home/bryant/.dotfiles/bin/sh/tmux/tmux-new-session.sh \
/home/bryant/Documents/github/notes/"
bind-key N run-shell "/home/bryant/.dotfiles/bin/sh/tmux/tmux-new-session.sh \
/home/bryant/Documents/github/codeeditors/nvim/"
bind-key P run-shell "/home/bryant/.dotfiles/bin/sh/tmux/tmux-new-session.sh \
/home/bryant/.password-store/"
bind-key F run-shell "tmux neww /home/bryant/.dotfiles/bin/sh/tmux/tmux-new-session.sh"
bind-key G run-shell "/home/bryant/.dotfiles/bin/sh/tmux/tmux-new-session.sh \
/home/bryant/.password-store/"
bind-key S run-shell "tmux neww /home/bryant/.dotfiles/bin/sh/tmux/tmux-session-selector.sh"
# reload tmux configuration
bind r source-file /home/bryant/.config/tmux/tmux.conf \; display-message "tmux reloaded."
'';
};
programs.alacritty = {
enable = true;
settings = {
colors = {
primary = {
background = "#eff1f5";
foreground = "#4c4f69";
dim_foreground = "#8c8fa1";
bright_foreground = "#4c4f69";
};
cursor = {
text = "#eff1f5";
cursor = "#dc8a78";
};
vi_mode_cursor = {
text = "#eff1f5";
cursor = "#7287fd";
};
search = {
matches = {
foreground = "#eff1f5";
background = "#6c6f85";
};
focused_match = {
foreground = "#eff1f5";
background = "#40a02b";
};
};
footer_bar = {
foreground = "#eff1f5";
background = "#6c6f85";
};
hints = {
start = {
foreground = "#eff1f5";
background = "#df8e1d";
};
end = {
foreground = "#eff1f5";
background = "#6c6f85";
};
};
selection = {
text = "#eff1f5";
background = "#dc8a78";
};
normal = {
black = "#bcc0cc";
red = "#d20f39";
green = "#40a02b";
yellow = "#df8e1d";
blue = "#1e66f5";
magenta = "#ea76cb";
cyan = "#179299";
white = "#5c5f77";
};
bright = {
black = "#acb0be";
red = "#d20f39";
green = "#40a02b";
yellow = "#df8e1d";
blue = "#1e66f5";
magenta = "#ea76cb";
cyan = "#179299";
white = "#6c6f85";
};
dim = {
black = "#bcc0cc";
red = "#d20f39";
green = "#40a02b";
yellow = "#df8e1d";
blue = "#1e66f5";
magenta = "#ea76cb";
cyan = "#179299";
white = "#5c5f77";
};
indexed_colors = [
{ index = 16; color = "#fe640b"; }
{ index = 17; color = "#dc8a78"; }
];
};
cursor = {
style = {
shape = "Underline";
};
};
env = {
TERM = "xterm-256color";
};
font = {
size = 9;
offset = {
x = 0;
y = 0;
};
normal = {
family = "Maple Mono NF";
style = "Regular";
};
bold = {
family = "Maple Mono NF";
style = "Bold";
};
italic = {
family = "Maple Mono NF";
style = "Italic";
};
};
mouse = {
hide_when_typing = true;
};
window = {
decorations = "full";
dynamic_padding = true;
opacity = 1;
startup_mode = "Windowed";
padding = {
x = 10;
y = 10;
};
};
keyboard = {
bindings = [
{ key = "Tab"; mods = "Control" ; chars = "\u001B[27;5;9~"; }
{ key = "Return"; mods = "Control" ; chars = "\u001B[13;5u"; }
{ key = "Return"; mods = "Shift" ; chars = "\u001B[13;2u"; }
{ action = "IncreaseFontSize"; key = "Plus" ; mods = "Control|Shift"; }
];
};
};
};
programs.home-manager.enable = true;
}