summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvin <vin@vineetk.net>2025-10-04 14:35:36 -0400
committervin <vin@vineetk.net>2025-10-04 14:40:29 -0400
commit3799daa99376ae753bcd41992006b0e234508417 (patch)
tree64eb9fe5ad06227514fef209c00ffbd7ce839402
parentc444b93e34de2679777c52db408d6d2882aa47fd (diff)
start switching to stumpwm for lispiness
-rw-r--r--home.nix79
-rw-r--r--modules/desktop.nix21
2 files changed, 18 insertions, 82 deletions
diff --git a/home.nix b/home.nix
index 401ee8b..476b563 100644
--- a/home.nix
+++ b/home.nix
@@ -309,55 +309,8 @@ in
309 programs = { 309 programs = {
310 home-manager.enable = true; 310 home-manager.enable = true;
311 311
312 aerc.enable = true;
313
314 emacs.enable = true; 312 emacs.enable = true;
315 313
316 foot = {
317 enable = true;
318
319 settings = {
320 main = {
321 # makes it easier when ssh'ing
322 term = "xterm-256color";
323
324 font = "monospace:size=14";
325 dpi-aware = "yes";
326
327 pad = "10x10";
328 };
329
330 colors =
331 let
332 rmhash = s: builtins.substring 1 (-1) s;
333 in
334 {
335 alpha = 0.9;
336
337 background = rmhash colors.current.primary.background;
338 foreground = rmhash colors.current.primary.foreground;
339
340 regular0 = rmhash colors.current.normal.black;
341 regular1 = rmhash colors.current.normal.red;
342 regular2 = rmhash colors.current.normal.green;
343 regular3 = rmhash colors.current.normal.yellow;
344 regular4 = rmhash colors.current.normal.blue;
345 regular5 = rmhash colors.current.normal.magenta;
346 regular6 = rmhash colors.current.normal.cyan;
347 regular7 = rmhash colors.current.normal.white;
348
349 bright0 = rmhash colors.current.bright.black;
350 bright1 = rmhash colors.current.bright.red;
351 bright2 = rmhash colors.current.bright.green;
352 bright3 = rmhash colors.current.bright.yellow;
353 bright4 = rmhash colors.current.bright.blue;
354 bright5 = rmhash colors.current.bright.magenta;
355 bright6 = rmhash colors.current.bright.cyan;
356 bright7 = rmhash colors.current.bright.white;
357 };
358 };
359 };
360
361 git = { 314 git = {
362 enable = true; 315 enable = true;
363 difftastic = { 316 difftastic = {
@@ -558,32 +511,6 @@ in
558 ''; 511 '';
559 }; 512 };
560 513
561 tmux = {
562 enable = true;
563
564 keyMode = "emacs";
565 mouse = false;
566 prefix = "C-s";
567 terminal = "screen-256color";
568
569 extraConfig = ''
570 # status bar
571 set-option -g status-style bg=terminal
572 set-option -g status-style fg=terminal
573
574 set-option -g window-status-format "#[bg=terminal fg=terminal noreverse]#{window_index}:#{window_name}"
575 set-option -g window-status-current-format "#[bg=black fg=terminal]#{window_index}:#{window_name}#{window_flags}"
576
577 set-option -g status-right "%R %b %d %Y"
578
579 # colorscheme stuff
580 set-option -sa terminal-features ',*:RGB'
581
582 # remove annoying escape delay
583 set-option -g escape-time 0
584 '';
585 };
586
587 yt-dlp = { 514 yt-dlp = {
588 enable = true; 515 enable = true;
589 settings = { 516 settings = {
@@ -648,13 +575,9 @@ in
648 poweralertd.enable = true; 575 poweralertd.enable = true;
649 576
650 emacs = { 577 emacs = {
651 enable = false; 578 enable = true;
652 client.enable = true; 579 client.enable = true;
653 startWithUserSession = true; 580 startWithUserSession = true;
654 extraOptions = [
655 "-f"
656 "exwm-wm-mode"
657 ];
658 }; 581 };
659 582
660 redshift = { 583 redshift = {
diff --git a/modules/desktop.nix b/modules/desktop.nix
index fb153e7..ca26902 100644
--- a/modules/desktop.nix
+++ b/modules/desktop.nix
@@ -113,14 +113,27 @@
113 }; 113 };
114 }; 114 };
115 115
116 # to get startx and use amdgpu driver 116 displayManager = {
117 # WM in home-manager
118 xserver = {
119 enable = true; 117 enable = true;
118 ly.enable = true;
119 };
120
121 xserver = {
122 enable = false;
120 autorun = false; 123 autorun = false;
121 displayManager.startx.enable = true; 124 displayManager.setupCommands = ''
125 xinput set-prop "Logitech USB Receiver Mouse" "libinput Accel Profile Enabled" 0 1 0
126 xsetwacom set "Wacom One by Wacom S Pen stylus" MapToOutput 2304x1440+560+0
127
128 #xrandr --output HDMI-1 --mode 1920x1080 --left-of DP-1
129
130 xwallpaper --zoom ~/pics/wp/elite_milky_way_below2.png
131 '';
122 modules = [ pkgs.xf86_input_wacom ]; 132 modules = [ pkgs.xf86_input_wacom ];
123 wacom.enable = true; 133 wacom.enable = true;
134
135 # config managed separately
136 windowManager.stumpwm.enable = true;
124 }; 137 };
125 }; 138 };
126 139