diff options
| author | vin <vin@vineetk.net> | 2025-04-30 03:15:40 -0400 |
|---|---|---|
| committer | vin <vin@vineetk.net> | 2025-04-30 03:15:40 -0400 |
| commit | 1b560003e6cbf7e106a5b73006f21e3df855b108 (patch) | |
| tree | 3d2221c4ee879166f8a5999357e72d60b5169cce /home.nix | |
| parent | 79ba4ed9471e56536edf78b7030b1d06bc9bd8b3 (diff) | |
demiurge, hastur: remove alacritty, i3, picom
Diffstat (limited to 'home.nix')
| -rw-r--r-- | home.nix | 264 |
1 files changed, 0 insertions, 264 deletions
| @@ -286,63 +286,6 @@ in { | |||
| 286 | 286 | ||
| 287 | aerc.enable = true; | 287 | aerc.enable = true; |
| 288 | 288 | ||
| 289 | alacritty = { | ||
| 290 | enable = true; | ||
| 291 | |||
| 292 | settings = { | ||
| 293 | general.live_config_reload = true; | ||
| 294 | |||
| 295 | window = { | ||
| 296 | dimensions = { | ||
| 297 | columns = 80; | ||
| 298 | lines = 24; | ||
| 299 | }; | ||
| 300 | |||
| 301 | decorations = "None"; | ||
| 302 | |||
| 303 | padding = { | ||
| 304 | x = 10; | ||
| 305 | y = 10; | ||
| 306 | }; | ||
| 307 | }; | ||
| 308 | |||
| 309 | font.size = 14; | ||
| 310 | |||
| 311 | selection.save_to_clipboard = true; | ||
| 312 | |||
| 313 | hints.enabled = [ | ||
| 314 | { | ||
| 315 | binding = { | ||
| 316 | key = "U"; | ||
| 317 | mods = "Control|Shift"; | ||
| 318 | }; | ||
| 319 | |||
| 320 | command.program = "qutebrowser"; | ||
| 321 | hyperlinks = true; | ||
| 322 | post_processing = true; | ||
| 323 | regex = "(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001F\u007F-\u009F<>\"\\\\s{-}\\\\^⟨⟩`]+"; | ||
| 324 | } | ||
| 325 | ]; | ||
| 326 | |||
| 327 | cursor = { | ||
| 328 | style.shape = "Block"; | ||
| 329 | thickness = 0.1; | ||
| 330 | }; | ||
| 331 | |||
| 332 | colors = { | ||
| 333 | primary = colors.current.primary; | ||
| 334 | |||
| 335 | cursor = { | ||
| 336 | text = colors.current.primary.background; | ||
| 337 | cursor = colors.current.primary.foreground; | ||
| 338 | }; | ||
| 339 | |||
| 340 | normal = colors.current.normal; | ||
| 341 | bright = colors.current.bright; | ||
| 342 | }; | ||
| 343 | }; | ||
| 344 | }; | ||
| 345 | |||
| 346 | foot = { | 289 | foot = { |
| 347 | enable = true; | 290 | enable = true; |
| 348 | 291 | ||
| @@ -646,46 +589,6 @@ set-option -sa terminal-features ',*:RGB' | |||
| 646 | # unison | 589 | # unison |
| 647 | # vdirsyncer | 590 | # vdirsyncer |
| 648 | 591 | ||
| 649 | picom = { | ||
| 650 | enable = true; | ||
| 651 | backend = "egl"; | ||
| 652 | vSync = true; | ||
| 653 | |||
| 654 | opacityRules = [ | ||
| 655 | "85:class_g = 'Alacritty'" | ||
| 656 | "85:class_g = 'foot'" | ||
| 657 | "85:class_g = 'footclient'" | ||
| 658 | "85:class_g = 'i3bar'" | ||
| 659 | "85:class_g = 'vesktop'" | ||
| 660 | "85:class_g = 'Emacs'" | ||
| 661 | "85:class_g = 'qutebrowser'" | ||
| 662 | ]; | ||
| 663 | |||
| 664 | settings = { | ||
| 665 | blur = { | ||
| 666 | method = "dual_kawase"; | ||
| 667 | size = 3; | ||
| 668 | deviation = false; | ||
| 669 | strength = 5; | ||
| 670 | kern = "3x3box"; | ||
| 671 | |||
| 672 | background-exclude = [ | ||
| 673 | "window_type = 'dock'" | ||
| 674 | "window_type = 'desktop'" | ||
| 675 | "_GTK_FRAME_EXTENTS@:c" | ||
| 676 | ]; | ||
| 677 | }; | ||
| 678 | |||
| 679 | corner-radius = 10; | ||
| 680 | rounded-corners-exclude = [ | ||
| 681 | "window_type = 'dock'" | ||
| 682 | "window_type = 'desktop'" | ||
| 683 | ]; | ||
| 684 | }; | ||
| 685 | |||
| 686 | shadow = true; | ||
| 687 | }; | ||
| 688 | |||
| 689 | poweralertd.enable = true; | 592 | poweralertd.enable = true; |
| 690 | 593 | ||
| 691 | redshift = { | 594 | redshift = { |
| @@ -997,173 +900,6 @@ interceptor.register(int_fn) | |||
| 997 | }; | 900 | }; |
| 998 | }; | 901 | }; |
| 999 | 902 | ||
| 1000 | xsession = { | ||
| 1001 | enable = false; | ||
| 1002 | windowManager.i3 = { | ||
| 1003 | enable = true; | ||
| 1004 | config = { | ||
| 1005 | bars = [ { | ||
| 1006 | colors = { | ||
| 1007 | # background = colors.current.primary.background; | ||
| 1008 | background = "#000000"; | ||
| 1009 | statusline = colors.current.primary.foreground; | ||
| 1010 | focusedWorkspace = { | ||
| 1011 | background = colors.current.normal.black; | ||
| 1012 | border = colors.current.normal.black; | ||
| 1013 | text = colors.current.normal.green; | ||
| 1014 | }; | ||
| 1015 | activeWorkspace = { | ||
| 1016 | background = colors.current.normal.black; | ||
| 1017 | border = colors.current.normal.black; | ||
| 1018 | text = colors.current.primary.foreground; | ||
| 1019 | }; | ||
| 1020 | inactiveWorkspace = { | ||
| 1021 | background = colors.current.primary.background; | ||
| 1022 | border = colors.current.primary.background; | ||
| 1023 | text = colors.current.normal.white; | ||
| 1024 | }; | ||
| 1025 | }; | ||
| 1026 | command = "${pkgs.i3}/bin/i3bar"; | ||
| 1027 | position = "top"; | ||
| 1028 | statusCommand = "while date +'%Y-%m-%d %X'; do sleep 1; done"; | ||
| 1029 | } ]; | ||
| 1030 | |||
| 1031 | colors = { | ||
| 1032 | focused = { | ||
| 1033 | background = colors.current.primary.background; | ||
| 1034 | border = colors.current.primary.background; | ||
| 1035 | childBorder = colors.current.primary.background; | ||
| 1036 | indicator = colors.current.normal.black; | ||
| 1037 | text = colors.current.normal.green; | ||
| 1038 | }; | ||
| 1039 | focusedInactive = { | ||
| 1040 | background = colors.current.primary.background; | ||
| 1041 | border = colors.current.primary.background; | ||
| 1042 | childBorder = colors.current.primary.background; | ||
| 1043 | indicator = colors.current.normal.black; | ||
| 1044 | text = colors.current.primary.foreground; | ||
| 1045 | }; | ||
| 1046 | unfocused = { | ||
| 1047 | background = colors.current.normal.black; | ||
| 1048 | border = colors.current.normal.black; | ||
| 1049 | childBorder = colors.current.normal.black; | ||
| 1050 | indicator = colors.current.primary.background; | ||
| 1051 | text = colors.current.normal.white; | ||
| 1052 | }; | ||
| 1053 | }; | ||
| 1054 | |||
| 1055 | fonts = { | ||
| 1056 | names = [ "monospace" ]; | ||
| 1057 | size = 11.0; | ||
| 1058 | }; | ||
| 1059 | |||
| 1060 | gaps = { | ||
| 1061 | inner = 15; | ||
| 1062 | smartGaps = true; | ||
| 1063 | }; | ||
| 1064 | |||
| 1065 | keybindings = | ||
| 1066 | let | ||
| 1067 | left = "n"; | ||
| 1068 | down = "e"; | ||
| 1069 | up = "o"; | ||
| 1070 | right = "i"; | ||
| 1071 | modifier = config.xsession.windowManager.i3.config.modifier; | ||
| 1072 | menu = config.xsession.windowManager.i3.config.menu; | ||
| 1073 | terminal = config.xsession.windowManager.i3.config.terminal; | ||
| 1074 | warpmouse = "exec eval $(xdotool getwindowfocus getwindowgeometry --shell) && xdotool mousemove --window $(xdotool getwindowfocus) $((WIDTH/2)) $((HEIGHT/2))"; | ||
| 1075 | in lib.mkOptionDefault { | ||
| 1076 | "${modifier}+Return" = "exec ${terminal}"; | ||
| 1077 | "${modifier}+p" = "exec ${menu}"; | ||
| 1078 | "${modifier}+b" = "exec bm t"; | ||
| 1079 | "${modifier}+Shift+b" = "exec kasimenu"; | ||
| 1080 | "${modifier}+u" = "exec kasimenu user"; | ||
| 1081 | "${modifier}+Shift+u" = "exec kasimenu email"; | ||
| 1082 | "${modifier}+Shift+t" = "exec kasimenu_totp"; | ||
| 1083 | |||
| 1084 | "${modifier}+Shift+q" = "kill"; | ||
| 1085 | "${modifier}+Shift+c" = "reload"; | ||
| 1086 | "Mod1+Mod4+Ctrl+Shift+e" = "exit"; | ||
| 1087 | |||
| 1088 | "${modifier}+${left}" = "focus left; ${warpmouse}"; | ||
| 1089 | "${modifier}+${down}" = "focus down; ${warpmouse}"; | ||
| 1090 | "${modifier}+${up}" = "focus up; ${warpmouse}"; | ||
| 1091 | "${modifier}+${right}" = "focus right; ${warpmouse}"; | ||
| 1092 | "${modifier}+Shift+${left}" = "move left"; | ||
| 1093 | "${modifier}+Shift+${down}" = "move down"; | ||
| 1094 | "${modifier}+Shift+${up}" = "move up"; | ||
| 1095 | "${modifier}+Shift+${right}" = "move right"; | ||
| 1096 | |||
| 1097 | # TODO do this programatically | ||
| 1098 | "${modifier}+1" = "workspace number 1"; | ||
| 1099 | "${modifier}+2" = "workspace number 2"; | ||
| 1100 | "${modifier}+3" = "workspace number 3"; | ||
| 1101 | "${modifier}+4" = "workspace number 4"; | ||
| 1102 | "${modifier}+5" = "workspace number 5"; | ||
| 1103 | "${modifier}+6" = "workspace number 6"; | ||
| 1104 | "${modifier}+7" = "workspace number 7"; | ||
| 1105 | "${modifier}+8" = "workspace number 8"; | ||
| 1106 | "${modifier}+9" = "workspace number 9"; | ||
| 1107 | "${modifier}+0" = "workspace number 10"; | ||
| 1108 | "${modifier}+Shift+1" = "move container to workspace number 1"; | ||
| 1109 | "${modifier}+Shift+2" = "move container to workspace number 2"; | ||
| 1110 | "${modifier}+Shift+3" = "move container to workspace number 3"; | ||
| 1111 | "${modifier}+Shift+4" = "move container to workspace number 4"; | ||
| 1112 | "${modifier}+Shift+5" = "move container to workspace number 5"; | ||
| 1113 | "${modifier}+Shift+6" = "move container to workspace number 6"; | ||
| 1114 | "${modifier}+Shift+7" = "move container to workspace number 7"; | ||
| 1115 | "${modifier}+Shift+8" = "move container to workspace number 8"; | ||
| 1116 | "${modifier}+Shift+9" = "move container to workspace number 9"; | ||
| 1117 | "${modifier}+Shift+0" = "move container to workspace number 10"; | ||
| 1118 | |||
| 1119 | "${modifier}+Ctrl+Shift+b" = "splith"; | ||
| 1120 | "${modifier}+Ctrl+Shift+v" = "splitv"; | ||
| 1121 | "${modifier}+s" = "layout stacking"; | ||
| 1122 | "${modifier}+t" = "layout tabbed"; | ||
| 1123 | "${modifier}+Ctrl+Shift+t" = "layout toggle split"; | ||
| 1124 | "${modifier}+Shift+f" = "fullscreen"; | ||
| 1125 | "${modifier}+Shift+space" = "floating toggle"; | ||
| 1126 | "${modifier}+space" = "focus mode_toggle"; | ||
| 1127 | "${modifier}+a" = "focus parent"; | ||
| 1128 | |||
| 1129 | "${modifier}+r" = "mode resize"; | ||
| 1130 | }; | ||
| 1131 | |||
| 1132 | menu = "${pkgs.wmenu}/bin/wmenu"; | ||
| 1133 | |||
| 1134 | modes.resize = | ||
| 1135 | let | ||
| 1136 | left = "n"; | ||
| 1137 | down = "e"; | ||
| 1138 | up = "o"; | ||
| 1139 | right = "i"; | ||
| 1140 | in lib.mkOptionDefault { | ||
| 1141 | ${left} = "resize shrink width 10px"; | ||
| 1142 | ${down} = "resize grow height 10px"; | ||
| 1143 | ${up} = "resize shrink width 10px"; | ||
| 1144 | ${right} = "resize grow width 10px"; | ||
| 1145 | Escape = "mode default"; | ||
| 1146 | }; | ||
| 1147 | |||
| 1148 | modifier = "Mod4"; | ||
| 1149 | |||
| 1150 | startup = [ | ||
| 1151 | { command = "picom"; always = true; notification = false; } | ||
| 1152 | { command = "xwallpaper --center pics/wp/elite_milky_way_below.png"; notification = false; } | ||
| 1153 | ]; | ||
| 1154 | |||
| 1155 | terminal = "footclient"; | ||
| 1156 | |||
| 1157 | window = { | ||
| 1158 | border = 0; | ||
| 1159 | titlebar = false; | ||
| 1160 | }; | ||
| 1161 | |||
| 1162 | workspaceAutoBackAndForth = true; | ||
| 1163 | }; | ||
| 1164 | }; | ||
| 1165 | }; | ||
| 1166 | |||
| 1167 | wayland.windowManager.sway = { | 903 | wayland.windowManager.sway = { |
| 1168 | enable = true; | 904 | enable = true; |
| 1169 | package = pkgs.swayfx; | 905 | package = pkgs.swayfx; |
