~kaction/config

ref: c15a3cb21bfffdce7b9fcefc4479fabd6fe43e11 config/concession/runx/default.nix -rw-r--r-- 797 bytes
c15a3cb2 — Dmitry Bogatov nix-sys: mark files created as immutable 1 year, 5 months ago
                                                                                
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
{ dwm, st, uenv, dvtm, execline, busybox, xinit, xmodmap, setxkbmap
, attach-shell, writeScriptBin, dmenu, writeScript, firefox }:
let
  shell = writeScript "attach-shell.X" ''
    #!${execline}/bin/execlineb
    ${attach-shell}/bin/attach-shell X
  '';
  dwm' = dwm.overrideAttrs (_: {
    postPatch = "substituteAll ${./config.h.in} config.def.h";
    inherit st dmenu shell firefox;
  });
  x-startup = writeScript "startup.X" ''
    #!${execline}/bin/execlineb -P
    foreground { ${setxkbmap}/bin/setxkbmap
    	-layout "us,ru"
    	-option
    	-option 'lv3:switch,misc:typo,caps:ctrl_modifier,grp:shifts_toggle'
    }
    foreground { ${xmodmap}/bin/xmodmap ${./Xmodmap} }
    ${dwm'}/bin/dwm
  '';

in writeScriptBin "runx" ''
  #!${execline}/bin/execlineb -P
  /bin/xinit ${x-startup}
''